sequence
stringlengths 1.37k
35.1k
| docstring
stringlengths 17
102
|
---|---|
{'id': '0', 'type': 'module', 'children': ['1', '10', '12', '23', '29', '33', '37', '210', '218', '227', '245']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_tweets_count_times'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'twitter'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '8', 'type': 'None', 'children': []}; {'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': 'assignment', 'children': ['14', '17']}; {'id': '14', 'type': 'pattern_list', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'newest_id'}; {'id': '17', 'type': 'call', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': '_get_oldest_id'}; {'id': '19', 'type': 'argument_list', 'children': ['20']}; {'id': '20', 'type': 'keyword_argument', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'newest_id'}; {'id': '26', 'type': 'boolean_operator', 'children': ['27', '28'], 'value': 'or'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'newest_id'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'assignment', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'all_tweets'}; {'id': '32', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'assignment', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '36', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '37', 'type': 'while_statement', 'children': ['38', '41']}; {'id': '38', 'type': 'comparison_operator', 'children': ['39', '40'], 'value': '<'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '41', 'type': 'block', 'children': ['42', '46', '96', '105', '114', '151', '158', '168', '178', '192']}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'augmented_assignment', 'children': ['44', '45'], 'value': '+='}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '45', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '46', 'type': 'if_statement', 'children': ['47', '50', '71']}; {'id': '47', 'type': 'comparison_operator', 'children': ['48', '49'], 'value': '<='}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'newest_id'}; {'id': '50', 'type': 'block', 'children': ['51']}; {'id': '51', 'type': 'expression_statement', 'children': ['52']}; {'id': '52', 'type': 'assignment', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'tweets'}; {'id': '54', 'type': 'call', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'get_tweets'}; {'id': '56', 'type': 'argument_list', 'children': ['57', '60', '65', '68']}; {'id': '57', 'type': 'keyword_argument', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '60', 'type': 'keyword_argument', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'max_id'}; {'id': '62', 'type': 'binary_operator', 'children': ['63', '64'], 'value': '-'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '64', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '65', 'type': 'keyword_argument', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'TWEETS_PER_SEARCH'}; {'id': '68', 'type': 'keyword_argument', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'twitter'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'twitter'}; {'id': '71', 'type': 'else_clause', 'children': ['72']}; {'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': 'tweets'}; {'id': '76', 'type': 'call', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'get_tweets'}; {'id': '78', 'type': 'argument_list', 'children': ['79', '82', '87', '90', '93']}; {'id': '79', 'type': 'keyword_argument', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '82', 'type': 'keyword_argument', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'max_id'}; {'id': '84', 'type': 'binary_operator', 'children': ['85', '86'], 'value': '-'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '86', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '87', 'type': 'keyword_argument', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'since_id'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'newest_id'}; {'id': '90', 'type': 'keyword_argument', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'TWEETS_PER_SEARCH'}; {'id': '93', 'type': 'keyword_argument', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'twitter'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'twitter'}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'assignment', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'rate_limit_remaining'}; {'id': '99', 'type': 'call', 'children': ['100', '103']}; {'id': '100', 'type': 'attribute', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'twitter'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'get_lastfunction_header'}; {'id': '103', 'type': 'argument_list', 'children': ['104']}; {'id': '104', 'type': 'string', 'children': [], 'value': "'x-rate-limit-remaining'"}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'assignment', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'rate_limit_reset'}; {'id': '108', 'type': 'call', 'children': ['109', '112']}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'twitter'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'get_lastfunction_header'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'id': '113', 'type': 'string', 'children': [], 'value': "'x-rate-limit-reset'"}; {'id': '114', 'type': 'if_statement', 'children': ['115', '120', '138']}; {'id': '115', 'type': 'not_operator', 'children': ['116']}; {'id': '116', 'type': 'call', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '118', 'type': 'argument_list', 'children': ['119']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'tweets'}; {'id': '120', 'type': 'block', 'children': ['121', '137']}; {'id': '121', 'type': 'expression_statement', 'children': ['122']}; {'id': '122', 'type': 'assignment', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '124', 'type': 'binary_operator', 'children': ['125', '126'], 'value': '+'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '126', 'type': 'binary_operator', 'children': ['127', '136'], 'value': '*'}; {'id': '127', 'type': '()', 'children': ['128']}; {'id': '128', 'type': 'binary_operator', 'children': ['129', '135'], 'value': '+'}; {'id': '129', 'type': 'binary_operator', 'children': ['130', '134'], 'value': '-'}; {'id': '130', 'type': '()', 'children': ['131']}; {'id': '131', 'type': 'boolean_operator', 'children': ['132', '133'], 'value': 'or'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'newest_id'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '135', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '136', 'type': 'integer', 'children': [], 'value': '10000'}; {'id': '137', 'type': 'break_statement', 'children': []}; {'id': '138', 'type': 'elif_clause', 'children': ['139', '144']}; {'id': '139', 'type': 'call', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '141', 'type': 'argument_list', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'tweets'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '144', 'type': 'block', 'children': ['145', '150']}; {'id': '145', 'type': 'expression_statement', 'children': ['146']}; {'id': '146', 'type': 'call', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '148', 'type': 'argument_list', 'children': ['149']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'tweets'}; {'id': '150', 'type': 'break_statement', 'children': []}; {'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': 'all_tweets'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '156', 'type': 'argument_list', 'children': ['157']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'tweets'}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'assignment', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'tweet_ids'}; {'id': '161', 'type': 'set_comprehension', 'children': ['162', '165']}; {'id': '162', 'type': 'subscript', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '164', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '165', 'type': 'for_in_clause', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'tweets'}; {'id': '168', 'type': 'if_statement', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '170', 'type': 'block', 'children': ['171']}; {'id': '171', 'type': 'expression_statement', 'children': ['172']}; {'id': '172', 'type': 'call', 'children': ['173', '176']}; {'id': '173', 'type': 'attribute', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'tweet_ids'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '176', 'type': 'argument_list', 'children': ['177']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '178', 'type': 'expression_statement', 'children': ['179']}; {'id': '179', 'type': 'assignment', 'children': ['180', '183']}; {'id': '180', 'type': 'pattern_list', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'newest_id'}; {'id': '183', 'type': 'expression_list', 'children': ['184', '188']}; {'id': '184', 'type': 'call', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'min'}; {'id': '186', 'type': 'argument_list', 'children': ['187']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'tweet_ids'}; {'id': '188', 'type': 'call', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'max'}; {'id': '190', 'type': 'argument_list', 'children': ['191']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'tweet_ids'}; {'id': '192', 'type': 'if_statement', 'children': ['193', '196']}; {'id': '193', 'type': 'comparison_operator', 'children': ['194', '195'], 'value': '=='}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'rate_limit_remaining'}; {'id': '195', 'type': 'integer', 'children': [], 'value': '1'}; {'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': 'time'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'sleep'}; {'id': '202', 'type': 'argument_list', 'children': ['203']}; {'id': '203', 'type': 'binary_operator', 'children': ['204', '205'], 'value': '-'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'rate_limit_reset'}; {'id': '205', 'type': 'call', 'children': ['206', '209']}; {'id': '206', 'type': 'attribute', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '209', 'type': 'argument_list', 'children': []}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'call', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'save_tweets'}; {'id': '213', 'type': 'argument_list', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'all_tweets'}; {'id': '215', 'type': 'keyword_argument', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '218', 'type': 'expression_statement', 'children': ['219']}; {'id': '219', 'type': 'call', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': '_set_oldest_id'}; {'id': '221', 'type': 'argument_list', 'children': ['222', '223', '224']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'oldest_id'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'newest_id'}; {'id': '224', 'type': 'keyword_argument', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '227', 'type': 'if_statement', 'children': ['228', '234']}; {'id': '228', 'type': 'comparison_operator', 'children': ['229', '233'], 'value': '=='}; {'id': '229', 'type': 'call', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '231', 'type': 'argument_list', 'children': ['232']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'all_tweets'}; {'id': '233', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '234', 'type': 'block', 'children': ['235']}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'call', 'children': ['237', '240']}; {'id': '237', 'type': 'attribute', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'remove'}; {'id': '240', 'type': 'argument_list', 'children': ['241']}; {'id': '241', 'type': 'call', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'make_oldest_id_path'}; {'id': '243', 'type': 'argument_list', 'children': ['244']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '245', 'type': 'return_statement', 'children': ['246']}; {'id': '246', 'type': 'expression_list', 'children': ['247', '251']}; {'id': '247', 'type': 'call', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '249', 'type': 'argument_list', 'children': ['250']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'all_tweets'}; {'id': '251', 'type': 'call', 'children': ['252', '255']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'twitter'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'get_lastfunction_header'}; {'id': '255', 'type': 'argument_list', 'children': ['256']}; {'id': '256', 'type': 'string', 'children': [], 'value': "'x-rate-limit-remaining'"} | r""" hits the twitter api `count` times and grabs tweets for the indicated query |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'verify_token'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'token'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'public_key_or_address'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'signing_algorithm'}; {'id': '8', 'type': 'string', 'children': [], 'value': '"ES256K"'}; {'id': '9', 'type': 'block', 'children': ['10', '17', '23', '33', '45', '55', '67', '77', '88', '95', '102', '109', '184', '215', '221', '240']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'decoded_token'}; {'id': '13', 'type': 'call', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'decode_token'}; {'id': '15', 'type': 'argument_list', 'children': ['16']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'token'}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'decoded_token_payload'}; {'id': '20', 'type': 'subscript', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'decoded_token'}; {'id': '22', 'type': 'string', 'children': [], 'value': '"payload"'}; {'id': '23', 'type': 'if_statement', 'children': ['24', '27']}; {'id': '24', 'type': 'comparison_operator', 'children': ['25', '26'], 'value': 'not'}; {'id': '25', 'type': 'string', 'children': [], 'value': '"subject"'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'decoded_token_payload'}; {'id': '27', 'type': 'block', 'children': ['28']}; {'id': '28', 'type': 'raise_statement', 'children': ['29']}; {'id': '29', 'type': 'call', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '31', 'type': 'argument_list', 'children': ['32']}; {'id': '32', 'type': 'string', 'children': [], 'value': '"Token doesn\'t have a subject"'}; {'id': '33', 'type': 'if_statement', 'children': ['34', '39']}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '36'], 'value': 'not'}; {'id': '35', 'type': 'string', 'children': [], 'value': '"publicKey"'}; {'id': '36', 'type': 'subscript', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'decoded_token_payload'}; {'id': '38', 'type': 'string', 'children': [], 'value': '"subject"'}; {'id': '39', 'type': 'block', 'children': ['40']}; {'id': '40', 'type': 'raise_statement', 'children': ['41']}; {'id': '41', 'type': 'call', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '43', 'type': 'argument_list', 'children': ['44']}; {'id': '44', 'type': 'string', 'children': [], 'value': '"Token doesn\'t have a subject public key"'}; {'id': '45', 'type': 'if_statement', 'children': ['46', '49']}; {'id': '46', 'type': 'comparison_operator', 'children': ['47', '48'], 'value': 'not'}; {'id': '47', 'type': 'string', 'children': [], 'value': '"issuer"'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'decoded_token_payload'}; {'id': '49', 'type': 'block', 'children': ['50']}; {'id': '50', 'type': 'raise_statement', 'children': ['51']}; {'id': '51', 'type': 'call', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '53', 'type': 'argument_list', 'children': ['54']}; {'id': '54', 'type': 'string', 'children': [], 'value': '"Token doesn\'t have an issuer"'}; {'id': '55', 'type': 'if_statement', 'children': ['56', '61']}; {'id': '56', 'type': 'comparison_operator', 'children': ['57', '58'], 'value': 'not'}; {'id': '57', 'type': 'string', 'children': [], 'value': '"publicKey"'}; {'id': '58', 'type': 'subscript', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'decoded_token_payload'}; {'id': '60', 'type': 'string', 'children': [], 'value': '"issuer"'}; {'id': '61', 'type': 'block', 'children': ['62']}; {'id': '62', 'type': 'raise_statement', 'children': ['63']}; {'id': '63', 'type': 'call', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '65', 'type': 'argument_list', 'children': ['66']}; {'id': '66', 'type': 'string', 'children': [], 'value': '"Token doesn\'t have an issuer public key"'}; {'id': '67', 'type': 'if_statement', 'children': ['68', '71']}; {'id': '68', 'type': 'comparison_operator', 'children': ['69', '70'], 'value': 'not'}; {'id': '69', 'type': 'string', 'children': [], 'value': '"claim"'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'decoded_token_payload'}; {'id': '71', 'type': 'block', 'children': ['72']}; {'id': '72', 'type': 'raise_statement', 'children': ['73']}; {'id': '73', 'type': 'call', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '75', 'type': 'argument_list', 'children': ['76']}; {'id': '76', 'type': 'string', 'children': [], 'value': '"Token doesn\'t have a claim"'}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'assignment', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'issuer_public_key'}; {'id': '80', 'type': 'call', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '82', 'type': 'argument_list', 'children': ['83']}; {'id': '83', 'type': 'subscript', 'children': ['84', '87']}; {'id': '84', 'type': 'subscript', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'decoded_token_payload'}; {'id': '86', 'type': 'string', 'children': [], 'value': '"issuer"'}; {'id': '87', 'type': 'string', 'children': [], 'value': '"publicKey"'}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'assignment', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'public_key_object'}; {'id': '91', 'type': 'call', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'ECPublicKey'}; {'id': '93', 'type': 'argument_list', 'children': ['94']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'issuer_public_key'}; {'id': '95', 'type': 'expression_statement', 'children': ['96']}; {'id': '96', 'type': 'assignment', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'compressed_public_key'}; {'id': '98', 'type': 'call', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'compress'}; {'id': '100', 'type': 'argument_list', 'children': ['101']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'issuer_public_key'}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'assignment', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'decompressed_public_key'}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'decompress'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'issuer_public_key'}; {'id': '109', 'type': 'if_statement', 'children': ['110', '117', '143', '177']}; {'id': '110', 'type': 'comparison_operator', 'children': ['111', '114'], 'value': '=='}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'public_key_object'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': '_type'}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'PubkeyType'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'compressed'}; {'id': '117', 'type': 'block', 'children': ['118', '126']}; {'id': '118', 'type': 'expression_statement', 'children': ['119']}; {'id': '119', 'type': 'assignment', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'compressed_address'}; {'id': '121', 'type': 'call', 'children': ['122', '125']}; {'id': '122', 'type': 'attribute', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'public_key_object'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'address'}; {'id': '125', 'type': 'argument_list', 'children': []}; {'id': '126', 'type': 'expression_statement', 'children': ['127']}; {'id': '127', 'type': 'assignment', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'uncompressed_address'}; {'id': '129', 'type': 'call', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'bin_hash160_to_address'}; {'id': '131', 'type': 'argument_list', 'children': ['132']}; {'id': '132', 'type': 'call', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'bin_hash160'}; {'id': '134', 'type': 'argument_list', 'children': ['135']}; {'id': '135', 'type': 'call', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'decompress'}; {'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': 'public_key_object'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'to_bin'}; {'id': '142', 'type': 'argument_list', 'children': []}; {'id': '143', 'type': 'elif_clause', 'children': ['144', '151']}; {'id': '144', 'type': 'comparison_operator', 'children': ['145', '148'], 'value': '=='}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'public_key_object'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': '_type'}; {'id': '148', 'type': 'attribute', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'PubkeyType'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'uncompressed'}; {'id': '151', 'type': 'block', 'children': ['152', '169']}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'assignment', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'compressed_address'}; {'id': '155', 'type': 'call', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'bin_hash160_to_address'}; {'id': '157', 'type': 'argument_list', 'children': ['158']}; {'id': '158', 'type': 'call', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'bin_hash160'}; {'id': '160', 'type': 'argument_list', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'compress'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'call', 'children': ['165', '168']}; {'id': '165', 'type': 'attribute', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'public_key_object'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'to_bin'}; {'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': 'uncompressed_address'}; {'id': '172', 'type': 'call', 'children': ['173', '176']}; {'id': '173', 'type': 'attribute', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'public_key_object'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'address'}; {'id': '176', 'type': 'argument_list', 'children': []}; {'id': '177', 'type': 'else_clause', 'children': ['178']}; {'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': 'ValueError'}; {'id': '182', 'type': 'argument_list', 'children': ['183']}; {'id': '183', 'type': 'string', 'children': [], 'value': '"Invalid issuer public key format"'}; {'id': '184', 'type': 'if_statement', 'children': ['185', '188', '190', '196', '202', '208']}; {'id': '185', 'type': 'comparison_operator', 'children': ['186', '187'], 'value': '=='}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'public_key_or_address'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'compressed_public_key'}; {'id': '188', 'type': 'block', 'children': ['189']}; {'id': '189', 'type': 'pass_statement', 'children': []}; {'id': '190', 'type': 'elif_clause', 'children': ['191', '194']}; {'id': '191', 'type': 'comparison_operator', 'children': ['192', '193'], 'value': '=='}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'public_key_or_address'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'decompressed_public_key'}; {'id': '194', 'type': 'block', 'children': ['195']}; {'id': '195', 'type': 'pass_statement', 'children': []}; {'id': '196', 'type': 'elif_clause', 'children': ['197', '200']}; {'id': '197', 'type': 'comparison_operator', 'children': ['198', '199'], 'value': '=='}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'public_key_or_address'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'compressed_address'}; {'id': '200', 'type': 'block', 'children': ['201']}; {'id': '201', 'type': 'pass_statement', 'children': []}; {'id': '202', 'type': 'elif_clause', 'children': ['203', '206']}; {'id': '203', 'type': 'comparison_operator', 'children': ['204', '205'], 'value': '=='}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'public_key_or_address'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'uncompressed_address'}; {'id': '206', 'type': 'block', 'children': ['207']}; {'id': '207', 'type': 'pass_statement', 'children': []}; {'id': '208', 'type': 'else_clause', 'children': ['209']}; {'id': '209', 'type': 'block', 'children': ['210']}; {'id': '210', 'type': 'raise_statement', 'children': ['211']}; {'id': '211', 'type': 'call', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '213', 'type': 'argument_list', 'children': ['214']}; {'id': '214', 'type': 'string', 'children': [], 'value': '"Token public key doesn\'t match the verifying value"'}; {'id': '215', 'type': 'expression_statement', 'children': ['216']}; {'id': '216', 'type': 'assignment', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'token_verifier'}; {'id': '218', 'type': 'call', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'TokenVerifier'}; {'id': '220', 'type': 'argument_list', 'children': []}; {'id': '221', 'type': 'if_statement', 'children': ['222', '234']}; {'id': '222', 'type': 'not_operator', 'children': ['223']}; {'id': '223', 'type': 'call', 'children': ['224', '227']}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'token_verifier'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'verify'}; {'id': '227', 'type': 'argument_list', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'token'}; {'id': '229', 'type': 'call', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'public_key_object'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'to_pem'}; {'id': '233', 'type': 'argument_list', 'children': []}; {'id': '234', 'type': 'block', 'children': ['235']}; {'id': '235', 'type': 'raise_statement', 'children': ['236']}; {'id': '236', 'type': 'call', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '238', 'type': 'argument_list', 'children': ['239']}; {'id': '239', 'type': 'string', 'children': [], 'value': '"Token was not signed by the issuer public key"'}; {'id': '240', 'type': 'return_statement', 'children': ['241']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'decoded_token'} | A function for validating an individual token. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_close_callable'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '8', 'type': 'False', 'children': []}; {'id': '9', 'type': 'block', 'children': ['10', '22', '30', '31', '35', '81', '90', '95', '96', '100', '221', '227', '236', '252']}; {'id': '10', 'type': 'try_statement', 'children': ['11', '18']}; {'id': '11', 'type': 'block', 'children': ['12']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'lineno'}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'lineno'}; {'id': '18', 'type': 'except_clause', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'AttributeError'}; {'id': '20', 'type': 'block', 'children': ['21']}; {'id': '21', 'type': 'return_statement', 'children': []}; {'id': '22', 'type': 'if_statement', 'children': ['23', '28']}; {'id': '23', 'type': 'comparison_operator', 'children': ['24', '25'], 'value': '<='}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'lineno'}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': '_processed_line'}; {'id': '28', 'type': 'block', 'children': ['29']}; {'id': '29', 'type': 'return_statement', 'children': []}; {'id': '30', 'type': 'comment', 'children': []}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '34', 'type': 'string', 'children': [], 'value': '""'}; {'id': '35', 'type': 'try_statement', 'children': ['36', '77']}; {'id': '36', 'type': 'block', 'children': ['37']}; {'id': '37', 'type': 'expression_statement', 'children': ['38']}; {'id': '38', 'type': 'assignment', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '40', 'type': '()', 'children': ['41']}; {'id': '41', 'type': 'conditional_expression', 'children': ['42', '45', '50'], 'value': 'if'}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '45', 'type': 'call', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'hasattr'}; {'id': '47', 'type': 'argument_list', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '49', 'type': 'string', 'children': [], 'value': '"name"'}; {'id': '50', 'type': '()', 'children': ['51']}; {'id': '51', 'type': 'conditional_expression', 'children': ['52', '59', '68'], 'value': 'if'}; {'id': '52', 'type': 'attribute', 'children': ['53', '58']}; {'id': '53', 'type': 'subscript', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'targets'}; {'id': '57', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '59', 'type': 'call', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'hasattr'}; {'id': '61', 'type': 'argument_list', 'children': ['62', '67']}; {'id': '62', 'type': 'subscript', 'children': ['63', '66']}; {'id': '63', 'type': 'attribute', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'targets'}; {'id': '66', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '67', 'type': 'string', 'children': [], 'value': '"id"'}; {'id': '68', 'type': 'attribute', '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': 'node'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'targets'}; {'id': '74', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '77', 'type': 'except_clause', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'AttributeError'}; {'id': '79', 'type': 'block', 'children': ['80']}; {'id': '80', 'type': 'pass_statement', 'children': []}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'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': '_get_indent'}; {'id': '88', 'type': 'argument_list', 'children': ['89']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '90', 'type': 'expression_statement', 'children': ['91']}; {'id': '91', 'type': 'assignment', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '93', 'type': 'unary_operator', 'children': ['94'], 'value': '-'}; {'id': '94', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '95', 'type': 'comment', 'children': []}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'assignment', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'dlist'}; {'id': '99', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '100', 'type': 'while_statement', 'children': ['101', '110']}; {'id': '101', 'type': 'comparison_operator', 'children': ['102', '103'], 'value': '>='}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '103', 'type': 'unary_operator', 'children': ['104'], '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': 'self'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': '_indent_stack'}; {'id': '110', 'type': 'block', 'children': ['111', '121', '133', '143', '153', '154', '211', '217']}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'assignment', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'element_full_name'}; {'id': '114', 'type': 'subscript', 'children': ['115', '120']}; {'id': '115', 'type': 'subscript', 'children': ['116', '119']}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': '_indent_stack'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '120', 'type': 'string', 'children': [], 'value': '"full_name"'}; {'id': '121', 'type': 'expression_statement', 'children': ['122']}; {'id': '122', 'type': 'assignment', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'edict'}; {'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': '_callables_db'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '130', 'type': 'argument_list', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'element_full_name'}; {'id': '132', 'type': 'None', 'children': []}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'assignment', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'stack_indent'}; {'id': '136', 'type': 'subscript', 'children': ['137', '142']}; {'id': '137', 'type': 'subscript', 'children': ['138', '141']}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': '_indent_stack'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '142', 'type': 'string', 'children': [], 'value': '"level"'}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'assignment', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'open_callable'}; {'id': '146', 'type': 'boolean_operator', 'children': ['147', '148'], 'value': 'and'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'element_full_name'}; {'id': '148', 'type': '()', 'children': ['149']}; {'id': '149', 'type': 'not_operator', 'children': ['150']}; {'id': '150', 'type': 'subscript', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'edict'}; {'id': '152', 'type': 'string', 'children': [], 'value': '"last_lineno"'}; {'id': '153', 'type': 'comment', 'children': []}; {'id': '154', 'type': 'if_statement', 'children': ['155', '194', '195']}; {'id': '155', 'type': 'boolean_operator', 'children': ['156', '157'], 'value': 'and'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'open_callable'}; {'id': '157', 'type': '()', 'children': ['158']}; {'id': '158', 'type': 'boolean_operator', 'children': ['159', '165'], 'value': 'or'}; {'id': '159', 'type': 'boolean_operator', 'children': ['160', '161'], 'value': 'or'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '161', 'type': '()', 'children': ['162']}; {'id': '162', 'type': 'comparison_operator', 'children': ['163', '164'], 'value': '<'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'stack_indent'}; {'id': '165', 'type': '()', 'children': ['166']}; {'id': '166', 'type': 'boolean_operator', 'children': ['167', '171'], 'value': 'and'}; {'id': '167', 'type': '()', 'children': ['168']}; {'id': '168', 'type': 'comparison_operator', 'children': ['169', '170'], 'value': '=='}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'stack_indent'}; {'id': '171', 'type': '()', 'children': ['172']}; {'id': '172', 'type': 'boolean_operator', 'children': ['173', '179'], 'value': 'or'}; {'id': '173', 'type': '()', 'children': ['174']}; {'id': '174', 'type': 'comparison_operator', 'children': ['175', '178'], 'value': '!='}; {'id': '175', 'type': 'subscript', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'edict'}; {'id': '177', 'type': 'string', 'children': [], 'value': '"type"'}; {'id': '178', 'type': 'string', 'children': [], 'value': '"prop"'}; {'id': '179', 'type': '()', 'children': ['180']}; {'id': '180', 'type': 'boolean_operator', 'children': ['181', '187'], 'value': 'and'}; {'id': '181', 'type': '()', 'children': ['182']}; {'id': '182', 'type': 'comparison_operator', 'children': ['183', '186'], 'value': '=='}; {'id': '183', 'type': 'subscript', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'edict'}; {'id': '185', 'type': 'string', 'children': [], 'value': '"type"'}; {'id': '186', 'type': 'string', 'children': [], 'value': '"prop"'}; {'id': '187', 'type': '()', 'children': ['188']}; {'id': '188', 'type': 'boolean_operator', 'children': ['189', '190'], 'value': 'and'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '190', 'type': '()', 'children': ['191']}; {'id': '191', 'type': 'comparison_operator', 'children': ['192', '193'], 'value': '!='}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'element_full_name'}; {'id': '194', 'type': 'comment', 'children': []}; {'id': '195', 'type': 'block', 'children': ['196', '204']}; {'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': 'edict'}; {'id': '200', 'type': 'string', 'children': [], 'value': '"last_lineno"'}; {'id': '201', 'type': 'binary_operator', 'children': ['202', '203'], 'value': '-'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'lineno'}; {'id': '203', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '204', 'type': 'expression_statement', 'children': ['205']}; {'id': '205', 'type': 'call', 'children': ['206', '209']}; {'id': '206', 'type': 'attribute', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'dlist'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '209', 'type': 'argument_list', 'children': ['210']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '211', 'type': 'if_statement', 'children': ['212', '215']}; {'id': '212', 'type': 'comparison_operator', 'children': ['213', '214'], 'value': '>'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'stack_indent'}; {'id': '215', 'type': 'block', 'children': ['216']}; {'id': '216', 'type': 'break_statement', 'children': []}; {'id': '217', 'type': 'expression_statement', 'children': ['218']}; {'id': '218', 'type': 'augmented_assignment', 'children': ['219', '220'], 'value': '-='}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '220', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '221', 'type': 'expression_statement', 'children': ['222']}; {'id': '222', 'type': 'assignment', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': '_indent_stack'}; {'id': '227', 'type': 'expression_statement', 'children': ['228']}; {'id': '228', 'type': 'assignment', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'stack_length'}; {'id': '230', 'type': 'call', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '232', 'type': 'argument_list', 'children': ['233']}; {'id': '233', 'type': 'attribute', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': '_indent_stack'}; {'id': '236', 'type': 'expression_statement', 'children': ['237']}; {'id': '237', 'type': 'assignment', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'dlist'}; {'id': '239', 'type': 'list_comprehension', 'children': ['240', '241', '244']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '241', 'type': 'for_in_clause', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'dlist'}; {'id': '244', 'type': 'if_clause', 'children': ['245']}; {'id': '245', 'type': 'comparison_operator', 'children': ['246', '251'], 'value': '!='}; {'id': '246', 'type': 'subscript', 'children': ['247', '250']}; {'id': '247', 'type': 'subscript', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '250', 'type': 'string', 'children': [], 'value': '"type"'}; {'id': '251', 'type': 'string', 'children': [], 'value': '"module"'}; {'id': '252', 'type': 'for_statement', 'children': ['253', '254', '255']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'dlist'}; {'id': '255', 'type': 'block', 'children': ['256']}; {'id': '256', 'type': 'delete_statement', 'children': ['257']}; {'id': '257', 'type': 'subscript', 'children': ['258', '261']}; {'id': '258', 'type': 'attribute', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': '_indent_stack'}; {'id': '261', 'type': 'binary_operator', 'children': ['262', '263'], 'value': '+'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'stack_length'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'item'} | Record last line number of callable. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'populate_field_values'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '6', 'type': 'block', 'children': ['7', '36', '76', '222']}; {'id': '7', 'type': 'if_statement', 'children': ['8', '14']}; {'id': '8', 'type': 'not_operator', 'children': ['9']}; {'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': 'case_sensitive_fields'}; {'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': 'data'}; {'id': '18', 'type': 'dictionary_comprehension', 'children': ['19', '26']}; {'id': '19', 'type': 'pair', 'children': ['20', '25']}; {'id': '20', 'type': 'call', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '24', 'type': 'argument_list', 'children': []}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '26', 'type': 'for_in_clause', 'children': ['27', '30']}; {'id': '27', 'type': 'pattern_list', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '30', 'type': 'call', 'children': ['31', '34']}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '36', 'type': 'if_statement', 'children': ['37', '42']}; {'id': '37', 'type': 'attribute', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': '_meta'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'match_fuzzy_keys'}; {'id': '42', 'type': 'block', 'children': ['43']}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '46', 'type': 'dictionary_comprehension', 'children': ['47', '66']}; {'id': '47', 'type': 'pair', 'children': ['48', '65']}; {'id': '48', 'type': 'call', 'children': ['49', '64']}; {'id': '49', 'type': 'attribute', 'children': ['50', '63']}; {'id': '50', 'type': 'call', 'children': ['51', '54']}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'string', 'children': [], 'value': "''"}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '54', 'type': 'generator_expression', 'children': ['55', '56', '59']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '56', 'type': 'for_in_clause', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '59', 'type': 'if_clause', 'children': ['60']}; {'id': '60', 'type': 'comparison_operator', 'children': ['61', '62'], 'value': 'in'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'ALPHANUMERIC'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '64', 'type': 'argument_list', 'children': []}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '66', 'type': 'for_in_clause', 'children': ['67', '70']}; {'id': '67', 'type': 'pattern_list', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '70', 'type': 'call', 'children': ['71', '74']}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '74', 'type': 'argument_list', 'children': ['75']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '76', 'type': 'for_statement', 'children': ['77', '78', '83']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '78', 'type': 'attribute', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': '_meta'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '83', 'type': 'block', 'children': ['84', '103', '107', '134', '213']}; {'id': '84', 'type': 'expression_statement', 'children': ['85']}; {'id': '85', 'type': 'assignment', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '87', 'type': 'conditional_expression', 'children': ['88', '91', '96'], 'value': 'if'}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '91', 'type': 'attribute', 'children': ['92', '95']}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': '_meta'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'case_sensitive_fields'}; {'id': '96', 'type': 'call', 'children': ['97', '102']}; {'id': '97', 'type': 'attribute', 'children': ['98', '101']}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '102', 'type': 'argument_list', 'children': []}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'assignment', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '106', 'type': 'None', 'children': []}; {'id': '107', 'type': 'if_statement', 'children': ['108', '113']}; {'id': '108', 'type': 'attribute', 'children': ['109', '112']}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': '_meta'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'match_fuzzy_keys'}; {'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': 'name'}; {'id': '117', 'type': 'call', 'children': ['118', '133']}; {'id': '118', 'type': 'attribute', 'children': ['119', '132']}; {'id': '119', 'type': 'call', 'children': ['120', '123']}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'string', 'children': [], 'value': "''"}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '123', 'type': 'generator_expression', 'children': ['124', '125', '128']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '125', 'type': 'for_in_clause', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '128', 'type': 'if_clause', 'children': ['129']}; {'id': '129', 'type': 'comparison_operator', 'children': ['130', '131'], 'value': 'in'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'ALPHANUMERIC'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '133', 'type': 'argument_list', 'children': []}; {'id': '134', 'type': 'if_statement', 'children': ['135', '138', '151', '195']}; {'id': '135', 'type': 'comparison_operator', 'children': ['136', '137'], 'value': 'in'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '138', 'type': 'block', 'children': ['139']}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '142', 'type': 'call', 'children': ['143', '146']}; {'id': '143', 'type': 'attribute', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'to_python'}; {'id': '146', 'type': 'argument_list', 'children': ['147', '150']}; {'id': '147', 'type': 'subscript', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '151', 'type': 'elif_clause', 'children': ['152', '161']}; {'id': '152', 'type': 'boolean_operator', 'children': ['153', '156'], 'value': 'and'}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'required'}; {'id': '156', 'type': 'comparison_operator', 'children': ['157', '160'], 'value': 'is'}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'default'}; {'id': '160', 'type': 'None', 'children': []}; {'id': '161', 'type': 'block', 'children': ['162', '176']}; {'id': '162', 'type': 'expression_statement', 'children': ['163']}; {'id': '163', 'type': 'assignment', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '165', 'type': 'call', 'children': ['166', '169']}; {'id': '166', 'type': 'attribute', 'children': ['167', '168']}; {'id': '167', 'type': 'string', 'children': [], 'value': '"Response from {0} is missing required field \'{1}\'"'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '169', 'type': 'argument_list', 'children': ['170', '173']}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': '_url'}; {'id': '173', 'type': 'attribute', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '176', 'type': 'if_statement', 'children': ['177', '180', '186']}; {'id': '177', 'type': 'attribute', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': '_strict'}; {'id': '180', 'type': 'block', 'children': ['181']}; {'id': '181', 'type': 'raise_statement', 'children': ['182']}; {'id': '182', 'type': 'call', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'MissingFieldException'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '186', 'type': 'else_clause', 'children': ['187']}; {'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': 'logger'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'warn'}; {'id': '193', 'type': 'argument_list', 'children': ['194']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '195', 'type': 'elif_clause', 'children': ['196', '201']}; {'id': '196', 'type': 'comparison_operator', 'children': ['197', '200'], 'value': 'is'}; {'id': '197', 'type': 'attribute', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'default'}; {'id': '200', 'type': 'None', 'children': []}; {'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': 'value'}; {'id': '205', 'type': 'call', 'children': ['206', '209']}; {'id': '206', 'type': 'attribute', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '209', 'type': 'argument_list', 'children': ['210']}; {'id': '210', 'type': 'attribute', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'default'}; {'id': '213', 'type': 'expression_statement', 'children': ['214']}; {'id': '214', 'type': 'call', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'setattr'}; {'id': '216', 'type': 'argument_list', 'children': ['217', '218', '221']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '218', 'type': 'attribute', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': '_attr_name'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '222', 'type': 'expression_statement', 'children': ['223']}; {'id': '223', 'type': 'assignment', 'children': ['224', '227']}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': '_populated_field_values'}; {'id': '227', 'type': 'True', 'children': []} | Load resource data and populate field values |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_sorted_keys_items'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'dobj'}; {'id': '5', 'type': 'block', 'children': ['6', '17']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '9', 'type': 'call', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '11', 'type': 'argument_list', 'children': ['12']}; {'id': '12', 'type': 'call', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'dobj'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '16', 'type': 'argument_list', 'children': []}; {'id': '17', 'type': 'for_statement', 'children': ['18', '19', '20']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '20', 'type': 'block', 'children': ['21']}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'yield', 'children': ['23']}; {'id': '23', 'type': 'expression_list', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '25', 'type': 'subscript', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'dobj'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'key'} | Return dictionary items sorted by key. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_property_search'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'fobj'}; {'id': '6', 'type': 'block', 'children': ['7', '19', '30', '41', '64', '75', '90', '109', '113', '202', '211', '224', '283']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'scontext'}; {'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': 'fobj'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'f_locals'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '16', 'type': 'argument_list', 'children': ['17', '18']}; {'id': '17', 'type': 'string', 'children': [], 'value': '"self"'}; {'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': 'class_obj'}; {'id': '22', 'type': 'conditional_expression', 'children': ['23', '26', '29'], 'value': 'if'}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'scontext'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': '__class__'}; {'id': '26', 'type': 'comparison_operator', 'children': ['27', '28'], 'value': 'is'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'scontext'}; {'id': '28', 'type': 'None', 'children': []}; {'id': '29', 'type': 'None', 'children': []}; {'id': '30', 'type': 'if_statement', 'children': ['31', '33']}; {'id': '31', 'type': 'not_operator', 'children': ['32']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'class_obj'}; {'id': '33', 'type': 'block', 'children': ['34', '39']}; {'id': '34', 'type': 'delete_statement', 'children': ['35']}; {'id': '35', 'type': 'expression_list', 'children': ['36', '37', '38']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'fobj'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'scontext'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'class_obj'}; {'id': '39', 'type': 'return_statement', 'children': ['40']}; {'id': '40', 'type': 'None', 'children': []}; {'id': '41', 'type': 'expression_statement', 'children': ['42']}; {'id': '42', 'type': 'assignment', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'class_props'}; {'id': '44', 'type': 'list_comprehension', 'children': ['45', '48', '58']}; {'id': '45', 'type': 'tuple', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'member_name'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'member_obj'}; {'id': '48', 'type': 'for_in_clause', 'children': ['49', '52']}; {'id': '49', 'type': 'pattern_list', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'member_name'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'member_obj'}; {'id': '52', 'type': 'call', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'inspect'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'getmembers'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'class_obj'}; {'id': '58', 'type': 'if_clause', 'children': ['59']}; {'id': '59', 'type': 'call', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '61', 'type': 'argument_list', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'member_obj'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'property'}; {'id': '64', 'type': 'if_statement', 'children': ['65', '67']}; {'id': '65', 'type': 'not_operator', 'children': ['66']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'class_props'}; {'id': '67', 'type': 'block', 'children': ['68', '73']}; {'id': '68', 'type': 'delete_statement', 'children': ['69']}; {'id': '69', 'type': 'expression_list', 'children': ['70', '71', '72']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'fobj'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'scontext'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'class_obj'}; {'id': '73', 'type': 'return_statement', 'children': ['74']}; {'id': '74', 'type': 'None', 'children': []}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'class_file'}; {'id': '78', 'type': 'call', 'children': ['79', '87']}; {'id': '79', 'type': 'attribute', 'children': ['80', '86']}; {'id': '80', 'type': 'call', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'inspect'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'getfile'}; {'id': '84', 'type': 'argument_list', 'children': ['85']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'class_obj'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '87', 'type': 'argument_list', 'children': ['88', '89']}; {'id': '88', 'type': 'string', 'children': [], 'value': '".pyc"'}; {'id': '89', 'type': 'string', 'children': [], 'value': '".py"'}; {'id': '90', 'type': 'expression_statement', 'children': ['91']}; {'id': '91', 'type': 'assignment', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'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': '_callables_obj'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'get_callable_from_line'}; {'id': '99', 'type': 'argument_list', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'class_file'}; {'id': '101', 'type': 'subscript', 'children': ['102', '108']}; {'id': '102', 'type': 'call', 'children': ['103', '106']}; {'id': '103', 'type': 'attribute', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'inspect'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'getsourcelines'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'class_obj'}; {'id': '108', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '109', 'type': 'expression_statement', 'children': ['110']}; {'id': '110', 'type': 'assignment', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'prop_actions_dicts'}; {'id': '112', 'type': 'dictionary', 'children': []}; {'id': '113', 'type': 'for_statement', 'children': ['114', '117', '118']}; {'id': '114', 'type': 'pattern_list', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'prop_name'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'prop_obj'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'class_props'}; {'id': '118', 'type': 'block', 'children': ['119', '132', '196']}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'prop_dict'}; {'id': '122', 'type': 'dictionary', 'children': ['123', '126', '129']}; {'id': '123', 'type': 'pair', 'children': ['124', '125']}; {'id': '124', 'type': 'string', 'children': [], 'value': '"fdel"'}; {'id': '125', 'type': 'None', 'children': []}; {'id': '126', 'type': 'pair', 'children': ['127', '128']}; {'id': '127', 'type': 'string', 'children': [], 'value': '"fget"'}; {'id': '128', 'type': 'None', 'children': []}; {'id': '129', 'type': 'pair', 'children': ['130', '131']}; {'id': '130', 'type': 'string', 'children': [], 'value': '"fset"'}; {'id': '131', 'type': 'None', 'children': []}; {'id': '132', 'type': 'for_statement', 'children': ['133', '134', '135']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'prop_dict'}; {'id': '135', 'type': 'block', 'children': ['136', '144']}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'assignment', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'action_obj'}; {'id': '139', 'type': 'call', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '141', 'type': 'argument_list', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'prop_obj'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '144', 'type': 'if_statement', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'action_obj'}; {'id': '146', 'type': 'block', 'children': ['147', '160', '176']}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'assignment', 'children': ['149', '152']}; {'id': '149', 'type': 'pattern_list', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'prev_func_obj'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'next_func_obj'}; {'id': '152', 'type': 'tuple', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'action_obj'}; {'id': '154', 'type': 'call', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '156', 'type': 'argument_list', 'children': ['157', '158', '159']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'action_obj'}; {'id': '158', 'type': 'string', 'children': [], 'value': '"__wrapped__"'}; {'id': '159', 'type': 'None', 'children': []}; {'id': '160', 'type': 'while_statement', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'next_func_obj'}; {'id': '162', 'type': 'block', 'children': ['163']}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'assignment', 'children': ['165', '168']}; {'id': '165', 'type': 'pattern_list', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'prev_func_obj'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'next_func_obj'}; {'id': '168', 'type': 'tuple', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'next_func_obj'}; {'id': '170', 'type': 'call', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '172', 'type': 'argument_list', 'children': ['173', '174', '175']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'next_func_obj'}; {'id': '174', 'type': 'string', 'children': [], 'value': '"__wrapped__"'}; {'id': '175', 'type': 'None', 'children': []}; {'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': 'prop_dict'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '181', 'type': 'list', 'children': ['182', '189'], 'value': '[\n id(_get_func_code(action_obj)),\n id(_get_func_code(prev_func_obj)),\n ]'}; {'id': '182', 'type': 'call', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'call', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': '_get_func_code'}; {'id': '187', 'type': 'argument_list', 'children': ['188']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'action_obj'}; {'id': '189', 'type': 'call', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'call', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': '_get_func_code'}; {'id': '194', 'type': 'argument_list', 'children': ['195']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'prev_func_obj'}; {'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': 'prop_actions_dicts'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'prop_name'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'prop_dict'}; {'id': '202', 'type': 'expression_statement', 'children': ['203']}; {'id': '203', 'type': 'assignment', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'func_id'}; {'id': '205', 'type': 'call', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '207', 'type': 'argument_list', 'children': ['208']}; {'id': '208', 'type': 'attribute', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'fobj'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'f_code'}; {'id': '211', 'type': 'expression_statement', 'children': ['212']}; {'id': '212', 'type': 'assignment', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'desc_dict'}; {'id': '214', 'type': 'dictionary', 'children': ['215', '218', '221']}; {'id': '215', 'type': 'pair', 'children': ['216', '217']}; {'id': '216', 'type': 'string', 'children': [], 'value': '"fget"'}; {'id': '217', 'type': 'string', 'children': [], 'value': '"getter"'}; {'id': '218', 'type': 'pair', 'children': ['219', '220']}; {'id': '219', 'type': 'string', 'children': [], 'value': '"fset"'}; {'id': '220', 'type': 'string', 'children': [], 'value': '"setter"'}; {'id': '221', 'type': 'pair', 'children': ['222', '223']}; {'id': '222', 'type': 'string', 'children': [], 'value': '"fdel"'}; {'id': '223', 'type': 'string', 'children': [], 'value': '"deleter"'}; {'id': '224', 'type': 'for_statement', 'children': ['225', '228', '233']}; {'id': '225', 'type': 'pattern_list', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'prop_name'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'prop_actions_dict'}; {'id': '228', 'type': 'call', 'children': ['229', '232']}; {'id': '229', 'type': 'attribute', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'prop_actions_dicts'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '232', 'type': 'argument_list', 'children': []}; {'id': '233', 'type': 'block', 'children': ['234']}; {'id': '234', 'type': 'for_statement', 'children': ['235', '238', '243']}; {'id': '235', 'type': 'pattern_list', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'action_name'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'action_id_list'}; {'id': '238', 'type': 'call', 'children': ['239', '242']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'prop_actions_dict'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '242', 'type': 'argument_list', 'children': []}; {'id': '243', 'type': 'block', 'children': ['244']}; {'id': '244', 'type': 'if_statement', 'children': ['245', '251']}; {'id': '245', 'type': 'boolean_operator', 'children': ['246', '247'], 'value': 'and'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'action_id_list'}; {'id': '247', 'type': '()', 'children': ['248']}; {'id': '248', 'type': 'comparison_operator', 'children': ['249', '250'], 'value': 'in'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'func_id'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'action_id_list'}; {'id': '251', 'type': 'block', 'children': ['252', '263', '269']}; {'id': '252', 'type': 'expression_statement', 'children': ['253']}; {'id': '253', 'type': 'assignment', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'prop_name'}; {'id': '255', 'type': 'call', 'children': ['256', '259']}; {'id': '256', 'type': 'attribute', 'children': ['257', '258']}; {'id': '257', 'type': 'string', 'children': [], 'value': '"."'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '259', 'type': 'argument_list', 'children': ['260']}; {'id': '260', 'type': 'list', 'children': ['261', '262'], 'value': '[class_name, prop_name]'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'prop_name'}; {'id': '263', 'type': 'delete_statement', 'children': ['264']}; {'id': '264', 'type': 'expression_list', 'children': ['265', '266', '267', '268']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'fobj'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'scontext'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'class_obj'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'class_props'}; {'id': '269', 'type': 'return_statement', 'children': ['270']}; {'id': '270', 'type': 'call', 'children': ['271', '274']}; {'id': '271', 'type': 'attribute', 'children': ['272', '273']}; {'id': '272', 'type': 'string', 'children': [], 'value': '"{prop_name}({prop_action})"'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '274', 'type': 'argument_list', 'children': ['275', '278']}; {'id': '275', 'type': 'keyword_argument', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'prop_name'}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'prop_name'}; {'id': '278', 'type': 'keyword_argument', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'prop_action'}; {'id': '280', 'type': 'subscript', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'desc_dict'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'action_name'}; {'id': '283', 'type': 'return_statement', 'children': ['284']}; {'id': '284', 'type': 'None', 'children': []} | Return full name if object is a class property, otherwise return None. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'scenarios'}; {'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': 'generate_seed'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'block', 'children': ['9', '16', '28', '75', '79', '83', '142', '157', '186', '190', '254', '262', '270']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'assignment', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'seed'}; {'id': '12', 'type': 'call', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'prime_numbers'}; {'id': '14', 'type': 'argument_list', 'children': ['15']}; {'id': '15', 'type': 'integer', 'children': [], 'value': '1000'}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'sweeps_all'}; {'id': '19', 'type': 'call', 'children': ['20', '27']}; {'id': '20', 'type': 'attribute', 'children': ['21', '26']}; {'id': '21', 'type': 'subscript', 'children': ['22', '25']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'experiment'}; {'id': '25', 'type': 'string', 'children': [], 'value': '"sweeps"'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '27', 'type': 'argument_list', 'children': []}; {'id': '28', 'type': 'if_statement', 'children': ['29', '34', '67']}; {'id': '29', 'type': 'comparison_operator', 'children': ['30', '31'], 'value': 'in'}; {'id': '30', 'type': 'string', 'children': [], 'value': '"combinations"'}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'experiment'}; {'id': '34', 'type': 'block', 'children': ['35']}; {'id': '35', 'type': 'if_statement', 'children': ['36', '45', '57']}; {'id': '36', 'type': 'call', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '38', 'type': 'argument_list', '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': 'experiment'}; {'id': '43', 'type': 'string', 'children': [], 'value': '"combinations"'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'list'}; {'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': 'combinations_in_experiment'}; {'id': '49', 'type': 'dictionary', 'children': ['50']}; {'id': '50', 'type': 'pair', 'children': ['51', '52']}; {'id': '51', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '52', 'type': 'subscript', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'experiment'}; {'id': '56', 'type': 'string', 'children': [], 'value': '"combinations"'}; {'id': '57', 'type': 'else_clause', 'children': ['58']}; {'id': '58', 'type': 'block', 'children': ['59']}; {'id': '59', 'type': 'expression_statement', 'children': ['60']}; {'id': '60', 'type': 'assignment', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'combinations_in_experiment'}; {'id': '62', 'type': 'subscript', 'children': ['63', '66']}; {'id': '63', 'type': 'attribute', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'experiment'}; {'id': '66', 'type': 'string', 'children': [], 'value': '"combinations"'}; {'id': '67', 'type': 'else_clause', 'children': ['68']}; {'id': '68', 'type': 'block', 'children': ['69']}; {'id': '69', 'type': 'expression_statement', 'children': ['70']}; {'id': '70', 'type': 'assignment', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'combinations_in_experiment'}; {'id': '72', 'type': 'call', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '74', 'type': 'argument_list', 'children': []}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'all_combinations_sweeps'}; {'id': '78', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '79', 'type': 'expression_statement', 'children': ['80']}; {'id': '80', 'type': 'assignment', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'all_combinations'}; {'id': '82', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '83', 'type': 'for_statement', 'children': ['84', '87', '92']}; {'id': '84', 'type': 'pattern_list', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'combinations_'}; {'id': '87', 'type': 'call', 'children': ['88', '91']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'combinations_in_experiment'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '91', 'type': 'argument_list', 'children': []}; {'id': '92', 'type': 'block', 'children': ['93', '122', '133']}; {'id': '93', 'type': 'if_statement', 'children': ['94', '96', '106']}; {'id': '94', 'type': 'not_operator', 'children': ['95']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'combinations_'}; {'id': '96', 'type': 'block', 'children': ['97', '101']}; {'id': '97', 'type': 'expression_statement', 'children': ['98']}; {'id': '98', 'type': 'assignment', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'combinations_sweeps'}; {'id': '100', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'combinations'}; {'id': '104', 'type': 'list', 'children': ['105'], 'value': '[[]]'}; {'id': '105', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '106', 'type': 'else_clause', 'children': ['107']}; {'id': '107', 'type': 'block', 'children': ['108', '114']}; {'id': '108', 'type': 'expression_statement', 'children': ['109']}; {'id': '109', 'type': 'assignment', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'combinations_sweeps'}; {'id': '111', 'type': 'subscript', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'combinations_'}; {'id': '113', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '114', 'type': 'expression_statement', 'children': ['115']}; {'id': '115', 'type': 'assignment', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'combinations'}; {'id': '117', 'type': 'subscript', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'combinations_'}; {'id': '119', 'type': 'slice', 'children': ['120', '121']}; {'id': '120', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '121', 'type': 'colon', 'children': []}; {'id': '122', 'type': 'for_statement', 'children': ['123', '124', '125']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'combinations_sweeps'}; {'id': '125', 'type': 'block', 'children': ['126']}; {'id': '126', 'type': 'expression_statement', 'children': ['127']}; {'id': '127', 'type': 'call', 'children': ['128', '131']}; {'id': '128', 'type': 'attribute', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'all_combinations_sweeps'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '131', 'type': 'argument_list', 'children': ['132']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'call', 'children': ['135', '138']}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'all_combinations'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '138', 'type': 'argument_list', 'children': ['139']}; {'id': '139', 'type': 'tuple', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'combinations_sweeps'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'combinations'}; {'id': '142', 'type': 'expression_statement', 'children': ['143']}; {'id': '143', 'type': 'assignment', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'sweeps_fully_factorial'}; {'id': '145', 'type': 'call', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '147', 'type': 'argument_list', 'children': ['148']}; {'id': '148', 'type': 'binary_operator', 'children': ['149', '153'], 'value': '-'}; {'id': '149', 'type': 'call', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '151', 'type': 'argument_list', 'children': ['152']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'sweeps_all'}; {'id': '153', 'type': 'call', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'all_combinations_sweeps'}; {'id': '157', 'type': 'for_statement', 'children': ['158', '159', '160']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'sweep'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'sweeps_fully_factorial'}; {'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': 'all_combinations'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '166', 'type': 'argument_list', 'children': ['167']}; {'id': '167', 'type': 'tuple', 'children': ['168', '170']}; {'id': '168', 'type': 'list', 'children': ['169'], 'value': '[sweep]'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'sweep'}; {'id': '170', 'type': 'list_comprehension', 'children': ['171', '173']}; {'id': '171', 'type': 'list', 'children': ['172'], 'value': '[x]'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '173', 'type': 'for_in_clause', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '175', 'type': 'call', 'children': ['176', '185']}; {'id': '176', 'type': 'attribute', 'children': ['177', '184']}; {'id': '177', 'type': 'subscript', 'children': ['178', '183']}; {'id': '178', 'type': 'subscript', 'children': ['179', '182']}; {'id': '179', 'type': 'attribute', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'experiment'}; {'id': '182', 'type': 'string', 'children': [], 'value': '"sweeps"'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'sweep'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '185', 'type': 'argument_list', 'children': []}; {'id': '186', 'type': 'expression_statement', 'children': ['187']}; {'id': '187', 'type': 'assignment', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'red_iter'}; {'id': '189', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '190', 'type': 'while_statement', 'children': ['191', '197']}; {'id': '191', 'type': 'comparison_operator', 'children': ['192', '196'], 'value': '>'}; {'id': '192', 'type': 'call', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '194', 'type': 'argument_list', 'children': ['195']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'all_combinations'}; {'id': '196', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '197', 'type': 'block', 'children': ['198', '204', '210', '220', '237', '250']}; {'id': '198', 'type': 'expression_statement', 'children': ['199']}; {'id': '199', 'type': 'assignment', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'comb1'}; {'id': '201', 'type': 'subscript', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'all_combinations'}; {'id': '203', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '204', 'type': 'expression_statement', 'children': ['205']}; {'id': '205', 'type': 'assignment', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'comb2'}; {'id': '207', 'type': 'subscript', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'all_combinations'}; {'id': '209', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'assignment', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'new_sweeps'}; {'id': '213', 'type': 'binary_operator', 'children': ['214', '217'], 'value': '+'}; {'id': '214', 'type': 'subscript', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'comb1'}; {'id': '216', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '217', 'type': 'subscript', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'comb2'}; {'id': '219', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'assignment', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'new_combinations'}; {'id': '223', 'type': 'list_comprehension', 'children': ['224', '227', '232']}; {'id': '224', 'type': 'binary_operator', 'children': ['225', '226'], 'value': '+'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '227', 'type': 'for_in_clause', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '229', 'type': 'subscript', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'comb1'}; {'id': '231', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '232', 'type': 'for_in_clause', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '234', 'type': 'subscript', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'comb2'}; {'id': '236', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'assignment', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'all_combinations'}; {'id': '240', 'type': 'binary_operator', 'children': ['241', '245'], 'value': '+'}; {'id': '241', 'type': 'list', 'children': ['242'], 'value': '[(new_sweeps, new_combinations)]'}; {'id': '242', 'type': 'tuple', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'new_sweeps'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'new_combinations'}; {'id': '245', 'type': 'subscript', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'all_combinations'}; {'id': '247', 'type': 'slice', 'children': ['248', '249']}; {'id': '248', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '249', 'type': 'colon', 'children': []}; {'id': '250', 'type': 'expression_statement', 'children': ['251']}; {'id': '251', 'type': 'augmented_assignment', 'children': ['252', '253'], 'value': '+='}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'red_iter'}; {'id': '253', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '254', 'type': 'expression_statement', 'children': ['255']}; {'id': '255', 'type': 'assignment', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'sweep_names'}; {'id': '257', 'type': 'subscript', 'children': ['258', '261']}; {'id': '258', 'type': 'subscript', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'all_combinations'}; {'id': '260', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '261', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '262', 'type': 'expression_statement', 'children': ['263']}; {'id': '263', 'type': 'assignment', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'combinations'}; {'id': '265', 'type': 'subscript', 'children': ['266', '269']}; {'id': '266', 'type': 'subscript', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'all_combinations'}; {'id': '268', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '269', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '270', 'type': 'for_statement', 'children': ['271', '272', '273']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'combination'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'combinations'}; {'id': '273', 'type': 'block', 'children': ['274', '292', '305', '343']}; {'id': '274', 'type': 'expression_statement', 'children': ['275']}; {'id': '275', 'type': 'assignment', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'scenario'}; {'id': '277', 'type': 'call', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'Scenario'}; {'id': '279', 'type': 'argument_list', 'children': ['280']}; {'id': '280', 'type': 'call', 'children': ['281', '284']}; {'id': '281', 'type': 'attribute', 'children': ['282', '283']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '283', 'type': 'identifier', 'children': [], 'value': '_apply_combination'}; {'id': '284', 'type': 'argument_list', 'children': ['285', '290', '291']}; {'id': '285', 'type': 'subscript', 'children': ['286', '289']}; {'id': '286', 'type': 'attribute', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'experiment'}; {'id': '289', 'type': 'string', 'children': [], 'value': '"base"'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'sweep_names'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'combination'}; {'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': 'scenario'}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '297', 'type': 'call', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '299', 'type': 'argument_list', 'children': ['300']}; {'id': '300', 'type': 'call', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'zip'}; {'id': '302', 'type': 'argument_list', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'sweep_names'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'combination'}; {'id': '305', 'type': 'if_statement', 'children': ['306', '307']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'generate_seed'}; {'id': '307', 'type': 'block', 'children': ['308']}; {'id': '308', 'type': 'if_statement', 'children': ['309', '314', '335']}; {'id': '309', 'type': 'comparison_operator', 'children': ['310', '311'], 'value': 'in'}; {'id': '310', 'type': 'string', 'children': [], 'value': '"@seed@"'}; {'id': '311', 'type': 'attribute', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'scenario'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'xml'}; {'id': '314', 'type': 'block', 'children': ['315']}; {'id': '315', 'type': 'expression_statement', 'children': ['316']}; {'id': '316', 'type': 'assignment', 'children': ['317', '320']}; {'id': '317', 'type': 'attribute', 'children': ['318', '319']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'scenario'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'xml'}; {'id': '320', 'type': 'call', 'children': ['321', '326']}; {'id': '321', 'type': 'attribute', 'children': ['322', '325']}; {'id': '322', 'type': 'attribute', 'children': ['323', '324']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'scenario'}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'xml'}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '326', 'type': 'argument_list', 'children': ['327', '328']}; {'id': '327', 'type': 'string', 'children': [], 'value': '"@seed@"'}; {'id': '328', 'type': 'call', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '330', 'type': 'argument_list', 'children': ['331']}; {'id': '331', 'type': 'call', 'children': ['332', '333']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'next'}; {'id': '333', 'type': 'argument_list', 'children': ['334']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'seed'}; {'id': '335', 'type': 'else_clause', 'children': ['336']}; {'id': '336', 'type': 'block', 'children': ['337']}; {'id': '337', 'type': 'raise_statement', 'children': ['338']}; {'id': '338', 'type': '()', 'children': ['339']}; {'id': '339', 'type': 'call', 'children': ['340', '341']}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'RuntimeError'}; {'id': '341', 'type': 'argument_list', 'children': ['342']}; {'id': '342', 'type': 'string', 'children': [], 'value': '"@seed@ placeholder is not found"'}; {'id': '343', 'type': 'expression_statement', 'children': ['344']}; {'id': '344', 'type': 'yield', 'children': ['345']}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'scenario'} | Generator function. Spits out scenarios for this experiment |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'complete'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'uio'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'dropped'}; {'id': '8', 'type': 'False', 'children': []}; {'id': '9', 'type': 'block', 'children': ['10', '19']}; {'id': '10', 'type': 'if_statement', 'children': ['11', '17']}; {'id': '11', 'type': 'boolean_operator', 'children': ['12', '15'], 'value': 'and'}; {'id': '12', 'type': 'attribute', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'dropped'}; {'id': '15', 'type': 'not_operator', 'children': ['16']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'dropped'}; {'id': '17', 'type': 'block', 'children': ['18']}; {'id': '18', 'type': 'return_statement', 'children': []}; {'id': '19', 'type': 'for_statement', 'children': ['20', '21', '24']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '21', 'type': 'list', 'children': ['22', '23'], 'value': "['src', 'dst']"}; {'id': '22', 'type': 'string', 'children': [], 'value': "'src'"}; {'id': '23', 'type': 'string', 'children': [], 'value': "'dst'"}; {'id': '24', 'type': 'block', 'children': ['25', '33', '44', '51', '62', '149', '174']}; {'id': '25', 'type': 'if_statement', 'children': ['26', '31']}; {'id': '26', 'type': 'call', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '28', 'type': 'argument_list', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '31', 'type': 'block', 'children': ['32']}; {'id': '32', 'type': 'continue_statement', 'children': []}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'call', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'uio'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'show'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'binary_operator', 'children': ['40', '43'], 'value': '+'}; {'id': '40', 'type': 'binary_operator', 'children': ['41', '42'], 'value': '+'}; {'id': '41', 'type': 'string', 'children': [], 'value': "'\\nEnter '"}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '43', 'type': 'string', 'children': [], 'value': "' for transaction:'"}; {'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': 'uio'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'show'}; {'id': '49', 'type': 'argument_list', 'children': ['50']}; {'id': '50', 'type': 'string', 'children': [], 'value': "''"}; {'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': 'uio'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'show'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'call', 'children': ['58', '61']}; {'id': '58', 'type': 'attribute', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'summary'}; {'id': '61', 'type': 'argument_list', 'children': []}; {'id': '62', 'type': 'try_statement', 'children': ['63', '137']}; {'id': '63', 'type': 'block', 'children': ['64', '68', '74']}; {'id': '64', 'type': 'expression_statement', 'children': ['65']}; {'id': '65', 'type': 'assignment', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'endpoints'}; {'id': '67', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'assignment', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'remaining'}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'amount'}; {'id': '74', 'type': 'while_statement', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'remaining'}; {'id': '76', 'type': 'block', 'children': ['77', '87', '105', '116']}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'assignment', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'account'}; {'id': '80', 'type': 'call', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'uio'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '84', 'type': 'argument_list', 'children': ['85', '86']}; {'id': '85', 'type': 'string', 'children': [], 'value': "' Enter account'"}; {'id': '86', 'type': 'None', 'children': []}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'amount'}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'uio'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'decimal'}; {'id': '94', 'type': 'argument_list', 'children': ['95', '96', '99', '102']}; {'id': '95', 'type': 'string', 'children': [], 'value': "' Enter amount'"}; {'id': '96', 'type': 'keyword_argument', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'default'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'remaining'}; {'id': '99', 'type': 'keyword_argument', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '101', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '102', 'type': 'keyword_argument', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'remaining'}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'call', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'endpoints'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '110', 'type': 'argument_list', 'children': ['111']}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'Endpoint'}; {'id': '113', 'type': 'argument_list', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'account'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'amount'}; {'id': '116', 'type': 'expression_statement', 'children': ['117']}; {'id': '117', 'type': 'assignment', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'remaining'}; {'id': '119', 'type': 'binary_operator', 'children': ['120', '123', '124'], 'value': '-'}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'amount'}; {'id': '123', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '124', 'type': 'call', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'call', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'map'}; {'id': '129', 'type': 'argument_list', 'children': ['130', '136']}; {'id': '130', 'type': 'lambda', 'children': ['131', '133']}; {'id': '131', 'type': 'lambda_parameters', 'children': ['132']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'amount'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'endpoints'}; {'id': '137', 'type': 'except_clause', 'children': ['138', '141']}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'ui'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'RejectWarning'}; {'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': 'sys'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'exit'}; {'id': '147', 'type': 'argument_list', 'children': ['148']}; {'id': '148', 'type': 'string', 'children': [], 'value': '"bye!"'}; {'id': '149', 'type': 'if_statement', 'children': ['150', '153']}; {'id': '150', 'type': 'comparison_operator', 'children': ['151', '152'], 'value': '=='}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '152', 'type': 'string', 'children': [], 'value': "'src'"}; {'id': '153', 'type': 'block', 'children': ['154']}; {'id': '154', 'type': 'expression_statement', 'children': ['155']}; {'id': '155', 'type': 'assignment', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'endpoints'}; {'id': '157', 'type': 'call', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'map'}; {'id': '159', 'type': 'argument_list', 'children': ['160', '173']}; {'id': '160', 'type': 'lambda', 'children': ['161', '163']}; {'id': '161', 'type': 'lambda_parameters', 'children': ['162']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '163', 'type': 'call', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'Endpoint'}; {'id': '165', 'type': 'argument_list', 'children': ['166', '169']}; {'id': '166', 'type': 'attribute', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'account'}; {'id': '169', 'type': 'unary_operator', 'children': ['170'], 'value': '-'}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'amount'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'endpoints'}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'call', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'setattr'}; {'id': '177', 'type': 'argument_list', 'children': ['178', '179', '180']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'endpoints'} | Query for all missing information in the transaction |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'process_match'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'fixed_text'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'cur'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'cur_end'}; {'id': '8', 'type': 'block', 'children': ['9', '13', '32', '68', '280']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'assignment', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '12', 'type': 'True', 'children': []}; {'id': '13', 'type': 'if_statement', 'children': ['14', '19', '26']}; {'id': '14', 'type': 'comparison_operator', 'children': ['15', '18'], 'value': '=='}; {'id': '15', 'type': 'subscript', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '17', 'type': 'string', 'children': [], 'value': "'type'"}; {'id': '18', 'type': 'string', 'children': [], 'value': "'prefix'"}; {'id': '19', 'type': 'block', 'children': ['20']}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'id': '23', 'type': 'binary_operator', 'children': ['24', '25'], 'value': '-'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'cur'}; {'id': '25', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '26', 'type': 'else_clause', 'children': ['27']}; {'id': '27', 'type': 'block', 'children': ['28']}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'cur_end'}; {'id': '32', 'type': 'if_statement', 'children': ['33', '41', '56']}; {'id': '33', 'type': 'call', 'children': ['34', '39']}; {'id': '34', 'type': 'attribute', 'children': ['35', '38']}; {'id': '35', 'type': 'subscript', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '37', 'type': 'string', 'children': [], 'value': "'scope'"}; {'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', '52']}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'scope'}; {'id': '45', 'type': 'subscript', 'children': ['46', '49']}; {'id': '46', 'type': 'subscript', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '48', 'type': 'string', 'children': [], 'value': "'scope'"}; {'id': '49', 'type': 'slice', 'children': ['50', '51']}; {'id': '50', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '51', 'type': 'colon', 'children': []}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'assignment', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'negative'}; {'id': '55', 'type': 'True', 'children': []}; {'id': '56', 'type': 'else_clause', 'children': ['57']}; {'id': '57', 'type': 'block', 'children': ['58', '64']}; {'id': '58', 'type': 'expression_statement', 'children': ['59']}; {'id': '59', 'type': 'assignment', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'scope'}; {'id': '61', 'type': 'subscript', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '63', 'type': 'string', 'children': [], 'value': "'scope'"}; {'id': '64', 'type': 'expression_statement', 'children': ['65']}; {'id': '65', 'type': 'assignment', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'negative'}; {'id': '67', 'type': 'False', 'children': []}; {'id': '68', 'type': 'if_statement', 'children': ['69', '72', '117', '167', '217']}; {'id': '69', 'type': 'comparison_operator', 'children': ['70', '71'], 'value': '=='}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'scope'}; {'id': '71', 'type': 'string', 'children': [], 'value': "'punctuation'"}; {'id': '72', 'type': 'block', 'children': ['73']}; {'id': '73', 'type': 'if_statement', 'children': ['74', '112']}; {'id': '74', 'type': '()', 'children': ['75']}; {'id': '75', 'type': 'not_operator', 'children': ['76']}; {'id': '76', 'type': 'binary_operator', 'children': ['77', '111'], 'value': '^'}; {'id': '77', 'type': '()', 'children': ['78']}; {'id': '78', 'type': 'boolean_operator', 'children': ['79', '103'], 'value': 'or'}; {'id': '79', 'type': 'boolean_operator', 'children': ['80', '90'], 'value': 'or'}; {'id': '80', 'type': '()', 'children': ['81']}; {'id': '81', 'type': 'boolean_operator', 'children': ['82', '85'], 'value': 'and'}; {'id': '82', 'type': 'comparison_operator', 'children': ['83', '84'], 'value': '<'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'id': '84', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '85', 'type': 'comparison_operator', 'children': ['86', '89'], 'value': '=='}; {'id': '86', 'type': 'subscript', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '88', 'type': 'string', 'children': [], 'value': "'type'"}; {'id': '89', 'type': 'string', 'children': [], 'value': "'prefix'"}; {'id': '90', 'type': '()', 'children': ['91']}; {'id': '91', 'type': 'boolean_operator', 'children': ['92', '98'], 'value': 'and'}; {'id': '92', 'type': 'comparison_operator', 'children': ['93', '94'], 'value': '>='}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'id': '94', 'type': 'call', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '96', 'type': 'argument_list', 'children': ['97']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'fixed_text'}; {'id': '98', 'type': 'comparison_operator', 'children': ['99', '102'], 'value': '=='}; {'id': '99', 'type': 'subscript', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '101', 'type': 'string', 'children': [], 'value': "'type'"}; {'id': '102', 'type': 'string', 'children': [], 'value': "'suffix'"}; {'id': '103', 'type': 'call', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'validate'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'is_punctuation'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'subscript', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'fixed_text'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'negative'}; {'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': 'replace'}; {'id': '116', 'type': 'False', 'children': []}; {'id': '117', 'type': 'elif_clause', 'children': ['118', '121']}; {'id': '118', 'type': 'comparison_operator', 'children': ['119', '120'], 'value': '=='}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'scope'}; {'id': '120', 'type': 'string', 'children': [], 'value': "'vowel'"}; {'id': '121', 'type': 'block', 'children': ['122']}; {'id': '122', 'type': 'if_statement', 'children': ['123', '162']}; {'id': '123', 'type': '()', 'children': ['124']}; {'id': '124', 'type': 'not_operator', 'children': ['125']}; {'id': '125', 'type': 'binary_operator', 'children': ['126', '161'], 'value': '^'}; {'id': '126', 'type': '()', 'children': ['127']}; {'id': '127', 'type': 'boolean_operator', 'children': ['128', '153'], 'value': 'and'}; {'id': '128', 'type': '()', 'children': ['129']}; {'id': '129', 'type': 'boolean_operator', 'children': ['130', '140'], 'value': 'or'}; {'id': '130', 'type': '()', 'children': ['131']}; {'id': '131', 'type': 'boolean_operator', 'children': ['132', '135'], 'value': 'and'}; {'id': '132', 'type': 'comparison_operator', 'children': ['133', '134'], 'value': '>='}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'id': '134', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '135', 'type': 'comparison_operator', 'children': ['136', '139'], 'value': '=='}; {'id': '136', 'type': 'subscript', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '138', 'type': 'string', 'children': [], 'value': "'type'"}; {'id': '139', 'type': 'string', 'children': [], 'value': "'prefix'"}; {'id': '140', 'type': '()', 'children': ['141']}; {'id': '141', 'type': 'boolean_operator', 'children': ['142', '148'], 'value': 'and'}; {'id': '142', 'type': 'comparison_operator', 'children': ['143', '144'], 'value': '<'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'id': '144', 'type': 'call', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '146', 'type': 'argument_list', 'children': ['147']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'fixed_text'}; {'id': '148', 'type': 'comparison_operator', 'children': ['149', '152'], 'value': '=='}; {'id': '149', 'type': 'subscript', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '151', 'type': 'string', 'children': [], 'value': "'type'"}; {'id': '152', 'type': 'string', 'children': [], 'value': "'suffix'"}; {'id': '153', 'type': 'call', 'children': ['154', '157']}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'validate'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'is_vowel'}; {'id': '157', 'type': 'argument_list', 'children': ['158']}; {'id': '158', 'type': 'subscript', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'fixed_text'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'negative'}; {'id': '162', 'type': 'block', 'children': ['163']}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'assignment', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '166', 'type': 'False', 'children': []}; {'id': '167', 'type': 'elif_clause', 'children': ['168', '171']}; {'id': '168', 'type': 'comparison_operator', 'children': ['169', '170'], 'value': '=='}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'scope'}; {'id': '170', 'type': 'string', 'children': [], 'value': "'consonant'"}; {'id': '171', 'type': 'block', 'children': ['172']}; {'id': '172', 'type': 'if_statement', 'children': ['173', '212']}; {'id': '173', 'type': '()', 'children': ['174']}; {'id': '174', 'type': 'not_operator', 'children': ['175']}; {'id': '175', 'type': 'binary_operator', 'children': ['176', '211'], 'value': '^'}; {'id': '176', 'type': '()', 'children': ['177']}; {'id': '177', 'type': 'boolean_operator', 'children': ['178', '203'], 'value': 'and'}; {'id': '178', 'type': '()', 'children': ['179']}; {'id': '179', 'type': 'boolean_operator', 'children': ['180', '190'], 'value': 'or'}; {'id': '180', 'type': '()', 'children': ['181']}; {'id': '181', 'type': 'boolean_operator', 'children': ['182', '185'], 'value': 'and'}; {'id': '182', 'type': 'comparison_operator', 'children': ['183', '184'], 'value': '>='}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'id': '184', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '185', 'type': 'comparison_operator', 'children': ['186', '189'], 'value': '=='}; {'id': '186', 'type': 'subscript', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '188', 'type': 'string', 'children': [], 'value': "'type'"}; {'id': '189', 'type': 'string', 'children': [], 'value': "'prefix'"}; {'id': '190', 'type': '()', 'children': ['191']}; {'id': '191', 'type': 'boolean_operator', 'children': ['192', '198'], 'value': 'and'}; {'id': '192', 'type': 'comparison_operator', 'children': ['193', '194'], 'value': '<'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'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': 'fixed_text'}; {'id': '198', 'type': 'comparison_operator', 'children': ['199', '202'], 'value': '=='}; {'id': '199', 'type': 'subscript', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '201', 'type': 'string', 'children': [], 'value': "'type'"}; {'id': '202', 'type': 'string', 'children': [], 'value': "'suffix'"}; {'id': '203', 'type': 'call', 'children': ['204', '207']}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'validate'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'is_consonant'}; {'id': '207', 'type': 'argument_list', 'children': ['208']}; {'id': '208', 'type': 'subscript', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'fixed_text'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'chk'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'negative'}; {'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': 'replace'}; {'id': '216', 'type': 'False', 'children': []}; {'id': '217', 'type': 'elif_clause', 'children': ['218', '221']}; {'id': '218', 'type': 'comparison_operator', 'children': ['219', '220'], 'value': '=='}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'scope'}; {'id': '220', 'type': 'string', 'children': [], 'value': "'exact'"}; {'id': '221', 'type': 'block', 'children': ['222', '261']}; {'id': '222', 'type': 'if_statement', 'children': ['223', '228', '244']}; {'id': '223', 'type': 'comparison_operator', 'children': ['224', '227'], 'value': '=='}; {'id': '224', 'type': 'subscript', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '226', 'type': 'string', 'children': [], 'value': "'type'"}; {'id': '227', 'type': 'string', 'children': [], 'value': "'prefix'"}; {'id': '228', 'type': 'block', 'children': ['229', '240']}; {'id': '229', 'type': 'expression_statement', 'children': ['230']}; {'id': '230', 'type': 'assignment', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'exact_start'}; {'id': '232', 'type': 'binary_operator', 'children': ['233', '234'], 'value': '-'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'cur'}; {'id': '234', 'type': 'call', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '236', 'type': 'argument_list', 'children': ['237']}; {'id': '237', 'type': 'subscript', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '239', 'type': 'string', 'children': [], 'value': "'value'"}; {'id': '240', 'type': 'expression_statement', 'children': ['241']}; {'id': '241', 'type': 'assignment', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'exact_end'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'cur'}; {'id': '244', 'type': 'else_clause', 'children': ['245']}; {'id': '245', 'type': 'block', 'children': ['246', '250']}; {'id': '246', 'type': 'expression_statement', 'children': ['247']}; {'id': '247', 'type': 'assignment', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'exact_start'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'cur_end'}; {'id': '250', 'type': 'expression_statement', 'children': ['251']}; {'id': '251', 'type': 'assignment', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'exact_end'}; {'id': '253', 'type': 'binary_operator', 'children': ['254', '255'], 'value': '+'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'cur_end'}; {'id': '255', 'type': 'call', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '257', 'type': 'argument_list', 'children': ['258']}; {'id': '258', 'type': 'subscript', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '260', 'type': 'string', 'children': [], 'value': "'value'"}; {'id': '261', 'type': 'if_statement', 'children': ['262', '275']}; {'id': '262', 'type': 'not_operator', 'children': ['263']}; {'id': '263', 'type': 'call', 'children': ['264', '267']}; {'id': '264', 'type': 'attribute', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'validate'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'is_exact'}; {'id': '267', 'type': 'argument_list', 'children': ['268', '271', '272', '273', '274']}; {'id': '268', 'type': 'subscript', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '270', 'type': 'string', 'children': [], 'value': "'value'"}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'fixed_text'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'exact_start'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'exact_end'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'negative'}; {'id': '275', 'type': 'block', 'children': ['276']}; {'id': '276', 'type': 'expression_statement', 'children': ['277']}; {'id': '277', 'type': 'assignment', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '279', 'type': 'False', 'children': []}; {'id': '280', 'type': 'return_statement', 'children': ['281']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'replace'} | Processes a single match in rules |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'unflatten'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'processed'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'merge_rules'}; {'id': '6', 'type': 'block', 'children': ['7', '13', '179']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'unflattened'}; {'id': '10', 'type': 'call', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'OrderedDict'}; {'id': '12', 'type': 'argument_list', 'children': []}; {'id': '13', 'type': 'for_statement', 'children': ['14', '15', '16']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'processed'}; {'id': '16', 'type': 'block', 'children': ['17', '21']}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'current_node'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'unflattened'}; {'id': '21', 'type': 'for_statement', 'children': ['22', '25', '30']}; {'id': '22', 'type': 'pattern_list', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '25', 'type': 'call', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '27', 'type': 'argument_list', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '29', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '30', 'type': 'block', 'children': ['31', '105', '114', '124', '148', '169', '175']}; {'id': '31', 'type': 'if_statement', 'children': ['32', '37']}; {'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': 'part'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'IdValue'}; {'id': '37', 'type': 'block', 'children': ['38', '104']}; {'id': '38', 'type': 'for_statement', 'children': ['39', '40', '41', '62']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'current_node'}; {'id': '41', 'type': 'block', 'children': ['42']}; {'id': '42', 'type': 'if_statement', 'children': ['43', '56']}; {'id': '43', 'type': 'boolean_operator', 'children': ['44', '49'], 'value': 'and'}; {'id': '44', 'type': 'call', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '46', 'type': 'argument_list', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'IdDict'}; {'id': '49', 'type': 'comparison_operator', 'children': ['50', '53'], 'value': '=='}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'identifier'}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'identifier'}; {'id': '56', 'type': 'block', 'children': ['57', '61']}; {'id': '57', 'type': 'expression_statement', 'children': ['58']}; {'id': '58', 'type': 'assignment', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'current_node'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '61', 'type': 'break_statement', 'children': []}; {'id': '62', 'type': 'else_clause', 'children': ['63']}; {'id': '63', 'type': 'block', 'children': ['64', '70', '78', '93', '100']}; {'id': '64', 'type': 'expression_statement', 'children': ['65']}; {'id': '65', 'type': 'assignment', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'new_node'}; {'id': '67', 'type': 'call', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'IdDict'}; {'id': '69', 'type': 'argument_list', 'children': []}; {'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': 'new_node'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'identifier'}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'identifier'}; {'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': 'part'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'original_value'}; {'id': '83', 'type': 'None', 'children': []}; {'id': '84', 'type': 'block', 'children': ['85']}; {'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': 'new_node'}; {'id': '89', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'original_value'}; {'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': 'current_node'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'new_node'}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'assignment', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'current_node'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'new_node'}; {'id': '104', 'type': 'continue_statement', 'children': []}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'assignment', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '108', 'type': 'call', 'children': ['109', '112']}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'current_node'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '114', 'type': 'if_statement', 'children': ['115', '118']}; {'id': '115', 'type': 'comparison_operator', 'children': ['116', '117'], 'value': 'is'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '117', 'type': 'None', 'children': []}; {'id': '118', 'type': 'block', 'children': ['119', '123']}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'current_node'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '123', 'type': 'continue_statement', 'children': []}; {'id': '124', 'type': 'if_statement', 'children': ['125', '131']}; {'id': '125', 'type': 'comparison_operator', 'children': ['126', '130'], 'value': '=='}; {'id': '126', 'type': 'call', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '128', 'type': 'argument_list', 'children': ['129']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '131', 'type': 'block', 'children': ['132', '147']}; {'id': '132', 'type': 'if_statement', 'children': ['133', '138']}; {'id': '133', 'type': 'comparison_operator', 'children': ['134', '137'], 'value': 'is'}; {'id': '134', 'type': 'subscript', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'processed'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '137', 'type': 'None', 'children': []}; {'id': '138', 'type': 'block', 'children': ['139']}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '144']}; {'id': '141', 'type': 'subscript', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'current_node'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '144', 'type': 'subscript', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'processed'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '147', 'type': 'continue_statement', 'children': []}; {'id': '148', 'type': 'if_statement', 'children': ['149', '156', '161']}; {'id': '149', 'type': 'call', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '151', 'type': 'argument_list', 'children': ['152', '155']}; {'id': '152', 'type': 'subscript', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'IdValue'}; {'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': 'new_node'}; {'id': '160', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '161', 'type': 'else_clause', 'children': ['162']}; {'id': '162', 'type': 'block', 'children': ['163']}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'assignment', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'new_node'}; {'id': '166', 'type': 'call', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'OrderedDict'}; {'id': '168', 'type': 'argument_list', 'children': []}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'assignment', 'children': ['171', '174']}; {'id': '171', 'type': 'subscript', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'current_node'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'new_node'}; {'id': '175', 'type': 'expression_statement', 'children': ['176']}; {'id': '176', 'type': 'assignment', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'current_node'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'new_node'}; {'id': '179', 'type': 'return_statement', 'children': ['180']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'unflattened'} | Unflattens a processed object into a JSON object. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'formatFlow'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '5', 'type': 'block', 'children': ['6', '10', '14', '18', '22', '75', '84', '245']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '9', 'type': 'string', 'children': [], 'value': '""'}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'shifts'}; {'id': '13', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '17', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'assignment', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'nextIsList'}; {'id': '21', 'type': 'False', 'children': []}; {'id': '22', 'type': 'function_definition', 'children': ['23', '24', '28']}; {'id': '23', 'type': 'function_name', 'children': [], 'value': 'IsNextList'}; {'id': '24', 'type': 'parameters', 'children': ['25', '26', '27']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'maxIndex'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'buf'}; {'id': '28', 'type': 'block', 'children': ['29', '36', '47', '73']}; {'id': '29', 'type': 'if_statement', 'children': ['30', '33']}; {'id': '30', 'type': 'comparison_operator', 'children': ['31', '32'], 'value': '=='}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'maxIndex'}; {'id': '33', 'type': 'block', 'children': ['34']}; {'id': '34', 'type': 'return_statement', 'children': ['35']}; {'id': '35', 'type': 'False', 'children': []}; {'id': '36', 'type': 'if_statement', 'children': ['37', '44']}; {'id': '37', 'type': 'comparison_operator', 'children': ['38', '43'], 'value': '=='}; {'id': '38', 'type': 'subscript', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'buf'}; {'id': '40', 'type': 'binary_operator', 'children': ['41', '42'], 'value': '+'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '42', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '43', 'type': 'string', 'children': [], 'value': "'<'"}; {'id': '44', 'type': 'block', 'children': ['45']}; {'id': '45', 'type': 'return_statement', 'children': ['46']}; {'id': '46', 'type': 'True', 'children': []}; {'id': '47', 'type': 'if_statement', 'children': ['48', '53']}; {'id': '48', 'type': 'comparison_operator', 'children': ['49', '50'], 'value': '<'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '50', 'type': 'binary_operator', 'children': ['51', '52'], 'value': '-'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'maxIndex'}; {'id': '52', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '53', 'type': 'block', 'children': ['54']}; {'id': '54', 'type': 'if_statement', 'children': ['55', '70']}; {'id': '55', 'type': 'boolean_operator', 'children': ['56', '63'], 'value': 'and'}; {'id': '56', 'type': 'comparison_operator', 'children': ['57', '62'], 'value': '=='}; {'id': '57', 'type': 'subscript', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'buf'}; {'id': '59', 'type': 'binary_operator', 'children': ['60', '61'], 'value': '+'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '61', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '62', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '63', 'type': 'comparison_operator', 'children': ['64', '69'], 'value': '=='}; {'id': '64', 'type': 'subscript', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'buf'}; {'id': '66', 'type': 'binary_operator', 'children': ['67', '68'], 'value': '+'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '68', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '69', 'type': 'string', 'children': [], 'value': "'<'"}; {'id': '70', 'type': 'block', 'children': ['71']}; {'id': '71', 'type': 'return_statement', 'children': ['72']}; {'id': '72', 'type': 'True', 'children': []}; {'id': '73', 'type': 'return_statement', 'children': ['74']}; {'id': '74', 'type': 'False', 'children': []}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'maxIndex'}; {'id': '78', 'type': 'binary_operator', 'children': ['79', '83'], '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': 'identifier', 'children': [], 'value': 's'}; {'id': '83', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '84', 'type': 'for_statement', 'children': ['85', '86', '93']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '86', 'type': 'call', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '88', 'type': 'argument_list', 'children': ['89']}; {'id': '89', 'type': 'call', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '91', 'type': 'argument_list', 'children': ['92']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '93', 'type': 'block', 'children': ['94', '100', '147', '179', '237', '241']}; {'id': '94', 'type': 'expression_statement', 'children': ['95']}; {'id': '95', 'type': 'assignment', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'sym'}; {'id': '97', 'type': 'subscript', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '100', 'type': 'if_statement', 'children': ['101', '104']}; {'id': '101', 'type': 'comparison_operator', 'children': ['102', '103'], 'value': '=='}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'sym'}; {'id': '103', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '104', 'type': 'block', 'children': ['105', '112', '120', '124', '146']}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'assignment', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'lastShift'}; {'id': '108', 'type': 'subscript', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'shifts'}; {'id': '110', 'type': 'unary_operator', 'children': ['111'], 'value': '-'}; {'id': '111', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'id': '113', 'type': 'augmented_assignment', 'children': ['114', '115'], 'value': '+='}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '115', 'type': 'binary_operator', 'children': ['116', '117'], 'value': '+'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'sym'}; {'id': '117', 'type': 'binary_operator', 'children': ['118', '119'], 'value': '*'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'lastShift'}; {'id': '119', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'lastShift'}; {'id': '124', 'type': 'if_statement', 'children': ['125', '128']}; {'id': '125', 'type': 'comparison_operator', 'children': ['126', '127'], 'value': '<'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'maxIndex'}; {'id': '128', 'type': 'block', 'children': ['129']}; {'id': '129', 'type': 'if_statement', 'children': ['130', '137']}; {'id': '130', 'type': 'comparison_operator', 'children': ['131', '136'], 'value': 'not'}; {'id': '131', 'type': 'subscript', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '133', 'type': 'binary_operator', 'children': ['134', '135'], 'value': '+'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '135', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '136', 'type': 'string', 'children': [], 'value': '"<>"'}; {'id': '137', 'type': 'block', 'children': ['138', '142']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'augmented_assignment', 'children': ['140', '141'], 'value': '+='}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '141', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '142', 'type': 'expression_statement', 'children': ['143']}; {'id': '143', 'type': 'augmented_assignment', 'children': ['144', '145'], 'value': '+='}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '145', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '146', 'type': 'continue_statement', 'children': []}; {'id': '147', 'type': 'if_statement', 'children': ['148', '151']}; {'id': '148', 'type': 'comparison_operator', 'children': ['149', '150'], 'value': '=='}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'sym'}; {'id': '150', 'type': 'string', 'children': [], 'value': '"<"'}; {'id': '151', 'type': 'block', 'children': ['152', '170', '174', '178']}; {'id': '152', 'type': 'if_statement', 'children': ['153', '156', '164']}; {'id': '153', 'type': 'comparison_operator', 'children': ['154', '155'], 'value': '=='}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'nextIsList'}; {'id': '155', 'type': 'False', 'children': []}; {'id': '156', 'type': 'block', 'children': ['157']}; {'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': 'shifts'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '162', 'type': 'argument_list', 'children': ['163']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '164', 'type': 'else_clause', 'children': ['165']}; {'id': '165', 'type': 'block', 'children': ['166']}; {'id': '166', 'type': 'expression_statement', 'children': ['167']}; {'id': '167', 'type': 'assignment', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'nextIsList'}; {'id': '169', 'type': 'False', 'children': []}; {'id': '170', 'type': 'expression_statement', 'children': ['171']}; {'id': '171', 'type': 'augmented_assignment', 'children': ['172', '173'], 'value': '+='}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '173', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'augmented_assignment', 'children': ['176', '177'], 'value': '+='}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'sym'}; {'id': '178', 'type': 'continue_statement', 'children': []}; {'id': '179', 'type': 'if_statement', 'children': ['180', '183']}; {'id': '180', 'type': 'comparison_operator', 'children': ['181', '182'], 'value': '=='}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'sym'}; {'id': '182', 'type': 'string', 'children': [], 'value': '">"'}; {'id': '183', 'type': 'block', 'children': ['184', '191', '195', '201', '205', '209', '213', '236']}; {'id': '184', 'type': 'expression_statement', 'children': ['185']}; {'id': '185', 'type': 'assignment', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'shift'}; {'id': '187', 'type': 'subscript', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'shifts'}; {'id': '189', 'type': 'unary_operator', 'children': ['190'], 'value': '-'}; {'id': '190', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '191', 'type': 'expression_statement', 'children': ['192']}; {'id': '192', 'type': 'augmented_assignment', 'children': ['193', '194'], 'value': '+='}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '194', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '195', 'type': 'expression_statement', 'children': ['196']}; {'id': '196', 'type': 'augmented_assignment', 'children': ['197', '198'], 'value': '+='}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '198', 'type': 'binary_operator', 'children': ['199', '200'], 'value': '*'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'shift'}; {'id': '200', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '201', 'type': 'expression_statement', 'children': ['202']}; {'id': '202', 'type': 'assignment', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'shift'}; {'id': '205', 'type': 'expression_statement', 'children': ['206']}; {'id': '206', 'type': 'augmented_assignment', 'children': ['207', '208'], 'value': '+='}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'sym'}; {'id': '209', 'type': 'expression_statement', 'children': ['210']}; {'id': '210', 'type': 'augmented_assignment', 'children': ['211', '212'], 'value': '+='}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '212', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '213', 'type': 'if_statement', 'children': ['214', '220', '225']}; {'id': '214', 'type': 'call', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'IsNextList'}; {'id': '216', 'type': 'argument_list', 'children': ['217', '218', '219']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'maxIndex'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '220', 'type': 'block', 'children': ['221']}; {'id': '221', 'type': 'expression_statement', 'children': ['222']}; {'id': '222', 'type': 'assignment', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'nextIsList'}; {'id': '224', 'type': 'True', 'children': []}; {'id': '225', 'type': 'else_clause', 'children': ['226']}; {'id': '226', 'type': 'block', 'children': ['227', '232']}; {'id': '227', 'type': 'delete_statement', 'children': ['228']}; {'id': '228', 'type': 'subscript', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'shifts'}; {'id': '230', 'type': 'unary_operator', 'children': ['231'], 'value': '-'}; {'id': '231', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '232', 'type': 'expression_statement', 'children': ['233']}; {'id': '233', 'type': 'assignment', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'nextIsList'}; {'id': '235', 'type': 'False', 'children': []}; {'id': '236', 'type': 'continue_statement', 'children': []}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'augmented_assignment', 'children': ['239', '240'], 'value': '+='}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'sym'}; {'id': '241', 'type': 'expression_statement', 'children': ['242']}; {'id': '242', 'type': 'augmented_assignment', 'children': ['243', '244'], 'value': '+='}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '244', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '245', 'type': 'return_statement', 'children': ['246']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'result'} | Reformats the control flow output |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'train'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'training_set'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'iterations'}; {'id': '8', 'type': 'integer', 'children': [], 'value': '500'}; {'id': '9', 'type': 'block', 'children': ['10', '177', '189', '201', '210', '221', '232', '236', '311', '320']}; {'id': '10', 'type': 'if_statement', 'children': ['11', '17', '99']}; {'id': '11', 'type': 'comparison_operator', 'children': ['12', '16'], 'value': '>'}; {'id': '12', 'type': 'call', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '14', 'type': 'argument_list', 'children': ['15']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'training_set'}; {'id': '16', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '17', 'type': 'block', 'children': ['18', '35']}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'assignment', 'children': ['20', '23']}; {'id': '20', 'type': 'attribute', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': '__X'}; {'id': '23', 'type': 'call', 'children': ['24', '27']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'matrix'}; {'id': '27', 'type': 'argument_list', 'children': ['28']}; {'id': '28', 'type': 'list_comprehension', 'children': ['29', '32']}; {'id': '29', 'type': 'subscript', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'example'}; {'id': '31', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '32', 'type': 'for_in_clause', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'example'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'training_set'}; {'id': '35', 'type': 'if_statement', 'children': ['36', '41', '67']}; {'id': '36', 'type': 'comparison_operator', 'children': ['37', '40'], 'value': '=='}; {'id': '37', 'type': 'attribute', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': '__num_labels'}; {'id': '40', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '41', 'type': 'block', 'children': ['42']}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '47']}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': '__y'}; {'id': '47', 'type': 'call', 'children': ['48', '62']}; {'id': '48', 'type': 'attribute', 'children': ['49', '61']}; {'id': '49', 'type': 'call', 'children': ['50', '53']}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'matrix'}; {'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': 'example'}; {'id': '57', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '58', 'type': 'for_in_clause', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'example'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'training_set'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'reshape'}; {'id': '62', 'type': 'argument_list', 'children': ['63']}; {'id': '63', 'type': 'tuple', 'children': ['64', '66']}; {'id': '64', 'type': 'unary_operator', 'children': ['65'], 'value': '-'}; {'id': '65', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '66', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '67', 'type': 'else_clause', 'children': ['68']}; {'id': '68', 'type': 'block', 'children': ['69', '80']}; {'id': '69', 'type': 'expression_statement', 'children': ['70']}; {'id': '70', 'type': 'assignment', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'eye'}; {'id': '72', 'type': 'call', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'eye'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': '__num_labels'}; {'id': '80', 'type': 'expression_statement', 'children': ['81']}; {'id': '81', 'type': 'assignment', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': '__y'}; {'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': 'matrix'}; {'id': '89', 'type': 'argument_list', 'children': ['90']}; {'id': '90', 'type': 'list_comprehension', 'children': ['91', '96']}; {'id': '91', 'type': 'subscript', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'eye'}; {'id': '93', 'type': 'subscript', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'example'}; {'id': '95', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '96', 'type': 'for_in_clause', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'example'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'training_set'}; {'id': '99', 'type': 'else_clause', 'children': ['100']}; {'id': '100', 'type': 'block', 'children': ['101', '114']}; {'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': '__X'}; {'id': '106', 'type': 'call', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'matrix'}; {'id': '110', 'type': 'argument_list', 'children': ['111']}; {'id': '111', 'type': 'subscript', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'training_set'}; {'id': '113', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '114', 'type': 'if_statement', 'children': ['115', '120', '142']}; {'id': '115', 'type': 'comparison_operator', 'children': ['116', '119'], 'value': '=='}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': '__num_labels'}; {'id': '119', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '120', 'type': 'block', 'children': ['121']}; {'id': '121', 'type': 'expression_statement', 'children': ['122']}; {'id': '122', 'type': 'assignment', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': '__y'}; {'id': '126', 'type': 'call', 'children': ['127', '137']}; {'id': '127', 'type': 'attribute', 'children': ['128', '136']}; {'id': '128', 'type': 'call', 'children': ['129', '132']}; {'id': '129', 'type': 'attribute', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'matrix'}; {'id': '132', 'type': 'argument_list', 'children': ['133']}; {'id': '133', 'type': 'subscript', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'training_set'}; {'id': '135', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'reshape'}; {'id': '137', 'type': 'argument_list', 'children': ['138']}; {'id': '138', 'type': 'tuple', 'children': ['139', '141']}; {'id': '139', 'type': 'unary_operator', 'children': ['140'], 'value': '-'}; {'id': '140', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '141', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '142', 'type': 'else_clause', 'children': ['143']}; {'id': '143', 'type': 'block', 'children': ['144', '155']}; {'id': '144', 'type': 'expression_statement', 'children': ['145']}; {'id': '145', 'type': 'assignment', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'eye'}; {'id': '147', 'type': 'call', 'children': ['148', '151']}; {'id': '148', 'type': 'attribute', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'eye'}; {'id': '151', 'type': 'argument_list', 'children': ['152']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': '__num_labels'}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'assignment', 'children': ['157', '160']}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': '__y'}; {'id': '160', 'type': 'call', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'matrix'}; {'id': '164', 'type': 'argument_list', 'children': ['165']}; {'id': '165', 'type': 'list_comprehension', 'children': ['166', '169', '174']}; {'id': '166', 'type': 'subscript', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'eye'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '169', 'type': 'for_in_clause', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'sublist'}; {'id': '171', 'type': 'subscript', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'training_set'}; {'id': '173', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '174', 'type': 'for_in_clause', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'sublist'}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '182']}; {'id': '179', 'type': 'attribute', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': '__m'}; {'id': '182', 'type': 'subscript', 'children': ['183', '188']}; {'id': '183', 'type': 'attribute', 'children': ['184', '187']}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': '__X'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'shape'}; {'id': '188', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'assignment', 'children': ['191', '194']}; {'id': '191', 'type': 'attribute', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': '__input_layer_size'}; {'id': '194', 'type': 'subscript', 'children': ['195', '200']}; {'id': '195', 'type': 'attribute', 'children': ['196', '199']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': '__X'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'shape'}; {'id': '200', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '201', 'type': 'expression_statement', 'children': ['202']}; {'id': '202', 'type': 'assignment', 'children': ['203', '206']}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': '__sizes'}; {'id': '206', 'type': 'list', 'children': ['207'], 'value': '[self.__input_layer_size]'}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': '__input_layer_size'}; {'id': '210', 'type': 'expression_statement', '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': 'self'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': '__sizes'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '217', 'type': 'argument_list', 'children': ['218']}; {'id': '218', 'type': 'attribute', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': '__hidden_layers'}; {'id': '221', 'type': 'expression_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': 'self'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': '__sizes'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '228', 'type': 'argument_list', 'children': ['229']}; {'id': '229', 'type': 'attribute', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': '__num_labels'}; {'id': '232', 'type': 'expression_statement', 'children': ['233']}; {'id': '233', 'type': 'assignment', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'initial_theta'}; {'id': '235', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '236', 'type': 'for_statement', 'children': ['237', '238', '249']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '238', 'type': 'call', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '240', 'type': 'argument_list', 'children': ['241']}; {'id': '241', 'type': 'binary_operator', 'children': ['242', '248'], 'value': '-'}; {'id': '242', 'type': 'call', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '244', 'type': 'argument_list', 'children': ['245']}; {'id': '245', 'type': 'attribute', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': '__sizes'}; {'id': '248', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '249', 'type': 'block', 'children': ['250', '278']}; {'id': '250', 'type': 'expression_statement', 'children': ['251']}; {'id': '251', 'type': 'assignment', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'epsilon'}; {'id': '253', 'type': 'binary_operator', 'children': ['254', '260'], 'value': '/'}; {'id': '254', 'type': 'call', 'children': ['255', '258']}; {'id': '255', 'type': 'attribute', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'sqrt'}; {'id': '258', 'type': 'argument_list', 'children': ['259']}; {'id': '259', 'type': 'integer', 'children': [], 'value': '6'}; {'id': '260', 'type': 'call', 'children': ['261', '264']}; {'id': '261', 'type': 'attribute', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'sqrt'}; {'id': '264', 'type': 'argument_list', 'children': ['265']}; {'id': '265', 'type': 'binary_operator', 'children': ['266', '271'], 'value': '+'}; {'id': '266', 'type': 'subscript', 'children': ['267', '270']}; {'id': '267', 'type': 'attribute', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': '__sizes'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '271', 'type': 'subscript', 'children': ['272', '275']}; {'id': '272', 'type': 'attribute', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': '__sizes'}; {'id': '275', 'type': 'binary_operator', 'children': ['276', '277'], 'value': '+'}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '277', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '278', 'type': 'expression_statement', 'children': ['279']}; {'id': '279', 'type': 'call', 'children': ['280', '283']}; {'id': '280', 'type': 'attribute', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'initial_theta'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '283', 'type': 'argument_list', 'children': ['284']}; {'id': '284', 'type': 'binary_operator', 'children': ['285', '310'], 'value': '-'}; {'id': '285', 'type': 'binary_operator', 'children': ['286', '309'], 'value': '*'}; {'id': '286', 'type': 'binary_operator', 'children': ['287', '308'], 'value': '*'}; {'id': '287', 'type': 'call', 'children': ['288', '293']}; {'id': '288', 'type': 'attribute', 'children': ['289', '292']}; {'id': '289', 'type': 'attribute', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'random'}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'rand'}; {'id': '293', 'type': 'argument_list', 'children': ['294', '301']}; {'id': '294', 'type': 'subscript', 'children': ['295', '298']}; {'id': '295', 'type': 'attribute', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': '__sizes'}; {'id': '298', 'type': 'binary_operator', 'children': ['299', '300'], 'value': '+'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '300', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '301', 'type': 'binary_operator', 'children': ['302', '307'], 'value': '+'}; {'id': '302', 'type': 'subscript', 'children': ['303', '306']}; {'id': '303', 'type': 'attribute', 'children': ['304', '305']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '305', 'type': 'identifier', 'children': [], 'value': '__sizes'}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '307', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '308', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'epsilon'}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'epsilon'}; {'id': '311', 'type': 'expression_statement', 'children': ['312']}; {'id': '312', 'type': 'assignment', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'initial_theta'}; {'id': '314', 'type': 'call', 'children': ['315', '318']}; {'id': '315', 'type': 'attribute', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '317', 'type': 'identifier', 'children': [], 'value': '__unroll'}; {'id': '318', 'type': 'argument_list', 'children': ['319']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'initial_theta'}; {'id': '320', 'type': 'expression_statement', 'children': ['321']}; {'id': '321', 'type': 'assignment', 'children': ['322', '325']}; {'id': '322', 'type': 'attribute', 'children': ['323', '324']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '324', 'type': 'identifier', 'children': [], 'value': '__thetas'}; {'id': '325', 'type': 'call', 'children': ['326', '329']}; {'id': '326', 'type': 'attribute', 'children': ['327', '328']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '328', 'type': 'identifier', 'children': [], 'value': '__roll'}; {'id': '329', 'type': 'argument_list', 'children': ['330']}; {'id': '330', 'type': 'call', 'children': ['331', '332']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'fmin_bfgs'}; {'id': '332', 'type': 'argument_list', 'children': ['333', '336', '337', '342']}; {'id': '333', 'type': 'attribute', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': '__cost_function'}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'initial_theta'}; {'id': '337', 'type': 'keyword_argument', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'fprime'}; {'id': '339', 'type': 'attribute', 'children': ['340', '341']}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '341', 'type': 'identifier', 'children': [], 'value': '__cost_grad_function'}; {'id': '342', 'type': 'keyword_argument', 'children': ['343', '344']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'maxiter'}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'iterations'} | Trains itself using the sequence data. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '__cost'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'phase'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'X'}; {'id': '8', 'type': 'block', 'children': ['9', '18', '43', '48', '53', '133', '168', '220', '268', '275', '279', '283', '437', '449']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'assignment', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '12', 'type': 'call', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': '__roll'}; {'id': '16', 'type': 'argument_list', 'children': ['17']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'assignment', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '21', 'type': 'call', 'children': ['22', '25']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'concatenate'}; {'id': '25', 'type': 'argument_list', 'children': ['26', '40']}; {'id': '26', 'type': 'tuple', 'children': ['27', '39']}; {'id': '27', 'type': 'call', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'ones'}; {'id': '31', 'type': 'argument_list', 'children': ['32']}; {'id': '32', 'type': 'tuple', 'children': ['33', '38']}; {'id': '33', 'type': 'subscript', 'children': ['34', '37']}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'X'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'shape'}; {'id': '37', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '38', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'X'}; {'id': '40', 'type': 'keyword_argument', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'axis'}; {'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': 'calculated_a'}; {'id': '46', 'type': 'list', 'children': ['47'], 'value': '[a]'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '48', 'type': 'expression_statement', 'children': ['49']}; {'id': '49', 'type': 'assignment', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'calculated_z'}; {'id': '51', 'type': 'list', 'children': ['52'], 'value': '[0]'}; {'id': '52', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '53', 'type': 'for_statement', 'children': ['54', '57', '61']}; {'id': '54', 'type': 'pattern_list', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'theta'}; {'id': '57', 'type': 'call', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '59', 'type': 'argument_list', 'children': ['60']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '61', 'type': 'block', 'children': ['62', '75', '82', '91', '126']}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'z'}; {'id': '65', 'type': 'binary_operator', 'children': ['66', '70'], 'value': '*'}; {'id': '66', 'type': 'subscript', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'calculated_a'}; {'id': '68', 'type': 'unary_operator', 'children': ['69'], 'value': '-'}; {'id': '69', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '70', 'type': 'call', 'children': ['71', '74']}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'theta'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'transpose'}; {'id': '74', 'type': 'argument_list', 'children': []}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'call', 'children': ['77', '80']}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'calculated_z'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'z'}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'assignment', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '85', 'type': 'call', 'children': ['86', '89']}; {'id': '86', 'type': 'attribute', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'sigmoid'}; {'id': '89', 'type': 'argument_list', 'children': ['90']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'z'}; {'id': '91', 'type': 'if_statement', 'children': ['92', '100']}; {'id': '92', 'type': 'comparison_operator', 'children': ['93', '94'], 'value': '!='}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '94', 'type': 'binary_operator', 'children': ['95', '99'], 'value': '-'}; {'id': '95', 'type': 'call', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '97', 'type': 'argument_list', 'children': ['98']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '99', 'type': 'integer', 'children': [], 'value': '1'}; {'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': 'a'}; {'id': '104', 'type': 'call', 'children': ['105', '108']}; {'id': '105', 'type': 'attribute', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'concatenate'}; {'id': '108', 'type': 'argument_list', 'children': ['109', '123']}; {'id': '109', 'type': 'tuple', 'children': ['110', '122']}; {'id': '110', 'type': 'call', 'children': ['111', '114']}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'ones'}; {'id': '114', 'type': 'argument_list', 'children': ['115']}; {'id': '115', 'type': 'tuple', 'children': ['116', '121']}; {'id': '116', 'type': 'subscript', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'shape'}; {'id': '120', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '121', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '123', 'type': 'keyword_argument', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'axis'}; {'id': '125', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '126', 'type': 'expression_statement', 'children': ['127']}; {'id': '127', 'type': 'call', 'children': ['128', '131']}; {'id': '128', 'type': 'attribute', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'calculated_a'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '131', 'type': 'argument_list', 'children': ['132']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '133', 'type': 'if_statement', 'children': ['134', '137']}; {'id': '134', 'type': 'comparison_operator', 'children': ['135', '136'], 'value': '=='}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'phase'}; {'id': '136', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '137', 'type': 'block', 'children': ['138', '158']}; {'id': '138', 'type': 'if_statement', 'children': ['139', '144']}; {'id': '139', 'type': 'comparison_operator', 'children': ['140', '143'], 'value': '>'}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': '__num_labels'}; {'id': '143', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '144', 'type': 'block', 'children': ['145']}; {'id': '145', 'type': 'return_statement', 'children': ['146']}; {'id': '146', 'type': 'call', 'children': ['147', '150']}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'argmax'}; {'id': '150', 'type': 'argument_list', 'children': ['151', '155']}; {'id': '151', 'type': 'subscript', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'calculated_a'}; {'id': '153', 'type': 'unary_operator', 'children': ['154'], 'value': '-'}; {'id': '154', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '155', 'type': 'keyword_argument', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'axis'}; {'id': '157', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '158', 'type': 'return_statement', 'children': ['159']}; {'id': '159', 'type': 'call', 'children': ['160', '163']}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'round'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'subscript', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'calculated_a'}; {'id': '166', 'type': 'unary_operator', 'children': ['167'], 'value': '-'}; {'id': '167', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'assignment', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'J'}; {'id': '171', 'type': 'binary_operator', 'children': ['172', '217'], 'value': '/'}; {'id': '172', 'type': 'call', 'children': ['173', '176']}; {'id': '173', 'type': 'attribute', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '176', 'type': 'argument_list', 'children': ['177']}; {'id': '177', 'type': 'binary_operator', 'children': ['178', '196'], 'value': '-'}; {'id': '178', 'type': 'unary_operator', 'children': ['179'], 'value': '-'}; {'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': 'multiply'}; {'id': '183', 'type': 'argument_list', 'children': ['184', '187']}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': '__y'}; {'id': '187', 'type': 'call', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'subscript', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'calculated_a'}; {'id': '194', 'type': 'unary_operator', 'children': ['195'], 'value': '-'}; {'id': '195', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '196', 'type': 'call', 'children': ['197', '200']}; {'id': '197', 'type': 'attribute', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'multiply'}; {'id': '200', 'type': 'argument_list', 'children': ['201', '206']}; {'id': '201', 'type': 'binary_operator', 'children': ['202', '203'], 'value': '-'}; {'id': '202', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': '__y'}; {'id': '206', 'type': 'call', 'children': ['207', '210']}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '210', 'type': 'argument_list', 'children': ['211']}; {'id': '211', 'type': 'binary_operator', 'children': ['212', '213'], 'value': '-'}; {'id': '212', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '213', 'type': 'subscript', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'calculated_a'}; {'id': '215', 'type': 'unary_operator', 'children': ['216'], 'value': '-'}; {'id': '216', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': '__m'}; {'id': '220', 'type': 'if_statement', 'children': ['221', '226']}; {'id': '221', 'type': 'comparison_operator', 'children': ['222', '225'], 'value': '!='}; {'id': '222', 'type': 'attribute', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': '__lambda'}; {'id': '225', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '226', 'type': 'block', 'children': ['227']}; {'id': '227', 'type': 'expression_statement', 'children': ['228']}; {'id': '228', 'type': 'augmented_assignment', 'children': ['229', '230'], 'value': '+='}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'J'}; {'id': '230', 'type': 'binary_operator', 'children': ['231', '262'], 'value': '/'}; {'id': '231', 'type': 'binary_operator', 'children': ['232', '259'], 'value': '*'}; {'id': '232', 'type': 'call', 'children': ['233', '236']}; {'id': '233', 'type': 'attribute', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '236', 'type': 'argument_list', 'children': ['237']}; {'id': '237', 'type': 'list_comprehension', 'children': ['238', '256']}; {'id': '238', 'type': 'call', 'children': ['239', '242']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '242', 'type': 'argument_list', 'children': ['243']}; {'id': '243', 'type': 'call', 'children': ['244', '247']}; {'id': '244', 'type': 'attribute', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'power'}; {'id': '247', 'type': 'argument_list', 'children': ['248', '255']}; {'id': '248', 'type': 'subscript', 'children': ['249', '250', '252']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'theta'}; {'id': '250', 'type': 'slice', 'children': ['251']}; {'id': '251', 'type': 'colon', 'children': []}; {'id': '252', 'type': 'slice', 'children': ['253', '254']}; {'id': '253', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '254', 'type': 'colon', 'children': []}; {'id': '255', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '256', 'type': 'for_in_clause', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'theta'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '259', 'type': 'attribute', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': '__lambda'}; {'id': '262', 'type': '()', 'children': ['263']}; {'id': '263', 'type': 'binary_operator', 'children': ['264', '265'], 'value': '*'}; {'id': '264', 'type': 'float', 'children': [], 'value': '2.0'}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': '__m'}; {'id': '268', 'type': 'if_statement', 'children': ['269', '272']}; {'id': '269', 'type': 'comparison_operator', 'children': ['270', '271'], 'value': '=='}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'phase'}; {'id': '271', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '272', 'type': 'block', 'children': ['273']}; {'id': '273', 'type': 'return_statement', 'children': ['274']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'J'}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'assignment', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'reversed_d'}; {'id': '278', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '279', 'type': 'expression_statement', 'children': ['280']}; {'id': '280', 'type': 'assignment', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'reversed_theta_grad'}; {'id': '282', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '283', 'type': 'for_statement', 'children': ['284', '285', '292']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '285', 'type': 'call', 'children': ['286', '287']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '287', 'type': 'argument_list', 'children': ['288']}; {'id': '288', 'type': 'call', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '290', 'type': 'argument_list', 'children': ['291']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '292', 'type': 'block', 'children': ['293', '345', '352', '374', '430']}; {'id': '293', 'type': 'if_statement', 'children': ['294', '297', '309']}; {'id': '294', 'type': 'comparison_operator', 'children': ['295', '296'], 'value': '=='}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '296', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '297', 'type': 'block', 'children': ['298']}; {'id': '298', 'type': 'expression_statement', 'children': ['299']}; {'id': '299', 'type': 'assignment', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '301', 'type': 'binary_operator', 'children': ['302', '306'], 'value': '-'}; {'id': '302', 'type': 'subscript', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'calculated_a'}; {'id': '304', 'type': 'unary_operator', 'children': ['305'], 'value': '-'}; {'id': '305', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '306', 'type': 'attribute', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': '__y'}; {'id': '309', 'type': 'else_clause', 'children': ['310']}; {'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': 'd'}; {'id': '314', 'type': 'call', 'children': ['315', '318']}; {'id': '315', 'type': 'attribute', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'multiply'}; {'id': '318', 'type': 'argument_list', 'children': ['319', '334']}; {'id': '319', 'type': 'binary_operator', 'children': ['320', '324'], 'value': '*'}; {'id': '320', 'type': 'subscript', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'reversed_d'}; {'id': '322', 'type': 'unary_operator', 'children': ['323'], 'value': '-'}; {'id': '323', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '324', 'type': 'subscript', 'children': ['325', '329', '331']}; {'id': '325', 'type': 'subscript', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '327', 'type': 'unary_operator', 'children': ['328'], 'value': '-'}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '329', 'type': 'slice', 'children': ['330']}; {'id': '330', 'type': 'colon', 'children': []}; {'id': '331', 'type': 'slice', 'children': ['332', '333']}; {'id': '332', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '333', 'type': 'colon', 'children': []}; {'id': '334', 'type': 'call', 'children': ['335', '338']}; {'id': '335', 'type': 'attribute', 'children': ['336', '337']}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'sigmoid_grad'}; {'id': '338', 'type': 'argument_list', 'children': ['339']}; {'id': '339', 'type': 'subscript', 'children': ['340', '341']}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'calculated_z'}; {'id': '341', 'type': 'binary_operator', 'children': ['342', '344'], 'value': '-'}; {'id': '342', 'type': 'unary_operator', 'children': ['343'], 'value': '-'}; {'id': '343', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '345', 'type': 'expression_statement', 'children': ['346']}; {'id': '346', 'type': 'call', 'children': ['347', '350']}; {'id': '347', 'type': 'attribute', 'children': ['348', '349']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'reversed_d'}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '350', 'type': 'argument_list', 'children': ['351']}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '352', 'type': 'expression_statement', 'children': ['353']}; {'id': '353', 'type': 'assignment', 'children': ['354', '355']}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'theta_grad'}; {'id': '355', 'type': 'binary_operator', 'children': ['356', '371'], 'value': '/'}; {'id': '356', 'type': 'binary_operator', 'children': ['357', '365'], 'value': '*'}; {'id': '357', 'type': 'call', 'children': ['358', '364']}; {'id': '358', 'type': 'attribute', 'children': ['359', '363']}; {'id': '359', 'type': 'subscript', 'children': ['360', '361']}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'reversed_d'}; {'id': '361', 'type': 'unary_operator', 'children': ['362'], 'value': '-'}; {'id': '362', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'transpose'}; {'id': '364', 'type': 'argument_list', 'children': []}; {'id': '365', 'type': 'subscript', 'children': ['366', '367']}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'calculated_a'}; {'id': '367', 'type': 'binary_operator', 'children': ['368', '370'], 'value': '-'}; {'id': '368', 'type': 'unary_operator', 'children': ['369'], 'value': '-'}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '370', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '371', 'type': 'attribute', 'children': ['372', '373']}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '373', 'type': 'identifier', 'children': [], 'value': '__m'}; {'id': '374', 'type': 'if_statement', 'children': ['375', '380']}; {'id': '375', 'type': 'comparison_operator', 'children': ['376', '379'], 'value': '!='}; {'id': '376', 'type': 'attribute', 'children': ['377', '378']}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '378', 'type': 'identifier', 'children': [], 'value': '__lambda'}; {'id': '379', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '380', 'type': 'block', 'children': ['381']}; {'id': '381', 'type': 'expression_statement', 'children': ['382']}; {'id': '382', 'type': 'augmented_assignment', 'children': ['383', '384'], 'value': '+='}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'theta_grad'}; {'id': '384', 'type': 'binary_operator', 'children': ['385', '427'], 'value': '/'}; {'id': '385', 'type': 'binary_operator', 'children': ['386', '424'], 'value': '*'}; {'id': '386', 'type': 'call', 'children': ['387', '390']}; {'id': '387', 'type': 'attribute', 'children': ['388', '389']}; {'id': '388', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'concatenate'}; {'id': '390', 'type': 'argument_list', 'children': ['391', '421']}; {'id': '391', 'type': 'tuple', 'children': ['392', '409']}; {'id': '392', 'type': 'call', 'children': ['393', '396']}; {'id': '393', 'type': 'attribute', 'children': ['394', '395']}; {'id': '394', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '395', 'type': 'identifier', 'children': [], 'value': 'zeros'}; {'id': '396', 'type': 'argument_list', 'children': ['397']}; {'id': '397', 'type': 'tuple', 'children': ['398', '408']}; {'id': '398', 'type': 'subscript', 'children': ['399', '407']}; {'id': '399', 'type': 'attribute', 'children': ['400', '406']}; {'id': '400', 'type': 'subscript', 'children': ['401', '402']}; {'id': '401', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '402', 'type': 'binary_operator', 'children': ['403', '405'], 'value': '-'}; {'id': '403', 'type': 'unary_operator', 'children': ['404'], 'value': '-'}; {'id': '404', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '405', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '406', 'type': 'identifier', 'children': [], 'value': 'shape'}; {'id': '407', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '408', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '409', 'type': 'subscript', 'children': ['410', '416', '418']}; {'id': '410', 'type': 'subscript', 'children': ['411', '412']}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '412', 'type': 'binary_operator', 'children': ['413', '415'], 'value': '-'}; {'id': '413', 'type': 'unary_operator', 'children': ['414'], 'value': '-'}; {'id': '414', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '415', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '416', 'type': 'slice', 'children': ['417']}; {'id': '417', 'type': 'colon', 'children': []}; {'id': '418', 'type': 'slice', 'children': ['419', '420']}; {'id': '419', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '420', 'type': 'colon', 'children': []}; {'id': '421', 'type': 'keyword_argument', 'children': ['422', '423']}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'axis'}; {'id': '423', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '424', 'type': 'attribute', 'children': ['425', '426']}; {'id': '425', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '426', 'type': 'identifier', 'children': [], 'value': '__lambda'}; {'id': '427', 'type': 'attribute', 'children': ['428', '429']}; {'id': '428', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '429', 'type': 'identifier', 'children': [], 'value': '__m'}; {'id': '430', 'type': 'expression_statement', 'children': ['431']}; {'id': '431', 'type': 'call', 'children': ['432', '435']}; {'id': '432', 'type': 'attribute', 'children': ['433', '434']}; {'id': '433', 'type': 'identifier', 'children': [], 'value': 'reversed_theta_grad'}; {'id': '434', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '435', 'type': 'argument_list', 'children': ['436']}; {'id': '436', 'type': 'identifier', 'children': [], 'value': 'theta_grad'}; {'id': '437', 'type': 'expression_statement', 'children': ['438']}; {'id': '438', 'type': 'assignment', 'children': ['439', '440']}; {'id': '439', 'type': 'identifier', 'children': [], 'value': 'theta_grad'}; {'id': '440', 'type': 'call', 'children': ['441', '444']}; {'id': '441', 'type': 'attribute', 'children': ['442', '443']}; {'id': '442', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '443', 'type': 'identifier', 'children': [], 'value': '__unroll'}; {'id': '444', 'type': 'argument_list', 'children': ['445']}; {'id': '445', 'type': 'call', 'children': ['446', '447']}; {'id': '446', 'type': 'identifier', 'children': [], 'value': 'reversed'}; {'id': '447', 'type': 'argument_list', 'children': ['448']}; {'id': '448', 'type': 'identifier', 'children': [], 'value': 'reversed_theta_grad'}; {'id': '449', 'type': 'return_statement', 'children': ['450']}; {'id': '450', 'type': 'identifier', 'children': [], 'value': 'theta_grad'} | Computes activation, cost function, and derivative. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'insert_many'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'it'}; {'id': '6', 'type': 'block', 'children': ['7', '13', '19', '26', '141', '180']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'unique_indexes'}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': '_uniqueIndexes'}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'assignment', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'NO_SUCH_ATTR'}; {'id': '16', 'type': 'call', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'object'}; {'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': 'new_objs'}; {'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': 'it'}; {'id': '26', 'type': 'if_statement', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'unique_indexes'}; {'id': '28', 'type': 'block', 'children': ['29']}; {'id': '29', 'type': 'for_statement', 'children': ['30', '31', '32']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'ind'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'unique_indexes'}; {'id': '32', 'type': 'block', 'children': ['33', '39', '56', '92', '110']}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'assignment', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'ind_attr'}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'ind'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'assignment', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'new_keys'}; {'id': '42', 'type': 'call', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '44', 'type': 'generator_expression', 'children': ['45', '53']}; {'id': '45', 'type': 'tuple', 'children': ['46', '52']}; {'id': '46', 'type': 'call', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '48', 'type': 'argument_list', 'children': ['49', '50', '51']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'ind_attr'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'NO_SUCH_ATTR'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '53', 'type': 'for_in_clause', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'new_objs'}; {'id': '56', 'type': 'if_statement', 'children': ['57', '70']}; {'id': '57', 'type': 'boolean_operator', 'children': ['58', '62'], 'value': 'and'}; {'id': '58', 'type': 'not_operator', 'children': ['59']}; {'id': '59', 'type': 'attribute', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'ind'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'accept_none'}; {'id': '62', 'type': '()', 'children': ['63']}; {'id': '63', 'type': 'boolean_operator', 'children': ['64', '67'], 'value': 'or'}; {'id': '64', 'type': 'comparison_operator', 'children': ['65', '66'], 'value': 'in'}; {'id': '65', 'type': 'None', 'children': []}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'new_keys'}; {'id': '67', 'type': 'comparison_operator', 'children': ['68', '69'], 'value': 'in'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'NO_SUCH_ATTR'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'new_keys'}; {'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': 'KeyError'}; {'id': '74', 'type': 'argument_list', 'children': ['75', '78']}; {'id': '75', 'type': 'binary_operator', 'children': ['76', '77'], 'value': '%'}; {'id': '76', 'type': 'string', 'children': [], 'value': '"unique key cannot be None or blank for index %s"'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'ind_attr'}; {'id': '78', 'type': 'list_comprehension', 'children': ['79', '80', '83']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'ob'}; {'id': '80', 'type': 'for_in_clause', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'ob'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'new_objs'}; {'id': '83', 'type': 'if_clause', 'children': ['84']}; {'id': '84', 'type': 'comparison_operator', 'children': ['85', '91'], 'value': 'is'}; {'id': '85', 'type': 'call', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '87', 'type': 'argument_list', 'children': ['88', '89', '90']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'ob'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'ind_attr'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'NO_SUCH_ATTR'}; {'id': '91', 'type': 'None', 'children': []}; {'id': '92', 'type': 'if_statement', 'children': ['93', '102']}; {'id': '93', 'type': 'comparison_operator', 'children': ['94', '98'], 'value': '<'}; {'id': '94', 'type': 'call', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '96', 'type': 'argument_list', 'children': ['97']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'new_keys'}; {'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': 'new_objs'}; {'id': '102', 'type': 'block', 'children': ['103']}; {'id': '103', 'type': 'raise_statement', 'children': ['104']}; {'id': '104', 'type': 'call', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'binary_operator', 'children': ['108', '109'], 'value': '%'}; {'id': '108', 'type': 'string', 'children': [], 'value': '"given sequence contains duplicate keys for index %s"'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'ind_attr'}; {'id': '110', 'type': 'for_statement', 'children': ['111', '112', '113']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'new_keys'}; {'id': '113', 'type': 'block', 'children': ['114']}; {'id': '114', 'type': 'if_statement', 'children': ['115', '118']}; {'id': '115', 'type': 'comparison_operator', 'children': ['116', '117'], 'value': 'in'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'ind'}; {'id': '118', 'type': 'block', 'children': ['119', '125']}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '122', 'type': 'subscript', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'new_keys'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '125', 'type': 'raise_statement', 'children': ['126']}; {'id': '126', 'type': 'call', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '128', 'type': 'argument_list', 'children': ['129', '138']}; {'id': '129', 'type': 'binary_operator', 'children': ['130', '131'], 'value': '%'}; {'id': '130', 'type': 'string', 'children': [], 'value': '"duplicate unique key value \'%s\' for index %s"'}; {'id': '131', 'type': 'tuple', 'children': ['132', '137']}; {'id': '132', 'type': 'call', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '134', 'type': 'argument_list', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'ind_attr'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'ind_attr'}; {'id': '138', 'type': 'subscript', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'new_keys'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '141', 'type': 'for_statement', 'children': ['142', '143', '144']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'new_objs'}; {'id': '144', 'type': 'block', 'children': ['145', '154']}; {'id': '145', 'type': 'expression_statement', 'children': ['146']}; {'id': '146', 'type': 'call', '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': 'obs'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '152', 'type': 'argument_list', 'children': ['153']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '154', 'type': 'for_statement', 'children': ['155', '158', '165']}; {'id': '155', 'type': 'pattern_list', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'ind'}; {'id': '158', 'type': 'call', 'children': ['159', '164']}; {'id': '159', 'type': 'attribute', 'children': ['160', '163']}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': '_indexes'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '164', 'type': 'argument_list', 'children': []}; {'id': '165', 'type': 'block', 'children': ['166', '174']}; {'id': '166', 'type': 'expression_statement', 'children': ['167']}; {'id': '167', 'type': 'assignment', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'obval'}; {'id': '169', 'type': 'call', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '171', 'type': 'argument_list', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'assignment', 'children': ['176', '179']}; {'id': '176', 'type': 'subscript', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'ind'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'obval'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '180', 'type': 'return_statement', 'children': ['181']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'self'} | Inserts a collection of objects into the table. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_query_attr_sort_fn'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'attr_val'}; {'id': '6', 'type': 'block', 'children': ['7', '13']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '12']}; {'id': '9', 'type': 'pattern_list', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'attr_val'}; {'id': '13', 'type': 'if_statement', 'children': ['14', '19', '44']}; {'id': '14', 'type': 'comparison_operator', 'children': ['15', '16'], 'value': 'in'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '16', 'type': 'attribute', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': '_indexes'}; {'id': '19', 'type': 'block', 'children': ['20', '28']}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '23', 'type': 'subscript', 'children': ['24', '27']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': '_indexes'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '28', 'type': 'if_statement', 'children': ['29', '32', '40']}; {'id': '29', 'type': 'comparison_operator', 'children': ['30', '31'], 'value': 'in'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '32', 'type': 'block', 'children': ['33']}; {'id': '33', 'type': 'return_statement', 'children': ['34']}; {'id': '34', 'type': 'call', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '36', 'type': 'argument_list', 'children': ['37']}; {'id': '37', 'type': 'subscript', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '40', 'type': 'else_clause', 'children': ['41']}; {'id': '41', 'type': 'block', 'children': ['42']}; {'id': '42', 'type': 'return_statement', 'children': ['43']}; {'id': '43', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '44', 'type': 'else_clause', 'children': ['45']}; {'id': '45', 'type': 'block', 'children': ['46']}; {'id': '46', 'type': 'return_statement', 'children': ['47']}; {'id': '47', 'type': 'float', 'children': [], 'value': '1e9'} | Used to order where keys by most selective key first |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '14']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'as_table'}; {'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': 'fn'}; {'id': '7', 'type': 'None', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'col'}; {'id': '10', 'type': 'None', 'children': []}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'col_label'}; {'id': '13', 'type': 'None', 'children': []}; {'id': '14', 'type': 'block', 'children': ['15', '24', '42', '48', '63', '307']}; {'id': '15', 'type': 'if_statement', 'children': ['16', '19']}; {'id': '16', 'type': 'comparison_operator', 'children': ['17', '18'], 'value': 'is'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'col_label'}; {'id': '18', 'type': 'None', 'children': []}; {'id': '19', 'type': 'block', 'children': ['20']}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'col_label'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'col'}; {'id': '24', 'type': 'if_statement', 'children': ['25', '28']}; {'id': '25', 'type': 'comparison_operator', 'children': ['26', '27'], 'value': 'is'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '27', 'type': 'None', 'children': []}; {'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': 'fn'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '33', 'type': 'if_statement', 'children': ['34', '37']}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '36'], 'value': 'is'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'col_label'}; {'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': 'col_label'}; {'id': '41', 'type': 'string', 'children': [], 'value': "'count'"}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'ret'}; {'id': '45', 'type': 'call', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'Table'}; {'id': '47', 'type': 'argument_list', 'children': []}; {'id': '48', 'type': 'expression_statement', 'children': ['49']}; {'id': '49', 'type': 'call', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'do_all'}; {'id': '51', 'type': 'generator_expression', 'children': ['52', '58']}; {'id': '52', 'type': 'call', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'ret'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'create_index'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '58', 'type': 'for_in_clause', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': '_pivot_attrs'}; {'id': '63', 'type': 'if_statement', 'children': ['64', '72', '142', '218', '300']}; {'id': '64', 'type': 'comparison_operator', 'children': ['65', '71'], 'value': '=='}; {'id': '65', 'type': 'call', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '67', 'type': 'argument_list', 'children': ['68']}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': '_pivot_attrs'}; {'id': '71', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '72', 'type': 'block', 'children': ['73']}; {'id': '73', 'type': 'for_statement', 'children': ['74', '75', '78']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'subtables'}; {'id': '78', 'type': 'block', 'children': ['79', '90', '97', '131']}; {'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': 'subattr'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'subval'}; {'id': '84', 'type': 'subscript', 'children': ['85', '88']}; {'id': '85', 'type': 'attribute', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': '_attr_path'}; {'id': '88', 'type': 'unary_operator', 'children': ['89'], 'value': '-'}; {'id': '89', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '90', 'type': 'expression_statement', 'children': ['91']}; {'id': '91', 'type': 'assignment', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'attrdict'}; {'id': '93', 'type': 'dictionary', 'children': ['94']}; {'id': '94', 'type': 'pair', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'subattr'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'subval'}; {'id': '97', 'type': 'if_statement', 'children': ['98', '105', '115']}; {'id': '98', 'type': 'boolean_operator', 'children': ['99', '102'], 'value': 'or'}; {'id': '99', 'type': 'comparison_operator', 'children': ['100', '101'], 'value': 'is'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'col'}; {'id': '101', 'type': 'None', 'children': []}; {'id': '102', 'type': 'comparison_operator', 'children': ['103', '104'], 'value': 'is'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '105', 'type': 'block', 'children': ['106']}; {'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': 'attrdict'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'col_label'}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '113', 'type': 'argument_list', 'children': ['114']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '115', 'type': 'else_clause', 'children': ['116']}; {'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': 'attrdict'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'col_label'}; {'id': '122', 'type': 'call', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '124', 'type': 'generator_expression', 'children': ['125', '128']}; {'id': '125', 'type': 'subscript', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'col'}; {'id': '128', 'type': 'for_in_clause', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'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': 'ret'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'insert'}; {'id': '136', 'type': 'argument_list', 'children': ['137']}; {'id': '137', 'type': 'call', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'DataObject'}; {'id': '139', 'type': 'argument_list', 'children': ['140']}; {'id': '140', 'type': 'dictionary_splat', 'children': ['141']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'attrdict'}; {'id': '142', 'type': 'elif_clause', 'children': ['143', '151']}; {'id': '143', 'type': 'comparison_operator', 'children': ['144', '150'], 'value': '=='}; {'id': '144', 'type': 'call', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '146', 'type': 'argument_list', 'children': ['147']}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': '_pivot_attrs'}; {'id': '150', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '151', 'type': 'block', 'children': ['152']}; {'id': '152', 'type': 'for_statement', 'children': ['153', '154', '157']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'subtables'}; {'id': '157', 'type': 'block', 'children': ['158']}; {'id': '158', 'type': 'for_statement', 'children': ['159', '160', '163']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'ssub'}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'subtables'}; {'id': '163', 'type': 'block', 'children': ['164', '173', '207']}; {'id': '164', 'type': 'expression_statement', 'children': ['165']}; {'id': '165', 'type': 'assignment', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'attrdict'}; {'id': '167', 'type': 'call', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '169', 'type': 'argument_list', 'children': ['170']}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'ssub'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': '_attr_path'}; {'id': '173', 'type': 'if_statement', 'children': ['174', '181', '191']}; {'id': '174', 'type': 'boolean_operator', 'children': ['175', '178'], 'value': 'or'}; {'id': '175', 'type': 'comparison_operator', 'children': ['176', '177'], 'value': 'is'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'col'}; {'id': '177', 'type': 'None', 'children': []}; {'id': '178', 'type': 'comparison_operator', 'children': ['179', '180'], 'value': 'is'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'len'}; {'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': 'attrdict'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'col_label'}; {'id': '187', 'type': 'call', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '189', 'type': 'argument_list', 'children': ['190']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'ssub'}; {'id': '191', 'type': 'else_clause', 'children': ['192']}; {'id': '192', 'type': 'block', 'children': ['193']}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'assignment', 'children': ['195', '198']}; {'id': '195', 'type': 'subscript', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'attrdict'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'col_label'}; {'id': '198', 'type': 'call', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '200', 'type': 'generator_expression', 'children': ['201', '204']}; {'id': '201', 'type': 'subscript', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'col'}; {'id': '204', 'type': 'for_in_clause', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'ssub'}; {'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': 'ret'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'insert'}; {'id': '212', 'type': 'argument_list', 'children': ['213']}; {'id': '213', 'type': 'call', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'DataObject'}; {'id': '215', 'type': 'argument_list', 'children': ['216']}; {'id': '216', 'type': 'dictionary_splat', 'children': ['217']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'attrdict'}; {'id': '218', 'type': 'elif_clause', 'children': ['219', '227']}; {'id': '219', 'type': 'comparison_operator', 'children': ['220', '226'], 'value': '=='}; {'id': '220', 'type': 'call', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '222', 'type': 'argument_list', 'children': ['223']}; {'id': '223', 'type': 'attribute', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': '_pivot_attrs'}; {'id': '226', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '227', 'type': 'block', 'children': ['228']}; {'id': '228', 'type': 'for_statement', 'children': ['229', '230', '233']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'subtables'}; {'id': '233', 'type': 'block', 'children': ['234']}; {'id': '234', 'type': 'for_statement', 'children': ['235', '236', '239']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'ssub'}; {'id': '236', 'type': 'attribute', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'subtables'}; {'id': '239', 'type': 'block', 'children': ['240']}; {'id': '240', 'type': 'for_statement', 'children': ['241', '242', '245']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'sssub'}; {'id': '242', 'type': 'attribute', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'ssub'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'subtables'}; {'id': '245', 'type': 'block', 'children': ['246', '255', '289']}; {'id': '246', 'type': 'expression_statement', 'children': ['247']}; {'id': '247', 'type': 'assignment', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'attrdict'}; {'id': '249', 'type': 'call', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '251', 'type': 'argument_list', 'children': ['252']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'sssub'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': '_attr_path'}; {'id': '255', 'type': 'if_statement', 'children': ['256', '263', '273']}; {'id': '256', 'type': 'boolean_operator', 'children': ['257', '260'], 'value': 'or'}; {'id': '257', 'type': 'comparison_operator', 'children': ['258', '259'], 'value': 'is'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'col'}; {'id': '259', 'type': 'None', 'children': []}; {'id': '260', 'type': 'comparison_operator', 'children': ['261', '262'], 'value': 'is'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '263', 'type': 'block', 'children': ['264']}; {'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': 'attrdict'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'col_label'}; {'id': '269', 'type': 'call', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '271', 'type': 'argument_list', 'children': ['272']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'sssub'}; {'id': '273', 'type': 'else_clause', 'children': ['274']}; {'id': '274', 'type': 'block', 'children': ['275']}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'assignment', 'children': ['277', '280']}; {'id': '277', 'type': 'subscript', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'attrdict'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'col_label'}; {'id': '280', 'type': 'call', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '282', 'type': 'generator_expression', 'children': ['283', '286']}; {'id': '283', 'type': 'subscript', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'col'}; {'id': '286', 'type': 'for_in_clause', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'sssub'}; {'id': '289', 'type': 'expression_statement', 'children': ['290']}; {'id': '290', 'type': 'call', 'children': ['291', '294']}; {'id': '291', 'type': 'attribute', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'ret'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'insert'}; {'id': '294', 'type': 'argument_list', 'children': ['295']}; {'id': '295', 'type': 'call', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'DataObject'}; {'id': '297', 'type': 'argument_list', 'children': ['298']}; {'id': '298', 'type': 'dictionary_splat', 'children': ['299']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'attrdict'}; {'id': '300', 'type': 'else_clause', 'children': ['301']}; {'id': '301', 'type': 'block', 'children': ['302']}; {'id': '302', 'type': 'raise_statement', 'children': ['303']}; {'id': '303', 'type': 'call', 'children': ['304', '305']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '305', 'type': 'argument_list', 'children': ['306']}; {'id': '306', 'type': 'string', 'children': [], 'value': '"can only dump summary counts for 1 or 2-attribute pivots"'}; {'id': '307', 'type': 'return_statement', 'children': ['308']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'ret'} | Dump out the summary counts of this pivot table as a Table. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'ERROR', 'children': ['2', '98', '115', '131', '145']}; {'id': '2', 'type': 'function_definition', 'children': ['3', '4', '7', '59']}; {'id': '3', 'type': 'function_name', 'children': [], 'value': '_inject_execstr'}; {'id': '4', 'type': 'parameters', 'children': ['5', '6']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'import_tuples'}; {'id': '7', 'type': 'ERROR', 'children': ['8', '31', '40', '41', '44', '46']}; {'id': '8', 'type': 'if_statement', 'children': ['9', '12', '21']}; {'id': '9', 'type': 'comparison_operator', 'children': ['10', '11'], 'value': '=='}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '11', 'type': 'string', 'children': [], 'value': "'utool'"}; {'id': '12', 'type': 'block', 'children': ['13', '17']}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'assignment', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'injecter'}; {'id': '16', 'type': 'string', 'children': [], 'value': "'util_inject'"}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'injecter_import'}; {'id': '20', 'type': 'string', 'children': [], 'value': "''"}; {'id': '21', 'type': 'else_clause', 'children': ['22']}; {'id': '22', 'type': 'block', 'children': ['23', '27']}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'injecter_import'}; {'id': '26', 'type': 'string', 'children': [], 'value': "'import utool'"}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'assignment', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'injecter'}; {'id': '30', 'type': 'string', 'children': [], 'value': "'utool'"}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'injectstr_fmt'}; {'id': '34', 'type': 'call', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'textwrap'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'dedent'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'string', 'children': [], 'value': "r'''\n {injecter_import}\n print, rrr, profile = {injecter}.inject2(__name__, '[{modname}]')\n def reassign_submodule_attributes(verbose=1):\n import sys\n if verbose and '--quiet' not in sys.argv:\n print('dev reimport')\n import {modname}\n seen_ = set([])\n for tup in IMPORT_TUPLES:\n if len(tup) > 2 and tup[2]:\n continue\n submodname, fromimports = tup[0:2]\n submod = getattr({modname}, submodname)\n for attr in dir(submod):\n if attr.startswith('_'):\n continue\n if attr in seen_:\n continue\n seen_.add(attr)\n setattr({modname}, attr, getattr(submod, attr))\n def reload_subs(verbose=1):\n if verbose:\n print('Reloading {modname} submodules')\n rrr(verbose > 1)\n def wrap_fbrrr(mod):\n def fbrrr(*args, **kwargs):\n if verbose > 0:\n print('Auto-reload (using rrr) not setup for mod=%r' % (mod,))\n return fbrrr\n def get_rrr(mod):\n if hasattr(mod, 'rrr'):\n return mod.rrr\n else:\n return wrap_fbrrr(mod)\n def get_reload_subs(mod):\n return getattr(mod, 'reload_subs', wrap_fbrrr(mod))\n {reload_body}\n rrr(verbose > 1)\n try:\n reassign_submodule_attributes(verbose=verbose)\n except Exception as ex:\n print(ex)\n rrrr = reload_subs\n '''"}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'injectstr_fmt'}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'injectstr_fmt'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '44', 'type': 'ERROR', 'children': ['45']}; {'id': '45', 'type': 'string', 'children': [], 'value': "'\n injectstr_fmt = injectstr_fmt.replace('"}; {'id': '46', 'type': 'keyword_argument', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'rrrdir_fmt'}; {'id': '48', 'type': 'call', 'children': ['49', '54', '57']}; {'id': '49', 'type': 'concatenated_string', 'children': ['50', '51', '53']}; {'id': '50', 'type': 'string', 'children': [], 'value': "' get_reload_subs({modname})(verbose=verbose)'"}; {'id': '51', 'type': 'ERROR', 'children': ['52']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'rrrfile_fmt'}; {'id': '53', 'type': 'string', 'children': [], 'value': "' get_rrr({modname})(verbose > 1)'"}; {'id': '54', 'type': 'ERROR', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'def'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': '_reload_command'}; {'id': '57', 'type': 'argument_list', 'children': ['58']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'tup'}; {'id': '59', 'type': 'block', 'children': ['60']}; {'id': '60', 'type': 'if_statement', 'children': ['61', '73', '85']}; {'id': '61', 'type': 'boolean_operator', 'children': ['62', '68'], 'value': 'and'}; {'id': '62', 'type': 'comparison_operator', 'children': ['63', '67'], 'value': '>'}; {'id': '63', 'type': 'call', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '65', 'type': 'argument_list', 'children': ['66']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'tup'}; {'id': '67', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '68', 'type': 'comparison_operator', 'children': ['69', '72'], 'value': 'is'}; {'id': '69', 'type': 'subscript', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'tup'}; {'id': '71', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '72', 'type': 'True', 'children': []}; {'id': '73', 'type': 'block', 'children': ['74']}; {'id': '74', 'type': 'return_statement', 'children': ['75']}; {'id': '75', 'type': 'call', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'rrrdir_fmt'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '79', 'type': 'argument_list', 'children': ['80']}; {'id': '80', 'type': 'keyword_argument', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '82', 'type': 'subscript', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'tup'}; {'id': '84', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '85', 'type': 'else_clause', 'children': ['86']}; {'id': '86', 'type': 'block', 'children': ['87']}; {'id': '87', 'type': 'return_statement', 'children': ['88']}; {'id': '88', 'type': 'call', 'children': ['89', '92']}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'rrrfile_fmt'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '92', 'type': 'argument_list', 'children': ['93']}; {'id': '93', 'type': 'keyword_argument', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '95', 'type': 'subscript', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'tup'}; {'id': '97', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'assignment', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'reload_body'}; {'id': '101', 'type': 'call', 'children': ['102', '114']}; {'id': '102', 'type': 'attribute', 'children': ['103', '113']}; {'id': '103', 'type': 'call', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'call', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'map'}; {'id': '110', 'type': 'argument_list', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': '_reload_command'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'import_tuples'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '114', 'type': 'argument_list', 'children': []}; {'id': '115', 'type': 'expression_statement', 'children': ['116']}; {'id': '116', 'type': 'assignment', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'format_dict'}; {'id': '118', 'type': 'dictionary', 'children': ['119', '122', '125', '128']}; {'id': '119', 'type': 'pair', 'children': ['120', '121']}; {'id': '120', 'type': 'string', 'children': [], 'value': "'modname'"}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '122', 'type': 'pair', 'children': ['123', '124']}; {'id': '123', 'type': 'string', 'children': [], 'value': "'reload_body'"}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'reload_body'}; {'id': '125', 'type': 'pair', 'children': ['126', '127']}; {'id': '126', 'type': 'string', 'children': [], 'value': "'injecter'"}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'injecter'}; {'id': '128', 'type': 'pair', 'children': ['129', '130']}; {'id': '129', 'type': 'string', 'children': [], 'value': "'injecter_import'"}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'injecter_import'}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'assignment', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'inject_execstr'}; {'id': '134', 'type': 'call', 'children': ['135', '144']}; {'id': '135', 'type': 'attribute', 'children': ['136', '143']}; {'id': '136', 'type': 'call', 'children': ['137', '140']}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'injectstr_fmt'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '140', 'type': 'argument_list', 'children': ['141']}; {'id': '141', 'type': 'dictionary_splat', 'children': ['142']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'format_dict'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '144', 'type': 'argument_list', 'children': []}; {'id': '145', 'type': 'return_statement', 'children': ['146']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'inject_execstr'} | Injection and Reload String Defs |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'sort_window_ids'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'winid_list'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '7', 'type': 'string', 'children': [], 'value': "'mru'"}; {'id': '8', 'type': 'block', 'children': ['9', '14', '23', '33']}; {'id': '9', 'type': 'import_statement', 'children': ['10']}; {'id': '10', 'type': 'aliased_import', 'children': ['11', '13']}; {'id': '11', 'type': 'dotted_name', 'children': ['12']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'utool'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'winid_order'}; {'id': '17', 'type': 'call', 'children': ['18', '21']}; {'id': '18', 'type': 'attribute', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'XCtrl'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'sorted_window_ids'}; {'id': '21', 'type': 'argument_list', 'children': ['22']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'sorted_win_ids'}; {'id': '26', 'type': 'call', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'isect'}; {'id': '30', 'type': 'argument_list', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'winid_order'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'winid_list'}; {'id': '33', 'type': 'return_statement', 'children': ['34']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'sorted_win_ids'} | Orders window ids by most recently used |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '__infer_setup_kwargs'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '6', 'type': 'block', 'children': ['7', '13', '23', '41', '59', '79']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '10', 'type': 'subscript', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '12', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'assignment', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'packages'}; {'id': '16', 'type': 'call', 'children': ['17', '20']}; {'id': '17', 'type': 'attribute', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '20', 'type': 'argument_list', 'children': ['21', '22']}; {'id': '21', 'type': 'string', 'children': [], 'value': "'packages'"}; {'id': '22', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '23', 'type': 'if_statement', 'children': ['24', '27']}; {'id': '24', 'type': 'comparison_operator', 'children': ['25', '26'], 'value': 'not'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'packages'}; {'id': '27', 'type': 'block', 'children': ['28', '35']}; {'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': 'packages'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '33', 'type': 'argument_list', 'children': ['34']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '35', 'type': 'expression_statement', 'children': ['36']}; {'id': '36', 'type': 'assignment', 'children': ['37', '40']}; {'id': '37', 'type': 'subscript', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '39', 'type': 'string', 'children': [], 'value': "'packages'"}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'packages'}; {'id': '41', 'type': 'if_statement', 'children': ['42', '45']}; {'id': '42', 'type': 'comparison_operator', 'children': ['43', '44'], 'value': 'not'}; {'id': '43', 'type': 'string', 'children': [], 'value': "'version'"}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '45', 'type': 'block', 'children': ['46', '53']}; {'id': '46', 'type': 'expression_statement', 'children': ['47']}; {'id': '47', 'type': 'assignment', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '49', 'type': 'call', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'parse_package_for_version'}; {'id': '51', 'type': 'argument_list', 'children': ['52']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '58']}; {'id': '55', 'type': 'subscript', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '57', 'type': 'string', 'children': [], 'value': "'version'"}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '59', 'type': 'if_statement', 'children': ['60', '63']}; {'id': '60', 'type': 'comparison_operator', 'children': ['61', '62'], 'value': 'not'}; {'id': '61', 'type': 'string', 'children': [], 'value': "'license'"}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '63', 'type': 'block', 'children': ['64']}; {'id': '64', 'type': 'try_statement', 'children': ['65', '75']}; {'id': '65', 'type': 'block', 'children': ['66']}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'assignment', 'children': ['68', '71']}; {'id': '68', 'type': 'subscript', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '70', 'type': 'string', 'children': [], 'value': "'license'"}; {'id': '71', 'type': 'call', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'read_license'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'string', 'children': [], 'value': "'LICENSE'"}; {'id': '75', 'type': 'except_clause', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'IOError'}; {'id': '77', 'type': 'block', 'children': ['78']}; {'id': '78', 'type': 'pass_statement', 'children': []}; {'id': '79', 'type': 'if_statement', 'children': ['80', '83']}; {'id': '80', 'type': 'comparison_operator', 'children': ['81', '82'], 'value': 'not'}; {'id': '81', 'type': 'string', 'children': [], 'value': "'long_description'"}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '83', 'type': 'block', 'children': ['84']}; {'id': '84', 'type': 'expression_statement', 'children': ['85']}; {'id': '85', 'type': 'assignment', 'children': ['86', '89']}; {'id': '86', 'type': 'subscript', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '88', 'type': 'string', 'children': [], 'value': "'long_description'"}; {'id': '89', 'type': 'call', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'parse_readme'}; {'id': '91', 'type': 'argument_list', 'children': []} | Implicitly build kwargs based on standard info |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '16']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'load_cache'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '10', '13']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'fname'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'cfgstr'}; {'id': '7', 'type': 'default_parameter', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'ext'}; {'id': '9', 'type': 'string', 'children': [], 'value': "'.cPkl'"}; {'id': '10', 'type': 'default_parameter', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '12', 'type': 'None', 'children': []}; {'id': '13', 'type': 'default_parameter', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'enabled'}; {'id': '15', 'type': 'True', 'children': []}; {'id': '16', 'type': 'block', 'children': ['17', '26', '56', '66', '165', '264']}; {'id': '17', 'type': 'if_statement', 'children': ['18', '21']}; {'id': '18', 'type': 'comparison_operator', 'children': ['19', '20'], 'value': 'is'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '20', 'type': 'None', 'children': []}; {'id': '21', 'type': 'block', 'children': ['22']}; {'id': '22', 'type': 'expression_statement', 'children': ['23']}; {'id': '23', 'type': 'assignment', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'VERBOSE_CACHE'}; {'id': '26', 'type': 'if_statement', 'children': ['27', '32']}; {'id': '27', 'type': 'boolean_operator', 'children': ['28', '30'], 'value': 'or'}; {'id': '28', 'type': 'not_operator', 'children': ['29']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'USE_CACHE'}; {'id': '30', 'type': 'not_operator', 'children': ['31']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'enabled'}; {'id': '32', 'type': 'block', 'children': ['33', '50']}; {'id': '33', 'type': 'if_statement', 'children': ['34', '37']}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '36'], 'value': '>'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'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', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '41', 'type': 'argument_list', 'children': ['42']}; {'id': '42', 'type': 'binary_operator', 'children': ['43', '44'], 'value': '%'}; {'id': '43', 'type': 'string', 'children': [], 'value': "'[util_cache] ... cache disabled: dpath=%s cfgstr=%r'"}; {'id': '44', 'type': 'tuple', 'children': ['45', '49']}; {'id': '45', 'type': 'call', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'basename'}; {'id': '47', 'type': 'argument_list', 'children': ['48']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'cfgstr'}; {'id': '50', 'type': 'raise_statement', 'children': ['51']}; {'id': '51', 'type': 'call', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'IOError'}; {'id': '53', 'type': 'argument_list', 'children': ['54', '55']}; {'id': '54', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '55', 'type': 'string', 'children': [], 'value': "'Cache Loading Is Disabled'"}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '59', 'type': 'call', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': '_args2_fpath'}; {'id': '61', 'type': 'argument_list', 'children': ['62', '63', '64', '65']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'fname'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'cfgstr'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'ext'}; {'id': '66', 'type': 'if_statement', 'children': ['67', '72', '100']}; {'id': '67', 'type': 'not_operator', 'children': ['68']}; {'id': '68', 'type': 'call', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '70', 'type': 'argument_list', 'children': ['71']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '72', 'type': 'block', 'children': ['73', '91']}; {'id': '73', 'type': 'if_statement', 'children': ['74', '77']}; {'id': '74', 'type': 'comparison_operator', 'children': ['75', '76'], 'value': '>'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '76', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '77', 'type': 'block', 'children': ['78']}; {'id': '78', 'type': 'expression_statement', 'children': ['79']}; {'id': '79', 'type': 'call', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '81', 'type': 'argument_list', 'children': ['82']}; {'id': '82', 'type': 'binary_operator', 'children': ['83', '84'], 'value': '%'}; {'id': '83', 'type': 'string', 'children': [], 'value': "'[util_cache] ... cache does not exist: dpath=%r fname=%r cfgstr=%r'"}; {'id': '84', 'type': 'tuple', 'children': ['85', '89', '90']}; {'id': '85', 'type': 'call', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'basename'}; {'id': '87', 'type': 'argument_list', 'children': ['88']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'fname'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'cfgstr'}; {'id': '91', 'type': 'raise_statement', 'children': ['92']}; {'id': '92', 'type': 'call', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'IOError'}; {'id': '94', 'type': 'argument_list', 'children': ['95', '96']}; {'id': '95', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '96', 'type': 'binary_operator', 'children': ['97', '98'], 'value': '%'}; {'id': '97', 'type': 'string', 'children': [], 'value': "'No such file or directory: %r'"}; {'id': '98', 'type': 'tuple', 'children': ['99']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '100', 'type': 'else_clause', 'children': ['101']}; {'id': '101', 'type': 'block', 'children': ['102', '120', '125', '134', '149']}; {'id': '102', 'type': 'if_statement', 'children': ['103', '106']}; {'id': '103', 'type': 'comparison_operator', 'children': ['104', '105'], 'value': '>'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '105', 'type': 'integer', 'children': [], 'value': '2'}; {'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': 'print'}; {'id': '110', 'type': 'argument_list', 'children': ['111']}; {'id': '111', 'type': 'binary_operator', 'children': ['112', '113'], 'value': '%'}; {'id': '112', 'type': 'string', 'children': [], 'value': "'[util_cache] ... cache exists: dpath=%r fname=%r cfgstr=%r'"}; {'id': '113', 'type': 'tuple', 'children': ['114', '118', '119']}; {'id': '114', 'type': 'call', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'basename'}; {'id': '116', 'type': 'argument_list', 'children': ['117']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'fname'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'cfgstr'}; {'id': '120', 'type': 'import_statement', 'children': ['121']}; {'id': '121', 'type': 'aliased_import', 'children': ['122', '124']}; {'id': '122', 'type': 'dotted_name', 'children': ['123']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'utool'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '125', 'type': 'expression_statement', 'children': ['126']}; {'id': '126', 'type': 'assignment', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'nbytes'}; {'id': '128', 'type': 'call', 'children': ['129', '132']}; {'id': '129', 'type': 'attribute', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'get_file_nBytes'}; {'id': '132', 'type': 'argument_list', 'children': ['133']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '134', 'type': 'expression_statement', 'children': ['135']}; {'id': '135', 'type': 'assignment', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'big_verbose'}; {'id': '137', 'type': 'boolean_operator', 'children': ['138', '146'], 'value': 'or'}; {'id': '138', 'type': '()', 'children': ['139']}; {'id': '139', 'type': 'boolean_operator', 'children': ['140', '143'], 'value': 'and'}; {'id': '140', 'type': 'comparison_operator', 'children': ['141', '142'], 'value': '>'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'nbytes'}; {'id': '142', 'type': 'float', 'children': [], 'value': '1E6'}; {'id': '143', 'type': 'comparison_operator', 'children': ['144', '145'], 'value': '>'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '145', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '146', 'type': 'comparison_operator', 'children': ['147', '148'], 'value': '>'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '148', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '149', 'type': 'if_statement', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'big_verbose'}; {'id': '151', 'type': 'block', 'children': ['152']}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'call', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'binary_operator', 'children': ['157', '158'], 'value': '%'}; {'id': '157', 'type': 'string', 'children': [], 'value': "'[util_cache] About to read file of size %s'"}; {'id': '158', 'type': 'tuple', 'children': ['159']}; {'id': '159', 'type': 'call', 'children': ['160', '163']}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'byte_str2'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'nbytes'}; {'id': '165', 'type': 'try_statement', 'children': ['166', '198', '240', '252']}; {'id': '166', 'type': 'block', 'children': ['167']}; {'id': '167', 'type': 'with_statement', 'children': ['168', '183']}; {'id': '168', 'type': 'with_clause', 'children': ['169']}; {'id': '169', 'type': 'with_item', 'children': ['170']}; {'id': '170', 'type': 'call', 'children': ['171', '174']}; {'id': '171', 'type': 'attribute', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'Timer'}; {'id': '174', 'type': 'argument_list', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '176', 'type': 'keyword_argument', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '178', 'type': 'boolean_operator', 'children': ['179', '180'], 'value': 'and'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'big_verbose'}; {'id': '180', 'type': 'comparison_operator', 'children': ['181', '182'], 'value': '>'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '182', 'type': 'integer', 'children': [], 'value': '3'}; {'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': 'data'}; {'id': '187', 'type': 'call', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'util_io'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'load_data'}; {'id': '191', 'type': 'argument_list', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '193', 'type': 'keyword_argument', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '195', 'type': 'comparison_operator', 'children': ['196', '197'], 'value': '>'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '197', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '198', 'type': 'except_clause', 'children': ['199', '206']}; {'id': '199', 'type': 'as_pattern', 'children': ['200', '204']}; {'id': '200', 'type': 'tuple', 'children': ['201', '202', '203']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'EOFError'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'IOError'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'ImportError'}; {'id': '204', 'type': 'as_pattern_target', 'children': ['205']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '206', 'type': 'block', 'children': ['207', '215', '232']}; {'id': '207', 'type': 'expression_statement', 'children': ['208']}; {'id': '208', 'type': 'call', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '210', 'type': 'argument_list', 'children': ['211']}; {'id': '211', 'type': 'binary_operator', 'children': ['212', '213'], 'value': '%'}; {'id': '212', 'type': 'string', 'children': [], 'value': "'CORRUPTED? fpath = %s'"}; {'id': '213', 'type': 'tuple', 'children': ['214']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '215', 'type': 'if_statement', 'children': ['216', '219']}; {'id': '216', 'type': 'comparison_operator', 'children': ['217', '218'], 'value': '>'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '218', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '219', 'type': 'block', 'children': ['220']}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'call', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '223', 'type': 'argument_list', 'children': ['224']}; {'id': '224', 'type': 'binary_operator', 'children': ['225', '226'], 'value': '%'}; {'id': '225', 'type': 'string', 'children': [], 'value': "'[util_cache] ... cache miss dpath=%s cfgstr=%r'"}; {'id': '226', 'type': 'tuple', 'children': ['227', '231']}; {'id': '227', 'type': 'call', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'basename'}; {'id': '229', 'type': 'argument_list', 'children': ['230']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'cfgstr'}; {'id': '232', 'type': 'raise_statement', 'children': ['233']}; {'id': '233', 'type': 'call', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'IOError'}; {'id': '235', 'type': 'argument_list', 'children': ['236']}; {'id': '236', 'type': 'call', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '238', 'type': 'argument_list', 'children': ['239']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '240', 'type': 'except_clause', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '242', 'type': 'block', 'children': ['243', '251']}; {'id': '243', 'type': 'expression_statement', 'children': ['244']}; {'id': '244', 'type': 'call', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '246', 'type': 'argument_list', 'children': ['247']}; {'id': '247', 'type': 'binary_operator', 'children': ['248', '249'], 'value': '%'}; {'id': '248', 'type': 'string', 'children': [], 'value': "'CORRUPTED? fpath = %s'"}; {'id': '249', 'type': 'tuple', 'children': ['250']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '251', 'type': 'raise_statement', 'children': []}; {'id': '252', 'type': 'else_clause', 'children': ['253']}; {'id': '253', 'type': 'block', 'children': ['254']}; {'id': '254', 'type': 'if_statement', 'children': ['255', '258']}; {'id': '255', 'type': 'comparison_operator', 'children': ['256', '257'], 'value': '>'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '257', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '258', 'type': 'block', 'children': ['259']}; {'id': '259', 'type': 'expression_statement', 'children': ['260']}; {'id': '260', 'type': 'call', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '262', 'type': 'argument_list', 'children': ['263']}; {'id': '263', 'type': 'string', 'children': [], 'value': "'[util_cache] ... cache hit'"}; {'id': '264', 'type': 'return_statement', 'children': ['265']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'data'} | Loads data using util_io, but smartly constructs a filename |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '20']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'remove_files_in_dir'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11', '14', '17']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'fname_pattern_list'}; {'id': '7', 'type': 'string', 'children': [], 'value': "'*'"}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'recursive'}; {'id': '10', 'type': 'False', 'children': []}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'VERBOSE'}; {'id': '14', 'type': 'default_parameter', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'dryrun'}; {'id': '16', 'type': 'False', 'children': []}; {'id': '17', 'type': 'default_parameter', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'ignore_errors'}; {'id': '19', 'type': 'False', 'children': []}; {'id': '20', 'type': 'block', 'children': ['21', '35', '66', '74', '106', '163', '177']}; {'id': '21', 'type': 'if_statement', 'children': ['22', '29']}; {'id': '22', 'type': 'call', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '24', 'type': 'argument_list', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'fname_pattern_list'}; {'id': '26', 'type': 'attribute', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'string_types'}; {'id': '29', 'type': 'block', 'children': ['30']}; {'id': '30', 'type': 'expression_statement', 'children': ['31']}; {'id': '31', 'type': 'assignment', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'fname_pattern_list'}; {'id': '33', 'type': 'list', 'children': ['34'], 'value': '[fname_pattern_list]'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'fname_pattern_list'}; {'id': '35', 'type': 'if_statement', 'children': ['36', '39']}; {'id': '36', 'type': 'comparison_operator', 'children': ['37', '38'], 'value': '>'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '38', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '39', 'type': 'block', 'children': ['40', '45', '52', '59']}; {'id': '40', 'type': 'expression_statement', 'children': ['41']}; {'id': '41', 'type': 'call', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '43', 'type': 'argument_list', 'children': ['44']}; {'id': '44', 'type': 'string', 'children': [], 'value': "'[util_path] Removing files:'"}; {'id': '45', 'type': 'expression_statement', 'children': ['46']}; {'id': '46', 'type': 'call', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '48', 'type': 'argument_list', 'children': ['49']}; {'id': '49', 'type': 'binary_operator', 'children': ['50', '51'], 'value': '%'}; {'id': '50', 'type': 'string', 'children': [], 'value': "' * from dpath = %r '"}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'call', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '55', 'type': 'argument_list', 'children': ['56']}; {'id': '56', 'type': 'binary_operator', 'children': ['57', '58'], 'value': '%'}; {'id': '57', 'type': 'string', 'children': [], 'value': "' * with patterns = %r'"}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'fname_pattern_list'}; {'id': '59', 'type': 'expression_statement', 'children': ['60']}; {'id': '60', 'type': 'call', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '62', 'type': 'argument_list', 'children': ['63']}; {'id': '63', 'type': 'binary_operator', 'children': ['64', '65'], 'value': '%'}; {'id': '64', 'type': 'string', 'children': [], 'value': "' * recursive = %r'"}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'recursive'}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'assignment', 'children': ['68', '71']}; {'id': '68', 'type': 'pattern_list', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'num_removed'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'num_matched'}; {'id': '71', 'type': 'tuple', 'children': ['72', '73']}; {'id': '72', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '73', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '74', 'type': 'if_statement', 'children': ['75', '80']}; {'id': '75', 'type': 'not_operator', 'children': ['76']}; {'id': '76', 'type': 'call', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '78', 'type': 'argument_list', 'children': ['79']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '80', 'type': 'block', 'children': ['81', '88', '96']}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '84', 'type': '()', 'children': ['85']}; {'id': '85', 'type': 'binary_operator', 'children': ['86', '87'], 'value': '%'}; {'id': '86', 'type': 'string', 'children': [], 'value': "'!!! dir = %r does not exist!'"}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '88', 'type': 'if_statement', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '90', 'type': 'block', 'children': ['91']}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'call', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '94', 'type': 'argument_list', 'children': ['95']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'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': 'warnings'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'warn'}; {'id': '101', 'type': 'argument_list', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '103', 'type': 'keyword_argument', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'category'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'UserWarning'}; {'id': '106', 'type': 'for_statement', 'children': ['107', '111', '117']}; {'id': '107', 'type': 'pattern_list', 'children': ['108', '109', '110']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'root'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'dname_list'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'fname_list'}; {'id': '111', 'type': 'call', 'children': ['112', '115']}; {'id': '112', 'type': 'attribute', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'walk'}; {'id': '115', 'type': 'argument_list', 'children': ['116']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'dpath'}; {'id': '117', 'type': 'block', 'children': ['118', '158']}; {'id': '118', 'type': 'for_statement', 'children': ['119', '120', '121']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'fname_pattern'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'fname_pattern_list'}; {'id': '121', 'type': 'block', 'children': ['122']}; {'id': '122', 'type': 'for_statement', 'children': ['123', '124', '131']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'fname'}; {'id': '124', 'type': 'call', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'fnmatch'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'filter'}; {'id': '128', 'type': 'argument_list', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'fname_list'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'fname_pattern'}; {'id': '131', 'type': 'block', 'children': ['132', '136']}; {'id': '132', 'type': 'expression_statement', 'children': ['133']}; {'id': '133', 'type': 'augmented_assignment', 'children': ['134', '135'], 'value': '+='}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'num_matched'}; {'id': '135', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'augmented_assignment', 'children': ['138', '139'], 'value': '+='}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'num_removed'}; {'id': '139', 'type': 'call', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'remove_file'}; {'id': '141', 'type': 'argument_list', 'children': ['142', '147', '150', '153']}; {'id': '142', 'type': 'call', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '144', 'type': 'argument_list', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'root'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'fname'}; {'id': '147', 'type': 'keyword_argument', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'ignore_errors'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'ignore_errors'}; {'id': '150', 'type': 'keyword_argument', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'dryrun'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'dryrun'}; {'id': '153', 'type': 'keyword_argument', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '155', 'type': 'comparison_operator', 'children': ['156', '157'], 'value': '>'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '157', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '158', 'type': 'if_statement', 'children': ['159', '161']}; {'id': '159', 'type': 'not_operator', 'children': ['160']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'recursive'}; {'id': '161', 'type': 'block', 'children': ['162']}; {'id': '162', 'type': 'break_statement', 'children': []}; {'id': '163', 'type': 'if_statement', 'children': ['164', '167']}; {'id': '164', 'type': 'comparison_operator', 'children': ['165', '166'], 'value': '>'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'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', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '171', 'type': 'argument_list', 'children': ['172']}; {'id': '172', 'type': 'binary_operator', 'children': ['173', '174'], 'value': '%'}; {'id': '173', 'type': 'string', 'children': [], 'value': "'[util_path] ... Removed %d/%d files'"}; {'id': '174', 'type': 'tuple', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'num_removed'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'num_matched'}; {'id': '177', 'type': 'return_statement', 'children': ['178']}; {'id': '178', 'type': 'True', 'children': []} | Removes files matching a pattern from a directory |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '20']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'remove_fpaths'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11', '14', '17']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'fpaths'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'VERBOSE'}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'quiet'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'QUIET'}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'strict'}; {'id': '13', 'type': 'False', 'children': []}; {'id': '14', 'type': 'default_parameter', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'print_caller'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'PRINT_CALLER'}; {'id': '17', 'type': 'default_parameter', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'lbl'}; {'id': '19', 'type': 'string', 'children': [], 'value': "'files'"}; {'id': '20', 'type': 'block', 'children': ['21', '26', '45', '52', '64', '76', '80', '95', '102', '188', '201']}; {'id': '21', 'type': 'import_statement', 'children': ['22']}; {'id': '22', 'type': 'aliased_import', 'children': ['23', '25']}; {'id': '23', 'type': 'dotted_name', 'children': ['24']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'utool'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '26', 'type': 'if_statement', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'print_caller'}; {'id': '28', 'type': 'block', 'children': ['29']}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'call', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'binary_operator', 'children': ['34', '44'], 'value': '+'}; {'id': '34', 'type': 'call', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'util_dbg'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'get_caller_name'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'call', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '41', 'type': 'argument_list', 'children': ['42', '43']}; {'id': '42', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '43', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '44', 'type': 'string', 'children': [], 'value': "' called remove_fpaths'"}; {'id': '45', 'type': 'expression_statement', 'children': ['46']}; {'id': '46', 'type': 'assignment', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'n_total'}; {'id': '48', 'type': 'call', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '50', 'type': 'argument_list', 'children': ['51']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'fpaths'}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'assignment', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': '_verbose'}; {'id': '55', 'type': 'boolean_operator', 'children': ['56', '63'], 'value': 'or'}; {'id': '56', 'type': '()', 'children': ['57']}; {'id': '57', 'type': 'boolean_operator', 'children': ['58', '60'], 'value': 'and'}; {'id': '58', 'type': 'not_operator', 'children': ['59']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'quiet'}; {'id': '60', 'type': 'comparison_operator', 'children': ['61', '62'], 'value': '>'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'n_total'}; {'id': '62', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'VERYVERBOSE'}; {'id': '64', 'type': 'if_statement', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': '_verbose'}; {'id': '66', 'type': 'block', 'children': ['67']}; {'id': '67', 'type': 'expression_statement', 'children': ['68']}; {'id': '68', 'type': 'call', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '70', 'type': 'argument_list', 'children': ['71']}; {'id': '71', 'type': 'binary_operator', 'children': ['72', '73'], 'value': '%'}; {'id': '72', 'type': 'string', 'children': [], 'value': "'[util_path.remove_fpaths] try removing %d %s'"}; {'id': '73', 'type': 'tuple', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'n_total'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'lbl'}; {'id': '76', 'type': 'expression_statement', 'children': ['77']}; {'id': '77', 'type': 'assignment', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'n_removed'}; {'id': '79', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '80', 'type': 'expression_statement', 'children': ['81']}; {'id': '81', 'type': 'assignment', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'prog'}; {'id': '83', 'type': 'call', 'children': ['84', '87']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'ProgIter'}; {'id': '87', 'type': 'argument_list', 'children': ['88', '89', '92']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'fpaths'}; {'id': '89', 'type': 'keyword_argument', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '91', 'type': 'string', 'children': [], 'value': "'removing files'"}; {'id': '92', 'type': 'keyword_argument', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'enabled'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '95', 'type': 'expression_statement', 'children': ['96']}; {'id': '96', 'type': 'assignment', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': '_iter'}; {'id': '98', 'type': 'call', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'iter'}; {'id': '100', 'type': 'argument_list', 'children': ['101']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'prog'}; {'id': '102', 'type': 'try_statement', 'children': ['103', '119']}; {'id': '103', 'type': 'block', 'children': ['104']}; {'id': '104', 'type': 'for_statement', 'children': ['105', '106', '107']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': '_iter'}; {'id': '107', 'type': 'block', 'children': ['108', '115']}; {'id': '108', 'type': 'expression_statement', 'children': ['109']}; {'id': '109', 'type': 'call', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'remove'}; {'id': '113', 'type': 'argument_list', 'children': ['114']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '115', 'type': 'expression_statement', 'children': ['116']}; {'id': '116', 'type': 'augmented_assignment', 'children': ['117', '118'], 'value': '+='}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'n_removed'}; {'id': '118', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '119', 'type': 'except_clause', 'children': ['120', '124']}; {'id': '120', 'type': 'as_pattern', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'OSError'}; {'id': '122', 'type': 'as_pattern_target', 'children': ['123']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '124', 'type': 'block', 'children': ['125', '136', '154']}; {'id': '125', 'type': 'if_statement', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'VERYVERBOSE'}; {'id': '127', 'type': 'block', 'children': ['128']}; {'id': '128', 'type': 'expression_statement', 'children': ['129']}; {'id': '129', 'type': 'call', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '131', 'type': 'argument_list', 'children': ['132']}; {'id': '132', 'type': 'binary_operator', 'children': ['133', '134'], 'value': '%'}; {'id': '133', 'type': 'string', 'children': [], 'value': "'WARNING: Could not remove fpath = %r'"}; {'id': '134', 'type': 'tuple', 'children': ['135']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '136', 'type': 'if_statement', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'strict'}; {'id': '138', 'type': 'block', 'children': ['139', '153']}; {'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': 'util_dbg'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'printex'}; {'id': '144', 'type': 'argument_list', 'children': ['145', '146', '150']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '146', 'type': 'binary_operator', 'children': ['147', '148'], 'value': '%'}; {'id': '147', 'type': 'string', 'children': [], 'value': "'Could not remove fpath = %r'"}; {'id': '148', 'type': 'tuple', 'children': ['149']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '150', 'type': 'keyword_argument', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'iswarning'}; {'id': '152', 'type': 'False', 'children': []}; {'id': '153', 'type': 'raise_statement', 'children': []}; {'id': '154', 'type': 'for_statement', 'children': ['155', '156', '157']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': '_iter'}; {'id': '157', 'type': 'block', 'children': ['158']}; {'id': '158', 'type': 'try_statement', 'children': ['159', '171']}; {'id': '159', 'type': 'block', 'children': ['160', '167']}; {'id': '160', 'type': 'expression_statement', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '165']}; {'id': '162', 'type': 'attribute', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'remove'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '167', 'type': 'expression_statement', 'children': ['168']}; {'id': '168', 'type': 'augmented_assignment', 'children': ['169', '170'], 'value': '+='}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'n_removed'}; {'id': '170', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '171', 'type': 'except_clause', 'children': ['172', '176']}; {'id': '172', 'type': 'as_pattern', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'OSError'}; {'id': '174', 'type': 'as_pattern_target', 'children': ['175']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '176', 'type': 'block', 'children': ['177']}; {'id': '177', 'type': 'if_statement', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'VERYVERBOSE'}; {'id': '179', 'type': 'block', 'children': ['180']}; {'id': '180', 'type': 'expression_statement', 'children': ['181']}; {'id': '181', 'type': 'call', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '183', 'type': 'argument_list', 'children': ['184']}; {'id': '184', 'type': 'binary_operator', 'children': ['185', '186'], 'value': '%'}; {'id': '185', 'type': 'string', 'children': [], 'value': "'WARNING: Could not remove fpath = %r'"}; {'id': '186', 'type': 'tuple', 'children': ['187']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'fpath'}; {'id': '188', 'type': 'if_statement', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': '_verbose'}; {'id': '190', 'type': 'block', 'children': ['191']}; {'id': '191', 'type': 'expression_statement', 'children': ['192']}; {'id': '192', 'type': 'call', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '194', 'type': 'argument_list', 'children': ['195']}; {'id': '195', 'type': 'binary_operator', 'children': ['196', '197'], 'value': '%'}; {'id': '196', 'type': 'string', 'children': [], 'value': "'[util_path.remove_fpaths] ... removed %d / %d %s'"}; {'id': '197', 'type': 'tuple', 'children': ['198', '199', '200']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'n_removed'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'n_total'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'lbl'}; {'id': '201', 'type': 'return_statement', 'children': ['202']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'n_removed'} | Removes multiple file paths |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '15']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'find_lib_fpath'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '9', '12']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'libname'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'recurse_down'}; {'id': '8', 'type': 'True', 'children': []}; {'id': '9', 'type': 'default_parameter', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '11', 'type': 'False', 'children': []}; {'id': '12', 'type': 'default_parameter', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '14', 'type': 'False', 'children': []}; {'id': '15', 'type': 'block', 'children': ['16', '94', '124', '131', '135', '230', '243', '248', '258']}; {'id': '16', 'type': 'function_definition', 'children': ['17', '18', '20']}; {'id': '17', 'type': 'function_name', 'children': [], 'value': 'get_lib_fname_list'}; {'id': '18', 'type': 'parameters', 'children': ['19']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'libname'}; {'id': '20', 'type': 'block', 'children': ['21', '92']}; {'id': '21', 'type': 'if_statement', 'children': ['22', '30', '43', '62', '81']}; {'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': 'sys'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'platform'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '28', 'type': 'argument_list', 'children': ['29']}; {'id': '29', 'type': 'string', 'children': [], 'value': "'win32'"}; {'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': 'libnames'}; {'id': '34', 'type': 'list', 'children': ['35', '40'], 'value': "['lib' + libname + '.dll', libname + '.dll']"}; {'id': '35', 'type': 'binary_operator', 'children': ['36', '39'], 'value': '+'}; {'id': '36', 'type': 'binary_operator', 'children': ['37', '38'], 'value': '+'}; {'id': '37', 'type': 'string', 'children': [], 'value': "'lib'"}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'libname'}; {'id': '39', 'type': 'string', 'children': [], 'value': "'.dll'"}; {'id': '40', 'type': 'binary_operator', 'children': ['41', '42'], 'value': '+'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'libname'}; {'id': '42', 'type': 'string', 'children': [], 'value': "'.dll'"}; {'id': '43', 'type': 'elif_clause', 'children': ['44', '52']}; {'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': 'sys'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'platform'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '50', 'type': 'argument_list', 'children': ['51']}; {'id': '51', 'type': 'string', 'children': [], 'value': "'darwin'"}; {'id': '52', 'type': 'block', 'children': ['53']}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'libnames'}; {'id': '56', 'type': 'list', 'children': ['57'], 'value': "['lib' + libname + '.dylib']"}; {'id': '57', 'type': 'binary_operator', 'children': ['58', '61'], 'value': '+'}; {'id': '58', 'type': 'binary_operator', 'children': ['59', '60'], 'value': '+'}; {'id': '59', 'type': 'string', 'children': [], 'value': "'lib'"}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'libname'}; {'id': '61', 'type': 'string', 'children': [], 'value': "'.dylib'"}; {'id': '62', 'type': 'elif_clause', 'children': ['63', '71']}; {'id': '63', 'type': 'call', 'children': ['64', '69']}; {'id': '64', 'type': 'attribute', 'children': ['65', '68']}; {'id': '65', 'type': 'attribute', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'platform'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '69', 'type': 'argument_list', 'children': ['70']}; {'id': '70', 'type': 'string', 'children': [], 'value': "'linux'"}; {'id': '71', 'type': 'block', 'children': ['72']}; {'id': '72', 'type': 'expression_statement', 'children': ['73']}; {'id': '73', 'type': 'assignment', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'libnames'}; {'id': '75', 'type': 'list', 'children': ['76'], 'value': "['lib' + libname + '.so']"}; {'id': '76', 'type': 'binary_operator', 'children': ['77', '80'], 'value': '+'}; {'id': '77', 'type': 'binary_operator', 'children': ['78', '79'], 'value': '+'}; {'id': '78', 'type': 'string', 'children': [], 'value': "'lib'"}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'libname'}; {'id': '80', 'type': 'string', 'children': [], 'value': "'.so'"}; {'id': '81', 'type': 'else_clause', 'children': ['82']}; {'id': '82', 'type': 'block', 'children': ['83']}; {'id': '83', 'type': 'raise_statement', 'children': ['84']}; {'id': '84', 'type': 'call', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '86', 'type': 'argument_list', 'children': ['87']}; {'id': '87', 'type': 'binary_operator', 'children': ['88', '89'], 'value': '%'}; {'id': '88', 'type': 'string', 'children': [], 'value': "'Unknown operating system: %s'"}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'platform'}; {'id': '92', 'type': 'return_statement', 'children': ['93']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'libnames'}; {'id': '94', 'type': 'function_definition', 'children': ['95', '96', '98']}; {'id': '95', 'type': 'function_name', 'children': [], 'value': 'get_lib_dpath_list'}; {'id': '96', 'type': 'parameters', 'children': ['97']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '98', 'type': 'block', 'children': ['99', '101', '122']}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'string', 'children': [], 'value': "'returns possible lib locations'"}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'get_lib_dpath_list'}; {'id': '104', 'type': 'list', 'children': ['105', '106', '111', '116'], 'value': "[root_dir,\n join(root_dir, 'lib'),\n join(root_dir, 'build'),\n join(root_dir, 'build', 'lib')]"}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '106', 'type': 'call', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '108', 'type': 'argument_list', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '110', 'type': 'string', 'children': [], 'value': "'lib'"}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '113', 'type': 'argument_list', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '115', 'type': 'string', 'children': [], 'value': "'build'"}; {'id': '116', 'type': 'call', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '118', 'type': 'argument_list', 'children': ['119', '120', '121']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '120', 'type': 'string', 'children': [], 'value': "'build'"}; {'id': '121', 'type': 'string', 'children': [], 'value': "'lib'"}; {'id': '122', 'type': 'return_statement', 'children': ['123']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'get_lib_dpath_list'}; {'id': '124', 'type': 'expression_statement', 'children': ['125']}; {'id': '125', 'type': 'assignment', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'lib_fname_list'}; {'id': '127', 'type': 'call', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'get_lib_fname_list'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'libname'}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'assignment', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'tried_fpaths'}; {'id': '134', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '135', 'type': 'while_statement', 'children': ['136', '139']}; {'id': '136', 'type': 'comparison_operator', 'children': ['137', '138'], 'value': 'is'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '138', 'type': 'None', 'children': []}; {'id': '139', 'type': 'block', 'children': ['140', '225']}; {'id': '140', 'type': 'for_statement', 'children': ['141', '142', '143']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'lib_fname'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'lib_fname_list'}; {'id': '143', 'type': 'block', 'children': ['144', '202', '209']}; {'id': '144', 'type': 'for_statement', 'children': ['145', '146', '150']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'lib_dpath'}; {'id': '146', 'type': 'call', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'get_lib_dpath_list'}; {'id': '148', 'type': 'argument_list', 'children': ['149']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '150', 'type': 'block', 'children': ['151', '162']}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'assignment', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'lib_fpath'}; {'id': '154', 'type': 'call', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'normpath'}; {'id': '156', 'type': 'argument_list', 'children': ['157']}; {'id': '157', 'type': 'call', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '159', 'type': 'argument_list', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'lib_dpath'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'lib_fname'}; {'id': '162', 'type': 'if_statement', 'children': ['163', '167', '193']}; {'id': '163', 'type': 'call', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'lib_fpath'}; {'id': '167', 'type': 'block', 'children': ['168', '181', '191']}; {'id': '168', 'type': 'if_statement', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'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': 'print'}; {'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': "'\\n[c] Checked: '"}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '179', 'type': 'argument_list', 'children': ['180']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'tried_fpaths'}; {'id': '181', 'type': 'if_statement', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '183', 'type': 'block', 'children': ['184']}; {'id': '184', 'type': 'expression_statement', 'children': ['185']}; {'id': '185', 'type': 'call', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '187', 'type': 'argument_list', 'children': ['188']}; {'id': '188', 'type': 'binary_operator', 'children': ['189', '190'], 'value': '%'}; {'id': '189', 'type': 'string', 'children': [], 'value': "'using: %r'"}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'lib_fpath'}; {'id': '191', 'type': 'return_statement', 'children': ['192']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'lib_fpath'}; {'id': '193', 'type': 'else_clause', 'children': ['194']}; {'id': '194', 'type': 'block', 'children': ['195']}; {'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': 'tried_fpaths'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'lib_fpath'}; {'id': '202', 'type': 'expression_statement', 'children': ['203']}; {'id': '203', 'type': 'assignment', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': '_new_root'}; {'id': '205', 'type': 'call', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'dirname'}; {'id': '207', 'type': 'argument_list', 'children': ['208']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '209', 'type': 'if_statement', 'children': ['210', '213', '219']}; {'id': '210', 'type': 'comparison_operator', 'children': ['211', '212'], 'value': '=='}; {'id': '211', 'type': 'identifier', 'children': [], 'value': '_new_root'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '213', 'type': 'block', 'children': ['214', '218']}; {'id': '214', 'type': 'expression_statement', 'children': ['215']}; {'id': '215', 'type': 'assignment', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '217', 'type': 'None', 'children': []}; {'id': '218', 'type': 'break_statement', 'children': []}; {'id': '219', 'type': 'else_clause', 'children': ['220']}; {'id': '220', 'type': 'block', 'children': ['221']}; {'id': '221', 'type': 'expression_statement', 'children': ['222']}; {'id': '222', 'type': 'assignment', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': '_new_root'}; {'id': '225', 'type': 'if_statement', 'children': ['226', '228']}; {'id': '226', 'type': 'not_operator', 'children': ['227']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'recurse_down'}; {'id': '228', 'type': 'block', 'children': ['229']}; {'id': '229', 'type': 'break_statement', 'children': []}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'assignment', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '233', 'type': '()', 'children': ['234']}; {'id': '234', 'type': 'binary_operator', 'children': ['235', '242'], 'value': '+'}; {'id': '235', 'type': 'binary_operator', 'children': ['236', '237'], 'value': '%'}; {'id': '236', 'type': 'string', 'children': [], 'value': "'\\n[C!] load_clib(libname=%r root_dir=%r, recurse_down=%r, verbose=%r)'"}; {'id': '237', 'type': 'tuple', 'children': ['238', '239', '240', '241']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'libname'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'root_dir'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'recurse_down'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '242', 'type': 'string', 'children': [], 'value': "'\\n[c!] Cannot FIND dynamic library'"}; {'id': '243', 'type': 'expression_statement', 'children': ['244']}; {'id': '244', 'type': 'call', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '246', 'type': 'argument_list', 'children': ['247']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '248', 'type': 'expression_statement', 'children': ['249']}; {'id': '249', 'type': 'call', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '251', 'type': 'argument_list', 'children': ['252']}; {'id': '252', 'type': 'call', 'children': ['253', '256']}; {'id': '253', 'type': 'attribute', 'children': ['254', '255']}; {'id': '254', 'type': 'string', 'children': [], 'value': "'\\n[c!] Checked: '"}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '256', 'type': 'argument_list', 'children': ['257']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'tried_fpaths'}; {'id': '258', 'type': 'raise_statement', 'children': ['259']}; {'id': '259', 'type': 'call', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'ImportError'}; {'id': '261', 'type': 'argument_list', 'children': ['262']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'msg'} | Search for the library |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '17']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'parse_keys'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11', '14']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'with_spaces'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'with_tabs'}; {'id': '10', 'type': 'False', 'children': []}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'with_newlines'}; {'id': '13', 'type': 'False', 'children': []}; {'id': '14', 'type': 'default_parameter', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '16', 'type': 'None', 'children': []}; {'id': '17', 'type': 'block', 'children': ['18', '20', '24', '32', '36', '321', '341']}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'string', 'children': [], 'value': '"Return the parsed keys"'}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '23', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '24', 'type': 'if_statement', 'children': ['25', '27']}; {'id': '25', 'type': 'not_operator', 'children': ['26']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '27', 'type': 'block', 'children': ['28']}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '31', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'assignment', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '35', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '36', 'type': 'while_statement', 'children': ['37', '43']}; {'id': '37', 'type': 'comparison_operator', 'children': ['38', '39'], 'value': '<'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '39', 'type': 'call', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '41', 'type': 'argument_list', 'children': ['42']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '43', 'type': 'block', 'children': ['44', '50', '54', '292']}; {'id': '44', 'type': 'expression_statement', 'children': ['45']}; {'id': '45', 'type': 'assignment', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '47', 'type': 'subscript', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '50', 'type': 'expression_statement', 'children': ['51']}; {'id': '51', 'type': 'augmented_assignment', 'children': ['52', '53'], 'value': '+='}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '53', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '54', 'type': 'if_statement', 'children': ['55', '62', '99', '149', '202', '212', '222']}; {'id': '55', 'type': 'comparison_operator', 'children': ['56', '57'], 'value': 'in'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '57', 'type': 'call', 'children': ['58', '61']}; {'id': '58', 'type': 'attribute', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'MODIFIERS'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '61', 'type': 'argument_list', 'children': []}; {'id': '62', 'type': 'block', 'children': ['63', '69', '76', '89', '98']}; {'id': '63', 'type': 'expression_statement', 'children': ['64']}; {'id': '64', 'type': 'assignment', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'modifier'}; {'id': '66', 'type': 'subscript', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'MODIFIERS'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'c'}; {'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': 'modifiers'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '74', 'type': 'argument_list', 'children': ['75']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'modifier'}; {'id': '76', 'type': 'expression_statement', 'children': ['77']}; {'id': '77', 'type': 'call', 'children': ['78', '81']}; {'id': '78', 'type': 'attribute', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '81', 'type': 'argument_list', 'children': ['82']}; {'id': '82', 'type': 'call', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'VirtualKeyAction'}; {'id': '84', 'type': 'argument_list', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'modifier'}; {'id': '86', 'type': 'keyword_argument', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'up'}; {'id': '88', 'type': 'False', 'children': []}; {'id': '89', 'type': 'if_statement', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'DEBUG'}; {'id': '91', 'type': 'block', 'children': ['92']}; {'id': '92', 'type': 'expression_statement', 'children': ['93']}; {'id': '93', 'type': 'call', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '95', 'type': 'argument_list', 'children': ['96', '97']}; {'id': '96', 'type': 'string', 'children': [], 'value': '"MODS+"'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '98', 'type': 'continue_statement', 'children': []}; {'id': '99', 'type': 'elif_clause', 'children': ['100', '103']}; {'id': '100', 'type': 'comparison_operator', 'children': ['101', '102'], 'value': '=='}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '102', 'type': 'string', 'children': [], 'value': '"("'}; {'id': '103', 'type': 'block', 'children': ['104', '114', '125', '143']}; {'id': '104', 'type': 'expression_statement', 'children': ['105']}; {'id': '105', 'type': 'assignment', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'end_pos'}; {'id': '107', 'type': 'call', 'children': ['108', '111']}; {'id': '108', 'type': 'attribute', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'find'}; {'id': '111', 'type': 'argument_list', 'children': ['112', '113']}; {'id': '112', 'type': 'string', 'children': [], 'value': '")"'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '114', 'type': 'if_statement', 'children': ['115', '119']}; {'id': '115', 'type': 'comparison_operator', 'children': ['116', '117'], 'value': '=='}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'end_pos'}; {'id': '117', 'type': 'unary_operator', 'children': ['118'], 'value': '-'}; {'id': '118', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '119', 'type': 'block', 'children': ['120']}; {'id': '120', 'type': 'raise_statement', 'children': ['121']}; {'id': '121', 'type': 'call', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'KeySequenceError'}; {'id': '123', 'type': 'argument_list', 'children': ['124']}; {'id': '124', 'type': 'string', 'children': [], 'value': "'`)` not found'"}; {'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': 'keys'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '130', 'type': 'argument_list', 'children': ['131']}; {'id': '131', 'type': 'call', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'parse_keys'}; {'id': '133', 'type': 'argument_list', 'children': ['134', '140']}; {'id': '134', 'type': 'subscript', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '136', 'type': 'slice', 'children': ['137', '138', '139']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '138', 'type': 'colon', 'children': []}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'end_pos'}; {'id': '140', 'type': 'keyword_argument', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'assignment', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '146', 'type': 'binary_operator', 'children': ['147', '148'], 'value': '+'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'end_pos'}; {'id': '148', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '149', 'type': 'elif_clause', 'children': ['150', '153']}; {'id': '150', 'type': 'comparison_operator', 'children': ['151', '152'], 'value': '=='}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '152', 'type': 'string', 'children': [], 'value': '"{"'}; {'id': '153', 'type': 'block', 'children': ['154', '166', '177', '186', '192']}; {'id': '154', 'type': 'expression_statement', 'children': ['155']}; {'id': '155', 'type': 'assignment', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'end_pos'}; {'id': '157', 'type': 'call', 'children': ['158', '161']}; {'id': '158', 'type': 'attribute', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'find'}; {'id': '161', 'type': 'argument_list', 'children': ['162', '163']}; {'id': '162', 'type': 'string', 'children': [], 'value': '"}"'}; {'id': '163', 'type': 'binary_operator', 'children': ['164', '165'], 'value': '+'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '165', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '166', 'type': 'if_statement', 'children': ['167', '171']}; {'id': '167', 'type': 'comparison_operator', 'children': ['168', '169'], 'value': '=='}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'end_pos'}; {'id': '169', 'type': 'unary_operator', 'children': ['170'], 'value': '-'}; {'id': '170', 'type': 'integer', 'children': [], 'value': '1'}; {'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': 'KeySequenceError'}; {'id': '175', 'type': 'argument_list', 'children': ['176']}; {'id': '176', 'type': 'string', 'children': [], 'value': "'`}` not found'"}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'code'}; {'id': '180', 'type': 'subscript', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '182', 'type': 'slice', 'children': ['183', '184', '185']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '184', 'type': 'colon', 'children': []}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'end_pos'}; {'id': '186', 'type': 'expression_statement', 'children': ['187']}; {'id': '187', 'type': 'assignment', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '189', 'type': 'binary_operator', 'children': ['190', '191'], 'value': '+'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'end_pos'}; {'id': '191', 'type': 'integer', 'children': [], 'value': '1'}; {'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': 'keys'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '197', 'type': 'argument_list', 'children': ['198']}; {'id': '198', 'type': 'call', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'handle_code'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'code'}; {'id': '202', 'type': 'elif_clause', 'children': ['203', '206']}; {'id': '203', 'type': 'comparison_operator', 'children': ['204', '205'], 'value': '=='}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '205', 'type': 'string', 'children': [], 'value': "')'"}; {'id': '206', 'type': 'block', 'children': ['207']}; {'id': '207', 'type': 'raise_statement', 'children': ['208']}; {'id': '208', 'type': 'call', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'KeySequenceError'}; {'id': '210', 'type': 'argument_list', 'children': ['211']}; {'id': '211', 'type': 'string', 'children': [], 'value': "'`)` should be preceeded by `(`'"}; {'id': '212', 'type': 'elif_clause', 'children': ['213', '216']}; {'id': '213', 'type': 'comparison_operator', 'children': ['214', '215'], 'value': '=='}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '215', 'type': 'string', 'children': [], 'value': "'}'"}; {'id': '216', 'type': 'block', 'children': ['217']}; {'id': '217', 'type': 'raise_statement', 'children': ['218']}; {'id': '218', 'type': 'call', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'KeySequenceError'}; {'id': '220', 'type': 'argument_list', 'children': ['221']}; {'id': '221', 'type': 'string', 'children': [], 'value': "'`}` should be preceeded by `{`'"}; {'id': '222', 'type': 'else_clause', 'children': ['223']}; {'id': '223', 'type': 'block', 'children': ['224', '248']}; {'id': '224', 'type': 'if_statement', 'children': ['225', '246']}; {'id': '225', 'type': '()', 'children': ['226']}; {'id': '226', 'type': 'boolean_operator', 'children': ['227', '240'], 'value': 'or'}; {'id': '227', 'type': 'boolean_operator', 'children': ['228', '234'], 'value': 'or'}; {'id': '228', 'type': 'boolean_operator', 'children': ['229', '232'], 'value': 'and'}; {'id': '229', 'type': 'comparison_operator', 'children': ['230', '231'], 'value': '=='}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '231', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '232', 'type': 'not_operator', 'children': ['233']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'with_spaces'}; {'id': '234', 'type': 'boolean_operator', 'children': ['235', '238'], 'value': 'and'}; {'id': '235', 'type': 'comparison_operator', 'children': ['236', '237'], 'value': '=='}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '237', 'type': 'string', 'children': [], 'value': "'\\t'"}; {'id': '238', 'type': 'not_operator', 'children': ['239']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'with_tabs'}; {'id': '240', 'type': 'boolean_operator', 'children': ['241', '244'], 'value': 'and'}; {'id': '241', 'type': 'comparison_operator', 'children': ['242', '243'], 'value': '=='}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '243', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '244', 'type': 'not_operator', 'children': ['245']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'with_newlines'}; {'id': '246', 'type': 'block', 'children': ['247']}; {'id': '247', 'type': 'continue_statement', 'children': []}; {'id': '248', 'type': 'if_statement', 'children': ['249', '254', '267', '280']}; {'id': '249', 'type': 'comparison_operator', 'children': ['250', '251'], 'value': 'in'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '251', 'type': 'tuple', 'children': ['252', '253']}; {'id': '252', 'type': 'string', 'children': [], 'value': "'~'"}; {'id': '253', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'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': 'keys'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '260', 'type': 'argument_list', 'children': ['261']}; {'id': '261', 'type': 'call', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'VirtualKeyAction'}; {'id': '263', 'type': 'argument_list', 'children': ['264']}; {'id': '264', 'type': 'subscript', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'CODES'}; {'id': '266', 'type': 'string', 'children': [], 'value': '"ENTER"'}; {'id': '267', 'type': 'elif_clause', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '269', 'type': 'block', 'children': ['270']}; {'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': 'keys'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '275', 'type': 'argument_list', 'children': ['276']}; {'id': '276', 'type': 'call', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'EscapedKeyAction'}; {'id': '278', 'type': 'argument_list', 'children': ['279']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '280', 'type': 'else_clause', 'children': ['281']}; {'id': '281', 'type': 'block', 'children': ['282']}; {'id': '282', 'type': 'expression_statement', 'children': ['283']}; {'id': '283', 'type': 'call', 'children': ['284', '287']}; {'id': '284', 'type': 'attribute', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '287', 'type': 'argument_list', 'children': ['288']}; {'id': '288', 'type': 'call', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'KeyAction'}; {'id': '290', 'type': 'argument_list', 'children': ['291']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '292', 'type': 'while_statement', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '294', 'type': 'block', 'children': ['295', '304']}; {'id': '295', 'type': 'if_statement', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'DEBUG'}; {'id': '297', 'type': 'block', 'children': ['298']}; {'id': '298', 'type': 'expression_statement', 'children': ['299']}; {'id': '299', 'type': 'call', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '301', 'type': 'argument_list', 'children': ['302', '303']}; {'id': '302', 'type': 'string', 'children': [], 'value': '"MODS-"'}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '304', 'type': 'expression_statement', 'children': ['305']}; {'id': '305', 'type': 'call', 'children': ['306', '309']}; {'id': '306', 'type': 'attribute', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '309', 'type': 'argument_list', 'children': ['310']}; {'id': '310', 'type': 'call', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'VirtualKeyAction'}; {'id': '312', 'type': 'argument_list', 'children': ['313', '318']}; {'id': '313', 'type': 'call', 'children': ['314', '317']}; {'id': '314', 'type': 'attribute', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '317', 'type': 'argument_list', 'children': []}; {'id': '318', 'type': 'keyword_argument', 'children': ['319', '320']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'down'}; {'id': '320', 'type': 'False', 'children': []}; {'id': '321', 'type': 'while_statement', 'children': ['322', '323']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '323', 'type': 'block', 'children': ['324']}; {'id': '324', 'type': 'expression_statement', 'children': ['325']}; {'id': '325', 'type': 'call', 'children': ['326', '329']}; {'id': '326', 'type': 'attribute', 'children': ['327', '328']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '329', 'type': 'argument_list', 'children': ['330']}; {'id': '330', 'type': 'call', 'children': ['331', '332']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'VirtualKeyAction'}; {'id': '332', 'type': 'argument_list', 'children': ['333', '338']}; {'id': '333', 'type': 'call', 'children': ['334', '337']}; {'id': '334', 'type': 'attribute', 'children': ['335', '336']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '337', 'type': 'argument_list', 'children': []}; {'id': '338', 'type': 'keyword_argument', 'children': ['339', '340']}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'down'}; {'id': '340', 'type': 'False', 'children': []}; {'id': '341', 'type': 'return_statement', 'children': ['342']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'keys'} | Return the parsed keys |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '14']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '__argv_flag_dec'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'func'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'default'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'quiet'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'QUIET'}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '13', 'type': 'False', 'children': []}; {'id': '14', 'type': 'block', 'children': ['15', '20', '29', '47', '63', '261', '274']}; {'id': '15', 'type': 'import_from_statement', 'children': ['16', '18']}; {'id': '16', 'type': 'dotted_name', 'children': ['17']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'utool'}; {'id': '18', 'type': 'dotted_name', 'children': ['19']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'util_decor'}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'flagname'}; {'id': '23', 'type': 'call', 'children': ['24', '27']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'meta_util_six'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'get_funcname'}; {'id': '27', 'type': 'argument_list', 'children': ['28']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'func'}; {'id': '29', 'type': 'if_statement', 'children': ['30', '38']}; {'id': '30', 'type': 'comparison_operator', 'children': ['31', '37'], 'value': '=='}; {'id': '31', 'type': 'call', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'flagname'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'find'}; {'id': '35', 'type': 'argument_list', 'children': ['36']}; {'id': '36', 'type': 'string', 'children': [], 'value': "'no'"}; {'id': '37', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '38', 'type': 'block', 'children': ['39']}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'assignment', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'flagname'}; {'id': '42', 'type': 'subscript', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'flagname'}; {'id': '44', 'type': 'slice', 'children': ['45', '46']}; {'id': '45', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '46', 'type': 'colon', 'children': []}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'assignment', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'flags'}; {'id': '50', 'type': 'tuple', 'children': ['51', '60']}; {'id': '51', 'type': 'binary_operator', 'children': ['52', '53'], 'value': '+'}; {'id': '52', 'type': 'string', 'children': [], 'value': "'--'"}; {'id': '53', 'type': 'call', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'flagname'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '57', 'type': 'argument_list', 'children': ['58', '59']}; {'id': '58', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '59', 'type': 'string', 'children': [], 'value': "'-'"}; {'id': '60', 'type': 'binary_operator', 'children': ['61', '62'], 'value': '+'}; {'id': '61', 'type': 'string', 'children': [], 'value': "'--'"}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'flagname'}; {'id': '63', 'type': 'decorated_definition', 'children': ['64', '73']}; {'id': '64', 'type': 'decorator', 'children': ['65']}; {'id': '65', 'type': 'call', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'util_decor'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'ignores_exc_tb'}; {'id': '69', 'type': 'argument_list', 'children': ['70']}; {'id': '70', 'type': 'keyword_argument', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'outer_wrapper'}; {'id': '72', 'type': 'False', 'children': []}; {'id': '73', 'type': 'function_definition', 'children': ['74', '75', '80']}; {'id': '74', 'type': 'function_name', 'children': [], 'value': 'GaurdWrapper'}; {'id': '75', 'type': 'parameters', 'children': ['76', '78']}; {'id': '76', 'type': 'list_splat_pattern', 'children': ['77']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '78', 'type': 'dictionary_splat_pattern', 'children': ['79']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '80', 'type': 'block', 'children': ['81', '86', '96', '106', '132', '146']}; {'id': '81', 'type': 'import_from_statement', 'children': ['82', '84']}; {'id': '82', 'type': 'dotted_name', 'children': ['83']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'utool'}; {'id': '84', 'type': 'dotted_name', 'children': ['85']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'util_print'}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'assignment', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'default_'}; {'id': '89', 'type': 'call', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '93', 'type': 'argument_list', 'children': ['94', '95']}; {'id': '94', 'type': 'string', 'children': [], 'value': "'default'"}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'default'}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'assignment', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'alias_flags'}; {'id': '99', 'type': 'call', 'children': ['100', '103']}; {'id': '100', 'type': 'attribute', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '103', 'type': 'argument_list', 'children': ['104', '105']}; {'id': '104', 'type': 'string', 'children': [], 'value': "'alias_flags'"}; {'id': '105', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'is_flagged'}; {'id': '109', 'type': '()', 'children': ['110']}; {'id': '110', 'type': 'boolean_operator', 'children': ['111', '121'], 'value': 'or'}; {'id': '111', 'type': 'boolean_operator', 'children': ['112', '117'], 'value': 'or'}; {'id': '112', 'type': 'call', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'get_argflag'}; {'id': '114', 'type': 'argument_list', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'flags'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'default_'}; {'id': '117', 'type': 'call', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'get_argflag'}; {'id': '119', 'type': 'argument_list', 'children': ['120']}; {'id': '120', 'type': 'string', 'children': [], 'value': "'--print-all'"}; {'id': '121', 'type': 'call', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'any'}; {'id': '123', 'type': 'argument_list', 'children': ['124']}; {'id': '124', 'type': 'list_comprehension', 'children': ['125', '129']}; {'id': '125', 'type': 'call', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'get_argflag'}; {'id': '127', 'type': 'argument_list', 'children': ['128']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '129', 'type': 'for_in_clause', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'alias_flags'}; {'id': '132', 'type': 'if_statement', 'children': ['133', '136']}; {'id': '133', 'type': 'comparison_operator', 'children': ['134', '135'], 'value': 'in'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'flagname'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'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': 'is_flagged'}; {'id': '140', 'type': 'call', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'flagname'}; {'id': '146', 'type': 'if_statement', 'children': ['147', '148', '233']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'is_flagged'}; {'id': '148', 'type': 'block', 'children': ['149', '167', '176', '182', '199', '222', '231']}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'assignment', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'func_label'}; {'id': '152', 'type': 'call', 'children': ['153', '164']}; {'id': '153', 'type': 'attribute', 'children': ['154', '163']}; {'id': '154', 'type': 'call', 'children': ['155', '160']}; {'id': '155', 'type': 'attribute', 'children': ['156', '159']}; {'id': '156', 'type': 'subscript', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'flags'}; {'id': '158', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '160', 'type': 'argument_list', 'children': ['161', '162']}; {'id': '161', 'type': 'string', 'children': [], 'value': "'--'"}; {'id': '162', 'type': 'string', 'children': [], 'value': "''"}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '164', 'type': 'argument_list', 'children': ['165', '166']}; {'id': '165', 'type': 'string', 'children': [], 'value': "'print-'"}; {'id': '166', 'type': 'string', 'children': [], 'value': "''"}; {'id': '167', 'type': 'expression_statement', 'children': ['168']}; {'id': '168', 'type': 'call', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '170', 'type': 'argument_list', 'children': ['171']}; {'id': '171', 'type': 'binary_operator', 'children': ['172', '175'], 'value': '+'}; {'id': '172', 'type': 'binary_operator', 'children': ['173', '174'], 'value': '+'}; {'id': '173', 'type': 'string', 'children': [], 'value': "'\\n+ --- '"}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'func_label'}; {'id': '175', 'type': 'string', 'children': [], 'value': "' ___'"}; {'id': '176', 'type': 'expression_statement', 'children': ['177']}; {'id': '177', 'type': 'assignment', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'use_indent'}; {'id': '179', 'type': 'comparison_operator', 'children': ['180', '181'], 'value': 'is'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '181', 'type': 'False', 'children': []}; {'id': '182', 'type': 'if_statement', 'children': ['183', '186', '193']}; {'id': '183', 'type': 'comparison_operator', 'children': ['184', '185'], 'value': 'is'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '185', 'type': 'True', 'children': []}; {'id': '186', 'type': 'block', 'children': ['187']}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'assignment', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'indent_'}; {'id': '190', 'type': 'binary_operator', 'children': ['191', '192'], 'value': '%'}; {'id': '191', 'type': 'string', 'children': [], 'value': "'[%s]'"}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'func_label'}; {'id': '193', 'type': 'else_clause', 'children': ['194']}; {'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': 'indent_'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '199', 'type': 'with_statement', 'children': ['200', '211']}; {'id': '200', 'type': 'with_clause', 'children': ['201']}; {'id': '201', 'type': 'with_item', 'children': ['202']}; {'id': '202', 'type': 'call', 'children': ['203', '206']}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'util_print'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'Indenter'}; {'id': '206', 'type': 'argument_list', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'indent_'}; {'id': '208', 'type': 'keyword_argument', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'enabled'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'use_indent'}; {'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': 'ret'}; {'id': '215', 'type': 'call', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'func'}; {'id': '217', 'type': 'argument_list', 'children': ['218', '220']}; {'id': '218', 'type': 'list_splat', 'children': ['219']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '220', 'type': 'dictionary_splat', 'children': ['221']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '222', 'type': 'expression_statement', 'children': ['223']}; {'id': '223', 'type': 'call', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '225', 'type': 'argument_list', 'children': ['226']}; {'id': '226', 'type': 'binary_operator', 'children': ['227', '230'], 'value': '+'}; {'id': '227', 'type': 'binary_operator', 'children': ['228', '229'], 'value': '+'}; {'id': '228', 'type': 'string', 'children': [], 'value': "'L ___ '"}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'func_label'}; {'id': '230', 'type': 'string', 'children': [], 'value': "'___\\n'"}; {'id': '231', 'type': 'return_statement', 'children': ['232']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'ret'}; {'id': '233', 'type': 'else_clause', 'children': ['234']}; {'id': '234', 'type': 'block', 'children': ['235', '246']}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'assignment', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'PRINT_DISABLED_FLAGDEC'}; {'id': '238', 'type': 'not_operator', 'children': ['239']}; {'id': '239', 'type': 'call', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'get_argflag'}; {'id': '241', 'type': 'argument_list', 'children': ['242', '243']}; {'id': '242', 'type': 'string', 'children': [], 'value': "'--noinform'"}; {'id': '243', 'type': 'keyword_argument', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'help_'}; {'id': '245', 'type': 'string', 'children': [], 'value': "'does not print disabled flag decorators'"}; {'id': '246', 'type': 'if_statement', 'children': ['247', '251']}; {'id': '247', 'type': 'boolean_operator', 'children': ['248', '250'], 'value': 'and'}; {'id': '248', 'type': 'not_operator', 'children': ['249']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'quiet'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'PRINT_DISABLED_FLAGDEC'}; {'id': '251', 'type': 'block', 'children': ['252']}; {'id': '252', 'type': 'expression_statement', 'children': ['253']}; {'id': '253', 'type': 'call', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '255', 'type': 'argument_list', 'children': ['256']}; {'id': '256', 'type': 'binary_operator', 'children': ['257', '258'], 'value': '%'}; {'id': '257', 'type': 'string', 'children': [], 'value': "'~~~ %s ~~~'"}; {'id': '258', 'type': 'subscript', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'flags'}; {'id': '260', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '261', 'type': 'expression_statement', 'children': ['262']}; {'id': '262', 'type': 'call', 'children': ['263', '266']}; {'id': '263', 'type': 'attribute', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'meta_util_six'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'set_funcname'}; {'id': '266', 'type': 'argument_list', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'GaurdWrapper'}; {'id': '268', 'type': 'call', 'children': ['269', '272']}; {'id': '269', 'type': 'attribute', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'meta_util_six'}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'get_funcname'}; {'id': '272', 'type': 'argument_list', 'children': ['273']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'func'}; {'id': '274', 'type': 'return_statement', 'children': ['275']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'GaurdWrapper'} | Logic for controlling if a function gets called based on command line |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_funcnames_from_modpath'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'modpath'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'include_methods'}; {'id': '7', 'type': 'True', 'children': []}; {'id': '8', 'type': 'block', 'children': ['9', '14', '165']}; {'id': '9', 'type': 'import_statement', 'children': ['10']}; {'id': '10', 'type': 'aliased_import', 'children': ['11', '13']}; {'id': '11', 'type': 'dotted_name', 'children': ['12']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'utool'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '14', 'type': 'if_statement', 'children': ['15', '16', '114']}; {'id': '15', 'type': 'True', 'children': []}; {'id': '16', 'type': 'block', 'children': ['17', '20', '29', '38', '54']}; {'id': '17', 'type': 'import_statement', 'children': ['18']}; {'id': '18', 'type': 'dotted_name', 'children': ['19']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'jedi'}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '23', 'type': 'call', 'children': ['24', '27']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'read_from'}; {'id': '27', 'type': 'argument_list', 'children': ['28']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'modpath'}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'assignment', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'definition_list'}; {'id': '32', 'type': 'call', 'children': ['33', '36']}; {'id': '33', 'type': 'attribute', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'jedi'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'names'}; {'id': '36', 'type': 'argument_list', 'children': ['37']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'funcname_list'}; {'id': '41', 'type': 'list_comprehension', 'children': ['42', '45', '48']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'definition'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '45', 'type': 'for_in_clause', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'definition'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'definition_list'}; {'id': '48', 'type': 'if_clause', 'children': ['49']}; {'id': '49', 'type': 'comparison_operator', 'children': ['50', '53'], 'value': '=='}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'definition'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '53', 'type': 'string', 'children': [], 'value': "'function'"}; {'id': '54', 'type': 'if_statement', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'include_methods'}; {'id': '56', 'type': 'block', 'children': ['57', '71', '88']}; {'id': '57', 'type': 'expression_statement', 'children': ['58']}; {'id': '58', 'type': 'assignment', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'classdef_list'}; {'id': '60', 'type': 'list_comprehension', 'children': ['61', '62', '65']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'definition'}; {'id': '62', 'type': 'for_in_clause', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'definition'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'definition_list'}; {'id': '65', 'type': 'if_clause', 'children': ['66']}; {'id': '66', 'type': 'comparison_operator', 'children': ['67', '70'], 'value': '=='}; {'id': '67', 'type': 'attribute', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'definition'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '70', 'type': 'string', 'children': [], 'value': "'class'"}; {'id': '71', 'type': 'expression_statement', 'children': ['72']}; {'id': '72', 'type': 'assignment', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'defined_methods'}; {'id': '74', 'type': 'call', 'children': ['75', '78']}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'flatten'}; {'id': '78', 'type': 'argument_list', 'children': ['79']}; {'id': '79', 'type': 'list_comprehension', 'children': ['80', '85']}; {'id': '80', 'type': 'call', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'definition'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'defined_names'}; {'id': '84', 'type': 'argument_list', 'children': []}; {'id': '85', 'type': 'for_in_clause', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'definition'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'classdef_list'}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'augmented_assignment', 'children': ['90', '91'], 'value': '+='}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'funcname_list'}; {'id': '91', 'type': 'list_comprehension', 'children': ['92', '95', '98']}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '95', 'type': 'for_in_clause', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'defined_methods'}; {'id': '98', 'type': 'if_clause', 'children': ['99']}; {'id': '99', 'type': 'boolean_operator', 'children': ['100', '105'], 'value': 'and'}; {'id': '100', 'type': 'comparison_operator', 'children': ['101', '104'], 'value': '=='}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '104', 'type': 'string', 'children': [], 'value': "'function'"}; {'id': '105', 'type': 'not_operator', 'children': ['106']}; {'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': 'method'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'id': '113', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '114', 'type': 'else_clause', 'children': ['115']}; {'id': '115', 'type': 'block', 'children': ['116', '119', '128', '137']}; {'id': '116', 'type': 'import_statement', 'children': ['117']}; {'id': '117', 'type': 'dotted_name', 'children': ['118']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'redbaron'}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'sourcecode'}; {'id': '122', 'type': 'call', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'read_from'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'modpath'}; {'id': '128', 'type': 'expression_statement', 'children': ['129']}; {'id': '129', 'type': 'assignment', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'baron'}; {'id': '131', 'type': 'call', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'redbaron'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'RedBaron'}; {'id': '135', 'type': 'argument_list', 'children': ['136']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'sourcecode'}; {'id': '137', 'type': 'expression_statement', 'children': ['138']}; {'id': '138', 'type': 'assignment', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'funcname_list'}; {'id': '140', 'type': 'list_comprehension', 'children': ['141', '144', '155']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '144', 'type': 'for_in_clause', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '146', 'type': 'call', 'children': ['147', '150']}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'baron'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'find_all'}; {'id': '150', 'type': 'argument_list', 'children': ['151', '152']}; {'id': '151', 'type': 'string', 'children': [], 'value': "'def'"}; {'id': '152', 'type': 'keyword_argument', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'recursive'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'include_methods'}; {'id': '155', 'type': 'if_clause', 'children': ['156']}; {'id': '156', 'type': 'not_operator', 'children': ['157']}; {'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': 'node'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '165', 'type': 'return_statement', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'funcname_list'} | Get all functions defined in module |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_qt_set_leaf_data'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'id': '6', 'type': 'block', 'children': ['7', '76', '90', '471']}; {'id': '7', 'type': 'if_statement', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'VERBOSE_PREF'}; {'id': '9', 'type': 'block', 'children': ['10', '15', '20', '27', '38', '51', '65']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'call', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '13', 'type': 'argument_list', 'children': ['14']}; {'id': '14', 'type': 'string', 'children': [], 'value': "''"}; {'id': '15', 'type': 'expression_statement', 'children': ['16']}; {'id': '16', 'type': 'call', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '18', 'type': 'argument_list', 'children': ['19']}; {'id': '19', 'type': 'string', 'children': [], 'value': "'+--- [pref.qt_set_leaf_data]'"}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'call', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '23', 'type': 'argument_list', 'children': ['24']}; {'id': '24', 'type': 'binary_operator', 'children': ['25', '26'], 'value': '%'}; {'id': '25', 'type': 'string', 'children': [], 'value': "'[pref.qt_set_leaf_data] qvar = %r'"}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'call', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '30', 'type': 'argument_list', 'children': ['31']}; {'id': '31', 'type': 'binary_operator', 'children': ['32', '33'], 'value': '%'}; {'id': '32', 'type': 'string', 'children': [], 'value': "'[pref.qt_set_leaf_data] _intern.name=%r'"}; {'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': '_intern'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'call', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '41', 'type': 'argument_list', 'children': ['42']}; {'id': '42', 'type': 'binary_operator', 'children': ['43', '44'], 'value': '%'}; {'id': '43', 'type': 'string', 'children': [], 'value': "'[pref.qt_set_leaf_data] _intern.type_=%r'"}; {'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': 'self'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'get_type'}; {'id': '50', 'type': 'argument_list', 'children': []}; {'id': '51', 'type': 'expression_statement', 'children': ['52']}; {'id': '52', 'type': 'call', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '54', 'type': 'argument_list', 'children': ['55']}; {'id': '55', 'type': 'binary_operator', 'children': ['56', '57'], 'value': '%'}; {'id': '56', 'type': 'string', 'children': [], 'value': "'[pref.qt_set_leaf_data] type(_intern.value)=%r'"}; {'id': '57', 'type': 'call', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '59', 'type': 'argument_list', 'children': ['60']}; {'id': '60', 'type': 'attribute', 'children': ['61', '64']}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'call', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '68', 'type': 'argument_list', 'children': ['69']}; {'id': '69', 'type': 'binary_operator', 'children': ['70', '71'], 'value': '%'}; {'id': '70', 'type': 'string', 'children': [], 'value': "'[pref.qt_set_leaf_data] _intern.value=%r'"}; {'id': '71', 'type': 'attribute', 'children': ['72', '75']}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '76', 'type': 'if_statement', 'children': ['77', '84']}; {'id': '77', 'type': 'comparison_operator', 'children': ['78', '83'], 'value': 'is'}; {'id': '78', 'type': 'attribute', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': '_tree'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '83', 'type': 'None', 'children': []}; {'id': '84', 'type': 'block', 'children': ['85']}; {'id': '85', 'type': 'raise_statement', 'children': ['86']}; {'id': '86', 'type': 'call', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '88', 'type': 'argument_list', 'children': ['89']}; {'id': '89', 'type': 'string', 'children': [], 'value': "'[Pref.qtleaf] Cannot set root preference'"}; {'id': '90', 'type': 'if_statement', 'children': ['91', '96']}; {'id': '91', 'type': 'call', 'children': ['92', '95']}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'qt_is_editable'}; {'id': '95', 'type': 'argument_list', 'children': []}; {'id': '96', 'type': 'block', 'children': ['97', '101', '169', '177', '377', '425', '455']}; {'id': '97', 'type': 'expression_statement', 'children': ['98']}; {'id': '98', 'type': 'assignment', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '100', 'type': 'string', 'children': [], 'value': "'[Pref.qtleaf] BadThingsHappenedInPref'"}; {'id': '101', 'type': 'if_statement', 'children': ['102', '109', '115']}; {'id': '102', 'type': 'comparison_operator', 'children': ['103', '108'], 'value': '=='}; {'id': '103', 'type': 'attribute', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'PrefNode'}; {'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': 'Exception'}; {'id': '113', 'type': 'argument_list', 'children': ['114']}; {'id': '114', 'type': 'string', 'children': [], 'value': "'[Pref.qtleaf] Qt can only change leafs'"}; {'id': '115', 'type': 'elif_clause', 'children': ['116', '123']}; {'id': '116', 'type': 'comparison_operator', 'children': ['117', '122'], 'value': 'is'}; {'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': '_intern'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '122', 'type': 'None', 'children': []}; {'id': '123', 'type': 'block', 'children': ['124', '157']}; {'id': '124', 'type': 'function_definition', 'children': ['125', '126', '137']}; {'id': '125', 'type': 'function_name', 'children': [], 'value': 'cast_order'}; {'id': '126', 'type': 'parameters', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'var'}; {'id': '128', 'type': 'default_parameter', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '130', 'type': 'list', 'children': ['131', '132', '133', '134'], 'value': '[bool, int, float, six.text_type]'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'bool'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'text_type'}; {'id': '137', 'type': 'block', 'children': ['138']}; {'id': '138', 'type': 'for_statement', 'children': ['139', '140', '141']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'type_'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '141', 'type': 'block', 'children': ['142']}; {'id': '142', 'type': 'try_statement', 'children': ['143', '153']}; {'id': '143', 'type': 'block', 'children': ['144', '151']}; {'id': '144', 'type': 'expression_statement', 'children': ['145']}; {'id': '145', 'type': 'assignment', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'ret'}; {'id': '147', 'type': 'call', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'type_'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'var'}; {'id': '151', 'type': 'return_statement', 'children': ['152']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'ret'}; {'id': '153', 'type': 'except_clause', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '155', 'type': 'block', 'children': ['156']}; {'id': '156', 'type': 'continue_statement', 'children': []}; {'id': '157', 'type': 'expression_statement', 'children': ['158']}; {'id': '158', 'type': 'assignment', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '160', 'type': 'call', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'cast_order'}; {'id': '162', 'type': 'argument_list', 'children': ['163']}; {'id': '163', 'type': 'call', 'children': ['164', '167']}; {'id': '164', 'type': 'attribute', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'text_type'}; {'id': '167', 'type': 'argument_list', 'children': ['168']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'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': '_intern'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'get_type'}; {'id': '176', 'type': 'argument_list', 'children': []}; {'id': '177', 'type': 'if_statement', 'children': ['178', '187', '214', '232', '252', '274', '307']}; {'id': '178', 'type': 'call', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '180', 'type': 'argument_list', 'children': ['181', '186']}; {'id': '181', 'type': 'attribute', 'children': ['182', '185']}; {'id': '182', 'type': 'attribute', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'bool'}; {'id': '187', 'type': 'block', 'children': ['188', '196', '206']}; {'id': '188', 'type': 'expression_statement', 'children': ['189']}; {'id': '189', 'type': 'call', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'binary_operator', 'children': ['193', '194'], 'value': '%'}; {'id': '193', 'type': 'string', 'children': [], 'value': "'qvar = %r'"}; {'id': '194', 'type': 'tuple', 'children': ['195']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'id': '196', 'type': 'expression_statement', 'children': ['197']}; {'id': '197', 'type': 'assignment', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '199', 'type': 'call', 'children': ['200', '203']}; {'id': '200', 'type': 'attribute', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'util_type'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'smart_cast'}; {'id': '203', 'type': 'argument_list', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'bool'}; {'id': '206', 'type': 'expression_statement', 'children': ['207']}; {'id': '207', 'type': 'call', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '209', 'type': 'argument_list', 'children': ['210']}; {'id': '210', 'type': 'binary_operator', 'children': ['211', '212'], 'value': '%'}; {'id': '211', 'type': 'string', 'children': [], 'value': "'new_val = %r'"}; {'id': '212', 'type': 'tuple', 'children': ['213']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '214', 'type': 'elif_clause', 'children': ['215', '224']}; {'id': '215', 'type': 'call', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '217', 'type': 'argument_list', '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': '_intern'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '224', 'type': 'block', 'children': ['225']}; {'id': '225', 'type': 'expression_statement', 'children': ['226']}; {'id': '226', 'type': 'assignment', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '228', 'type': 'call', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '230', 'type': 'argument_list', 'children': ['231']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'id': '232', 'type': 'elif_clause', 'children': ['233', '244']}; {'id': '233', 'type': 'comparison_operator', 'children': ['234', '241'], 'value': 'in'}; {'id': '234', 'type': 'call', 'children': ['235', '240']}; {'id': '235', 'type': 'attribute', 'children': ['236', '239']}; {'id': '236', 'type': 'attribute', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '238', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'get_type'}; {'id': '240', 'type': 'argument_list', 'children': []}; {'id': '241', 'type': 'attribute', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'util_type'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'VALID_FLOAT_TYPES'}; {'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': 'new_val'}; {'id': '248', 'type': 'call', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '250', 'type': 'argument_list', 'children': ['251']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'id': '252', 'type': 'elif_clause', 'children': ['253', '264']}; {'id': '253', 'type': 'call', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '255', 'type': 'argument_list', 'children': ['256', '261']}; {'id': '256', 'type': 'attribute', 'children': ['257', '260']}; {'id': '257', 'type': 'attribute', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '261', 'type': 'attribute', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'string_types'}; {'id': '264', 'type': 'block', 'children': ['265']}; {'id': '265', 'type': 'expression_statement', 'children': ['266']}; {'id': '266', 'type': 'assignment', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '268', 'type': 'call', 'children': ['269', '272']}; {'id': '269', 'type': 'attribute', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'text_type'}; {'id': '272', 'type': 'argument_list', 'children': ['273']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'id': '274', 'type': 'elif_clause', 'children': ['275', '284']}; {'id': '275', 'type': 'call', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '277', 'type': 'argument_list', 'children': ['278', '283']}; {'id': '278', 'type': 'attribute', 'children': ['279', '282']}; {'id': '279', 'type': 'attribute', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'PrefChoice'}; {'id': '284', 'type': 'block', 'children': ['285', '294']}; {'id': '285', 'type': 'expression_statement', 'children': ['286']}; {'id': '286', 'type': 'assignment', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '288', 'type': 'call', 'children': ['289', '292']}; {'id': '289', 'type': 'attribute', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'text_type'}; {'id': '292', 'type': 'argument_list', 'children': ['293']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'id': '294', 'type': 'if_statement', 'children': ['295', '302']}; {'id': '295', 'type': 'comparison_operator', 'children': ['296', '301'], 'value': '=='}; {'id': '296', 'type': 'call', 'children': ['297', '300']}; {'id': '297', 'type': 'attribute', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '300', 'type': 'argument_list', 'children': []}; {'id': '301', 'type': 'string', 'children': [], 'value': "'NONE'"}; {'id': '302', 'type': 'block', 'children': ['303']}; {'id': '303', 'type': 'expression_statement', 'children': ['304']}; {'id': '304', 'type': 'assignment', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '306', 'type': 'None', 'children': []}; {'id': '307', 'type': 'else_clause', 'children': ['308']}; {'id': '308', 'type': 'block', 'children': ['309']}; {'id': '309', 'type': 'try_statement', 'children': ['310', '349']}; {'id': '310', 'type': 'block', 'children': ['311', '321']}; {'id': '311', 'type': 'expression_statement', 'children': ['312']}; {'id': '312', 'type': 'assignment', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'type_'}; {'id': '314', 'type': 'call', 'children': ['315', '320']}; {'id': '315', 'type': 'attribute', 'children': ['316', '319']}; {'id': '316', 'type': 'attribute', 'children': ['317', '318']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '318', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'get_type'}; {'id': '320', 'type': 'argument_list', 'children': []}; {'id': '321', 'type': 'if_statement', 'children': ['322', '325', '338']}; {'id': '322', 'type': 'comparison_operator', 'children': ['323', '324'], 'value': 'is'}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'type_'}; {'id': '324', 'type': 'None', 'children': []}; {'id': '325', 'type': 'block', 'children': ['326']}; {'id': '326', 'type': 'expression_statement', 'children': ['327']}; {'id': '327', 'type': 'assignment', 'children': ['328', '329']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '329', 'type': 'call', 'children': ['330', '331']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'type_'}; {'id': '331', 'type': 'argument_list', 'children': ['332']}; {'id': '332', 'type': 'call', 'children': ['333', '336']}; {'id': '333', 'type': 'attribute', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'text_type'}; {'id': '336', 'type': 'argument_list', 'children': ['337']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'id': '338', 'type': 'else_clause', 'children': ['339']}; {'id': '339', 'type': 'block', 'children': ['340']}; {'id': '340', 'type': 'expression_statement', 'children': ['341']}; {'id': '341', 'type': 'assignment', 'children': ['342', '343']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '343', 'type': 'call', 'children': ['344', '347']}; {'id': '344', 'type': 'attribute', 'children': ['345', '346']}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'text_type'}; {'id': '347', 'type': 'argument_list', 'children': ['348']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'qvar'}; {'id': '349', 'type': 'except_clause', 'children': ['350', '351']}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '351', 'type': 'block', 'children': ['352']}; {'id': '352', 'type': 'raise_statement', 'children': ['353']}; {'id': '353', 'type': 'call', 'children': ['354', '355']}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'NotImplementedError'}; {'id': '355', 'type': 'argument_list', 'children': ['356', '370']}; {'id': '356', 'type': 'binary_operator', 'children': ['357', '362'], 'value': '%'}; {'id': '357', 'type': '()', 'children': ['358']}; {'id': '358', 'type': 'concatenated_string', 'children': ['359', '360', '361']}; {'id': '359', 'type': 'string', 'children': [], 'value': "'[Pref.qtleaf] Unknown internal type. '"}; {'id': '360', 'type': 'string', 'children': [], 'value': "'type(_intern.value) = %r, '"}; {'id': '361', 'type': 'string', 'children': [], 'value': "'_intern.get_type() = %r, '"}; {'id': '362', 'type': 'call', 'children': ['363', '364']}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '364', 'type': 'argument_list', 'children': ['365']}; {'id': '365', 'type': 'attribute', 'children': ['366', '369']}; {'id': '366', 'type': 'attribute', 'children': ['367', '368']}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '368', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '370', 'type': 'call', 'children': ['371', '376']}; {'id': '371', 'type': 'attribute', 'children': ['372', '375']}; {'id': '372', 'type': 'attribute', 'children': ['373', '374']}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '374', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '375', 'type': 'identifier', 'children': [], 'value': 'get_type'}; {'id': '376', 'type': 'argument_list', 'children': []}; {'id': '377', 'type': 'if_statement', 'children': ['378', '385']}; {'id': '378', 'type': 'call', 'children': ['379', '380']}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '380', 'type': 'argument_list', 'children': ['381', '382']}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '382', 'type': 'attribute', 'children': ['383', '384']}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'string_types'}; {'id': '385', 'type': 'block', 'children': ['386']}; {'id': '386', 'type': 'if_statement', 'children': ['387', '394', '399', '412']}; {'id': '387', 'type': 'comparison_operator', 'children': ['388', '393'], 'value': '=='}; {'id': '388', 'type': 'call', 'children': ['389', '392']}; {'id': '389', 'type': 'attribute', 'children': ['390', '391']}; {'id': '390', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '391', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '392', 'type': 'argument_list', 'children': []}; {'id': '393', 'type': 'string', 'children': [], 'value': "'none'"}; {'id': '394', 'type': 'block', 'children': ['395']}; {'id': '395', 'type': 'expression_statement', 'children': ['396']}; {'id': '396', 'type': 'assignment', 'children': ['397', '398']}; {'id': '397', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '398', 'type': 'None', 'children': []}; {'id': '399', 'type': 'elif_clause', 'children': ['400', '407']}; {'id': '400', 'type': 'comparison_operator', 'children': ['401', '406'], 'value': '=='}; {'id': '401', 'type': 'call', 'children': ['402', '405']}; {'id': '402', 'type': 'attribute', 'children': ['403', '404']}; {'id': '403', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '404', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '405', 'type': 'argument_list', 'children': []}; {'id': '406', 'type': 'string', 'children': [], 'value': "'true'"}; {'id': '407', 'type': 'block', 'children': ['408']}; {'id': '408', 'type': 'expression_statement', 'children': ['409']}; {'id': '409', 'type': 'assignment', 'children': ['410', '411']}; {'id': '410', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '411', 'type': 'True', 'children': []}; {'id': '412', 'type': 'elif_clause', 'children': ['413', '420']}; {'id': '413', 'type': 'comparison_operator', 'children': ['414', '419'], 'value': '=='}; {'id': '414', 'type': 'call', 'children': ['415', '418']}; {'id': '415', 'type': 'attribute', 'children': ['416', '417']}; {'id': '416', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '417', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '418', 'type': 'argument_list', 'children': []}; {'id': '419', 'type': 'string', 'children': [], 'value': "'false'"}; {'id': '420', 'type': 'block', 'children': ['421']}; {'id': '421', 'type': 'expression_statement', 'children': ['422']}; {'id': '422', 'type': 'assignment', 'children': ['423', '424']}; {'id': '423', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '424', 'type': 'False', 'children': []}; {'id': '425', 'type': 'if_statement', 'children': ['426', '427']}; {'id': '426', 'type': 'identifier', 'children': [], 'value': 'VERBOSE_PREF'}; {'id': '427', 'type': 'block', 'children': ['428', '433', '440', '450']}; {'id': '428', 'type': 'expression_statement', 'children': ['429']}; {'id': '429', 'type': 'call', 'children': ['430', '431']}; {'id': '430', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '431', 'type': 'argument_list', 'children': ['432']}; {'id': '432', 'type': 'string', 'children': [], 'value': "'---'"}; {'id': '433', 'type': 'expression_statement', 'children': ['434']}; {'id': '434', 'type': 'call', 'children': ['435', '436']}; {'id': '435', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '436', 'type': 'argument_list', 'children': ['437']}; {'id': '437', 'type': 'binary_operator', 'children': ['438', '439'], 'value': '%'}; {'id': '438', 'type': 'string', 'children': [], 'value': "'[pref.qt_set_leaf_data] new_val=%r'"}; {'id': '439', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '440', 'type': 'expression_statement', 'children': ['441']}; {'id': '441', 'type': 'call', 'children': ['442', '443']}; {'id': '442', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '443', 'type': 'argument_list', 'children': ['444']}; {'id': '444', 'type': 'binary_operator', 'children': ['445', '446'], 'value': '%'}; {'id': '445', 'type': 'string', 'children': [], 'value': "'[pref.qt_set_leaf_data] type(new_val)=%r'"}; {'id': '446', 'type': 'call', 'children': ['447', '448']}; {'id': '447', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '448', 'type': 'argument_list', 'children': ['449']}; {'id': '449', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '450', 'type': 'expression_statement', 'children': ['451']}; {'id': '451', 'type': 'call', 'children': ['452', '453']}; {'id': '452', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '453', 'type': 'argument_list', 'children': ['454']}; {'id': '454', 'type': 'string', 'children': [], 'value': "'L____ [pref.qt_set_leaf_data]'"}; {'id': '455', 'type': 'return_statement', 'children': ['456']}; {'id': '456', 'type': 'call', 'children': ['457', '464']}; {'id': '457', 'type': 'attribute', 'children': ['458', '463']}; {'id': '458', 'type': 'attribute', 'children': ['459', '462']}; {'id': '459', 'type': 'attribute', 'children': ['460', '461']}; {'id': '460', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '461', 'type': 'identifier', 'children': [], 'value': '_tree'}; {'id': '462', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '463', 'type': 'identifier', 'children': [], 'value': 'pref_update'}; {'id': '464', 'type': 'argument_list', 'children': ['465', '470']}; {'id': '465', 'type': 'attribute', 'children': ['466', '469']}; {'id': '466', 'type': 'attribute', 'children': ['467', '468']}; {'id': '467', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '468', 'type': 'identifier', 'children': [], 'value': '_intern'}; {'id': '469', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '470', 'type': 'identifier', 'children': [], 'value': 'new_val'}; {'id': '471', 'type': 'return_statement', 'children': ['472']}; {'id': '472', 'type': 'string', 'children': [], 'value': "'PrefNotEditable'"} | Sets backend data using QVariants |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_nth_prime'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'max_prime'}; {'id': '7', 'type': 'integer', 'children': [], 'value': '4100'}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'safe'}; {'id': '10', 'type': 'True', 'children': []}; {'id': '11', 'type': 'block', 'children': ['12', '166']}; {'id': '12', 'type': 'if_statement', 'children': ['13', '16', '129']}; {'id': '13', 'type': 'comparison_operator', 'children': ['14', '15'], 'value': '<='}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '15', 'type': 'integer', 'children': [], 'value': '100'}; {'id': '16', 'type': 'block', 'children': ['17', '121']}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'first_100_primes'}; {'id': '20', 'type': 'tuple', 'children': ['21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '100', '101', '102', '103', '104', '105', '106', '107', '108', '109', '110', '111', '112', '113', '114', '115', '116', '117', '118', '119', '120']}; {'id': '21', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '22', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '23', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '24', 'type': 'integer', 'children': [], 'value': '7'}; {'id': '25', 'type': 'integer', 'children': [], 'value': '11'}; {'id': '26', 'type': 'integer', 'children': [], 'value': '13'}; {'id': '27', 'type': 'integer', 'children': [], 'value': '17'}; {'id': '28', 'type': 'integer', 'children': [], 'value': '19'}; {'id': '29', 'type': 'integer', 'children': [], 'value': '23'}; {'id': '30', 'type': 'integer', 'children': [], 'value': '29'}; {'id': '31', 'type': 'integer', 'children': [], 'value': '31'}; {'id': '32', 'type': 'integer', 'children': [], 'value': '37'}; {'id': '33', 'type': 'integer', 'children': [], 'value': '41'}; {'id': '34', 'type': 'integer', 'children': [], 'value': '43'}; {'id': '35', 'type': 'integer', 'children': [], 'value': '47'}; {'id': '36', 'type': 'integer', 'children': [], 'value': '53'}; {'id': '37', 'type': 'integer', 'children': [], 'value': '59'}; {'id': '38', 'type': 'integer', 'children': [], 'value': '61'}; {'id': '39', 'type': 'integer', 'children': [], 'value': '67'}; {'id': '40', 'type': 'integer', 'children': [], 'value': '71'}; {'id': '41', 'type': 'integer', 'children': [], 'value': '73'}; {'id': '42', 'type': 'integer', 'children': [], 'value': '79'}; {'id': '43', 'type': 'integer', 'children': [], 'value': '83'}; {'id': '44', 'type': 'integer', 'children': [], 'value': '89'}; {'id': '45', 'type': 'integer', 'children': [], 'value': '97'}; {'id': '46', 'type': 'integer', 'children': [], 'value': '101'}; {'id': '47', 'type': 'integer', 'children': [], 'value': '103'}; {'id': '48', 'type': 'integer', 'children': [], 'value': '107'}; {'id': '49', 'type': 'integer', 'children': [], 'value': '109'}; {'id': '50', 'type': 'integer', 'children': [], 'value': '113'}; {'id': '51', 'type': 'integer', 'children': [], 'value': '127'}; {'id': '52', 'type': 'integer', 'children': [], 'value': '131'}; {'id': '53', 'type': 'integer', 'children': [], 'value': '137'}; {'id': '54', 'type': 'integer', 'children': [], 'value': '139'}; {'id': '55', 'type': 'integer', 'children': [], 'value': '149'}; {'id': '56', 'type': 'integer', 'children': [], 'value': '151'}; {'id': '57', 'type': 'integer', 'children': [], 'value': '157'}; {'id': '58', 'type': 'integer', 'children': [], 'value': '163'}; {'id': '59', 'type': 'integer', 'children': [], 'value': '167'}; {'id': '60', 'type': 'integer', 'children': [], 'value': '173'}; {'id': '61', 'type': 'integer', 'children': [], 'value': '179'}; {'id': '62', 'type': 'integer', 'children': [], 'value': '181'}; {'id': '63', 'type': 'integer', 'children': [], 'value': '191'}; {'id': '64', 'type': 'integer', 'children': [], 'value': '193'}; {'id': '65', 'type': 'integer', 'children': [], 'value': '197'}; {'id': '66', 'type': 'integer', 'children': [], 'value': '199'}; {'id': '67', 'type': 'integer', 'children': [], 'value': '211'}; {'id': '68', 'type': 'integer', 'children': [], 'value': '223'}; {'id': '69', 'type': 'integer', 'children': [], 'value': '227'}; {'id': '70', 'type': 'integer', 'children': [], 'value': '229'}; {'id': '71', 'type': 'integer', 'children': [], 'value': '233'}; {'id': '72', 'type': 'integer', 'children': [], 'value': '239'}; {'id': '73', 'type': 'integer', 'children': [], 'value': '241'}; {'id': '74', 'type': 'integer', 'children': [], 'value': '251'}; {'id': '75', 'type': 'integer', 'children': [], 'value': '257'}; {'id': '76', 'type': 'integer', 'children': [], 'value': '263'}; {'id': '77', 'type': 'integer', 'children': [], 'value': '269'}; {'id': '78', 'type': 'integer', 'children': [], 'value': '271'}; {'id': '79', 'type': 'integer', 'children': [], 'value': '277'}; {'id': '80', 'type': 'integer', 'children': [], 'value': '281'}; {'id': '81', 'type': 'integer', 'children': [], 'value': '283'}; {'id': '82', 'type': 'integer', 'children': [], 'value': '293'}; {'id': '83', 'type': 'integer', 'children': [], 'value': '307'}; {'id': '84', 'type': 'integer', 'children': [], 'value': '311'}; {'id': '85', 'type': 'integer', 'children': [], 'value': '313'}; {'id': '86', 'type': 'integer', 'children': [], 'value': '317'}; {'id': '87', 'type': 'integer', 'children': [], 'value': '331'}; {'id': '88', 'type': 'integer', 'children': [], 'value': '337'}; {'id': '89', 'type': 'integer', 'children': [], 'value': '347'}; {'id': '90', 'type': 'integer', 'children': [], 'value': '349'}; {'id': '91', 'type': 'integer', 'children': [], 'value': '353'}; {'id': '92', 'type': 'integer', 'children': [], 'value': '359'}; {'id': '93', 'type': 'integer', 'children': [], 'value': '367'}; {'id': '94', 'type': 'integer', 'children': [], 'value': '373'}; {'id': '95', 'type': 'integer', 'children': [], 'value': '379'}; {'id': '96', 'type': 'integer', 'children': [], 'value': '383'}; {'id': '97', 'type': 'integer', 'children': [], 'value': '389'}; {'id': '98', 'type': 'integer', 'children': [], 'value': '397'}; {'id': '99', 'type': 'integer', 'children': [], 'value': '401'}; {'id': '100', 'type': 'integer', 'children': [], 'value': '409'}; {'id': '101', 'type': 'integer', 'children': [], 'value': '419'}; {'id': '102', 'type': 'integer', 'children': [], 'value': '421'}; {'id': '103', 'type': 'integer', 'children': [], 'value': '431'}; {'id': '104', 'type': 'integer', 'children': [], 'value': '433'}; {'id': '105', 'type': 'integer', 'children': [], 'value': '439'}; {'id': '106', 'type': 'integer', 'children': [], 'value': '443'}; {'id': '107', 'type': 'integer', 'children': [], 'value': '449'}; {'id': '108', 'type': 'integer', 'children': [], 'value': '457'}; {'id': '109', 'type': 'integer', 'children': [], 'value': '461'}; {'id': '110', 'type': 'integer', 'children': [], 'value': '463'}; {'id': '111', 'type': 'integer', 'children': [], 'value': '467'}; {'id': '112', 'type': 'integer', 'children': [], 'value': '479'}; {'id': '113', 'type': 'integer', 'children': [], 'value': '487'}; {'id': '114', 'type': 'integer', 'children': [], 'value': '491'}; {'id': '115', 'type': 'integer', 'children': [], 'value': '499'}; {'id': '116', 'type': 'integer', 'children': [], 'value': '503'}; {'id': '117', 'type': 'integer', 'children': [], 'value': '509'}; {'id': '118', 'type': 'integer', 'children': [], 'value': '521'}; {'id': '119', 'type': 'integer', 'children': [], 'value': '523'}; {'id': '120', 'type': 'integer', 'children': [], 'value': '541'}; {'id': '121', 'type': 'expression_statement', 'children': ['122']}; {'id': '122', 'type': 'assignment', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'nth_prime'}; {'id': '124', 'type': 'subscript', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'first_100_primes'}; {'id': '126', 'type': 'binary_operator', 'children': ['127', '128'], 'value': '-'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '128', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '129', 'type': 'else_clause', 'children': ['130']}; {'id': '130', 'type': 'block', 'children': ['131']}; {'id': '131', 'type': 'if_statement', 'children': ['132', '133', '157']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'safe'}; {'id': '133', 'type': 'block', 'children': ['134', '151']}; {'id': '134', 'type': 'expression_statement', 'children': ['135']}; {'id': '135', 'type': 'assignment', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'primes'}; {'id': '137', 'type': 'list_comprehension', 'children': ['138', '139', '146']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'num'}; {'id': '139', 'type': 'for_in_clause', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'num'}; {'id': '141', 'type': 'call', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '143', 'type': 'argument_list', 'children': ['144', '145']}; {'id': '144', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'max_prime'}; {'id': '146', 'type': 'if_clause', 'children': ['147']}; {'id': '147', 'type': 'call', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'is_prime'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'num'}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'assignment', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'nth_prime'}; {'id': '154', 'type': 'subscript', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'primes'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '157', 'type': 'else_clause', 'children': ['158']}; {'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': 'nth_prime'}; {'id': '162', 'type': 'call', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'get_nth_prime_bruteforce'}; {'id': '164', 'type': 'argument_list', 'children': ['165']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '166', 'type': 'return_statement', 'children': ['167']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'nth_prime'} | hacky but still brute force algorithm for finding nth prime for small tests |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'iteritems_sorted'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'dict_'}; {'id': '5', 'type': 'block', 'children': ['6']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '12', '20']}; {'id': '7', 'type': 'call', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '9', 'type': 'argument_list', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'dict_'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'OrderedDict'}; {'id': '12', 'type': 'block', 'children': ['13']}; {'id': '13', 'type': 'return_statement', 'children': ['14']}; {'id': '14', 'type': 'call', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '18', 'type': 'argument_list', 'children': ['19']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'dict_'}; {'id': '20', 'type': 'else_clause', 'children': ['21']}; {'id': '21', 'type': 'block', 'children': ['22']}; {'id': '22', 'type': 'return_statement', 'children': ['23']}; {'id': '23', 'type': 'call', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'iter'}; {'id': '25', 'type': 'argument_list', 'children': ['26']}; {'id': '26', 'type': 'call', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '28', 'type': 'argument_list', 'children': ['29']}; {'id': '29', 'type': 'call', 'children': ['30', '33']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '33', 'type': 'argument_list', 'children': ['34']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'dict_'} | change to iteritems ordered |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '16']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'inject_print_functions'}; {'id': '3', 'type': 'parameters', 'children': ['4', '7', '10', '13']}; {'id': '4', 'type': 'default_parameter', 'children': ['5', '6']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'module_name'}; {'id': '6', 'type': 'None', 'children': []}; {'id': '7', 'type': 'default_parameter', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'module_prefix'}; {'id': '9', 'type': 'string', 'children': [], 'value': "'[???]'"}; {'id': '10', 'type': 'default_parameter', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'DEBUG'}; {'id': '12', 'type': 'False', 'children': []}; {'id': '13', 'type': 'default_parameter', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '15', 'type': 'None', 'children': []}; {'id': '16', 'type': 'block', 'children': ['17', '25', '323', '330']}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '20', 'type': 'call', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': '_get_module'}; {'id': '22', 'type': 'argument_list', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'module_name'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '25', 'type': 'if_statement', 'children': ['26', '27', '49']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'SILENT'}; {'id': '27', 'type': 'block', 'children': ['28', '35', '42']}; {'id': '28', 'type': 'function_definition', 'children': ['29', '30', '33']}; {'id': '29', 'type': 'function_name', 'children': [], 'value': 'print'}; {'id': '30', 'type': 'parameters', 'children': ['31']}; {'id': '31', 'type': 'list_splat_pattern', 'children': ['32']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '33', 'type': 'block', 'children': ['34']}; {'id': '34', 'type': 'pass_statement', 'children': []}; {'id': '35', 'type': 'function_definition', 'children': ['36', '37', '40']}; {'id': '36', 'type': 'function_name', 'children': [], 'value': 'printDBG'}; {'id': '37', 'type': 'parameters', 'children': ['38']}; {'id': '38', 'type': 'list_splat_pattern', 'children': ['39']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '40', 'type': 'block', 'children': ['41']}; {'id': '41', 'type': 'pass_statement', 'children': []}; {'id': '42', 'type': 'function_definition', 'children': ['43', '44', '47']}; {'id': '43', 'type': 'function_name', 'children': [], 'value': 'print_'}; {'id': '44', 'type': 'parameters', 'children': ['45']}; {'id': '45', 'type': 'list_splat_pattern', 'children': ['46']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '47', 'type': 'block', 'children': ['48']}; {'id': '48', 'type': 'pass_statement', 'children': []}; {'id': '49', 'type': 'else_clause', 'children': ['50']}; {'id': '50', 'type': 'block', 'children': ['51', '113', '158', '169', '195', '220', '229', '238', '255', '268']}; {'id': '51', 'type': 'if_statement', 'children': ['52', '53', '95']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'DEBUG_PRINT'}; {'id': '53', 'type': 'block', 'children': ['54']}; {'id': '54', 'type': 'function_definition', 'children': ['55', '56', '59']}; {'id': '55', 'type': 'function_name', 'children': [], 'value': 'print'}; {'id': '56', 'type': 'parameters', 'children': ['57']}; {'id': '57', 'type': 'list_splat_pattern', 'children': ['58']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '59', 'type': 'block', 'children': ['60', '67', '84']}; {'id': '60', 'type': 'import_from_statement', 'children': ['61', '65']}; {'id': '61', 'type': 'dotted_name', 'children': ['62', '63', '64']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'utool'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': '_internal'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'meta_util_dbg'}; {'id': '65', 'type': 'dotted_name', 'children': ['66']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'get_caller_name'}; {'id': '67', 'type': 'expression_statement', 'children': ['68']}; {'id': '68', 'type': 'assignment', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'calltag'}; {'id': '70', 'type': 'call', 'children': ['71', '74']}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'string', 'children': [], 'value': "''"}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '74', 'type': 'argument_list', 'children': ['75']}; {'id': '75', 'type': 'tuple', 'children': ['76', '77', '83']}; {'id': '76', 'type': 'string', 'children': [], 'value': "'[caller:'"}; {'id': '77', 'type': 'call', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'get_caller_name'}; {'id': '79', 'type': 'argument_list', 'children': ['80']}; {'id': '80', 'type': 'keyword_argument', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'N'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'DEBUG_PRINT_N'}; {'id': '83', 'type': 'string', 'children': [], 'value': "']'"}; {'id': '84', 'type': 'expression_statement', 'children': ['85']}; {'id': '85', 'type': 'call', 'children': ['86', '91']}; {'id': '86', 'type': 'call', 'children': ['87', '90']}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'util_logging'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': '_utool_print'}; {'id': '90', 'type': 'argument_list', 'children': []}; {'id': '91', 'type': 'argument_list', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'calltag'}; {'id': '93', 'type': 'list_splat', 'children': ['94']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '95', 'type': 'else_clause', 'children': ['96']}; {'id': '96', 'type': 'block', 'children': ['97']}; {'id': '97', 'type': 'function_definition', 'children': ['98', '99', '102']}; {'id': '98', 'type': 'function_name', 'children': [], 'value': 'print'}; {'id': '99', 'type': 'parameters', 'children': ['100']}; {'id': '100', 'type': 'list_splat_pattern', 'children': ['101']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '102', 'type': 'block', 'children': ['103']}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'call', 'children': ['105', '110']}; {'id': '105', 'type': 'call', 'children': ['106', '109']}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'util_logging'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': '_utool_print'}; {'id': '109', 'type': 'argument_list', 'children': []}; {'id': '110', 'type': 'argument_list', 'children': ['111']}; {'id': '111', 'type': 'list_splat', 'children': ['112']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '113', 'type': 'if_statement', 'children': ['114', '115', '140']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': '__AGGROFLUSH__'}; {'id': '115', 'type': 'block', 'children': ['116']}; {'id': '116', 'type': 'function_definition', 'children': ['117', '118', '121']}; {'id': '117', 'type': 'function_name', 'children': [], 'value': 'print_'}; {'id': '118', 'type': 'parameters', 'children': ['119']}; {'id': '119', 'type': 'list_splat_pattern', 'children': ['120']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '121', 'type': 'block', 'children': ['122', '132']}; {'id': '122', 'type': 'expression_statement', 'children': ['123']}; {'id': '123', 'type': 'call', 'children': ['124', '129']}; {'id': '124', 'type': 'call', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'util_logging'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': '_utool_write'}; {'id': '128', 'type': 'argument_list', 'children': []}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'list_splat', 'children': ['131']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '132', 'type': 'expression_statement', 'children': ['133']}; {'id': '133', 'type': 'call', 'children': ['134', '139']}; {'id': '134', 'type': 'call', 'children': ['135', '138']}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'util_logging'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': '_utool_flush'}; {'id': '138', 'type': 'argument_list', 'children': []}; {'id': '139', 'type': 'argument_list', 'children': []}; {'id': '140', 'type': 'else_clause', 'children': ['141']}; {'id': '141', 'type': 'block', 'children': ['142']}; {'id': '142', 'type': 'function_definition', 'children': ['143', '144', '147']}; {'id': '143', 'type': 'function_name', 'children': [], 'value': 'print_'}; {'id': '144', 'type': 'parameters', 'children': ['145']}; {'id': '145', 'type': 'list_splat_pattern', 'children': ['146']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '147', 'type': 'block', 'children': ['148']}; {'id': '148', 'type': 'expression_statement', 'children': ['149']}; {'id': '149', 'type': 'call', 'children': ['150', '155']}; {'id': '150', 'type': 'call', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'util_logging'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': '_utool_write'}; {'id': '154', 'type': 'argument_list', 'children': []}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'list_splat', 'children': ['157']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'assignment', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'dotpos'}; {'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': 'module'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': '__name__'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'rfind'}; {'id': '167', 'type': 'argument_list', 'children': ['168']}; {'id': '168', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '169', 'type': 'if_statement', 'children': ['170', '174', '181']}; {'id': '170', 'type': 'comparison_operator', 'children': ['171', '172'], 'value': '=='}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'dotpos'}; {'id': '172', 'type': 'unary_operator', 'children': ['173'], 'value': '-'}; {'id': '173', 'type': 'integer', 'children': [], 'value': '1'}; {'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_name'}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': '__name__'}; {'id': '181', 'type': 'else_clause', 'children': ['182']}; {'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': 'module_name'}; {'id': '186', 'type': 'subscript', 'children': ['187', '190']}; {'id': '187', 'type': 'attribute', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': '__name__'}; {'id': '190', 'type': 'slice', 'children': ['191', '194']}; {'id': '191', 'type': 'binary_operator', 'children': ['192', '193'], 'value': '+'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'dotpos'}; {'id': '193', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '194', 'type': 'colon', 'children': []}; {'id': '195', 'type': 'function_definition', 'children': ['196', '197', '199']}; {'id': '196', 'type': 'function_name', 'children': [], 'value': '_replchars'}; {'id': '197', 'type': 'parameters', 'children': ['198']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'str_'}; {'id': '199', 'type': 'block', 'children': ['200']}; {'id': '200', 'type': 'return_statement', 'children': ['201']}; {'id': '201', 'type': 'call', 'children': ['202', '217']}; {'id': '202', 'type': 'attribute', 'children': ['203', '216']}; {'id': '203', 'type': 'call', 'children': ['204', '213']}; {'id': '204', 'type': 'attribute', 'children': ['205', '212']}; {'id': '205', 'type': 'call', 'children': ['206', '209']}; {'id': '206', 'type': 'attribute', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'str_'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '209', 'type': 'argument_list', 'children': ['210', '211']}; {'id': '210', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '211', 'type': 'string', 'children': [], 'value': "'-'"}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '213', 'type': 'argument_list', 'children': ['214', '215']}; {'id': '214', 'type': 'string', 'children': [], 'value': "']'"}; {'id': '215', 'type': 'string', 'children': [], 'value': "''"}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '217', 'type': 'argument_list', 'children': ['218', '219']}; {'id': '218', 'type': 'string', 'children': [], 'value': "'['"}; {'id': '219', 'type': 'string', 'children': [], 'value': "''"}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'assignment', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'flag1'}; {'id': '223', 'type': 'binary_operator', 'children': ['224', '225'], 'value': '%'}; {'id': '224', 'type': 'string', 'children': [], 'value': "'--debug-%s'"}; {'id': '225', 'type': 'call', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': '_replchars'}; {'id': '227', 'type': 'argument_list', 'children': ['228']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'module_name'}; {'id': '229', 'type': 'expression_statement', 'children': ['230']}; {'id': '230', 'type': 'assignment', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'flag2'}; {'id': '232', 'type': 'binary_operator', 'children': ['233', '234'], 'value': '%'}; {'id': '233', 'type': 'string', 'children': [], 'value': "'--debug-%s'"}; {'id': '234', 'type': 'call', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': '_replchars'}; {'id': '236', 'type': 'argument_list', 'children': ['237']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'module_prefix'}; {'id': '238', 'type': 'expression_statement', 'children': ['239']}; {'id': '239', 'type': 'assignment', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'DEBUG_FLAG'}; {'id': '241', 'type': 'call', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'any'}; {'id': '243', 'type': 'argument_list', 'children': ['244']}; {'id': '244', 'type': 'list_comprehension', 'children': ['245', '250']}; {'id': '245', 'type': 'comparison_operator', 'children': ['246', '247'], 'value': 'in'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '247', 'type': 'attribute', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'argv'}; {'id': '250', 'type': 'for_in_clause', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '252', 'type': 'list', 'children': ['253', '254'], 'value': '[flag1, flag2]'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'flag1'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'flag2'}; {'id': '255', 'type': 'for_statement', 'children': ['256', '257', '258']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'curflag'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'ARGV_DEBUG_FLAGS'}; {'id': '258', 'type': 'block', 'children': ['259']}; {'id': '259', 'type': 'if_statement', 'children': ['260', '263']}; {'id': '260', 'type': 'comparison_operator', 'children': ['261', '262'], 'value': 'in'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'curflag'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'module_prefix'}; {'id': '263', 'type': 'block', 'children': ['264']}; {'id': '264', 'type': 'expression_statement', 'children': ['265']}; {'id': '265', 'type': 'assignment', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'DEBUG_FLAG'}; {'id': '267', 'type': 'True', 'children': []}; {'id': '268', 'type': 'if_statement', 'children': ['269', '274', '314']}; {'id': '269', 'type': 'boolean_operator', 'children': ['270', '273'], 'value': 'or'}; {'id': '270', 'type': 'boolean_operator', 'children': ['271', '272'], 'value': 'or'}; {'id': '271', 'type': 'identifier', 'children': [], 'value': '__DEBUG_ALL__'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'DEBUG'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'DEBUG_FLAG'}; {'id': '274', 'type': 'block', 'children': ['275', '284']}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'call', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '278', 'type': 'argument_list', 'children': ['279']}; {'id': '279', 'type': 'binary_operator', 'children': ['280', '281'], 'value': '%'}; {'id': '280', 'type': 'string', 'children': [], 'value': "'INJECT_PRINT: %r == %r'"}; {'id': '281', 'type': 'tuple', 'children': ['282', '283']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'module_name'}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'module_prefix'}; {'id': '284', 'type': 'function_definition', 'children': ['285', '286', '289']}; {'id': '285', 'type': 'function_name', 'children': [], 'value': 'printDBG'}; {'id': '286', 'type': 'parameters', 'children': ['287']}; {'id': '287', 'type': 'list_splat_pattern', 'children': ['288']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '289', 'type': 'block', 'children': ['290', '303']}; {'id': '290', 'type': 'expression_statement', 'children': ['291']}; {'id': '291', 'type': 'assignment', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '293', 'type': 'call', 'children': ['294', '297']}; {'id': '294', 'type': 'attribute', 'children': ['295', '296']}; {'id': '295', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '297', 'type': 'argument_list', 'children': ['298']}; {'id': '298', 'type': 'call', 'children': ['299', '300']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'map'}; {'id': '300', 'type': 'argument_list', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'args'}; {'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': 'util_logging'}; {'id': '307', 'type': 'identifier', 'children': [], 'value': '__UTOOL_PRINTDBG__'}; {'id': '308', 'type': 'argument_list', 'children': ['309']}; {'id': '309', 'type': 'binary_operator', 'children': ['310', '313'], 'value': '+'}; {'id': '310', 'type': 'binary_operator', 'children': ['311', '312'], 'value': '+'}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'module_prefix'}; {'id': '312', 'type': 'string', 'children': [], 'value': "' DEBUG '"}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '314', 'type': 'else_clause', 'children': ['315']}; {'id': '315', 'type': 'block', 'children': ['316']}; {'id': '316', 'type': 'function_definition', 'children': ['317', '318', '321']}; {'id': '317', 'type': 'function_name', 'children': [], 'value': 'printDBG'}; {'id': '318', 'type': 'parameters', 'children': ['319']}; {'id': '319', 'type': 'list_splat_pattern', 'children': ['320']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '321', 'type': 'block', 'children': ['322']}; {'id': '322', 'type': 'pass_statement', 'children': []}; {'id': '323', 'type': 'expression_statement', 'children': ['324']}; {'id': '324', 'type': 'assignment', 'children': ['325', '326']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'print_funcs'}; {'id': '326', 'type': 'tuple', 'children': ['327', '328', '329']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'print_'}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'printDBG'}; {'id': '330', 'type': 'return_statement', 'children': ['331']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'print_funcs'} | makes print functions to be injected into the module |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'parse_dsn'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'dsn_string'}; {'id': '5', 'type': 'block', 'children': ['6', '13', '26', '36', '42', '88', '111', '128', '150', '161']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'dsn'}; {'id': '9', 'type': 'call', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'urlparse'}; {'id': '11', 'type': 'argument_list', 'children': ['12']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'dsn_string'}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'assignment', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'scheme'}; {'id': '16', 'type': 'subscript', 'children': ['17', '25']}; {'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': 'dsn'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'scheme'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '23', 'type': 'argument_list', 'children': ['24']}; {'id': '24', 'type': 'string', 'children': [], 'value': "'+'"}; {'id': '25', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'assignment', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'username'}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'password'}; {'id': '31', 'type': 'assignment', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '33', 'type': 'assignment', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '35', 'type': 'None', 'children': []}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'assignment', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '39', 'type': 'attribute', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'dsn'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'netloc'}; {'id': '42', 'type': 'if_statement', 'children': ['43', '46']}; {'id': '43', 'type': 'comparison_operator', 'children': ['44', '45'], 'value': 'in'}; {'id': '44', 'type': 'string', 'children': [], 'value': "'@'"}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '46', 'type': 'block', 'children': ['47', '58', '81']}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'assignment', 'children': ['49', '52']}; {'id': '49', 'type': 'pattern_list', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'username'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '52', 'type': 'call', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'string', 'children': [], 'value': "'@'"}; {'id': '58', 'type': 'if_statement', 'children': ['59', '62']}; {'id': '59', 'type': 'comparison_operator', 'children': ['60', '61'], 'value': 'in'}; {'id': '60', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'username'}; {'id': '62', 'type': 'block', 'children': ['63', '74']}; {'id': '63', 'type': 'expression_statement', 'children': ['64']}; {'id': '64', 'type': 'assignment', 'children': ['65', '68']}; {'id': '65', 'type': 'pattern_list', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'username'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'password'}; {'id': '68', 'type': 'call', 'children': ['69', '72']}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'username'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '74', 'type': 'expression_statement', 'children': ['75']}; {'id': '75', 'type': 'assignment', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'password'}; {'id': '77', 'type': 'call', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'unquote'}; {'id': '79', 'type': 'argument_list', 'children': ['80']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'password'}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'username'}; {'id': '84', 'type': 'call', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'unquote'}; {'id': '86', 'type': 'argument_list', 'children': ['87']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'username'}; {'id': '88', 'type': 'if_statement', 'children': ['89', '92']}; {'id': '89', 'type': 'comparison_operator', 'children': ['90', '91'], 'value': 'in'}; {'id': '90', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '92', 'type': 'block', 'children': ['93', '104']}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '98']}; {'id': '95', 'type': 'pattern_list', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '98', 'type': 'call', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '102', 'type': 'argument_list', 'children': ['103']}; {'id': '103', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '104', 'type': 'expression_statement', 'children': ['105']}; {'id': '105', 'type': 'assignment', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '107', 'type': 'call', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '109', 'type': 'argument_list', 'children': ['110']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'assignment', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'database'}; {'id': '114', 'type': 'subscript', 'children': ['115', '125']}; {'id': '115', 'type': 'subscript', 'children': ['116', '124']}; {'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': 'dsn'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '122', 'type': 'argument_list', 'children': ['123']}; {'id': '123', 'type': 'string', 'children': [], 'value': "'?'"}; {'id': '124', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '125', 'type': 'slice', 'children': ['126', '127']}; {'id': '126', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '127', 'type': 'colon', 'children': []}; {'id': '128', 'type': 'expression_statement', 'children': ['129']}; {'id': '129', 'type': 'assignment', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '131', 'type': 'conditional_expression', 'children': ['132', '142', '147'], 'value': 'if'}; {'id': '132', 'type': 'subscript', 'children': ['133', '141']}; {'id': '133', 'type': 'call', 'children': ['134', '139']}; {'id': '134', 'type': 'attribute', 'children': ['135', '138']}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'dsn'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '139', 'type': 'argument_list', 'children': ['140']}; {'id': '140', 'type': 'string', 'children': [], 'value': "'?'"}; {'id': '141', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '142', 'type': 'comparison_operator', 'children': ['143', '144'], 'value': 'in'}; {'id': '143', 'type': 'string', 'children': [], 'value': "'?'"}; {'id': '144', 'type': 'attribute', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'dsn'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'dsn'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '150', 'type': 'expression_statement', 'children': ['151']}; {'id': '151', 'type': 'assignment', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '153', 'type': 'call', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'call', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'parse_qsl'}; {'id': '158', 'type': 'argument_list', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '160', 'type': 'True', 'children': []}; {'id': '161', 'type': 'if_statement', 'children': ['162', '165', '174', '225', '292']}; {'id': '162', 'type': 'comparison_operator', 'children': ['163', '164'], 'value': '=='}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'scheme'}; {'id': '164', 'type': 'string', 'children': [], 'value': "'sqlite'"}; {'id': '165', 'type': 'block', 'children': ['166']}; {'id': '166', 'type': 'return_statement', 'children': ['167']}; {'id': '167', 'type': 'expression_list', 'children': ['168', '169', '173']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'SQLiteDriver'}; {'id': '169', 'type': 'list', 'children': ['170'], 'value': '[dsn.path]'}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'dsn'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '173', 'type': 'dictionary', 'children': []}; {'id': '174', 'type': 'elif_clause', 'children': ['175', '178']}; {'id': '175', 'type': 'comparison_operator', 'children': ['176', '177'], 'value': '=='}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'scheme'}; {'id': '177', 'type': 'string', 'children': [], 'value': "'mysql'"}; {'id': '178', 'type': 'block', 'children': ['179', '187', '193', '202', '211', '220']}; {'id': '179', 'type': 'expression_statement', 'children': ['180']}; {'id': '180', 'type': 'assignment', 'children': ['181', '184']}; {'id': '181', 'type': 'subscript', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '183', 'type': 'string', 'children': [], 'value': "'user'"}; {'id': '184', 'type': 'boolean_operator', 'children': ['185', '186'], 'value': 'or'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'username'}; {'id': '186', 'type': 'string', 'children': [], 'value': "'root'"}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'assignment', 'children': ['189', '192']}; {'id': '189', 'type': 'subscript', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '191', 'type': 'string', 'children': [], 'value': "'db'"}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'database'}; {'id': '193', 'type': 'if_statement', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', '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': 'kwargs'}; {'id': '200', 'type': 'string', 'children': [], 'value': "'port'"}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '202', 'type': 'if_statement', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '204', 'type': 'block', 'children': ['205']}; {'id': '205', 'type': 'expression_statement', 'children': ['206']}; {'id': '206', 'type': 'assignment', 'children': ['207', '210']}; {'id': '207', 'type': 'subscript', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '209', 'type': 'string', 'children': [], 'value': "'host'"}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '211', 'type': 'if_statement', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'password'}; {'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': 'kwargs'}; {'id': '218', 'type': 'string', 'children': [], 'value': "'passwd'"}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'password'}; {'id': '220', 'type': 'return_statement', 'children': ['221']}; {'id': '221', 'type': 'expression_list', 'children': ['222', '223', '224']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'MySQLDriver'}; {'id': '223', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '225', 'type': 'elif_clause', 'children': ['226', '229']}; {'id': '226', 'type': 'comparison_operator', 'children': ['227', '228'], 'value': '=='}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'scheme'}; {'id': '228', 'type': 'string', 'children': [], 'value': "'postgresql'"}; {'id': '229', 'type': 'block', 'children': ['230', '238', '244', '253', '278', '287']}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'assignment', 'children': ['232', '235']}; {'id': '232', 'type': 'subscript', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '234', 'type': 'string', 'children': [], 'value': "'user'"}; {'id': '235', 'type': 'boolean_operator', 'children': ['236', '237'], 'value': 'or'}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'username'}; {'id': '237', 'type': 'string', 'children': [], 'value': "'postgres'"}; {'id': '238', 'type': 'expression_statement', 'children': ['239']}; {'id': '239', 'type': 'assignment', 'children': ['240', '243']}; {'id': '240', 'type': 'subscript', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '242', 'type': 'string', 'children': [], 'value': "'database'"}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'database'}; {'id': '244', 'type': 'if_statement', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '246', 'type': 'block', 'children': ['247']}; {'id': '247', 'type': 'expression_statement', 'children': ['248']}; {'id': '248', 'type': 'assignment', 'children': ['249', '252']}; {'id': '249', 'type': 'subscript', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '251', 'type': 'string', 'children': [], 'value': "'port'"}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '253', 'type': 'if_statement', 'children': ['254', '257', '269']}; {'id': '254', 'type': 'comparison_operator', 'children': ['255', '256'], 'value': 'in'}; {'id': '255', 'type': 'string', 'children': [], 'value': "'unix_socket'"}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '257', 'type': 'block', 'children': ['258']}; {'id': '258', 'type': 'expression_statement', 'children': ['259']}; {'id': '259', 'type': 'assignment', 'children': ['260', '263']}; {'id': '260', 'type': 'subscript', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '262', 'type': 'string', 'children': [], 'value': "'host'"}; {'id': '263', 'type': 'call', 'children': ['264', '267']}; {'id': '264', 'type': 'attribute', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '267', 'type': 'argument_list', 'children': ['268']}; {'id': '268', 'type': 'string', 'children': [], 'value': "'unix_socket'"}; {'id': '269', 'type': 'elif_clause', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '271', 'type': 'block', 'children': ['272']}; {'id': '272', 'type': 'expression_statement', 'children': ['273']}; {'id': '273', 'type': 'assignment', 'children': ['274', '277']}; {'id': '274', 'type': 'subscript', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '276', 'type': 'string', 'children': [], 'value': "'host'"}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '278', 'type': 'if_statement', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'password'}; {'id': '280', 'type': 'block', 'children': ['281']}; {'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': 'kwargs'}; {'id': '285', 'type': 'string', 'children': [], 'value': "'password'"}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'password'}; {'id': '287', 'type': 'return_statement', 'children': ['288']}; {'id': '288', 'type': 'expression_list', 'children': ['289', '290', '291']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'PostgreSQLDriver'}; {'id': '290', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '292', 'type': 'else_clause', 'children': ['293']}; {'id': '293', 'type': 'block', 'children': ['294']}; {'id': '294', 'type': 'raise_statement', 'children': ['295']}; {'id': '295', 'type': 'call', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '297', 'type': 'argument_list', 'children': ['298']}; {'id': '298', 'type': 'binary_operator', 'children': ['299', '300'], 'value': '%'}; {'id': '299', 'type': 'string', 'children': [], 'value': "'Unknown driver %s'"}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'dsn_string'} | Parse a connection string and return the associated driver |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '31']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'numpy_str'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11', '14', '17', '20', '23', '26', '29']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'arr'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'strvals'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'precision'}; {'id': '10', 'type': 'None', 'children': []}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'pr'}; {'id': '13', 'type': 'None', 'children': []}; {'id': '14', 'type': 'default_parameter', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'force_dtype'}; {'id': '16', 'type': 'False', 'children': []}; {'id': '17', 'type': 'default_parameter', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'with_dtype'}; {'id': '19', 'type': 'None', 'children': []}; {'id': '20', 'type': 'default_parameter', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'suppress_small'}; {'id': '22', 'type': 'None', 'children': []}; {'id': '23', 'type': 'default_parameter', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'max_line_width'}; {'id': '25', 'type': 'None', 'children': []}; {'id': '26', 'type': 'default_parameter', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'threshold'}; {'id': '28', 'type': 'None', 'children': []}; {'id': '29', 'type': 'dictionary_splat_pattern', 'children': ['30']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '31', 'type': 'block', 'children': ['32', '42', '58', '62', '68', '172', '237', '252', '260']}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'assignment', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'itemsep'}; {'id': '35', 'type': 'call', 'children': ['36', '39']}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '39', 'type': 'argument_list', 'children': ['40', '41']}; {'id': '40', 'type': 'string', 'children': [], 'value': "'itemsep'"}; {'id': '41', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'newlines'}; {'id': '45', 'type': 'call', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '49', 'type': 'argument_list', 'children': ['50', '51']}; {'id': '50', 'type': 'string', 'children': [], 'value': "'nl'"}; {'id': '51', 'type': 'call', 'children': ['52', '55']}; {'id': '52', 'type': 'attribute', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '55', 'type': 'argument_list', 'children': ['56', '57']}; {'id': '56', 'type': 'string', 'children': [], 'value': "'newlines'"}; {'id': '57', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '58', 'type': 'expression_statement', 'children': ['59']}; {'id': '59', 'type': 'assignment', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'arr'}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'separator'}; {'id': '65', 'type': 'binary_operator', 'children': ['66', '67'], 'value': '+'}; {'id': '66', 'type': 'string', 'children': [], 'value': "','"}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'itemsep'}; {'id': '68', 'type': 'if_statement', 'children': ['69', '70', '79']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'strvals'}; {'id': '70', 'type': 'block', 'children': ['71', '75']}; {'id': '71', 'type': 'expression_statement', 'children': ['72']}; {'id': '72', 'type': 'assignment', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '74', 'type': 'string', 'children': [], 'value': "''"}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '78', 'type': 'string', 'children': [], 'value': "''"}; {'id': '79', 'type': 'else_clause', 'children': ['80']}; {'id': '80', 'type': 'block', 'children': ['81', '90', '94', '105', '116', '125', '134', '144']}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '84', 'type': 'attribute', 'children': ['85', '89']}; {'id': '85', 'type': 'call', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '87', 'type': 'argument_list', 'children': ['88']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': '__module__'}; {'id': '90', 'type': 'expression_statement', 'children': ['91']}; {'id': '91', 'type': 'assignment', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'np_nice'}; {'id': '93', 'type': 'string', 'children': [], 'value': "'np'"}; {'id': '94', 'type': 'expression_statement', 'children': ['95']}; {'id': '95', 'type': 'assignment', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '97', 'type': 'call', 'children': ['98', '101']}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '101', 'type': 'argument_list', 'children': ['102', '103', '104']}; {'id': '102', 'type': 'string', 'children': [], 'value': "'\\\\bnumpy\\\\b'"}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'np_nice'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'assignment', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '108', 'type': 'call', 'children': ['109', '112']}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '112', 'type': 'argument_list', 'children': ['113', '114', '115']}; {'id': '113', 'type': 'string', 'children': [], 'value': "'\\\\bma.core\\\\b'"}; {'id': '114', 'type': 'string', 'children': [], 'value': "'ma'"}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '116', 'type': 'expression_statement', 'children': ['117']}; {'id': '117', 'type': 'assignment', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '119', 'type': 'attribute', 'children': ['120', '124']}; {'id': '120', 'type': 'call', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '122', 'type': 'argument_list', 'children': ['123']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': '__name__'}; {'id': '125', 'type': 'if_statement', 'children': ['126', '129']}; {'id': '126', 'type': 'comparison_operator', 'children': ['127', '128'], 'value': '=='}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '128', 'type': 'string', 'children': [], 'value': "'ndarray'"}; {'id': '129', 'type': 'block', 'children': ['130']}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'assignment', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '133', 'type': 'string', 'children': [], 'value': "'array'"}; {'id': '134', 'type': 'expression_statement', 'children': ['135']}; {'id': '135', 'type': 'assignment', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '137', 'type': 'binary_operator', 'children': ['138', '143'], 'value': '+'}; {'id': '138', 'type': 'binary_operator', 'children': ['139', '142'], 'value': '+'}; {'id': '139', 'type': 'binary_operator', 'children': ['140', '141'], 'value': '+'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '141', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '143', 'type': 'string', 'children': [], 'value': "'('"}; {'id': '144', 'type': 'if_statement', 'children': ['145', '146', '166']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'with_dtype'}; {'id': '146', 'type': 'block', 'children': ['147', '155']}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'assignment', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'dtype_repr'}; {'id': '150', 'type': 'attribute', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'dtype'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'assignment', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '158', 'type': 'call', 'children': ['159', '162']}; {'id': '159', 'type': 'attribute', 'children': ['160', '161']}; {'id': '160', 'type': 'string', 'children': [], 'value': "',{}dtype={}.{})'"}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '162', 'type': 'argument_list', 'children': ['163', '164', '165']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'itemsep'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'np_nice'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'dtype_repr'}; {'id': '166', 'type': 'else_clause', 'children': ['167']}; {'id': '167', 'type': 'block', 'children': ['168']}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'assignment', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '171', 'type': 'string', 'children': [], 'value': "')'"}; {'id': '172', 'type': 'if_statement', 'children': ['173', '188', '211']}; {'id': '173', 'type': 'boolean_operator', 'children': ['174', '182'], 'value': 'and'}; {'id': '174', 'type': 'boolean_operator', 'children': ['175', '177'], 'value': 'and'}; {'id': '175', 'type': 'not_operator', 'children': ['176']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'strvals'}; {'id': '177', 'type': 'comparison_operator', 'children': ['178', '181'], 'value': '=='}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '181', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '182', 'type': 'comparison_operator', 'children': ['183', '186'], 'value': '!='}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'shape'}; {'id': '186', 'type': 'tuple', 'children': ['187']}; {'id': '187', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '188', 'type': 'block', 'children': ['189', '195']}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'assignment', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '192', 'type': 'binary_operator', 'children': ['193', '194'], 'value': '+'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '194', 'type': 'string', 'children': [], 'value': "'.empty('"}; {'id': '195', 'type': 'expression_statement', 'children': ['196']}; {'id': '196', 'type': 'assignment', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'body'}; {'id': '198', 'type': 'call', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'repr'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'call', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '203', 'type': 'argument_list', 'children': ['204']}; {'id': '204', 'type': 'call', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'map'}; {'id': '206', 'type': 'argument_list', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '208', 'type': 'attribute', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'shape'}; {'id': '211', 'type': 'else_clause', 'children': ['212']}; {'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': 'body'}; {'id': '216', 'type': 'call', 'children': ['217', '220']}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'array2string'}; {'id': '220', 'type': 'argument_list', 'children': ['221', '222', '225', '228', '231', '234']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '222', 'type': 'keyword_argument', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'precision'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'precision'}; {'id': '225', 'type': 'keyword_argument', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'separator'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'separator'}; {'id': '228', 'type': 'keyword_argument', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'suppress_small'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'suppress_small'}; {'id': '231', 'type': 'keyword_argument', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '234', 'type': 'keyword_argument', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'max_line_width'}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'max_line_width'}; {'id': '237', 'type': 'if_statement', 'children': ['238', '240']}; {'id': '238', 'type': 'not_operator', 'children': ['239']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'newlines'}; {'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': 'body'}; {'id': '244', 'type': 'call', 'children': ['245', '248']}; {'id': '245', 'type': 'attribute', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '248', 'type': 'argument_list', 'children': ['249', '250', '251']}; {'id': '249', 'type': 'string', 'children': [], 'value': "'\\n *'"}; {'id': '250', 'type': 'string', 'children': [], 'value': "''"}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'body'}; {'id': '252', 'type': 'expression_statement', 'children': ['253']}; {'id': '253', 'type': 'assignment', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'formatted'}; {'id': '255', 'type': 'binary_operator', 'children': ['256', '259'], 'value': '+'}; {'id': '256', 'type': 'binary_operator', 'children': ['257', '258'], 'value': '+'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'body'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '260', 'type': 'return_statement', 'children': ['261']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'formatted'} | suppress_small = False turns off scientific representation |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '18']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'add'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '9', '12', '15']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'default_parameter', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'timestamp'}; {'id': '11', 'type': 'None', 'children': []}; {'id': '12', 'type': 'default_parameter', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '14', 'type': 'None', 'children': []}; {'id': '15', 'type': 'default_parameter', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '17', 'type': 'False', 'children': []}; {'id': '18', 'type': 'block', 'children': ['19', '43', '49', '56', '72', '78', '84', '90', '101', '112', '175', '191', '203', '255', '259', '267', '273', '283', '293', '484', '490']}; {'id': '19', 'type': 'if_statement', 'children': ['20', '23']}; {'id': '20', 'type': 'comparison_operator', 'children': ['21', '22'], 'value': 'is'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '22', 'type': 'None', 'children': []}; {'id': '23', 'type': 'block', 'children': ['24']}; {'id': '24', 'type': 'return_statement', 'children': ['25']}; {'id': '25', 'type': 'call', 'children': ['26', '29']}; {'id': '26', 'type': 'attribute', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '29', 'type': 'argument_list', 'children': ['30', '34', '37', '40']}; {'id': '30', 'type': 'tuple', 'children': ['31']}; {'id': '31', 'type': 'tuple', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '34', 'type': 'keyword_argument', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'timestamp'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'timestamp'}; {'id': '37', 'type': 'keyword_argument', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '40', 'type': 'keyword_argument', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'writer'}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'writer'}; {'id': '49', 'type': 'if_statement', 'children': ['50', '53']}; {'id': '50', 'type': 'comparison_operator', 'children': ['51', '52'], 'value': 'is'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'writer'}; {'id': '52', 'type': 'None', 'children': []}; {'id': '53', 'type': 'block', 'children': ['54']}; {'id': '54', 'type': 'raise_statement', 'children': ['55']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'GaugedUseAfterFreeError'}; {'id': '56', 'type': 'if_statement', 'children': ['57', '60']}; {'id': '57', 'type': 'comparison_operator', 'children': ['58', '59'], 'value': 'is'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'timestamp'}; {'id': '59', 'type': 'None', 'children': []}; {'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': 'timestamp'}; {'id': '64', 'type': 'call', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'long'}; {'id': '66', 'type': 'argument_list', 'children': ['67']}; {'id': '67', 'type': 'binary_operator', 'children': ['68', '71'], 'value': '*'}; {'id': '68', 'type': 'call', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '70', 'type': 'argument_list', 'children': []}; {'id': '71', 'type': 'integer', 'children': [], 'value': '1000'}; {'id': '72', 'type': 'expression_statement', 'children': ['73']}; {'id': '73', 'type': 'assignment', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '78', 'type': 'expression_statement', 'children': ['79']}; {'id': '79', 'type': 'assignment', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'block_size'}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'block_size'}; {'id': '84', 'type': 'expression_statement', 'children': ['85']}; {'id': '85', 'type': 'assignment', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'this_block'}; {'id': '87', 'type': 'binary_operator', 'children': ['88', '89'], 'value': '//'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'timestamp'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'block_size'}; {'id': '90', 'type': 'expression_statement', 'children': ['91']}; {'id': '91', 'type': 'assignment', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'this_array'}; {'id': '93', 'type': 'binary_operator', 'children': ['94', '98'], 'value': '//'}; {'id': '94', 'type': '()', 'children': ['95']}; {'id': '95', 'type': 'binary_operator', 'children': ['96', '97'], 'value': '%'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'timestamp'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'block_size'}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'resolution'}; {'id': '101', 'type': 'if_statement', 'children': ['102', '105']}; {'id': '102', 'type': 'comparison_operator', 'children': ['103', '104'], 'value': 'is'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'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': 'namespace'}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '112', 'type': 'if_statement', 'children': ['113', '132']}; {'id': '113', 'type': 'boolean_operator', 'children': ['114', '119', '120'], 'value': 'or'}; {'id': '114', 'type': 'comparison_operator', 'children': ['115', '116'], 'value': '<'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'this_block'}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'current_block'}; {'id': '119', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '120', 'type': '()', 'children': ['121']}; {'id': '121', 'type': 'boolean_operator', 'children': ['122', '127'], 'value': 'and'}; {'id': '122', 'type': 'comparison_operator', 'children': ['123', '124'], 'value': '=='}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'this_block'}; {'id': '124', 'type': 'attribute', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'current_block'}; {'id': '127', 'type': 'comparison_operator', 'children': ['128', '129'], 'value': '<'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'this_array'}; {'id': '129', 'type': 'attribute', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'current_array'}; {'id': '132', 'type': 'block', 'children': ['133']}; {'id': '133', 'type': 'if_statement', 'children': ['134', '141', '151', '172']}; {'id': '134', 'type': 'comparison_operator', 'children': ['135', '138'], 'value': '=='}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'append_only_violation'}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'Writer'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'ERROR'}; {'id': '141', 'type': 'block', 'children': ['142', '146']}; {'id': '142', 'type': 'expression_statement', 'children': ['143']}; {'id': '143', 'type': 'assignment', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '145', 'type': 'string', 'children': [], 'value': "'Gauged is append-only; timestamps must be increasing'"}; {'id': '146', 'type': 'raise_statement', 'children': ['147']}; {'id': '147', 'type': 'call', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'GaugedAppendOnlyError'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '151', 'type': 'elif_clause', 'children': ['152', '159']}; {'id': '152', 'type': 'comparison_operator', 'children': ['153', '156'], 'value': '=='}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'append_only_violation'}; {'id': '156', 'type': 'attribute', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'Writer'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'REWRITE'}; {'id': '159', 'type': 'block', 'children': ['160', '166']}; {'id': '160', 'type': 'expression_statement', 'children': ['161']}; {'id': '161', 'type': 'assignment', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'this_block'}; {'id': '163', 'type': 'attribute', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'current_block'}; {'id': '166', 'type': 'expression_statement', 'children': ['167']}; {'id': '167', 'type': 'assignment', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'this_array'}; {'id': '169', 'type': 'attribute', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'current_array'}; {'id': '172', 'type': 'else_clause', 'children': ['173']}; {'id': '173', 'type': 'block', 'children': ['174']}; {'id': '174', 'type': 'return_statement', 'children': []}; {'id': '175', 'type': 'if_statement', 'children': ['176', '181']}; {'id': '176', 'type': 'call', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '178', 'type': 'argument_list', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'unicode'}; {'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': 'data'}; {'id': '185', 'type': 'call', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'encode'}; {'id': '189', 'type': 'argument_list', 'children': ['190']}; {'id': '190', 'type': 'string', 'children': [], 'value': "'utf8'"}; {'id': '191', 'type': 'if_statement', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '193', 'type': 'block', 'children': ['194']}; {'id': '194', 'type': 'return_statement', 'children': ['195']}; {'id': '195', 'type': 'call', 'children': ['196', '199']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '199', 'type': 'argument_list', 'children': ['200', '201', '202']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'timestamp'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '203', 'type': 'if_statement', 'children': ['204', '209', '228']}; {'id': '204', 'type': 'comparison_operator', 'children': ['205', '206'], 'value': '>'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'this_block'}; {'id': '206', 'type': 'attribute', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'current_block'}; {'id': '209', 'type': 'block', 'children': ['210', '216', '222']}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'call', 'children': ['212', '215']}; {'id': '212', 'type': 'attribute', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'flush_blocks'}; {'id': '215', 'type': 'argument_list', 'children': []}; {'id': '216', 'type': 'expression_statement', 'children': ['217']}; {'id': '217', 'type': 'assignment', 'children': ['218', '221']}; {'id': '218', 'type': 'attribute', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'current_block'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'this_block'}; {'id': '222', 'type': 'expression_statement', 'children': ['223']}; {'id': '223', 'type': 'assignment', 'children': ['224', '227']}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'current_array'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'this_array'}; {'id': '228', 'type': 'elif_clause', 'children': ['229', '234']}; {'id': '229', 'type': 'comparison_operator', 'children': ['230', '231'], 'value': '>'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'this_array'}; {'id': '231', 'type': 'attribute', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'current_array'}; {'id': '234', 'type': 'block', 'children': ['235', '249']}; {'id': '235', 'type': 'if_statement', 'children': ['236', '246']}; {'id': '236', 'type': 'not_operator', 'children': ['237']}; {'id': '237', 'type': 'call', 'children': ['238', '241']}; {'id': '238', 'type': 'attribute', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'Gauged'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'writer_flush_arrays'}; {'id': '241', 'type': 'argument_list', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'writer'}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'current_array'}; {'id': '246', 'type': 'block', 'children': ['247']}; {'id': '247', 'type': 'raise_statement', 'children': ['248']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'MemoryError'}; {'id': '249', 'type': 'expression_statement', 'children': ['250']}; {'id': '250', 'type': 'assignment', 'children': ['251', '254']}; {'id': '251', 'type': 'attribute', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'current_array'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'this_array'}; {'id': '255', 'type': 'expression_statement', 'children': ['256']}; {'id': '256', 'type': 'assignment', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'data_points'}; {'id': '258', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '259', 'type': 'expression_statement', 'children': ['260']}; {'id': '260', 'type': 'assignment', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'namespace_statistics'}; {'id': '262', 'type': 'subscript', 'children': ['263', '266']}; {'id': '263', 'type': 'attribute', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'statistics'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '267', 'type': 'expression_statement', 'children': ['268']}; {'id': '268', 'type': 'assignment', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'whitelist'}; {'id': '270', 'type': 'attribute', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'key_whitelist'}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'id': '274', 'type': 'assignment', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'skip_long_keys'}; {'id': '276', 'type': 'comparison_operator', 'children': ['277', '280'], 'value': '=='}; {'id': '277', 'type': 'attribute', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'key_overflow'}; {'id': '280', 'type': 'attribute', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'Writer'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'IGNORE'}; {'id': '283', 'type': 'expression_statement', 'children': ['284']}; {'id': '284', 'type': 'assignment', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'skip_gauge_nan'}; {'id': '286', 'type': 'comparison_operator', 'children': ['287', '290'], 'value': '=='}; {'id': '287', 'type': 'attribute', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'gauge_nan'}; {'id': '290', 'type': 'attribute', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'Writer'}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'IGNORE'}; {'id': '293', 'type': 'if_statement', 'children': ['294', '308', '339']}; {'id': '294', 'type': 'boolean_operator', 'children': ['295', '305'], 'value': 'and'}; {'id': '295', 'type': 'boolean_operator', 'children': ['296', '303', '304'], 'value': 'and'}; {'id': '296', 'type': 'boolean_operator', 'children': ['297', '302'], 'value': 'and'}; {'id': '297', 'type': 'call', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '299', 'type': 'argument_list', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'skip_gauge_nan'}; {'id': '303', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'skip_long_keys'}; {'id': '305', 'type': 'comparison_operator', 'children': ['306', '307'], 'value': 'is'}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'whitelist'}; {'id': '307', 'type': 'None', 'children': []}; {'id': '308', 'type': 'block', 'children': ['309', '316', '333']}; {'id': '309', 'type': 'expression_statement', 'children': ['310']}; {'id': '310', 'type': 'assignment', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'data_points'}; {'id': '312', 'type': 'call', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'c_uint32'}; {'id': '314', 'type': 'argument_list', 'children': ['315']}; {'id': '315', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '316', 'type': 'if_statement', 'children': ['317', '330']}; {'id': '317', 'type': 'not_operator', 'children': ['318']}; {'id': '318', 'type': 'call', 'children': ['319', '322']}; {'id': '319', 'type': 'attribute', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'Gauged'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'writer_emit_pairs'}; {'id': '322', 'type': 'argument_list', 'children': ['323', '324', '325', '326']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'writer'}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '326', 'type': 'call', 'children': ['327', '328']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'byref'}; {'id': '328', 'type': 'argument_list', 'children': ['329']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'data_points'}; {'id': '330', 'type': 'block', 'children': ['331']}; {'id': '331', 'type': 'raise_statement', 'children': ['332']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'MemoryError'}; {'id': '333', 'type': 'expression_statement', 'children': ['334']}; {'id': '334', 'type': 'assignment', 'children': ['335', '336']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'data_points'}; {'id': '336', 'type': 'attribute', 'children': ['337', '338']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'data_points'}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '339', 'type': 'else_clause', 'children': ['340']}; {'id': '340', 'type': 'block', 'children': ['341', '372', '378']}; {'id': '341', 'type': 'if_statement', 'children': ['342', '347', '356']}; {'id': '342', 'type': 'call', 'children': ['343', '344']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '344', 'type': 'argument_list', 'children': ['345', '346']}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '347', 'type': 'block', 'children': ['348']}; {'id': '348', 'type': 'expression_statement', 'children': ['349']}; {'id': '349', 'type': 'assignment', 'children': ['350', '351']}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '351', 'type': 'call', 'children': ['352', '355']}; {'id': '352', 'type': 'attribute', 'children': ['353', '354']}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '355', 'type': 'argument_list', 'children': []}; {'id': '356', 'type': 'elif_clause', 'children': ['357', '362']}; {'id': '357', 'type': 'call', 'children': ['358', '359']}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '359', 'type': 'argument_list', 'children': ['360', '361']}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '362', 'type': 'block', 'children': ['363']}; {'id': '363', 'type': 'expression_statement', 'children': ['364']}; {'id': '364', 'type': 'assignment', 'children': ['365', '366']}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '366', 'type': 'call', 'children': ['367', '370']}; {'id': '367', 'type': 'attribute', 'children': ['368', '369']}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'parse_query'}; {'id': '370', 'type': 'argument_list', 'children': ['371']}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '372', 'type': 'expression_statement', 'children': ['373']}; {'id': '373', 'type': 'assignment', 'children': ['374', '375']}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '375', 'type': 'attribute', 'children': ['376', '377']}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'Gauged'}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'writer_emit'}; {'id': '378', 'type': 'for_statement', 'children': ['379', '382', '383']}; {'id': '379', 'type': 'pattern_list', 'children': ['380', '381']}; {'id': '380', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '382', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '383', 'type': 'block', 'children': ['384', '391', '401', '420', '431', '444', '480']}; {'id': '384', 'type': 'expression_statement', 'children': ['385']}; {'id': '385', 'type': 'assignment', 'children': ['386', '387']}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '387', 'type': 'call', 'children': ['388', '389']}; {'id': '388', 'type': 'identifier', 'children': [], 'value': 'to_bytes'}; {'id': '389', 'type': 'argument_list', 'children': ['390']}; {'id': '390', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '391', 'type': 'if_statement', 'children': ['392', '399']}; {'id': '392', 'type': 'boolean_operator', 'children': ['393', '396'], 'value': 'and'}; {'id': '393', 'type': 'comparison_operator', 'children': ['394', '395'], 'value': 'is'}; {'id': '394', 'type': 'identifier', 'children': [], 'value': 'whitelist'}; {'id': '395', 'type': 'None', 'children': []}; {'id': '396', 'type': 'comparison_operator', 'children': ['397', '398'], 'value': 'not'}; {'id': '397', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'whitelist'}; {'id': '399', 'type': 'block', 'children': ['400']}; {'id': '400', 'type': 'continue_statement', 'children': []}; {'id': '401', 'type': 'try_statement', 'children': ['402', '410']}; {'id': '402', 'type': 'block', 'children': ['403']}; {'id': '403', 'type': 'expression_statement', 'children': ['404']}; {'id': '404', 'type': 'assignment', 'children': ['405', '406']}; {'id': '405', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '406', 'type': 'call', 'children': ['407', '408']}; {'id': '407', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '408', 'type': 'argument_list', 'children': ['409']}; {'id': '409', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '410', 'type': 'except_clause', 'children': ['411', '412']}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '412', 'type': 'block', 'children': ['413']}; {'id': '413', 'type': 'expression_statement', 'children': ['414']}; {'id': '414', 'type': 'assignment', 'children': ['415', '416']}; {'id': '415', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '416', 'type': 'call', 'children': ['417', '418']}; {'id': '417', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '418', 'type': 'argument_list', 'children': ['419']}; {'id': '419', 'type': 'string', 'children': [], 'value': "'nan'"}; {'id': '420', 'type': 'if_statement', 'children': ['421', '424']}; {'id': '421', 'type': 'comparison_operator', 'children': ['422', '423'], 'value': '!='}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '423', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '424', 'type': 'block', 'children': ['425', '429']}; {'id': '425', 'type': 'if_statement', 'children': ['426', '427']}; {'id': '426', 'type': 'identifier', 'children': [], 'value': 'skip_gauge_nan'}; {'id': '427', 'type': 'block', 'children': ['428']}; {'id': '428', 'type': 'continue_statement', 'children': []}; {'id': '429', 'type': 'raise_statement', 'children': ['430']}; {'id': '430', 'type': 'identifier', 'children': [], 'value': 'GaugedNaNError'}; {'id': '431', 'type': 'expression_statement', 'children': ['432']}; {'id': '432', 'type': 'assignment', 'children': ['433', '434']}; {'id': '433', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '434', 'type': 'call', 'children': ['435', '436']}; {'id': '435', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '436', 'type': 'argument_list', 'children': ['437', '438', '439', '440']}; {'id': '437', 'type': 'identifier', 'children': [], 'value': 'writer'}; {'id': '438', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '439', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '440', 'type': 'call', 'children': ['441', '442']}; {'id': '441', 'type': 'identifier', 'children': [], 'value': 'c_float'}; {'id': '442', 'type': 'argument_list', 'children': ['443']}; {'id': '443', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '444', 'type': 'if_statement', 'children': ['445', '448']}; {'id': '445', 'type': 'comparison_operator', 'children': ['446', '447'], 'value': '!='}; {'id': '446', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '447', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '448', 'type': 'block', 'children': ['449']}; {'id': '449', 'type': 'if_statement', 'children': ['450', '452', '455']}; {'id': '450', 'type': 'not_operator', 'children': ['451']}; {'id': '451', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '452', 'type': 'block', 'children': ['453']}; {'id': '453', 'type': 'raise_statement', 'children': ['454']}; {'id': '454', 'type': 'identifier', 'children': [], 'value': 'MemoryError'}; {'id': '455', 'type': 'elif_clause', 'children': ['456', '464']}; {'id': '456', 'type': 'boolean_operator', 'children': ['457', '462'], 'value': 'and'}; {'id': '457', 'type': 'comparison_operator', 'children': ['458', '459'], 'value': '=='}; {'id': '458', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '459', 'type': 'attribute', 'children': ['460', '461']}; {'id': '460', 'type': 'identifier', 'children': [], 'value': 'Writer'}; {'id': '461', 'type': 'identifier', 'children': [], 'value': 'KEY_OVERFLOW'}; {'id': '462', 'type': 'not_operator', 'children': ['463']}; {'id': '463', 'type': 'identifier', 'children': [], 'value': 'skip_long_keys'}; {'id': '464', 'type': 'block', 'children': ['465', '469', '475']}; {'id': '465', 'type': 'expression_statement', 'children': ['466']}; {'id': '466', 'type': 'assignment', 'children': ['467', '468']}; {'id': '467', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '468', 'type': 'string', 'children': [], 'value': "'Key is larger than the driver allows '"}; {'id': '469', 'type': 'expression_statement', 'children': ['470']}; {'id': '470', 'type': 'augmented_assignment', 'children': ['471', '472'], 'value': '+='}; {'id': '471', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '472', 'type': 'binary_operator', 'children': ['473', '474'], 'value': '%'}; {'id': '473', 'type': 'string', 'children': [], 'value': "'(%s)'"}; {'id': '474', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '475', 'type': 'raise_statement', 'children': ['476']}; {'id': '476', 'type': 'call', 'children': ['477', '478']}; {'id': '477', 'type': 'identifier', 'children': [], 'value': 'GaugedKeyOverflowError'}; {'id': '478', 'type': 'argument_list', 'children': ['479']}; {'id': '479', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '480', 'type': 'expression_statement', 'children': ['481']}; {'id': '481', 'type': 'augmented_assignment', 'children': ['482', '483'], 'value': '+='}; {'id': '482', 'type': 'identifier', 'children': [], 'value': 'data_points'}; {'id': '483', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '484', 'type': 'expression_statement', 'children': ['485']}; {'id': '485', 'type': 'augmented_assignment', 'children': ['486', '489'], 'value': '+='}; {'id': '486', 'type': 'attribute', 'children': ['487', '488']}; {'id': '487', 'type': 'identifier', 'children': [], 'value': 'namespace_statistics'}; {'id': '488', 'type': 'identifier', 'children': [], 'value': 'data_points'}; {'id': '489', 'type': 'identifier', 'children': [], 'value': 'data_points'}; {'id': '490', 'type': 'if_statement', 'children': ['491', '494']}; {'id': '491', 'type': 'attribute', 'children': ['492', '493']}; {'id': '492', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '493', 'type': 'identifier', 'children': [], 'value': 'flush_now'}; {'id': '494', 'type': 'block', 'children': ['495']}; {'id': '495', 'type': 'expression_statement', 'children': ['496']}; {'id': '496', 'type': 'call', 'children': ['497', '500']}; {'id': '497', 'type': 'attribute', 'children': ['498', '499']}; {'id': '498', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '499', 'type': 'identifier', 'children': [], 'value': 'flush'}; {'id': '500', 'type': 'argument_list', 'children': []} | Queue a gauge or gauges to be written |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'ERROR', 'children': ['2', '3', '5', '10', '15', '16', '18', '188', '199']}; {'id': '2', 'type': 'identifier', 'children': [], 'value': 'nx_ensure_agraph_color'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'graph'}; {'id': '5', 'type': 'import_from_statement', 'children': ['6', '8']}; {'id': '6', 'type': 'dotted_name', 'children': ['7']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'plottool'}; {'id': '8', 'type': 'dotted_name', 'children': ['9']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'color_funcs'}; {'id': '10', 'type': 'import_statement', 'children': ['11']}; {'id': '11', 'type': 'aliased_import', 'children': ['12', '14']}; {'id': '12', 'type': 'dotted_name', 'children': ['13']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'plottool'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'pt'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': '_fix_agraph_color'}; {'id': '16', 'type': 'parameters', 'children': ['17']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '18', 'type': 'ERROR', 'children': ['19', '176']}; {'id': '19', 'type': 'ERROR', 'children': ['20', '174', '175']}; {'id': '20', 'type': 'block', 'children': ['21', '31', '41', '45', '61', '155', '160', '173']}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'assignment', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'orig_color'}; {'id': '24', 'type': 'call', 'children': ['25', '28']}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'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': "'color'"}; {'id': '30', 'type': 'None', 'children': []}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'alpha'}; {'id': '34', 'type': 'call', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '38', 'type': 'argument_list', 'children': ['39', '40']}; {'id': '39', 'type': 'string', 'children': [], 'value': "'alpha'"}; {'id': '40', 'type': 'None', 'children': []}; {'id': '41', 'type': 'expression_statement', 'children': ['42']}; {'id': '42', 'type': 'assignment', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'orig_color'}; {'id': '45', 'type': 'if_statement', 'children': ['46', '53']}; {'id': '46', 'type': 'boolean_operator', 'children': ['47', '50'], 'value': 'and'}; {'id': '47', 'type': 'comparison_operator', 'children': ['48', '49'], 'value': 'is'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '49', 'type': 'None', 'children': []}; {'id': '50', 'type': 'comparison_operator', 'children': ['51', '52'], 'value': 'is'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'alpha'}; {'id': '52', 'type': 'None', 'children': []}; {'id': '53', 'type': 'block', 'children': ['54']}; {'id': '54', 'type': 'expression_statement', 'children': ['55']}; {'id': '55', 'type': 'assignment', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '57', 'type': 'list', 'children': ['58', '59', '60'], 'value': '[0, 0, 0]'}; {'id': '58', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '59', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '60', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '61', 'type': 'if_statement', 'children': ['62', '65']}; {'id': '62', 'type': 'comparison_operator', 'children': ['63', '64'], 'value': 'is'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '64', 'type': 'None', 'children': []}; {'id': '65', 'type': 'block', 'children': ['66', '75', '87', '123', '130']}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'assignment', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '69', 'type': 'call', 'children': ['70', '73']}; {'id': '70', 'type': 'attribute', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'pt'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'ensure_nonhex_color'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '78', 'type': 'call', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'color_funcs'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'ensure_base255'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '87', 'type': 'if_statement', 'children': ['88', '91']}; {'id': '88', 'type': 'comparison_operator', 'children': ['89', '90'], 'value': 'is'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'alpha'}; {'id': '90', 'type': 'None', 'children': []}; {'id': '91', 'type': 'block', 'children': ['92']}; {'id': '92', 'type': 'if_statement', 'children': ['93', '99', '110']}; {'id': '93', 'type': 'comparison_operator', 'children': ['94', '98'], 'value': '=='}; {'id': '94', 'type': 'call', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '96', 'type': 'argument_list', 'children': ['97']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '98', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '99', 'type': 'block', 'children': ['100']}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'augmented_assignment', 'children': ['102', '103'], 'value': '+='}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '103', 'type': 'list', 'children': ['104'], 'value': '[int(alpha * 255)]'}; {'id': '104', 'type': 'call', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'binary_operator', 'children': ['108', '109'], 'value': '*'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'alpha'}; {'id': '109', 'type': 'integer', 'children': [], 'value': '255'}; {'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', '117']}; {'id': '114', 'type': 'subscript', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '116', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '117', 'type': 'call', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '119', 'type': 'argument_list', 'children': ['120']}; {'id': '120', 'type': 'binary_operator', 'children': ['121', '122'], 'value': '*'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'alpha'}; {'id': '122', 'type': 'integer', 'children': [], 'value': '255'}; {'id': '123', 'type': 'expression_statement', 'children': ['124']}; {'id': '124', 'type': 'assignment', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '126', 'type': 'call', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '128', 'type': 'argument_list', 'children': ['129']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '130', 'type': 'if_statement', 'children': ['131', '137', '154']}; {'id': '131', 'type': 'comparison_operator', 'children': ['132', '136'], 'value': '=='}; {'id': '132', 'type': 'call', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '134', 'type': 'argument_list', 'children': ['135']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '136', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '137', 'type': 'ERROR', 'children': ['138']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'assignment', 'children': ['140', '143', '145']}; {'id': '140', 'type': 'subscript', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '142', 'type': 'string', 'children': [], 'value': "'color'"}; {'id': '143', 'type': 'ERROR', 'children': ['144']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'else'}; {'id': '145', 'type': 'assignment', 'children': ['146', '149', '150']}; {'id': '146', 'type': 'subscript', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '148', 'type': 'string', 'children': [], 'value': "'color'"}; {'id': '149', 'type': 'ERROR', 'children': []}; {'id': '150', 'type': 'as_pattern', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '152', 'type': 'as_pattern_target', 'children': ['153']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '154', 'type': 'block', 'children': [], 'value': ''}; {'id': '155', 'type': 'import_statement', 'children': ['156']}; {'id': '156', 'type': 'aliased_import', 'children': ['157', '159']}; {'id': '157', 'type': 'dotted_name', 'children': ['158']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'utool'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '160', 'type': 'expression_statement', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '165']}; {'id': '162', 'type': 'attribute', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'ut'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'printex'}; {'id': '165', 'type': 'argument_list', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '167', 'type': 'keyword_argument', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '169', 'type': 'list', 'children': ['170', '171', '172'], 'value': "['color', 'orig_color', 'data']"}; {'id': '170', 'type': 'string', 'children': [], 'value': "'color'"}; {'id': '171', 'type': 'string', 'children': [], 'value': "'orig_color'"}; {'id': '172', 'type': 'string', 'children': [], 'value': "'data'"}; {'id': '173', 'type': 'raise_statement', 'children': []}; {'id': '174', 'type': 'block', 'children': [], 'value': ''}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'for'}; {'id': '176', 'type': 'expression_statement', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '178', 'type': 'comparison_operator', 'children': ['179', '180'], 'value': 'in'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'node_data'}; {'id': '180', 'type': 'call', 'children': ['181', '184']}; {'id': '181', 'type': 'attribute', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'graph'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'keyword_argument', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '187', 'type': 'True', 'children': []}; {'id': '188', 'type': 'ERROR', 'children': ['189']}; {'id': '189', 'type': 'block', 'children': ['190', '194']}; {'id': '190', 'type': 'expression_statement', 'children': ['191']}; {'id': '191', 'type': 'assignment', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'node_data'}; {'id': '194', 'type': 'expression_statement', 'children': ['195']}; {'id': '195', 'type': 'call', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': '_fix_agraph_color'}; {'id': '197', 'type': 'argument_list', 'children': ['198']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '199', 'type': 'block', 'children': ['200']}; {'id': '200', 'type': 'for_statement', 'children': ['201', '205', '213']}; {'id': '201', 'type': 'pattern_list', 'children': ['202', '203', '204']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'edge_data'}; {'id': '205', 'type': 'call', 'children': ['206', '209']}; {'id': '206', 'type': 'attribute', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'graph'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'edges'}; {'id': '209', 'type': 'argument_list', 'children': ['210']}; {'id': '210', 'type': 'keyword_argument', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '212', 'type': 'True', 'children': []}; {'id': '213', 'type': 'block', 'children': ['214', '218']}; {'id': '214', 'type': 'expression_statement', 'children': ['215']}; {'id': '215', 'type': 'assignment', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'edge_data'}; {'id': '218', 'type': 'expression_statement', 'children': ['219']}; {'id': '219', 'type': 'call', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': '_fix_agraph_color'}; {'id': '221', 'type': 'argument_list', 'children': ['222']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'data'} | changes colors to hex strings on graph attrs |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '15']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'generate_proteins'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8', '9', '12']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'pepfn'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'proteins'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'pepheader'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'scorecol'}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'minlog'}; {'id': '9', 'type': 'default_parameter', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'higherbetter'}; {'id': '11', 'type': 'True', 'children': []}; {'id': '12', 'type': 'default_parameter', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'protcol'}; {'id': '14', 'type': 'False', 'children': []}; {'id': '15', 'type': 'block', 'children': ['16', '20', '27', '37', '73', '140']}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'protein_peptides'}; {'id': '19', 'type': 'dictionary', 'children': []}; {'id': '20', 'type': 'if_statement', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'minlog'}; {'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': 'higherbetter'}; {'id': '26', 'type': 'False', 'children': []}; {'id': '27', 'type': 'if_statement', 'children': ['28', '30']}; {'id': '28', 'type': 'not_operator', 'children': ['29']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'protcol'}; {'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': 'protcol'}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'peptabledata'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'HEADER_MASTERPROTEINS'}; {'id': '37', 'type': 'for_statement', 'children': ['38', '39', '46']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'psm'}; {'id': '39', 'type': 'call', 'children': ['40', '43']}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'reader'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'generate_tsv_psms'}; {'id': '43', 'type': 'argument_list', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'pepfn'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'pepheader'}; {'id': '46', 'type': 'block', 'children': ['47', '53', '59']}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'assignment', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'p_acc'}; {'id': '50', 'type': 'subscript', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'psm'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'protcol'}; {'id': '53', 'type': 'if_statement', 'children': ['54', '57']}; {'id': '54', 'type': 'comparison_operator', 'children': ['55', '56'], 'value': 'in'}; {'id': '55', 'type': 'string', 'children': [], 'value': "';'"}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'p_acc'}; {'id': '57', 'type': 'block', 'children': ['58']}; {'id': '58', 'type': 'continue_statement', 'children': []}; {'id': '59', 'type': 'expression_statement', 'children': ['60']}; {'id': '60', 'type': 'assignment', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'protein_peptides'}; {'id': '62', 'type': 'call', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'evaluate_peptide'}; {'id': '64', 'type': 'argument_list', 'children': ['65', '66', '67', '68', '69', '70']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'protein_peptides'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'psm'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'p_acc'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'higherbetter'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'scorecol'}; {'id': '70', 'type': 'keyword_argument', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'fncol'}; {'id': '72', 'type': 'False', 'children': []}; {'id': '73', 'type': 'if_statement', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'minlog'}; {'id': '75', 'type': 'block', 'children': ['76', '131']}; {'id': '76', 'type': 'try_statement', 'children': ['77', '101']}; {'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': 'nextbestscore'}; {'id': '81', 'type': 'call', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'min'}; {'id': '83', 'type': 'argument_list', 'children': ['84']}; {'id': '84', 'type': 'list_comprehension', 'children': ['85', '88', '95']}; {'id': '85', 'type': 'subscript', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'pep'}; {'id': '87', 'type': 'string', 'children': [], 'value': "'score'"}; {'id': '88', 'type': 'for_in_clause', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'pep'}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'protein_peptides'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '94', 'type': 'argument_list', 'children': []}; {'id': '95', 'type': 'if_clause', 'children': ['96']}; {'id': '96', 'type': 'comparison_operator', 'children': ['97', '100'], 'value': '>'}; {'id': '97', 'type': 'subscript', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'pep'}; {'id': '99', 'type': 'string', 'children': [], 'value': "'score'"}; {'id': '100', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '101', 'type': 'except_clause', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '103', 'type': 'block', 'children': ['104', '107', '124']}; {'id': '104', 'type': 'import_statement', 'children': ['105']}; {'id': '105', 'type': 'dotted_name', 'children': ['106']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'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': 'sys'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '114', 'type': 'argument_list', 'children': ['115']}; {'id': '115', 'type': 'call', 'children': ['116', '122']}; {'id': '116', 'type': 'attribute', 'children': ['117', '121']}; {'id': '117', 'type': 'concatenated_string', 'children': ['118', '119', '120']}; {'id': '118', 'type': 'string', 'children': [], 'value': "'Cannot find score of type {} which is above 0. '"}; {'id': '119', 'type': 'string', 'children': [], 'value': "'Only scores above zero can have a -log value. '"}; {'id': '120', 'type': 'string', 'children': [], 'value': "'Exiting.'"}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '122', 'type': 'argument_list', 'children': ['123']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'scorecol'}; {'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': 'sys'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'exit'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'assignment', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'nextbestscore'}; {'id': '134', 'type': 'unary_operator', 'children': ['135'], 'value': '-'}; {'id': '135', 'type': 'call', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '137', 'type': 'argument_list', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'nextbestscore'}; {'id': '139', 'type': 'integer', 'children': [], 'value': '10'}; {'id': '140', 'type': 'for_statement', 'children': ['141', '142', '143']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'protein'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'proteins'}; {'id': '143', 'type': 'block', 'children': ['144', '182', '203', '216']}; {'id': '144', 'type': 'try_statement', 'children': ['145', '156']}; {'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': 'peptide'}; {'id': '149', 'type': 'subscript', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'protein_peptides'}; {'id': '151', 'type': 'subscript', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'protein'}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'prottabledata'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'HEADER_PROTEIN'}; {'id': '156', 'type': 'except_clause', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '158', 'type': 'block', 'children': ['159', '175']}; {'id': '159', 'type': 'expression_statement', 'children': ['160']}; {'id': '160', 'type': 'call', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '162', 'type': 'argument_list', 'children': ['163']}; {'id': '163', 'type': 'call', 'children': ['164', '169']}; {'id': '164', 'type': 'attribute', 'children': ['165', '168']}; {'id': '165', 'type': 'concatenated_string', 'children': ['166', '167']}; {'id': '166', 'type': 'string', 'children': [], 'value': "'WARNING - protein {} not found in peptide '"}; {'id': '167', 'type': 'string', 'children': [], 'value': "'table'"}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '169', 'type': 'argument_list', 'children': ['170']}; {'id': '170', 'type': 'subscript', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'protein'}; {'id': '172', 'type': 'attribute', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'prottabledata'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'HEADER_PROTEIN'}; {'id': '175', 'type': 'expression_statement', 'children': ['176']}; {'id': '176', 'type': 'assignment', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'peptide'}; {'id': '178', 'type': 'dictionary', 'children': ['179']}; {'id': '179', 'type': 'pair', 'children': ['180', '181']}; {'id': '180', 'type': 'string', 'children': [], 'value': "'score'"}; {'id': '181', 'type': 'string', 'children': [], 'value': "'NA'"}; {'id': '182', 'type': 'if_statement', 'children': ['183', '190']}; {'id': '183', 'type': 'boolean_operator', 'children': ['184', '185'], 'value': 'and'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'minlog'}; {'id': '185', 'type': 'comparison_operator', 'children': ['186', '189'], 'value': '!='}; {'id': '186', 'type': 'subscript', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'peptide'}; {'id': '188', 'type': 'string', 'children': [], 'value': "'score'"}; {'id': '189', 'type': 'string', 'children': [], 'value': "'NA'"}; {'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': 'peptide'}; {'id': '195', 'type': 'string', 'children': [], 'value': "'score'"}; {'id': '196', 'type': 'call', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'log_score'}; {'id': '198', 'type': 'argument_list', 'children': ['199', '202']}; {'id': '199', 'type': 'subscript', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'peptide'}; {'id': '201', 'type': 'string', 'children': [], 'value': "'score'"}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'nextbestscore'}; {'id': '203', 'type': 'expression_statement', 'children': ['204']}; {'id': '204', 'type': 'assignment', 'children': ['205', '210']}; {'id': '205', 'type': 'subscript', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'protein'}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'prottabledata'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'HEADER_QSCORE'}; {'id': '210', 'type': 'call', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '212', 'type': 'argument_list', 'children': ['213']}; {'id': '213', 'type': 'subscript', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'peptide'}; {'id': '215', 'type': 'string', 'children': [], 'value': "'score'"}; {'id': '216', 'type': 'expression_statement', 'children': ['217']}; {'id': '217', 'type': 'yield', 'children': ['218']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'protein'} | Best peptide for each protein in a table |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '13']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'GenericPump'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'filenames'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'use_jppy'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '10', 'type': 'string', 'children': [], 'value': '"GenericPump"'}; {'id': '11', 'type': 'dictionary_splat_pattern', 'children': ['12']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '13', 'type': 'block', 'children': ['14', '26', '48', '67', '87', '96', '118', '140', '158', '207', '219']}; {'id': '14', 'type': 'if_statement', 'children': ['15', '20']}; {'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': 'filenames'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'str'}; {'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': 'filenames'}; {'id': '24', 'type': 'list', 'children': ['25'], 'value': '[filenames]'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'filenames'}; {'id': '26', 'type': 'try_statement', 'children': ['27', '33']}; {'id': '27', 'type': 'block', 'children': ['28']}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'call', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'iter'}; {'id': '31', 'type': 'argument_list', 'children': ['32']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'filenames'}; {'id': '33', 'type': 'except_clause', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'TypeError'}; {'id': '35', 'type': 'block', 'children': ['36', '43']}; {'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': 'log'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '41', 'type': 'argument_list', 'children': ['42']}; {'id': '42', 'type': 'string', 'children': [], 'value': '"Don\'t know how to iterate through filenames."'}; {'id': '43', 'type': 'raise_statement', 'children': ['44']}; {'id': '44', 'type': 'call', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'TypeError'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'string', 'children': [], 'value': '"Invalid filenames."'}; {'id': '48', 'type': 'expression_statement', 'children': ['49']}; {'id': '49', 'type': 'assignment', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'extensions'}; {'id': '51', 'type': 'call', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '53', 'type': 'generator_expression', 'children': ['54', '64']}; {'id': '54', 'type': 'subscript', 'children': ['55', '63']}; {'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': 'splitext'}; {'id': '61', 'type': 'argument_list', 'children': ['62']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '63', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '64', 'type': 'for_in_clause', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'filenames'}; {'id': '67', 'type': 'if_statement', 'children': ['68', '74']}; {'id': '68', 'type': 'comparison_operator', 'children': ['69', '73'], 'value': '>'}; {'id': '69', 'type': 'call', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '71', 'type': 'argument_list', 'children': ['72']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'extensions'}; {'id': '73', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '74', 'type': 'block', 'children': ['75', '82']}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'call', 'children': ['77', '80']}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'string', 'children': [], 'value': '"Mixed filetypes, please use only files of the same type"'}; {'id': '82', 'type': 'raise_statement', 'children': ['83']}; {'id': '83', 'type': 'call', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'IOError'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'string', 'children': [], 'value': '"Mixed filetypes."'}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'extension'}; {'id': '90', 'type': 'subscript', 'children': ['91', '95']}; {'id': '91', 'type': 'call', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '93', 'type': 'argument_list', 'children': ['94']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'extensions'}; {'id': '95', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'assignment', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'io'}; {'id': '99', 'type': 'dictionary', 'children': ['100', '103', '106', '112', '115']}; {'id': '100', 'type': 'pair', 'children': ['101', '102']}; {'id': '101', 'type': 'string', 'children': [], 'value': "'.evt'"}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'EvtPump'}; {'id': '103', 'type': 'pair', 'children': ['104', '105']}; {'id': '104', 'type': 'string', 'children': [], 'value': "'.h5'"}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'HDF5Pump'}; {'id': '106', 'type': 'pair', 'children': ['107', '108']}; {'id': '107', 'type': 'string', 'children': [], 'value': "'.root'"}; {'id': '108', 'type': 'conditional_expression', 'children': ['109', '110', '111'], 'value': 'if'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'EventPump'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'use_jppy'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'AanetPump'}; {'id': '112', 'type': 'pair', 'children': ['113', '114']}; {'id': '113', 'type': 'string', 'children': [], 'value': "'.dat'"}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'DAQPump'}; {'id': '115', 'type': 'pair', 'children': ['116', '117']}; {'id': '116', 'type': 'string', 'children': [], 'value': "'.dqd'"}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'CLBPump'}; {'id': '118', 'type': 'if_statement', 'children': ['119', '122']}; {'id': '119', 'type': 'comparison_operator', 'children': ['120', '121'], 'value': 'not'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'extension'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'io'}; {'id': '122', 'type': 'block', 'children': ['123', '135']}; {'id': '123', 'type': 'expression_statement', 'children': ['124']}; {'id': '124', 'type': 'call', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '128', 'type': 'argument_list', 'children': ['129']}; {'id': '129', 'type': 'call', 'children': ['130', '133']}; {'id': '130', 'type': 'attribute', 'children': ['131', '132']}; {'id': '131', 'type': 'string', 'children': [], 'value': '"No pump found for file extension \'{0}\'"'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '133', 'type': 'argument_list', 'children': ['134']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'extension'}; {'id': '135', 'type': 'raise_statement', 'children': ['136']}; {'id': '136', 'type': 'call', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '138', 'type': 'argument_list', 'children': ['139']}; {'id': '139', 'type': 'string', 'children': [], 'value': '"Unknown filetype"'}; {'id': '140', 'type': 'expression_statement', 'children': ['141']}; {'id': '141', 'type': 'assignment', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'missing_files'}; {'id': '143', 'type': 'list_comprehension', 'children': ['144', '145', '148']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '145', 'type': 'for_in_clause', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'filenames'}; {'id': '148', 'type': 'if_clause', 'children': ['149']}; {'id': '149', 'type': 'not_operator', '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': 'os'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '156', 'type': 'argument_list', 'children': ['157']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '158', 'type': 'if_statement', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'missing_files'}; {'id': '160', 'type': 'block', 'children': ['161']}; {'id': '161', 'type': 'if_statement', 'children': ['162', '171', '188']}; {'id': '162', 'type': 'comparison_operator', 'children': ['163', '167'], 'value': '=='}; {'id': '163', 'type': 'call', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'missing_files'}; {'id': '167', 'type': 'call', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '169', 'type': 'argument_list', 'children': ['170']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'filenames'}; {'id': '171', 'type': 'block', 'children': ['172', '176', '183']}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'assignment', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '175', 'type': 'string', 'children': [], 'value': '"None of the given files could be found."'}; {'id': '176', 'type': 'expression_statement', 'children': ['177']}; {'id': '177', 'type': 'call', 'children': ['178', '181']}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '181', 'type': 'argument_list', 'children': ['182']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '183', 'type': 'raise_statement', 'children': ['184']}; {'id': '184', 'type': 'call', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'SystemExit'}; {'id': '186', 'type': 'argument_list', 'children': ['187']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '188', 'type': 'else_clause', 'children': ['189']}; {'id': '189', 'type': 'block', 'children': ['190']}; {'id': '190', 'type': 'expression_statement', 'children': ['191']}; {'id': '191', 'type': 'call', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '195', 'type': 'argument_list', 'children': ['196']}; {'id': '196', 'type': 'call', 'children': ['197', '200']}; {'id': '197', 'type': 'attribute', 'children': ['198', '199']}; {'id': '198', 'type': 'string', 'children': [], 'value': '"The following files are missing and ignored: {}"'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'call', 'children': ['202', '205']}; {'id': '202', 'type': 'attribute', 'children': ['203', '204']}; {'id': '203', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '205', 'type': 'argument_list', 'children': ['206']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'missing_files'}; {'id': '207', 'type': 'expression_statement', 'children': ['208']}; {'id': '208', 'type': 'assignment', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'input_files'}; {'id': '210', 'type': 'binary_operator', 'children': ['211', '215'], 'value': '-'}; {'id': '211', 'type': 'call', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '213', 'type': 'argument_list', 'children': ['214']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'filenames'}; {'id': '215', 'type': 'call', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '217', 'type': 'argument_list', 'children': ['218']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'missing_files'}; {'id': '219', 'type': 'if_statement', 'children': ['220', '226', '243']}; {'id': '220', 'type': 'comparison_operator', 'children': ['221', '225'], 'value': '=='}; {'id': '221', 'type': 'call', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '223', 'type': 'argument_list', 'children': ['224']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'input_files'}; {'id': '225', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '226', 'type': 'block', 'children': ['227']}; {'id': '227', 'type': 'return_statement', 'children': ['228']}; {'id': '228', 'type': 'call', 'children': ['229', '232']}; {'id': '229', 'type': 'subscript', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'io'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'extension'}; {'id': '232', 'type': 'argument_list', 'children': ['233', '238', '241']}; {'id': '233', 'type': 'keyword_argument', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '235', 'type': 'subscript', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'filenames'}; {'id': '237', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '238', 'type': 'keyword_argument', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '241', 'type': 'dictionary_splat', 'children': ['242']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '243', 'type': 'else_clause', 'children': ['244']}; {'id': '244', 'type': 'block', 'children': ['245']}; {'id': '245', 'type': 'return_statement', 'children': ['246']}; {'id': '246', 'type': 'call', 'children': ['247', '250']}; {'id': '247', 'type': 'subscript', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'io'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'extension'}; {'id': '250', 'type': 'argument_list', 'children': ['251', '254', '257']}; {'id': '251', 'type': 'keyword_argument', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'filenames'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'filenames'}; {'id': '254', 'type': 'keyword_argument', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '257', 'type': 'dictionary_splat', 'children': ['258']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'kwargs'} | A generic pump which utilises the appropriate pump. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '16']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'iter_cognates'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11', '14']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '7', 'type': 'string', 'children': [], 'value': "'Segments'"}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '10', 'type': 'string', 'children': [], 'value': "'turchin'"}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'threshold'}; {'id': '13', 'type': 'float', 'children': [], 'value': '0.5'}; {'id': '14', 'type': 'dictionary_splat_pattern', 'children': ['15']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '16', 'type': 'block', 'children': ['17', '121']}; {'id': '17', 'type': 'if_statement', 'children': ['18', '21']}; {'id': '18', 'type': 'comparison_operator', 'children': ['19', '20'], 'value': '=='}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '20', 'type': 'string', 'children': [], 'value': "'turchin'"}; {'id': '21', 'type': 'block', 'children': ['22']}; {'id': '22', 'type': 'for_statement', 'children': ['23', '24', '29']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '24', 'type': 'subscript', 'children': ['25', '28']}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'objects'}; {'id': '28', 'type': 'string', 'children': [], 'value': "'FormTable'"}; {'id': '29', 'type': 'block', 'children': ['30', '47', '61', '82', '95']}; {'id': '30', 'type': 'expression_statement', 'children': ['31']}; {'id': '31', 'type': 'assignment', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'sounds'}; {'id': '33', 'type': 'call', 'children': ['34', '37']}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'string', 'children': [], 'value': "''"}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '37', 'type': 'argument_list', 'children': ['38']}; {'id': '38', 'type': 'call', 'children': ['39', '42']}; {'id': '39', 'type': 'attribute', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'lingpy'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'tokens2class'}; {'id': '42', 'type': 'argument_list', 'children': ['43', '46']}; {'id': '43', 'type': 'subscript', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '46', 'type': 'string', 'children': [], 'value': "'dolgo'"}; {'id': '47', 'type': 'if_statement', 'children': ['48', '54']}; {'id': '48', 'type': 'call', 'children': ['49', '52']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'sounds'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '52', 'type': 'argument_list', 'children': ['53']}; {'id': '53', 'type': 'string', 'children': [], 'value': "'V'"}; {'id': '54', 'type': 'block', 'children': ['55']}; {'id': '55', 'type': 'expression_statement', 'children': ['56']}; {'id': '56', 'type': 'assignment', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'sounds'}; {'id': '58', 'type': 'binary_operator', 'children': ['59', '60'], 'value': '+'}; {'id': '59', 'type': 'string', 'children': [], 'value': "'H'"}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'sounds'}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'sounds'}; {'id': '64', 'type': 'call', 'children': ['65', '68']}; {'id': '65', 'type': 'attribute', 'children': ['66', '67']}; {'id': '66', 'type': 'string', 'children': [], 'value': "'-'"}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '68', 'type': 'argument_list', 'children': ['69']}; {'id': '69', 'type': 'subscript', 'children': ['70', '79']}; {'id': '70', 'type': 'list_comprehension', 'children': ['71', '72', '75']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '72', 'type': 'for_in_clause', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'sounds'}; {'id': '75', 'type': 'if_clause', 'children': ['76']}; {'id': '76', 'type': 'comparison_operator', 'children': ['77', '78'], 'value': '!='}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '78', 'type': 'string', 'children': [], 'value': "'V'"}; {'id': '79', 'type': 'slice', 'children': ['80', '81']}; {'id': '80', 'type': 'colon', 'children': []}; {'id': '81', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'assignment', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'cogid'}; {'id': '85', 'type': 'binary_operator', 'children': ['86', '94'], 'value': '+'}; {'id': '86', 'type': 'binary_operator', 'children': ['87', '93'], 'value': '+'}; {'id': '87', 'type': 'call', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'slug'}; {'id': '89', 'type': 'argument_list', 'children': ['90']}; {'id': '90', 'type': 'subscript', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '92', 'type': 'string', 'children': [], 'value': "'Parameter_ID'"}; {'id': '93', 'type': 'string', 'children': [], 'value': "'-'"}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'sounds'}; {'id': '95', 'type': 'if_statement', 'children': ['96', '99']}; {'id': '96', 'type': 'comparison_operator', 'children': ['97', '98'], 'value': 'not'}; {'id': '97', 'type': 'string', 'children': [], 'value': "'0'"}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'sounds'}; {'id': '99', 'type': 'block', 'children': ['100']}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'yield', 'children': ['102']}; {'id': '102', 'type': 'call', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '104', 'type': 'argument_list', 'children': ['105', '110', '115', '118']}; {'id': '105', 'type': 'keyword_argument', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'Form_ID'}; {'id': '107', 'type': 'subscript', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '109', 'type': 'string', 'children': [], 'value': "'ID'"}; {'id': '110', 'type': 'keyword_argument', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'Form'}; {'id': '112', 'type': 'subscript', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '114', 'type': 'string', 'children': [], 'value': "'Value'"}; {'id': '115', 'type': 'keyword_argument', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'Cognateset_ID'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'cogid'}; {'id': '118', 'type': 'keyword_argument', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'Cognate_Detection_Method'}; {'id': '120', 'type': 'string', 'children': [], 'value': "'CMM'"}; {'id': '121', 'type': 'if_statement', 'children': ['122', '127']}; {'id': '122', 'type': 'comparison_operator', 'children': ['123', '124'], 'value': 'in'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '124', 'type': 'list', 'children': ['125', '126'], 'value': "['sca', 'lexstat']"}; {'id': '125', 'type': 'string', 'children': [], 'value': "'sca'"}; {'id': '126', 'type': 'string', 'children': [], 'value': "'lexstat'"}; {'id': '127', 'type': 'block', 'children': ['128', '135', '148', '163']}; {'id': '128', 'type': 'expression_statement', 'children': ['129']}; {'id': '129', 'type': 'assignment', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'lex'}; {'id': '131', 'type': 'call', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': '_cldf2lexstat'}; {'id': '133', 'type': 'argument_list', 'children': ['134']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '135', 'type': 'if_statement', 'children': ['136', '139']}; {'id': '136', 'type': 'comparison_operator', 'children': ['137', '138'], 'value': '=='}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '138', 'type': 'string', 'children': [], 'value': "'lexstat'"}; {'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': 'lex'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'get_scorer'}; {'id': '145', 'type': 'argument_list', 'children': ['146']}; {'id': '146', 'type': 'dictionary_splat', 'children': ['147']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'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': 'lex'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'cluster'}; {'id': '153', 'type': 'argument_list', 'children': ['154', '157', '160']}; {'id': '154', 'type': 'keyword_argument', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '157', 'type': 'keyword_argument', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'threshold'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'threshold'}; {'id': '160', 'type': 'keyword_argument', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'ref'}; {'id': '162', 'type': 'string', 'children': [], 'value': "'cogid'"}; {'id': '163', 'type': 'for_statement', 'children': ['164', '165', '166']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'lex'}; {'id': '166', 'type': 'block', 'children': ['167']}; {'id': '167', 'type': 'expression_statement', 'children': ['168']}; {'id': '168', 'type': 'yield', 'children': ['169']}; {'id': '169', 'type': 'call', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'Cognate'}; {'id': '171', 'type': 'argument_list', 'children': ['172', '178', '184', '190']}; {'id': '172', 'type': 'keyword_argument', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'Form_ID'}; {'id': '174', 'type': 'subscript', 'children': ['175', '176', '177']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'lex'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '177', 'type': 'string', 'children': [], 'value': "'lid'"}; {'id': '178', 'type': 'keyword_argument', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'Form'}; {'id': '180', 'type': 'subscript', 'children': ['181', '182', '183']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'lex'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '183', 'type': 'string', 'children': [], 'value': "'value'"}; {'id': '184', 'type': 'keyword_argument', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'Cognateset_ID'}; {'id': '186', 'type': 'subscript', 'children': ['187', '188', '189']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'lex'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '189', 'type': 'string', 'children': [], 'value': "'cogid'"}; {'id': '190', 'type': 'keyword_argument', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'Cognate_Detection_Method'}; {'id': '192', 'type': 'binary_operator', 'children': ['193', '194'], 'value': '+'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '194', 'type': 'call', 'children': ['195', '198']}; {'id': '195', 'type': 'attribute', 'children': ['196', '197']}; {'id': '196', 'type': 'string', 'children': [], 'value': "'-t{0:.2f}'"}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '198', 'type': 'argument_list', 'children': ['199']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'threshold'} | Compute cognates automatically for a given dataset. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'pmt_angles'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '45']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '12']}; {'id': '7', 'type': 'comparison_operator', 'children': ['8', '11'], 'value': '=='}; {'id': '8', 'type': 'attribute', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': '_pmt_angles'}; {'id': '11', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '12', 'type': 'block', 'children': ['13', '33']}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'assignment', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'mask'}; {'id': '16', 'type': 'binary_operator', 'children': ['17', '25'], 'value': '&'}; {'id': '17', 'type': '()', 'children': ['18']}; {'id': '18', 'type': 'comparison_operator', 'children': ['19', '24'], 'value': '=='}; {'id': '19', 'type': 'attribute', 'children': ['20', '23']}; {'id': '20', 'type': 'attribute', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'pmts'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'du'}; {'id': '24', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '25', 'type': '()', 'children': ['26']}; {'id': '26', 'type': 'comparison_operator', 'children': ['27', '32'], 'value': '=='}; {'id': '27', 'type': 'attribute', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'pmts'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'floor'}; {'id': '32', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'assignment', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': '_pmt_angles'}; {'id': '38', 'type': 'subscript', 'children': ['39', '44']}; {'id': '39', 'type': 'attribute', 'children': ['40', '43']}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'pmts'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'dir'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'mask'}; {'id': '45', 'type': 'return_statement', 'children': ['46']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': '_pmt_angles'} | A list of PMT directions sorted by PMT channel, on DU-1, floor-1 |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_get_point'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'profile'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'point'}; {'id': '7', 'type': 'block', 'children': ['8', '22']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'cur_points_z'}; {'id': '11', 'type': 'list_comprehension', 'children': ['12', '17']}; {'id': '12', 'type': 'attribute', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'location'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'z'}; {'id': '17', 'type': 'for_in_clause', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '19', 'type': 'attribute', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'profile'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'elements'}; {'id': '22', 'type': 'try_statement', 'children': ['23', '41']}; {'id': '23', 'type': 'block', 'children': ['24', '35']}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'assignment', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'cur_idx'}; {'id': '27', 'type': 'call', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'cur_points_z'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '31', 'type': 'argument_list', 'children': ['32']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'point'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'z'}; {'id': '35', 'type': 'return_statement', 'children': ['36']}; {'id': '36', 'type': 'subscript', 'children': ['37', '40']}; {'id': '37', 'type': 'attribute', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'profile'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'elements'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'cur_idx'}; {'id': '41', 'type': 'except_clause', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '43', 'type': 'block', 'children': ['44', '54', '60', '69', '77', '87']}; {'id': '44', 'type': 'expression_statement', 'children': ['45']}; {'id': '45', 'type': 'assignment', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'new_idx'}; {'id': '47', 'type': 'call', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'bisect_left'}; {'id': '49', 'type': 'argument_list', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'cur_points_z'}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'point'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'z'}; {'id': '54', 'type': 'expression_statement', 'children': ['55']}; {'id': '55', 'type': 'assignment', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'new_point'}; {'id': '57', 'type': 'call', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'Point'}; {'id': '59', 'type': 'argument_list', 'children': []}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '65']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'new_point'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'location'}; {'id': '65', 'type': 'call', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'sPoint'}; {'id': '67', 'type': 'argument_list', 'children': ['68']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'point'}; {'id': '69', 'type': 'expression_statement', 'children': ['70']}; {'id': '70', 'type': 'assignment', 'children': ['71', '74']}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'new_point'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '74', 'type': 'attribute', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'profile'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'call', 'children': ['79', '84']}; {'id': '79', 'type': 'attribute', 'children': ['80', '83']}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'profile'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'elements'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'insert'}; {'id': '84', 'type': 'argument_list', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'new_idx'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'new_point'}; {'id': '87', 'type': 'return_statement', 'children': ['88']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'new_point'} | Finds the given point in the profile, or adds it in sorted z order. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'metadata_sorter'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '6', 'type': 'block', 'children': ['7', '14']}; {'id': '7', 'type': 'if_statement', 'children': ['8', '11']}; {'id': '8', 'type': 'comparison_operator', 'children': ['9', '10'], 'value': '=='}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '11', 'type': 'block', 'children': ['12']}; {'id': '12', 'type': 'return_statement', 'children': ['13']}; {'id': '13', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '14', 'type': 'if_statement', 'children': ['15', '22', '41', '49', '56']}; {'id': '15', 'type': 'boolean_operator', 'children': ['16', '19'], 'value': 'and'}; {'id': '16', 'type': 'comparison_operator', 'children': ['17', '18'], 'value': 'in'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'METADATA_SORTER_FIRST'}; {'id': '19', 'type': 'comparison_operator', 'children': ['20', '21'], 'value': 'in'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'METADATA_SORTER_FIRST'}; {'id': '22', 'type': 'block', 'children': ['23']}; {'id': '23', 'type': 'return_statement', 'children': ['24']}; {'id': '24', 'type': 'conditional_expression', 'children': ['25', '27', '40'], 'value': 'if'}; {'id': '25', 'type': 'unary_operator', 'children': ['26'], 'value': '-'}; {'id': '26', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '27', 'type': 'comparison_operator', 'children': ['28', '34'], 'value': '<'}; {'id': '28', 'type': 'call', 'children': ['29', '32']}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'METADATA_SORTER_FIRST'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '34', 'type': 'call', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'METADATA_SORTER_FIRST'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '40', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '41', 'type': 'elif_clause', 'children': ['42', '45']}; {'id': '42', 'type': 'comparison_operator', 'children': ['43', '44'], 'value': 'in'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'METADATA_SORTER_FIRST'}; {'id': '45', 'type': 'block', 'children': ['46']}; {'id': '46', 'type': 'return_statement', 'children': ['47']}; {'id': '47', 'type': 'unary_operator', 'children': ['48'], 'value': '-'}; {'id': '48', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '49', 'type': 'elif_clause', 'children': ['50', '53']}; {'id': '50', 'type': 'comparison_operator', 'children': ['51', '52'], 'value': 'in'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'METADATA_SORTER_FIRST'}; {'id': '53', 'type': 'block', 'children': ['54']}; {'id': '54', 'type': 'return_statement', 'children': ['55']}; {'id': '55', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '56', 'type': 'else_clause', 'children': ['57']}; {'id': '57', 'type': 'block', 'children': ['58']}; {'id': '58', 'type': 'if_statement', 'children': ['59', '72', '87', '97', '108']}; {'id': '59', 'type': 'boolean_operator', 'children': ['60', '66'], 'value': 'and'}; {'id': '60', 'type': 'call', 'children': ['61', '64']}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '64', 'type': 'argument_list', 'children': ['65']}; {'id': '65', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '66', 'type': 'call', 'children': ['67', '70']}; {'id': '67', 'type': 'attribute', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '70', 'type': 'argument_list', 'children': ['71']}; {'id': '71', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '72', 'type': 'block', 'children': ['73']}; {'id': '73', 'type': 'return_statement', 'children': ['74']}; {'id': '74', 'type': 'call', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'cmp'}; {'id': '76', 'type': 'argument_list', 'children': ['77', '82']}; {'id': '77', 'type': 'subscript', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '79', 'type': 'slice', 'children': ['80', '81']}; {'id': '80', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '81', 'type': 'colon', 'children': []}; {'id': '82', 'type': 'subscript', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '84', 'type': 'slice', 'children': ['85', '86']}; {'id': '85', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '86', 'type': 'colon', 'children': []}; {'id': '87', 'type': 'elif_clause', 'children': ['88', '94']}; {'id': '88', 'type': 'call', 'children': ['89', '92']}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '92', 'type': 'argument_list', 'children': ['93']}; {'id': '93', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '94', 'type': 'block', 'children': ['95']}; {'id': '95', 'type': 'return_statement', 'children': ['96']}; {'id': '96', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '97', 'type': 'elif_clause', 'children': ['98', '104']}; {'id': '98', 'type': 'call', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '102', 'type': 'argument_list', 'children': ['103']}; {'id': '103', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '104', 'type': 'block', 'children': ['105']}; {'id': '105', 'type': 'return_statement', 'children': ['106']}; {'id': '106', 'type': 'unary_operator', 'children': ['107'], 'value': '-'}; {'id': '107', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '108', 'type': 'else_clause', 'children': ['109']}; {'id': '109', 'type': 'block', 'children': ['110']}; {'id': '110', 'type': 'return_statement', 'children': ['111']}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'cmp'}; {'id': '113', 'type': 'argument_list', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'y'} | Sort metadata keys by priority. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_cache_offsets'}; {'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': 'up_to_index'}; {'id': '7', 'type': 'None', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '10', 'type': 'True', 'children': []}; {'id': '11', 'type': 'block', 'children': ['12', '74', '153', '161', '171']}; {'id': '12', 'type': 'if_statement', 'children': ['13', '15', '57']}; {'id': '13', 'type': 'not_operator', 'children': ['14']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'up_to_index'}; {'id': '15', 'type': 'block', 'children': ['16', '26', '36', '42']}; {'id': '16', 'type': 'if_statement', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'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': 'self'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '24', 'type': 'argument_list', 'children': ['25']}; {'id': '25', 'type': 'string', 'children': [], 'value': '"Caching event file offsets, this may take a bit."'}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'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': 'blob_file'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'seek'}; {'id': '33', 'type': 'argument_list', 'children': ['34', '35']}; {'id': '34', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '35', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'assignment', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'event_offsets'}; {'id': '41', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '42', 'type': 'if_statement', 'children': ['43', '47']}; {'id': '43', 'type': 'not_operator', 'children': ['44']}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'raw_header'}; {'id': '47', 'type': 'block', 'children': ['48']}; {'id': '48', 'type': 'expression_statement', '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': 'event_offsets'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '55', 'type': 'argument_list', 'children': ['56']}; {'id': '56', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '57', 'type': 'else_clause', 'children': ['58']}; {'id': '58', 'type': 'block', 'children': ['59']}; {'id': '59', 'type': 'expression_statement', 'children': ['60']}; {'id': '60', 'type': 'call', 'children': ['61', '66']}; {'id': '61', 'type': 'attribute', 'children': ['62', '65']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'blob_file'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'seek'}; {'id': '66', 'type': 'argument_list', 'children': ['67', '73']}; {'id': '67', 'type': 'subscript', 'children': ['68', '71']}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'event_offsets'}; {'id': '71', 'type': 'unary_operator', 'children': ['72'], 'value': '-'}; {'id': '72', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '73', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '74', 'type': 'for_statement', 'children': ['75', '76', '85']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '76', 'type': 'call', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'iter'}; {'id': '78', 'type': 'argument_list', 'children': ['79', '84']}; {'id': '79', 'type': 'attribute', 'children': ['80', '83']}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'blob_file'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'readline'}; {'id': '84', 'type': 'string', 'children': [], 'value': "''"}; {'id': '85', 'type': 'block', 'children': ['86', '93', '138']}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'assignment', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '89', 'type': 'call', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'try_decode_string'}; {'id': '91', 'type': 'argument_list', 'children': ['92']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '93', 'type': 'if_statement', 'children': ['94', '100']}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'string', 'children': [], 'value': "'end_event:'"}; {'id': '100', 'type': 'block', 'children': ['101', '107']}; {'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': 'self'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': '_record_offset'}; {'id': '106', 'type': 'argument_list', 'children': []}; {'id': '107', 'type': 'if_statement', 'children': ['108', '118']}; {'id': '108', 'type': 'comparison_operator', 'children': ['109', '117'], 'value': '=='}; {'id': '109', 'type': 'binary_operator', 'children': ['110', '116'], 'value': '%'}; {'id': '110', 'type': 'call', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'id': '113', 'type': 'attribute', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'event_offsets'}; {'id': '116', 'type': 'integer', 'children': [], 'value': '100'}; {'id': '117', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '118', 'type': 'block', 'children': ['119', '130']}; {'id': '119', 'type': 'if_statement', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '121', 'type': 'block', 'children': ['122']}; {'id': '122', 'type': 'expression_statement', 'children': ['123']}; {'id': '123', 'type': 'call', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '125', 'type': 'argument_list', 'children': ['126', '127']}; {'id': '126', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '127', 'type': 'keyword_argument', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '129', 'type': 'string', 'children': [], 'value': "''"}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'call', 'children': ['132', '137']}; {'id': '132', 'type': 'attribute', 'children': ['133', '136']}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'stdout'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'flush'}; {'id': '137', 'type': 'argument_list', 'children': []}; {'id': '138', 'type': 'if_statement', 'children': ['139', '151']}; {'id': '139', 'type': 'boolean_operator', 'children': ['140', '141'], 'value': 'and'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'up_to_index'}; {'id': '141', 'type': 'comparison_operator', 'children': ['142', '148'], 'value': '>='}; {'id': '142', 'type': 'call', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'event_offsets'}; {'id': '148', 'type': 'binary_operator', 'children': ['149', '150'], 'value': '+'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'up_to_index'}; {'id': '150', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '151', 'type': 'block', 'children': ['152']}; {'id': '152', 'type': 'return_statement', 'children': []}; {'id': '153', 'type': 'expression_statement', 'children': ['154']}; {'id': '154', 'type': 'call', 'children': ['155', '160']}; {'id': '155', 'type': 'attribute', 'children': ['156', '159']}; {'id': '156', 'type': 'attribute', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'event_offsets'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '160', 'type': 'argument_list', 'children': []}; {'id': '161', 'type': 'if_statement', 'children': ['162', '164']}; {'id': '162', 'type': 'not_operator', 'children': ['163']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'up_to_index'}; {'id': '164', 'type': 'block', 'children': ['165']}; {'id': '165', 'type': 'expression_statement', 'children': ['166']}; {'id': '166', 'type': 'assignment', 'children': ['167', '170']}; {'id': '167', 'type': 'attribute', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'whole_file_cached'}; {'id': '170', 'type': 'True', 'children': []}; {'id': '171', 'type': 'expression_statement', 'children': ['172']}; {'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': 'print'}; {'id': '176', 'type': 'argument_list', 'children': ['177']}; {'id': '177', 'type': 'call', 'children': ['178', '181']}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'string', 'children': [], 'value': '"\\n{0} events indexed."'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '181', 'type': 'argument_list', 'children': ['182']}; {'id': '182', 'type': 'call', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'attribute', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'event_offsets'} | Cache all event offsets. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'upload_runsummary'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'csv_filename'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'dryrun'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'block', 'children': ['9', '19', '43', '75', '84', '119', '125', '141', '157', '178', '183', '203', '213', '230', '235', '245', '286', '298', '309', '314', '335']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'call', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '12', 'type': 'argument_list', 'children': ['13']}; {'id': '13', 'type': 'call', 'children': ['14', '17']}; {'id': '14', 'type': 'attribute', 'children': ['15', '16']}; {'id': '15', 'type': 'string', 'children': [], 'value': '"Checking \'{}\' for consistency."'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '17', 'type': 'argument_list', 'children': ['18']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'csv_filename'}; {'id': '19', 'type': 'if_statement', 'children': ['20', '29']}; {'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': 'os'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '27', 'type': 'argument_list', 'children': ['28']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'csv_filename'}; {'id': '29', 'type': 'block', 'children': ['30', '42']}; {'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': 'log'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '35', 'type': 'argument_list', 'children': ['36']}; {'id': '36', 'type': 'call', 'children': ['37', '40']}; {'id': '37', 'type': 'attribute', 'children': ['38', '39']}; {'id': '38', 'type': 'string', 'children': [], 'value': '"{} -> file not found."'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '40', 'type': 'argument_list', 'children': ['41']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'csv_filename'}; {'id': '42', 'type': 'return_statement', 'children': []}; {'id': '43', 'type': 'try_statement', 'children': ['44', '57']}; {'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': 'df'}; {'id': '48', 'type': 'call', 'children': ['49', '52']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'pd'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'read_csv'}; {'id': '52', 'type': 'argument_list', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'csv_filename'}; {'id': '54', 'type': 'keyword_argument', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'sep'}; {'id': '56', 'type': 'string', 'children': [], 'value': "'\\t'"}; {'id': '57', 'type': 'except_clause', 'children': ['58', '66']}; {'id': '58', 'type': 'as_pattern', 'children': ['59', '64']}; {'id': '59', 'type': 'attribute', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'pd'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'EmptyDataError'}; {'id': '64', 'type': 'as_pattern_target', 'children': ['65']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '66', 'type': 'block', 'children': ['67', '74']}; {'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': 'log'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '74', 'type': 'return_statement', 'children': []}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'cols'}; {'id': '78', 'type': 'call', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'columns'}; {'id': '84', 'type': 'if_statement', 'children': ['85', '92']}; {'id': '85', 'type': 'not_operator', 'children': ['86']}; {'id': '86', 'type': 'call', 'children': ['87', '90']}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'REQUIRED_COLUMNS'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'issubset'}; {'id': '90', 'type': 'argument_list', 'children': ['91']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'cols'}; {'id': '92', 'type': 'block', 'children': ['93', '118']}; {'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': 'log'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'call', 'children': ['100', '103']}; {'id': '100', 'type': 'attribute', 'children': ['101', '102']}; {'id': '101', 'type': 'string', 'children': [], 'value': '"Missing columns: {}."'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '103', 'type': 'argument_list', 'children': ['104']}; {'id': '104', 'type': 'call', 'children': ['105', '108']}; {'id': '105', 'type': 'attribute', 'children': ['106', '107']}; {'id': '106', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '108', 'type': 'generator_expression', 'children': ['109', '113']}; {'id': '109', 'type': 'call', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '111', 'type': 'argument_list', 'children': ['112']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '113', 'type': 'for_in_clause', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '115', 'type': 'binary_operator', 'children': ['116', '117'], 'value': '-'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'REQUIRED_COLUMNS'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'cols'}; {'id': '118', 'type': 'return_statement', 'children': []}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '122', 'type': 'binary_operator', 'children': ['123', '124'], 'value': '-'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'cols'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'REQUIRED_COLUMNS'}; {'id': '125', 'type': 'if_statement', 'children': ['126', '132']}; {'id': '126', 'type': 'comparison_operator', 'children': ['127', '131'], 'value': '<'}; {'id': '127', 'type': 'call', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '131', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '132', 'type': 'block', 'children': ['133', '140']}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'call', 'children': ['135', '138']}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '138', 'type': 'argument_list', 'children': ['139']}; {'id': '139', 'type': 'string', 'children': [], 'value': '"No parameter columns found."'}; {'id': '140', 'type': 'return_statement', 'children': []}; {'id': '141', 'type': 'if_statement', 'children': ['142', '148']}; {'id': '142', 'type': 'comparison_operator', 'children': ['143', '147'], 'value': '=='}; {'id': '143', 'type': 'call', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '145', 'type': 'argument_list', 'children': ['146']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '147', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '148', 'type': 'block', 'children': ['149', '156']}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'call', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '154', 'type': 'argument_list', 'children': ['155']}; {'id': '155', 'type': 'string', 'children': [], 'value': '"Empty dataset."'}; {'id': '156', 'type': 'return_statement', 'children': []}; {'id': '157', 'type': 'expression_statement', 'children': ['158']}; {'id': '158', 'type': 'call', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '160', 'type': 'argument_list', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '165']}; {'id': '162', 'type': 'attribute', 'children': ['163', '164']}; {'id': '163', 'type': 'string', 'children': [], 'value': '"Found data for parameters: {}."'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'call', 'children': ['167', '170']}; {'id': '167', 'type': 'attribute', 'children': ['168', '169']}; {'id': '168', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '170', 'type': 'generator_expression', 'children': ['171', '175']}; {'id': '171', 'type': 'call', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '173', 'type': 'argument_list', 'children': ['174']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '175', 'type': 'for_in_clause', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '178', 'type': 'expression_statement', 'children': ['179']}; {'id': '179', 'type': 'call', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '181', 'type': 'argument_list', 'children': ['182']}; {'id': '182', 'type': 'string', 'children': [], 'value': '"Converting CSV data into JSON"'}; {'id': '183', 'type': 'if_statement', 'children': ['184', '185', '197']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'dryrun'}; {'id': '185', 'type': 'block', 'children': ['186', '193']}; {'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': 'log'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'warn'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'string', 'children': [], 'value': '"Dryrun: adding \'TEST_\' prefix to parameter names"'}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'assignment', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '196', 'type': 'string', 'children': [], 'value': '"TEST_"'}; {'id': '197', 'type': 'else_clause', 'children': ['198']}; {'id': '198', 'type': 'block', 'children': ['199']}; {'id': '199', 'type': 'expression_statement', 'children': ['200']}; {'id': '200', 'type': 'assignment', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '202', 'type': 'string', 'children': [], 'value': '""'}; {'id': '203', 'type': 'expression_statement', 'children': ['204']}; {'id': '204', 'type': 'assignment', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '206', 'type': 'call', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'convert_runsummary_to_json'}; {'id': '208', 'type': 'argument_list', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '210', 'type': 'keyword_argument', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '213', 'type': 'expression_statement', 'children': ['214']}; {'id': '214', 'type': 'call', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '216', 'type': 'argument_list', 'children': ['217']}; {'id': '217', 'type': 'call', 'children': ['218', '221']}; {'id': '218', 'type': 'attribute', 'children': ['219', '220']}; {'id': '219', 'type': 'string', 'children': [], 'value': '"We have {:.3f} MB to upload."'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '221', 'type': 'argument_list', 'children': ['222']}; {'id': '222', 'type': 'binary_operator', 'children': ['223', '227'], 'value': '/'}; {'id': '223', 'type': 'call', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '225', 'type': 'argument_list', 'children': ['226']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '227', 'type': 'binary_operator', 'children': ['228', '229'], 'value': '**'}; {'id': '228', 'type': 'integer', 'children': [], 'value': '1024'}; {'id': '229', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'call', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '233', 'type': 'argument_list', 'children': ['234']}; {'id': '234', 'type': 'string', 'children': [], 'value': '"Requesting database session."'}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'assignment', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'db'}; {'id': '238', 'type': 'call', 'children': ['239', '244']}; {'id': '239', 'type': 'attribute', 'children': ['240', '243']}; {'id': '240', 'type': 'attribute', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'kp'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'db'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'DBManager'}; {'id': '244', 'type': 'argument_list', 'children': []}; {'id': '245', 'type': 'if_statement', 'children': ['246', '253', '258']}; {'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': 'kp'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'db'}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'we_are_in_lyon'}; {'id': '252', 'type': 'argument_list', 'children': []}; {'id': '253', 'type': 'block', 'children': ['254']}; {'id': '254', 'type': 'expression_statement', 'children': ['255']}; {'id': '255', 'type': 'assignment', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'session_cookie'}; {'id': '257', 'type': 'string', 'children': [], 'value': '"sid=_kmcprod_134.158_lyo7783844001343100343mcprod1223user"'}; {'id': '258', 'type': 'else_clause', 'children': ['259']}; {'id': '259', 'type': 'block', 'children': ['260', '276']}; {'id': '260', 'type': 'expression_statement', 'children': ['261']}; {'id': '261', 'type': 'assignment', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'session_cookie'}; {'id': '263', 'type': 'call', 'children': ['264', '273']}; {'id': '264', 'type': 'attribute', 'children': ['265', '272']}; {'id': '265', 'type': 'call', 'children': ['266', '271']}; {'id': '266', 'type': 'attribute', 'children': ['267', '270']}; {'id': '267', 'type': 'attribute', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'kp'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'Config'}; {'id': '271', 'type': 'argument_list', 'children': []}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '273', 'type': 'argument_list', 'children': ['274', '275']}; {'id': '274', 'type': 'string', 'children': [], 'value': "'DB'"}; {'id': '275', 'type': 'string', 'children': [], 'value': "'session_cookie'"}; {'id': '276', 'type': 'if_statement', 'children': ['277', '280']}; {'id': '277', 'type': 'comparison_operator', 'children': ['278', '279'], 'value': 'is'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'session_cookie'}; {'id': '279', 'type': 'None', 'children': []}; {'id': '280', 'type': 'block', 'children': ['281']}; {'id': '281', 'type': 'raise_statement', 'children': ['282']}; {'id': '282', 'type': 'call', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'SystemExit'}; {'id': '284', 'type': 'argument_list', 'children': ['285']}; {'id': '285', 'type': 'string', 'children': [], 'value': '"Could not restore DB session."'}; {'id': '286', 'type': 'expression_statement', 'children': ['287']}; {'id': '287', 'type': 'call', 'children': ['288', '291']}; {'id': '288', 'type': 'attribute', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '291', 'type': 'argument_list', 'children': ['292']}; {'id': '292', 'type': 'call', 'children': ['293', '296']}; {'id': '293', 'type': 'attribute', 'children': ['294', '295']}; {'id': '294', 'type': 'string', 'children': [], 'value': '"Using the session cookie: {}"'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '296', 'type': 'argument_list', 'children': ['297']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'session_cookie'}; {'id': '298', 'type': 'expression_statement', 'children': ['299']}; {'id': '299', 'type': 'assignment', 'children': ['300', '303']}; {'id': '300', 'type': 'pattern_list', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'cookie_key'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'sid'}; {'id': '303', 'type': 'call', 'children': ['304', '307']}; {'id': '304', 'type': 'attribute', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'session_cookie'}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '307', 'type': 'argument_list', 'children': ['308']}; {'id': '308', 'type': 'string', 'children': [], 'value': "'='"}; {'id': '309', 'type': 'expression_statement', 'children': ['310']}; {'id': '310', 'type': 'call', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '312', 'type': 'argument_list', 'children': ['313']}; {'id': '313', 'type': 'string', 'children': [], 'value': '"Uploading the data to the database."'}; {'id': '314', 'type': 'expression_statement', 'children': ['315']}; {'id': '315', 'type': 'assignment', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '317', 'type': 'call', 'children': ['318', '321']}; {'id': '318', 'type': 'attribute', 'children': ['319', '320']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'post'}; {'id': '321', 'type': 'argument_list', 'children': ['322', '323', '329']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'RUNSUMMARY_URL'}; {'id': '323', 'type': 'keyword_argument', 'children': ['324', '325']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'cookies'}; {'id': '325', 'type': 'dictionary', 'children': ['326']}; {'id': '326', 'type': 'pair', 'children': ['327', '328']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'cookie_key'}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'sid'}; {'id': '329', 'type': 'keyword_argument', 'children': ['330', '331']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '331', 'type': 'dictionary', 'children': ['332']}; {'id': '332', 'type': 'pair', 'children': ['333', '334']}; {'id': '333', 'type': 'string', 'children': [], 'value': "'datafile'"}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '335', 'type': 'if_statement', 'children': ['336', '341', '414']}; {'id': '336', 'type': 'comparison_operator', 'children': ['337', '340'], 'value': '=='}; {'id': '337', 'type': 'attribute', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'status_code'}; {'id': '340', 'type': 'integer', 'children': [], 'value': '200'}; {'id': '341', 'type': 'block', 'children': ['342', '356', '361', '372', '393']}; {'id': '342', 'type': 'expression_statement', 'children': ['343']}; {'id': '343', 'type': 'call', 'children': ['344', '347']}; {'id': '344', 'type': 'attribute', 'children': ['345', '346']}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '347', 'type': 'argument_list', 'children': ['348']}; {'id': '348', 'type': 'call', 'children': ['349', '352']}; {'id': '349', 'type': 'attribute', 'children': ['350', '351']}; {'id': '350', 'type': 'string', 'children': [], 'value': '"POST request status code: {}"'}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '352', 'type': 'argument_list', 'children': ['353']}; {'id': '353', 'type': 'attribute', 'children': ['354', '355']}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'status_code'}; {'id': '356', 'type': 'expression_statement', 'children': ['357']}; {'id': '357', 'type': 'call', 'children': ['358', '359']}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '359', 'type': 'argument_list', 'children': ['360']}; {'id': '360', 'type': 'string', 'children': [], 'value': '"Database response:"'}; {'id': '361', 'type': 'expression_statement', 'children': ['362']}; {'id': '362', 'type': 'assignment', 'children': ['363', '364']}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'db_answer'}; {'id': '364', 'type': 'call', 'children': ['365', '368']}; {'id': '365', 'type': 'attribute', 'children': ['366', '367']}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'json'}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'loads'}; {'id': '368', 'type': 'argument_list', 'children': ['369']}; {'id': '369', 'type': 'attribute', 'children': ['370', '371']}; {'id': '370', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '372', 'type': 'for_statement', 'children': ['373', '376', '381']}; {'id': '373', 'type': 'pattern_list', 'children': ['374', '375']}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '375', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '376', 'type': 'call', 'children': ['377', '380']}; {'id': '377', 'type': 'attribute', 'children': ['378', '379']}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'db_answer'}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '380', 'type': 'argument_list', 'children': []}; {'id': '381', 'type': 'block', 'children': ['382']}; {'id': '382', 'type': 'expression_statement', 'children': ['383']}; {'id': '383', 'type': 'call', 'children': ['384', '385']}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '385', 'type': 'argument_list', 'children': ['386']}; {'id': '386', 'type': 'call', 'children': ['387', '390']}; {'id': '387', 'type': 'attribute', 'children': ['388', '389']}; {'id': '388', 'type': 'string', 'children': [], 'value': '" -> {}: {}"'}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '390', 'type': 'argument_list', 'children': ['391', '392']}; {'id': '391', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '392', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '393', 'type': 'if_statement', 'children': ['394', '399', '405']}; {'id': '394', 'type': 'comparison_operator', 'children': ['395', '398'], 'value': '=='}; {'id': '395', 'type': 'subscript', 'children': ['396', '397']}; {'id': '396', 'type': 'identifier', 'children': [], 'value': 'db_answer'}; {'id': '397', 'type': 'string', 'children': [], 'value': "'Result'"}; {'id': '398', 'type': 'string', 'children': [], 'value': "'OK'"}; {'id': '399', 'type': 'block', 'children': ['400']}; {'id': '400', 'type': 'expression_statement', 'children': ['401']}; {'id': '401', 'type': 'call', 'children': ['402', '403']}; {'id': '402', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '403', 'type': 'argument_list', 'children': ['404']}; {'id': '404', 'type': 'string', 'children': [], 'value': '"Upload successful."'}; {'id': '405', 'type': 'else_clause', 'children': ['406']}; {'id': '406', 'type': 'block', 'children': ['407']}; {'id': '407', 'type': 'expression_statement', 'children': ['408']}; {'id': '408', 'type': 'call', 'children': ['409', '412']}; {'id': '409', 'type': 'attribute', 'children': ['410', '411']}; {'id': '410', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '412', 'type': 'argument_list', 'children': ['413']}; {'id': '413', 'type': 'string', 'children': [], 'value': '"Something went wrong."'}; {'id': '414', 'type': 'else_clause', 'children': ['415']}; {'id': '415', 'type': 'block', 'children': ['416', '430', '437']}; {'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': 'log'}; {'id': '420', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '421', 'type': 'argument_list', 'children': ['422']}; {'id': '422', 'type': 'call', 'children': ['423', '426']}; {'id': '423', 'type': 'attribute', 'children': ['424', '425']}; {'id': '424', 'type': 'string', 'children': [], 'value': '"POST request status code: {}"'}; {'id': '425', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '426', 'type': 'argument_list', 'children': ['427']}; {'id': '427', 'type': 'attribute', 'children': ['428', '429']}; {'id': '428', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '429', 'type': 'identifier', 'children': [], 'value': 'status_code'}; {'id': '430', 'type': 'expression_statement', 'children': ['431']}; {'id': '431', 'type': 'call', 'children': ['432', '435']}; {'id': '432', 'type': 'attribute', 'children': ['433', '434']}; {'id': '433', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '434', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '435', 'type': 'argument_list', 'children': ['436']}; {'id': '436', 'type': 'string', 'children': [], 'value': '"Something went wrong..."'}; {'id': '437', 'type': 'return_statement', 'children': []} | Reads the CSV file and uploads its contents to the runsummary table |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_movie'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'tmdb_id'}; {'id': '5', 'type': 'block', 'children': ['6', '12', '21']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'redis_key'}; {'id': '9', 'type': 'binary_operator', 'children': ['10', '11'], 'value': '%'}; {'id': '10', 'type': 'string', 'children': [], 'value': "'m_%s'"}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'tmdb_id'}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'cached'}; {'id': '15', 'type': 'call', 'children': ['16', '19']}; {'id': '16', 'type': 'attribute', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'redis_ro_conn'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '19', 'type': 'argument_list', 'children': ['20']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'redis_key'}; {'id': '21', 'type': 'if_statement', 'children': ['22', '23', '29']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'cached'}; {'id': '23', 'type': 'block', 'children': ['24']}; {'id': '24', 'type': 'return_statement', 'children': ['25']}; {'id': '25', 'type': 'call', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'Response'}; {'id': '27', 'type': 'argument_list', 'children': ['28']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'cached'}; {'id': '29', 'type': 'else_clause', 'children': ['30']}; {'id': '30', 'type': 'block', 'children': ['31', '85', '192', '216', '234', '256', '268', '281']}; {'id': '31', 'type': 'try_statement', 'children': ['32', '60']}; {'id': '32', 'type': 'block', 'children': ['33', '42', '51']}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'assignment', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '36', 'type': 'call', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'get_on_tmdb'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'binary_operator', 'children': ['40', '41'], 'value': '%'}; {'id': '40', 'type': 'string', 'children': [], 'value': "u'/movie/%d'"}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'tmdb_id'}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'cast'}; {'id': '45', 'type': 'call', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'get_on_tmdb'}; {'id': '47', 'type': 'argument_list', 'children': ['48']}; {'id': '48', 'type': 'binary_operator', 'children': ['49', '50'], 'value': '%'}; {'id': '49', 'type': 'string', 'children': [], 'value': "u'/movie/%d/casts'"}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'tmdb_id'}; {'id': '51', 'type': 'expression_statement', 'children': ['52']}; {'id': '52', 'type': 'assignment', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'alternative'}; {'id': '54', 'type': 'call', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'get_on_tmdb'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'binary_operator', 'children': ['58', '59'], 'value': '%'}; {'id': '58', 'type': 'string', 'children': [], 'value': "u'/movie/%d/alternative_titles'"}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'tmdb_id'}; {'id': '60', 'type': 'except_clause', 'children': ['61', '67']}; {'id': '61', 'type': 'as_pattern', 'children': ['62', '65']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'HTTPError'}; {'id': '65', 'type': 'as_pattern_target', 'children': ['66']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'err'}; {'id': '67', 'type': 'block', 'children': ['68']}; {'id': '68', 'type': 'return_statement', 'children': ['69']}; {'id': '69', 'type': 'call', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'Response'}; {'id': '71', 'type': 'argument_list', 'children': ['72', '78']}; {'id': '72', 'type': 'binary_operator', 'children': ['73', '74'], 'value': '%'}; {'id': '73', 'type': 'string', 'children': [], 'value': "'TMDB API error: %s'"}; {'id': '74', 'type': 'call', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'err'}; {'id': '78', 'type': 'keyword_argument', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'status'}; {'id': '80', 'type': 'attribute', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'err'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'status_code'}; {'id': '85', 'type': 'expression_statement', 'children': ['86']}; {'id': '86', 'type': 'assignment', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'movie'}; {'id': '88', 'type': 'dictionary', 'children': ['89', '94', '99', '122', '139', '150', '161', '172', '189']}; {'id': '89', 'type': 'pair', 'children': ['90', '91']}; {'id': '90', 'type': 'string', 'children': [], 'value': "'title'"}; {'id': '91', 'type': 'subscript', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '93', 'type': 'string', 'children': [], 'value': "'original_title'"}; {'id': '94', 'type': 'pair', 'children': ['95', '96']}; {'id': '95', 'type': 'string', 'children': [], 'value': "'score'"}; {'id': '96', 'type': 'subscript', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '98', 'type': 'string', 'children': [], 'value': "'popularity'"}; {'id': '99', 'type': 'pair', 'children': ['100', '101']}; {'id': '100', 'type': 'string', 'children': [], 'value': "'directors'"}; {'id': '101', 'type': 'list_comprehension', 'children': ['102', '105', '110']}; {'id': '102', 'type': 'subscript', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '104', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '105', 'type': 'for_in_clause', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '107', 'type': 'subscript', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'cast'}; {'id': '109', 'type': 'string', 'children': [], 'value': "'crew'"}; {'id': '110', 'type': 'if_clause', 'children': ['111']}; {'id': '111', 'type': 'boolean_operator', 'children': ['112', '117'], 'value': 'and'}; {'id': '112', 'type': 'comparison_operator', 'children': ['113', '116'], 'value': '=='}; {'id': '113', 'type': 'subscript', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '115', 'type': 'string', 'children': [], 'value': "'department'"}; {'id': '116', 'type': 'string', 'children': [], 'value': "'Directing'"}; {'id': '117', 'type': 'comparison_operator', 'children': ['118', '121'], 'value': '=='}; {'id': '118', 'type': 'subscript', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '120', 'type': 'string', 'children': [], 'value': "'job'"}; {'id': '121', 'type': 'string', 'children': [], 'value': "'Director'"}; {'id': '122', 'type': 'pair', 'children': ['123', '124']}; {'id': '123', 'type': 'string', 'children': [], 'value': "'writers'"}; {'id': '124', 'type': 'list_comprehension', 'children': ['125', '128', '133']}; {'id': '125', 'type': 'subscript', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '127', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '128', 'type': 'for_in_clause', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '130', 'type': 'subscript', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'cast'}; {'id': '132', 'type': 'string', 'children': [], 'value': "'crew'"}; {'id': '133', 'type': 'if_clause', 'children': ['134']}; {'id': '134', 'type': 'comparison_operator', 'children': ['135', '138'], 'value': '=='}; {'id': '135', 'type': 'subscript', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '137', 'type': 'string', 'children': [], 'value': "'department'"}; {'id': '138', 'type': 'string', 'children': [], 'value': "'Writing'"}; {'id': '139', 'type': 'pair', 'children': ['140', '141']}; {'id': '140', 'type': 'string', 'children': [], 'value': "'cast'"}; {'id': '141', 'type': 'list_comprehension', 'children': ['142', '145']}; {'id': '142', 'type': 'subscript', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '144', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '145', 'type': 'for_in_clause', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '147', 'type': 'subscript', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'cast'}; {'id': '149', 'type': 'string', 'children': [], 'value': "'cast'"}; {'id': '150', 'type': 'pair', 'children': ['151', '152']}; {'id': '151', 'type': 'string', 'children': [], 'value': "'genres'"}; {'id': '152', 'type': 'list_comprehension', 'children': ['153', '156']}; {'id': '153', 'type': 'subscript', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '155', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '156', 'type': 'for_in_clause', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '158', 'type': 'subscript', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '160', 'type': 'string', 'children': [], 'value': "'genres'"}; {'id': '161', 'type': 'pair', 'children': ['162', '163']}; {'id': '162', 'type': 'string', 'children': [], 'value': "'countries'"}; {'id': '163', 'type': 'list_comprehension', 'children': ['164', '167']}; {'id': '164', 'type': 'subscript', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '166', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '167', 'type': 'for_in_clause', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '169', 'type': 'subscript', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '171', 'type': 'string', 'children': [], 'value': "'production_countries'"}; {'id': '172', 'type': 'pair', 'children': ['173', '174']}; {'id': '173', 'type': 'string', 'children': [], 'value': "'tmdb_votes'"}; {'id': '174', 'type': 'call', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '176', 'type': 'argument_list', 'children': ['177']}; {'id': '177', 'type': 'call', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'round'}; {'id': '179', 'type': 'argument_list', 'children': ['180']}; {'id': '180', 'type': 'binary_operator', 'children': ['181', '188'], 'value': '*'}; {'id': '181', 'type': 'call', 'children': ['182', '185']}; {'id': '182', 'type': 'attribute', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '185', 'type': 'argument_list', 'children': ['186', '187']}; {'id': '186', 'type': 'string', 'children': [], 'value': "'vote_average'"}; {'id': '187', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '188', 'type': 'float', 'children': [], 'value': '0.5'}; {'id': '189', 'type': 'pair', 'children': ['190', '191']}; {'id': '190', 'type': 'string', 'children': [], 'value': "'_tmdb_id'"}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'tmdb_id'}; {'id': '192', 'type': 'if_statement', 'children': ['193', '199']}; {'id': '193', 'type': 'call', 'children': ['194', '197']}; {'id': '194', 'type': 'attribute', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '197', 'type': 'argument_list', 'children': ['198']}; {'id': '198', 'type': 'string', 'children': [], 'value': "'release_date'"}; {'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': 'movie'}; {'id': '204', 'type': 'string', 'children': [], 'value': "'year'"}; {'id': '205', 'type': 'attribute', 'children': ['206', '215']}; {'id': '206', 'type': 'call', 'children': ['207', '210']}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'datetime'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'strptime'}; {'id': '210', 'type': 'argument_list', 'children': ['211', '214']}; {'id': '211', 'type': 'subscript', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '213', 'type': 'string', 'children': [], 'value': "'release_date'"}; {'id': '214', 'type': 'string', 'children': [], 'value': "'%Y-%m-%d'"}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'year'}; {'id': '216', 'type': 'if_statement', 'children': ['217', '223']}; {'id': '217', 'type': 'call', 'children': ['218', '221']}; {'id': '218', 'type': 'attribute', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '221', 'type': 'argument_list', 'children': ['222']}; {'id': '222', 'type': 'string', 'children': [], 'value': "'belongs_to_collection'"}; {'id': '223', 'type': 'block', 'children': ['224']}; {'id': '224', 'type': 'expression_statement', 'children': ['225']}; {'id': '225', 'type': 'assignment', 'children': ['226', '229']}; {'id': '226', 'type': 'subscript', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'movie'}; {'id': '228', 'type': 'string', 'children': [], 'value': "'collection'"}; {'id': '229', 'type': 'subscript', 'children': ['230', '233']}; {'id': '230', 'type': 'subscript', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '232', 'type': 'string', 'children': [], 'value': "'belongs_to_collection'"}; {'id': '233', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '234', 'type': 'for_statement', 'children': ['235', '236', '239']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'alt'}; {'id': '236', 'type': 'subscript', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'alternative'}; {'id': '238', 'type': 'string', 'children': [], 'value': "'titles'"}; {'id': '239', 'type': 'block', 'children': ['240']}; {'id': '240', 'type': 'expression_statement', 'children': ['241']}; {'id': '241', 'type': 'assignment', 'children': ['242', '253']}; {'id': '242', 'type': 'subscript', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'movie'}; {'id': '244', 'type': 'binary_operator', 'children': ['245', '246'], 'value': '%'}; {'id': '245', 'type': 'string', 'children': [], 'value': "'title_%s'"}; {'id': '246', 'type': 'call', 'children': ['247', '252']}; {'id': '247', 'type': 'attribute', 'children': ['248', '251']}; {'id': '248', 'type': 'subscript', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'alt'}; {'id': '250', 'type': 'string', 'children': [], 'value': "'iso_3166_1'"}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '252', 'type': 'argument_list', 'children': []}; {'id': '253', 'type': 'subscript', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'alt'}; {'id': '255', 'type': 'string', 'children': [], 'value': "'title'"}; {'id': '256', 'type': 'expression_statement', 'children': ['257']}; {'id': '257', 'type': 'assignment', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'json_response'}; {'id': '259', 'type': 'call', 'children': ['260', '263']}; {'id': '260', 'type': 'attribute', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'json'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'dumps'}; {'id': '263', 'type': 'argument_list', 'children': ['264']}; {'id': '264', 'type': 'dictionary', 'children': ['265']}; {'id': '265', 'type': 'pair', 'children': ['266', '267']}; {'id': '266', 'type': 'string', 'children': [], 'value': "'movie'"}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'movie'}; {'id': '268', 'type': 'expression_statement', 'children': ['269']}; {'id': '269', 'type': 'call', 'children': ['270', '273']}; {'id': '270', 'type': 'attribute', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'redis_conn'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'setex'}; {'id': '273', 'type': 'argument_list', 'children': ['274', '275', '280']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'redis_key'}; {'id': '275', 'type': 'subscript', 'children': ['276', '279']}; {'id': '276', 'type': 'attribute', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'app'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '279', 'type': 'string', 'children': [], 'value': "'CACHE_TTL'"}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'json_response'}; {'id': '281', 'type': 'return_statement', 'children': ['282']}; {'id': '282', 'type': 'call', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'Response'}; {'id': '284', 'type': 'argument_list', 'children': ['285']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'json_response'} | Get informations about a movie using its tmdb id. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'humanize_timesince'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'start_time'}; {'id': '5', 'type': 'block', 'children': ['6', '12', '20', '31', '39', '62', '70', '93', '99', '122', '130', '153', '161', '184']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '9']}; {'id': '7', 'type': 'not_operator', 'children': ['8']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'start_time'}; {'id': '9', 'type': 'block', 'children': ['10']}; {'id': '10', 'type': 'return_statement', 'children': ['11']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'start_time'}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'delta'}; {'id': '15', 'type': 'binary_operator', 'children': ['16', '19'], 'value': '-'}; {'id': '16', 'type': 'call', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'local_now'}; {'id': '18', 'type': 'argument_list', 'children': []}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'start_time'}; {'id': '20', 'type': 'if_statement', 'children': ['21', '28']}; {'id': '21', 'type': 'comparison_operator', 'children': ['22', '27'], 'value': '<'}; {'id': '22', 'type': 'call', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'delta'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'total_seconds'}; {'id': '26', 'type': 'argument_list', 'children': []}; {'id': '27', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '28', 'type': 'block', 'children': ['29']}; {'id': '29', 'type': 'return_statement', 'children': ['30']}; {'id': '30', 'type': 'string', 'children': [], 'value': "'a few seconds ago'"}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'num_years'}; {'id': '34', 'type': 'binary_operator', 'children': ['35', '38'], 'value': '//'}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'delta'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'days'}; {'id': '38', 'type': 'integer', 'children': [], 'value': '365'}; {'id': '39', 'type': 'if_statement', 'children': ['40', '43']}; {'id': '40', 'type': 'comparison_operator', 'children': ['41', '42'], 'value': '>'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'num_years'}; {'id': '42', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '43', 'type': 'block', 'children': ['44']}; {'id': '44', 'type': 'return_statement', 'children': ['45']}; {'id': '45', 'type': 'call', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'string', 'children': [], 'value': "'{} year{} ago'"}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '49', 'type': 'argument_list', 'children': ['50']}; {'id': '50', 'type': 'list_splat', 'children': ['51']}; {'id': '51', 'type': '()', 'children': ['52']}; {'id': '52', 'type': 'conditional_expression', 'children': ['53', '56', '59'], 'value': 'if'}; {'id': '53', 'type': 'tuple', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'num_years'}; {'id': '55', 'type': 'string', 'children': [], 'value': "'s'"}; {'id': '56', 'type': 'comparison_operator', 'children': ['57', '58'], 'value': '>'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'num_years'}; {'id': '58', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '59', 'type': 'tuple', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'num_years'}; {'id': '61', 'type': 'string', 'children': [], 'value': "''"}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'num_weeks'}; {'id': '65', 'type': 'binary_operator', 'children': ['66', '69'], 'value': '//'}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'delta'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'days'}; {'id': '69', 'type': 'integer', 'children': [], 'value': '7'}; {'id': '70', 'type': 'if_statement', 'children': ['71', '74']}; {'id': '71', 'type': 'comparison_operator', 'children': ['72', '73'], 'value': '>'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'num_weeks'}; {'id': '73', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '74', 'type': 'block', 'children': ['75']}; {'id': '75', 'type': 'return_statement', 'children': ['76']}; {'id': '76', 'type': 'call', 'children': ['77', '80']}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'string', 'children': [], 'value': "'{} week{} ago'"}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'list_splat', 'children': ['82']}; {'id': '82', 'type': '()', 'children': ['83']}; {'id': '83', 'type': 'conditional_expression', 'children': ['84', '87', '90'], 'value': 'if'}; {'id': '84', 'type': 'tuple', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'num_weeks'}; {'id': '86', 'type': 'string', 'children': [], 'value': "'s'"}; {'id': '87', 'type': 'comparison_operator', 'children': ['88', '89'], 'value': '>'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'num_weeks'}; {'id': '89', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '90', 'type': 'tuple', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'num_weeks'}; {'id': '92', 'type': 'string', 'children': [], 'value': "''"}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'num_days'}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'delta'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'days'}; {'id': '99', 'type': 'if_statement', 'children': ['100', '103']}; {'id': '100', 'type': 'comparison_operator', 'children': ['101', '102'], 'value': '>'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'num_days'}; {'id': '102', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '103', 'type': 'block', 'children': ['104']}; {'id': '104', 'type': 'return_statement', 'children': ['105']}; {'id': '105', 'type': 'call', 'children': ['106', '109']}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'string', 'children': [], 'value': "'{} day{} ago'"}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '109', 'type': 'argument_list', 'children': ['110']}; {'id': '110', 'type': 'list_splat', 'children': ['111']}; {'id': '111', 'type': '()', 'children': ['112']}; {'id': '112', 'type': 'conditional_expression', 'children': ['113', '116', '119'], 'value': 'if'}; {'id': '113', 'type': 'tuple', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'num_days'}; {'id': '115', 'type': 'string', 'children': [], 'value': "'s'"}; {'id': '116', 'type': 'comparison_operator', 'children': ['117', '118'], 'value': '>'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'num_days'}; {'id': '118', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '119', 'type': 'tuple', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'num_days'}; {'id': '121', 'type': 'string', 'children': [], 'value': "''"}; {'id': '122', 'type': 'expression_statement', 'children': ['123']}; {'id': '123', 'type': 'assignment', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'num_hours'}; {'id': '125', 'type': 'binary_operator', 'children': ['126', '129'], 'value': '//'}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'delta'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'seconds'}; {'id': '129', 'type': 'integer', 'children': [], 'value': '3600'}; {'id': '130', 'type': 'if_statement', 'children': ['131', '134']}; {'id': '131', 'type': 'comparison_operator', 'children': ['132', '133'], 'value': '>'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'num_hours'}; {'id': '133', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '134', 'type': 'block', 'children': ['135']}; {'id': '135', 'type': 'return_statement', 'children': ['136']}; {'id': '136', 'type': 'call', 'children': ['137', '140']}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'string', 'children': [], 'value': "'{} hour{} ago'"}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '140', 'type': 'argument_list', 'children': ['141']}; {'id': '141', 'type': 'list_splat', 'children': ['142']}; {'id': '142', 'type': '()', 'children': ['143']}; {'id': '143', 'type': 'conditional_expression', 'children': ['144', '147', '150'], 'value': 'if'}; {'id': '144', 'type': 'tuple', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'num_hours'}; {'id': '146', 'type': 'string', 'children': [], 'value': "'s'"}; {'id': '147', 'type': 'comparison_operator', 'children': ['148', '149'], 'value': '>'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'num_hours'}; {'id': '149', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '150', 'type': 'tuple', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'num_hours'}; {'id': '152', 'type': 'string', 'children': [], 'value': "''"}; {'id': '153', 'type': 'expression_statement', 'children': ['154']}; {'id': '154', 'type': 'assignment', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'num_minutes'}; {'id': '156', 'type': 'binary_operator', 'children': ['157', '160'], 'value': '//'}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'delta'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'seconds'}; {'id': '160', 'type': 'integer', 'children': [], 'value': '60'}; {'id': '161', 'type': 'if_statement', 'children': ['162', '165']}; {'id': '162', 'type': 'comparison_operator', 'children': ['163', '164'], 'value': '>'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'num_minutes'}; {'id': '164', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '165', 'type': 'block', 'children': ['166']}; {'id': '166', 'type': 'return_statement', 'children': ['167']}; {'id': '167', 'type': 'call', 'children': ['168', '171']}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'string', 'children': [], 'value': "'{} minute{} ago'"}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '171', 'type': 'argument_list', 'children': ['172']}; {'id': '172', 'type': 'list_splat', 'children': ['173']}; {'id': '173', 'type': '()', 'children': ['174']}; {'id': '174', 'type': 'conditional_expression', 'children': ['175', '178', '181'], 'value': 'if'}; {'id': '175', 'type': 'tuple', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'num_minutes'}; {'id': '177', 'type': 'string', 'children': [], 'value': "'s'"}; {'id': '178', 'type': 'comparison_operator', 'children': ['179', '180'], 'value': '>'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'num_minutes'}; {'id': '180', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '181', 'type': 'tuple', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'num_minutes'}; {'id': '183', 'type': 'string', 'children': [], 'value': "''"}; {'id': '184', 'type': 'return_statement', 'children': ['185']}; {'id': '185', 'type': 'string', 'children': [], 'value': "'a few seconds ago'"} | Creates a string representation of time since the given `start_time`. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'fire'}; {'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': 'kw'}; {'id': '9', 'type': 'block', 'children': ['10', '14', '27', '345']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '13', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '14', 'type': 'with_statement', 'children': ['15', '20']}; {'id': '15', 'type': 'with_clause', 'children': ['16']}; {'id': '16', 'type': 'with_item', 'children': ['17']}; {'id': '17', 'type': 'attribute', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': '_hlock'}; {'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': 'handlers'}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'handlers'}; {'id': '27', 'type': 'if_statement', 'children': ['28', '33', '95']}; {'id': '28', 'type': 'comparison_operator', 'children': ['29', '32'], 'value': '=='}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'threads'}; {'id': '32', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '33', 'type': 'block', 'children': ['34']}; {'id': '34', 'type': 'for_statement', 'children': ['35', '36', '37']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'handlers'}; {'id': '37', 'type': 'block', 'children': ['38', '47']}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '44']}; {'id': '40', 'type': 'pattern_list', 'children': ['41', '42', '43']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '44', 'type': 'subscript', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'handlers'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '47', 'type': 'try_statement', 'children': ['48', '74']}; {'id': '48', 'type': 'block', 'children': ['49', '64']}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'assignment', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '52', 'type': 'call', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': '_memoize'}; {'id': '56', 'type': 'argument_list', 'children': ['57', '58', '59', '60', '62']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '60', 'type': 'list_splat', 'children': ['61']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '62', 'type': 'dictionary_splat', 'children': ['63']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'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': 'result'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '69', 'type': 'argument_list', 'children': ['70']}; {'id': '70', 'type': 'call', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '74', 'type': 'except_clause', 'children': ['75']}; {'id': '75', 'type': 'block', 'children': ['76']}; {'id': '76', 'type': 'expression_statement', 'children': ['77']}; {'id': '77', 'type': 'call', 'children': ['78', '81']}; {'id': '78', 'type': 'attribute', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '81', 'type': 'argument_list', 'children': ['82']}; {'id': '82', 'type': 'tuple', 'children': ['83', '84', '94']}; {'id': '83', 'type': 'False', 'children': []}; {'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': '_error'}; {'id': '88', 'type': 'argument_list', 'children': ['89']}; {'id': '89', 'type': 'call', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'exc_info'}; {'id': '93', 'type': 'argument_list', 'children': []}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '95', 'type': 'elif_clause', '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': 'self'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'threads'}; {'id': '100', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '101', 'type': 'block', 'children': ['102', '108', '114', '236']}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'assignment', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'queue'}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'Queue'}; {'id': '107', 'type': 'argument_list', 'children': []}; {'id': '108', 'type': 'expression_statement', 'children': ['109']}; {'id': '109', 'type': 'assignment', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'rlock'}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'RLock'}; {'id': '113', 'type': 'argument_list', 'children': []}; {'id': '114', 'type': 'function_definition', 'children': ['115', '116', '121']}; {'id': '115', 'type': 'function_name', 'children': [], 'value': '_execute'}; {'id': '116', 'type': 'parameters', 'children': ['117', '119']}; {'id': '117', 'type': 'list_splat_pattern', 'children': ['118']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '119', 'type': 'dictionary_splat_pattern', 'children': ['120']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '121', 'type': 'block', 'children': ['122']}; {'id': '122', 'type': 'while_statement', 'children': ['123', '124']}; {'id': '123', 'type': 'True', 'children': []}; {'id': '124', 'type': 'block', 'children': ['125']}; {'id': '125', 'type': 'try_statement', 'children': ['126', '232']}; {'id': '126', 'type': 'block', 'children': ['127', '135', '147', '156', '226']}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'assignment', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '130', 'type': 'call', 'children': ['131', '134']}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'queue'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '134', 'type': 'argument_list', 'children': []}; {'id': '135', 'type': 'if_statement', 'children': ['136', '139']}; {'id': '136', 'type': 'comparison_operator', 'children': ['137', '138'], 'value': 'is'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '138', 'type': 'None', 'children': []}; {'id': '139', 'type': 'block', 'children': ['140', '146']}; {'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': 'queue'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'task_done'}; {'id': '145', 'type': 'argument_list', 'children': []}; {'id': '146', 'type': 'break_statement', 'children': []}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'assignment', 'children': ['149', '153']}; {'id': '149', 'type': 'pattern_list', 'children': ['150', '151', '152']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '153', 'type': 'subscript', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'handlers'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '156', 'type': 'try_statement', 'children': ['157', '194']}; {'id': '157', 'type': 'block', 'children': ['158', '173']}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'assignment', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '161', 'type': 'call', 'children': ['162', '165']}; {'id': '162', 'type': 'attribute', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': '_memoize'}; {'id': '165', 'type': 'argument_list', 'children': ['166', '167', '168', '169', '171']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '169', 'type': 'list_splat', 'children': ['170']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '171', 'type': 'dictionary_splat', 'children': ['172']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '173', 'type': 'if_statement', 'children': ['174', '178']}; {'id': '174', 'type': 'not_operator', 'children': ['175']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'asynch'}; {'id': '178', 'type': 'block', 'children': ['179']}; {'id': '179', 'type': 'with_statement', 'children': ['180', '183']}; {'id': '180', 'type': 'with_clause', 'children': ['181']}; {'id': '181', 'type': 'with_item', 'children': ['182']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'rlock'}; {'id': '183', 'type': 'block', 'children': ['184']}; {'id': '184', 'type': 'expression_statement', 'children': ['185']}; {'id': '185', 'type': 'call', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '189', 'type': 'argument_list', 'children': ['190']}; {'id': '190', 'type': 'call', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '192', 'type': 'argument_list', 'children': ['193']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '194', 'type': 'except_clause', 'children': ['195']}; {'id': '195', 'type': 'block', 'children': ['196']}; {'id': '196', 'type': 'if_statement', 'children': ['197', '201']}; {'id': '197', 'type': 'not_operator', 'children': ['198']}; {'id': '198', 'type': 'attribute', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'asynch'}; {'id': '201', 'type': 'block', 'children': ['202']}; {'id': '202', 'type': 'with_statement', 'children': ['203', '206']}; {'id': '203', 'type': 'with_clause', 'children': ['204']}; {'id': '204', 'type': 'with_item', 'children': ['205']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'rlock'}; {'id': '206', 'type': 'block', 'children': ['207']}; {'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': 'result'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '212', 'type': 'argument_list', 'children': ['213']}; {'id': '213', 'type': 'tuple', 'children': ['214', '215', '225']}; {'id': '214', 'type': 'False', 'children': []}; {'id': '215', 'type': 'call', 'children': ['216', '219']}; {'id': '216', 'type': 'attribute', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': '_error'}; {'id': '219', 'type': 'argument_list', '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': 'exc_info'}; {'id': '224', 'type': 'argument_list', 'children': []}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'h'}; {'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': 'queue'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'task_done'}; {'id': '231', 'type': 'argument_list', 'children': []}; {'id': '232', 'type': 'except_clause', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'Empty'}; {'id': '234', 'type': 'block', 'children': ['235']}; {'id': '235', 'type': 'break_statement', 'children': []}; {'id': '236', 'type': 'if_statement', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'handlers'}; {'id': '238', 'type': 'block', 'children': ['239', '250', '284', '319', '333']}; {'id': '239', 'type': 'expression_statement', 'children': ['240']}; {'id': '240', 'type': 'assignment', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'threads'}; {'id': '242', 'type': 'call', 'children': ['243', '246']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': '_threads'}; {'id': '246', 'type': 'argument_list', 'children': ['247']}; {'id': '247', 'type': 'keyword_argument', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'handlers'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'handlers'}; {'id': '250', 'type': 'for_statement', 'children': ['251', '252', '256']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '252', 'type': 'call', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '254', 'type': 'argument_list', 'children': ['255']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'threads'}; {'id': '256', 'type': 'block', 'children': ['257', '272', '278']}; {'id': '257', 'type': 'expression_statement', 'children': ['258']}; {'id': '258', 'type': 'assignment', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '260', 'type': 'call', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'Thread'}; {'id': '262', 'type': 'argument_list', 'children': ['263', '266', '269']}; {'id': '263', 'type': 'keyword_argument', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': '_execute'}; {'id': '266', 'type': 'keyword_argument', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '269', 'type': 'keyword_argument', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '272', 'type': 'expression_statement', 'children': ['273']}; {'id': '273', 'type': 'assignment', 'children': ['274', '277']}; {'id': '274', 'type': 'attribute', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'daemon'}; {'id': '277', 'type': 'True', 'children': []}; {'id': '278', 'type': 'expression_statement', 'children': ['279']}; {'id': '279', 'type': 'call', 'children': ['280', '283']}; {'id': '280', 'type': 'attribute', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '283', 'type': 'argument_list', 'children': []}; {'id': '284', 'type': 'for_statement', 'children': ['285', '286', '287']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'handlers'}; {'id': '287', 'type': 'block', 'children': ['288', '295']}; {'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': 'queue'}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'put'}; {'id': '293', 'type': 'argument_list', 'children': ['294']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '295', 'type': 'if_statement', 'children': ['296', '299']}; {'id': '296', 'type': 'attribute', 'children': ['297', '298']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'asynch'}; {'id': '299', 'type': 'block', 'children': ['300', '309']}; {'id': '300', 'type': 'expression_statement', 'children': ['301']}; {'id': '301', 'type': 'assignment', 'children': ['302', '306']}; {'id': '302', 'type': 'pattern_list', 'children': ['303', '304', '305']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '305', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '306', 'type': 'subscript', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'handlers'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '309', 'type': 'expression_statement', 'children': ['310']}; {'id': '310', 'type': 'call', 'children': ['311', '314']}; {'id': '311', 'type': 'attribute', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '314', 'type': 'argument_list', 'children': ['315']}; {'id': '315', 'type': 'tuple', 'children': ['316', '317', '318']}; {'id': '316', 'type': 'None', 'children': []}; {'id': '317', 'type': 'None', 'children': []}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '319', 'type': 'for_statement', 'children': ['320', '321', '325']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '321', 'type': 'call', 'children': ['322', '323']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '323', 'type': 'argument_list', 'children': ['324']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'threads'}; {'id': '325', 'type': 'block', 'children': ['326']}; {'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': 'queue'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'put'}; {'id': '331', 'type': 'argument_list', 'children': ['332']}; {'id': '332', 'type': 'None', 'children': []}; {'id': '333', 'type': 'if_statement', 'children': ['334', '338']}; {'id': '334', 'type': 'not_operator', 'children': ['335']}; {'id': '335', 'type': 'attribute', 'children': ['336', '337']}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'asynch'}; {'id': '338', 'type': 'block', 'children': ['339']}; {'id': '339', 'type': 'expression_statement', 'children': ['340']}; {'id': '340', 'type': 'call', 'children': ['341', '344']}; {'id': '341', 'type': 'attribute', 'children': ['342', '343']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'queue'}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '344', 'type': 'argument_list', 'children': []}; {'id': '345', 'type': 'return_statement', 'children': ['346']}; {'id': '346', 'type': 'boolean_operator', 'children': ['347', '351'], 'value': 'or'}; {'id': '347', 'type': 'call', 'children': ['348', '349']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '349', 'type': 'argument_list', 'children': ['350']}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '351', 'type': 'None', 'children': []} | Stores all registered handlers in a queue for processing |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'initialize'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '5', 'type': 'block', 'children': ['6', '34', '38', '64', '80', '84', '88', '92', '199', '208', '228', '309', '316']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '10', '26']}; {'id': '7', 'type': 'comparison_operator', 'children': ['8', '9'], 'value': 'in'}; {'id': '8', 'type': 'string', 'children': [], 'value': "'redis_client'"}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '10', 'type': 'block', 'children': ['11']}; {'id': '11', 'type': 'expression_statement', 'children': ['12']}; {'id': '12', 'type': 'assignment', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'client'}; {'id': '14', 'type': 'call', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'utils'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'find_entrypoint'}; {'id': '18', 'type': 'argument_list', 'children': ['19', '20', '23']}; {'id': '19', 'type': 'string', 'children': [], 'value': "'turnstile.redis_client'"}; {'id': '20', 'type': 'subscript', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '22', 'type': 'string', 'children': [], 'value': "'redis_client'"}; {'id': '23', 'type': 'keyword_argument', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'required'}; {'id': '25', 'type': 'True', 'children': []}; {'id': '26', 'type': 'else_clause', 'children': ['27']}; {'id': '27', 'type': 'block', 'children': ['28']}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'client'}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'redis'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'StrictRedis'}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '37', 'type': 'dictionary', 'children': []}; {'id': '38', 'type': 'for_statement', 'children': ['39', '42', '47']}; {'id': '39', 'type': 'pattern_list', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'cfg_var'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'type_'}; {'id': '42', 'type': 'call', 'children': ['43', '46']}; {'id': '43', 'type': 'attribute', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'REDIS_CONFIGS'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '46', 'type': 'argument_list', 'children': []}; {'id': '47', 'type': 'block', 'children': ['48']}; {'id': '48', 'type': 'if_statement', 'children': ['49', '52']}; {'id': '49', 'type': 'comparison_operator', 'children': ['50', '51'], 'value': 'in'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'cfg_var'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '52', 'type': 'block', 'children': ['53']}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '58']}; {'id': '55', 'type': 'subscript', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'cfg_var'}; {'id': '58', 'type': 'call', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'type_'}; {'id': '60', 'type': 'argument_list', 'children': ['61']}; {'id': '61', 'type': 'subscript', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'cfg_var'}; {'id': '64', 'type': 'if_statement', 'children': ['65', '72']}; {'id': '65', 'type': 'boolean_operator', 'children': ['66', '69'], 'value': 'and'}; {'id': '66', 'type': 'comparison_operator', 'children': ['67', '68'], 'value': 'not'}; {'id': '67', 'type': 'string', 'children': [], 'value': "'host'"}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '69', 'type': 'comparison_operator', 'children': ['70', '71'], 'value': 'not'}; {'id': '70', 'type': 'string', 'children': [], 'value': "'unix_socket_path'"}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '72', 'type': 'block', 'children': ['73']}; {'id': '73', 'type': 'raise_statement', 'children': ['74']}; {'id': '74', 'type': 'call', 'children': ['75', '78']}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'redis'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'ConnectionError'}; {'id': '78', 'type': 'argument_list', 'children': ['79']}; {'id': '79', 'type': 'string', 'children': [], 'value': '"No host specified for redis database"'}; {'id': '80', 'type': 'expression_statement', 'children': ['81']}; {'id': '81', 'type': 'assignment', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'cpool_class'}; {'id': '83', 'type': 'None', 'children': []}; {'id': '84', 'type': 'expression_statement', 'children': ['85']}; {'id': '85', 'type': 'assignment', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '87', 'type': 'dictionary', 'children': []}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'assignment', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'extra_kwargs'}; {'id': '91', 'type': 'dictionary', 'children': []}; {'id': '92', 'type': 'for_statement', 'children': ['93', '96', '101']}; {'id': '93', 'type': 'pattern_list', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '96', 'type': 'call', 'children': ['97', '100']}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '100', 'type': 'argument_list', 'children': []}; {'id': '101', 'type': 'block', 'children': ['102']}; {'id': '102', 'type': 'if_statement', 'children': ['103', '109', '184']}; {'id': '103', 'type': 'call', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'string', 'children': [], 'value': "'connection_pool.'"}; {'id': '109', 'type': 'block', 'children': ['110', '122']}; {'id': '110', 'type': 'expression_statement', 'children': ['111']}; {'id': '111', 'type': 'assignment', 'children': ['112', '116']}; {'id': '112', 'type': 'pattern_list', 'children': ['113', '114', '115']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': '_dummy'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': '_sep'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'varname'}; {'id': '116', 'type': 'call', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'partition'}; {'id': '120', 'type': 'argument_list', 'children': ['121']}; {'id': '121', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '122', 'type': 'if_statement', 'children': ['123', '126', '142', '156', '176']}; {'id': '123', 'type': 'comparison_operator', 'children': ['124', '125'], 'value': '=='}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'varname'}; {'id': '125', 'type': 'string', 'children': [], 'value': "'connection_class'"}; {'id': '126', 'type': 'block', 'children': ['127']}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'assignment', 'children': ['129', '132']}; {'id': '129', 'type': 'subscript', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'varname'}; {'id': '132', 'type': 'call', 'children': ['133', '136']}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'utils'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'find_entrypoint'}; {'id': '136', 'type': 'argument_list', 'children': ['137', '138', '139']}; {'id': '137', 'type': 'string', 'children': [], 'value': "'turnstile.connection_class'"}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '139', 'type': 'keyword_argument', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'required'}; {'id': '141', 'type': 'True', 'children': []}; {'id': '142', 'type': 'elif_clause', 'children': ['143', '146']}; {'id': '143', 'type': 'comparison_operator', 'children': ['144', '145'], 'value': '=='}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'varname'}; {'id': '145', 'type': 'string', 'children': [], 'value': "'max_connections'"}; {'id': '146', 'type': 'block', 'children': ['147']}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'assignment', 'children': ['149', '152']}; {'id': '149', 'type': 'subscript', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'varname'}; {'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': 'value'}; {'id': '156', 'type': 'elif_clause', 'children': ['157', '160']}; {'id': '157', 'type': 'comparison_operator', 'children': ['158', '159'], 'value': '=='}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'varname'}; {'id': '159', 'type': 'string', 'children': [], 'value': "'parser_class'"}; {'id': '160', 'type': 'block', 'children': ['161']}; {'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': 'cpool'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'varname'}; {'id': '166', 'type': 'call', 'children': ['167', '170']}; {'id': '167', 'type': 'attribute', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'utils'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'find_entrypoint'}; {'id': '170', 'type': 'argument_list', 'children': ['171', '172', '173']}; {'id': '171', 'type': 'string', 'children': [], 'value': "'turnstile.parser_class'"}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '173', 'type': 'keyword_argument', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'required'}; {'id': '175', 'type': 'True', 'children': []}; {'id': '176', 'type': 'else_clause', 'children': ['177']}; {'id': '177', 'type': 'block', 'children': ['178']}; {'id': '178', 'type': 'expression_statement', 'children': ['179']}; {'id': '179', 'type': 'assignment', 'children': ['180', '183']}; {'id': '180', 'type': 'subscript', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'varname'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '184', 'type': 'elif_clause', 'children': ['185', '192']}; {'id': '185', 'type': 'boolean_operator', 'children': ['186', '189'], 'value': 'and'}; {'id': '186', 'type': 'comparison_operator', 'children': ['187', '188'], 'value': 'not'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'REDIS_CONFIGS'}; {'id': '189', 'type': 'comparison_operator', 'children': ['190', '191'], 'value': 'not'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'REDIS_EXCLUDES'}; {'id': '192', 'type': 'block', 'children': ['193']}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'assignment', 'children': ['195', '198']}; {'id': '195', 'type': 'subscript', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'extra_kwargs'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '199', 'type': 'if_statement', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'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': 'cpool_class'}; {'id': '205', 'type': 'attribute', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'redis'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'ConnectionPool'}; {'id': '208', 'type': 'if_statement', 'children': ['209', '212']}; {'id': '209', 'type': 'comparison_operator', 'children': ['210', '211'], 'value': 'in'}; {'id': '210', 'type': 'string', 'children': [], 'value': "'connection_pool'"}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'config'}; {'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': 'cpool_class'}; {'id': '216', 'type': 'call', 'children': ['217', '220']}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'utils'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'find_entrypoint'}; {'id': '220', 'type': 'argument_list', 'children': ['221', '222', '225']}; {'id': '221', 'type': 'string', 'children': [], 'value': "'turnstile.connection_pool'"}; {'id': '222', 'type': 'subscript', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '224', 'type': 'string', 'children': [], 'value': "'connection_pool'"}; {'id': '225', 'type': 'keyword_argument', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'required'}; {'id': '227', 'type': 'True', 'children': []}; {'id': '228', 'type': 'if_statement', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'cpool_class'}; {'id': '230', 'type': 'block', 'children': ['231', '238', '296']}; {'id': '231', 'type': 'expression_statement', 'children': ['232']}; {'id': '232', 'type': 'call', 'children': ['233', '236']}; {'id': '233', 'type': 'attribute', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '236', 'type': 'argument_list', 'children': ['237']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '238', 'type': 'if_statement', 'children': ['239', '242']}; {'id': '239', 'type': 'comparison_operator', 'children': ['240', '241'], 'value': 'not'}; {'id': '240', 'type': 'string', 'children': [], 'value': "'connection_class'"}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '242', 'type': 'block', 'children': ['243']}; {'id': '243', 'type': 'if_statement', 'children': ['244', '247', '286']}; {'id': '244', 'type': 'comparison_operator', 'children': ['245', '246'], 'value': 'in'}; {'id': '245', 'type': 'string', 'children': [], 'value': "'unix_socket_path'"}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '247', 'type': 'block', 'children': ['248', '257', '266', '274', '278']}; {'id': '248', 'type': 'if_statement', 'children': ['249', '252']}; {'id': '249', 'type': 'comparison_operator', 'children': ['250', '251'], 'value': 'in'}; {'id': '250', 'type': 'string', 'children': [], 'value': "'host'"}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '252', 'type': 'block', 'children': ['253']}; {'id': '253', 'type': 'delete_statement', 'children': ['254']}; {'id': '254', 'type': 'subscript', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '256', 'type': 'string', 'children': [], 'value': "'host'"}; {'id': '257', 'type': 'if_statement', 'children': ['258', '261']}; {'id': '258', 'type': 'comparison_operator', 'children': ['259', '260'], 'value': 'in'}; {'id': '259', 'type': 'string', 'children': [], 'value': "'port'"}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '261', 'type': 'block', 'children': ['262']}; {'id': '262', 'type': 'delete_statement', 'children': ['263']}; {'id': '263', 'type': 'subscript', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '265', 'type': 'string', 'children': [], 'value': "'port'"}; {'id': '266', 'type': 'expression_statement', 'children': ['267']}; {'id': '267', 'type': 'assignment', 'children': ['268', '271']}; {'id': '268', 'type': 'subscript', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '270', 'type': 'string', 'children': [], 'value': "'path'"}; {'id': '271', 'type': 'subscript', 'children': ['272', '273']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '273', 'type': 'string', 'children': [], 'value': "'unix_socket_path'"}; {'id': '274', 'type': 'delete_statement', 'children': ['275']}; {'id': '275', 'type': 'subscript', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '277', 'type': 'string', 'children': [], 'value': "'unix_socket_path'"}; {'id': '278', 'type': 'expression_statement', 'children': ['279']}; {'id': '279', 'type': 'assignment', 'children': ['280', '283']}; {'id': '280', 'type': 'subscript', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '282', 'type': 'string', 'children': [], 'value': "'connection_class'"}; {'id': '283', 'type': 'attribute', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'redis'}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'UnixDomainSocketConnection'}; {'id': '286', 'type': 'else_clause', 'children': ['287']}; {'id': '287', 'type': 'block', 'children': ['288']}; {'id': '288', 'type': 'expression_statement', 'children': ['289']}; {'id': '289', 'type': 'assignment', 'children': ['290', '293']}; {'id': '290', 'type': 'subscript', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '292', 'type': 'string', 'children': [], 'value': "'connection_class'"}; {'id': '293', 'type': 'attribute', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'redis'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'Connection'}; {'id': '296', 'type': 'expression_statement', 'children': ['297']}; {'id': '297', 'type': 'assignment', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '299', 'type': 'call', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '301', 'type': 'argument_list', 'children': ['302']}; {'id': '302', 'type': 'keyword_argument', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'connection_pool'}; {'id': '304', 'type': 'call', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'cpool_class'}; {'id': '306', 'type': 'argument_list', 'children': ['307']}; {'id': '307', 'type': 'dictionary_splat', 'children': ['308']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'cpool'}; {'id': '309', 'type': 'expression_statement', 'children': ['310']}; {'id': '310', 'type': 'call', 'children': ['311', '314']}; {'id': '311', 'type': 'attribute', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '314', 'type': 'argument_list', 'children': ['315']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'extra_kwargs'}; {'id': '316', 'type': 'return_statement', 'children': ['317']}; {'id': '317', 'type': 'call', 'children': ['318', '319']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'client'}; {'id': '319', 'type': 'argument_list', 'children': ['320']}; {'id': '320', 'type': 'dictionary_splat', 'children': ['321']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'kwargs'} | Initialize a connection to the Redis database. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '22']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_send_text'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '9', '13']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'typed_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '7', 'type': 'type', 'children': ['8']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'Request'}; {'id': '9', 'type': 'typed_parameter', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '11', 'type': 'type', 'children': ['12']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'Stack'}; {'id': '13', 'type': 'typed_default_parameter', 'children': ['14', '15', '21']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'parse_mode'}; {'id': '15', 'type': 'type', 'children': ['16']}; {'id': '16', 'type': 'generic_type', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'Optional'}; {'id': '18', 'type': 'type_parameter', 'children': ['19']}; {'id': '19', 'type': 'type', 'children': ['20']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'Text'}; {'id': '21', 'type': 'None', 'children': []}; {'id': '22', 'type': 'block', 'children': ['23', '27', '37', '77', '100', '113', '124', '132', '164']}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '26', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'assignment', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'chat_id'}; {'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': 'request'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'get_chat_id'}; {'id': '36', 'type': 'argument_list', 'children': []}; {'id': '37', 'type': 'for_statement', 'children': ['38', '39', '42']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'layer'}; {'id': '39', 'type': 'attribute', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'layers'}; {'id': '42', 'type': 'block', 'children': ['43']}; {'id': '43', 'type': 'if_statement', 'children': ['44', '58']}; {'id': '44', 'type': 'call', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '46', 'type': 'argument_list', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'layer'}; {'id': '48', 'type': 'tuple', 'children': ['49', '52', '55']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'lyr'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'Text'}; {'id': '52', 'type': 'attribute', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'lyr'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'RawText'}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'lyr'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'Markdown'}; {'id': '58', 'type': 'block', 'children': ['59', '70']}; {'id': '59', 'type': 'expression_statement', 'children': ['60']}; {'id': '60', 'type': 'assignment', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '62', 'type': 'await', 'children': ['63']}; {'id': '63', 'type': 'call', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'render'}; {'id': '65', 'type': 'argument_list', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'layer'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'request'}; {'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': 'parts'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '75', 'type': 'argument_list', 'children': ['76']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '77', 'type': 'for_statement', 'children': ['78', '79', '85']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '79', 'type': 'subscript', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '81', 'type': 'slice', 'children': ['82', '83']}; {'id': '82', 'type': 'colon', 'children': []}; {'id': '83', 'type': 'unary_operator', 'children': ['84'], 'value': '-'}; {'id': '84', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '85', 'type': 'block', 'children': ['86']}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'await', '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': 'call'}; {'id': '92', 'type': 'argument_list', 'children': ['93', '94', '97']}; {'id': '93', 'type': 'string', 'children': [], 'value': "'sendMessage'"}; {'id': '94', 'type': 'keyword_argument', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '97', 'type': 'keyword_argument', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'chat_id'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'chat_id'}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'assignment', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '103', 'type': 'dictionary', 'children': ['104', '110']}; {'id': '104', 'type': 'pair', 'children': ['105', '106']}; {'id': '105', 'type': 'string', 'children': [], 'value': "'text'"}; {'id': '106', 'type': 'subscript', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '108', 'type': 'unary_operator', 'children': ['109'], 'value': '-'}; {'id': '109', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '110', 'type': 'pair', 'children': ['111', '112']}; {'id': '111', 'type': 'string', 'children': [], 'value': "'chat_id'"}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'chat_id'}; {'id': '113', 'type': 'if_statement', 'children': ['114', '117']}; {'id': '114', 'type': 'comparison_operator', 'children': ['115', '116'], 'value': 'is'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'parse_mode'}; {'id': '116', 'type': 'None', 'children': []}; {'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': 'msg'}; {'id': '122', 'type': 'string', 'children': [], 'value': "'parse_mode'"}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'parse_mode'}; {'id': '124', 'type': 'expression_statement', 'children': ['125']}; {'id': '125', 'type': 'await', 'children': ['126']}; {'id': '126', 'type': 'call', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'set_reply_markup'}; {'id': '128', 'type': 'argument_list', 'children': ['129', '130', '131']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '132', 'type': 'if_statement', 'children': ['133', '139']}; {'id': '133', 'type': 'call', 'children': ['134', '137']}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'has_layer'}; {'id': '137', 'type': 'argument_list', 'children': ['138']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'Reply'}; {'id': '139', 'type': 'block', 'children': ['140', '149']}; {'id': '140', 'type': 'expression_statement', 'children': ['141']}; {'id': '141', 'type': 'assignment', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'reply'}; {'id': '143', 'type': 'call', 'children': ['144', '147']}; {'id': '144', 'type': 'attribute', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'get_layer'}; {'id': '147', 'type': 'argument_list', 'children': ['148']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'Reply'}; {'id': '149', 'type': 'if_statement', 'children': ['150', '153']}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'reply'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '153', 'type': 'block', 'children': ['154']}; {'id': '154', 'type': 'expression_statement', 'children': ['155']}; {'id': '155', 'type': 'assignment', 'children': ['156', '159']}; {'id': '156', 'type': 'subscript', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '158', 'type': 'string', 'children': [], 'value': "'reply_to_message_id'"}; {'id': '159', 'type': 'subscript', 'children': ['160', '163']}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'reply'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '163', 'type': 'string', 'children': [], 'value': "'message_id'"}; {'id': '164', 'type': 'if_statement', 'children': ['165', '171', '220']}; {'id': '165', 'type': 'call', 'children': ['166', '169']}; {'id': '166', 'type': 'attribute', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'has_layer'}; {'id': '169', 'type': 'argument_list', 'children': ['170']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'Update'}; {'id': '171', 'type': 'block', 'children': ['172', '181', '208']}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'assignment', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '175', 'type': 'call', 'children': ['176', '179']}; {'id': '176', 'type': 'attribute', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'get_layer'}; {'id': '179', 'type': 'argument_list', 'children': ['180']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'Update'}; {'id': '181', 'type': 'if_statement', 'children': ['182', '185', '198']}; {'id': '182', 'type': 'attribute', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'inline_message_id'}; {'id': '185', 'type': 'block', 'children': ['186', '194']}; {'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': 'msg'}; {'id': '190', 'type': 'string', 'children': [], 'value': "'inline_message_id'"}; {'id': '191', 'type': 'attribute', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'inline_message_id'}; {'id': '194', 'type': 'delete_statement', 'children': ['195']}; {'id': '195', 'type': 'subscript', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '197', 'type': 'string', 'children': [], 'value': "'chat_id'"}; {'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', '205']}; {'id': '202', 'type': 'subscript', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '204', 'type': 'string', 'children': [], 'value': "'message_id'"}; {'id': '205', 'type': 'attribute', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'message_id'}; {'id': '208', 'type': 'expression_statement', 'children': ['209']}; {'id': '209', 'type': 'await', 'children': ['210']}; {'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': 'call'}; {'id': '214', 'type': 'argument_list', 'children': ['215', '216', '218']}; {'id': '215', 'type': 'string', 'children': [], 'value': "'editMessageText'"}; {'id': '216', 'type': 'set', 'children': ['217']}; {'id': '217', 'type': 'string', 'children': [], 'value': "'Bad Request: message is not modified'"}; {'id': '218', 'type': 'dictionary_splat', 'children': ['219']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '220', 'type': 'else_clause', 'children': ['221']}; {'id': '221', 'type': 'block', 'children': ['222']}; {'id': '222', 'type': 'expression_statement', 'children': ['223']}; {'id': '223', 'type': 'await', 'children': ['224']}; {'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': 'call'}; {'id': '228', 'type': 'argument_list', 'children': ['229', '230']}; {'id': '229', 'type': 'string', 'children': [], 'value': "'sendMessage'"}; {'id': '230', 'type': 'dictionary_splat', 'children': ['231']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'msg'} | Base function for sending text |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'do_help'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'arg'}; {'id': '6', 'type': 'block', 'children': ['7']}; {'id': '7', 'type': 'if_statement', 'children': ['8', '9', '85']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'arg'}; {'id': '9', 'type': 'block', 'children': ['10', '81']}; {'id': '10', 'type': 'try_statement', 'children': ['11', '22']}; {'id': '11', 'type': 'block', 'children': ['12']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'func'}; {'id': '15', 'type': 'call', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '17', 'type': 'argument_list', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '19', 'type': 'binary_operator', 'children': ['20', '21'], 'value': '+'}; {'id': '20', 'type': 'string', 'children': [], 'value': "'help_'"}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'arg'}; {'id': '22', 'type': 'except_clause', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'AttributeError'}; {'id': '24', 'type': 'block', 'children': ['25', '61', '80']}; {'id': '25', 'type': 'try_statement', 'children': ['26', '57']}; {'id': '26', 'type': 'block', 'children': ['27', '39']}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'assignment', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '30', 'type': 'attribute', 'children': ['31', '38']}; {'id': '31', 'type': 'call', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '33', 'type': 'argument_list', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '35', 'type': 'binary_operator', 'children': ['36', '37'], 'value': '+'}; {'id': '36', 'type': 'string', 'children': [], 'value': "'do_'"}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'arg'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': '__doc__'}; {'id': '39', 'type': 'if_statement', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '41', 'type': 'block', 'children': ['42', '56']}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'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': 'stdout'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '49', 'type': 'argument_list', 'children': ['50']}; {'id': '50', 'type': 'binary_operator', 'children': ['51', '52'], 'value': '%'}; {'id': '51', 'type': 'string', 'children': [], 'value': '"%s\\n"'}; {'id': '52', 'type': 'call', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '54', 'type': 'argument_list', 'children': ['55']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '56', 'type': 'return_statement', 'children': []}; {'id': '57', 'type': 'except_clause', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'AttributeError'}; {'id': '59', 'type': 'block', 'children': ['60']}; {'id': '60', 'type': 'pass_statement', 'children': []}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'call', 'children': ['63', '68']}; {'id': '63', 'type': 'attribute', 'children': ['64', '67']}; {'id': '64', 'type': 'attribute', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'stdout'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '68', 'type': 'argument_list', 'children': ['69']}; {'id': '69', 'type': 'binary_operator', 'children': ['70', '71'], 'value': '%'}; {'id': '70', 'type': 'string', 'children': [], 'value': '"%s\\n"'}; {'id': '71', 'type': 'call', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'binary_operator', 'children': ['75', '78'], 'value': '%'}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'nohelp'}; {'id': '78', 'type': 'tuple', 'children': ['79']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'arg'}; {'id': '80', 'type': 'return_statement', 'children': []}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'call', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'func'}; {'id': '84', 'type': 'argument_list', 'children': []}; {'id': '85', 'type': 'else_clause', 'children': ['86']}; {'id': '86', 'type': 'block', 'children': ['87', '95', '99', '103', '107', '130', '136', '140', '212', '228', '240', '259', '271']}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'names'}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'get_names'}; {'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': 'cmds_doc'}; {'id': '98', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'assignment', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'cmds_undoc'}; {'id': '102', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'assignment', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'help_page'}; {'id': '106', 'type': 'dictionary', 'children': []}; {'id': '107', 'type': 'for_statement', 'children': ['108', '109', '110']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'names'}; {'id': '110', 'type': 'block', 'children': ['111']}; {'id': '111', 'type': 'if_statement', 'children': ['112', '119']}; {'id': '112', 'type': 'comparison_operator', 'children': ['113', '118'], 'value': '=='}; {'id': '113', 'type': 'subscript', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '115', 'type': 'slice', 'children': ['116', '117']}; {'id': '116', 'type': 'colon', 'children': []}; {'id': '117', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '118', 'type': 'string', 'children': [], 'value': "'help_'"}; {'id': '119', 'type': 'block', 'children': ['120']}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '129']}; {'id': '122', 'type': 'subscript', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'help_page'}; {'id': '124', 'type': 'subscript', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '126', 'type': 'slice', 'children': ['127', '128']}; {'id': '127', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '128', 'type': 'colon', 'children': []}; {'id': '129', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'call', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'names'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'sort'}; {'id': '135', 'type': 'argument_list', 'children': []}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'assignment', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'prevname'}; {'id': '139', 'type': 'string', 'children': [], 'value': "''"}; {'id': '140', 'type': 'for_statement', 'children': ['141', '142', '143']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'names'}; {'id': '143', 'type': 'block', 'children': ['144']}; {'id': '144', 'type': 'if_statement', 'children': ['145', '152']}; {'id': '145', 'type': 'comparison_operator', 'children': ['146', '151'], 'value': '=='}; {'id': '146', 'type': 'subscript', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '148', 'type': 'slice', 'children': ['149', '150']}; {'id': '149', 'type': 'colon', 'children': []}; {'id': '150', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '151', 'type': 'string', 'children': [], 'value': "'do_'"}; {'id': '152', 'type': 'block', 'children': ['153', '159', '163', '171']}; {'id': '153', 'type': 'if_statement', 'children': ['154', '157']}; {'id': '154', 'type': 'comparison_operator', 'children': ['155', '156'], 'value': '=='}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'prevname'}; {'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': 'prevname'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'assignment', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'cmd'}; {'id': '166', 'type': 'subscript', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '168', 'type': 'slice', 'children': ['169', '170']}; {'id': '169', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '170', 'type': 'colon', 'children': []}; {'id': '171', 'type': 'if_statement', 'children': ['172', '175', '187', '203']}; {'id': '172', 'type': 'comparison_operator', 'children': ['173', '174'], 'value': 'in'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'cmd'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'help_page'}; {'id': '175', 'type': 'block', 'children': ['176', '183']}; {'id': '176', 'type': 'expression_statement', 'children': ['177']}; {'id': '177', 'type': 'call', 'children': ['178', '181']}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'cmds_doc'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '181', 'type': 'argument_list', 'children': ['182']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'cmd'}; {'id': '183', 'type': 'delete_statement', 'children': ['184']}; {'id': '184', 'type': 'subscript', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'help_page'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'cmd'}; {'id': '187', 'type': 'elif_clause', 'children': ['188', '195']}; {'id': '188', 'type': 'attribute', 'children': ['189', '194']}; {'id': '189', 'type': 'call', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '191', 'type': 'argument_list', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': '__doc__'}; {'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': 'cmds_doc'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '201', 'type': 'argument_list', 'children': ['202']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'cmd'}; {'id': '203', 'type': 'else_clause', 'children': ['204']}; {'id': '204', 'type': 'block', 'children': ['205']}; {'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': 'cmds_undoc'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '210', 'type': 'argument_list', 'children': ['211']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'cmd'}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'call', 'children': ['214', '219']}; {'id': '214', 'type': 'attribute', 'children': ['215', '218']}; {'id': '215', 'type': 'attribute', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'stdout'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '219', 'type': 'argument_list', 'children': ['220']}; {'id': '220', 'type': 'binary_operator', 'children': ['221', '222'], 'value': '%'}; {'id': '221', 'type': 'string', 'children': [], 'value': '"%s\\n"'}; {'id': '222', 'type': 'call', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '224', 'type': 'argument_list', 'children': ['225']}; {'id': '225', 'type': 'attribute', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'doc_leader'}; {'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': 'self'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'print_topics'}; {'id': '233', 'type': 'argument_list', 'children': ['234', '237', '238', '239']}; {'id': '234', 'type': 'attribute', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'doc_header'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'cmds_doc'}; {'id': '238', 'type': 'integer', 'children': [], 'value': '15'}; {'id': '239', 'type': 'integer', 'children': [], 'value': '80'}; {'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': 'self'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'print_topics'}; {'id': '245', 'type': 'argument_list', 'children': ['246', '249', '257', '258']}; {'id': '246', 'type': 'attribute', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'misc_header'}; {'id': '249', 'type': 'call', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '251', 'type': 'argument_list', 'children': ['252']}; {'id': '252', 'type': 'call', 'children': ['253', '256']}; {'id': '253', 'type': 'attribute', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'help_page'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '256', 'type': 'argument_list', 'children': []}; {'id': '257', 'type': 'integer', 'children': [], 'value': '15'}; {'id': '258', 'type': 'integer', 'children': [], 'value': '80'}; {'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': 'self'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'print_topics'}; {'id': '264', 'type': 'argument_list', 'children': ['265', '268', '269', '270']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'undoc_header'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'cmds_undoc'}; {'id': '269', 'type': 'integer', 'children': [], 'value': '15'}; {'id': '270', 'type': 'integer', 'children': [], 'value': '80'}; {'id': '271', 'type': 'for_statement', 'children': ['272', '273', '276']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'topic'}; {'id': '273', 'type': 'attribute', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'command_topics'}; {'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': 'topic_cmds'}; {'id': '280', 'type': 'subscript', 'children': ['281', '284']}; {'id': '281', 'type': 'attribute', 'children': ['282', '283']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'command_topics'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'topic'}; {'id': '285', 'type': 'expression_statement', 'children': ['286']}; {'id': '286', 'type': 'call', 'children': ['287', '290']}; {'id': '287', 'type': 'attribute', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'print_topics'}; {'id': '290', 'type': 'argument_list', 'children': ['291', '299', '300', '301']}; {'id': '291', 'type': 'call', 'children': ['292', '295']}; {'id': '292', 'type': 'attribute', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'capwords'}; {'id': '295', 'type': 'argument_list', 'children': ['296']}; {'id': '296', 'type': 'binary_operator', 'children': ['297', '298'], 'value': '+'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'topic'}; {'id': '298', 'type': 'string', 'children': [], 'value': '" commands"'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'topic_cmds'}; {'id': '300', 'type': 'integer', 'children': [], 'value': '15'}; {'id': '301', 'type': 'integer', 'children': [], 'value': '80'} | List available commands with "help" or detailed help with "help cmd". |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'refreshButton'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '14', '20', '25', '33', '60', '64', '195', '262']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'collapsed'}; {'id': '9', 'type': 'call', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'isCollapsed'}; {'id': '13', 'type': 'argument_list', 'children': []}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'btn'}; {'id': '17', 'type': 'attribute', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': '_collapseButton'}; {'id': '20', 'type': 'if_statement', 'children': ['21', '23']}; {'id': '21', 'type': 'not_operator', 'children': ['22']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'btn'}; {'id': '23', 'type': 'block', 'children': ['24']}; {'id': '24', 'type': 'return_statement', 'children': []}; {'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': 'btn'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'setMaximumSize'}; {'id': '30', 'type': 'argument_list', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'MAX_SIZE'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'MAX_SIZE'}; {'id': '33', 'type': 'if_statement', 'children': ['34', '43', '51']}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '40'], 'value': '=='}; {'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': 'orientation'}; {'id': '39', 'type': 'argument_list', 'children': []}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'Vertical'}; {'id': '43', 'type': 'block', 'children': ['44']}; {'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': 'btn'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'setMaximumHeight'}; {'id': '49', 'type': 'argument_list', 'children': ['50']}; {'id': '50', 'type': 'integer', 'children': [], 'value': '12'}; {'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': 'btn'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'setMaximumWidth'}; {'id': '58', 'type': 'argument_list', 'children': ['59']}; {'id': '59', 'type': 'integer', 'children': [], 'value': '12'}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'icon'}; {'id': '63', 'type': 'string', 'children': [], 'value': "''"}; {'id': '64', 'type': 'if_statement', 'children': ['65', '74', '134']}; {'id': '65', 'type': 'comparison_operator', 'children': ['66', '71'], 'value': '=='}; {'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': 'orientation'}; {'id': '70', 'type': 'argument_list', 'children': []}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'Vertical'}; {'id': '74', 'type': 'block', 'children': ['75']}; {'id': '75', 'type': 'if_statement', 'children': ['76', '77', '103']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'collapsed'}; {'id': '77', 'type': 'block', 'children': ['78', '87', '94']}; {'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': 'self'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'setFixedWidth'}; {'id': '83', 'type': 'argument_list', 'children': ['84']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': '_collapsedSize'}; {'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': 'btn'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'setMaximumHeight'}; {'id': '92', 'type': 'argument_list', 'children': ['93']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'MAX_SIZE'}; {'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': 'btn'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'setArrowType'}; {'id': '99', 'type': 'argument_list', 'children': ['100']}; {'id': '100', 'type': 'attribute', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'RightArrow'}; {'id': '103', 'type': 'else_clause', 'children': ['104']}; {'id': '104', 'type': 'block', 'children': ['105', '112', '118', '125']}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'call', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'setMaximumWidth'}; {'id': '110', 'type': 'argument_list', 'children': ['111']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'MAX_SIZE'}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'id': '113', 'type': 'assignment', 'children': ['114', '117']}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': '_precollapseSize'}; {'id': '117', 'type': 'None', 'children': []}; {'id': '118', 'type': 'expression_statement', 'children': ['119']}; {'id': '119', 'type': 'call', 'children': ['120', '123']}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'btn'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'setMaximumHeight'}; {'id': '123', 'type': 'argument_list', 'children': ['124']}; {'id': '124', 'type': 'integer', 'children': [], 'value': '12'}; {'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': 'btn'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'setArrowType'}; {'id': '130', 'type': 'argument_list', 'children': ['131']}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'LeftArrow'}; {'id': '134', 'type': 'else_clause', 'children': ['135']}; {'id': '135', 'type': 'block', 'children': ['136']}; {'id': '136', 'type': 'if_statement', 'children': ['137', '138', '164']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'collapsed'}; {'id': '138', 'type': 'block', 'children': ['139', '148', '155']}; {'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': 'self'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'setFixedHeight'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': '_collapsedSize'}; {'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': 'btn'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'setMaximumWidth'}; {'id': '153', 'type': 'argument_list', 'children': ['154']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'MAX_SIZE'}; {'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': 'btn'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'setArrowType'}; {'id': '160', 'type': 'argument_list', 'children': ['161']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'DownArrow'}; {'id': '164', 'type': 'else_clause', 'children': ['165']}; {'id': '165', 'type': 'block', 'children': ['166', '173', '179', '186']}; {'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': 'setMaximumHeight'}; {'id': '171', 'type': 'argument_list', 'children': ['172']}; {'id': '172', 'type': 'integer', 'children': [], 'value': '1000'}; {'id': '173', 'type': 'expression_statement', 'children': ['174']}; {'id': '174', 'type': 'assignment', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': '_precollapseSize'}; {'id': '178', 'type': 'None', 'children': []}; {'id': '179', 'type': 'expression_statement', 'children': ['180']}; {'id': '180', 'type': 'call', 'children': ['181', '184']}; {'id': '181', 'type': 'attribute', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'btn'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'setMaximumWidth'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'integer', 'children': [], 'value': '12'}; {'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': 'btn'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'setArrowType'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'UpArrow'}; {'id': '195', 'type': 'for_statement', 'children': ['196', '197', '210']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '197', 'type': 'call', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '199', 'type': 'argument_list', 'children': ['200', '201']}; {'id': '200', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '201', 'type': 'call', 'children': ['202', '209']}; {'id': '202', 'type': 'attribute', 'children': ['203', '208']}; {'id': '203', 'type': 'call', 'children': ['204', '207']}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '207', 'type': 'argument_list', 'children': []}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '209', 'type': 'argument_list', 'children': []}; {'id': '210', 'type': 'block', 'children': ['211', '224', '233']}; {'id': '211', 'type': 'expression_statement', 'children': ['212']}; {'id': '212', 'type': 'assignment', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '214', 'type': 'call', 'children': ['215', '222']}; {'id': '215', 'type': 'attribute', 'children': ['216', '221']}; {'id': '216', 'type': 'call', 'children': ['217', '220']}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '220', 'type': 'argument_list', 'children': []}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'itemAt'}; {'id': '222', 'type': 'argument_list', 'children': ['223']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '224', 'type': 'if_statement', 'children': ['225', '231']}; {'id': '225', 'type': 'not_operator', 'children': ['226']}; {'id': '226', 'type': 'call', 'children': ['227', '230']}; {'id': '227', 'type': 'attribute', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '230', 'type': 'argument_list', 'children': []}; {'id': '231', 'type': 'block', 'children': ['232']}; {'id': '232', 'type': 'continue_statement', 'children': []}; {'id': '233', 'type': 'if_statement', 'children': ['234', '235', '248']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'collapsed'}; {'id': '235', 'type': 'block', 'children': ['236']}; {'id': '236', 'type': 'expression_statement', 'children': ['237']}; {'id': '237', 'type': 'call', 'children': ['238', '245']}; {'id': '238', 'type': 'attribute', 'children': ['239', '244']}; {'id': '239', 'type': 'call', 'children': ['240', '243']}; {'id': '240', 'type': 'attribute', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '243', 'type': 'argument_list', 'children': []}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'setMaximumSize'}; {'id': '245', 'type': 'argument_list', 'children': ['246', '247']}; {'id': '246', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '247', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '248', 'type': 'else_clause', 'children': ['249']}; {'id': '249', 'type': 'block', 'children': ['250']}; {'id': '250', 'type': 'expression_statement', 'children': ['251']}; {'id': '251', 'type': 'call', 'children': ['252', '259']}; {'id': '252', 'type': 'attribute', 'children': ['253', '258']}; {'id': '253', 'type': 'call', 'children': ['254', '257']}; {'id': '254', 'type': 'attribute', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '257', 'type': 'argument_list', 'children': []}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'setMaximumSize'}; {'id': '259', 'type': 'argument_list', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'MAX_SIZE'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'MAX_SIZE'}; {'id': '262', 'type': 'if_statement', 'children': ['263', '269', '276']}; {'id': '263', 'type': 'not_operator', 'children': ['264']}; {'id': '264', 'type': 'call', 'children': ['265', '268']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'isCollapsable'}; {'id': '268', 'type': 'argument_list', 'children': []}; {'id': '269', 'type': 'block', 'children': ['270']}; {'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': 'btn'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'hide'}; {'id': '275', 'type': 'argument_list', 'children': []}; {'id': '276', 'type': 'else_clause', 'children': ['277']}; {'id': '277', 'type': 'block', 'children': ['278']}; {'id': '278', 'type': 'expression_statement', 'children': ['279']}; {'id': '279', 'type': 'call', 'children': ['280', '283']}; {'id': '280', 'type': 'attribute', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'btn'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'show'}; {'id': '283', 'type': 'argument_list', 'children': []} | Refreshes the button for this toolbar. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'applyCommand'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '14', '23', '42', '50', '62', '72', '447', '454']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '9', 'type': 'call', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'textCursor'}; {'id': '13', 'type': 'argument_list', 'children': []}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'call', 'children': ['16', '19']}; {'id': '16', 'type': 'attribute', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'movePosition'}; {'id': '19', 'type': 'argument_list', 'children': ['20']}; {'id': '20', 'type': 'attribute', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'EndOfLine'}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'line'}; {'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': 'projex'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'nativestring'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'call', 'children': ['34', '41']}; {'id': '34', 'type': 'attribute', 'children': ['35', '40']}; {'id': '35', 'type': 'call', 'children': ['36', '39']}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'block'}; {'id': '39', 'type': 'argument_list', 'children': []}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '41', 'type': 'argument_list', 'children': []}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'at_end'}; {'id': '45', 'type': 'call', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'atEnd'}; {'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': 'modifiers'}; {'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': 'QApplication'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'instance'}; {'id': '59', 'type': 'argument_list', 'children': []}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'keyboardModifiers'}; {'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': 'mod_mode'}; {'id': '65', 'type': 'boolean_operator', 'children': ['66', '67'], 'value': 'or'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'at_end'}; {'id': '67', 'type': 'comparison_operator', 'children': ['68', '69'], 'value': '=='}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'modifiers'}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'ShiftModifier'}; {'id': '72', 'type': 'if_statement', 'children': ['73', '81', '144', '216', '437']}; {'id': '73', 'type': 'boolean_operator', 'children': ['74', '75'], 'value': 'and'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'mod_mode'}; {'id': '75', 'type': 'call', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '79', 'type': 'argument_list', 'children': ['80']}; {'id': '80', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '81', 'type': 'block', 'children': ['82', '91', '102', '113', '131', '142']}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'call', 'children': ['84', '87']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'movePosition'}; {'id': '87', 'type': 'argument_list', 'children': ['88']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'EndOfLine'}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'assignment', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '98', 'type': 'argument_list', 'children': ['99', '100', '101']}; {'id': '99', 'type': 'string', 'children': [], 'value': "'^>>> '"}; {'id': '100', 'type': 'string', 'children': [], 'value': "''"}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'assignment', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '105', 'type': 'call', 'children': ['106', '109']}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '109', 'type': 'argument_list', 'children': ['110', '111', '112']}; {'id': '110', 'type': 'string', 'children': [], 'value': "'^\\.\\.\\. '"}; {'id': '111', 'type': 'string', 'children': [], 'value': "''"}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '116', 'type': 'binary_operator', 'children': ['117', '130'], 'value': '+'}; {'id': '117', 'type': 'binary_operator', 'children': ['118', '122'], 'value': '-'}; {'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': 'line'}; {'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': 'line'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'lstrip'}; {'id': '129', 'type': 'argument_list', 'children': []}; {'id': '130', 'type': 'integer', 'children': [], 'value': '4'}; {'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': 'self'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'insertPlainText'}; {'id': '136', 'type': 'argument_list', 'children': ['137']}; {'id': '137', 'type': 'binary_operator', 'children': ['138', '139'], 'value': '+'}; {'id': '138', 'type': 'string', 'children': [], 'value': "'\\n... '"}; {'id': '139', 'type': 'binary_operator', 'children': ['140', '141'], 'value': '*'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '141', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '142', 'type': 'return_statement', 'children': ['143']}; {'id': '143', 'type': 'False', 'children': []}; {'id': '144', 'type': 'elif_clause', 'children': ['145', '166']}; {'id': '145', 'type': 'boolean_operator', 'children': ['146', '154', '155'], 'value': 'and'}; {'id': '146', 'type': 'boolean_operator', 'children': ['147', '148'], 'value': 'and'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'mod_mode'}; {'id': '148', 'type': 'call', 'children': ['149', '152']}; {'id': '149', 'type': 'attribute', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '152', 'type': 'argument_list', 'children': ['153']}; {'id': '153', 'type': 'string', 'children': [], 'value': "'...'"}; {'id': '154', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '155', 'type': '()', 'children': ['156']}; {'id': '156', 'type': 'boolean_operator', 'children': ['157', '164'], 'value': 'or'}; {'id': '157', 'type': 'comparison_operator', 'children': ['158', '163'], 'value': '!='}; {'id': '158', 'type': 'call', 'children': ['159', '162']}; {'id': '159', 'type': 'attribute', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '162', 'type': 'argument_list', 'children': []}; {'id': '163', 'type': 'string', 'children': [], 'value': "'...'"}; {'id': '164', 'type': 'not_operator', 'children': ['165']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'at_end'}; {'id': '166', 'type': 'block', 'children': ['167', '176', '187', '203', '214']}; {'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': 'cursor'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'movePosition'}; {'id': '172', 'type': 'argument_list', 'children': ['173']}; {'id': '173', 'type': 'attribute', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'EndOfLine'}; {'id': '176', 'type': 'expression_statement', 'children': ['177']}; {'id': '177', 'type': 'assignment', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '179', 'type': 'call', 'children': ['180', '183']}; {'id': '180', 'type': 'attribute', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '183', 'type': 'argument_list', 'children': ['184', '185', '186']}; {'id': '184', 'type': 'string', 'children': [], 'value': "'^\\.\\.\\. '"}; {'id': '185', 'type': 'string', 'children': [], 'value': "''"}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'assignment', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '190', 'type': 'binary_operator', 'children': ['191', '195'], 'value': '-'}; {'id': '191', 'type': 'call', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '193', 'type': 'argument_list', 'children': ['194']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '195', 'type': 'call', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '197', 'type': 'argument_list', 'children': ['198']}; {'id': '198', 'type': 'call', 'children': ['199', '202']}; {'id': '199', 'type': 'attribute', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'lstrip'}; {'id': '202', 'type': 'argument_list', 'children': []}; {'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': 'self'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'insertPlainText'}; {'id': '208', 'type': 'argument_list', 'children': ['209']}; {'id': '209', 'type': 'binary_operator', 'children': ['210', '211'], 'value': '+'}; {'id': '210', 'type': 'string', 'children': [], 'value': "'\\n... '"}; {'id': '211', 'type': 'binary_operator', 'children': ['212', '213'], 'value': '*'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '213', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '214', 'type': 'return_statement', 'children': ['215']}; {'id': '215', 'type': 'False', 'children': []}; {'id': '216', 'type': 'elif_clause', 'children': ['217', '230']}; {'id': '217', 'type': 'boolean_operator', 'children': ['218', '224'], 'value': 'or'}; {'id': '218', 'type': 'call', 'children': ['219', '222']}; {'id': '219', 'type': 'attribute', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '222', 'type': 'argument_list', 'children': ['223']}; {'id': '223', 'type': 'string', 'children': [], 'value': "'>>>'"}; {'id': '224', 'type': 'call', 'children': ['225', '228']}; {'id': '225', 'type': 'attribute', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '228', 'type': 'argument_list', 'children': ['229']}; {'id': '229', 'type': 'string', 'children': [], 'value': "'...'"}; {'id': '230', 'type': 'block', 'children': ['231', '250', '286', '295', '314', '318', '322', '391', '400']}; {'id': '231', 'type': 'expression_statement', 'children': ['232']}; {'id': '232', 'type': 'assignment', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '234', 'type': 'call', 'children': ['235', '240']}; {'id': '235', 'type': 'attribute', 'children': ['236', '239']}; {'id': '236', 'type': 'attribute', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'projex'}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'nativestring'}; {'id': '240', 'type': 'argument_list', 'children': ['241']}; {'id': '241', 'type': 'call', 'children': ['242', '249']}; {'id': '242', 'type': 'attribute', 'children': ['243', '248']}; {'id': '243', 'type': 'call', 'children': ['244', '247']}; {'id': '244', 'type': 'attribute', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'block'}; {'id': '247', 'type': 'argument_list', 'children': []}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '249', 'type': 'argument_list', 'children': []}; {'id': '250', 'type': 'while_statement', 'children': ['251', '257']}; {'id': '251', 'type': 'call', 'children': ['252', '255']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '255', 'type': 'argument_list', 'children': ['256']}; {'id': '256', 'type': 'string', 'children': [], 'value': "'...'"}; {'id': '257', 'type': 'block', 'children': ['258', '267']}; {'id': '258', 'type': 'expression_statement', 'children': ['259']}; {'id': '259', 'type': 'call', 'children': ['260', '263']}; {'id': '260', 'type': 'attribute', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'movePosition'}; {'id': '263', 'type': 'argument_list', 'children': ['264']}; {'id': '264', 'type': 'attribute', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'PreviousBlock'}; {'id': '267', 'type': 'expression_statement', 'children': ['268']}; {'id': '268', 'type': 'assignment', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'line'}; {'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': 'projex'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'nativestring'}; {'id': '276', 'type': 'argument_list', 'children': ['277']}; {'id': '277', 'type': 'call', 'children': ['278', '285']}; {'id': '278', 'type': 'attribute', 'children': ['279', '284']}; {'id': '279', 'type': 'call', 'children': ['280', '283']}; {'id': '280', 'type': 'attribute', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'block'}; {'id': '283', 'type': 'argument_list', 'children': []}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '285', 'type': 'argument_list', 'children': []}; {'id': '286', 'type': 'expression_statement', 'children': ['287']}; {'id': '287', 'type': 'call', 'children': ['288', '291']}; {'id': '288', 'type': 'attribute', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'movePosition'}; {'id': '291', 'type': 'argument_list', 'children': ['292']}; {'id': '292', 'type': 'attribute', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'EndOfLine'}; {'id': '295', 'type': 'expression_statement', 'children': ['296']}; {'id': '296', 'type': 'assignment', 'children': ['297', '298']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '298', 'type': 'call', 'children': ['299', '304']}; {'id': '299', 'type': 'attribute', 'children': ['300', '303']}; {'id': '300', 'type': 'attribute', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'projex'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'nativestring'}; {'id': '304', 'type': 'argument_list', 'children': ['305']}; {'id': '305', 'type': 'call', 'children': ['306', '313']}; {'id': '306', 'type': 'attribute', 'children': ['307', '312']}; {'id': '307', 'type': 'call', 'children': ['308', '311']}; {'id': '308', 'type': 'attribute', 'children': ['309', '310']}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'block'}; {'id': '311', 'type': 'argument_list', 'children': []}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '313', 'type': 'argument_list', 'children': []}; {'id': '314', 'type': 'expression_statement', 'children': ['315']}; {'id': '315', 'type': 'assignment', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'ended'}; {'id': '317', 'type': 'False', 'children': []}; {'id': '318', 'type': 'expression_statement', 'children': ['319']}; {'id': '319', 'type': 'assignment', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '321', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '322', 'type': 'while_statement', 'children': ['323', '324']}; {'id': '323', 'type': 'True', 'children': []}; {'id': '324', 'type': 'block', 'children': ['325', '332', '344', '353', '362', '381']}; {'id': '325', 'type': 'expression_statement', 'children': ['326']}; {'id': '326', 'type': 'call', 'children': ['327', '330']}; {'id': '327', 'type': 'attribute', 'children': ['328', '329']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '330', 'type': 'argument_list', 'children': ['331']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '332', 'type': 'if_statement', 'children': ['333', '338']}; {'id': '333', 'type': 'call', 'children': ['334', '337']}; {'id': '334', 'type': 'attribute', 'children': ['335', '336']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'atEnd'}; {'id': '337', 'type': 'argument_list', 'children': []}; {'id': '338', 'type': 'block', 'children': ['339', '343']}; {'id': '339', 'type': 'expression_statement', 'children': ['340']}; {'id': '340', 'type': 'assignment', 'children': ['341', '342']}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'ended'}; {'id': '342', 'type': 'True', 'children': []}; {'id': '343', 'type': 'break_statement', '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': 'cursor'}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'movePosition'}; {'id': '349', 'type': 'argument_list', 'children': ['350']}; {'id': '350', 'type': 'attribute', 'children': ['351', '352']}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'NextBlock'}; {'id': '353', 'type': 'expression_statement', 'children': ['354']}; {'id': '354', 'type': 'call', 'children': ['355', '358']}; {'id': '355', 'type': 'attribute', 'children': ['356', '357']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'movePosition'}; {'id': '358', 'type': 'argument_list', 'children': ['359']}; {'id': '359', 'type': 'attribute', 'children': ['360', '361']}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'EndOfLine'}; {'id': '362', 'type': 'expression_statement', 'children': ['363']}; {'id': '363', 'type': 'assignment', 'children': ['364', '365']}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '365', 'type': 'call', 'children': ['366', '371']}; {'id': '366', 'type': 'attribute', 'children': ['367', '370']}; {'id': '367', 'type': 'attribute', 'children': ['368', '369']}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'projex'}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '370', 'type': 'identifier', 'children': [], 'value': 'nativestring'}; {'id': '371', 'type': 'argument_list', 'children': ['372']}; {'id': '372', 'type': 'call', 'children': ['373', '380']}; {'id': '373', 'type': 'attribute', 'children': ['374', '379']}; {'id': '374', 'type': 'call', 'children': ['375', '378']}; {'id': '375', 'type': 'attribute', 'children': ['376', '377']}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'block'}; {'id': '378', 'type': 'argument_list', 'children': []}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '380', 'type': 'argument_list', 'children': []}; {'id': '381', 'type': 'if_statement', 'children': ['382', '389']}; {'id': '382', 'type': 'not_operator', 'children': ['383']}; {'id': '383', 'type': 'call', 'children': ['384', '387']}; {'id': '384', 'type': 'attribute', 'children': ['385', '386']}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '387', 'type': 'argument_list', 'children': ['388']}; {'id': '388', 'type': 'string', 'children': [], 'value': "'...'"}; {'id': '389', 'type': 'block', 'children': ['390']}; {'id': '390', 'type': 'break_statement', 'children': []}; {'id': '391', 'type': 'expression_statement', 'children': ['392']}; {'id': '392', 'type': 'assignment', 'children': ['393', '394']}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '394', 'type': 'call', 'children': ['395', '398']}; {'id': '395', 'type': 'attribute', 'children': ['396', '397']}; {'id': '396', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '397', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '398', 'type': 'argument_list', 'children': ['399']}; {'id': '399', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '400', 'type': 'if_statement', 'children': ['401', '406']}; {'id': '401', 'type': 'not_operator', 'children': ['402']}; {'id': '402', 'type': '()', 'children': ['403']}; {'id': '403', 'type': 'boolean_operator', 'children': ['404', '405'], 'value': 'and'}; {'id': '404', 'type': 'identifier', 'children': [], 'value': 'ended'}; {'id': '405', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '406', 'type': 'block', 'children': ['407', '413', '426', '435']}; {'id': '407', 'type': 'expression_statement', 'children': ['408']}; {'id': '408', 'type': 'call', 'children': ['409', '412']}; {'id': '409', 'type': 'attribute', 'children': ['410', '411']}; {'id': '410', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'waitForInput'}; {'id': '412', 'type': 'argument_list', 'children': []}; {'id': '413', 'type': 'expression_statement', 'children': ['414']}; {'id': '414', 'type': 'call', 'children': ['415', '418']}; {'id': '415', 'type': 'attribute', 'children': ['416', '417']}; {'id': '416', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '417', 'type': 'identifier', 'children': [], 'value': 'insertPlainText'}; {'id': '418', 'type': 'argument_list', 'children': ['419']}; {'id': '419', 'type': 'call', 'children': ['420', '423']}; {'id': '420', 'type': 'attribute', 'children': ['421', '422']}; {'id': '421', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '423', 'type': 'argument_list', 'children': ['424', '425']}; {'id': '424', 'type': 'string', 'children': [], 'value': "'>>> '"}; {'id': '425', 'type': 'string', 'children': [], 'value': "''"}; {'id': '426', 'type': 'expression_statement', 'children': ['427']}; {'id': '427', 'type': 'call', 'children': ['428', '431']}; {'id': '428', 'type': 'attribute', 'children': ['429', '430']}; {'id': '429', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '430', 'type': 'identifier', 'children': [], 'value': 'movePosition'}; {'id': '431', 'type': 'argument_list', 'children': ['432']}; {'id': '432', 'type': 'attribute', 'children': ['433', '434']}; {'id': '433', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '434', 'type': 'identifier', 'children': [], 'value': 'End'}; {'id': '435', 'type': 'return_statement', 'children': ['436']}; {'id': '436', 'type': 'False', 'children': []}; {'id': '437', 'type': 'else_clause', 'children': ['438']}; {'id': '438', 'type': 'block', 'children': ['439', '445']}; {'id': '439', 'type': 'expression_statement', 'children': ['440']}; {'id': '440', 'type': 'call', 'children': ['441', '444']}; {'id': '441', 'type': 'attribute', 'children': ['442', '443']}; {'id': '442', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '443', 'type': 'identifier', 'children': [], 'value': 'waitForInput'}; {'id': '444', 'type': 'argument_list', 'children': []}; {'id': '445', 'type': 'return_statement', 'children': ['446']}; {'id': '446', 'type': 'False', 'children': []}; {'id': '447', 'type': 'expression_statement', 'children': ['448']}; {'id': '448', 'type': 'call', 'children': ['449', '452']}; {'id': '449', 'type': 'attribute', 'children': ['450', '451']}; {'id': '450', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '451', 'type': 'identifier', 'children': [], 'value': 'executeCommand'}; {'id': '452', 'type': 'argument_list', 'children': ['453']}; {'id': '453', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '454', 'type': 'return_statement', 'children': ['455']}; {'id': '455', 'type': 'True', 'children': []} | Applies the current line of code as an interactive python command. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'base64_process'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'dictionary_splat_pattern', 'children': ['5']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '6', 'type': 'block', 'children': ['7', '11', '15', '19', '23', '69', '151']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'str_fileToSave'}; {'id': '10', 'type': 'string', 'children': [], 'value': '""'}; {'id': '11', 'type': 'expression_statement', 'children': ['12']}; {'id': '12', 'type': 'assignment', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'str_fileToRead'}; {'id': '14', 'type': 'string', 'children': [], 'value': '""'}; {'id': '15', 'type': 'expression_statement', 'children': ['16']}; {'id': '16', 'type': 'assignment', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'str_action'}; {'id': '18', 'type': 'string', 'children': [], 'value': '"encode"'}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'assignment', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '22', 'type': 'None', 'children': []}; {'id': '23', 'type': 'for_statement', 'children': ['24', '27', '32']}; {'id': '24', 'type': 'pattern_list', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '27', 'type': 'call', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '31', 'type': 'argument_list', 'children': []}; {'id': '32', 'type': 'block', 'children': ['33', '42', '51', '60']}; {'id': '33', 'type': 'if_statement', 'children': ['34', '37']}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '36'], 'value': '=='}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '36', 'type': 'string', 'children': [], 'value': "'action'"}; {'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': 'str_action'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '42', 'type': 'if_statement', 'children': ['43', '46']}; {'id': '43', 'type': 'comparison_operator', 'children': ['44', '45'], 'value': '=='}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '45', 'type': 'string', 'children': [], 'value': "'payloadBytes'"}; {'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': 'data'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '51', 'type': 'if_statement', 'children': ['52', '55']}; {'id': '52', 'type': 'comparison_operator', 'children': ['53', '54'], 'value': '=='}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '54', 'type': 'string', 'children': [], 'value': "'payloadFile'"}; {'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': 'str_fileToRead'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '60', 'type': 'if_statement', 'children': ['61', '64']}; {'id': '61', 'type': 'comparison_operator', 'children': ['62', '63'], 'value': '=='}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '63', 'type': 'string', 'children': [], 'value': "'saveToFile'"}; {'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': 'str_fileToSave'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '69', 'type': 'if_statement', 'children': ['70', '73']}; {'id': '70', 'type': 'comparison_operator', 'children': ['71', '72'], 'value': '=='}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'str_action'}; {'id': '72', 'type': 'string', 'children': [], 'value': '"encode"'}; {'id': '73', 'type': 'block', 'children': ['74', '106', '115', '140']}; {'id': '74', 'type': 'if_statement', 'children': ['75', '79']}; {'id': '75', 'type': 'call', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '77', 'type': 'argument_list', 'children': ['78']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'str_fileToRead'}; {'id': '79', 'type': 'block', 'children': ['80']}; {'id': '80', 'type': 'with_statement', 'children': ['81', '91']}; {'id': '81', 'type': 'with_clause', 'children': ['82']}; {'id': '82', 'type': 'with_item', 'children': ['83']}; {'id': '83', 'type': 'as_pattern', 'children': ['84', '89']}; {'id': '84', 'type': 'call', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '86', 'type': 'argument_list', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'str_fileToRead'}; {'id': '88', 'type': 'string', 'children': [], 'value': "'rb'"}; {'id': '89', 'type': 'as_pattern_target', 'children': ['90']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '91', 'type': 'block', 'children': ['92', '100']}; {'id': '92', 'type': 'expression_statement', 'children': ['93']}; {'id': '93', 'type': 'assignment', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '95', 'type': 'call', 'children': ['96', '99']}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '99', 'type': 'argument_list', 'children': []}; {'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': 'f'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '105', 'type': 'argument_list', 'children': []}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'data_b64'}; {'id': '109', 'type': 'call', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'base64'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'b64encode'}; {'id': '113', 'type': 'argument_list', 'children': ['114']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '115', 'type': 'with_statement', 'children': ['116', '126']}; {'id': '116', 'type': 'with_clause', 'children': ['117']}; {'id': '117', 'type': 'with_item', 'children': ['118']}; {'id': '118', 'type': 'as_pattern', 'children': ['119', '124']}; {'id': '119', 'type': 'call', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '121', 'type': 'argument_list', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'str_fileToSave'}; {'id': '123', 'type': 'string', 'children': [], 'value': "'wb'"}; {'id': '124', 'type': 'as_pattern_target', 'children': ['125']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '126', 'type': 'block', 'children': ['127', '134']}; {'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': 'f'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '132', 'type': 'argument_list', 'children': ['133']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'data_b64'}; {'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': 'f'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '139', 'type': 'argument_list', 'children': []}; {'id': '140', 'type': 'return_statement', 'children': ['141']}; {'id': '141', 'type': 'dictionary', 'children': ['142', '145', '148']}; {'id': '142', 'type': 'pair', 'children': ['143', '144']}; {'id': '143', 'type': 'string', 'children': [], 'value': "'msg'"}; {'id': '144', 'type': 'string', 'children': [], 'value': "'Encode successful'"}; {'id': '145', 'type': 'pair', 'children': ['146', '147']}; {'id': '146', 'type': 'string', 'children': [], 'value': "'fileProcessed'"}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'str_fileToSave'}; {'id': '148', 'type': 'pair', 'children': ['149', '150']}; {'id': '149', 'type': 'string', 'children': [], 'value': "'status'"}; {'id': '150', 'type': 'True', 'children': []}; {'id': '151', 'type': 'if_statement', 'children': ['152', '155']}; {'id': '152', 'type': 'comparison_operator', 'children': ['153', '154'], 'value': '=='}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'str_action'}; {'id': '154', 'type': 'string', 'children': [], 'value': '"decode"'}; {'id': '155', 'type': 'block', 'children': ['156', '167', '192']}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'assignment', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'bytes_decoded'}; {'id': '159', 'type': 'call', 'children': ['160', '163']}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'base64'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'b64decode'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'binary_operator', 'children': ['165', '166'], 'value': '+'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '166', 'type': 'string', 'children': [], 'value': '"==="'}; {'id': '167', 'type': 'with_statement', 'children': ['168', '178']}; {'id': '168', 'type': 'with_clause', 'children': ['169']}; {'id': '169', 'type': 'with_item', 'children': ['170']}; {'id': '170', 'type': 'as_pattern', 'children': ['171', '176']}; {'id': '171', 'type': 'call', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '173', 'type': 'argument_list', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'str_fileToSave'}; {'id': '175', 'type': 'string', 'children': [], 'value': "'wb'"}; {'id': '176', 'type': 'as_pattern_target', 'children': ['177']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '178', 'type': 'block', 'children': ['179', '186']}; {'id': '179', 'type': 'expression_statement', 'children': ['180']}; {'id': '180', 'type': 'call', 'children': ['181', '184']}; {'id': '181', 'type': 'attribute', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'bytes_decoded'}; {'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': 'f'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '191', 'type': 'argument_list', 'children': []}; {'id': '192', 'type': 'return_statement', 'children': ['193']}; {'id': '193', 'type': 'dictionary', 'children': ['194', '197', '200']}; {'id': '194', 'type': 'pair', 'children': ['195', '196']}; {'id': '195', 'type': 'string', 'children': [], 'value': "'msg'"}; {'id': '196', 'type': 'string', 'children': [], 'value': "'Decode successful'"}; {'id': '197', 'type': 'pair', 'children': ['198', '199']}; {'id': '198', 'type': 'string', 'children': [], 'value': "'fileProcessed'"}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'str_fileToSave'}; {'id': '200', 'type': 'pair', 'children': ['201', '202']}; {'id': '201', 'type': 'string', 'children': [], 'value': "'status'"}; {'id': '202', 'type': 'True', 'children': []} | Process base64 file io |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'rebuild'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '14', '25', '87', '115', '122', '130', '138', '156', '162', '342', '349']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '9', 'type': 'call', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'tableType'}; {'id': '13', 'type': 'argument_list', 'children': []}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '17', 'type': 'call', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'nativestring'}; {'id': '19', 'type': 'argument_list', 'children': ['20']}; {'id': '20', 'type': 'call', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'filterFormat'}; {'id': '24', 'type': 'argument_list', 'children': []}; {'id': '25', 'type': 'if_statement', 'children': ['26', '30', '82']}; {'id': '26', 'type': 'boolean_operator', 'children': ['27', '29'], 'value': 'and'}; {'id': '27', 'type': 'not_operator', 'children': ['28']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '30', 'type': 'block', 'children': ['31', '81']}; {'id': '31', 'type': 'if_statement', 'children': ['32', '43', '59']}; {'id': '32', 'type': 'comparison_operator', 'children': ['33', '42'], 'value': '=='}; {'id': '33', 'type': 'call', 'children': ['34', '41']}; {'id': '34', 'type': 'attribute', 'children': ['35', '40']}; {'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': 'layout'}; {'id': '39', 'type': 'argument_list', 'children': []}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '41', 'type': 'argument_list', 'children': []}; {'id': '42', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '43', 'type': 'block', 'children': ['44']}; {'id': '44', 'type': 'expression_statement', 'children': ['45']}; {'id': '45', 'type': 'call', 'children': ['46', '53']}; {'id': '46', 'type': 'attribute', 'children': ['47', '52']}; {'id': '47', 'type': 'call', 'children': ['48', '51']}; {'id': '48', 'type': 'attribute', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '51', 'type': 'argument_list', 'children': []}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'addWidget'}; {'id': '53', 'type': 'argument_list', 'children': ['54']}; {'id': '54', 'type': 'call', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'QLabel'}; {'id': '56', 'type': 'argument_list', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '59', 'type': 'else_clause', 'children': ['60']}; {'id': '60', 'type': 'block', 'children': ['61']}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'call', 'children': ['63', '79']}; {'id': '63', 'type': 'attribute', 'children': ['64', '78']}; {'id': '64', 'type': 'call', 'children': ['65', '77']}; {'id': '65', 'type': 'attribute', 'children': ['66', '76']}; {'id': '66', 'type': 'call', 'children': ['67', '74']}; {'id': '67', 'type': 'attribute', 'children': ['68', '73']}; {'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': 'layout'}; {'id': '72', 'type': 'argument_list', 'children': []}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'itemAt'}; {'id': '74', 'type': 'argument_list', 'children': ['75']}; {'id': '75', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '77', 'type': 'argument_list', 'children': []}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'setText'}; {'id': '79', 'type': 'argument_list', 'children': ['80']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '81', 'type': 'return_statement', 'children': []}; {'id': '82', 'type': 'elif_clause', 'children': ['83', '85']}; {'id': '83', 'type': 'not_operator', 'children': ['84']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '85', 'type': 'block', 'children': ['86']}; {'id': '86', 'type': 'return_statement', 'children': []}; {'id': '87', 'type': 'for_statement', 'children': ['88', '89', '95']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '89', 'type': 'call', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'findChildren'}; {'id': '93', 'type': 'argument_list', 'children': ['94']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'QWidget'}; {'id': '95', 'type': 'block', 'children': ['96', '102', '109']}; {'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': 'child'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '101', 'type': 'argument_list', 'children': []}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'call', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'setParent'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'None', 'children': []}; {'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': 'child'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'deleteLater'}; {'id': '114', 'type': 'argument_list', 'children': []}; {'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': 'self'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'setUpdatesEnabled'}; {'id': '120', 'type': 'argument_list', 'children': ['121']}; {'id': '121', 'type': 'False', 'children': []}; {'id': '122', 'type': 'expression_statement', 'children': ['123']}; {'id': '123', 'type': 'assignment', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '125', 'type': 'call', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '129', 'type': 'argument_list', 'children': []}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'assignment', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'vlayout'}; {'id': '133', 'type': 'call', 'children': ['134', '137']}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '137', 'type': 'argument_list', 'children': []}; {'id': '138', 'type': 'for_statement', 'children': ['139', '140', '148']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '140', 'type': 'call', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'range'}; {'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': 'vlayout'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '147', 'type': 'argument_list', 'children': []}; {'id': '148', 'type': 'block', 'children': ['149']}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'call', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'vlayout'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'takeAt'}; {'id': '154', 'type': 'argument_list', 'children': ['155']}; {'id': '155', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'assignment', 'children': ['158', '161']}; {'id': '158', 'type': 'attribute', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': '_plugins'}; {'id': '161', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '162', 'type': 'for_statement', 'children': ['163', '164', '170']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '164', 'type': 'call', 'children': ['165', '168']}; {'id': '165', 'type': 'attribute', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '168', 'type': 'argument_list', 'children': ['169']}; {'id': '169', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '170', 'type': 'block', 'children': ['171', '177', '187', '194', '328', '335']}; {'id': '171', 'type': 'expression_statement', 'children': ['172']}; {'id': '172', 'type': 'assignment', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '174', 'type': 'call', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'QHBoxLayout'}; {'id': '176', 'type': 'argument_list', 'children': []}; {'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': 'row'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'setContentsMargins'}; {'id': '182', 'type': 'argument_list', 'children': ['183', '184', '185', '186']}; {'id': '183', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '184', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '185', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '186', 'type': 'integer', 'children': [], 'value': '0'}; {'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': 'row'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'setSpacing'}; {'id': '192', 'type': 'argument_list', 'children': ['193']}; {'id': '193', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '194', 'type': 'for_statement', 'children': ['195', '198', '204']}; {'id': '195', 'type': 'pattern_list', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'lookup'}; {'id': '198', 'type': 'call', 'children': ['199', '202']}; {'id': '199', 'type': 'attribute', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'FORMAT_SPLITTER'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'findall'}; {'id': '202', 'type': 'argument_list', 'children': ['203']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '204', 'type': 'block', 'children': ['205', '213', '220', '229', '244', '255', '260', '273', '278', '292']}; {'id': '205', 'type': 'expression_statement', 'children': ['206']}; {'id': '206', 'type': 'assignment', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'lbl'}; {'id': '208', 'type': 'call', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'QLabel'}; {'id': '210', 'type': 'argument_list', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'self'}; {'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': 'row'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'addWidget'}; {'id': '218', 'type': 'argument_list', 'children': ['219']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'lbl'}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'assignment', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'opts'}; {'id': '223', 'type': 'call', 'children': ['224', '227']}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'lookup'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '227', 'type': 'argument_list', 'children': ['228']}; {'id': '228', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '229', 'type': 'if_statement', 'children': ['230', '236']}; {'id': '230', 'type': 'comparison_operator', 'children': ['231', '235'], 'value': '=='}; {'id': '231', 'type': 'call', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '233', 'type': 'argument_list', 'children': ['234']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'opts'}; {'id': '235', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '236', 'type': 'block', 'children': ['237']}; {'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': 'opts'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '242', 'type': 'argument_list', 'children': ['243']}; {'id': '243', 'type': 'string', 'children': [], 'value': "'is'"}; {'id': '244', 'type': 'expression_statement', 'children': ['245']}; {'id': '245', 'type': 'assignment', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '247', 'type': 'call', 'children': ['248', '251']}; {'id': '248', 'type': 'attribute', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '251', 'type': 'argument_list', 'children': ['252']}; {'id': '252', 'type': 'subscript', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'opts'}; {'id': '254', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '255', 'type': 'if_statement', 'children': ['256', '258']}; {'id': '256', 'type': 'not_operator', 'children': ['257']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '258', 'type': 'block', 'children': ['259']}; {'id': '259', 'type': 'continue_statement', 'children': []}; {'id': '260', 'type': 'expression_statement', 'children': ['261']}; {'id': '261', 'type': 'assignment', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'plugin'}; {'id': '263', 'type': 'call', 'children': ['264', '271']}; {'id': '264', 'type': 'attribute', 'children': ['265', '270']}; {'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': 'pluginFactory'}; {'id': '269', 'type': 'argument_list', 'children': []}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'plugin'}; {'id': '271', 'type': 'argument_list', 'children': ['272']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '273', 'type': 'if_statement', 'children': ['274', '276']}; {'id': '274', 'type': 'not_operator', 'children': ['275']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'plugin'}; {'id': '276', 'type': 'block', 'children': ['277']}; {'id': '277', 'type': 'continue_statement', 'children': []}; {'id': '278', 'type': 'expression_statement', 'children': ['279']}; {'id': '279', 'type': 'assignment', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'editor'}; {'id': '281', 'type': 'call', 'children': ['282', '285']}; {'id': '282', 'type': 'attribute', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'plugin'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'createEditor'}; {'id': '285', 'type': 'argument_list', 'children': ['286', '287', '288', '291']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '288', 'type': 'subscript', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'opts'}; {'id': '290', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '291', 'type': 'None', 'children': []}; {'id': '292', 'type': 'if_statement', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'editor'}; {'id': '294', 'type': 'block', 'children': ['295', '304', '311']}; {'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': 'editor'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'setObjectName'}; {'id': '300', 'type': 'argument_list', 'children': ['301']}; {'id': '301', 'type': 'subscript', 'children': ['302', '303']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'opts'}; {'id': '303', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '304', 'type': 'expression_statement', 'children': ['305']}; {'id': '305', 'type': 'call', 'children': ['306', '309']}; {'id': '306', 'type': 'attribute', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'addWidget'}; {'id': '309', 'type': 'argument_list', 'children': ['310']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'editor'}; {'id': '311', 'type': 'expression_statement', 'children': ['312']}; {'id': '312', 'type': 'call', 'children': ['313', '318']}; {'id': '313', 'type': 'attribute', 'children': ['314', '317']}; {'id': '314', 'type': 'attribute', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '316', 'type': 'identifier', 'children': [], 'value': '_plugins'}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '318', 'type': 'argument_list', 'children': ['319']}; {'id': '319', 'type': 'tuple', 'children': ['320', '323', '326', '327']}; {'id': '320', 'type': 'subscript', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'opts'}; {'id': '322', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '323', 'type': 'subscript', 'children': ['324', '325']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'opts'}; {'id': '325', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'plugin'}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'editor'}; {'id': '328', 'type': 'expression_statement', 'children': ['329']}; {'id': '329', 'type': 'call', 'children': ['330', '333']}; {'id': '330', 'type': 'attribute', 'children': ['331', '332']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'addStretch'}; {'id': '333', 'type': 'argument_list', 'children': ['334']}; {'id': '334', 'type': 'integer', 'children': [], 'value': '1'}; {'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': 'vlayout'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'addLayout'}; {'id': '340', 'type': 'argument_list', 'children': ['341']}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '342', 'type': 'expression_statement', 'children': ['343']}; {'id': '343', 'type': 'call', 'children': ['344', '347']}; {'id': '344', 'type': 'attribute', 'children': ['345', '346']}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'setUpdatesEnabled'}; {'id': '347', 'type': 'argument_list', 'children': ['348']}; {'id': '348', 'type': 'True', 'children': []}; {'id': '349', 'type': 'expression_statement', 'children': ['350']}; {'id': '350', 'type': 'call', 'children': ['351', '354']}; {'id': '351', 'type': 'attribute', 'children': ['352', '353']}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'adjustSize'}; {'id': '354', 'type': 'argument_list', 'children': []} | Rebuilds the data associated with this filter widget. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'parse_unit'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'dictionary'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'dt'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'block', 'children': ['10', '12', '35', '51', '78', '123', '134']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'string', 'children': [], 'value': "'''Do a fuzzy match for `prop` in the dictionary, taking into account unit suffix.'''"}; {'id': '12', 'type': 'try_statement', 'children': ['13', '28']}; {'id': '13', 'type': 'block', 'children': ['14']}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'dt'}; {'id': '17', 'type': 'call', 'children': ['18', '21']}; {'id': '18', 'type': 'attribute', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'timezone'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'parse_datetime'}; {'id': '21', 'type': 'argument_list', 'children': ['22']}; {'id': '22', 'type': 'call', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'dictionary'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '26', 'type': 'argument_list', 'children': ['27']}; {'id': '27', 'type': 'string', 'children': [], 'value': "'date_time'"}; {'id': '28', 'type': 'except_clause', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'TypeError'}; {'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': 'dt'}; {'id': '34', 'type': 'None', 'children': []}; {'id': '35', 'type': 'expression_statement', 'children': ['36']}; {'id': '36', 'type': 'assignment', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '38', 'type': 'list_comprehension', 'children': ['39', '40', '47']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '40', 'type': 'for_in_clause', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '42', 'type': 'call', 'children': ['43', '46']}; {'id': '43', 'type': 'attribute', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'dictionary'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '46', 'type': 'argument_list', 'children': []}; {'id': '47', 'type': 'if_clause', 'children': ['48']}; {'id': '48', 'type': 'comparison_operator', 'children': ['49', '50'], 'value': 'in'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '51', 'type': 'try_statement', 'children': ['52', '73']}; {'id': '52', 'type': 'block', 'children': ['53', '61']}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '56', 'type': 'subscript', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'dictionary'}; {'id': '58', 'type': 'subscript', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '60', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '64', 'type': 'call', 'children': ['65', '68']}; {'id': '65', 'type': 'attribute', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'search'}; {'id': '68', 'type': 'argument_list', 'children': ['69', '70']}; {'id': '69', 'type': 'string', 'children': [], 'value': "r' \\(([^)]+)\\)'"}; {'id': '70', 'type': 'subscript', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '72', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '73', 'type': 'except_clause', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'IndexError'}; {'id': '75', 'type': 'block', 'children': ['76']}; {'id': '76', 'type': 'return_statement', 'children': ['77']}; {'id': '77', 'type': 'None', 'children': []}; {'id': '78', 'type': 'if_statement', 'children': ['79', '82']}; {'id': '79', 'type': 'comparison_operator', 'children': ['80', '81'], 'value': 'in'}; {'id': '80', 'type': 'string', 'children': [], 'value': "';'"}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '82', 'type': 'block', 'children': ['83', '100']}; {'id': '83', 'type': 'expression_statement', 'children': ['84']}; {'id': '84', 'type': 'assignment', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '86', 'type': 'list_comprehension', 'children': ['87', '88', '96']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'val'}; {'id': '88', 'type': 'for_in_clause', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'val'}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '94', 'type': 'argument_list', 'children': ['95']}; {'id': '95', 'type': 'string', 'children': [], 'value': "';'"}; {'id': '96', 'type': 'if_clause', 'children': ['97']}; {'id': '97', 'type': 'comparison_operator', 'children': ['98', '99'], 'value': '!='}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'val'}; {'id': '99', 'type': 'string', 'children': [], 'value': "''"}; {'id': '100', 'type': 'if_statement', 'children': ['101', '102', '119']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '102', 'type': 'block', 'children': ['103']}; {'id': '103', 'type': 'return_statement', 'children': ['104']}; {'id': '104', 'type': 'list_comprehension', 'children': ['105', '116']}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'Observation'}; {'id': '107', 'type': 'argument_list', 'children': ['108', '109', '115']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '109', 'type': 'call', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '113', 'type': 'argument_list', 'children': ['114']}; {'id': '114', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'dt'}; {'id': '116', 'type': 'for_in_clause', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '119', 'type': 'else_clause', 'children': ['120']}; {'id': '120', 'type': 'block', 'children': ['121']}; {'id': '121', 'type': 'return_statement', 'children': ['122']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '123', 'type': 'if_statement', 'children': ['124', '129']}; {'id': '124', 'type': 'boolean_operator', 'children': ['125', '127'], 'value': 'or'}; {'id': '125', 'type': 'not_operator', 'children': ['126']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '127', 'type': 'not_operator', 'children': ['128']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '129', 'type': 'block', 'children': ['130']}; {'id': '130', 'type': 'return_statement', 'children': ['131']}; {'id': '131', 'type': 'boolean_operator', 'children': ['132', '133'], 'value': 'or'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '133', 'type': 'None', 'children': []}; {'id': '134', 'type': 'return_statement', 'children': ['135']}; {'id': '135', 'type': 'call', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'Observation'}; {'id': '137', 'type': 'argument_list', 'children': ['138', '139', '145']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '139', 'type': 'call', 'children': ['140', '143']}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '143', 'type': 'argument_list', 'children': ['144']}; {'id': '144', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'dt'} | Do a fuzzy match for `prop` in the dictionary, taking into account unit suffix. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'rebuild'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '13', '20', '42', '50', '313', '320']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'call', 'children': ['8', '11']}; {'id': '8', 'type': 'attribute', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'setUpdatesEnabled'}; {'id': '11', 'type': 'argument_list', 'children': ['12']}; {'id': '12', 'type': 'False', 'children': []}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'call', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'blockSignals'}; {'id': '18', 'type': 'argument_list', 'children': ['19']}; {'id': '19', 'type': 'True', 'children': []}; {'id': '20', 'type': 'for_statement', 'children': ['21', '22', '28']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'child'}; {'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': 'findChildren'}; {'id': '26', 'type': 'argument_list', 'children': ['27']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'QObject'}; {'id': '28', 'type': 'block', 'children': ['29', '36']}; {'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': 'child'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'setParent'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'None', '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': 'child'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'deleteLater'}; {'id': '41', 'type': 'argument_list', 'children': []}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'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': 'schema'}; {'id': '49', 'type': 'argument_list', 'children': []}; {'id': '50', 'type': 'if_statement', 'children': ['51', '53', '304']}; {'id': '51', 'type': '()', 'children': ['52']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '53', 'type': 'block', 'children': ['54', '61', '69']}; {'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': 'setEnabled'}; {'id': '59', 'type': 'argument_list', 'children': ['60']}; {'id': '60', 'type': 'True', 'children': []}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'uifile'}; {'id': '64', 'type': 'call', 'children': ['65', '68']}; {'id': '65', 'type': 'attribute', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'uiFile'}; {'id': '68', 'type': 'argument_list', 'children': []}; {'id': '69', 'type': 'if_statement', 'children': ['70', '72', '137']}; {'id': '70', 'type': '()', 'children': ['71']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'uifile'}; {'id': '72', 'type': 'block', 'children': ['73', '82']}; {'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': 'projexui'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'loadUi'}; {'id': '78', 'type': 'argument_list', 'children': ['79', '80', '81']}; {'id': '79', 'type': 'string', 'children': [], 'value': "''"}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'uifile'}; {'id': '82', 'type': 'for_statement', 'children': ['83', '84', '90']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'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': 'findChildren'}; {'id': '88', 'type': 'argument_list', 'children': ['89']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'XOrbColumnEdit'}; {'id': '90', 'type': 'block', 'children': ['91', '99', '108']}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'assignment', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'columnName'}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'columnName'}; {'id': '98', 'type': 'argument_list', 'children': []}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'assignment', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '102', 'type': 'call', 'children': ['103', '106']}; {'id': '103', 'type': 'attribute', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'columnName'}; {'id': '108', 'type': 'if_statement', 'children': ['109', '111', '119']}; {'id': '109', 'type': '()', 'children': ['110']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '111', 'type': 'block', 'children': ['112']}; {'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': 'widget'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'setColumn'}; {'id': '117', 'type': 'argument_list', 'children': ['118']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '119', 'type': 'else_clause', 'children': ['120']}; {'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': 'logger'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'binary_operator', 'children': ['128', '129', '130'], 'value': '%'}; {'id': '128', 'type': 'string', 'children': [], 'value': "'%s is not a valid column of %s'"}; {'id': '129', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '130', 'type': 'tuple', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'columnName'}; {'id': '132', 'type': 'call', 'children': ['133', '136']}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '136', 'type': 'argument_list', 'children': []}; {'id': '137', 'type': 'else_clause', 'children': ['138']}; {'id': '138', 'type': 'block', 'children': ['139', '145', '155', '163', '179', '187', '278', '285', '291']}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '142', 'type': 'call', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'QFormLayout'}; {'id': '144', 'type': 'argument_list', 'children': []}; {'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': 'layout'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'setContentsMargins'}; {'id': '150', 'type': 'argument_list', 'children': ['151', '152', '153', '154']}; {'id': '151', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '152', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '153', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '154', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'assignment', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'columns'}; {'id': '158', 'type': 'call', 'children': ['159', '162']}; {'id': '159', 'type': 'attribute', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'columns'}; {'id': '162', 'type': 'argument_list', 'children': []}; {'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': 'columns'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'sort'}; {'id': '168', 'type': 'argument_list', 'children': ['169']}; {'id': '169', 'type': 'keyword_argument', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '171', 'type': 'lambda', 'children': ['172', '174']}; {'id': '172', 'type': 'lambda_parameters', 'children': ['173']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '174', 'type': 'call', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'displayName'}; {'id': '178', 'type': 'argument_list', 'children': []}; {'id': '179', 'type': 'expression_statement', 'children': ['180']}; {'id': '180', 'type': 'assignment', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '182', 'type': 'call', 'children': ['183', '186']}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '186', 'type': 'argument_list', 'children': []}; {'id': '187', 'type': 'for_statement', 'children': ['188', '189', '190']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'columns'}; {'id': '190', 'type': 'block', 'children': ['191', '205', '213', '221', '229', '236', '245', '252', '259', '266']}; {'id': '191', 'type': 'if_statement', 'children': ['192', '203']}; {'id': '192', 'type': '()', 'children': ['193']}; {'id': '193', 'type': 'call', 'children': ['194', '201']}; {'id': '194', 'type': 'attribute', 'children': ['195', '200']}; {'id': '195', 'type': 'call', 'children': ['196', '199']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '199', 'type': 'argument_list', 'children': []}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '201', 'type': 'argument_list', 'children': ['202']}; {'id': '202', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '203', 'type': 'block', 'children': ['204']}; {'id': '204', 'type': 'continue_statement', 'children': []}; {'id': '205', 'type': 'expression_statement', 'children': ['206']}; {'id': '206', 'type': 'assignment', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '208', 'type': 'call', 'children': ['209', '212']}; {'id': '209', 'type': 'attribute', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'displayName'}; {'id': '212', 'type': 'argument_list', 'children': []}; {'id': '213', 'type': 'expression_statement', 'children': ['214']}; {'id': '214', 'type': 'assignment', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'coltype'}; {'id': '216', 'type': 'call', 'children': ['217', '220']}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'columnType'}; {'id': '220', 'type': 'argument_list', 'children': []}; {'id': '221', 'type': 'expression_statement', 'children': ['222']}; {'id': '222', 'type': 'assignment', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '224', 'type': 'call', 'children': ['225', '228']}; {'id': '225', 'type': 'attribute', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '228', 'type': 'argument_list', 'children': []}; {'id': '229', 'type': 'expression_statement', 'children': ['230']}; {'id': '230', 'type': 'assignment', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '232', 'type': 'call', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'XOrbColumnEdit'}; {'id': '234', 'type': 'argument_list', 'children': ['235']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'self'}; {'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': 'widget'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'setObjectName'}; {'id': '241', 'type': 'argument_list', 'children': ['242']}; {'id': '242', 'type': 'binary_operator', 'children': ['243', '244'], 'value': '+'}; {'id': '243', 'type': 'string', 'children': [], 'value': "'ui_'"}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '245', 'type': 'expression_statement', 'children': ['246']}; {'id': '246', 'type': 'call', 'children': ['247', '250']}; {'id': '247', 'type': 'attribute', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'setColumnName'}; {'id': '250', 'type': 'argument_list', 'children': ['251']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'name'}; {'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': 'widget'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'setColumnType'}; {'id': '257', 'type': 'argument_list', 'children': ['258']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'coltype'}; {'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': 'widget'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'setColumn'}; {'id': '264', 'type': 'argument_list', 'children': ['265']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '266', 'type': 'expression_statement', 'children': ['267']}; {'id': '267', 'type': 'call', 'children': ['268', '271']}; {'id': '268', 'type': 'attribute', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'addRow'}; {'id': '271', 'type': 'argument_list', 'children': ['272', '277']}; {'id': '272', 'type': 'call', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'QLabel'}; {'id': '274', 'type': 'argument_list', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '278', 'type': 'expression_statement', 'children': ['279']}; {'id': '279', 'type': 'call', 'children': ['280', '283']}; {'id': '280', 'type': 'attribute', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'setLayout'}; {'id': '283', 'type': 'argument_list', 'children': ['284']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '285', 'type': 'expression_statement', 'children': ['286']}; {'id': '286', 'type': 'call', 'children': ['287', '290']}; {'id': '287', 'type': 'attribute', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'adjustSize'}; {'id': '290', 'type': 'argument_list', 'children': []}; {'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': 'self'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'setWindowTitle'}; {'id': '296', 'type': 'argument_list', 'children': ['297']}; {'id': '297', 'type': 'binary_operator', 'children': ['298', '299'], 'value': '%'}; {'id': '298', 'type': 'string', 'children': [], 'value': "'Edit %s'"}; {'id': '299', 'type': 'call', 'children': ['300', '303']}; {'id': '300', 'type': 'attribute', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '303', 'type': 'argument_list', 'children': []}; {'id': '304', 'type': 'else_clause', 'children': ['305']}; {'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': 'self'}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '311', 'type': 'argument_list', 'children': ['312']}; {'id': '312', 'type': 'False', 'children': []}; {'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': 'self'}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'setUpdatesEnabled'}; {'id': '318', 'type': 'argument_list', 'children': ['319']}; {'id': '319', 'type': 'True', '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': 'blockSignals'}; {'id': '325', 'type': 'argument_list', 'children': ['326']}; {'id': '326', 'type': 'False', 'children': []} | Rebuilds the interface for this widget based on the current model. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'save'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '14', '28', '36', '48', '52', '61', '249', '267', '273']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '9', 'type': 'call', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '13', 'type': 'argument_list', 'children': []}; {'id': '14', 'type': 'if_statement', 'children': ['15', '18']}; {'id': '15', 'type': '()', 'children': ['16']}; {'id': '16', 'type': 'not_operator', 'children': ['17']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '18', 'type': 'block', 'children': ['19', '27']}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'call', 'children': ['21', '26']}; {'id': '21', 'type': 'attribute', 'children': ['22', '25']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'saved'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '26', 'type': 'argument_list', 'children': []}; {'id': '27', 'type': 'return_statement', 'children': []}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '31', 'type': 'call', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '35', 'type': 'argument_list', 'children': []}; {'id': '36', 'type': 'if_statement', 'children': ['37', '39']}; {'id': '37', 'type': 'not_operator', 'children': ['38']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '39', 'type': 'block', 'children': ['40']}; {'id': '40', 'type': 'expression_statement', 'children': ['41']}; {'id': '41', 'type': 'assignment', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '43', 'type': 'call', 'children': ['44', '47']}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': '_model'}; {'id': '47', 'type': 'argument_list', 'children': []}; {'id': '48', 'type': 'expression_statement', 'children': ['49']}; {'id': '49', 'type': 'assignment', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'save_data'}; {'id': '51', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'assignment', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'column_edits'}; {'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': 'findChildren'}; {'id': '59', 'type': 'argument_list', 'children': ['60']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'XOrbColumnEdit'}; {'id': '61', 'type': 'for_statement', 'children': ['62', '63', '64']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'column_edits'}; {'id': '64', 'type': 'block', 'children': ['65', '73', '82', '104', '112', '119', '240']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'columnName'}; {'id': '68', 'type': 'call', 'children': ['69', '72']}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'columnName'}; {'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': 'column'}; {'id': '76', 'type': 'call', 'children': ['77', '80']}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'columnName'}; {'id': '82', 'type': 'if_statement', 'children': ['83', '86']}; {'id': '83', 'type': '()', 'children': ['84']}; {'id': '84', 'type': 'not_operator', 'children': ['85']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '86', 'type': 'block', 'children': ['87', '103']}; {'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': 'logger'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '92', 'type': 'argument_list', 'children': ['93']}; {'id': '93', 'type': 'binary_operator', 'children': ['94', '95', '96'], 'value': '%'}; {'id': '94', 'type': 'string', 'children': [], 'value': "'%s is not a valid column of %s.'"}; {'id': '95', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '96', 'type': 'tuple', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'columnName'}; {'id': '98', 'type': 'call', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '102', 'type': 'argument_list', 'children': []}; {'id': '103', 'type': 'continue_statement', 'children': []}; {'id': '104', 'type': 'expression_statement', 'children': ['105']}; {'id': '105', 'type': 'assignment', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '107', 'type': 'call', 'children': ['108', '111']}; {'id': '108', 'type': 'attribute', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '111', 'type': 'argument_list', 'children': []}; {'id': '112', 'type': 'if_statement', 'children': ['113', '117']}; {'id': '113', 'type': '()', 'children': ['114']}; {'id': '114', 'type': 'comparison_operator', 'children': ['115', '116'], 'value': '=='}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'IGNORED'}; {'id': '117', 'type': 'block', 'children': ['118']}; {'id': '118', 'type': 'continue_statement', 'children': []}; {'id': '119', 'type': 'if_statement', 'children': ['120', '129', '150']}; {'id': '120', 'type': '()', 'children': ['121']}; {'id': '121', 'type': 'boolean_operator', 'children': ['122', '127'], 'value': 'and'}; {'id': '122', 'type': 'call', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'required'}; {'id': '126', 'type': 'argument_list', 'children': []}; {'id': '127', 'type': 'not_operator', 'children': ['128']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '129', 'type': 'block', 'children': ['130', '138', '149']}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'assignment', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '133', 'type': 'call', 'children': ['134', '137']}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'displayName'}; {'id': '137', 'type': 'argument_list', 'children': []}; {'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': 'QMessageBox'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'information'}; {'id': '143', 'type': 'argument_list', 'children': ['144', '145', '146']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '145', 'type': 'string', 'children': [], 'value': "'Missing Required Field'"}; {'id': '146', 'type': 'binary_operator', 'children': ['147', '148'], 'value': '%'}; {'id': '147', 'type': 'string', 'children': [], 'value': "'%s is a required field.'"}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '149', 'type': 'return_statement', 'children': []}; {'id': '150', 'type': 'elif_clause', 'children': ['151', '157']}; {'id': '151', 'type': '()', 'children': ['152']}; {'id': '152', 'type': 'call', 'children': ['153', '156']}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'unique'}; {'id': '156', 'type': 'argument_list', 'children': []}; {'id': '157', 'type': 'block', 'children': ['158', '171', '190', '204', '220']}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'assignment', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '161', 'type': 'comparison_operator', 'children': ['162', '170'], 'value': '=='}; {'id': '162', 'type': 'call', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'Q'}; {'id': '164', 'type': 'argument_list', 'children': ['165']}; {'id': '165', 'type': 'call', 'children': ['166', '169']}; {'id': '166', 'type': 'attribute', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '169', 'type': 'argument_list', 'children': []}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '171', 'type': 'if_statement', 'children': ['172', '178']}; {'id': '172', 'type': '()', 'children': ['173']}; {'id': '173', 'type': 'call', 'children': ['174', '177']}; {'id': '174', 'type': 'attribute', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'isRecord'}; {'id': '177', 'type': 'argument_list', 'children': []}; {'id': '178', 'type': 'block', 'children': ['179']}; {'id': '179', 'type': 'expression_statement', 'children': ['180']}; {'id': '180', 'type': 'augmented_assignment', 'children': ['181', '182'], 'value': '&='}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '182', 'type': 'comparison_operator', 'children': ['183', '189'], 'value': '!='}; {'id': '183', 'type': 'call', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'Q'}; {'id': '185', 'type': 'argument_list', 'children': ['186']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': '_model'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '190', 'type': 'expression_statement', 'children': ['191']}; {'id': '191', 'type': 'assignment', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'columns'}; {'id': '193', 'type': 'call', 'children': ['194', '203']}; {'id': '194', 'type': 'attribute', 'children': ['195', '202']}; {'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': 'self'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': '_model'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '201', 'type': 'argument_list', 'children': []}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'primaryColumns'}; {'id': '203', 'type': 'argument_list', 'children': []}; {'id': '204', 'type': 'expression_statement', 'children': ['205']}; {'id': '205', 'type': 'assignment', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '207', 'type': 'call', 'children': ['208', '213']}; {'id': '208', 'type': 'attribute', 'children': ['209', '212']}; {'id': '209', 'type': 'attribute', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': '_model'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'select'}; {'id': '213', 'type': 'argument_list', 'children': ['214', '217']}; {'id': '214', 'type': 'keyword_argument', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'columns'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'columns'}; {'id': '217', 'type': 'keyword_argument', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'where'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '220', 'type': 'if_statement', 'children': ['221', '227']}; {'id': '221', 'type': '()', 'children': ['222']}; {'id': '222', 'type': 'call', 'children': ['223', '226']}; {'id': '223', 'type': 'attribute', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'total'}; {'id': '226', 'type': 'argument_list', 'children': []}; {'id': '227', 'type': 'block', 'children': ['228', '239']}; {'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': 'QMessageBox'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'information'}; {'id': '233', 'type': 'argument_list', 'children': ['234', '235', '236']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '235', 'type': 'string', 'children': [], 'value': "'Duplicate Entry'"}; {'id': '236', 'type': 'binary_operator', 'children': ['237', '238'], 'value': '%'}; {'id': '237', 'type': 'string', 'children': [], 'value': "'%s already exists.'"}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '239', 'type': 'return_statement', 'children': []}; {'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': 'save_data'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '245', 'type': 'argument_list', 'children': ['246']}; {'id': '246', 'type': 'tuple', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '249', 'type': 'for_statement', 'children': ['250', '253', '254']}; {'id': '250', 'type': 'pattern_list', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'save_data'}; {'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': 'record'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'setRecordValue'}; {'id': '260', 'type': 'argument_list', 'children': ['261', '266']}; {'id': '261', 'type': 'call', 'children': ['262', '265']}; {'id': '262', 'type': 'attribute', 'children': ['263', '264']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'column'}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '265', 'type': 'argument_list', 'children': []}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '267', 'type': 'expression_statement', 'children': ['268']}; {'id': '268', 'type': 'assignment', 'children': ['269', '272']}; {'id': '269', 'type': 'attribute', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '271', 'type': 'identifier', 'children': [], 'value': '_record'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'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': 'self'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'saved'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '280', 'type': 'argument_list', 'children': []} | Saves the values from the editor to the system. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'save'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '14', '29', '54', '62', '70', '110', '214', '225', '241', '249', '259', '274', '306', '346']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '9', 'type': 'call', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '13', 'type': 'argument_list', 'children': []}; {'id': '14', 'type': 'if_statement', 'children': ['15', '17']}; {'id': '15', 'type': 'not_operator', 'children': ['16']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '17', 'type': 'block', 'children': ['18', '27']}; {'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': 'logger'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '23', 'type': 'argument_list', 'children': ['24']}; {'id': '24', 'type': 'binary_operator', 'children': ['25', '26'], 'value': '%'}; {'id': '25', 'type': 'string', 'children': [], 'value': "'No record has been defined for %s.'"}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '27', 'type': 'return_statement', 'children': ['28']}; {'id': '28', 'type': 'False', 'children': []}; {'id': '29', 'type': 'if_statement', 'children': ['30', '36']}; {'id': '30', 'type': 'not_operator', 'children': ['31']}; {'id': '31', 'type': 'call', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'signalsBlocked'}; {'id': '35', 'type': 'argument_list', 'children': []}; {'id': '36', 'type': 'block', 'children': ['37', '46']}; {'id': '37', 'type': 'expression_statement', 'children': ['38']}; {'id': '38', 'type': 'call', 'children': ['39', '44']}; {'id': '39', 'type': 'attribute', 'children': ['40', '43']}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'aboutToSaveRecord'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '44', 'type': 'argument_list', 'children': ['45']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '46', 'type': 'expression_statement', 'children': ['47']}; {'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': 'self'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'aboutToSave'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '53', 'type': 'argument_list', 'children': []}; {'id': '54', 'type': 'expression_statement', 'children': ['55']}; {'id': '55', 'type': 'assignment', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '57', 'type': 'call', 'children': ['58', '61']}; {'id': '58', 'type': 'attribute', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'saveValues'}; {'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': 'check'}; {'id': '65', 'type': 'call', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '69', 'type': 'argument_list', 'children': []}; {'id': '70', 'type': 'for_statement', 'children': ['71', '74', '79']}; {'id': '71', 'type': 'pattern_list', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'column_name'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '74', 'type': 'call', 'children': ['75', '78']}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'check'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '78', 'type': 'argument_list', 'children': []}; {'id': '79', 'type': 'block', 'children': ['80', '100']}; {'id': '80', 'type': 'try_statement', 'children': ['81', '93']}; {'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': 'equals'}; {'id': '85', 'type': 'comparison_operator', 'children': ['86', '87'], 'value': '=='}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '87', 'type': 'call', 'children': ['88', '91']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'recordValue'}; {'id': '91', 'type': 'argument_list', 'children': ['92']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'column_name'}; {'id': '93', 'type': 'except_clause', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'UnicodeWarning'}; {'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': 'equals'}; {'id': '99', 'type': 'False', 'children': []}; {'id': '100', 'type': 'if_statement', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'equals'}; {'id': '102', 'type': 'block', 'children': ['103']}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'call', 'children': ['105', '108']}; {'id': '105', 'type': 'attribute', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'check'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '108', 'type': 'argument_list', 'children': ['109']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'column_name'}; {'id': '110', 'type': 'if_statement', 'children': ['111', '119']}; {'id': '111', 'type': 'boolean_operator', 'children': ['112', '114'], 'value': 'and'}; {'id': '112', 'type': 'not_operator', 'children': ['113']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'check'}; {'id': '114', 'type': 'call', 'children': ['115', '118']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'isRecord'}; {'id': '118', 'type': 'argument_list', 'children': []}; {'id': '119', 'type': 'block', 'children': ['120', '159', '212']}; {'id': '120', 'type': 'if_statement', 'children': ['121', '127', '151']}; {'id': '121', 'type': 'not_operator', 'children': ['122']}; {'id': '122', 'type': 'call', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'signalsBlocked'}; {'id': '126', 'type': 'argument_list', 'children': []}; {'id': '127', 'type': 'block', 'children': ['128', '137', '145']}; {'id': '128', 'type': 'expression_statement', 'children': ['129']}; {'id': '129', 'type': 'call', 'children': ['130', '135']}; {'id': '130', 'type': 'attribute', 'children': ['131', '134']}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'recordSaved'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '135', 'type': 'argument_list', 'children': ['136']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '137', 'type': 'expression_statement', 'children': ['138']}; {'id': '138', 'type': 'call', 'children': ['139', '144']}; {'id': '139', 'type': 'attribute', 'children': ['140', '143']}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'saved'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '144', 'type': 'argument_list', 'children': []}; {'id': '145', 'type': 'expression_statement', 'children': ['146']}; {'id': '146', 'type': 'assignment', 'children': ['147', '150']}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': '_saveSignalBlocked'}; {'id': '150', 'type': 'False', 'children': []}; {'id': '151', 'type': 'else_clause', 'children': ['152']}; {'id': '152', 'type': 'block', 'children': ['153']}; {'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': 'self'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': '_saveSignalBlocked'}; {'id': '158', 'type': 'True', 'children': []}; {'id': '159', 'type': 'if_statement', 'children': ['160', '165']}; {'id': '160', 'type': 'call', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'autoCommitOnSave'}; {'id': '164', 'type': 'argument_list', 'children': []}; {'id': '165', 'type': 'block', 'children': ['166', '176']}; {'id': '166', 'type': 'expression_statement', 'children': ['167']}; {'id': '167', 'type': 'assignment', 'children': ['168', '171']}; {'id': '168', 'type': 'pattern_list', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'status'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '171', 'type': 'call', 'children': ['172', '175']}; {'id': '172', 'type': 'attribute', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'commit'}; {'id': '175', 'type': 'argument_list', 'children': []}; {'id': '176', 'type': 'if_statement', 'children': ['177', '180']}; {'id': '177', 'type': 'comparison_operator', 'children': ['178', '179'], 'value': '=='}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'status'}; {'id': '179', 'type': 'string', 'children': [], 'value': "'errored'"}; {'id': '180', 'type': 'block', 'children': ['181', '201', '210']}; {'id': '181', 'type': 'if_statement', 'children': ['182', '185', '195']}; {'id': '182', 'type': 'comparison_operator', 'children': ['183', '184'], 'value': 'in'}; {'id': '183', 'type': 'string', 'children': [], 'value': "'db_error'"}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '185', 'type': 'block', 'children': ['186']}; {'id': '186', 'type': 'expression_statement', 'children': ['187']}; {'id': '187', 'type': 'assignment', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '189', 'type': 'call', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'nativestring'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'subscript', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '194', 'type': 'string', 'children': [], 'value': "'db_error'"}; {'id': '195', 'type': 'else_clause', 'children': ['196']}; {'id': '196', 'type': 'block', 'children': ['197']}; {'id': '197', 'type': 'expression_statement', 'children': ['198']}; {'id': '198', 'type': 'assignment', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '200', 'type': 'string', 'children': [], 'value': "'An unknown database error has occurred.'"}; {'id': '201', 'type': 'expression_statement', 'children': ['202']}; {'id': '202', 'type': 'call', 'children': ['203', '206']}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'QMessageBox'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'information'}; {'id': '206', 'type': 'argument_list', 'children': ['207', '208', '209']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '208', 'type': 'string', 'children': [], 'value': "'Commit Error'"}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '210', 'type': 'return_statement', 'children': ['211']}; {'id': '211', 'type': 'False', 'children': []}; {'id': '212', 'type': 'return_statement', 'children': ['213']}; {'id': '213', 'type': 'True', 'children': []}; {'id': '214', 'type': 'expression_statement', 'children': ['215']}; {'id': '215', 'type': 'assignment', 'children': ['216', '219']}; {'id': '216', 'type': 'pattern_list', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '219', 'type': 'call', 'children': ['220', '223']}; {'id': '220', 'type': 'attribute', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'validateValues'}; {'id': '223', 'type': 'argument_list', 'children': ['224']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'check'}; {'id': '225', 'type': 'if_statement', 'children': ['226', '229']}; {'id': '226', 'type': '()', 'children': ['227']}; {'id': '227', 'type': 'not_operator', 'children': ['228']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '229', 'type': 'block', 'children': ['230', '239']}; {'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': 'QMessageBox'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'information'}; {'id': '235', 'type': 'argument_list', 'children': ['236', '237', '238']}; {'id': '236', 'type': 'None', 'children': []}; {'id': '237', 'type': 'string', 'children': [], 'value': "'Could Not Save'"}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '239', 'type': 'return_statement', 'children': ['240']}; {'id': '240', 'type': 'False', 'children': []}; {'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': 'record'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'setRecordValues'}; {'id': '246', 'type': 'argument_list', 'children': ['247']}; {'id': '247', 'type': 'dictionary_splat', 'children': ['248']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '249', 'type': 'expression_statement', 'children': ['250']}; {'id': '250', 'type': 'assignment', 'children': ['251', '254']}; {'id': '251', 'type': 'pattern_list', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '254', 'type': 'call', 'children': ['255', '258']}; {'id': '255', 'type': 'attribute', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'validateRecord'}; {'id': '258', 'type': 'argument_list', 'children': []}; {'id': '259', 'type': 'if_statement', 'children': ['260', '262']}; {'id': '260', 'type': 'not_operator', 'children': ['261']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '262', 'type': 'block', 'children': ['263', '272']}; {'id': '263', 'type': 'expression_statement', 'children': ['264']}; {'id': '264', 'type': 'call', 'children': ['265', '268']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'QMessageBox'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'information'}; {'id': '268', 'type': 'argument_list', 'children': ['269', '270', '271']}; {'id': '269', 'type': 'None', 'children': []}; {'id': '270', 'type': 'string', 'children': [], 'value': "'Could Not Save'"}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '272', 'type': 'return_statement', 'children': ['273']}; {'id': '273', 'type': 'False', 'children': []}; {'id': '274', 'type': 'if_statement', 'children': ['275', '281']}; {'id': '275', 'type': '()', 'children': ['276']}; {'id': '276', 'type': 'call', 'children': ['277', '280']}; {'id': '277', 'type': 'attribute', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'autoCommitOnSave'}; {'id': '280', 'type': 'argument_list', 'children': []}; {'id': '281', 'type': 'block', 'children': ['282', '290']}; {'id': '282', 'type': 'expression_statement', 'children': ['283']}; {'id': '283', 'type': 'assignment', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '285', 'type': 'call', 'children': ['286', '289']}; {'id': '286', 'type': 'attribute', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'commit'}; {'id': '289', 'type': 'argument_list', 'children': []}; {'id': '290', 'type': 'if_statement', 'children': ['291', '294']}; {'id': '291', 'type': 'comparison_operator', 'children': ['292', '293'], 'value': 'in'}; {'id': '292', 'type': 'string', 'children': [], 'value': "'errored'"}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '294', 'type': 'block', 'children': ['295', '304']}; {'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': 'QMessageBox'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'information'}; {'id': '300', 'type': 'argument_list', 'children': ['301', '302', '303']}; {'id': '301', 'type': 'None', 'children': []}; {'id': '302', 'type': 'string', 'children': [], 'value': "'Could Not Save'"}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '304', 'type': 'return_statement', 'children': ['305']}; {'id': '305', 'type': 'False', 'children': []}; {'id': '306', 'type': 'if_statement', 'children': ['307', '314', '338']}; {'id': '307', 'type': '()', 'children': ['308']}; {'id': '308', 'type': 'not_operator', 'children': ['309']}; {'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': 'signalsBlocked'}; {'id': '313', 'type': 'argument_list', 'children': []}; {'id': '314', 'type': 'block', 'children': ['315', '324', '332']}; {'id': '315', 'type': 'expression_statement', 'children': ['316']}; {'id': '316', 'type': 'call', 'children': ['317', '322']}; {'id': '317', 'type': 'attribute', 'children': ['318', '321']}; {'id': '318', 'type': 'attribute', 'children': ['319', '320']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'recordSaved'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '322', 'type': 'argument_list', 'children': ['323']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'record'}; {'id': '324', 'type': 'expression_statement', 'children': ['325']}; {'id': '325', 'type': 'call', 'children': ['326', '331']}; {'id': '326', 'type': 'attribute', 'children': ['327', '330']}; {'id': '327', 'type': 'attribute', 'children': ['328', '329']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'saved'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '331', 'type': 'argument_list', 'children': []}; {'id': '332', 'type': 'expression_statement', 'children': ['333']}; {'id': '333', 'type': 'assignment', 'children': ['334', '337']}; {'id': '334', 'type': 'attribute', 'children': ['335', '336']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '336', 'type': 'identifier', 'children': [], 'value': '_saveSignalBlocked'}; {'id': '337', 'type': 'False', 'children': []}; {'id': '338', 'type': 'else_clause', 'children': ['339']}; {'id': '339', 'type': 'block', 'children': ['340']}; {'id': '340', 'type': 'expression_statement', 'children': ['341']}; {'id': '341', 'type': 'assignment', 'children': ['342', '345']}; {'id': '342', 'type': 'attribute', 'children': ['343', '344']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '344', 'type': 'identifier', 'children': [], 'value': '_saveSignalBlocked'}; {'id': '345', 'type': 'True', 'children': []}; {'id': '346', 'type': 'return_statement', 'children': ['347']}; {'id': '347', 'type': 'True', 'children': []} | Saves the changes from the ui to this widgets record instance. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'prepare'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '15', '30', '39', '72', '143', '161', '281', '290', '325', '329', '339', '349', '359', '369', '389', '397', '404']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'pixmap'}; {'id': '9', 'type': 'call', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'property'}; {'id': '13', 'type': 'argument_list', 'children': ['14']}; {'id': '14', 'type': 'string', 'children': [], 'value': "'pixmap'"}; {'id': '15', 'type': 'if_statement', 'children': ['16', '19']}; {'id': '16', 'type': 'comparison_operator', 'children': ['17', '18'], 'value': 'is'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'pixmap'}; {'id': '18', 'type': 'None', 'children': []}; {'id': '19', 'type': 'block', 'children': ['20']}; {'id': '20', 'type': 'return_statement', 'children': ['21']}; {'id': '21', 'type': 'call', 'children': ['22', '29']}; {'id': '22', 'type': 'attribute', 'children': ['23', '28']}; {'id': '23', 'type': 'call', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'super'}; {'id': '25', 'type': 'argument_list', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'XWalkthroughSnapshot'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'prepare'}; {'id': '29', 'type': 'argument_list', 'children': []}; {'id': '30', 'type': 'expression_statement', 'children': ['31']}; {'id': '31', 'type': 'assignment', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'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': 'property'}; {'id': '37', 'type': 'argument_list', 'children': ['38']}; {'id': '38', 'type': 'string', 'children': [], 'value': "'widget'"}; {'id': '39', 'type': 'if_statement', 'children': ['40', '48']}; {'id': '40', 'type': 'comparison_operator', 'children': ['41', '45'], 'value': 'in'}; {'id': '41', 'type': 'call', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '43', 'type': 'argument_list', 'children': ['44']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '45', 'type': 'tuple', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'unicode'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '48', 'type': 'block', 'children': ['49', '58']}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'assignment', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '52', 'type': 'call', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'findReference'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '58', 'type': 'if_statement', 'children': ['59', '61']}; {'id': '59', 'type': 'not_operator', 'children': ['60']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '61', 'type': 'block', 'children': ['62']}; {'id': '62', 'type': 'return_statement', 'children': ['63']}; {'id': '63', 'type': 'call', 'children': ['64', '71']}; {'id': '64', 'type': 'attribute', 'children': ['65', '70']}; {'id': '65', 'type': 'call', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'super'}; {'id': '67', 'type': 'argument_list', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'XWalkthroughSnapshot'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'prepare'}; {'id': '71', 'type': 'argument_list', 'children': []}; {'id': '72', 'type': 'if_statement', 'children': ['73', '85']}; {'id': '73', 'type': 'boolean_operator', 'children': ['74', '80'], 'value': 'and'}; {'id': '74', 'type': 'call', 'children': ['75', '78']}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'property'}; {'id': '78', 'type': 'argument_list', 'children': ['79']}; {'id': '79', 'type': 'string', 'children': [], 'value': "'overlay'"}; {'id': '80', 'type': 'call', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '84', 'type': 'argument_list', 'children': []}; {'id': '85', 'type': 'block', 'children': ['86', '94', '135']}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'assignment', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'ref'}; {'id': '89', 'type': 'call', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'referenceWidget'}; {'id': '93', 'type': 'argument_list', 'children': []}; {'id': '94', 'type': 'if_statement', 'children': ['95', '98', '109']}; {'id': '95', 'type': 'comparison_operator', 'children': ['96', '97'], 'value': '=='}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'ref'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '98', 'type': 'block', 'children': ['99']}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'assignment', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '102', 'type': 'call', 'children': ['103', '106']}; {'id': '103', 'type': 'attribute', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'QtCore'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'QPoint'}; {'id': '106', 'type': 'argument_list', 'children': ['107', '108']}; {'id': '107', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '108', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '109', 'type': 'else_clause', 'children': ['110']}; {'id': '110', 'type': 'block', 'children': ['111', '126']}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'assignment', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'glbl_pos'}; {'id': '114', 'type': 'call', 'children': ['115', '118']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'mapToGlobal'}; {'id': '118', 'type': 'argument_list', 'children': ['119']}; {'id': '119', 'type': 'call', 'children': ['120', '123']}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'QtCore'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'QPoint'}; {'id': '123', 'type': 'argument_list', 'children': ['124', '125']}; {'id': '124', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '125', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '126', 'type': 'expression_statement', 'children': ['127']}; {'id': '127', 'type': 'assignment', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '129', 'type': 'call', 'children': ['130', '133']}; {'id': '130', 'type': 'attribute', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'ref'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'mapFromGlobal'}; {'id': '133', 'type': 'argument_list', 'children': ['134']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'glbl_pos'}; {'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': 'self'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'setProperty'}; {'id': '140', 'type': 'argument_list', 'children': ['141', '142']}; {'id': '141', 'type': 'string', 'children': [], 'value': "'pos'"}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'assignment', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'crop'}; {'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': 'property'}; {'id': '150', 'type': 'argument_list', 'children': ['151', '152']}; {'id': '151', 'type': 'string', 'children': [], 'value': "'crop'"}; {'id': '152', 'type': 'call', 'children': ['153', '156']}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'QtCore'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'QRect'}; {'id': '156', 'type': 'argument_list', 'children': ['157', '158', '159', '160']}; {'id': '157', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '158', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '159', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '160', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '161', 'type': 'if_statement', 'children': ['162', '163', '268']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'crop'}; {'id': '163', 'type': 'block', 'children': ['164', '172', '190', '208', '232', '256']}; {'id': '164', 'type': 'expression_statement', 'children': ['165']}; {'id': '165', 'type': 'assignment', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'rect'}; {'id': '167', 'type': 'call', 'children': ['168', '171']}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'rect'}; {'id': '171', 'type': 'argument_list', 'children': []}; {'id': '172', 'type': 'if_statement', 'children': ['173', '178']}; {'id': '173', 'type': 'call', 'children': ['174', '177']}; {'id': '174', 'type': 'attribute', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'crop'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '177', 'type': 'argument_list', 'children': []}; {'id': '178', 'type': 'block', 'children': ['179']}; {'id': '179', 'type': 'expression_statement', 'children': ['180']}; {'id': '180', 'type': 'call', 'children': ['181', '184']}; {'id': '181', 'type': 'attribute', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'rect'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'setWidth'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'call', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'crop'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '189', 'type': 'argument_list', 'children': []}; {'id': '190', 'type': 'if_statement', 'children': ['191', '196']}; {'id': '191', 'type': 'call', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'crop'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'height'}; {'id': '195', 'type': 'argument_list', 'children': []}; {'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': 'rect'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'setHeight'}; {'id': '202', 'type': 'argument_list', 'children': ['203']}; {'id': '203', 'type': 'call', 'children': ['204', '207']}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'crop'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'height'}; {'id': '207', 'type': 'argument_list', 'children': []}; {'id': '208', 'type': 'if_statement', 'children': ['209', '214']}; {'id': '209', 'type': 'call', 'children': ['210', '213']}; {'id': '210', 'type': 'attribute', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'crop'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '213', 'type': 'argument_list', 'children': []}; {'id': '214', 'type': 'block', 'children': ['215']}; {'id': '215', 'type': 'expression_statement', 'children': ['216']}; {'id': '216', 'type': 'call', 'children': ['217', '220']}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'rect'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'setX'}; {'id': '220', 'type': 'argument_list', 'children': ['221']}; {'id': '221', 'type': 'binary_operator', 'children': ['222', '227'], 'value': '-'}; {'id': '222', 'type': 'call', 'children': ['223', '226']}; {'id': '223', 'type': 'attribute', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'rect'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '226', 'type': 'argument_list', 'children': []}; {'id': '227', 'type': 'call', 'children': ['228', '231']}; {'id': '228', 'type': 'attribute', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'crop'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '231', 'type': 'argument_list', 'children': []}; {'id': '232', 'type': 'if_statement', 'children': ['233', '238']}; {'id': '233', 'type': 'call', 'children': ['234', '237']}; {'id': '234', 'type': 'attribute', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'crop'}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '237', 'type': 'argument_list', 'children': []}; {'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': 'rect'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'setY'}; {'id': '244', 'type': 'argument_list', 'children': ['245']}; {'id': '245', 'type': 'binary_operator', 'children': ['246', '251'], 'value': '-'}; {'id': '246', 'type': 'call', 'children': ['247', '250']}; {'id': '247', 'type': 'attribute', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'rect'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'height'}; {'id': '250', 'type': 'argument_list', 'children': []}; {'id': '251', 'type': 'call', 'children': ['252', '255']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'crop'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '255', 'type': 'argument_list', 'children': []}; {'id': '256', 'type': 'expression_statement', 'children': ['257']}; {'id': '257', 'type': 'assignment', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'pixmap'}; {'id': '259', 'type': 'call', 'children': ['260', '265']}; {'id': '260', 'type': 'attribute', 'children': ['261', '264']}; {'id': '261', 'type': 'attribute', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'QtGui'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'QPixmap'}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'grabWidget'}; {'id': '265', 'type': 'argument_list', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'rect'}; {'id': '268', 'type': 'else_clause', 'children': ['269']}; {'id': '269', 'type': 'block', 'children': ['270']}; {'id': '270', 'type': 'expression_statement', 'children': ['271']}; {'id': '271', 'type': 'assignment', 'children': ['272', '273']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'pixmap'}; {'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': 'QtGui'}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'QPixmap'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'grabWidget'}; {'id': '279', 'type': 'argument_list', 'children': ['280']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '281', 'type': 'expression_statement', 'children': ['282']}; {'id': '282', 'type': 'assignment', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'scaled'}; {'id': '284', 'type': 'call', 'children': ['285', '288']}; {'id': '285', 'type': 'attribute', 'children': ['286', '287']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'property'}; {'id': '288', 'type': 'argument_list', 'children': ['289']}; {'id': '289', 'type': 'string', 'children': [], 'value': "'scaled'"}; {'id': '290', 'type': 'if_statement', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'scaled'}; {'id': '292', 'type': 'block', 'children': ['293']}; {'id': '293', 'type': 'expression_statement', 'children': ['294']}; {'id': '294', 'type': 'assignment', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'pixmap'}; {'id': '296', 'type': 'call', 'children': ['297', '300']}; {'id': '297', 'type': 'attribute', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'pixmap'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'scaled'}; {'id': '300', 'type': 'argument_list', 'children': ['301', '308', '315', '320']}; {'id': '301', 'type': 'binary_operator', 'children': ['302', '307'], 'value': '*'}; {'id': '302', 'type': 'call', 'children': ['303', '306']}; {'id': '303', 'type': 'attribute', 'children': ['304', '305']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'pixmap'}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '306', 'type': 'argument_list', 'children': []}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'scaled'}; {'id': '308', 'type': 'binary_operator', 'children': ['309', '314'], 'value': '*'}; {'id': '309', 'type': 'call', 'children': ['310', '313']}; {'id': '310', 'type': 'attribute', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'pixmap'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'height'}; {'id': '313', 'type': 'argument_list', 'children': []}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'scaled'}; {'id': '315', 'type': 'attribute', 'children': ['316', '319']}; {'id': '316', 'type': 'attribute', 'children': ['317', '318']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'QtCore'}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'KeepAspectRatio'}; {'id': '320', 'type': 'attribute', 'children': ['321', '324']}; {'id': '321', 'type': 'attribute', 'children': ['322', '323']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'QtCore'}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'SmoothTransformation'}; {'id': '325', 'type': 'expression_statement', 'children': ['326']}; {'id': '326', 'type': 'assignment', 'children': ['327', '328']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'kwds'}; {'id': '328', 'type': 'dictionary', 'children': []}; {'id': '329', 'type': 'expression_statement', 'children': ['330']}; {'id': '330', 'type': 'assignment', 'children': ['331', '334']}; {'id': '331', 'type': 'subscript', 'children': ['332', '333']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'kwds'}; {'id': '333', 'type': 'string', 'children': [], 'value': "'whatsThis'"}; {'id': '334', 'type': 'call', 'children': ['335', '338']}; {'id': '335', 'type': 'attribute', 'children': ['336', '337']}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'whatsThis'}; {'id': '338', 'type': 'argument_list', 'children': []}; {'id': '339', 'type': 'expression_statement', 'children': ['340']}; {'id': '340', 'type': 'assignment', 'children': ['341', '344']}; {'id': '341', 'type': 'subscript', 'children': ['342', '343']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'kwds'}; {'id': '343', 'type': 'string', 'children': [], 'value': "'toolTip'"}; {'id': '344', 'type': 'call', 'children': ['345', '348']}; {'id': '345', 'type': 'attribute', 'children': ['346', '347']}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'toolTip'}; {'id': '348', 'type': 'argument_list', 'children': []}; {'id': '349', 'type': 'expression_statement', 'children': ['350']}; {'id': '350', 'type': 'assignment', 'children': ['351', '354']}; {'id': '351', 'type': 'subscript', 'children': ['352', '353']}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'kwds'}; {'id': '353', 'type': 'string', 'children': [], 'value': "'windowTitle'"}; {'id': '354', 'type': 'call', 'children': ['355', '358']}; {'id': '355', 'type': 'attribute', 'children': ['356', '357']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'windowTitle'}; {'id': '358', 'type': 'argument_list', 'children': []}; {'id': '359', 'type': 'expression_statement', 'children': ['360']}; {'id': '360', 'type': 'assignment', 'children': ['361', '364']}; {'id': '361', 'type': 'subscript', 'children': ['362', '363']}; {'id': '362', 'type': 'identifier', 'children': [], 'value': 'kwds'}; {'id': '363', 'type': 'string', 'children': [], 'value': "'objectName'"}; {'id': '364', 'type': 'call', 'children': ['365', '368']}; {'id': '365', 'type': 'attribute', 'children': ['366', '367']}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'objectName'}; {'id': '368', 'type': 'argument_list', 'children': []}; {'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': 'setProperty'}; {'id': '374', 'type': 'argument_list', 'children': ['375', '376']}; {'id': '375', 'type': 'string', 'children': [], 'value': "'caption'"}; {'id': '376', 'type': 'call', 'children': ['377', '386']}; {'id': '377', 'type': 'attribute', 'children': ['378', '385']}; {'id': '378', 'type': 'call', 'children': ['379', '382']}; {'id': '379', 'type': 'attribute', 'children': ['380', '381']}; {'id': '380', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'property'}; {'id': '382', 'type': 'argument_list', 'children': ['383', '384']}; {'id': '383', 'type': 'string', 'children': [], 'value': "'caption'"}; {'id': '384', 'type': 'string', 'children': [], 'value': "''"}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '386', 'type': 'argument_list', 'children': ['387']}; {'id': '387', 'type': 'dictionary_splat', 'children': ['388']}; {'id': '388', 'type': 'identifier', 'children': [], 'value': 'kwds'}; {'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': 'self'}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'setProperty'}; {'id': '394', 'type': 'argument_list', 'children': ['395', '396']}; {'id': '395', 'type': 'string', 'children': [], 'value': "'pixmap'"}; {'id': '396', 'type': 'identifier', 'children': [], 'value': 'pixmap'}; {'id': '397', 'type': 'expression_statement', 'children': ['398']}; {'id': '398', 'type': 'call', 'children': ['399', '402']}; {'id': '399', 'type': 'attribute', 'children': ['400', '401']}; {'id': '400', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '401', 'type': 'identifier', 'children': [], 'value': 'addPixmap'}; {'id': '402', 'type': 'argument_list', 'children': ['403']}; {'id': '403', 'type': 'identifier', 'children': [], 'value': 'pixmap'}; {'id': '404', 'type': 'return_statement', 'children': ['405']}; {'id': '405', 'type': 'call', 'children': ['406', '413']}; {'id': '406', 'type': 'attribute', 'children': ['407', '412']}; {'id': '407', 'type': 'call', 'children': ['408', '409']}; {'id': '408', 'type': 'identifier', 'children': [], 'value': 'super'}; {'id': '409', 'type': 'argument_list', 'children': ['410', '411']}; {'id': '410', 'type': 'identifier', 'children': [], 'value': 'XWalkthroughSnapshot'}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '412', 'type': 'identifier', 'children': [], 'value': 'prepare'}; {'id': '413', 'type': 'argument_list', 'children': []} | Prepares the information for this graphic. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'headerSortAscending'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '13']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'call', 'children': ['8', '11']}; {'id': '8', 'type': 'attribute', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'setSortingEnabled'}; {'id': '11', 'type': 'argument_list', 'children': ['12']}; {'id': '12', 'type': 'True', 'children': []}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'call', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'sortByColumn'}; {'id': '18', 'type': 'argument_list', 'children': ['19', '22']}; {'id': '19', 'type': 'attribute', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': '_headerIndex'}; {'id': '22', 'type': 'attribute', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'QtCore'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'AscendingOrder'} | Sorts the column at the current header index by ascending order. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'headerSortDescending'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '13']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'call', 'children': ['8', '11']}; {'id': '8', 'type': 'attribute', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'setSortingEnabled'}; {'id': '11', 'type': 'argument_list', 'children': ['12']}; {'id': '12', 'type': 'True', 'children': []}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'call', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'sortByColumn'}; {'id': '18', 'type': 'argument_list', 'children': ['19', '22']}; {'id': '19', 'type': 'attribute', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': '_headerIndex'}; {'id': '22', 'type': 'attribute', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'QtCore'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'DescendingOrder'} | Sorts the column at the current header index by descending order. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'from_api'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'api'}; {'id': '6', 'type': 'dictionary_splat_pattern', 'children': ['7']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '8', 'type': 'block', 'children': ['9', '19', '90', '114', '147', '172', '179', '252']}; {'id': '9', 'type': 'if_statement', 'children': ['10', '14']}; {'id': '10', 'type': 'not_operator', 'children': ['11']}; {'id': '11', 'type': 'attribute', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': '_api_attrs'}; {'id': '14', 'type': 'block', 'children': ['15']}; {'id': '15', 'type': 'raise_statement', 'children': ['16']}; {'id': '16', 'type': 'call', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'NotImplementedError'}; {'id': '18', 'type': 'argument_list', 'children': []}; {'id': '19', 'type': 'function_definition', 'children': ['20', '21', '23']}; {'id': '20', 'type': 'function_name', 'children': [], 'value': 'resolve_attribute_type'}; {'id': '21', 'type': 'parameters', 'children': ['22']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '23', 'type': 'block', 'children': ['24', '37', '46', '59', '68', '88']}; {'id': '24', 'type': 'while_statement', 'children': ['25', '30']}; {'id': '25', 'type': 'call', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '27', 'type': 'argument_list', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'list'}; {'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': 'attr_type'}; {'id': '34', 'type': 'subscript', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '36', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '37', 'type': 'if_statement', 'children': ['38', '41']}; {'id': '38', 'type': 'comparison_operator', 'children': ['39', '40'], 'value': '=='}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '40', 'type': 'string', 'children': [], 'value': "'self'"}; {'id': '41', 'type': 'block', 'children': ['42']}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '46', 'type': 'if_statement', 'children': ['47', '50']}; {'id': '47', 'type': 'comparison_operator', 'children': ['48', '49'], 'value': '=='}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '49', 'type': 'string', 'children': [], 'value': "'date'"}; {'id': '50', 'type': 'block', 'children': ['51']}; {'id': '51', 'type': 'expression_statement', 'children': ['52']}; {'id': '52', 'type': 'assignment', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '54', 'type': 'attribute', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'datetime'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'datetime'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'fromtimestamp'}; {'id': '59', 'type': 'if_statement', 'children': ['60', '63']}; {'id': '60', 'type': 'comparison_operator', 'children': ['61', '62'], 'value': 'is'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '63', 'type': 'block', 'children': ['64']}; {'id': '64', 'type': 'expression_statement', 'children': ['65']}; {'id': '65', 'type': 'assignment', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'unicode'}; {'id': '68', 'type': 'if_statement', 'children': ['69', '74']}; {'id': '69', 'type': 'call', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'hasattr'}; {'id': '71', 'type': 'argument_list', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '73', 'type': 'string', 'children': [], 'value': "'from_api'"}; {'id': '74', 'type': 'block', 'children': ['75']}; {'id': '75', 'type': 'return_statement', 'children': ['76']}; {'id': '76', 'type': 'lambda', 'children': ['77', '80']}; {'id': '77', 'type': 'lambda_parameters', 'children': ['78']}; {'id': '78', 'type': 'dictionary_splat_pattern', 'children': ['79']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '80', 'type': 'call', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'from_api'}; {'id': '84', 'type': 'argument_list', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'api'}; {'id': '86', 'type': 'dictionary_splat', 'children': ['87']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '88', 'type': 'return_statement', 'children': ['89']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '90', 'type': 'function_definition', 'children': ['91', '92', '95']}; {'id': '91', 'type': 'function_name', 'children': [], 'value': 'instantiate_attr'}; {'id': '92', 'type': 'parameters', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '95', 'type': 'block', 'children': ['96', '109']}; {'id': '96', 'type': 'if_statement', 'children': ['97', '102']}; {'id': '97', 'type': 'call', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '99', 'type': 'argument_list', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '102', 'type': 'block', 'children': ['103']}; {'id': '103', 'type': 'return_statement', 'children': ['104']}; {'id': '104', 'type': 'call', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'dictionary_splat', 'children': ['108']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '109', 'type': 'return_statement', 'children': ['110']}; {'id': '110', 'type': 'call', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '114', 'type': 'function_definition', 'children': ['115', '116', '119']}; {'id': '115', 'type': 'function_name', 'children': [], 'value': 'instantiate_array'}; {'id': '116', 'type': 'parameters', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'attr_values'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '119', 'type': 'block', 'children': ['120', '124', '137']}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'func'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'instantiate_attr'}; {'id': '124', 'type': 'if_statement', 'children': ['125', '132']}; {'id': '125', 'type': 'call', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '127', 'type': 'argument_list', 'children': ['128', '131']}; {'id': '128', 'type': 'subscript', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'attr_values'}; {'id': '130', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '132', 'type': 'block', 'children': ['133']}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'assignment', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'func'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'instantiate_array'}; {'id': '137', 'type': 'return_statement', 'children': ['138']}; {'id': '138', 'type': 'list_comprehension', 'children': ['139', '144']}; {'id': '139', 'type': 'call', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'func'}; {'id': '141', 'type': 'argument_list', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'val'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '144', 'type': 'for_in_clause', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'val'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'attr_values'}; {'id': '147', 'type': 'function_definition', 'children': ['148', '149', '152']}; {'id': '148', 'type': 'function_name', 'children': [], 'value': 'instantiate'}; {'id': '149', 'type': 'parameters', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '152', 'type': 'block', 'children': ['153', '166']}; {'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': 'attr_value'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '159', 'type': 'block', 'children': ['160']}; {'id': '160', 'type': 'return_statement', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'instantiate_array'}; {'id': '163', 'type': 'argument_list', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '166', 'type': 'return_statement', 'children': ['167']}; {'id': '167', 'type': 'call', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'instantiate_attr'}; {'id': '169', 'type': 'argument_list', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'assignment', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'instance'}; {'id': '175', 'type': 'call', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '177', 'type': 'argument_list', 'children': ['178']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'api'}; {'id': '179', 'type': 'for_statement', 'children': ['180', '184', '187']}; {'id': '180', 'type': 'pattern_list', 'children': ['181', '182', '183']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'attr_name'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'attr_default'}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': '_api_attrs'}; {'id': '187', 'type': 'block', 'children': ['188', '198', '216', '223', '236', '245']}; {'id': '188', 'type': 'expression_statement', 'children': ['189']}; {'id': '189', 'type': 'assignment', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '191', 'type': 'call', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '195', 'type': 'argument_list', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'attr_name'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'attr_default'}; {'id': '198', 'type': 'if_statement', 'children': ['199', '202']}; {'id': '199', 'type': 'comparison_operator', 'children': ['200', '201'], 'value': 'is'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'TypeError'}; {'id': '202', 'type': 'block', 'children': ['203']}; {'id': '203', 'type': 'raise_statement', 'children': ['204']}; {'id': '204', 'type': 'call', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'TypeError'}; {'id': '206', 'type': 'argument_list', 'children': ['207']}; {'id': '207', 'type': 'call', 'children': ['208', '211']}; {'id': '208', 'type': 'attribute', 'children': ['209', '210']}; {'id': '209', 'type': 'string', 'children': [], 'value': "'{} requires argument {}'"}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '211', 'type': 'argument_list', 'children': ['212', '215']}; {'id': '212', 'type': 'attribute', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': '__name__'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'attr_name'}; {'id': '216', 'type': 'expression_statement', 'children': ['217']}; {'id': '217', 'type': 'assignment', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '219', 'type': 'call', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'resolve_attribute_type'}; {'id': '221', 'type': 'argument_list', 'children': ['222']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '223', 'type': 'if_statement', 'children': ['224', '227']}; {'id': '224', 'type': 'comparison_operator', 'children': ['225', '226'], 'value': '!='}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'attr_default'}; {'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': 'attr_value'}; {'id': '231', 'type': 'call', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'instantiate'}; {'id': '233', 'type': 'argument_list', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'attr_type'}; {'id': '236', 'type': 'if_statement', 'children': ['237', '240']}; {'id': '237', 'type': 'comparison_operator', 'children': ['238', '239'], 'value': '=='}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'attr_name'}; {'id': '239', 'type': 'string', 'children': [], 'value': "'from'"}; {'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': 'attr_name'}; {'id': '244', 'type': 'string', 'children': [], 'value': "'froom'"}; {'id': '245', 'type': 'expression_statement', 'children': ['246']}; {'id': '246', 'type': 'call', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'setattr'}; {'id': '248', 'type': 'argument_list', 'children': ['249', '250', '251']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'instance'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'attr_name'}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'attr_value'}; {'id': '252', 'type': 'return_statement', 'children': ['253']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'instance'} | Parses a payload from the API, guided by `_api_attrs` |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'updateEditor'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '14', '22', '32', '36', '40', '53', '101', '110']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '9', 'type': 'call', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'currentRule'}; {'id': '13', 'type': 'argument_list', 'children': []}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'operator'}; {'id': '17', 'type': 'call', 'children': ['18', '21']}; {'id': '18', 'type': 'attribute', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'currentOperator'}; {'id': '21', 'type': 'argument_list', 'children': []}; {'id': '22', 'type': 'expression_statement', 'children': ['23']}; {'id': '23', 'type': 'assignment', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'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': 'self'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'uiWidgetAREA'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'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': 'editorType'}; {'id': '35', 'type': 'None', 'children': []}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'assignment', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '39', 'type': 'string', 'children': [], 'value': "''"}; {'id': '40', 'type': 'if_statement', 'children': ['41', '43']}; {'id': '41', 'type': '()', 'children': ['42']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '43', 'type': 'block', 'children': ['44']}; {'id': '44', 'type': 'expression_statement', 'children': ['45']}; {'id': '45', 'type': 'assignment', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'editorType'}; {'id': '47', 'type': 'call', 'children': ['48', '51']}; {'id': '48', 'type': 'attribute', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'editorType'}; {'id': '51', 'type': 'argument_list', 'children': ['52']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'operator'}; {'id': '53', 'type': 'if_statement', 'children': ['54', '65', '67']}; {'id': '54', 'type': '()', 'children': ['55']}; {'id': '55', 'type': 'boolean_operator', 'children': ['56', '59'], 'value': 'and'}; {'id': '56', 'type': 'boolean_operator', 'children': ['57', '58'], 'value': 'and'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'editorType'}; {'id': '59', 'type': 'comparison_operator', 'children': ['60', '64'], 'value': '=='}; {'id': '60', 'type': 'call', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '62', 'type': 'argument_list', 'children': ['63']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'editorType'}; {'id': '65', 'type': 'block', 'children': ['66']}; {'id': '66', 'type': 'return_statement', 'children': []}; {'id': '67', 'type': 'elif_clause', 'children': ['68', '70']}; {'id': '68', 'type': '()', 'children': ['69']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '70', 'type': 'block', 'children': ['71', '88', '95']}; {'id': '71', 'type': 'if_statement', 'children': ['72', '79']}; {'id': '72', 'type': '()', 'children': ['73']}; {'id': '73', 'type': 'comparison_operator', 'children': ['74', '78'], 'value': '!='}; {'id': '74', 'type': 'call', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'QWidget'}; {'id': '79', 'type': 'block', 'children': ['80']}; {'id': '80', 'type': 'expression_statement', 'children': ['81']}; {'id': '81', 'type': 'assignment', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '83', 'type': 'call', 'children': ['84', '87']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '87', 'type': 'argument_list', 'children': []}; {'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': 'widget'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'setParent'}; {'id': '93', 'type': 'argument_list', 'children': ['94']}; {'id': '94', 'type': 'None', 'children': []}; {'id': '95', 'type': 'expression_statement', 'children': ['96']}; {'id': '96', 'type': 'call', 'children': ['97', '100']}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'deleteLater'}; {'id': '100', 'type': 'argument_list', 'children': []}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'call', 'children': ['103', '108']}; {'id': '103', 'type': 'attribute', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'uiWidgetAREA'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'setWidget'}; {'id': '108', 'type': 'argument_list', 'children': ['109']}; {'id': '109', 'type': 'None', 'children': []}; {'id': '110', 'type': 'if_statement', 'children': ['111', '113']}; {'id': '111', 'type': '()', 'children': ['112']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'editorType'}; {'id': '113', 'type': 'block', 'children': ['114', '121', '177', '186']}; {'id': '114', 'type': 'expression_statement', 'children': ['115']}; {'id': '115', 'type': 'assignment', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '117', 'type': 'call', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'editorType'}; {'id': '119', 'type': 'argument_list', 'children': ['120']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '121', 'type': 'if_statement', 'children': ['122', '128']}; {'id': '122', 'type': '()', 'children': ['123']}; {'id': '123', 'type': 'call', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '125', 'type': 'argument_list', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'QLineEdit'}; {'id': '128', 'type': 'block', 'children': ['129', '137', '162']}; {'id': '129', 'type': 'expression_statement', 'children': ['130']}; {'id': '130', 'type': 'assignment', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'terms'}; {'id': '132', 'type': 'call', 'children': ['133', '136']}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'completionTerms'}; {'id': '136', 'type': 'argument_list', 'children': []}; {'id': '137', 'type': 'if_statement', 'children': ['138', '141']}; {'id': '138', 'type': '()', 'children': ['139']}; {'id': '139', 'type': 'not_operator', 'children': ['140']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'terms'}; {'id': '141', 'type': 'block', 'children': ['142', '150']}; {'id': '142', 'type': 'expression_statement', 'children': ['143']}; {'id': '143', 'type': 'assignment', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'qwidget'}; {'id': '145', 'type': 'call', 'children': ['146', '149']}; {'id': '146', 'type': 'attribute', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'queryBuilderWidget'}; {'id': '149', 'type': 'argument_list', 'children': []}; {'id': '150', 'type': 'if_statement', 'children': ['151', '153']}; {'id': '151', 'type': '()', 'children': ['152']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'qwidget'}; {'id': '153', 'type': 'block', 'children': ['154']}; {'id': '154', 'type': 'expression_statement', 'children': ['155']}; {'id': '155', 'type': 'assignment', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'terms'}; {'id': '157', 'type': 'call', 'children': ['158', '161']}; {'id': '158', 'type': 'attribute', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'qwidget'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'completionTerms'}; {'id': '161', 'type': 'argument_list', 'children': []}; {'id': '162', 'type': 'if_statement', 'children': ['163', '165']}; {'id': '163', 'type': '()', 'children': ['164']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'terms'}; {'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': 'widget'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'setCompleter'}; {'id': '171', 'type': 'argument_list', 'children': ['172']}; {'id': '172', 'type': 'call', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'XQueryCompleter'}; {'id': '174', 'type': 'argument_list', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'terms'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '177', 'type': 'expression_statement', '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': 'self'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'uiWidgetAREA'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'setWidget'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'widget'}; {'id': '186', 'type': 'if_statement', 'children': ['187', '194']}; {'id': '187', 'type': '()', 'children': ['188']}; {'id': '188', 'type': 'comparison_operator', 'children': ['189', '193'], 'value': '!='}; {'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': 'widget'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'QWidget'}; {'id': '194', 'type': 'block', 'children': ['195']}; {'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': 'widget'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'setText'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'text'} | Updates the editor based on the current selection. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'StreamMetrics'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'request_iterator'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'context'}; {'id': '7', 'type': 'block', 'children': ['8', '15', '23', '27', '31', '46', '77', '108', '119', '130', '147', '153', '159', '163', '167', '173', '402']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'call', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'LOG'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '13', 'type': 'argument_list', 'children': ['14']}; {'id': '14', 'type': 'string', 'children': [], 'value': '"StreamMetrics called"'}; {'id': '15', 'type': 'expression_statement', 'children': ['16']}; {'id': '16', 'type': 'assignment', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'collect_args'}; {'id': '18', 'type': '()', 'children': ['19']}; {'id': '19', 'type': 'call', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'next'}; {'id': '21', 'type': 'argument_list', 'children': ['22']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'request_iterator'}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'max_metrics_buffer'}; {'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': 'max_collect_duration'}; {'id': '30', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'cfg'}; {'id': '34', 'type': 'call', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'Metric'}; {'id': '36', 'type': 'argument_list', 'children': ['37']}; {'id': '37', 'type': 'keyword_argument', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'pb'}; {'id': '39', 'type': 'subscript', 'children': ['40', '45']}; {'id': '40', 'type': 'attribute', 'children': ['41', '44']}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'collect_args'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'Metrics_Arg'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '45', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '46', 'type': 'try_statement', 'children': ['47', '59']}; {'id': '47', 'type': 'block', 'children': ['48']}; {'id': '48', 'type': 'expression_statement', 'children': ['49']}; {'id': '49', 'type': 'assignment', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'max_metrics_buffer'}; {'id': '51', 'type': 'call', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '53', 'type': 'argument_list', 'children': ['54']}; {'id': '54', 'type': 'subscript', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'cfg'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '58', 'type': 'string', 'children': [], 'value': '"max-metrics-buffer"'}; {'id': '59', 'type': 'except_clause', 'children': ['60', '64']}; {'id': '60', 'type': 'as_pattern', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '62', 'type': 'as_pattern_target', 'children': ['63']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '64', 'type': 'block', 'children': ['65']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'call', 'children': ['67', '70']}; {'id': '67', 'type': 'attribute', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'LOG'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '70', 'type': 'argument_list', 'children': ['71']}; {'id': '71', 'type': 'call', 'children': ['72', '75']}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'string', 'children': [], 'value': '"Unable to get schedule parameters: {}"'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '75', 'type': 'argument_list', 'children': ['76']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '77', 'type': 'try_statement', 'children': ['78', '90']}; {'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': 'max_collect_duration'}; {'id': '82', 'type': 'call', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '84', 'type': 'argument_list', 'children': ['85']}; {'id': '85', 'type': 'subscript', 'children': ['86', '89']}; {'id': '86', 'type': 'attribute', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'cfg'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '89', 'type': 'string', 'children': [], 'value': '"max-collect-duration"'}; {'id': '90', 'type': 'except_clause', 'children': ['91', '95']}; {'id': '91', 'type': 'as_pattern', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '93', 'type': 'as_pattern_target', 'children': ['94']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'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': 'LOG'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '101', 'type': 'argument_list', 'children': ['102']}; {'id': '102', 'type': 'call', 'children': ['103', '106']}; {'id': '103', 'type': 'attribute', 'children': ['104', '105']}; {'id': '104', 'type': 'string', 'children': [], 'value': '"Unable to get schedule parameters: {}"'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '108', 'type': 'if_statement', 'children': ['109', '112']}; {'id': '109', 'type': 'comparison_operator', 'children': ['110', '111'], 'value': '>'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'max_metrics_buffer'}; {'id': '111', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '112', 'type': 'block', 'children': ['113']}; {'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': 'max_metrics_buffer'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'max_metrics_buffer'}; {'id': '119', 'type': 'if_statement', 'children': ['120', '123']}; {'id': '120', 'type': 'comparison_operator', 'children': ['121', '122'], 'value': '>'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'max_collect_duration'}; {'id': '122', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '123', 'type': 'block', 'children': ['124']}; {'id': '124', 'type': 'expression_statement', 'children': ['125']}; {'id': '125', 'type': 'assignment', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'max_collect_duration'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'max_collect_duration'}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'assignment', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'thread'}; {'id': '133', 'type': 'call', 'children': ['134', '137']}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'threading'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'Thread'}; {'id': '137', 'type': 'argument_list', 'children': ['138', '143']}; {'id': '138', 'type': 'keyword_argument', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': '_stream_wrapper'}; {'id': '143', 'type': 'keyword_argument', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '145', 'type': 'tuple', 'children': ['146']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'collect_args'}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'assignment', 'children': ['149', '152']}; {'id': '149', 'type': 'attribute', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'thread'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'daemon'}; {'id': '152', 'type': 'True', 'children': []}; {'id': '153', 'type': 'expression_statement', 'children': ['154']}; {'id': '154', 'type': 'call', 'children': ['155', '158']}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'thread'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '158', 'type': 'argument_list', 'children': []}; {'id': '159', 'type': 'expression_statement', 'children': ['160']}; {'id': '160', 'type': 'assignment', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '162', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'assignment', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '166', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '167', 'type': 'expression_statement', 'children': ['168']}; {'id': '168', 'type': 'assignment', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'stream_timeout'}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'max_collect_duration'}; {'id': '173', 'type': 'while_statement', 'children': ['174', '179']}; {'id': '174', 'type': 'call', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'context'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'is_active'}; {'id': '178', 'type': 'argument_list', 'children': []}; {'id': '179', 'type': 'block', 'children': ['180']}; {'id': '180', 'type': 'try_statement', 'children': ['181', '223', '276']}; {'id': '181', 'type': 'block', 'children': ['182', '190', '206', '219']}; {'id': '182', 'type': 'expression_statement', 'children': ['183']}; {'id': '183', 'type': 'assignment', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 't_start'}; {'id': '185', 'type': 'call', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '189', 'type': 'argument_list', 'children': []}; {'id': '190', 'type': 'expression_statement', 'children': ['191']}; {'id': '191', 'type': 'assignment', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '193', 'type': 'call', 'children': ['194', '199']}; {'id': '194', 'type': 'attribute', 'children': ['195', '198']}; {'id': '195', 'type': 'attribute', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'metrics_queue'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '199', 'type': 'argument_list', 'children': ['200', '203']}; {'id': '200', 'type': 'keyword_argument', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'block'}; {'id': '202', 'type': 'True', 'children': []}; {'id': '203', 'type': 'keyword_argument', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'timeout'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'stream_timeout'}; {'id': '206', 'type': 'expression_statement', 'children': ['207']}; {'id': '207', 'type': 'assignment', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'elapsed'}; {'id': '209', 'type': 'call', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'round'}; {'id': '211', 'type': 'argument_list', 'children': ['212']}; {'id': '212', 'type': 'binary_operator', 'children': ['213', '218'], 'value': '-'}; {'id': '213', 'type': 'call', 'children': ['214', '217']}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '217', 'type': 'argument_list', 'children': []}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 't_start'}; {'id': '219', 'type': 'expression_statement', 'children': ['220']}; {'id': '220', 'type': 'augmented_assignment', 'children': ['221', '222'], 'value': '-='}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'stream_timeout'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'elapsed'}; {'id': '223', 'type': 'except_clause', 'children': ['224', '227']}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'queue'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'Empty'}; {'id': '227', 'type': 'block', 'children': ['228', '243', '263', '267', '273']}; {'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': 'LOG'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '233', 'type': 'argument_list', 'children': ['234']}; {'id': '234', 'type': 'call', 'children': ['235', '238']}; {'id': '235', 'type': 'attribute', 'children': ['236', '237']}; {'id': '236', 'type': 'string', 'children': [], 'value': '"Max collect duration exceeded. Streaming {} metrics"'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '238', 'type': 'argument_list', 'children': ['239']}; {'id': '239', 'type': 'call', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '241', 'type': 'argument_list', 'children': ['242']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '243', 'type': 'expression_statement', 'children': ['244']}; {'id': '244', 'type': 'assignment', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'metrics_col'}; {'id': '246', 'type': 'call', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'CollectReply'}; {'id': '248', 'type': 'argument_list', 'children': ['249']}; {'id': '249', 'type': 'keyword_argument', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'Metrics_Reply'}; {'id': '251', 'type': 'call', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'MetricsReply'}; {'id': '253', 'type': 'argument_list', 'children': ['254']}; {'id': '254', 'type': 'keyword_argument', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '256', 'type': 'list_comprehension', 'children': ['257', '260']}; {'id': '257', 'type': 'attribute', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'pb'}; {'id': '260', 'type': 'for_in_clause', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '263', 'type': 'expression_statement', 'children': ['264']}; {'id': '264', 'type': 'assignment', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '266', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '267', 'type': 'expression_statement', 'children': ['268']}; {'id': '268', 'type': 'assignment', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'stream_timeout'}; {'id': '270', 'type': 'attribute', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'max_collect_duration'}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'id': '274', 'type': 'yield', 'children': ['275']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'metrics_col'}; {'id': '276', 'type': 'else_clause', 'children': ['277']}; {'id': '277', 'type': 'block', 'children': ['278', '347']}; {'id': '278', 'type': 'for_statement', 'children': ['279', '280', '281']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '281', 'type': 'block', 'children': ['282', '289']}; {'id': '282', 'type': 'expression_statement', 'children': ['283']}; {'id': '283', 'type': 'call', 'children': ['284', '287']}; {'id': '284', 'type': 'attribute', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '287', 'type': 'argument_list', 'children': ['288']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '289', 'type': 'if_statement', 'children': ['290', '298']}; {'id': '290', 'type': 'comparison_operator', 'children': ['291', '295'], 'value': '=='}; {'id': '291', 'type': 'call', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '293', 'type': 'argument_list', 'children': ['294']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '295', 'type': 'attribute', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'max_metrics_buffer'}; {'id': '298', 'type': 'block', 'children': ['299', '314', '334', '338', '344']}; {'id': '299', 'type': 'expression_statement', 'children': ['300']}; {'id': '300', 'type': 'call', 'children': ['301', '304']}; {'id': '301', 'type': 'attribute', 'children': ['302', '303']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'LOG'}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '304', 'type': 'argument_list', 'children': ['305']}; {'id': '305', 'type': 'call', 'children': ['306', '309']}; {'id': '306', 'type': 'attribute', 'children': ['307', '308']}; {'id': '307', 'type': 'string', 'children': [], 'value': '"Max metrics buffer reached. Streaming {} metrics"'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '309', 'type': 'argument_list', 'children': ['310']}; {'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': 'metrics_to_stream'}; {'id': '314', 'type': 'expression_statement', 'children': ['315']}; {'id': '315', 'type': 'assignment', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'metrics_col'}; {'id': '317', 'type': 'call', 'children': ['318', '319']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'CollectReply'}; {'id': '319', 'type': 'argument_list', 'children': ['320']}; {'id': '320', 'type': 'keyword_argument', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'Metrics_Reply'}; {'id': '322', 'type': 'call', 'children': ['323', '324']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'MetricsReply'}; {'id': '324', 'type': 'argument_list', 'children': ['325']}; {'id': '325', 'type': 'keyword_argument', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '327', 'type': 'list_comprehension', 'children': ['328', '331']}; {'id': '328', 'type': 'attribute', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'pb'}; {'id': '331', 'type': 'for_in_clause', 'children': ['332', '333']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '334', 'type': 'expression_statement', 'children': ['335']}; {'id': '335', 'type': 'assignment', 'children': ['336', '337']}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '337', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '338', 'type': 'expression_statement', 'children': ['339']}; {'id': '339', 'type': 'assignment', 'children': ['340', '341']}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'stream_timeout'}; {'id': '341', 'type': 'attribute', 'children': ['342', '343']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'max_collect_duration'}; {'id': '344', 'type': 'expression_statement', 'children': ['345']}; {'id': '345', 'type': 'yield', 'children': ['346']}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'metrics_col'}; {'id': '347', 'type': 'if_statement', 'children': ['348', '353']}; {'id': '348', 'type': 'comparison_operator', 'children': ['349', '352'], 'value': '=='}; {'id': '349', 'type': 'attribute', 'children': ['350', '351']}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'max_metrics_buffer'}; {'id': '352', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '353', 'type': 'block', 'children': ['354', '369', '389', '393', '399']}; {'id': '354', 'type': 'expression_statement', 'children': ['355']}; {'id': '355', 'type': 'call', 'children': ['356', '359']}; {'id': '356', 'type': 'attribute', 'children': ['357', '358']}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'LOG'}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '359', 'type': 'argument_list', 'children': ['360']}; {'id': '360', 'type': 'call', 'children': ['361', '364']}; {'id': '361', 'type': 'attribute', 'children': ['362', '363']}; {'id': '362', 'type': 'string', 'children': [], 'value': '"Max metrics buffer set to 0. Streaming {} metrics"'}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '364', 'type': 'argument_list', 'children': ['365']}; {'id': '365', 'type': 'call', 'children': ['366', '367']}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '367', 'type': 'argument_list', 'children': ['368']}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '369', 'type': 'expression_statement', 'children': ['370']}; {'id': '370', 'type': 'assignment', 'children': ['371', '372']}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'metrics_col'}; {'id': '372', 'type': 'call', 'children': ['373', '374']}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'CollectReply'}; {'id': '374', 'type': 'argument_list', 'children': ['375']}; {'id': '375', 'type': 'keyword_argument', 'children': ['376', '377']}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'Metrics_Reply'}; {'id': '377', 'type': 'call', 'children': ['378', '379']}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'MetricsReply'}; {'id': '379', 'type': 'argument_list', 'children': ['380']}; {'id': '380', 'type': 'keyword_argument', 'children': ['381', '382']}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '382', 'type': 'list_comprehension', 'children': ['383', '386']}; {'id': '383', 'type': 'attribute', 'children': ['384', '385']}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'pb'}; {'id': '386', 'type': 'for_in_clause', 'children': ['387', '388']}; {'id': '387', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '388', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '389', 'type': 'expression_statement', 'children': ['390']}; {'id': '390', 'type': 'assignment', 'children': ['391', '392']}; {'id': '391', 'type': 'identifier', 'children': [], 'value': 'metrics_to_stream'}; {'id': '392', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '393', 'type': 'expression_statement', 'children': ['394']}; {'id': '394', 'type': 'assignment', 'children': ['395', '396']}; {'id': '395', 'type': 'identifier', 'children': [], 'value': 'stream_timeout'}; {'id': '396', 'type': 'attribute', 'children': ['397', '398']}; {'id': '397', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'max_collect_duration'}; {'id': '399', 'type': 'expression_statement', 'children': ['400']}; {'id': '400', 'type': 'yield', 'children': ['401']}; {'id': '401', 'type': 'identifier', 'children': [], 'value': 'metrics_col'}; {'id': '402', 'type': 'expression_statement', 'children': ['403']}; {'id': '403', 'type': 'call', 'children': ['404', '409']}; {'id': '404', 'type': 'attribute', 'children': ['405', '408']}; {'id': '405', 'type': 'attribute', 'children': ['406', '407']}; {'id': '406', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '407', 'type': 'identifier', 'children': [], 'value': 'done_queue'}; {'id': '408', 'type': 'identifier', 'children': [], 'value': 'put'}; {'id': '409', 'type': 'argument_list', 'children': ['410']}; {'id': '410', 'type': 'True', 'children': []} | Dispatches metrics streamed by collector |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'refresh'}; {'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': 'reloadData'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '10', 'type': 'False', 'children': []}; {'id': '11', 'type': 'block', 'children': ['12', '32', '40', '49', '57', '67', '80', '88', '103', '118', '167', '192', '208', '237', '250']}; {'id': '12', 'type': 'if_statement', 'children': ['13', '22']}; {'id': '13', 'type': 'not_operator', 'children': ['14']}; {'id': '14', 'type': '()', 'children': ['15']}; {'id': '15', 'type': 'boolean_operator', 'children': ['16', '21'], 'value': 'or'}; {'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': 'isVisible'}; {'id': '20', 'type': 'argument_list', 'children': []}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '22', 'type': 'block', 'children': ['23', '31']}; {'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': '_refreshTimer'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '30', 'type': 'argument_list', 'children': []}; {'id': '31', 'type': 'return_statement', 'children': []}; {'id': '32', 'type': 'if_statement', 'children': ['33', '38']}; {'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': 'isLoading'}; {'id': '37', 'type': 'argument_list', 'children': []}; {'id': '38', 'type': 'block', 'children': ['39']}; {'id': '39', 'type': 'return_statement', 'children': []}; {'id': '40', 'type': 'if_statement', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'reloadData'}; {'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': 'self'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'refreshQueryRecords'}; {'id': '48', 'type': 'argument_list', 'children': []}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'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': 'self'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': '_refreshTimer'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'stop'}; {'id': '56', 'type': 'argument_list', 'children': []}; {'id': '57', 'type': 'expression_statement', 'children': ['58']}; {'id': '58', 'type': 'call', 'children': ['59', '66']}; {'id': '59', 'type': 'attribute', 'children': ['60', '65']}; {'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': 'worker'}; {'id': '64', 'type': 'argument_list', 'children': []}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'cancel'}; {'id': '66', 'type': 'argument_list', 'children': []}; {'id': '67', 'type': 'if_statement', 'children': ['68', '71']}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': '_popup'}; {'id': '71', 'type': 'block', 'children': ['72']}; {'id': '72', 'type': 'expression_statement', 'children': ['73']}; {'id': '73', 'type': 'call', 'children': ['74', '79']}; {'id': '74', 'type': 'attribute', 'children': ['75', '78']}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': '_popup'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '79', 'type': 'argument_list', 'children': []}; {'id': '80', 'type': 'expression_statement', 'children': ['81']}; {'id': '81', 'type': 'assignment', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'currset'}; {'id': '83', 'type': 'call', 'children': ['84', '87']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'currentRecordSet'}; {'id': '87', 'type': 'argument_list', 'children': []}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'call', 'children': ['90', '97']}; {'id': '90', 'type': 'attribute', 'children': ['91', '96']}; {'id': '91', 'type': 'call', 'children': ['92', '95']}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'worker'}; {'id': '95', 'type': 'argument_list', 'children': []}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'setBatched'}; {'id': '97', 'type': 'argument_list', 'children': ['98']}; {'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': 'isPaged'}; {'id': '102', 'type': 'argument_list', 'children': []}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'call', 'children': ['105', '112']}; {'id': '105', 'type': 'attribute', 'children': ['106', '111']}; {'id': '106', 'type': 'call', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'worker'}; {'id': '110', 'type': 'argument_list', 'children': []}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'setBatchSize'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'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': 'pageSize'}; {'id': '117', 'type': 'argument_list', 'children': []}; {'id': '118', 'type': 'if_statement', 'children': ['119', '122', '134', '158']}; {'id': '119', 'type': 'attribute', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': '_searchTerms'}; {'id': '122', 'type': 'block', 'children': ['123', '130']}; {'id': '123', 'type': 'expression_statement', 'children': ['124']}; {'id': '124', 'type': 'call', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'currset'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'setGroupBy'}; {'id': '128', 'type': 'argument_list', 'children': ['129']}; {'id': '129', 'type': 'None', 'children': []}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'assignment', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'pageSize'}; {'id': '133', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '134', 'type': 'elif_clause', 'children': ['135', '146']}; {'id': '135', 'type': 'boolean_operator', 'children': ['136', '141'], 'value': 'and'}; {'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': 'groupBy'}; {'id': '140', 'type': 'argument_list', 'children': []}; {'id': '141', 'type': 'call', 'children': ['142', '145']}; {'id': '142', 'type': 'attribute', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'isGroupingActive'}; {'id': '145', 'type': 'argument_list', 'children': []}; {'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': 'currset'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'setGroupBy'}; {'id': '152', 'type': 'argument_list', 'children': ['153']}; {'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': 'groupBy'}; {'id': '157', 'type': 'argument_list', 'children': []}; {'id': '158', 'type': 'else_clause', 'children': ['159']}; {'id': '159', 'type': 'block', 'children': ['160']}; {'id': '160', 'type': 'expression_statement', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '165']}; {'id': '162', 'type': 'attribute', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'currset'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'setGroupBy'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'None', 'children': []}; {'id': '167', 'type': 'if_statement', 'children': ['168', '173']}; {'id': '168', 'type': 'call', 'children': ['169', '172']}; {'id': '169', 'type': 'attribute', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '172', 'type': 'argument_list', 'children': []}; {'id': '173', 'type': 'block', 'children': ['174', '181']}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'call', 'children': ['176', '179']}; {'id': '176', 'type': 'attribute', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'currset'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'setOrdered'}; {'id': '179', 'type': 'argument_list', 'children': ['180']}; {'id': '180', 'type': 'True', 'children': []}; {'id': '181', 'type': 'expression_statement', 'children': ['182']}; {'id': '182', 'type': 'call', 'children': ['183', '186']}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'currset'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'setOrder'}; {'id': '186', 'type': 'argument_list', 'children': ['187']}; {'id': '187', 'type': 'call', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '191', 'type': 'argument_list', 'children': []}; {'id': '192', 'type': 'if_statement', 'children': ['193', '198']}; {'id': '193', 'type': 'call', 'children': ['194', '197']}; {'id': '194', 'type': 'attribute', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'useLoader'}; {'id': '197', 'type': 'argument_list', 'children': []}; {'id': '198', 'type': 'block', 'children': ['199']}; {'id': '199', 'type': 'expression_statement', 'children': ['200']}; {'id': '200', 'type': 'assignment', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'loader'}; {'id': '202', 'type': 'call', 'children': ['203', '206']}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'XLoaderWidget'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '206', 'type': 'argument_list', 'children': ['207']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '208', 'type': 'if_statement', 'children': ['209', '214']}; {'id': '209', 'type': 'call', 'children': ['210', '213']}; {'id': '210', 'type': 'attribute', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'specifiedColumnsOnly'}; {'id': '213', 'type': 'argument_list', 'children': []}; {'id': '214', 'type': 'block', 'children': ['215']}; {'id': '215', 'type': 'expression_statement', 'children': ['216']}; {'id': '216', 'type': 'call', 'children': ['217', '220']}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'currset'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'setColumns'}; {'id': '220', 'type': 'argument_list', 'children': ['221']}; {'id': '221', 'type': 'call', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'map'}; {'id': '223', 'type': 'argument_list', 'children': ['224', '232']}; {'id': '224', 'type': 'lambda', 'children': ['225', '227']}; {'id': '225', 'type': 'lambda_parameters', 'children': ['226']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '227', 'type': 'call', 'children': ['228', '231']}; {'id': '228', 'type': 'attribute', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '231', 'type': 'argument_list', 'children': []}; {'id': '232', 'type': 'call', 'children': ['233', '236']}; {'id': '233', 'type': 'attribute', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'specifiedColumns'}; {'id': '236', 'type': 'argument_list', 'children': []}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'assignment', 'children': ['239', '242']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': '_loadedColumns'}; {'id': '242', 'type': 'call', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '244', 'type': 'argument_list', 'children': ['245']}; {'id': '245', 'type': 'call', 'children': ['246', '249']}; {'id': '246', 'type': 'attribute', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'visibleColumns'}; {'id': '249', 'type': 'argument_list', 'children': []}; {'id': '250', 'type': 'if_statement', 'children': ['251', '262', '285']}; {'id': '251', 'type': 'boolean_operator', 'children': ['252', '257'], 'value': 'and'}; {'id': '252', 'type': 'call', 'children': ['253', '256']}; {'id': '253', 'type': 'attribute', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'isThreadEnabled'}; {'id': '256', 'type': 'argument_list', 'children': []}; {'id': '257', 'type': 'call', 'children': ['258', '261']}; {'id': '258', 'type': 'attribute', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'currset'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'isThreadEnabled'}; {'id': '261', 'type': 'argument_list', 'children': []}; {'id': '262', 'type': 'block', 'children': ['263', '276']}; {'id': '263', 'type': 'expression_statement', 'children': ['264']}; {'id': '264', 'type': 'call', 'children': ['265', '272']}; {'id': '265', 'type': 'attribute', 'children': ['266', '271']}; {'id': '266', 'type': 'call', 'children': ['267', '270']}; {'id': '267', 'type': 'attribute', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'worker'}; {'id': '270', 'type': 'argument_list', 'children': []}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'setPreloadColumns'}; {'id': '272', 'type': 'argument_list', 'children': ['273']}; {'id': '273', 'type': 'attribute', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': '_preloadColumns'}; {'id': '276', 'type': 'expression_statement', 'children': ['277']}; {'id': '277', 'type': 'call', 'children': ['278', '283']}; {'id': '278', 'type': 'attribute', 'children': ['279', '282']}; {'id': '279', 'type': 'attribute', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'loadRequested'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '283', 'type': 'argument_list', 'children': ['284']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'currset'}; {'id': '285', 'type': 'else_clause', 'children': ['286']}; {'id': '286', 'type': 'block', 'children': ['287', '296', '307']}; {'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': 'QApplication'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'setOverrideCursor'}; {'id': '292', 'type': 'argument_list', 'children': ['293']}; {'id': '293', 'type': 'attribute', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'WaitCursor'}; {'id': '296', 'type': 'expression_statement', 'children': ['297']}; {'id': '297', 'type': 'call', 'children': ['298', '305']}; {'id': '298', 'type': 'attribute', 'children': ['299', '304']}; {'id': '299', 'type': 'call', 'children': ['300', '303']}; {'id': '300', 'type': 'attribute', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'worker'}; {'id': '303', 'type': 'argument_list', 'children': []}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'loadRecords'}; {'id': '305', 'type': 'argument_list', 'children': ['306']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'currset'}; {'id': '307', 'type': 'expression_statement', 'children': ['308']}; {'id': '308', 'type': 'call', 'children': ['309', '312']}; {'id': '309', 'type': 'attribute', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'QApplication'}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'restoreOverrideCursor'}; {'id': '312', 'type': 'argument_list', 'children': []} | Refreshes the record list for the tree. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'rebuild'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '14', '24', '31', '41', '47', '55', '93', '101', '109', '116', '123', '130', '139', '150', '161', '165', '174', '182', '221', '228', '451', '490', '497']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'navitem'}; {'id': '9', 'type': 'call', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'currentItem'}; {'id': '13', 'type': 'argument_list', 'children': []}; {'id': '14', 'type': 'if_statement', 'children': ['15', '17']}; {'id': '15', 'type': '()', 'children': ['16']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'navitem'}; {'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': 'navitem'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'initialize'}; {'id': '23', 'type': 'argument_list', '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': 'self'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'setUpdatesEnabled'}; {'id': '29', 'type': 'argument_list', 'children': ['30']}; {'id': '30', 'type': 'False', 'children': []}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'call', 'children': ['33', '40']}; {'id': '33', 'type': 'attribute', 'children': ['34', '39']}; {'id': '34', 'type': 'call', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'scrollWidget'}; {'id': '38', 'type': 'argument_list', 'children': []}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'show'}; {'id': '40', 'type': 'argument_list', 'children': []}; {'id': '41', 'type': 'expression_statement', 'children': ['42']}; {'id': '42', 'type': 'assignment', 'children': ['43', '46']}; {'id': '43', 'type': 'attribute', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': '_originalText'}; {'id': '46', 'type': 'string', 'children': [], 'value': "''"}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'assignment', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'partsw'}; {'id': '50', 'type': 'call', 'children': ['51', '54']}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'partsWidget'}; {'id': '54', 'type': 'argument_list', 'children': []}; {'id': '55', 'type': 'for_statement', 'children': ['56', '57', '64']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '57', 'type': 'call', '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': '_buttonGroup'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'buttons'}; {'id': '63', 'type': 'argument_list', 'children': []}; {'id': '64', 'type': 'block', 'children': ['65', '74', '80', '87']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'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': 'self'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': '_buttonGroup'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'removeButton'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'button'}; {'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': 'button'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '79', 'type': 'argument_list', 'children': []}; {'id': '80', 'type': 'expression_statement', 'children': ['81']}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'setParent'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'None', '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': 'button'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'deleteLater'}; {'id': '92', 'type': 'argument_list', 'children': []}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '96', 'type': 'call', 'children': ['97', '100']}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'partsw'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '100', 'type': 'argument_list', 'children': []}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '104', 'type': 'call', 'children': ['105', '108']}; {'id': '105', 'type': 'attribute', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '108', 'type': 'argument_list', 'children': []}; {'id': '109', 'type': 'expression_statement', 'children': ['110']}; {'id': '110', 'type': 'assignment', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '112', 'type': 'call', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'QToolButton'}; {'id': '114', 'type': 'argument_list', 'children': ['115']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'partsw'}; {'id': '116', 'type': 'expression_statement', 'children': ['117']}; {'id': '117', 'type': 'call', 'children': ['118', '121']}; {'id': '118', 'type': 'attribute', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'setAutoRaise'}; {'id': '121', 'type': 'argument_list', 'children': ['122']}; {'id': '122', 'type': 'True', 'children': []}; {'id': '123', 'type': 'expression_statement', 'children': ['124']}; {'id': '124', 'type': 'call', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'setMaximumWidth'}; {'id': '128', 'type': 'argument_list', 'children': ['129']}; {'id': '129', 'type': 'integer', 'children': [], 'value': '12'}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'call', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'setArrowType'}; {'id': '135', 'type': 'argument_list', 'children': ['136']}; {'id': '136', 'type': 'attribute', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'RightArrow'}; {'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': 'button'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'setProperty'}; {'id': '144', 'type': 'argument_list', 'children': ['145', '146']}; {'id': '145', 'type': 'string', 'children': [], 'value': "'path'"}; {'id': '146', 'type': 'call', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'wrapVariant'}; {'id': '148', 'type': 'argument_list', 'children': ['149']}; {'id': '149', 'type': 'string', 'children': [], 'value': "''"}; {'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': 'button'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'setProperty'}; {'id': '155', 'type': 'argument_list', 'children': ['156', '157']}; {'id': '156', 'type': 'string', 'children': [], 'value': "'is_completer'"}; {'id': '157', 'type': 'call', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'wrapVariant'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'True', 'children': []}; {'id': '161', 'type': 'expression_statement', 'children': ['162']}; {'id': '162', 'type': 'assignment', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'last_button'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '165', 'type': 'expression_statement', 'children': ['166']}; {'id': '166', 'type': 'call', 'children': ['167', '172']}; {'id': '167', 'type': 'attribute', 'children': ['168', '171']}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': '_buttonGroup'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'addButton'}; {'id': '172', 'type': 'argument_list', 'children': ['173']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'call', 'children': ['176', '179']}; {'id': '176', 'type': 'attribute', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'insertWidget'}; {'id': '179', 'type': 'argument_list', 'children': ['180', '181']}; {'id': '180', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '182', 'type': 'if_statement', 'children': ['183', '187', '215']}; {'id': '183', 'type': '()', 'children': ['184']}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': '_navigationModel'}; {'id': '187', 'type': 'block', 'children': ['188', '203']}; {'id': '188', 'type': 'expression_statement', 'children': ['189']}; {'id': '189', 'type': 'assignment', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'last_item'}; {'id': '191', 'type': 'call', 'children': ['192', '197']}; {'id': '192', 'type': 'attribute', 'children': ['193', '196']}; {'id': '193', 'type': 'attribute', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': '_navigationModel'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'itemByPath'}; {'id': '197', 'type': 'argument_list', 'children': ['198']}; {'id': '198', 'type': 'call', 'children': ['199', '202']}; {'id': '199', 'type': 'attribute', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '202', 'type': 'argument_list', 'children': []}; {'id': '203', 'type': 'expression_statement', 'children': ['204']}; {'id': '204', 'type': 'assignment', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'show_last'}; {'id': '206', 'type': 'boolean_operator', 'children': ['207', '208'], 'value': 'and'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'last_item'}; {'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': 'last_item'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'rowCount'}; {'id': '213', 'type': 'argument_list', 'children': []}; {'id': '214', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '215', 'type': 'else_clause', 'children': ['216']}; {'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': 'show_last'}; {'id': '220', 'type': 'False', 'children': []}; {'id': '221', 'type': 'expression_statement', 'children': ['222']}; {'id': '222', 'type': 'assignment', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '224', 'type': 'call', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '226', 'type': 'argument_list', 'children': ['227']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '228', 'type': 'for_statement', 'children': ['229', '232', '236']}; {'id': '229', 'type': 'pattern_list', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '232', 'type': 'call', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '234', 'type': 'argument_list', 'children': ['235']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '236', 'type': 'block', 'children': ['237', '256', '263', '270', '277', '318', '329', '340', '349', '362']}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'assignment', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '240', 'type': 'call', 'children': ['241', '248']}; {'id': '241', 'type': 'attribute', 'children': ['242', '247']}; {'id': '242', 'type': 'call', 'children': ['243', '246']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'separator'}; {'id': '246', 'type': 'argument_list', 'children': []}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '248', 'type': 'argument_list', 'children': ['249']}; {'id': '249', 'type': 'subscript', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '251', 'type': 'slice', 'children': ['252', '253']}; {'id': '252', 'type': 'colon', 'children': []}; {'id': '253', 'type': 'binary_operator', 'children': ['254', '255'], 'value': '+'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '255', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '256', 'type': 'expression_statement', 'children': ['257']}; {'id': '257', 'type': 'assignment', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '259', 'type': 'call', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'QToolButton'}; {'id': '261', 'type': 'argument_list', 'children': ['262']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'partsw'}; {'id': '263', 'type': 'expression_statement', 'children': ['264']}; {'id': '264', 'type': 'call', 'children': ['265', '268']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'setAutoRaise'}; {'id': '268', 'type': 'argument_list', 'children': ['269']}; {'id': '269', 'type': 'True', 'children': []}; {'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': 'button'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'setText'}; {'id': '275', 'type': 'argument_list', 'children': ['276']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'part'}; {'id': '277', 'type': 'if_statement', 'children': ['278', '282']}; {'id': '278', 'type': '()', 'children': ['279']}; {'id': '279', 'type': 'attribute', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': '_navigationModel'}; {'id': '282', 'type': 'block', 'children': ['283', '294']}; {'id': '283', 'type': 'expression_statement', 'children': ['284']}; {'id': '284', 'type': 'assignment', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '286', 'type': 'call', 'children': ['287', '292']}; {'id': '287', 'type': 'attribute', 'children': ['288', '291']}; {'id': '288', 'type': 'attribute', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': '_navigationModel'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'itemByPath'}; {'id': '292', 'type': 'argument_list', 'children': ['293']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '294', 'type': 'if_statement', 'children': ['295', '297']}; {'id': '295', 'type': '()', 'children': ['296']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '297', 'type': 'block', 'children': ['298', '309']}; {'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': 'button'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'setIcon'}; {'id': '303', 'type': 'argument_list', 'children': ['304']}; {'id': '304', 'type': 'call', 'children': ['305', '308']}; {'id': '305', 'type': 'attribute', 'children': ['306', '307']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'icon'}; {'id': '308', 'type': 'argument_list', 'children': []}; {'id': '309', 'type': 'expression_statement', 'children': ['310']}; {'id': '310', 'type': 'call', 'children': ['311', '314']}; {'id': '311', 'type': 'attribute', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'setToolButtonStyle'}; {'id': '314', 'type': 'argument_list', 'children': ['315']}; {'id': '315', 'type': 'attribute', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'ToolButtonTextBesideIcon'}; {'id': '318', 'type': 'expression_statement', 'children': ['319']}; {'id': '319', 'type': 'call', 'children': ['320', '323']}; {'id': '320', 'type': 'attribute', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'setProperty'}; {'id': '323', 'type': 'argument_list', 'children': ['324', '325']}; {'id': '324', 'type': 'string', 'children': [], 'value': "'path'"}; {'id': '325', 'type': 'call', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'wrapVariant'}; {'id': '327', 'type': 'argument_list', 'children': ['328']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '329', 'type': 'expression_statement', 'children': ['330']}; {'id': '330', 'type': 'call', 'children': ['331', '334']}; {'id': '331', 'type': 'attribute', 'children': ['332', '333']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'setProperty'}; {'id': '334', 'type': 'argument_list', 'children': ['335', '336']}; {'id': '335', 'type': 'string', 'children': [], 'value': "'is_completer'"}; {'id': '336', 'type': 'call', 'children': ['337', '338']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'wrapVariant'}; {'id': '338', 'type': 'argument_list', 'children': ['339']}; {'id': '339', 'type': 'False', 'children': []}; {'id': '340', 'type': 'expression_statement', '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': 'self'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': '_buttonGroup'}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'addButton'}; {'id': '347', 'type': 'argument_list', 'children': ['348']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '349', 'type': 'expression_statement', 'children': ['350']}; {'id': '350', 'type': 'call', 'children': ['351', '354']}; {'id': '351', 'type': 'attribute', 'children': ['352', '353']}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'insertWidget'}; {'id': '354', 'type': 'argument_list', 'children': ['355', '361']}; {'id': '355', 'type': 'binary_operator', 'children': ['356', '360'], 'value': '+'}; {'id': '356', 'type': '()', 'children': ['357']}; {'id': '357', 'type': 'binary_operator', 'children': ['358', '359'], 'value': '*'}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '359', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '360', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '362', 'type': 'if_statement', 'children': ['363', '372']}; {'id': '363', 'type': '()', 'children': ['364']}; {'id': '364', 'type': 'boolean_operator', 'children': ['365', '366'], 'value': 'or'}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'show_last'}; {'id': '366', 'type': 'comparison_operator', 'children': ['367', '368'], 'value': '<'}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '368', 'type': '()', 'children': ['369']}; {'id': '369', 'type': 'binary_operator', 'children': ['370', '371'], 'value': '-'}; {'id': '370', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '371', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '372', 'type': 'block', 'children': ['373', '380', '387', '394', '403', '414', '425', '434', '447']}; {'id': '373', 'type': 'expression_statement', 'children': ['374']}; {'id': '374', 'type': 'assignment', 'children': ['375', '376']}; {'id': '375', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '376', 'type': 'call', 'children': ['377', '378']}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'QToolButton'}; {'id': '378', 'type': 'argument_list', 'children': ['379']}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'partsw'}; {'id': '380', 'type': 'expression_statement', 'children': ['381']}; {'id': '381', 'type': 'call', 'children': ['382', '385']}; {'id': '382', 'type': 'attribute', 'children': ['383', '384']}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'setAutoRaise'}; {'id': '385', 'type': 'argument_list', 'children': ['386']}; {'id': '386', 'type': 'True', 'children': []}; {'id': '387', 'type': 'expression_statement', 'children': ['388']}; {'id': '388', 'type': 'call', 'children': ['389', '392']}; {'id': '389', 'type': 'attribute', 'children': ['390', '391']}; {'id': '390', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '391', 'type': 'identifier', 'children': [], 'value': 'setMaximumWidth'}; {'id': '392', 'type': 'argument_list', 'children': ['393']}; {'id': '393', 'type': 'integer', 'children': [], 'value': '12'}; {'id': '394', 'type': 'expression_statement', 'children': ['395']}; {'id': '395', 'type': 'call', 'children': ['396', '399']}; {'id': '396', 'type': 'attribute', 'children': ['397', '398']}; {'id': '397', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'setArrowType'}; {'id': '399', 'type': 'argument_list', 'children': ['400']}; {'id': '400', 'type': 'attribute', 'children': ['401', '402']}; {'id': '401', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '402', 'type': 'identifier', 'children': [], 'value': 'RightArrow'}; {'id': '403', 'type': 'expression_statement', 'children': ['404']}; {'id': '404', 'type': 'call', 'children': ['405', '408']}; {'id': '405', 'type': 'attribute', 'children': ['406', '407']}; {'id': '406', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '407', 'type': 'identifier', 'children': [], 'value': 'setProperty'}; {'id': '408', 'type': 'argument_list', 'children': ['409', '410']}; {'id': '409', 'type': 'string', 'children': [], 'value': "'path'"}; {'id': '410', 'type': 'call', 'children': ['411', '412']}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'wrapVariant'}; {'id': '412', 'type': 'argument_list', 'children': ['413']}; {'id': '413', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '414', 'type': 'expression_statement', 'children': ['415']}; {'id': '415', 'type': 'call', 'children': ['416', '419']}; {'id': '416', 'type': 'attribute', 'children': ['417', '418']}; {'id': '417', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '418', 'type': 'identifier', 'children': [], 'value': 'setProperty'}; {'id': '419', 'type': 'argument_list', 'children': ['420', '421']}; {'id': '420', 'type': 'string', 'children': [], 'value': "'is_completer'"}; {'id': '421', 'type': 'call', 'children': ['422', '423']}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'wrapVariant'}; {'id': '423', 'type': 'argument_list', 'children': ['424']}; {'id': '424', 'type': 'True', 'children': []}; {'id': '425', 'type': 'expression_statement', 'children': ['426']}; {'id': '426', 'type': 'call', 'children': ['427', '432']}; {'id': '427', 'type': 'attribute', 'children': ['428', '431']}; {'id': '428', 'type': 'attribute', 'children': ['429', '430']}; {'id': '429', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '430', 'type': 'identifier', 'children': [], 'value': '_buttonGroup'}; {'id': '431', 'type': 'identifier', 'children': [], 'value': 'addButton'}; {'id': '432', 'type': 'argument_list', 'children': ['433']}; {'id': '433', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '434', 'type': 'expression_statement', 'children': ['435']}; {'id': '435', 'type': 'call', 'children': ['436', '439']}; {'id': '436', 'type': 'attribute', 'children': ['437', '438']}; {'id': '437', 'type': 'identifier', 'children': [], 'value': 'layout'}; {'id': '438', 'type': 'identifier', 'children': [], 'value': 'insertWidget'}; {'id': '439', 'type': 'argument_list', 'children': ['440', '446']}; {'id': '440', 'type': 'binary_operator', 'children': ['441', '445'], 'value': '+'}; {'id': '441', 'type': '()', 'children': ['442']}; {'id': '442', 'type': 'binary_operator', 'children': ['443', '444'], 'value': '*'}; {'id': '443', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '444', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '445', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '446', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '447', 'type': 'expression_statement', 'children': ['448']}; {'id': '448', 'type': 'assignment', 'children': ['449', '450']}; {'id': '449', 'type': 'identifier', 'children': [], 'value': 'last_button'}; {'id': '450', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '451', 'type': 'if_statement', 'children': ['452', '468']}; {'id': '452', 'type': '()', 'children': ['453']}; {'id': '453', 'type': 'comparison_operator', 'children': ['454', '463'], 'value': '<'}; {'id': '454', 'type': 'call', 'children': ['455', '462']}; {'id': '455', 'type': 'attribute', 'children': ['456', '461']}; {'id': '456', 'type': 'call', 'children': ['457', '460']}; {'id': '457', 'type': 'attribute', 'children': ['458', '459']}; {'id': '458', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '459', 'type': 'identifier', 'children': [], 'value': 'scrollWidget'}; {'id': '460', 'type': 'argument_list', 'children': []}; {'id': '461', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '462', 'type': 'argument_list', 'children': []}; {'id': '463', 'type': 'call', 'children': ['464', '467']}; {'id': '464', 'type': 'attribute', 'children': ['465', '466']}; {'id': '465', 'type': 'identifier', 'children': [], 'value': 'partsw'}; {'id': '466', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '467', 'type': 'argument_list', 'children': []}; {'id': '468', 'type': 'block', 'children': ['469']}; {'id': '469', 'type': 'expression_statement', 'children': ['470']}; {'id': '470', 'type': 'call', 'children': ['471', '474']}; {'id': '471', 'type': 'attribute', 'children': ['472', '473']}; {'id': '472', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '473', 'type': 'identifier', 'children': [], 'value': 'scrollParts'}; {'id': '474', 'type': 'argument_list', 'children': ['475']}; {'id': '475', 'type': 'binary_operator', 'children': ['476', '481'], 'value': '-'}; {'id': '476', 'type': 'call', 'children': ['477', '480']}; {'id': '477', 'type': 'attribute', 'children': ['478', '479']}; {'id': '478', 'type': 'identifier', 'children': [], 'value': 'partsw'}; {'id': '479', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '480', 'type': 'argument_list', 'children': []}; {'id': '481', 'type': 'call', 'children': ['482', '489']}; {'id': '482', 'type': 'attribute', 'children': ['483', '488']}; {'id': '483', 'type': 'call', 'children': ['484', '487']}; {'id': '484', 'type': 'attribute', 'children': ['485', '486']}; {'id': '485', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '486', 'type': 'identifier', 'children': [], 'value': 'scrollWidget'}; {'id': '487', 'type': 'argument_list', 'children': []}; {'id': '488', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '489', 'type': 'argument_list', 'children': []}; {'id': '490', 'type': 'expression_statement', 'children': ['491']}; {'id': '491', 'type': 'call', 'children': ['492', '495']}; {'id': '492', 'type': 'attribute', 'children': ['493', '494']}; {'id': '493', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '494', 'type': 'identifier', 'children': [], 'value': 'setUpdatesEnabled'}; {'id': '495', 'type': 'argument_list', 'children': ['496']}; {'id': '496', 'type': 'True', 'children': []}; {'id': '497', 'type': 'expression_statement', 'children': ['498']}; {'id': '498', 'type': 'call', 'children': ['499', '504']}; {'id': '499', 'type': 'attribute', 'children': ['500', '503']}; {'id': '500', 'type': 'attribute', 'children': ['501', '502']}; {'id': '501', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '502', 'type': 'identifier', 'children': [], 'value': 'navigationChanged'}; {'id': '503', 'type': 'identifier', 'children': [], 'value': 'emit'}; {'id': '504', 'type': 'argument_list', 'children': []} | Rebuilds the parts widget with the latest text. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'syncView'}; {'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': 'recursive'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'block', 'children': ['9', '17', '25', '30', '38', '46', '54', '68', '80', '85', '102']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'assignment', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'gantt'}; {'id': '12', 'type': 'call', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'ganttWidget'}; {'id': '16', 'type': 'argument_list', 'children': []}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '20', 'type': 'call', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'treeWidget'}; {'id': '24', 'type': 'argument_list', 'children': []}; {'id': '25', 'type': 'if_statement', 'children': ['26', '28']}; {'id': '26', 'type': 'not_operator', 'children': ['27']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'gantt'}; {'id': '28', 'type': 'block', 'children': ['29']}; {'id': '29', 'type': 'return_statement', 'children': []}; {'id': '30', 'type': 'expression_statement', 'children': ['31']}; {'id': '31', 'type': 'assignment', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'vwidget'}; {'id': '33', 'type': 'call', 'children': ['34', '37']}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'gantt'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'viewWidget'}; {'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': 'scene'}; {'id': '41', 'type': 'call', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'vwidget'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '45', 'type': 'argument_list', 'children': []}; {'id': '46', 'type': 'expression_statement', 'children': ['47']}; {'id': '47', 'type': 'assignment', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'cell_w'}; {'id': '49', 'type': 'call', 'children': ['50', '53']}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'gantt'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'cellWidth'}; {'id': '53', 'type': 'argument_list', 'children': []}; {'id': '54', 'type': 'expression_statement', 'children': ['55']}; {'id': '55', 'type': 'assignment', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'tree_offset_y'}; {'id': '57', 'type': 'binary_operator', 'children': ['58', '67'], 'value': '+'}; {'id': '58', 'type': 'call', 'children': ['59', '66']}; {'id': '59', 'type': 'attribute', 'children': ['60', '65']}; {'id': '60', 'type': 'call', 'children': ['61', '64']}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'header'}; {'id': '64', 'type': 'argument_list', 'children': []}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'height'}; {'id': '66', 'type': 'argument_list', 'children': []}; {'id': '67', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'augmented_assignment', 'children': ['70', '71'], 'value': '+='}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'tree_offset_y'}; {'id': '71', 'type': 'call', 'children': ['72', '79']}; {'id': '72', 'type': 'attribute', 'children': ['73', '78']}; {'id': '73', 'type': 'call', 'children': ['74', '77']}; {'id': '74', 'type': 'attribute', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'verticalScrollBar'}; {'id': '77', 'type': 'argument_list', 'children': []}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '79', 'type': 'argument_list', 'children': []}; {'id': '80', 'type': 'expression_statement', 'children': ['81']}; {'id': '81', 'type': 'assignment', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '83', 'type': 'list', 'children': ['84'], 'value': '[self]'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '85', 'type': 'if_statement', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'recursive'}; {'id': '87', 'type': 'block', 'children': ['88']}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'augmented_assignment', 'children': ['90', '91'], 'value': '+='}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '91', 'type': 'call', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '93', 'type': 'argument_list', 'children': ['94']}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'keyword_argument', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'recursive'}; {'id': '101', 'type': 'True', 'children': []}; {'id': '102', 'type': 'for_statement', 'children': ['103', '104', '105']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '105', 'type': 'block', 'children': ['106', '114', '129', '146', '152', '161', '171', '179', '195', '424', '432', '439', '447', '457', '464', '470', '476', '493', '500']}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '109', 'type': 'call', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'viewItem'}; {'id': '113', 'type': 'argument_list', 'children': []}; {'id': '114', 'type': 'if_statement', 'children': ['115', '121']}; {'id': '115', 'type': 'not_operator', 'children': ['116']}; {'id': '116', 'type': 'call', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '120', 'type': 'argument_list', 'children': []}; {'id': '121', 'type': 'block', 'children': ['122']}; {'id': '122', 'type': 'expression_statement', 'children': ['123']}; {'id': '123', 'type': 'call', 'children': ['124', '127']}; {'id': '124', 'type': 'attribute', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'addItem'}; {'id': '127', 'type': 'argument_list', 'children': ['128']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '129', 'type': 'if_statement', 'children': ['130', '138']}; {'id': '130', 'type': 'boolean_operator', 'children': ['131', '136'], 'value': 'or'}; {'id': '131', 'type': 'call', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'isHidden'}; {'id': '135', 'type': 'argument_list', 'children': []}; {'id': '136', 'type': 'not_operator', 'children': ['137']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '138', 'type': 'block', 'children': ['139', '145']}; {'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': 'vitem'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'hide'}; {'id': '144', 'type': 'argument_list', 'children': []}; {'id': '145', 'type': 'continue_statement', 'children': []}; {'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': 'vitem'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'show'}; {'id': '151', 'type': 'argument_list', 'children': []}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'assignment', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'tree_rect'}; {'id': '155', 'type': 'call', 'children': ['156', '159']}; {'id': '156', 'type': 'attribute', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'visualItemRect'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '161', 'type': 'expression_statement', 'children': ['162']}; {'id': '162', 'type': 'assignment', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'tree_y'}; {'id': '164', 'type': 'binary_operator', 'children': ['165', '170'], 'value': '+'}; {'id': '165', 'type': 'call', 'children': ['166', '169']}; {'id': '166', 'type': 'attribute', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'tree_rect'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '169', 'type': 'argument_list', 'children': []}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'tree_offset_y'}; {'id': '171', 'type': 'expression_statement', 'children': ['172']}; {'id': '172', 'type': 'assignment', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'tree_h'}; {'id': '174', 'type': 'call', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'tree_rect'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'height'}; {'id': '178', 'type': 'argument_list', 'children': []}; {'id': '179', 'type': 'if_statement', 'children': ['180', '187']}; {'id': '180', 'type': 'comparison_operator', 'children': ['181', '186'], 'value': '=='}; {'id': '181', 'type': 'call', 'children': ['182', '185']}; {'id': '182', 'type': 'attribute', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'tree_rect'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'height'}; {'id': '185', 'type': 'argument_list', 'children': []}; {'id': '186', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '187', 'type': 'block', 'children': ['188', '194']}; {'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': 'vitem'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'hide'}; {'id': '193', 'type': 'argument_list', 'children': []}; {'id': '194', 'type': 'continue_statement', 'children': []}; {'id': '195', 'type': 'if_statement', 'children': ['196', '218', '259']}; {'id': '196', 'type': 'comparison_operator', 'children': ['197', '202'], 'value': 'in'}; {'id': '197', 'type': 'call', 'children': ['198', '201']}; {'id': '198', 'type': 'attribute', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'gantt'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'timescale'}; {'id': '201', 'type': 'argument_list', 'children': []}; {'id': '202', 'type': 'tuple', 'children': ['203', '208', '213']}; {'id': '203', 'type': 'attribute', 'children': ['204', '207']}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'gantt'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'Timescale'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'Minute'}; {'id': '208', 'type': 'attribute', 'children': ['209', '212']}; {'id': '209', 'type': 'attribute', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'gantt'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'Timescale'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'Hour'}; {'id': '213', 'type': 'attribute', 'children': ['214', '217']}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'gantt'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'Timescale'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'Day'}; {'id': '218', 'type': 'block', 'children': ['219', '227', '235', '244', '253']}; {'id': '219', 'type': 'expression_statement', 'children': ['220']}; {'id': '220', 'type': 'assignment', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'dstart'}; {'id': '222', 'type': 'call', 'children': ['223', '226']}; {'id': '223', 'type': 'attribute', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'dateTimeStart'}; {'id': '226', 'type': 'argument_list', 'children': []}; {'id': '227', 'type': 'expression_statement', 'children': ['228']}; {'id': '228', 'type': 'assignment', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'dend'}; {'id': '230', 'type': 'call', 'children': ['231', '234']}; {'id': '231', 'type': 'attribute', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'dateTimeEnd'}; {'id': '234', 'type': 'argument_list', 'children': []}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'assignment', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'view_x'}; {'id': '238', 'type': 'call', 'children': ['239', '242']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'datetimeXPos'}; {'id': '242', 'type': 'argument_list', 'children': ['243']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'dstart'}; {'id': '244', 'type': 'expression_statement', 'children': ['245']}; {'id': '245', 'type': 'assignment', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'view_r'}; {'id': '247', 'type': 'call', 'children': ['248', '251']}; {'id': '248', 'type': 'attribute', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'datetimeXPos'}; {'id': '251', 'type': 'argument_list', 'children': ['252']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'dend'}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'assignment', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'view_w'}; {'id': '256', 'type': 'binary_operator', 'children': ['257', '258'], 'value': '-'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'view_r'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'view_x'}; {'id': '259', 'type': 'else_clause', 'children': ['260']}; {'id': '260', 'type': 'block', 'children': ['261', '274', '284']}; {'id': '261', 'type': 'expression_statement', 'children': ['262']}; {'id': '262', 'type': 'assignment', 'children': ['263', '264']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'view_x'}; {'id': '264', 'type': 'call', 'children': ['265', '268']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'dateXPos'}; {'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': 'item'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'dateStart'}; {'id': '273', 'type': 'argument_list', 'children': []}; {'id': '274', 'type': 'expression_statement', 'children': ['275']}; {'id': '275', 'type': 'assignment', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'view_w'}; {'id': '277', 'type': 'binary_operator', 'children': ['278', '283'], 'value': '*'}; {'id': '278', 'type': 'call', 'children': ['279', '282']}; {'id': '279', 'type': 'attribute', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'duration'}; {'id': '282', 'type': 'argument_list', 'children': []}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'cell_w'}; {'id': '284', 'type': 'if_statement', 'children': ['285', '291']}; {'id': '285', 'type': 'not_operator', 'children': ['286']}; {'id': '286', 'type': 'call', 'children': ['287', '290']}; {'id': '287', 'type': 'attribute', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'isAllDay'}; {'id': '290', 'type': 'argument_list', 'children': []}; {'id': '291', 'type': 'block', 'children': ['292', '300', '308', '321', '332', '341', '353', '361', '374', '385', '396', '409', '413', '417']}; {'id': '292', 'type': 'expression_statement', 'children': ['293']}; {'id': '293', 'type': 'assignment', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'full_day'}; {'id': '295', 'type': 'binary_operator', 'children': ['296', '299'], 'value': '*'}; {'id': '296', 'type': 'binary_operator', 'children': ['297', '298'], 'value': '*'}; {'id': '297', 'type': 'integer', 'children': [], 'value': '24'}; {'id': '298', 'type': 'integer', 'children': [], 'value': '60'}; {'id': '299', 'type': 'integer', 'children': [], 'value': '60'}; {'id': '300', 'type': 'expression_statement', 'children': ['301']}; {'id': '301', 'type': 'assignment', 'children': ['302', '303']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '303', 'type': 'call', 'children': ['304', '307']}; {'id': '304', 'type': 'attribute', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'timeStart'}; {'id': '307', 'type': 'argument_list', 'children': []}; {'id': '308', 'type': 'expression_statement', 'children': ['309']}; {'id': '309', 'type': 'assignment', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'start_day'}; {'id': '311', 'type': '()', 'children': ['312']}; {'id': '312', 'type': 'binary_operator', 'children': ['313', '320'], 'value': '*'}; {'id': '313', 'type': 'binary_operator', 'children': ['314', '319'], 'value': '*'}; {'id': '314', 'type': 'call', 'children': ['315', '318']}; {'id': '315', 'type': 'attribute', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'hour'}; {'id': '318', 'type': 'argument_list', 'children': []}; {'id': '319', 'type': 'integer', 'children': [], 'value': '60'}; {'id': '320', 'type': 'integer', 'children': [], 'value': '60'}; {'id': '321', 'type': 'expression_statement', 'children': ['322']}; {'id': '322', 'type': 'augmented_assignment', 'children': ['323', '324'], 'value': '+='}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'start_day'}; {'id': '324', 'type': '()', 'children': ['325']}; {'id': '325', 'type': 'binary_operator', 'children': ['326', '331'], 'value': '*'}; {'id': '326', 'type': 'call', 'children': ['327', '330']}; {'id': '327', 'type': 'attribute', 'children': ['328', '329']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'minute'}; {'id': '330', 'type': 'argument_list', 'children': []}; {'id': '331', 'type': 'integer', 'children': [], 'value': '60'}; {'id': '332', 'type': 'expression_statement', 'children': ['333']}; {'id': '333', 'type': 'augmented_assignment', 'children': ['334', '335'], 'value': '+='}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'start_day'}; {'id': '335', 'type': '()', 'children': ['336']}; {'id': '336', 'type': 'call', 'children': ['337', '340']}; {'id': '337', 'type': 'attribute', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'second'}; {'id': '340', 'type': 'argument_list', 'children': []}; {'id': '341', 'type': 'expression_statement', 'children': ['342']}; {'id': '342', 'type': 'assignment', 'children': ['343', '344']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'offset_start'}; {'id': '344', 'type': 'binary_operator', 'children': ['345', '352'], 'value': '*'}; {'id': '345', 'type': '()', 'children': ['346']}; {'id': '346', 'type': 'binary_operator', 'children': ['347', '348'], 'value': '/'}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'start_day'}; {'id': '348', 'type': 'call', 'children': ['349', '350']}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '350', 'type': 'argument_list', 'children': ['351']}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'full_day'}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'cell_w'}; {'id': '353', 'type': 'expression_statement', 'children': ['354']}; {'id': '354', 'type': 'assignment', 'children': ['355', '356']}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '356', 'type': 'call', 'children': ['357', '360']}; {'id': '357', 'type': 'attribute', 'children': ['358', '359']}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'timeEnd'}; {'id': '360', 'type': 'argument_list', 'children': []}; {'id': '361', 'type': 'expression_statement', 'children': ['362']}; {'id': '362', 'type': 'assignment', 'children': ['363', '364']}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'end_day'}; {'id': '364', 'type': '()', 'children': ['365']}; {'id': '365', 'type': 'binary_operator', 'children': ['366', '373'], 'value': '*'}; {'id': '366', 'type': 'binary_operator', 'children': ['367', '372'], 'value': '*'}; {'id': '367', 'type': 'call', 'children': ['368', '371']}; {'id': '368', 'type': 'attribute', 'children': ['369', '370']}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '370', 'type': 'identifier', 'children': [], 'value': 'hour'}; {'id': '371', 'type': 'argument_list', 'children': []}; {'id': '372', 'type': 'integer', 'children': [], 'value': '60'}; {'id': '373', 'type': 'integer', 'children': [], 'value': '60'}; {'id': '374', 'type': 'expression_statement', 'children': ['375']}; {'id': '375', 'type': 'augmented_assignment', 'children': ['376', '377'], 'value': '+='}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'end_day'}; {'id': '377', 'type': '()', 'children': ['378']}; {'id': '378', 'type': 'binary_operator', 'children': ['379', '384'], 'value': '*'}; {'id': '379', 'type': 'call', 'children': ['380', '383']}; {'id': '380', 'type': 'attribute', 'children': ['381', '382']}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '382', 'type': 'identifier', 'children': [], 'value': 'minute'}; {'id': '383', 'type': 'argument_list', 'children': []}; {'id': '384', 'type': 'integer', 'children': [], 'value': '60'}; {'id': '385', 'type': 'expression_statement', 'children': ['386']}; {'id': '386', 'type': 'augmented_assignment', 'children': ['387', '388'], 'value': '+='}; {'id': '387', 'type': 'identifier', 'children': [], 'value': 'end_day'}; {'id': '388', 'type': '()', 'children': ['389']}; {'id': '389', 'type': 'binary_operator', 'children': ['390', '395'], 'value': '+'}; {'id': '390', 'type': 'call', 'children': ['391', '394']}; {'id': '391', 'type': 'attribute', 'children': ['392', '393']}; {'id': '392', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'second'}; {'id': '394', 'type': 'argument_list', 'children': []}; {'id': '395', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '396', 'type': 'expression_statement', 'children': ['397']}; {'id': '397', 'type': 'assignment', 'children': ['398', '399']}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'offset_end'}; {'id': '399', 'type': '()', 'children': ['400']}; {'id': '400', 'type': 'binary_operator', 'children': ['401', '405'], 'value': '/'}; {'id': '401', 'type': '()', 'children': ['402']}; {'id': '402', 'type': 'binary_operator', 'children': ['403', '404'], 'value': '-'}; {'id': '403', 'type': 'identifier', 'children': [], 'value': 'full_day'}; {'id': '404', 'type': 'identifier', 'children': [], 'value': 'end_day'}; {'id': '405', 'type': 'call', 'children': ['406', '407']}; {'id': '406', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '407', 'type': 'argument_list', 'children': ['408']}; {'id': '408', 'type': 'identifier', 'children': [], 'value': 'full_day'}; {'id': '409', 'type': 'expression_statement', 'children': ['410']}; {'id': '410', 'type': 'augmented_assignment', 'children': ['411', '412'], 'value': '*='}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'offset_end'}; {'id': '412', 'type': 'identifier', 'children': [], 'value': 'cell_w'}; {'id': '413', 'type': 'expression_statement', 'children': ['414']}; {'id': '414', 'type': 'augmented_assignment', 'children': ['415', '416'], 'value': '+='}; {'id': '415', 'type': 'identifier', 'children': [], 'value': 'view_x'}; {'id': '416', 'type': 'identifier', 'children': [], 'value': 'offset_start'}; {'id': '417', 'type': 'expression_statement', 'children': ['418']}; {'id': '418', 'type': 'augmented_assignment', 'children': ['419', '420'], 'value': '-='}; {'id': '419', 'type': 'identifier', 'children': [], 'value': 'view_w'}; {'id': '420', 'type': '()', 'children': ['421']}; {'id': '421', 'type': 'binary_operator', 'children': ['422', '423'], 'value': '+'}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'offset_start'}; {'id': '423', 'type': 'identifier', 'children': [], 'value': 'offset_end'}; {'id': '424', 'type': 'expression_statement', 'children': ['425']}; {'id': '425', 'type': 'assignment', 'children': ['426', '427']}; {'id': '426', 'type': 'identifier', 'children': [], 'value': 'view_w'}; {'id': '427', 'type': 'call', 'children': ['428', '429']}; {'id': '428', 'type': 'identifier', 'children': [], 'value': 'max'}; {'id': '429', 'type': 'argument_list', 'children': ['430', '431']}; {'id': '430', 'type': 'identifier', 'children': [], 'value': 'view_w'}; {'id': '431', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '432', 'type': 'expression_statement', 'children': ['433']}; {'id': '433', 'type': 'call', 'children': ['434', '437']}; {'id': '434', 'type': 'attribute', 'children': ['435', '436']}; {'id': '435', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '436', 'type': 'identifier', 'children': [], 'value': 'setSyncing'}; {'id': '437', 'type': 'argument_list', 'children': ['438']}; {'id': '438', 'type': 'True', 'children': []}; {'id': '439', 'type': 'expression_statement', 'children': ['440']}; {'id': '440', 'type': 'call', 'children': ['441', '444']}; {'id': '441', 'type': 'attribute', 'children': ['442', '443']}; {'id': '442', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '443', 'type': 'identifier', 'children': [], 'value': 'setPos'}; {'id': '444', 'type': 'argument_list', 'children': ['445', '446']}; {'id': '445', 'type': 'identifier', 'children': [], 'value': 'view_x'}; {'id': '446', 'type': 'identifier', 'children': [], 'value': 'tree_y'}; {'id': '447', 'type': 'expression_statement', 'children': ['448']}; {'id': '448', 'type': 'call', 'children': ['449', '452']}; {'id': '449', 'type': 'attribute', 'children': ['450', '451']}; {'id': '450', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '451', 'type': 'identifier', 'children': [], 'value': 'setRect'}; {'id': '452', 'type': 'argument_list', 'children': ['453', '454', '455', '456']}; {'id': '453', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '454', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '455', 'type': 'identifier', 'children': [], 'value': 'view_w'}; {'id': '456', 'type': 'identifier', 'children': [], 'value': 'tree_h'}; {'id': '457', 'type': 'expression_statement', 'children': ['458']}; {'id': '458', 'type': 'call', 'children': ['459', '462']}; {'id': '459', 'type': 'attribute', 'children': ['460', '461']}; {'id': '460', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '461', 'type': 'identifier', 'children': [], 'value': 'setSyncing'}; {'id': '462', 'type': 'argument_list', 'children': ['463']}; {'id': '463', 'type': 'False', 'children': []}; {'id': '464', 'type': 'expression_statement', 'children': ['465']}; {'id': '465', 'type': 'assignment', 'children': ['466', '467']}; {'id': '466', 'type': 'identifier', 'children': [], 'value': 'flags'}; {'id': '467', 'type': 'attribute', 'children': ['468', '469']}; {'id': '468', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '469', 'type': 'identifier', 'children': [], 'value': 'ItemIsSelectable'}; {'id': '470', 'type': 'expression_statement', 'children': ['471']}; {'id': '471', 'type': 'augmented_assignment', 'children': ['472', '473'], 'value': '|='}; {'id': '472', 'type': 'identifier', 'children': [], 'value': 'flags'}; {'id': '473', 'type': 'attribute', 'children': ['474', '475']}; {'id': '474', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '475', 'type': 'identifier', 'children': [], 'value': 'ItemIsFocusable'}; {'id': '476', 'type': 'if_statement', 'children': ['477', '486']}; {'id': '477', 'type': 'binary_operator', 'children': ['478', '483'], 'value': '&'}; {'id': '478', 'type': 'call', 'children': ['479', '482']}; {'id': '479', 'type': 'attribute', 'children': ['480', '481']}; {'id': '480', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '481', 'type': 'identifier', 'children': [], 'value': 'flags'}; {'id': '482', 'type': 'argument_list', 'children': []}; {'id': '483', 'type': 'attribute', 'children': ['484', '485']}; {'id': '484', 'type': 'identifier', 'children': [], 'value': 'Qt'}; {'id': '485', 'type': 'identifier', 'children': [], 'value': 'ItemIsEditable'}; {'id': '486', 'type': 'block', 'children': ['487']}; {'id': '487', 'type': 'expression_statement', 'children': ['488']}; {'id': '488', 'type': 'augmented_assignment', 'children': ['489', '490'], 'value': '|='}; {'id': '489', 'type': 'identifier', 'children': [], 'value': 'flags'}; {'id': '490', 'type': 'attribute', 'children': ['491', '492']}; {'id': '491', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '492', 'type': 'identifier', 'children': [], 'value': 'ItemIsMovable'}; {'id': '493', 'type': 'expression_statement', 'children': ['494']}; {'id': '494', 'type': 'call', 'children': ['495', '498']}; {'id': '495', 'type': 'attribute', 'children': ['496', '497']}; {'id': '496', 'type': 'identifier', 'children': [], 'value': 'vitem'}; {'id': '497', 'type': 'identifier', 'children': [], 'value': 'setFlags'}; {'id': '498', 'type': 'argument_list', 'children': ['499']}; {'id': '499', 'type': 'identifier', 'children': [], 'value': 'flags'}; {'id': '500', 'type': 'expression_statement', 'children': ['501']}; {'id': '501', 'type': 'call', 'children': ['502', '505']}; {'id': '502', 'type': 'attribute', 'children': ['503', '504']}; {'id': '503', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '504', 'type': 'identifier', 'children': [], 'value': 'syncDependencies'}; {'id': '505', 'type': 'argument_list', 'children': []} | Syncs the information from this item to the view. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_hm_verify_message_crc_uk'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8', '9', '10']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'thermostat_id'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'expectedFunction'}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'expectedLength'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '11', 'type': 'block', 'children': ['12', '16']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '15', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '16', 'type': 'if_statement', 'children': ['17', '22', '442']}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '19'], 'value': '=='}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '19', 'type': 'attribute', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'constants'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'HMV3_ID'}; {'id': '22', 'type': 'block', 'children': ['23', '36', '49', '55', '64', '102', '108', '114', '120', '129', '135', '141', '178', '210', '247', '279', '320', '352', '391', '430']}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'checksum'}; {'id': '26', 'type': 'subscript', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '28', 'type': 'slice', 'children': ['29', '35']}; {'id': '29', 'type': 'binary_operator', 'children': ['30', '34'], 'value': '-'}; {'id': '30', 'type': 'call', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '34', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '35', 'type': 'colon', 'children': []}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'assignment', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'rxmsg'}; {'id': '39', 'type': 'subscript', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '41', 'type': 'slice', 'children': ['42', '43']}; {'id': '42', 'type': 'colon', 'children': []}; {'id': '43', 'type': 'binary_operator', 'children': ['44', '48'], 'value': '-'}; {'id': '44', 'type': 'call', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '48', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'assignment', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'crc'}; {'id': '52', 'type': 'call', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'CRC16'}; {'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': 'expectedchecksum'}; {'id': '58', 'type': 'call', 'children': ['59', '62']}; {'id': '59', 'type': 'attribute', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'crc'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'run'}; {'id': '62', 'type': 'argument_list', 'children': ['63']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'rxmsg'}; {'id': '64', 'type': 'if_statement', 'children': ['65', '68', '76']}; {'id': '65', 'type': 'comparison_operator', 'children': ['66', '67'], 'value': '=='}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'expectedchecksum'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'checksum'}; {'id': '68', 'type': 'block', 'children': ['69']}; {'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': 'logging'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '74', 'type': 'argument_list', 'children': ['75']}; {'id': '75', 'type': 'string', 'children': [], 'value': '"CRC is correct"'}; {'id': '76', 'type': 'else_clause', 'children': ['77']}; {'id': '77', 'type': 'block', 'children': ['78', '85', '89', '98']}; {'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': 'logging'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '83', 'type': 'argument_list', 'children': ['84']}; {'id': '84', 'type': 'string', 'children': [], 'value': '"CRC is INCORRECT"'}; {'id': '85', 'type': 'expression_statement', 'children': ['86']}; {'id': '86', 'type': 'assignment', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '88', 'type': 'string', 'children': [], 'value': '"Incorrect CRC"'}; {'id': '89', 'type': 'expression_statement', 'children': ['90']}; {'id': '90', 'type': 'call', 'children': ['91', '96']}; {'id': '91', 'type': 'attribute', 'children': ['92', '95']}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '96', 'type': 'argument_list', 'children': ['97']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'augmented_assignment', 'children': ['100', '101'], 'value': '+='}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '101', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'assignment', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'dest_addr'}; {'id': '105', 'type': 'subscript', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '107', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '108', 'type': 'expression_statement', 'children': ['109']}; {'id': '109', 'type': 'assignment', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'frame_len_l'}; {'id': '111', 'type': 'subscript', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '113', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '114', 'type': 'expression_statement', 'children': ['115']}; {'id': '115', 'type': 'assignment', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'frame_len_h'}; {'id': '117', 'type': 'subscript', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '119', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'frame_len'}; {'id': '123', 'type': 'binary_operator', 'children': ['124', '128'], 'value': '|'}; {'id': '124', 'type': '()', 'children': ['125']}; {'id': '125', 'type': 'binary_operator', 'children': ['126', '127'], 'value': '<<'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'frame_len_h'}; {'id': '127', 'type': 'integer', 'children': [], 'value': '8'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'frame_len_l'}; {'id': '129', 'type': 'expression_statement', 'children': ['130']}; {'id': '130', 'type': 'assignment', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'source_addr'}; {'id': '132', 'type': 'subscript', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '134', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '135', 'type': 'expression_statement', 'children': ['136']}; {'id': '136', 'type': 'assignment', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'func_code'}; {'id': '138', 'type': 'subscript', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '140', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '141', 'type': 'if_statement', 'children': ['142', '150']}; {'id': '142', 'type': '()', 'children': ['143']}; {'id': '143', 'type': 'boolean_operator', 'children': ['144', '147'], 'value': 'and'}; {'id': '144', 'type': 'comparison_operator', 'children': ['145', '146'], 'value': '!='}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'dest_addr'}; {'id': '146', 'type': 'integer', 'children': [], 'value': '129'}; {'id': '147', 'type': 'comparison_operator', 'children': ['148', '149'], 'value': '!='}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'dest_addr'}; {'id': '149', 'type': 'integer', 'children': [], 'value': '160'}; {'id': '150', 'type': 'block', 'children': ['151', '158', '165', '174']}; {'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': 'logging'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '156', 'type': 'argument_list', 'children': ['157']}; {'id': '157', 'type': 'string', 'children': [], 'value': '"dest_addr is ILLEGAL"'}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'assignment', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '161', 'type': 'binary_operator', 'children': ['162', '163'], 'value': '%'}; {'id': '162', 'type': 'string', 'children': [], 'value': '"Illegal Dest Addr: %s\\n"'}; {'id': '163', 'type': '()', 'children': ['164']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'dest_addr'}; {'id': '165', 'type': 'expression_statement', 'children': ['166']}; {'id': '166', 'type': 'call', 'children': ['167', '172']}; {'id': '167', 'type': 'attribute', 'children': ['168', '171']}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '172', 'type': 'argument_list', 'children': ['173']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'augmented_assignment', 'children': ['176', '177'], 'value': '+='}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '177', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '178', 'type': 'if_statement', 'children': ['179', '182']}; {'id': '179', 'type': 'comparison_operator', 'children': ['180', '181'], 'value': '!='}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'dest_addr'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'thermostat_id'}; {'id': '182', 'type': 'block', 'children': ['183', '190', '197', '206']}; {'id': '183', 'type': 'expression_statement', 'children': ['184']}; {'id': '184', 'type': 'call', 'children': ['185', '188']}; {'id': '185', 'type': 'attribute', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'logging'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '188', 'type': 'argument_list', 'children': ['189']}; {'id': '189', 'type': 'string', 'children': [], 'value': '"dest_addr is INCORRECT"'}; {'id': '190', 'type': 'expression_statement', 'children': ['191']}; {'id': '191', 'type': 'assignment', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '193', 'type': 'binary_operator', 'children': ['194', '195'], 'value': '%'}; {'id': '194', 'type': 'string', 'children': [], 'value': '"Incorrect Dest Addr: %s\\n"'}; {'id': '195', 'type': '()', 'children': ['196']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'dest_addr'}; {'id': '197', 'type': 'expression_statement', 'children': ['198']}; {'id': '198', 'type': 'call', 'children': ['199', '204']}; {'id': '199', 'type': 'attribute', 'children': ['200', '203']}; {'id': '200', 'type': 'attribute', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '204', 'type': 'argument_list', 'children': ['205']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '206', 'type': 'expression_statement', 'children': ['207']}; {'id': '207', 'type': 'augmented_assignment', 'children': ['208', '209'], 'value': '+='}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '209', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '210', 'type': 'if_statement', 'children': ['211', '219']}; {'id': '211', 'type': '()', 'children': ['212']}; {'id': '212', 'type': 'boolean_operator', 'children': ['213', '216'], 'value': 'or'}; {'id': '213', 'type': 'comparison_operator', 'children': ['214', '215'], 'value': '<'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'source_addr'}; {'id': '215', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '216', 'type': 'comparison_operator', 'children': ['217', '218'], 'value': '>'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'source_addr'}; {'id': '218', 'type': 'integer', 'children': [], 'value': '32'}; {'id': '219', 'type': 'block', 'children': ['220', '227', '234', '243']}; {'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': 'logging'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '225', 'type': 'argument_list', 'children': ['226']}; {'id': '226', 'type': 'string', 'children': [], 'value': '"source_addr is ILLEGAL"'}; {'id': '227', 'type': 'expression_statement', 'children': ['228']}; {'id': '228', 'type': 'assignment', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '230', 'type': 'binary_operator', 'children': ['231', '232'], 'value': '%'}; {'id': '231', 'type': 'string', 'children': [], 'value': '"Illegal Src Addr: %s\\n"'}; {'id': '232', 'type': '()', 'children': ['233']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'source_addr'}; {'id': '234', 'type': 'expression_statement', 'children': ['235']}; {'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': 'sys'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '241', 'type': 'argument_list', 'children': ['242']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '243', 'type': 'expression_statement', 'children': ['244']}; {'id': '244', 'type': 'augmented_assignment', 'children': ['245', '246'], 'value': '+='}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '246', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '247', 'type': 'if_statement', 'children': ['248', '251']}; {'id': '248', 'type': 'comparison_operator', 'children': ['249', '250'], 'value': '!='}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'source_addr'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '251', 'type': 'block', 'children': ['252', '259', '266', '275']}; {'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': 'logging'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '257', 'type': 'argument_list', 'children': ['258']}; {'id': '258', 'type': 'string', 'children': [], 'value': '"source addr is INCORRECT"'}; {'id': '259', 'type': 'expression_statement', 'children': ['260']}; {'id': '260', 'type': 'assignment', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '262', 'type': 'binary_operator', 'children': ['263', '264'], 'value': '%'}; {'id': '263', 'type': 'string', 'children': [], 'value': '"Incorrect Src Addr: %s\\n"'}; {'id': '264', 'type': '()', 'children': ['265']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'source_addr'}; {'id': '266', 'type': 'expression_statement', 'children': ['267']}; {'id': '267', 'type': 'call', 'children': ['268', '273']}; {'id': '268', 'type': 'attribute', 'children': ['269', '272']}; {'id': '269', 'type': 'attribute', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '273', 'type': 'argument_list', 'children': ['274']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'augmented_assignment', 'children': ['277', '278'], 'value': '+='}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '278', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '279', 'type': 'if_statement', 'children': ['280', '292']}; {'id': '280', 'type': '()', 'children': ['281']}; {'id': '281', 'type': 'boolean_operator', 'children': ['282', '287'], 'value': 'and'}; {'id': '282', 'type': 'comparison_operator', 'children': ['283', '284'], 'value': '!='}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'func_code'}; {'id': '284', 'type': 'attribute', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'constants'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'FUNC_WRITE'}; {'id': '287', 'type': 'comparison_operator', 'children': ['288', '289'], 'value': '!='}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'func_code'}; {'id': '289', 'type': 'attribute', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'constants'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'FUNC_READ'}; {'id': '292', 'type': 'block', 'children': ['293', '300', '307', '316']}; {'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': 'logging'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '298', 'type': 'argument_list', 'children': ['299']}; {'id': '299', 'type': 'string', 'children': [], 'value': '"Func Code is UNKNWON"'}; {'id': '300', 'type': 'expression_statement', 'children': ['301']}; {'id': '301', 'type': 'assignment', 'children': ['302', '303']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '303', 'type': 'binary_operator', 'children': ['304', '305'], 'value': '%'}; {'id': '304', 'type': 'string', 'children': [], 'value': '"Unknown Func Code: %s\\n"'}; {'id': '305', 'type': '()', 'children': ['306']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'func_code'}; {'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': 'sys'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '314', 'type': 'argument_list', 'children': ['315']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '316', 'type': 'expression_statement', 'children': ['317']}; {'id': '317', 'type': 'augmented_assignment', 'children': ['318', '319'], 'value': '+='}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '319', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '320', 'type': 'if_statement', 'children': ['321', '324']}; {'id': '321', 'type': 'comparison_operator', 'children': ['322', '323'], 'value': '!='}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'func_code'}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'expectedFunction'}; {'id': '324', 'type': 'block', 'children': ['325', '332', '339', '348']}; {'id': '325', 'type': 'expression_statement', 'children': ['326']}; {'id': '326', 'type': 'call', 'children': ['327', '330']}; {'id': '327', 'type': 'attribute', 'children': ['328', '329']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'logging'}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '330', 'type': 'argument_list', 'children': ['331']}; {'id': '331', 'type': 'string', 'children': [], 'value': '"Func Code is UNEXPECTED"'}; {'id': '332', 'type': 'expression_statement', 'children': ['333']}; {'id': '333', 'type': 'assignment', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '335', 'type': 'binary_operator', 'children': ['336', '337'], 'value': '%'}; {'id': '336', 'type': 'string', 'children': [], 'value': '"Unexpected Func Code: %s\\n"'}; {'id': '337', 'type': '()', 'children': ['338']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'func_code'}; {'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': 'sys'}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '346', 'type': 'argument_list', 'children': ['347']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '348', 'type': 'expression_statement', 'children': ['349']}; {'id': '349', 'type': 'augmented_assignment', 'children': ['350', '351'], 'value': '+='}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '351', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '352', 'type': 'if_statement', 'children': ['353', '363']}; {'id': '353', 'type': '()', 'children': ['354']}; {'id': '354', 'type': 'boolean_operator', 'children': ['355', '360'], 'value': 'and'}; {'id': '355', 'type': 'comparison_operator', 'children': ['356', '357'], 'value': '=='}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'func_code'}; {'id': '357', 'type': 'attribute', 'children': ['358', '359']}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'constants'}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'FUNC_WRITE'}; {'id': '360', 'type': 'comparison_operator', 'children': ['361', '362'], 'value': '!='}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'frame_len'}; {'id': '362', 'type': 'integer', 'children': [], 'value': '7'}; {'id': '363', 'type': 'block', 'children': ['364', '371', '378', '387']}; {'id': '364', 'type': 'expression_statement', 'children': ['365']}; {'id': '365', 'type': 'call', 'children': ['366', '369']}; {'id': '366', 'type': 'attribute', 'children': ['367', '368']}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'logging'}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '369', 'type': 'argument_list', 'children': ['370']}; {'id': '370', 'type': 'string', 'children': [], 'value': '"response length is INCORRECT"'}; {'id': '371', 'type': 'expression_statement', 'children': ['372']}; {'id': '372', 'type': 'assignment', 'children': ['373', '374']}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '374', 'type': 'binary_operator', 'children': ['375', '376'], 'value': '%'}; {'id': '375', 'type': 'string', 'children': [], 'value': '"Incorrect length: %s\\n"'}; {'id': '376', 'type': '()', 'children': ['377']}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'frame_len'}; {'id': '378', 'type': 'expression_statement', 'children': ['379']}; {'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': 'sys'}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '385', 'type': 'argument_list', 'children': ['386']}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '387', 'type': 'expression_statement', 'children': ['388']}; {'id': '388', 'type': 'augmented_assignment', 'children': ['389', '390'], 'value': '+='}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '390', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '391', 'type': 'if_statement', 'children': ['392', '398']}; {'id': '392', 'type': 'comparison_operator', 'children': ['393', '397'], 'value': '!='}; {'id': '393', 'type': 'call', 'children': ['394', '395']}; {'id': '394', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '395', 'type': 'argument_list', 'children': ['396']}; {'id': '396', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '397', 'type': 'identifier', 'children': [], 'value': 'frame_len'}; {'id': '398', 'type': 'block', 'children': ['399', '406', '417', '426']}; {'id': '399', 'type': 'expression_statement', 'children': ['400']}; {'id': '400', 'type': 'call', 'children': ['401', '404']}; {'id': '401', 'type': 'attribute', 'children': ['402', '403']}; {'id': '402', 'type': 'identifier', 'children': [], 'value': 'logging'}; {'id': '403', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '404', 'type': 'argument_list', 'children': ['405']}; {'id': '405', 'type': 'string', 'children': [], 'value': '"response length MISMATCHES header"'}; {'id': '406', 'type': 'expression_statement', 'children': ['407']}; {'id': '407', 'type': 'assignment', 'children': ['408', '409']}; {'id': '408', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '409', 'type': 'binary_operator', 'children': ['410', '411'], 'value': '%'}; {'id': '410', 'type': 'string', 'children': [], 'value': '"Mismatch length: %s %s\\n"'}; {'id': '411', 'type': 'tuple', 'children': ['412', '416']}; {'id': '412', 'type': 'call', 'children': ['413', '414']}; {'id': '413', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '414', 'type': 'argument_list', 'children': ['415']}; {'id': '415', 'type': 'identifier', 'children': [], 'value': 'datal'}; {'id': '416', 'type': 'identifier', 'children': [], 'value': 'frame_len'}; {'id': '417', 'type': 'expression_statement', 'children': ['418']}; {'id': '418', 'type': 'call', 'children': ['419', '424']}; {'id': '419', 'type': 'attribute', 'children': ['420', '423']}; {'id': '420', 'type': 'attribute', 'children': ['421', '422']}; {'id': '421', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '423', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '424', 'type': 'argument_list', 'children': ['425']}; {'id': '425', 'type': 'identifier', 'children': [], 'value': 'serror'}; {'id': '426', 'type': 'expression_statement', 'children': ['427']}; {'id': '427', 'type': 'augmented_assignment', 'children': ['428', '429'], 'value': '+='}; {'id': '428', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '429', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '430', 'type': 'if_statement', 'children': ['431', '435', '438']}; {'id': '431', 'type': '()', 'children': ['432']}; {'id': '432', 'type': 'comparison_operator', 'children': ['433', '434'], 'value': '=='}; {'id': '433', 'type': 'identifier', 'children': [], 'value': 'badresponse'}; {'id': '434', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '435', 'type': 'block', 'children': ['436']}; {'id': '436', 'type': 'return_statement', 'children': ['437']}; {'id': '437', 'type': 'True', 'children': []}; {'id': '438', 'type': 'else_clause', 'children': ['439']}; {'id': '439', 'type': 'block', 'children': ['440']}; {'id': '440', 'type': 'return_statement', 'children': ['441']}; {'id': '441', 'type': 'False', 'children': []}; {'id': '442', 'type': 'else_clause', 'children': ['443']}; {'id': '443', 'type': 'block', 'children': ['444']}; {'id': '444', 'type': 'assert_statement', 'children': ['445', '446']}; {'id': '445', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '446', 'type': 'binary_operator', 'children': ['447', '448'], 'value': '%'}; {'id': '447', 'type': 'string', 'children': [], 'value': '"Un-supported protocol found %s"'}; {'id': '448', 'type': 'identifier', 'children': [], 'value': 'protocol'} | Verifies message appears legal |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '7']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'cap'}; {'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', '19', '37', '53', '62', '129']}; {'id': '10', 'type': 'if_statement', 'children': ['11', '16']}; {'id': '11', 'type': 'comparison_operator', 'children': ['12', '13'], 'value': 'in'}; {'id': '12', 'type': 'string', 'children': [], 'value': "'READTHEDOCS'"}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'environ'}; {'id': '16', 'type': 'block', 'children': ['17']}; {'id': '17', 'type': 'return_statement', 'children': ['18']}; {'id': '18', 'type': 'string', 'children': [], 'value': "''"}; {'id': '19', 'type': 'if_statement', 'children': ['20', '23']}; {'id': '20', 'type': 'comparison_operator', 'children': ['21', '22'], 'value': '!='}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '22', 'type': 'dictionary', 'children': []}; {'id': '23', 'type': 'block', 'children': ['24']}; {'id': '24', 'type': 'raise_statement', 'children': ['25']}; {'id': '25', 'type': 'call', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'TypeError'}; {'id': '27', 'type': 'argument_list', 'children': ['28']}; {'id': '28', 'type': 'binary_operator', 'children': ['29', '30'], 'value': '%'}; {'id': '29', 'type': 'string', 'children': [], 'value': '"get(): No such argument %r"'}; {'id': '30', 'type': 'subscript', 'children': ['31', '36']}; {'id': '31', 'type': 'call', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'popitem'}; {'id': '35', 'type': 'argument_list', 'children': []}; {'id': '36', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '37', 'type': 'if_statement', 'children': ['38', '41']}; {'id': '38', 'type': 'comparison_operator', 'children': ['39', '40'], 'value': '=='}; {'id': '39', 'type': 'identifier', 'children': [], 'value': '_cache'}; {'id': '40', 'type': 'dictionary', 'children': []}; {'id': '41', 'type': 'block', 'children': ['42']}; {'id': '42', 'type': 'try_statement', 'children': ['43', '50']}; {'id': '43', 'type': 'block', 'children': ['44']}; {'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': 'curses'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'setupterm'}; {'id': '49', 'type': 'argument_list', 'children': []}; {'id': '50', 'type': 'except_clause', 'children': ['51']}; {'id': '51', 'type': 'block', 'children': ['52']}; {'id': '52', 'type': 'pass_statement', 'children': []}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '56', 'type': 'call', 'children': ['57', '60']}; {'id': '57', 'type': 'attribute', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': '_cache'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '60', 'type': 'argument_list', 'children': ['61']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'cap'}; {'id': '62', 'type': 'if_statement', 'children': ['63', '65']}; {'id': '63', 'type': 'not_operator', 'children': ['64']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '65', 'type': 'block', 'children': ['66', '75', '123']}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'assignment', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '69', 'type': 'call', 'children': ['70', '73']}; {'id': '70', 'type': 'attribute', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'curses'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'tigetstr'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'cap'}; {'id': '75', 'type': 'if_statement', 'children': ['76', '79']}; {'id': '76', 'type': 'comparison_operator', 'children': ['77', '78'], 'value': '=='}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '78', 'type': 'None', 'children': []}; {'id': '79', 'type': 'block', 'children': ['80', '89']}; {'id': '80', 'type': 'expression_statement', 'children': ['81']}; {'id': '81', 'type': 'assignment', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '83', 'type': 'call', 'children': ['84', '87']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'curses'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'tigetnum'}; {'id': '87', 'type': 'argument_list', 'children': ['88']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'cap'}; {'id': '89', 'type': 'if_statement', 'children': ['90', '94']}; {'id': '90', 'type': 'comparison_operator', 'children': ['91', '92'], 'value': '=='}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '92', 'type': 'unary_operator', 'children': ['93'], 'value': '-'}; {'id': '93', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '94', 'type': 'block', 'children': ['95', '104']}; {'id': '95', 'type': 'expression_statement', 'children': ['96']}; {'id': '96', 'type': 'assignment', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '98', 'type': 'call', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'curses'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'tigetflag'}; {'id': '102', 'type': 'argument_list', 'children': ['103']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'cap'}; {'id': '104', 'type': 'if_statement', 'children': ['105', '109', '114']}; {'id': '105', 'type': 'comparison_operator', 'children': ['106', '107'], 'value': '=='}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '107', 'type': 'unary_operator', 'children': ['108'], 'value': '-'}; {'id': '108', 'type': 'integer', 'children': [], 'value': '1'}; {'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': 's'}; {'id': '113', 'type': 'string', 'children': [], 'value': "''"}; {'id': '114', 'type': 'else_clause', 'children': ['115']}; {'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': 's'}; {'id': '119', 'type': 'call', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'bool'}; {'id': '121', 'type': 'argument_list', 'children': ['122']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '123', 'type': 'expression_statement', 'children': ['124']}; {'id': '124', 'type': 'assignment', 'children': ['125', '128']}; {'id': '125', 'type': 'subscript', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': '_cache'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'cap'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '129', 'type': 'if_statement', 'children': ['130', '133', '152']}; {'id': '130', 'type': 'boolean_operator', 'children': ['131', '132'], 'value': 'and'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '133', 'type': 'block', 'children': ['134', '145']}; {'id': '134', 'type': 'expression_statement', 'children': ['135']}; {'id': '135', 'type': 'assignment', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '137', 'type': 'call', 'children': ['138', '141']}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'curses'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'tparm'}; {'id': '141', 'type': 'argument_list', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '143', 'type': 'list_splat', 'children': ['144']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '145', 'type': 'return_statement', 'children': ['146']}; {'id': '146', 'type': 'call', 'children': ['147', '150']}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'decode'}; {'id': '150', 'type': 'argument_list', 'children': ['151']}; {'id': '151', 'type': 'string', 'children': [], 'value': "'utf-8'"}; {'id': '152', 'type': 'else_clause', 'children': ['153']}; {'id': '153', 'type': 'block', 'children': ['154']}; {'id': '154', 'type': 'if_statement', 'children': ['155', '160', '168']}; {'id': '155', 'type': 'call', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '157', 'type': 'argument_list', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'bytes'}; {'id': '160', 'type': 'block', 'children': ['161']}; {'id': '161', 'type': 'return_statement', 'children': ['162']}; {'id': '162', 'type': 'call', 'children': ['163', '166']}; {'id': '163', 'type': 'attribute', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'decode'}; {'id': '166', 'type': 'argument_list', 'children': ['167']}; {'id': '167', 'type': 'string', 'children': [], 'value': "'utf-8'"}; {'id': '168', 'type': 'else_clause', 'children': ['169']}; {'id': '169', 'type': 'block', 'children': ['170']}; {'id': '170', 'type': 'return_statement', 'children': ['171']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 's'} | Get a terminal capability exposes through the `curses` module. |
{'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', '11', '31', '53', '68', '78', '84', '90', '217', '221', '234', '346', '355', '363']}; {'id': '6', 'type': 'import_statement', 'children': ['7']}; {'id': '7', 'type': 'aliased_import', 'children': ['8', '10']}; {'id': '8', 'type': 'dotted_name', 'children': ['9']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'numpy'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '11', 'type': 'expression_statement', 'children': ['12']}; {'id': '12', 'type': 'assignment', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '14', 'type': 'call', 'children': ['15', '20']}; {'id': '15', 'type': 'attribute', 'children': ['16', '19']}; {'id': '16', 'type': 'attribute', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'session'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '20', 'type': 'argument_list', 'children': ['21', '26']}; {'id': '21', 'type': 'attribute', 'children': ['22', '25']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'models'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'NUTS2Region'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '26', 'type': 'attribute', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'models'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'NUTS2Region'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'region_ids'}; {'id': '34', 'type': 'call', 'children': ['35', '52']}; {'id': '35', 'type': 'attribute', 'children': ['36', '51']}; {'id': '36', 'type': 'subscript', 'children': ['37', '50']}; {'id': '37', 'type': 'call', 'children': ['38', '48']}; {'id': '38', 'type': 'attribute', 'children': ['39', '47']}; {'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': 'client'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'df_query'}; {'id': '45', 'type': 'argument_list', 'children': ['46']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'query'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'set_index'}; {'id': '48', 'type': 'argument_list', 'children': ['49']}; {'id': '49', 'type': 'string', 'children': [], 'value': "'key'"}; {'id': '50', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'to_dict'}; {'id': '52', 'type': 'argument_list', 'children': []}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '56', 'type': 'call', 'children': ['57', '67']}; {'id': '57', 'type': 'attribute', 'children': ['58', '66']}; {'id': '58', 'type': 'call', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'next'}; {'id': '60', 'type': 'argument_list', 'children': ['61']}; {'id': '61', 'type': 'call', 'children': ['62', '65']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'requires'}; {'id': '65', 'type': 'argument_list', 'children': []}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'load'}; {'id': '67', 'type': 'argument_list', 'children': []}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'assignment', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'nuts'}; {'id': '71', 'type': 'call', 'children': ['72', '77']}; {'id': '72', 'type': 'attribute', 'children': ['73', '76']}; {'id': '73', 'type': 'call', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'NUTS2GeoJSONInputFile'}; {'id': '75', 'type': 'argument_list', 'children': []}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'load'}; {'id': '77', 'type': 'argument_list', 'children': []}; {'id': '78', 'type': 'expression_statement', 'children': ['79']}; {'id': '79', 'type': 'assignment', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'indicator_ids'}; {'id': '81', 'type': 'call', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '83', 'type': 'argument_list', 'children': []}; {'id': '84', 'type': 'expression_statement', 'children': ['85']}; {'id': '85', 'type': 'assignment', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 't_data'}; {'id': '87', 'type': 'call', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '89', 'type': 'argument_list', 'children': []}; {'id': '90', 'type': 'for_statement', 'children': ['91', '94', '99']}; {'id': '91', 'type': 'pattern_list', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'season'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'CLIMATE_SEASON_SUFFIXES'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '98', 'type': 'argument_list', 'children': []}; {'id': '99', 'type': 'block', 'children': ['100', '115', '124', '132', '140']}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'assignment', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'indicator'}; {'id': '103', 'type': 'call', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'models'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'ClimateIndicator'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'keyword_argument', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'description'}; {'id': '110', 'type': 'binary_operator', 'children': ['111', '114'], 'value': '+'}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'description'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '115', 'type': 'expression_statement', 'children': ['116']}; {'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': 'session'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '122', 'type': 'argument_list', 'children': ['123']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'indicator'}; {'id': '124', 'type': 'expression_statement', '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': 'self'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'session'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'commit'}; {'id': '131', 'type': 'argument_list', 'children': []}; {'id': '132', 'type': 'expression_statement', 'children': ['133']}; {'id': '133', 'type': 'assignment', 'children': ['134', '137']}; {'id': '134', 'type': 'subscript', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'indicator_ids'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'season'}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'indicator'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '140', 'type': 'if_statement', 'children': ['141', '144', '172']}; {'id': '141', 'type': 'comparison_operator', 'children': ['142', '143'], 'value': '=='}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'season'}; {'id': '143', 'type': 'string', 'children': [], 'value': "'summer'"}; {'id': '144', 'type': 'block', 'children': ['145']}; {'id': '145', 'type': 'expression_statement', 'children': ['146']}; {'id': '146', 'type': 'assignment', 'children': ['147', '150']}; {'id': '147', 'type': 'subscript', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 't_data'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'season'}; {'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': 'np'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'ma'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'average'}; {'id': '156', 'type': 'argument_list', 'children': ['157', '169']}; {'id': '157', 'type': 'subscript', 'children': ['158', '161', '165', '167']}; {'id': '158', 'type': 'subscript', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '160', 'type': 'string', 'children': [], 'value': "'data'"}; {'id': '161', 'type': 'slice', 'children': ['162', '163', '164']}; {'id': '162', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '163', 'type': 'colon', 'children': []}; {'id': '164', 'type': 'integer', 'children': [], 'value': '9'}; {'id': '165', 'type': 'slice', 'children': ['166']}; {'id': '166', 'type': 'colon', 'children': []}; {'id': '167', 'type': 'slice', 'children': ['168']}; {'id': '168', 'type': 'colon', 'children': []}; {'id': '169', 'type': 'keyword_argument', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'axis'}; {'id': '171', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '172', 'type': 'else_clause', 'children': ['173']}; {'id': '173', 'type': 'block', 'children': ['174']}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'assignment', 'children': ['176', '179']}; {'id': '176', 'type': 'subscript', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 't_data'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'season'}; {'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': 'np'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'ma'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'average'}; {'id': '185', 'type': 'argument_list', 'children': ['186', '214']}; {'id': '186', 'type': 'binary_operator', 'children': ['187', '188'], 'value': '*'}; {'id': '187', 'type': 'float', 'children': [], 'value': '0.5'}; {'id': '188', 'type': '()', 'children': ['189']}; {'id': '189', 'type': 'binary_operator', 'children': ['190', '202'], 'value': '+'}; {'id': '190', 'type': 'subscript', 'children': ['191', '194', '198', '200']}; {'id': '191', 'type': 'subscript', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '193', 'type': 'string', 'children': [], 'value': "'data'"}; {'id': '194', 'type': 'slice', 'children': ['195', '196', '197']}; {'id': '195', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '196', 'type': 'colon', 'children': []}; {'id': '197', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '198', 'type': 'slice', 'children': ['199']}; {'id': '199', 'type': 'colon', 'children': []}; {'id': '200', 'type': 'slice', 'children': ['201']}; {'id': '201', 'type': 'colon', 'children': []}; {'id': '202', 'type': 'subscript', 'children': ['203', '206', '210', '212']}; {'id': '203', 'type': 'subscript', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '205', 'type': 'string', 'children': [], 'value': "'data'"}; {'id': '206', 'type': 'slice', 'children': ['207', '208', '209']}; {'id': '207', 'type': 'integer', 'children': [], 'value': '9'}; {'id': '208', 'type': 'colon', 'children': []}; {'id': '209', 'type': 'integer', 'children': [], 'value': '12'}; {'id': '210', 'type': 'slice', 'children': ['211']}; {'id': '211', 'type': 'colon', 'children': []}; {'id': '212', 'type': 'slice', 'children': ['213']}; {'id': '213', 'type': 'colon', 'children': []}; {'id': '214', 'type': 'keyword_argument', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'axis'}; {'id': '216', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '217', 'type': 'expression_statement', 'children': ['218']}; {'id': '218', 'type': 'assignment', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'objects'}; {'id': '220', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '221', 'type': 'expression_statement', 'children': ['222']}; {'id': '222', 'type': 'assignment', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'current_value_id'}; {'id': '224', 'type': 'call', 'children': ['225', '230']}; {'id': '225', 'type': 'attribute', 'children': ['226', '229']}; {'id': '226', 'type': 'attribute', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'models'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'ClimateValue'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'get_max_id'}; {'id': '230', 'type': 'argument_list', 'children': ['231']}; {'id': '231', 'type': 'attribute', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'session'}; {'id': '234', 'type': 'for_statement', 'children': ['235', '236', '237']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'feature'}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'nuts'}; {'id': '237', 'type': 'block', 'children': ['238', '264']}; {'id': '238', 'type': 'expression_statement', 'children': ['239']}; {'id': '239', 'type': 'assignment', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'mask'}; {'id': '241', 'type': 'call', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'geojson_polygon_to_mask'}; {'id': '243', 'type': 'argument_list', 'children': ['244', '247', '254', '259']}; {'id': '244', 'type': 'keyword_argument', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'feature'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'feature'}; {'id': '247', 'type': 'keyword_argument', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'shape'}; {'id': '249', 'type': 'attribute', 'children': ['250', '253']}; {'id': '250', 'type': 'subscript', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 't_data'}; {'id': '252', 'type': 'string', 'children': [], 'value': "'summer'"}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'shape'}; {'id': '254', 'type': 'keyword_argument', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'lat_idx'}; {'id': '256', 'type': 'subscript', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '258', 'type': 'string', 'children': [], 'value': "'lat_idx'"}; {'id': '259', 'type': 'keyword_argument', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'lon_idx'}; {'id': '261', 'type': 'subscript', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '263', 'type': 'string', 'children': [], 'value': "'lon_idx'"}; {'id': '264', 'type': 'for_statement', 'children': ['265', '266', '274']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'season'}; {'id': '266', 'type': 'call', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'list'}; {'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': 'CLIMATE_SEASON_SUFFIXES'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '273', 'type': 'argument_list', 'children': []}; {'id': '274', 'type': 'block', 'children': ['275', '291', '305', '317', '321']}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'assignment', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '278', 'type': 'call', 'children': ['279', '284']}; {'id': '279', 'type': 'attribute', 'children': ['280', '283']}; {'id': '280', 'type': 'attribute', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'ma'}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'average'}; {'id': '284', 'type': 'argument_list', 'children': ['285', '288']}; {'id': '285', 'type': 'subscript', 'children': ['286', '287']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 't_data'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'season'}; {'id': '288', 'type': 'keyword_argument', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'weights'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'mask'}; {'id': '291', 'type': 'expression_statement', 'children': ['292']}; {'id': '292', 'type': 'assignment', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'region_id'}; {'id': '294', 'type': 'call', 'children': ['295', '298']}; {'id': '295', 'type': 'attribute', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'region_ids'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '298', 'type': 'argument_list', 'children': ['299', '304']}; {'id': '299', 'type': 'subscript', 'children': ['300', '303']}; {'id': '300', 'type': 'attribute', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'feature'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'properties'}; {'id': '303', 'type': 'string', 'children': [], 'value': "'NUTS_ID'"}; {'id': '304', 'type': 'None', 'children': []}; {'id': '305', 'type': 'if_statement', 'children': ['306', '309']}; {'id': '306', 'type': 'comparison_operator', 'children': ['307', '308'], 'value': 'is'}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'region_id'}; {'id': '308', 'type': 'None', 'children': []}; {'id': '309', 'type': 'block', 'children': ['310']}; {'id': '310', 'type': 'expression_statement', 'children': ['311']}; {'id': '311', 'type': 'assignment', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'region_id'}; {'id': '313', 'type': 'call', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '315', 'type': 'argument_list', 'children': ['316']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'region_id'}; {'id': '317', 'type': 'expression_statement', 'children': ['318']}; {'id': '318', 'type': 'augmented_assignment', 'children': ['319', '320'], 'value': '+='}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'current_value_id'}; {'id': '320', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '321', 'type': 'expression_statement', 'children': ['322']}; {'id': '322', 'type': 'call', 'children': ['323', '326']}; {'id': '323', 'type': 'attribute', 'children': ['324', '325']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'objects'}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '326', 'type': 'argument_list', 'children': ['327']}; {'id': '327', 'type': 'call', 'children': ['328', '331']}; {'id': '328', 'type': 'attribute', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'models'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'ClimateValue'}; {'id': '331', 'type': 'argument_list', 'children': ['332', '335', '338', '341']}; {'id': '332', 'type': 'keyword_argument', 'children': ['333', '334']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'current_value_id'}; {'id': '335', 'type': 'keyword_argument', 'children': ['336', '337']}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '338', 'type': 'keyword_argument', 'children': ['339', '340']}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'region_id'}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'region_id'}; {'id': '341', 'type': 'keyword_argument', 'children': ['342', '343']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'indicator_id'}; {'id': '343', 'type': 'subscript', 'children': ['344', '345']}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'indicator_ids'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'season'}; {'id': '346', 'type': 'expression_statement', 'children': ['347']}; {'id': '347', 'type': 'call', 'children': ['348', '353']}; {'id': '348', 'type': 'attribute', 'children': ['349', '352']}; {'id': '349', 'type': 'attribute', 'children': ['350', '351']}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'session'}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'bulk_save_objects'}; {'id': '353', 'type': 'argument_list', 'children': ['354']}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'objects'}; {'id': '355', 'type': 'expression_statement', 'children': ['356']}; {'id': '356', 'type': 'call', 'children': ['357', '362']}; {'id': '357', 'type': 'attribute', 'children': ['358', '361']}; {'id': '358', 'type': 'attribute', 'children': ['359', '360']}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'session'}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'commit'}; {'id': '362', 'type': 'argument_list', 'children': []}; {'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': 'self'}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'done'}; {'id': '368', 'type': 'argument_list', 'children': []} | Load climate data and convert to indicator objects |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_table'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '6', 'type': 'block', 'children': ['7', '91', '151', '173', '198']}; {'id': '7', 'type': 'if_statement', 'children': ['8', '11']}; {'id': '8', 'type': 'comparison_operator', 'children': ['9', '10'], 'value': 'is'}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '10', 'type': 'None', 'children': []}; {'id': '11', 'type': 'block', 'children': ['12', '17', '25', '54', '86']}; {'id': '12', 'type': 'assert_statement', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'active_table'}; {'id': '16', 'type': 'string', 'children': [], 'value': '"Can\'t get table without name unless an active table is set"'}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '20', 'type': 'attribute', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'active_table'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '25', 'type': 'if_statement', 'children': ['26', '29']}; {'id': '26', 'type': 'attribute', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'active_worksheet'}; {'id': '29', 'type': 'block', 'children': ['30', '41', '48']}; {'id': '30', 'type': 'expression_statement', 'children': ['31']}; {'id': '31', 'type': 'assignment', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'table'}; {'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': 'self'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'active_worksheet'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'get_table'}; {'id': '39', 'type': 'argument_list', 'children': ['40']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '41', 'type': 'assert_statement', 'children': ['42', '47']}; {'id': '42', 'type': 'comparison_operator', 'children': ['43', '44'], 'value': 'is'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'active_table'}; {'id': '47', 'type': 'string', 'children': [], 'value': '"Active table is not from the active sheet"'}; {'id': '48', 'type': 'return_statement', 'children': ['49']}; {'id': '49', 'type': 'expression_list', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'active_worksheet'}; {'id': '54', 'type': 'for_statement', 'children': ['55', '56', '59']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'ws'}; {'id': '56', 'type': 'attribute', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'worksheets'}; {'id': '59', 'type': 'block', 'children': ['60']}; {'id': '60', 'type': 'try_statement', 'children': ['61', '82']}; {'id': '61', 'type': 'block', 'children': ['62', '71']}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '65', 'type': 'call', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'ws'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'get_table'}; {'id': '69', 'type': 'argument_list', 'children': ['70']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '71', 'type': 'if_statement', 'children': ['72', '77']}; {'id': '72', 'type': 'comparison_operator', 'children': ['73', '74'], 'value': 'is'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '74', 'type': 'attribute', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'active_table'}; {'id': '77', 'type': 'block', 'children': ['78']}; {'id': '78', 'type': 'return_statement', 'children': ['79']}; {'id': '79', 'type': 'expression_list', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'ws'}; {'id': '82', 'type': 'except_clause', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '84', 'type': 'block', 'children': ['85']}; {'id': '85', 'type': 'pass_statement', 'children': []}; {'id': '86', 'type': 'raise_statement', 'children': ['87']}; {'id': '87', 'type': 'call', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'RuntimeError'}; {'id': '89', 'type': 'argument_list', 'children': ['90']}; {'id': '90', 'type': 'string', 'children': [], 'value': '"Active table not found in any sheet"'}; {'id': '91', 'type': 'if_statement', 'children': ['92', '95']}; {'id': '92', 'type': 'comparison_operator', 'children': ['93', '94'], 'value': 'in'}; {'id': '93', 'type': 'string', 'children': [], 'value': '"!"'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '95', 'type': 'block', 'children': ['96', '120', '146']}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'assignment', 'children': ['98', '101']}; {'id': '98', 'type': 'pattern_list', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'ws_name'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'table_name'}; {'id': '101', 'type': 'call', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'map'}; {'id': '103', 'type': 'argument_list', 'children': ['104', '113']}; {'id': '104', 'type': 'lambda', 'children': ['105', '107']}; {'id': '105', 'type': 'lambda_parameters', 'children': ['106']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '107', 'type': 'call', 'children': ['108', '111']}; {'id': '108', 'type': 'attribute', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '111', 'type': 'argument_list', 'children': ['112']}; {'id': '112', 'type': 'string', 'children': [], 'value': '"\'"'}; {'id': '113', 'type': 'call', 'children': ['114', '117']}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '117', 'type': 'argument_list', 'children': ['118', '119']}; {'id': '118', 'type': 'string', 'children': [], 'value': '"!"'}; {'id': '119', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '120', 'type': 'for_statement', 'children': ['121', '122', '125']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'ws'}; {'id': '122', 'type': 'attribute', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'worksheets'}; {'id': '125', 'type': 'block', 'children': ['126']}; {'id': '126', 'type': 'if_statement', 'children': ['127', '132']}; {'id': '127', 'type': 'comparison_operator', 'children': ['128', '131'], 'value': '=='}; {'id': '128', 'type': 'attribute', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'ws'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'ws_name'}; {'id': '132', 'type': 'block', 'children': ['133', '142']}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'assignment', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '136', 'type': 'call', 'children': ['137', '140']}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'ws'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'get_table'}; {'id': '140', 'type': 'argument_list', 'children': ['141']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'table_name'}; {'id': '142', 'type': 'return_statement', 'children': ['143']}; {'id': '143', 'type': 'expression_list', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'ws'}; {'id': '146', 'type': 'raise_statement', 'children': ['147']}; {'id': '147', 'type': 'call', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '151', 'type': 'if_statement', 'children': ['152', '155']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'active_worksheet'}; {'id': '155', 'type': 'block', 'children': ['156', '167']}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'assignment', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '159', 'type': 'call', 'children': ['160', '165']}; {'id': '160', 'type': 'attribute', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'active_worksheet'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'get_table'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '167', 'type': 'return_statement', 'children': ['168']}; {'id': '168', 'type': 'expression_list', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'active_worksheet'}; {'id': '173', 'type': 'for_statement', 'children': ['174', '175', '178']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'ws'}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'worksheets'}; {'id': '178', 'type': 'block', 'children': ['179']}; {'id': '179', 'type': 'try_statement', 'children': ['180', '194']}; {'id': '180', 'type': 'block', 'children': ['181', '190']}; {'id': '181', 'type': 'expression_statement', 'children': ['182']}; {'id': '182', 'type': 'assignment', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '184', 'type': 'call', 'children': ['185', '188']}; {'id': '185', 'type': 'attribute', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'ws'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'get_table'}; {'id': '188', 'type': 'argument_list', 'children': ['189']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '190', 'type': 'return_statement', 'children': ['191']}; {'id': '191', 'type': 'expression_list', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'table'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'ws'}; {'id': '194', 'type': 'except_clause', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '196', 'type': 'block', 'children': ['197']}; {'id': '197', 'type': 'pass_statement', 'children': []}; {'id': '198', 'type': 'raise_statement', 'children': ['199']}; {'id': '199', 'type': 'call', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '201', 'type': 'argument_list', 'children': ['202']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'name'} | Return a table, worksheet pair for the named table |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'assign_valence'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '5', 'type': 'block', 'children': ['6', '139', '179', '273']}; {'id': '6', 'type': 'for_statement', 'children': ['7', '11', '16']}; {'id': '7', 'type': 'pattern_list', 'children': ['8', '9', '10']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'bond'}; {'id': '11', 'type': 'call', 'children': ['12', '15']}; {'id': '12', 'type': 'attribute', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'bonds_iter'}; {'id': '15', 'type': 'argument_list', 'children': []}; {'id': '16', 'type': 'block', 'children': ['17']}; {'id': '17', 'type': 'if_statement', 'children': ['18', '23', '112']}; {'id': '18', 'type': 'comparison_operator', 'children': ['19', '22'], 'value': '=='}; {'id': '19', 'type': 'attribute', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'bond'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '22', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '23', 'type': 'block', 'children': ['24', '35', '46', '79']}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'assignment', 'children': ['26', '34']}; {'id': '26', 'type': 'attribute', 'children': ['27', '33']}; {'id': '27', 'type': 'call', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '31', 'type': 'argument_list', 'children': ['32']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'pi'}; {'id': '34', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '35', 'type': 'expression_statement', 'children': ['36']}; {'id': '36', 'type': 'assignment', 'children': ['37', '45']}; {'id': '37', 'type': 'attribute', 'children': ['38', '44']}; {'id': '38', 'type': 'call', 'children': ['39', '42']}; {'id': '39', 'type': 'attribute', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '42', 'type': 'argument_list', 'children': ['43']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'pi'}; {'id': '45', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '46', 'type': 'if_statement', 'children': ['47', '67']}; {'id': '47', 'type': 'boolean_operator', 'children': ['48', '58'], 'value': 'and'}; {'id': '48', 'type': 'comparison_operator', 'children': ['49', '57'], 'value': '=='}; {'id': '49', 'type': 'attribute', 'children': ['50', '56']}; {'id': '50', 'type': 'call', 'children': ['51', '54']}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '54', 'type': 'argument_list', 'children': ['55']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '57', 'type': 'string', 'children': [], 'value': '"O"'}; {'id': '58', 'type': 'not_operator', 'children': ['59']}; {'id': '59', 'type': 'attribute', 'children': ['60', '66']}; {'id': '60', 'type': 'call', 'children': ['61', '64']}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '64', 'type': 'argument_list', 'children': ['65']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'charge'}; {'id': '67', 'type': 'block', 'children': ['68']}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'assignment', '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': 'mol'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '75', 'type': 'argument_list', 'children': ['76']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'carbonyl_C'}; {'id': '78', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '79', 'type': 'if_statement', 'children': ['80', '100']}; {'id': '80', 'type': 'boolean_operator', 'children': ['81', '91'], 'value': 'and'}; {'id': '81', 'type': 'comparison_operator', 'children': ['82', '90'], 'value': '=='}; {'id': '82', 'type': 'attribute', 'children': ['83', '89']}; {'id': '83', 'type': 'call', 'children': ['84', '87']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '87', 'type': 'argument_list', 'children': ['88']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '90', 'type': 'string', 'children': [], 'value': '"O"'}; {'id': '91', 'type': 'not_operator', 'children': ['92']}; {'id': '92', 'type': 'attribute', 'children': ['93', '99']}; {'id': '93', 'type': 'call', 'children': ['94', '97']}; {'id': '94', 'type': 'attribute', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '97', 'type': 'argument_list', 'children': ['98']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'charge'}; {'id': '100', 'type': 'block', 'children': ['101']}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '111']}; {'id': '103', 'type': 'attribute', 'children': ['104', '110']}; {'id': '104', 'type': 'call', 'children': ['105', '108']}; {'id': '105', 'type': 'attribute', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '108', 'type': 'argument_list', 'children': ['109']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'carbonyl_C'}; {'id': '111', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '112', 'type': 'elif_clause', 'children': ['113', '118']}; {'id': '113', 'type': 'comparison_operator', 'children': ['114', '117'], 'value': '=='}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'bond'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '117', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '118', 'type': 'block', 'children': ['119']}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '129']}; {'id': '121', 'type': 'attribute', 'children': ['122', '128']}; {'id': '122', 'type': 'call', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'pi'}; {'id': '129', 'type': 'assignment', 'children': ['130', '138']}; {'id': '130', 'type': 'attribute', 'children': ['131', '137']}; {'id': '131', 'type': 'call', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '135', 'type': 'argument_list', 'children': ['136']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'pi'}; {'id': '138', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'max_nbr'}; {'id': '142', 'type': 'dictionary', 'children': ['143', '146', '149', '152', '155', '158', '161', '164', '167', '170', '173', '176']}; {'id': '143', 'type': 'pair', 'children': ['144', '145']}; {'id': '144', 'type': 'string', 'children': [], 'value': '"C"'}; {'id': '145', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '146', 'type': 'pair', 'children': ['147', '148']}; {'id': '147', 'type': 'string', 'children': [], 'value': '"Si"'}; {'id': '148', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '149', 'type': 'pair', 'children': ['150', '151']}; {'id': '150', 'type': 'string', 'children': [], 'value': '"N"'}; {'id': '151', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '152', 'type': 'pair', 'children': ['153', '154']}; {'id': '153', 'type': 'string', 'children': [], 'value': '"P"'}; {'id': '154', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '155', 'type': 'pair', 'children': ['156', '157']}; {'id': '156', 'type': 'string', 'children': [], 'value': '"As"'}; {'id': '157', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '158', 'type': 'pair', 'children': ['159', '160']}; {'id': '159', 'type': 'string', 'children': [], 'value': '"O"'}; {'id': '160', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '161', 'type': 'pair', 'children': ['162', '163']}; {'id': '162', 'type': 'string', 'children': [], 'value': '"S"'}; {'id': '163', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '164', 'type': 'pair', 'children': ['165', '166']}; {'id': '165', 'type': 'string', 'children': [], 'value': '"Se"'}; {'id': '166', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '167', 'type': 'pair', 'children': ['168', '169']}; {'id': '168', 'type': 'string', 'children': [], 'value': '"F"'}; {'id': '169', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '170', 'type': 'pair', 'children': ['171', '172']}; {'id': '171', 'type': 'string', 'children': [], 'value': '"Cl"'}; {'id': '172', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '173', 'type': 'pair', 'children': ['174', '175']}; {'id': '174', 'type': 'string', 'children': [], 'value': '"Br"'}; {'id': '175', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '176', 'type': 'pair', 'children': ['177', '178']}; {'id': '177', 'type': 'string', 'children': [], 'value': '"I"'}; {'id': '178', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '179', 'type': 'for_statement', 'children': ['180', '183', '188']}; {'id': '180', 'type': 'pattern_list', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'nbrs'}; {'id': '183', 'type': 'call', 'children': ['184', '187']}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'neighbors_iter'}; {'id': '187', 'type': 'argument_list', 'children': []}; {'id': '188', 'type': 'block', 'children': ['189', '198', '228']}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'assignment', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '192', 'type': 'call', 'children': ['193', '196']}; {'id': '193', 'type': 'attribute', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '196', 'type': 'argument_list', 'children': ['197']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '198', 'type': 'if_statement', 'children': ['199', '221']}; {'id': '199', 'type': 'boolean_operator', 'children': ['200', '206'], 'value': 'and'}; {'id': '200', 'type': 'comparison_operator', 'children': ['201', '205'], 'value': '=='}; {'id': '201', 'type': 'call', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '203', 'type': 'argument_list', 'children': ['204']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'nbrs'}; {'id': '205', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '206', 'type': 'call', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'all'}; {'id': '208', 'type': 'generator_expression', 'children': ['209', '214']}; {'id': '209', 'type': 'comparison_operator', 'children': ['210', '213'], 'value': '=='}; {'id': '210', 'type': 'attribute', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'bond'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '213', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '214', 'type': 'for_in_clause', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'bond'}; {'id': '216', 'type': 'call', 'children': ['217', '220']}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'nbrs'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '220', 'type': 'argument_list', 'children': []}; {'id': '221', 'type': 'block', 'children': ['222']}; {'id': '222', 'type': 'expression_statement', 'children': ['223']}; {'id': '223', 'type': 'assignment', 'children': ['224', '227']}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'pi'}; {'id': '227', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '228', 'type': 'if_statement', 'children': ['229', '234']}; {'id': '229', 'type': 'comparison_operator', 'children': ['230', '233'], 'value': 'in'}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'max_nbr'}; {'id': '234', 'type': 'block', 'children': ['235', '256']}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'assignment', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'h_cnt'}; {'id': '238', 'type': 'binary_operator', 'children': ['239', '253'], 'value': '+'}; {'id': '239', 'type': 'binary_operator', 'children': ['240', '250'], 'value': '-'}; {'id': '240', 'type': 'binary_operator', 'children': ['241', '246'], 'value': '-'}; {'id': '241', 'type': 'subscript', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'max_nbr'}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '246', 'type': 'call', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '248', 'type': 'argument_list', 'children': ['249']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'nbrs'}; {'id': '250', 'type': 'attribute', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'pi'}; {'id': '253', 'type': 'attribute', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'charge'}; {'id': '256', 'type': 'if_statement', 'children': ['257', '260']}; {'id': '257', 'type': 'comparison_operator', 'children': ['258', '259'], 'value': '>'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'h_cnt'}; {'id': '259', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '260', 'type': 'block', 'children': ['261']}; {'id': '261', 'type': 'expression_statement', 'children': ['262']}; {'id': '262', 'type': 'call', 'children': ['263', '271']}; {'id': '263', 'type': 'attribute', 'children': ['264', '270']}; {'id': '264', 'type': 'call', 'children': ['265', '268']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '268', 'type': 'argument_list', 'children': ['269']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'add_hydrogen'}; {'id': '271', 'type': 'argument_list', 'children': ['272']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'h_cnt'}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'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': 'mol'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'descriptors'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '280', 'type': 'argument_list', 'children': ['281']}; {'id': '281', 'type': 'string', 'children': [], 'value': '"Valence"'} | Assign pi electron and hydrogens |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'assign_charge'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'force_recalc'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'block', 'children': ['9', '16', '398', '404']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'call', 'children': ['11', '14']}; {'id': '11', 'type': 'attribute', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'require'}; {'id': '14', 'type': 'argument_list', 'children': ['15']}; {'id': '15', 'type': 'string', 'children': [], 'value': '"Aromatic"'}; {'id': '16', 'type': 'for_statement', 'children': ['17', '20', '25']}; {'id': '17', 'type': 'pattern_list', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'nbrs'}; {'id': '20', 'type': 'call', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'neighbors_iter'}; {'id': '24', 'type': 'argument_list', 'children': []}; {'id': '25', 'type': 'block', 'children': ['26', '35', '42']}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'assignment', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '29', 'type': 'call', 'children': ['30', '33']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '33', 'type': 'argument_list', 'children': ['34']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '35', 'type': 'expression_statement', 'children': ['36']}; {'id': '36', 'type': 'assignment', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'nbrcnt'}; {'id': '38', 'type': 'call', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '40', 'type': 'argument_list', 'children': ['41']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'nbrs'}; {'id': '42', 'type': 'if_statement', 'children': ['43', '48', '207', '352']}; {'id': '43', 'type': 'comparison_operator', 'children': ['44', '47'], 'value': '=='}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '47', 'type': 'string', 'children': [], 'value': '"N"'}; {'id': '48', 'type': 'block', 'children': ['49']}; {'id': '49', 'type': 'if_statement', 'children': ['50', '54', '66']}; {'id': '50', 'type': 'not_operator', 'children': ['51']}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'pi'}; {'id': '54', 'type': 'block', 'children': ['55']}; {'id': '55', 'type': 'expression_statement', 'children': ['56']}; {'id': '56', 'type': 'assignment', 'children': ['57', '65']}; {'id': '57', 'type': 'attribute', 'children': ['58', '64']}; {'id': '58', 'type': 'call', 'children': ['59', '62']}; {'id': '59', 'type': 'attribute', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '62', 'type': 'argument_list', 'children': ['63']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'charge_phys'}; {'id': '65', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '66', 'type': 'elif_clause', 'children': ['67', '76']}; {'id': '67', 'type': 'boolean_operator', 'children': ['68', '71'], 'value': 'and'}; {'id': '68', 'type': 'comparison_operator', 'children': ['69', '70'], 'value': '=='}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'nbrcnt'}; {'id': '70', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '71', 'type': 'comparison_operator', 'children': ['72', '75'], 'value': '=='}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'pi'}; {'id': '75', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '76', 'type': 'block', 'children': ['77', '90', '94', '98', '177']}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'assignment', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'ni'}; {'id': '80', 'type': 'subscript', 'children': ['81', '89']}; {'id': '81', 'type': 'call', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '83', 'type': 'argument_list', 'children': ['84']}; {'id': '84', 'type': 'call', 'children': ['85', '88']}; {'id': '85', 'type': 'attribute', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'nbrs'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '88', 'type': 'argument_list', 'children': []}; {'id': '89', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '90', 'type': 'expression_statement', 'children': ['91']}; {'id': '91', 'type': 'assignment', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'conj'}; {'id': '93', 'type': 'False', 'children': []}; {'id': '94', 'type': 'expression_statement', 'children': ['95']}; {'id': '95', 'type': 'assignment', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'sp2n'}; {'id': '97', 'type': 'None', 'children': []}; {'id': '98', 'type': 'for_statement', 'children': ['99', '102', '112']}; {'id': '99', 'type': 'pattern_list', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'nni'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'nnb'}; {'id': '102', 'type': 'call', 'children': ['103', '111']}; {'id': '103', 'type': 'attribute', 'children': ['104', '110']}; {'id': '104', 'type': 'call', 'children': ['105', '108']}; {'id': '105', 'type': 'attribute', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'neighbors'}; {'id': '108', 'type': 'argument_list', 'children': ['109']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'ni'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '111', 'type': 'argument_list', 'children': []}; {'id': '112', 'type': 'block', 'children': ['113']}; {'id': '113', 'type': 'if_statement', 'children': ['114', '141', '157']}; {'id': '114', 'type': 'boolean_operator', 'children': ['115', '131', '132'], 'value': 'and'}; {'id': '115', 'type': 'boolean_operator', 'children': ['116', '126'], 'value': 'and'}; {'id': '116', 'type': 'comparison_operator', 'children': ['117', '125'], 'value': '=='}; {'id': '117', 'type': 'attribute', 'children': ['118', '124']}; {'id': '118', 'type': 'call', 'children': ['119', '122']}; {'id': '119', 'type': 'attribute', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '122', 'type': 'argument_list', 'children': ['123']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'nni'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '125', 'type': 'string', 'children': [], 'value': '"N"'}; {'id': '126', 'type': 'comparison_operator', 'children': ['127', '130'], 'value': '=='}; {'id': '127', 'type': 'attribute', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'nnb'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '130', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '131', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '132', 'type': 'not_operator', 'children': ['133']}; {'id': '133', 'type': 'attribute', 'children': ['134', '140']}; {'id': '134', 'type': 'call', 'children': ['135', '138']}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '138', 'type': 'argument_list', 'children': ['139']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'nni'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'aromatic'}; {'id': '141', 'type': 'block', 'children': ['142', '153']}; {'id': '142', 'type': 'expression_statement', 'children': ['143']}; {'id': '143', 'type': 'assignment', 'children': ['144', '152']}; {'id': '144', 'type': 'attribute', 'children': ['145', '151']}; {'id': '145', 'type': 'call', 'children': ['146', '149']}; {'id': '146', 'type': 'attribute', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'nni'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'charge_conj'}; {'id': '152', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '153', 'type': 'expression_statement', 'children': ['154']}; {'id': '154', 'type': 'assignment', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'conj'}; {'id': '156', 'type': 'True', 'children': []}; {'id': '157', 'type': 'elif_clause', 'children': ['158', '172']}; {'id': '158', 'type': 'boolean_operator', 'children': ['159', '169'], 'value': 'and'}; {'id': '159', 'type': 'comparison_operator', 'children': ['160', '168'], 'value': '=='}; {'id': '160', 'type': 'attribute', 'children': ['161', '167']}; {'id': '161', 'type': 'call', 'children': ['162', '165']}; {'id': '162', 'type': 'attribute', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'nni'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '168', 'type': 'string', 'children': [], 'value': '"N"'}; {'id': '169', 'type': 'comparison_operator', 'children': ['170', '171'], 'value': '!='}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'nni'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '172', 'type': 'block', 'children': ['173']}; {'id': '173', 'type': 'expression_statement', 'children': ['174']}; {'id': '174', 'type': 'assignment', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'sp2n'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'nni'}; {'id': '177', 'type': 'if_statement', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'conj'}; {'id': '179', 'type': 'block', 'children': ['180', '191']}; {'id': '180', 'type': 'expression_statement', 'children': ['181']}; {'id': '181', 'type': 'assignment', 'children': ['182', '190']}; {'id': '182', 'type': 'attribute', 'children': ['183', '189']}; {'id': '183', 'type': 'call', 'children': ['184', '187']}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '187', 'type': 'argument_list', 'children': ['188']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'charge_phys'}; {'id': '190', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '191', 'type': 'if_statement', 'children': ['192', '195']}; {'id': '192', 'type': 'comparison_operator', 'children': ['193', '194'], 'value': 'is'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'sp2n'}; {'id': '194', 'type': 'None', 'children': []}; {'id': '195', 'type': 'block', 'children': ['196']}; {'id': '196', 'type': 'expression_statement', 'children': ['197']}; {'id': '197', 'type': 'assignment', 'children': ['198', '206']}; {'id': '198', 'type': 'attribute', 'children': ['199', '205']}; {'id': '199', 'type': 'call', 'children': ['200', '203']}; {'id': '200', 'type': 'attribute', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '203', 'type': 'argument_list', 'children': ['204']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'sp2n'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'charge_conj'}; {'id': '206', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '207', 'type': 'elif_clause', 'children': ['208', '223']}; {'id': '208', 'type': 'boolean_operator', 'children': ['209', '218'], 'value': 'and'}; {'id': '209', 'type': 'boolean_operator', 'children': ['210', '215'], 'value': 'and'}; {'id': '210', 'type': 'comparison_operator', 'children': ['211', '214'], 'value': '=='}; {'id': '211', 'type': 'attribute', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '214', 'type': 'string', 'children': [], 'value': '"O"'}; {'id': '215', 'type': 'comparison_operator', 'children': ['216', '217'], 'value': '=='}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'nbrcnt'}; {'id': '217', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '218', 'type': 'comparison_operator', 'children': ['219', '222'], 'value': '=='}; {'id': '219', 'type': 'attribute', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'pi'}; {'id': '222', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '223', 'type': 'block', 'children': ['224', '237', '241', '275', '337']}; {'id': '224', 'type': 'expression_statement', 'children': ['225']}; {'id': '225', 'type': 'assignment', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'ni'}; {'id': '227', 'type': 'subscript', 'children': ['228', '236']}; {'id': '228', 'type': 'call', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '230', 'type': 'argument_list', 'children': ['231']}; {'id': '231', 'type': 'call', 'children': ['232', '235']}; {'id': '232', 'type': 'attribute', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'nbrs'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '235', 'type': 'argument_list', 'children': []}; {'id': '236', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'assignment', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'conj'}; {'id': '240', 'type': 'False', 'children': []}; {'id': '241', 'type': 'if_statement', 'children': ['242', '252']}; {'id': '242', 'type': 'comparison_operator', 'children': ['243', '251'], 'value': '=='}; {'id': '243', 'type': 'attribute', 'children': ['244', '250']}; {'id': '244', 'type': 'call', 'children': ['245', '248']}; {'id': '245', 'type': 'attribute', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '248', 'type': 'argument_list', 'children': ['249']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'ni'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '251', 'type': 'string', 'children': [], 'value': '"N"'}; {'id': '252', 'type': 'block', 'children': ['253', '264']}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'assignment', 'children': ['255', '263']}; {'id': '255', 'type': 'attribute', 'children': ['256', '262']}; {'id': '256', 'type': 'call', 'children': ['257', '260']}; {'id': '257', 'type': 'attribute', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '260', 'type': 'argument_list', 'children': ['261']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'n_oxide'}; {'id': '263', 'type': 'True', 'children': []}; {'id': '264', 'type': 'expression_statement', 'children': ['265']}; {'id': '265', 'type': 'assignment', 'children': ['266', '274']}; {'id': '266', 'type': 'attribute', 'children': ['267', '273']}; {'id': '267', 'type': 'call', 'children': ['268', '271']}; {'id': '268', 'type': 'attribute', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '271', 'type': 'argument_list', 'children': ['272']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'ni'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'n_oxide'}; {'id': '274', 'type': 'True', 'children': []}; {'id': '275', 'type': 'for_statement', 'children': ['276', '279', '289']}; {'id': '276', 'type': 'pattern_list', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'nni'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'nnb'}; {'id': '279', 'type': 'call', 'children': ['280', '288']}; {'id': '280', 'type': 'attribute', 'children': ['281', '287']}; {'id': '281', 'type': 'call', 'children': ['282', '285']}; {'id': '282', 'type': 'attribute', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'neighbors'}; {'id': '285', 'type': 'argument_list', 'children': ['286']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'ni'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '288', 'type': 'argument_list', 'children': []}; {'id': '289', 'type': 'block', 'children': ['290']}; {'id': '290', 'type': 'if_statement', 'children': ['291', '320']}; {'id': '291', 'type': 'boolean_operator', 'children': ['292', '311'], 'value': 'and'}; {'id': '292', 'type': 'boolean_operator', 'children': ['293', '305', '306'], 'value': 'and'}; {'id': '293', 'type': 'comparison_operator', 'children': ['294', '302'], 'value': 'in'}; {'id': '294', 'type': 'attribute', 'children': ['295', '301']}; {'id': '295', 'type': 'call', 'children': ['296', '299']}; {'id': '296', 'type': 'attribute', 'children': ['297', '298']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '299', 'type': 'argument_list', 'children': ['300']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'nni'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '302', 'type': 'tuple', 'children': ['303', '304']}; {'id': '303', 'type': 'string', 'children': [], 'value': '"O"'}; {'id': '304', 'type': 'string', 'children': [], 'value': '"S"'}; {'id': '305', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '306', 'type': 'comparison_operator', 'children': ['307', '310'], 'value': '=='}; {'id': '307', 'type': 'attribute', 'children': ['308', '309']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'nnb'}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '310', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '311', 'type': 'not_operator', 'children': ['312']}; {'id': '312', 'type': 'attribute', 'children': ['313', '319']}; {'id': '313', 'type': 'call', 'children': ['314', '317']}; {'id': '314', 'type': 'attribute', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '317', 'type': 'argument_list', 'children': ['318']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'ni'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'n_oxide'}; {'id': '320', 'type': 'block', 'children': ['321', '333']}; {'id': '321', 'type': 'expression_statement', 'children': ['322']}; {'id': '322', 'type': 'assignment', 'children': ['323', '331']}; {'id': '323', 'type': 'attribute', 'children': ['324', '330']}; {'id': '324', 'type': 'call', 'children': ['325', '328']}; {'id': '325', 'type': 'attribute', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '328', 'type': 'argument_list', 'children': ['329']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'nni'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'charge_conj'}; {'id': '331', 'type': 'unary_operator', 'children': ['332'], 'value': '-'}; {'id': '332', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '333', 'type': 'expression_statement', 'children': ['334']}; {'id': '334', 'type': 'assignment', 'children': ['335', '336']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'conj'}; {'id': '336', 'type': 'True', 'children': []}; {'id': '337', 'type': 'if_statement', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'conj'}; {'id': '339', 'type': 'block', 'children': ['340']}; {'id': '340', 'type': 'expression_statement', 'children': ['341']}; {'id': '341', 'type': 'assignment', 'children': ['342', '350']}; {'id': '342', 'type': 'attribute', 'children': ['343', '349']}; {'id': '343', 'type': 'call', 'children': ['344', '347']}; {'id': '344', 'type': 'attribute', 'children': ['345', '346']}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '347', 'type': 'argument_list', 'children': ['348']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'charge_phys'}; {'id': '350', 'type': 'unary_operator', 'children': ['351'], 'value': '-'}; {'id': '351', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '352', 'type': 'elif_clause', 'children': ['353', '362']}; {'id': '353', 'type': 'boolean_operator', 'children': ['354', '359'], 'value': 'and'}; {'id': '354', 'type': 'comparison_operator', 'children': ['355', '358'], 'value': '=='}; {'id': '355', 'type': 'attribute', 'children': ['356', '357']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'symbol'}; {'id': '358', 'type': 'string', 'children': [], 'value': '"S"'}; {'id': '359', 'type': 'comparison_operator', 'children': ['360', '361'], 'value': '=='}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'nbrcnt'}; {'id': '361', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '362', 'type': 'block', 'children': ['363', '376']}; {'id': '363', 'type': 'expression_statement', 'children': ['364']}; {'id': '364', 'type': 'assignment', 'children': ['365', '366']}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'ni'}; {'id': '366', 'type': 'subscript', 'children': ['367', '375']}; {'id': '367', 'type': 'call', 'children': ['368', '369']}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '369', 'type': 'argument_list', 'children': ['370']}; {'id': '370', 'type': 'call', 'children': ['371', '374']}; {'id': '371', 'type': 'attribute', 'children': ['372', '373']}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'nbrs'}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '374', 'type': 'argument_list', 'children': []}; {'id': '375', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '376', 'type': 'if_statement', 'children': ['377', '385']}; {'id': '377', 'type': 'attribute', 'children': ['378', '384']}; {'id': '378', 'type': 'call', 'children': ['379', '382']}; {'id': '379', 'type': 'attribute', 'children': ['380', '381']}; {'id': '380', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '382', 'type': 'argument_list', 'children': ['383']}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'ni'}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'aromatic'}; {'id': '385', 'type': 'block', 'children': ['386']}; {'id': '386', 'type': 'expression_statement', 'children': ['387']}; {'id': '387', 'type': 'assignment', 'children': ['388', '396']}; {'id': '388', 'type': 'attribute', 'children': ['389', '395']}; {'id': '389', 'type': 'call', 'children': ['390', '393']}; {'id': '390', 'type': 'attribute', 'children': ['391', '392']}; {'id': '391', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '392', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '393', 'type': 'argument_list', 'children': ['394']}; {'id': '394', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '395', 'type': 'identifier', 'children': [], 'value': 'charge_phys'}; {'id': '396', 'type': 'unary_operator', 'children': ['397'], 'value': '-'}; {'id': '397', 'type': 'integer', 'children': [], 'value': '1'}; {'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': 'mol'}; {'id': '402', 'type': 'identifier', 'children': [], 'value': 'charge_assigned'}; {'id': '403', 'type': 'True', 'children': []}; {'id': '404', 'type': 'expression_statement', 'children': ['405']}; {'id': '405', 'type': 'call', 'children': ['406', '411']}; {'id': '406', 'type': 'attribute', 'children': ['407', '410']}; {'id': '407', 'type': 'attribute', 'children': ['408', '409']}; {'id': '408', 'type': 'identifier', 'children': [], 'value': 'mol'}; {'id': '409', 'type': 'identifier', 'children': [], 'value': 'descriptors'}; {'id': '410', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '411', 'type': 'argument_list', 'children': ['412']}; {'id': '412', 'type': 'string', 'children': [], 'value': '"Phys_charge"'} | Assign charges in physiological condition |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_start_action_for_section'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '6', 'type': 'block', 'children': ['7', '13', '24', '34', '52', '56', '60', '71', '99', '114', '128', '137', '146']}; {'id': '7', 'type': 'if_statement', 'children': ['8', '11']}; {'id': '8', 'type': 'comparison_operator', 'children': ['9', '10'], 'value': '=='}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '10', 'type': 'string', 'children': [], 'value': '"configuration"'}; {'id': '11', 'type': 'block', 'children': ['12']}; {'id': '12', 'type': 'return_statement', 'children': []}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'call', 'children': ['15', '20']}; {'id': '15', 'type': 'attribute', 'children': ['16', '19']}; {'id': '16', 'type': 'attribute', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'Global'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'LOGGER'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '20', 'type': 'argument_list', 'children': ['21']}; {'id': '21', 'type': 'binary_operator', 'children': ['22', '23'], 'value': '+'}; {'id': '22', 'type': 'string', 'children': [], 'value': '"starting actions for section "'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'assignment', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'action_configuration'}; {'id': '27', 'type': 'subscript', 'children': ['28', '33']}; {'id': '28', 'type': 'attribute', 'children': ['29', '32']}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'Global'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'CONFIG_MANAGER'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'sections'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '34', 'type': 'if_statement', 'children': ['35', '41']}; {'id': '35', 'type': 'comparison_operator', 'children': ['36', '40'], 'value': '=='}; {'id': '36', 'type': 'call', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'action_configuration'}; {'id': '40', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '41', 'type': 'block', 'children': ['42', '51']}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'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': 'Global'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'LOGGER'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'warn'}; {'id': '49', 'type': 'argument_list', 'children': ['50']}; {'id': '50', 'type': 'string', 'children': [], 'value': 'f"section {section} has no configuration, skipping"'}; {'id': '51', 'type': 'return_statement', 'children': []}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'assignment', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'action_type'}; {'id': '55', 'type': 'None', 'children': []}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'new_managed_input'}; {'id': '59', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '60', 'type': 'if_statement', 'children': ['61', '64']}; {'id': '61', 'type': 'comparison_operator', 'children': ['62', '63'], 'value': 'in'}; {'id': '62', 'type': 'string', 'children': [], 'value': '"type"'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'action_configuration'}; {'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': 'action_type'}; {'id': '68', 'type': 'subscript', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'action_configuration'}; {'id': '70', 'type': 'string', 'children': [], 'value': '"type"'}; {'id': '71', 'type': 'if_statement', 'children': ['72', '75']}; {'id': '72', 'type': 'comparison_operator', 'children': ['73', '74'], 'value': 'in'}; {'id': '73', 'type': 'string', 'children': [], 'value': '"input"'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'action_configuration'}; {'id': '75', 'type': 'block', 'children': ['76', '82']}; {'id': '76', 'type': 'expression_statement', 'children': ['77']}; {'id': '77', 'type': 'assignment', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'action_input'}; {'id': '79', 'type': 'subscript', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'action_configuration'}; {'id': '81', 'type': 'string', 'children': [], 'value': '"input"'}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'assignment', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'new_managed_input'}; {'id': '85', 'type': 'generator_expression', 'children': ['86', '91']}; {'id': '86', 'type': 'call', 'children': ['87', '90']}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '90', 'type': 'argument_list', 'children': []}; {'id': '91', 'type': 'for_in_clause', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '93', 'type': 'call', 'children': ['94', '97']}; {'id': '94', 'type': 'attribute', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'action_input'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '97', 'type': 'argument_list', 'children': ['98']}; {'id': '98', 'type': 'string', 'children': [], 'value': '","'}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'assignment', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'my_action'}; {'id': '102', 'type': 'call', 'children': ['103', '106']}; {'id': '103', 'type': 'attribute', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'create_action_for_code'}; {'id': '106', 'type': 'argument_list', 'children': ['107', '108', '109', '110']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'action_type'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'action_configuration'}; {'id': '110', 'type': 'call', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'new_managed_input'}; {'id': '114', 'type': 'if_statement', 'children': ['115', '117']}; {'id': '115', 'type': 'not_operator', 'children': ['116']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'my_action'}; {'id': '117', 'type': 'block', 'children': ['118', '127']}; {'id': '118', 'type': 'expression_statement', 'children': ['119']}; {'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': 'Global'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'LOGGER'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'warn'}; {'id': '125', 'type': 'argument_list', 'children': ['126']}; {'id': '126', 'type': 'string', 'children': [], 'value': 'f"can\'t find a type for action {section}, the action will be skipped"'}; {'id': '127', 'type': 'return_statement', 'children': []}; {'id': '128', 'type': 'expression_statement', 'children': ['129']}; {'id': '129', 'type': 'call', 'children': ['130', '135']}; {'id': '130', 'type': 'attribute', 'children': ['131', '134']}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'actions'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '135', 'type': 'argument_list', 'children': ['136']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'my_action'}; {'id': '137', 'type': 'expression_statement', 'children': ['138']}; {'id': '138', 'type': 'call', 'children': ['139', '144']}; {'id': '139', 'type': 'attribute', 'children': ['140', '143']}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'Global'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'LOGGER'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'string', 'children': [], 'value': '"updating the subscriptions table"'}; {'id': '146', 'type': 'for_statement', 'children': ['147', '148', '151']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'my_input'}; {'id': '148', 'type': 'attribute', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'my_action'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'monitored_input'}; {'id': '151', 'type': 'block', 'children': ['152']}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'call', 'children': ['154', '165']}; {'id': '154', 'type': 'attribute', 'children': ['155', '164']}; {'id': '155', 'type': 'call', 'children': ['156', '161']}; {'id': '156', 'type': 'attribute', 'children': ['157', '160']}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'subscriptions'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'setdefault'}; {'id': '161', 'type': 'argument_list', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'my_input'}; {'id': '163', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'my_action'} | Start all the actions for a particular section |
{'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', '14', '37']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'document'}; {'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': 'state'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'document'}; {'id': '14', 'type': 'if_statement', 'children': ['15', '21']}; {'id': '15', 'type': 'not_operator', 'children': ['16']}; {'id': '16', 'type': 'attribute', 'children': ['17', '20']}; {'id': '17', 'type': 'attribute', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'document'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'settings'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'file_insertion_enabled'}; {'id': '21', 'type': 'block', 'children': ['22']}; {'id': '22', 'type': 'return_statement', 'children': ['23']}; {'id': '23', 'type': 'list', 'children': ['24'], 'value': "[document.reporter.warning('File insertion disabled',\n line=self.lineno)]"}; {'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': 'document'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'reporter'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '30', 'type': 'argument_list', 'children': ['31', '32']}; {'id': '31', 'type': 'string', 'children': [], 'value': "'File insertion disabled'"}; {'id': '32', 'type': 'keyword_argument', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'lineno'}; {'id': '37', 'type': 'try_statement', 'children': ['38', '292']}; {'id': '38', 'type': 'block', 'children': ['39', '52', '60', '73', '86', '96', '102', '135', '158', '172', '180', '244', '252', '282', '289']}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'assignment', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'location'}; {'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': 'self'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'state_machine'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'get_source_and_line'}; {'id': '48', 'type': 'argument_list', 'children': ['49']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'lineno'}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'assignment', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'url'}; {'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': 'arguments'}; {'id': '59', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'reader'}; {'id': '63', 'type': 'call', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'RemoteCodeBlockReader'}; {'id': '65', 'type': 'argument_list', 'children': ['66', '67', '70']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '67', 'type': 'attribute', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '70', 'type': 'attribute', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '73', 'type': 'expression_statement', 'children': ['74']}; {'id': '74', 'type': 'assignment', 'children': ['75', '78']}; {'id': '75', 'type': 'pattern_list', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '78', 'type': 'call', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'reader'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '82', 'type': 'argument_list', 'children': ['83']}; {'id': '83', 'type': 'keyword_argument', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'location'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'location'}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'assignment', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'retnode'}; {'id': '89', 'type': 'call', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'literal_block'}; {'id': '93', 'type': 'argument_list', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'call', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'set_source_info'}; {'id': '99', 'type': 'argument_list', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'retnode'}; {'id': '102', 'type': 'if_statement', 'children': ['103', '111', '118']}; {'id': '103', 'type': 'call', 'children': ['104', '109']}; {'id': '104', 'type': 'attribute', 'children': ['105', '108']}; {'id': '105', 'type': 'attribute', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '109', 'type': 'argument_list', 'children': ['110']}; {'id': '110', 'type': 'string', 'children': [], 'value': "'diff'"}; {'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': 'retnode'}; {'id': '116', 'type': 'string', 'children': [], 'value': "'language'"}; {'id': '117', 'type': 'string', 'children': [], 'value': "'udiff'"}; {'id': '118', 'type': 'elif_clause', 'children': ['119', '124']}; {'id': '119', 'type': 'comparison_operator', 'children': ['120', '121'], 'value': 'in'}; {'id': '120', 'type': 'string', 'children': [], 'value': "'language'"}; {'id': '121', 'type': 'attribute', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '124', 'type': 'block', 'children': ['125']}; {'id': '125', 'type': 'expression_statement', 'children': ['126']}; {'id': '126', 'type': 'assignment', 'children': ['127', '130']}; {'id': '127', 'type': 'subscript', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'retnode'}; {'id': '129', 'type': 'string', 'children': [], 'value': "'language'"}; {'id': '130', 'type': 'subscript', 'children': ['131', '134']}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '134', 'type': 'string', 'children': [], 'value': "'language'"}; {'id': '135', 'type': 'expression_statement', 'children': ['136']}; {'id': '136', 'type': 'assignment', 'children': ['137', '140']}; {'id': '137', 'type': 'subscript', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'retnode'}; {'id': '139', 'type': 'string', 'children': [], 'value': "'linenos'"}; {'id': '140', 'type': '()', 'children': ['141']}; {'id': '141', 'type': 'boolean_operator', 'children': ['142', '153'], 'value': 'or'}; {'id': '142', 'type': 'boolean_operator', 'children': ['143', '148'], 'value': 'or'}; {'id': '143', 'type': 'comparison_operator', 'children': ['144', '145'], 'value': 'in'}; {'id': '144', 'type': 'string', 'children': [], 'value': "'linenos'"}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '148', 'type': 'comparison_operator', 'children': ['149', '150'], 'value': 'in'}; {'id': '149', 'type': 'string', 'children': [], 'value': "'lineno-start'"}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '153', 'type': 'comparison_operator', 'children': ['154', '155'], 'value': 'in'}; {'id': '154', 'type': 'string', 'children': [], 'value': "'lineno-match'"}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'augmented_assignment', 'children': ['160', '163'], 'value': '+='}; {'id': '160', 'type': 'subscript', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'retnode'}; {'id': '162', 'type': 'string', 'children': [], 'value': "'classes'"}; {'id': '163', 'type': 'call', 'children': ['164', '169']}; {'id': '164', 'type': 'attribute', 'children': ['165', '168']}; {'id': '165', 'type': 'attribute', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '169', 'type': 'argument_list', 'children': ['170', '171']}; {'id': '170', 'type': 'string', 'children': [], 'value': "'class'"}; {'id': '171', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'assignment', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'extra_args'}; {'id': '175', 'type': 'assignment', 'children': ['176', '179']}; {'id': '176', 'type': 'subscript', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'retnode'}; {'id': '178', 'type': 'string', 'children': [], 'value': "'highlight_args'"}; {'id': '179', 'type': 'dictionary', 'children': []}; {'id': '180', 'type': 'if_statement', 'children': ['181', '186']}; {'id': '181', 'type': 'comparison_operator', 'children': ['182', '183'], 'value': 'in'}; {'id': '182', 'type': 'string', 'children': [], 'value': "'emphasize-lines'"}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '186', 'type': 'block', 'children': ['187', '199', '228']}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'assignment', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'hl_lines'}; {'id': '190', 'type': 'call', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'parselinenos'}; {'id': '192', 'type': 'argument_list', 'children': ['193', '198']}; {'id': '193', 'type': 'subscript', 'children': ['194', '197']}; {'id': '194', 'type': 'attribute', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '197', 'type': 'string', 'children': [], 'value': "'emphasize-lines'"}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '199', 'type': 'if_statement', 'children': ['200', '209']}; {'id': '200', 'type': 'call', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'any'}; {'id': '202', 'type': 'generator_expression', 'children': ['203', '206']}; {'id': '203', 'type': 'comparison_operator', 'children': ['204', '205'], 'value': '>='}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '206', 'type': 'for_in_clause', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'hl_lines'}; {'id': '209', 'type': 'block', 'children': ['210']}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'call', 'children': ['212', '215']}; {'id': '212', 'type': 'attribute', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '215', 'type': 'argument_list', 'children': ['216', '225']}; {'id': '216', 'type': 'binary_operator', 'children': ['217', '218'], 'value': '%'}; {'id': '217', 'type': 'string', 'children': [], 'value': "'line number spec is out of range(1-%d): %r'"}; {'id': '218', 'type': 'tuple', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '220', 'type': 'subscript', 'children': ['221', '224']}; {'id': '221', 'type': 'attribute', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '224', 'type': 'string', 'children': [], 'value': "'emphasize-lines'"}; {'id': '225', 'type': 'keyword_argument', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'location'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'location'}; {'id': '228', 'type': 'expression_statement', 'children': ['229']}; {'id': '229', 'type': 'assignment', 'children': ['230', '233']}; {'id': '230', 'type': 'subscript', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'extra_args'}; {'id': '232', 'type': 'string', 'children': [], 'value': "'hl_lines'"}; {'id': '233', 'type': 'list_comprehension', 'children': ['234', '237', '240']}; {'id': '234', 'type': 'binary_operator', 'children': ['235', '236'], 'value': '+'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '236', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '237', 'type': 'for_in_clause', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'hl_lines'}; {'id': '240', 'type': 'if_clause', 'children': ['241']}; {'id': '241', 'type': 'comparison_operator', 'children': ['242', '243'], 'value': '<'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '244', 'type': 'expression_statement', 'children': ['245']}; {'id': '245', 'type': 'assignment', 'children': ['246', '249']}; {'id': '246', 'type': 'subscript', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'extra_args'}; {'id': '248', 'type': 'string', 'children': [], 'value': "'linenostart'"}; {'id': '249', 'type': 'attribute', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'reader'}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'lineno_start'}; {'id': '252', 'type': 'if_statement', 'children': ['253', '258']}; {'id': '253', 'type': 'comparison_operator', 'children': ['254', '255'], 'value': 'in'}; {'id': '254', 'type': 'string', 'children': [], 'value': "'caption'"}; {'id': '255', 'type': 'attribute', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'options'}; {'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': 'caption'}; {'id': '262', 'type': 'boolean_operator', 'children': ['263', '268'], 'value': 'or'}; {'id': '263', 'type': 'subscript', 'children': ['264', '267']}; {'id': '264', 'type': 'attribute', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '267', 'type': 'string', 'children': [], 'value': "'caption'"}; {'id': '268', 'type': 'subscript', 'children': ['269', '272']}; {'id': '269', 'type': 'attribute', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'arguments'}; {'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': 'retnode'}; {'id': '276', 'type': 'call', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'container_wrapper'}; {'id': '278', 'type': 'argument_list', 'children': ['279', '280', '281']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'retnode'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'caption'}; {'id': '282', 'type': 'expression_statement', 'children': ['283']}; {'id': '283', 'type': 'call', 'children': ['284', '287']}; {'id': '284', 'type': 'attribute', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'add_name'}; {'id': '287', 'type': 'argument_list', 'children': ['288']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'retnode'}; {'id': '289', 'type': 'return_statement', 'children': ['290']}; {'id': '290', 'type': 'list', 'children': ['291'], 'value': '[retnode]'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'retnode'}; {'id': '292', 'type': 'except_clause', 'children': ['293', '297']}; {'id': '293', 'type': 'as_pattern', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '295', 'type': 'as_pattern_target', 'children': ['296']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'exc'}; {'id': '297', 'type': 'block', 'children': ['298']}; {'id': '298', 'type': 'return_statement', 'children': ['299']}; {'id': '299', 'type': 'list', 'children': ['300'], 'value': '[document.reporter.warning(str(exc), line=self.lineno)]'}; {'id': '300', 'type': 'call', 'children': ['301', '306']}; {'id': '301', 'type': 'attribute', 'children': ['302', '305']}; {'id': '302', 'type': 'attribute', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'document'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'reporter'}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '306', 'type': 'argument_list', 'children': ['307', '311']}; {'id': '307', 'type': 'call', 'children': ['308', '309']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '309', 'type': 'argument_list', 'children': ['310']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'exc'}; {'id': '311', 'type': 'keyword_argument', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '313', 'type': 'attribute', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'lineno'} | Run the ``remote-code-block`` directive. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'ERROR', 'children': ['2', '207', '214', '223', '237', '254', '263', '269', '286']}; {'id': '2', 'type': 'function_definition', 'children': ['3', '4', '9']}; {'id': '3', 'type': 'function_name', 'children': [], 'value': 'start'}; {'id': '4', 'type': 'parameters', 'children': ['5', '6']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'bugnumber'}; {'id': '8', 'type': 'string', 'children': [], 'value': '""'}; {'id': '9', 'type': 'block', 'children': ['10', '16', '40', '74', '78', '113', '177', '188', '197']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '16', 'type': 'if_statement', 'children': ['17', '18', '30']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'bugnumber'}; {'id': '18', 'type': 'block', 'children': ['19']}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'assignment', 'children': ['21', '25']}; {'id': '21', 'type': 'pattern_list', 'children': ['22', '23', '24']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'summary'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'bugnumber'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '25', 'type': 'call', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'get_summary'}; {'id': '27', 'type': 'argument_list', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'bugnumber'}; {'id': '30', 'type': 'else_clause', 'children': ['31']}; {'id': '31', 'type': 'block', 'children': ['32', '36']}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'assignment', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '35', 'type': 'None', 'children': []}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'assignment', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'summary'}; {'id': '39', 'type': 'None', 'children': []}; {'id': '40', 'type': 'if_statement', 'children': ['41', '42', '61']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'summary'}; {'id': '42', 'type': 'block', 'children': ['43']}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'summary'}; {'id': '46', 'type': 'boolean_operator', 'children': ['47', '60'], 'value': 'or'}; {'id': '47', 'type': 'call', 'children': ['48', '59']}; {'id': '48', 'type': 'attribute', 'children': ['49', '58']}; {'id': '49', 'type': 'call', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'input'}; {'id': '51', 'type': 'argument_list', 'children': ['52']}; {'id': '52', 'type': 'call', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'string', 'children': [], 'value': '\'Summary ["{}"]: \''}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'summary'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '59', 'type': 'argument_list', 'children': []}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'summary'}; {'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': 'summary'}; {'id': '66', 'type': 'call', 'children': ['67', '73']}; {'id': '67', 'type': 'attribute', 'children': ['68', '72']}; {'id': '68', 'type': 'call', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'input'}; {'id': '70', 'type': 'argument_list', 'children': ['71']}; {'id': '71', 'type': 'string', 'children': [], 'value': '"Summary: "'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '73', 'type': 'argument_list', 'children': []}; {'id': '74', 'type': 'expression_statement', 'children': ['75']}; {'id': '75', 'type': 'assignment', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '77', 'type': 'string', 'children': [], 'value': '""'}; {'id': '78', 'type': 'if_statement', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'bugnumber'}; {'id': '80', 'type': 'block', 'children': ['81']}; {'id': '81', 'type': 'if_statement', 'children': ['82', '92', '102']}; {'id': '82', 'type': 'call', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'is_github'}; {'id': '84', 'type': 'argument_list', 'children': ['85']}; {'id': '85', 'type': 'dictionary', 'children': ['86', '89']}; {'id': '86', 'type': 'pair', 'children': ['87', '88']}; {'id': '87', 'type': 'string', 'children': [], 'value': '"bugnumber"'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'bugnumber'}; {'id': '89', 'type': 'pair', 'children': ['90', '91']}; {'id': '90', 'type': 'string', 'children': [], 'value': '"url"'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'url'}; {'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': 'branch_name'}; {'id': '96', 'type': 'call', 'children': ['97', '100']}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'string', 'children': [], 'value': '"{}-"'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '100', 'type': 'argument_list', 'children': ['101']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'bugnumber'}; {'id': '102', 'type': 'else_clause', 'children': ['103']}; {'id': '103', 'type': 'block', 'children': ['104']}; {'id': '104', 'type': 'expression_statement', 'children': ['105']}; {'id': '105', 'type': 'assignment', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '107', 'type': 'call', 'children': ['108', '111']}; {'id': '108', 'type': 'attribute', 'children': ['109', '110']}; {'id': '109', 'type': 'string', 'children': [], 'value': '"{}-"'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '111', 'type': 'argument_list', 'children': ['112']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'bugnumber'}; {'id': '113', 'type': 'function_definition', 'children': ['114', '115', '117', '166']}; {'id': '114', 'type': 'function_name', 'children': [], 'value': 'clean_branch_name'}; {'id': '115', 'type': 'parameters', 'children': ['116']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '117', 'type': 'ERROR', 'children': ['118', '129', '139', '155', '156', '159', '165']}; {'id': '118', 'type': 'expression_statement', 'children': ['119']}; {'id': '119', 'type': 'assignment', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '121', 'type': 'call', 'children': ['122', '125']}; {'id': '122', 'type': 'attribute', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '125', 'type': 'argument_list', 'children': ['126', '127', '128']}; {'id': '126', 'type': 'string', 'children': [], 'value': 'r"\\s+"'}; {'id': '127', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '129', 'type': 'expression_statement', 'children': ['130']}; {'id': '130', 'type': 'assignment', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '132', 'type': 'call', 'children': ['133', '136']}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '136', 'type': 'argument_list', 'children': ['137', '138']}; {'id': '137', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '138', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '142', 'type': 'call', 'children': ['143', '152']}; {'id': '143', 'type': 'attribute', 'children': ['144', '151']}; {'id': '144', 'type': 'call', 'children': ['145', '148']}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '148', 'type': 'argument_list', 'children': ['149', '150']}; {'id': '149', 'type': 'string', 'children': [], 'value': '"->"'}; {'id': '150', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '152', 'type': 'argument_list', 'children': ['153', '154']}; {'id': '153', 'type': 'string', 'children': [], 'value': '"=>"'}; {'id': '154', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'each'}; {'id': '156', 'type': 'binary_operator', 'children': ['157', '158'], 'value': '/'}; {'id': '157', 'type': 'string', 'children': [], 'value': '"@%^&:\'\\"'}; {'id': '158', 'type': 'tuple', 'children': []}; {'id': '159', 'type': 'ERROR', 'children': ['160', '161', '162', '164']}; {'id': '160', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '161', 'type': 'dictionary', 'children': []}; {'id': '162', 'type': 'ERROR', 'children': ['163']}; {'id': '163', 'type': 'ERROR', 'children': [], 'value': '!'}; {'id': '164', 'type': 'ERROR', 'children': [], 'value': '?'}; {'id': '165', 'type': 'ERROR', 'children': [], 'value': '$'}; {'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': 'string'}; {'id': '170', 'type': 'call', 'children': ['171', '174']}; {'id': '171', 'type': 'attribute', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '174', 'type': 'argument_list', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'each'}; {'id': '176', 'type': 'string', 'children': [], 'value': '""'}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '180', 'type': 'call', 'children': ['181', '184']}; {'id': '181', 'type': 'attribute', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '184', 'type': 'argument_list', 'children': ['185', '186', '187']}; {'id': '185', 'type': 'string', 'children': [], 'value': '"-+"'}; {'id': '186', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '188', 'type': 'expression_statement', 'children': ['189']}; {'id': '189', 'type': 'assignment', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '191', 'type': 'call', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '195', 'type': 'argument_list', 'children': ['196']}; {'id': '196', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '197', 'type': 'return_statement', 'children': ['198']}; {'id': '198', 'type': 'call', 'children': ['199', '206']}; {'id': '199', 'type': 'attribute', 'children': ['200', '205']}; {'id': '200', 'type': 'call', 'children': ['201', '204']}; {'id': '201', 'type': 'attribute', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '204', 'type': 'argument_list', 'children': []}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '206', 'type': 'argument_list', 'children': []}; {'id': '207', 'type': 'expression_statement', 'children': ['208']}; {'id': '208', 'type': 'augmented_assignment', 'children': ['209', '210'], 'value': '+='}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '210', 'type': 'call', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'clean_branch_name'}; {'id': '212', 'type': 'argument_list', 'children': ['213']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'summary'}; {'id': '214', 'type': 'if_statement', 'children': ['215', '217']}; {'id': '215', 'type': 'not_operator', 'children': ['216']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '217', 'type': 'block', 'children': ['218']}; {'id': '218', 'type': 'expression_statement', 'children': ['219']}; {'id': '219', 'type': 'call', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'error_out'}; {'id': '221', 'type': 'argument_list', 'children': ['222']}; {'id': '222', 'type': 'string', 'children': [], 'value': '"Must provide a branch name"'}; {'id': '223', 'type': 'expression_statement', 'children': ['224']}; {'id': '224', 'type': 'assignment', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'found'}; {'id': '226', 'type': 'call', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '228', 'type': 'argument_list', 'children': ['229']}; {'id': '229', 'type': 'call', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'find'}; {'id': '231', 'type': 'argument_list', 'children': ['232', '233', '234']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '234', 'type': 'keyword_argument', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'exact'}; {'id': '236', 'type': 'True', 'children': []}; {'id': '237', 'type': 'if_statement', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'found'}; {'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': 'error_out'}; {'id': '243', 'type': 'argument_list', 'children': ['244']}; {'id': '244', 'type': 'call', 'children': ['245', '248']}; {'id': '245', 'type': 'attribute', 'children': ['246', '247']}; {'id': '246', 'type': 'string', 'children': [], 'value': '"There is already a branch called {!r}"'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '248', 'type': 'argument_list', 'children': ['249']}; {'id': '249', 'type': 'attribute', 'children': ['250', '253']}; {'id': '250', 'type': 'subscript', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'found'}; {'id': '252', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '254', 'type': 'expression_statement', 'children': ['255']}; {'id': '255', 'type': 'assignment', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'new_branch'}; {'id': '257', 'type': 'call', 'children': ['258', '261']}; {'id': '258', 'type': 'attribute', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'create_head'}; {'id': '261', 'type': 'argument_list', 'children': ['262']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '263', 'type': 'expression_statement', 'children': ['264']}; {'id': '264', 'type': 'call', 'children': ['265', '268']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'new_branch'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'checkout'}; {'id': '268', 'type': 'argument_list', 'children': []}; {'id': '269', 'type': 'if_statement', 'children': ['270', '273']}; {'id': '270', 'type': 'attribute', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '273', 'type': 'block', 'children': ['274']}; {'id': '274', 'type': 'expression_statement', 'children': ['275']}; {'id': '275', 'type': 'call', 'children': ['276', '279']}; {'id': '276', 'type': 'attribute', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'click'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'echo'}; {'id': '279', 'type': 'argument_list', 'children': ['280']}; {'id': '280', 'type': 'call', 'children': ['281', '284']}; {'id': '281', 'type': 'attribute', 'children': ['282', '283']}; {'id': '282', 'type': 'string', 'children': [], 'value': '"Checkout out new branch: {}"'}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '284', 'type': 'argument_list', 'children': ['285']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '286', 'type': 'expression_statement', 'children': ['287']}; {'id': '287', 'type': 'call', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'save'}; {'id': '289', 'type': 'argument_list', 'children': ['290', '293', '294', '295', '298']}; {'id': '290', 'type': 'attribute', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'configfile'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'summary'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '295', 'type': 'keyword_argument', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'bugnumber'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'bugnumber'}; {'id': '298', 'type': 'keyword_argument', 'children': ['299', '300']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'url'} | Create a new topic branch. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'create_form_data'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'dictionary_splat_pattern', 'children': ['6']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '7', 'type': 'block', 'children': ['8', '18', '28', '38', '48', '56', '197', '201', '261', '309', '321']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '11', 'type': 'call', 'children': ['12', '15']}; {'id': '12', 'type': 'attribute', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '15', 'type': 'argument_list', 'children': ['16', '17']}; {'id': '16', 'type': 'string', 'children': [], 'value': "'children'"}; {'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': 'sort_order'}; {'id': '21', 'type': 'call', 'children': ['22', '25']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '25', 'type': 'argument_list', 'children': ['26', '27']}; {'id': '26', 'type': 'string', 'children': [], 'value': "'sort_order'"}; {'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': 'solr_response'}; {'id': '31', 'type': 'call', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '35', 'type': 'argument_list', 'children': ['36', '37']}; {'id': '36', 'type': 'string', 'children': [], 'value': "'solr_response'"}; {'id': '37', 'type': 'None', 'children': []}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'superuser'}; {'id': '41', 'type': 'call', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '45', 'type': 'argument_list', 'children': ['46', '47']}; {'id': '46', 'type': 'string', 'children': [], 'value': "'superuser'"}; {'id': '47', 'type': 'False', 'children': []}; {'id': '48', 'type': 'expression_statement', 'children': ['49']}; {'id': '49', 'type': 'assignment', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'vocabularies'}; {'id': '51', 'type': 'call', 'children': ['52', '55']}; {'id': '52', 'type': 'attribute', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'get_vocabularies'}; {'id': '55', 'type': 'argument_list', 'children': []}; {'id': '56', 'type': 'for_statement', 'children': ['57', '58', '59']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '59', 'type': 'block', 'children': ['60', '74', '96']}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '65']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '65', 'type': 'call', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'add_missing_children'}; {'id': '67', 'type': 'argument_list', 'children': ['68', '71']}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'contained_children'}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': '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': 'element'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'add_form'}; {'id': '79', 'type': 'argument_list', 'children': ['80', '83', '88', '93']}; {'id': '80', 'type': 'keyword_argument', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'vocabularies'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'vocabularies'}; {'id': '83', 'type': 'keyword_argument', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '85', 'type': 'attribute', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '88', 'type': 'keyword_argument', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '93', 'type': 'keyword_argument', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'superuser'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'superuser'}; {'id': '96', 'type': 'if_statement', 'children': ['97', '102']}; {'id': '97', 'type': 'attribute', 'children': ['98', '101']}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'has_children'}; {'id': '102', 'type': 'block', 'children': ['103', '139', '164']}; {'id': '103', 'type': 'if_statement', 'children': ['104', '112']}; {'id': '104', 'type': 'call', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '106', 'type': 'argument_list', 'children': ['107', '110', '111']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '110', 'type': 'string', 'children': [], 'value': "'qualifier_name'"}; {'id': '111', 'type': 'False', 'children': []}; {'id': '112', 'type': 'block', 'children': ['113', '130']}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'add_parent'}; {'id': '116', 'type': 'call', 'children': ['117', '124']}; {'id': '117', 'type': 'subscript', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'PARENT_FORM'}; {'id': '119', 'type': 'attribute', 'children': ['120', '123']}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'qualifier_name'}; {'id': '124', 'type': 'argument_list', 'children': ['125']}; {'id': '125', 'type': 'keyword_argument', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '127', 'type': 'attribute', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'call', 'children': ['132', '137']}; {'id': '132', 'type': 'attribute', 'children': ['133', '136']}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '137', 'type': 'argument_list', 'children': ['138']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'add_parent'}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'call', 'children': ['141', '146']}; {'id': '141', 'type': 'attribute', 'children': ['142', '145']}; {'id': '142', 'type': 'attribute', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'sort'}; {'id': '146', 'type': 'argument_list', 'children': ['147']}; {'id': '147', 'type': 'keyword_argument', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '149', 'type': 'lambda', 'children': ['150', '152']}; {'id': '150', 'type': 'lambda_parameters', 'children': ['151']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '152', 'type': 'call', 'children': ['153', '160']}; {'id': '153', 'type': 'attribute', 'children': ['154', '159']}; {'id': '154', 'type': 'attribute', 'children': ['155', '158']}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'child_sort'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '160', 'type': 'argument_list', 'children': ['161']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '164', 'type': 'for_statement', 'children': ['165', '166', '169']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '166', 'type': 'attribute', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'children'}; {'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': 'child'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'add_form'}; {'id': '175', 'type': 'argument_list', 'children': ['176', '179', '184', '189', '194']}; {'id': '176', 'type': 'keyword_argument', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'vocabularies'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'vocabularies'}; {'id': '179', 'type': 'keyword_argument', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '181', 'type': 'attribute', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '184', 'type': 'keyword_argument', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '189', 'type': 'keyword_argument', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'parent_tag'}; {'id': '191', 'type': 'attribute', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '194', 'type': 'keyword_argument', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'superuser'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'superuser'}; {'id': '197', 'type': 'expression_statement', 'children': ['198']}; {'id': '198', 'type': 'assignment', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'element_group_dict'}; {'id': '200', 'type': 'dictionary', 'children': []}; {'id': '201', 'type': 'for_statement', 'children': ['202', '203', '204']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '204', 'type': 'block', 'children': ['205']}; {'id': '205', 'type': 'if_statement', 'children': ['206', '219', '227']}; {'id': '206', 'type': 'boolean_operator', 'children': ['207', '214'], 'value': 'and'}; {'id': '207', 'type': 'comparison_operator', 'children': ['208', '213'], 'value': '=='}; {'id': '208', 'type': 'attribute', 'children': ['209', '212']}; {'id': '209', 'type': 'attribute', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '213', 'type': 'string', 'children': [], 'value': "'meta'"}; {'id': '214', 'type': 'comparison_operator', 'children': ['215', '218'], 'value': '=='}; {'id': '215', 'type': 'attribute', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '218', 'type': 'string', 'children': [], 'value': "'hidden'"}; {'id': '219', 'type': 'block', 'children': ['220']}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'assignment', 'children': ['222', '225']}; {'id': '222', 'type': 'subscript', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'element_group_dict'}; {'id': '224', 'type': 'string', 'children': [], 'value': "'hidden'"}; {'id': '225', 'type': 'list', 'children': ['226'], 'value': '[element]'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '227', 'type': 'else_clause', 'children': ['228']}; {'id': '228', 'type': 'block', 'children': ['229', '248']}; {'id': '229', 'type': 'if_statement', 'children': ['230', '237']}; {'id': '230', 'type': 'comparison_operator', 'children': ['231', '236'], 'value': 'not'}; {'id': '231', 'type': 'attribute', 'children': ['232', '235']}; {'id': '232', 'type': 'attribute', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'element_group_dict'}; {'id': '237', 'type': 'block', 'children': ['238']}; {'id': '238', 'type': 'expression_statement', 'children': ['239']}; {'id': '239', 'type': 'assignment', 'children': ['240', '247']}; {'id': '240', 'type': 'subscript', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'element_group_dict'}; {'id': '242', 'type': 'attribute', 'children': ['243', '246']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '247', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '248', 'type': 'expression_statement', 'children': ['249']}; {'id': '249', 'type': 'call', 'children': ['250', '259']}; {'id': '250', 'type': 'attribute', 'children': ['251', '258']}; {'id': '251', 'type': 'subscript', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'element_group_dict'}; {'id': '253', 'type': 'attribute', 'children': ['254', '257']}; {'id': '254', 'type': 'attribute', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'form'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '259', 'type': 'argument_list', 'children': ['260']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '261', 'type': 'if_statement', 'children': ['262', '265']}; {'id': '262', 'type': 'comparison_operator', 'children': ['263', '264'], 'value': 'not'}; {'id': '263', 'type': 'string', 'children': [], 'value': "'hidden'"}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'element_group_dict'}; {'id': '265', 'type': 'block', 'children': ['266', '280', '302']}; {'id': '266', 'type': 'expression_statement', 'children': ['267']}; {'id': '267', 'type': 'assignment', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'hidden_element'}; {'id': '269', 'type': 'call', 'children': ['270', '273']}; {'id': '270', 'type': 'subscript', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'PYUNTL_DISPATCH'}; {'id': '272', 'type': 'string', 'children': [], 'value': "'meta'"}; {'id': '273', 'type': 'argument_list', 'children': ['274', '277']}; {'id': '274', 'type': 'keyword_argument', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '276', 'type': 'string', 'children': [], 'value': "'hidden'"}; {'id': '277', 'type': 'keyword_argument', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '279', 'type': 'string', 'children': [], 'value': "'False'"}; {'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': 'hidden_element'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'add_form'}; {'id': '285', 'type': 'argument_list', 'children': ['286', '289', '294', '299']}; {'id': '286', 'type': 'keyword_argument', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'vocabularies'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'vocabularies'}; {'id': '289', 'type': 'keyword_argument', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '291', 'type': 'attribute', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'hidden_element'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '294', 'type': 'keyword_argument', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '296', 'type': 'attribute', 'children': ['297', '298']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'hidden_element'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '299', 'type': 'keyword_argument', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'superuser'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'superuser'}; {'id': '302', 'type': 'expression_statement', 'children': ['303']}; {'id': '303', 'type': 'assignment', 'children': ['304', '307']}; {'id': '304', 'type': 'subscript', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'element_group_dict'}; {'id': '306', 'type': 'string', 'children': [], 'value': "'hidden'"}; {'id': '307', 'type': 'list', 'children': ['308'], 'value': '[hidden_element]'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'hidden_element'}; {'id': '309', 'type': 'expression_statement', 'children': ['310']}; {'id': '310', 'type': 'assignment', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'element_list'}; {'id': '312', 'type': 'call', 'children': ['313', '316']}; {'id': '313', 'type': 'attribute', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'create_form_groupings'}; {'id': '316', 'type': 'argument_list', 'children': ['317', '318', '319', '320']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'vocabularies'}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'solr_response'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'element_group_dict'}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'sort_order'}; {'id': '321', 'type': 'return_statement', 'children': ['322']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'element_list'} | Create groupings of form elements. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'top'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'sort_by'}; {'id': '6', 'type': 'block', 'children': ['7', '19']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'sort'}; {'id': '10', 'type': 'call', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '12', 'type': 'argument_list', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'results'}; {'id': '16', 'type': 'keyword_argument', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'sort_by'}; {'id': '19', 'type': 'return_statement', 'children': ['20']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'sort'} | Get the best results according to your custom sort method. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'post2pydict'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'post'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'ignore_list'}; {'id': '6', 'type': 'block', 'children': ['7', '15', '19', '30', '77', '377']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'root_element'}; {'id': '10', 'type': 'call', 'children': ['11', '14']}; {'id': '11', 'type': 'subscript', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'PYUNTL_DISPATCH'}; {'id': '13', 'type': 'string', 'children': [], 'value': "'metadata'"}; {'id': '14', 'type': 'argument_list', 'children': []}; {'id': '15', 'type': 'expression_statement', 'children': ['16']}; {'id': '16', 'type': 'assignment', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'untl_form_dict'}; {'id': '18', 'type': 'dictionary', 'children': []}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'assignment', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'form_post'}; {'id': '22', 'type': 'call', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '24', 'type': 'argument_list', 'children': ['25']}; {'id': '25', 'type': 'call', 'children': ['26', '29']}; {'id': '26', 'type': 'attribute', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'post'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '29', 'type': 'argument_list', 'children': []}; {'id': '30', 'type': 'for_statement', 'children': ['31', '34', '39']}; {'id': '31', 'type': 'pattern_list', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'value_list'}; {'id': '34', 'type': 'call', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'form_post'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '38', 'type': 'argument_list', 'children': []}; {'id': '39', 'type': 'block', 'children': ['40']}; {'id': '40', 'type': 'if_statement', 'children': ['41', '44']}; {'id': '41', 'type': 'comparison_operator', 'children': ['42', '43'], 'value': 'not'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'ignore_list'}; {'id': '44', 'type': 'block', 'children': ['45', '57', '68']}; {'id': '45', 'type': 'expression_statement', 'children': ['46']}; {'id': '46', 'type': 'assignment', 'children': ['47', '50']}; {'id': '47', 'type': 'tuple_pattern', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'element_tag'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'element_attribute'}; {'id': '50', 'type': 'call', 'children': ['51', '54']}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '54', 'type': 'argument_list', 'children': ['55', '56']}; {'id': '55', 'type': 'string', 'children': [], 'value': "'-'"}; {'id': '56', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '57', 'type': 'if_statement', 'children': ['58', '61']}; {'id': '58', 'type': 'comparison_operator', 'children': ['59', '60'], 'value': 'not'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'element_tag'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'untl_form_dict'}; {'id': '61', 'type': 'block', 'children': ['62']}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '67']}; {'id': '64', 'type': 'subscript', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'untl_form_dict'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'element_tag'}; {'id': '67', 'type': 'tuple', 'children': []}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'augmented_assignment', 'children': ['70', '73'], 'value': '+='}; {'id': '70', 'type': 'subscript', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'untl_form_dict'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'element_tag'}; {'id': '73', 'type': 'expression_list', 'children': ['74']}; {'id': '74', 'type': 'tuple', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'element_attribute'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'value_list'}; {'id': '77', 'type': 'for_statement', 'children': ['78', '81', '86']}; {'id': '78', 'type': 'pattern_list', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'element_tag'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'untl_form_dict'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '85', 'type': 'argument_list', 'children': []}; {'id': '86', 'type': 'block', 'children': ['87', '94', '105', '136']}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'attribute_count'}; {'id': '90', 'type': 'call', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '92', 'type': 'argument_list', 'children': ['93']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '94', 'type': 'expression_statement', 'children': ['95']}; {'id': '95', 'type': 'assignment', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'value_count'}; {'id': '97', 'type': 'call', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '99', 'type': 'argument_list', 'children': ['100']}; {'id': '100', 'type': 'subscript', 'children': ['101', '104']}; {'id': '101', 'type': 'subscript', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '103', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '104', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '105', 'type': 'for_statement', 'children': ['106', '107', '112']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '107', 'type': 'call', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '109', 'type': 'argument_list', 'children': ['110', '111']}; {'id': '110', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'attribute_count'}; {'id': '112', 'type': 'block', 'children': ['113']}; {'id': '113', 'type': 'if_statement', 'children': ['114', '125']}; {'id': '114', 'type': 'not_operator', 'children': ['115']}; {'id': '115', 'type': 'comparison_operator', 'children': ['116', '124'], 'value': '=='}; {'id': '116', 'type': 'call', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '118', 'type': 'argument_list', 'children': ['119']}; {'id': '119', 'type': 'subscript', 'children': ['120', '123']}; {'id': '120', 'type': 'subscript', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '123', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'value_count'}; {'id': '125', 'type': 'block', 'children': ['126']}; {'id': '126', 'type': 'raise_statement', 'children': ['127']}; {'id': '127', 'type': 'call', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'PyuntlException'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'binary_operator', 'children': ['131', '134'], 'value': '%'}; {'id': '131', 'type': 'concatenated_string', 'children': ['132', '133']}; {'id': '132', 'type': 'string', 'children': [], 'value': "'Field values did not match up '"}; {'id': '133', 'type': 'string', 'children': [], 'value': "'numerically for %s'"}; {'id': '134', 'type': '()', 'children': ['135']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'element_tag'}; {'id': '136', 'type': 'for_statement', 'children': ['137', '138', '143']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '138', 'type': 'call', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '140', 'type': 'argument_list', 'children': ['141', '142']}; {'id': '141', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'value_count'}; {'id': '143', 'type': 'block', 'children': ['144', '148', '152', '156', '160', '271', '342', '365']}; {'id': '144', 'type': 'expression_statement', 'children': ['145']}; {'id': '145', 'type': 'assignment', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'untl_element'}; {'id': '147', 'type': 'None', 'children': []}; {'id': '148', 'type': 'expression_statement', 'children': ['149']}; {'id': '149', 'type': 'assignment', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '151', 'type': 'string', 'children': [], 'value': "''"}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'assignment', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '155', 'type': 'string', 'children': [], 'value': "''"}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'assignment', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'child_list'}; {'id': '159', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '160', 'type': 'for_statement', 'children': ['161', '162', '167']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '162', 'type': 'call', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '164', 'type': 'argument_list', 'children': ['165', '166']}; {'id': '165', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'attribute_count'}; {'id': '167', 'type': 'block', 'children': ['168']}; {'id': '168', 'type': 'if_statement', 'children': ['169', '176', '190', '209']}; {'id': '169', 'type': 'comparison_operator', 'children': ['170', '175'], 'value': '=='}; {'id': '170', 'type': 'subscript', 'children': ['171', '174']}; {'id': '171', 'type': 'subscript', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '174', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '175', 'type': 'string', 'children': [], 'value': "'content'"}; {'id': '176', 'type': 'block', 'children': ['177']}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '180', 'type': 'call', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'unicode'}; {'id': '182', 'type': 'argument_list', 'children': ['183']}; {'id': '183', 'type': 'subscript', 'children': ['184', '189']}; {'id': '184', 'type': 'subscript', 'children': ['185', '188']}; {'id': '185', 'type': 'subscript', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '188', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '190', 'type': 'elif_clause', 'children': ['191', '198']}; {'id': '191', 'type': 'comparison_operator', 'children': ['192', '197'], 'value': '=='}; {'id': '192', 'type': 'subscript', 'children': ['193', '196']}; {'id': '193', 'type': 'subscript', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '196', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '197', 'type': 'string', 'children': [], 'value': "'qualifier'"}; {'id': '198', 'type': 'block', 'children': ['199']}; {'id': '199', 'type': 'expression_statement', 'children': ['200']}; {'id': '200', 'type': 'assignment', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '202', 'type': 'subscript', 'children': ['203', '208']}; {'id': '203', 'type': 'subscript', 'children': ['204', '207']}; {'id': '204', 'type': 'subscript', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '207', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '209', 'type': 'else_clause', 'children': ['210']}; {'id': '210', 'type': 'block', 'children': ['211']}; {'id': '211', 'type': 'if_statement', 'children': ['212', '221']}; {'id': '212', 'type': 'comparison_operator', 'children': ['213', '220'], 'value': '!='}; {'id': '213', 'type': 'subscript', 'children': ['214', '219']}; {'id': '214', 'type': 'subscript', 'children': ['215', '218']}; {'id': '215', 'type': 'subscript', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '218', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '220', 'type': 'string', 'children': [], 'value': "''"}; {'id': '221', 'type': 'block', 'children': ['222', '230']}; {'id': '222', 'type': 'expression_statement', 'children': ['223']}; {'id': '223', 'type': 'assignment', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'child_tag'}; {'id': '225', 'type': 'subscript', 'children': ['226', '229']}; {'id': '226', 'type': 'subscript', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '229', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '230', 'type': 'if_statement', 'children': ['231', '234', '245']}; {'id': '231', 'type': 'comparison_operator', 'children': ['232', '233'], 'value': 'in'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'child_tag'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'PARENT_FORM'}; {'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': 'qualifier'}; {'id': '238', 'type': 'subscript', 'children': ['239', '244']}; {'id': '239', 'type': 'subscript', 'children': ['240', '243']}; {'id': '240', 'type': 'subscript', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '243', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '245', 'type': 'else_clause', 'children': ['246']}; {'id': '246', 'type': 'block', 'children': ['247']}; {'id': '247', 'type': 'expression_statement', 'children': ['248']}; {'id': '248', 'type': 'call', 'children': ['249', '252']}; {'id': '249', 'type': 'attribute', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'child_list'}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '252', 'type': 'argument_list', 'children': ['253']}; {'id': '253', 'type': 'call', 'children': ['254', '261']}; {'id': '254', 'type': 'subscript', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'PYUNTL_DISPATCH'}; {'id': '256', 'type': 'subscript', 'children': ['257', '260']}; {'id': '257', 'type': 'subscript', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '260', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '261', 'type': 'argument_list', 'children': ['262']}; {'id': '262', 'type': 'keyword_argument', 'children': ['263', '264']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '264', 'type': 'subscript', 'children': ['265', '270']}; {'id': '265', 'type': 'subscript', 'children': ['266', '269']}; {'id': '266', 'type': 'subscript', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'attribute_tuple'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '269', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '271', 'type': 'if_statement', 'children': ['272', '279', '294', '310', '326']}; {'id': '272', 'type': 'boolean_operator', 'children': ['273', '276'], 'value': 'and'}; {'id': '273', 'type': 'comparison_operator', 'children': ['274', '275'], 'value': '!='}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '275', 'type': 'string', 'children': [], 'value': "''"}; {'id': '276', 'type': 'comparison_operator', 'children': ['277', '278'], 'value': '!='}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '278', 'type': 'string', 'children': [], 'value': "''"}; {'id': '279', 'type': 'block', 'children': ['280']}; {'id': '280', 'type': 'expression_statement', 'children': ['281']}; {'id': '281', 'type': 'assignment', 'children': ['282', '283']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'untl_element'}; {'id': '283', 'type': 'call', 'children': ['284', '287']}; {'id': '284', 'type': 'subscript', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'PYUNTL_DISPATCH'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'element_tag'}; {'id': '287', 'type': 'argument_list', 'children': ['288', '291']}; {'id': '288', 'type': 'keyword_argument', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '291', 'type': 'keyword_argument', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '294', 'type': 'elif_clause', 'children': ['295', '298']}; {'id': '295', 'type': 'comparison_operator', 'children': ['296', '297'], 'value': '!='}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '297', 'type': 'string', 'children': [], 'value': "''"}; {'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': 'untl_element'}; {'id': '302', 'type': 'call', 'children': ['303', '306']}; {'id': '303', 'type': 'subscript', 'children': ['304', '305']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'PYUNTL_DISPATCH'}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'element_tag'}; {'id': '306', 'type': 'argument_list', 'children': ['307']}; {'id': '307', 'type': 'keyword_argument', 'children': ['308', '309']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '310', 'type': 'elif_clause', 'children': ['311', '314']}; {'id': '311', 'type': 'comparison_operator', 'children': ['312', '313'], 'value': '!='}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '313', 'type': 'string', 'children': [], 'value': "''"}; {'id': '314', 'type': 'block', 'children': ['315']}; {'id': '315', 'type': 'expression_statement', 'children': ['316']}; {'id': '316', 'type': 'assignment', 'children': ['317', '318']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'untl_element'}; {'id': '318', 'type': 'call', 'children': ['319', '322']}; {'id': '319', 'type': 'subscript', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'PYUNTL_DISPATCH'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'element_tag'}; {'id': '322', 'type': 'argument_list', 'children': ['323']}; {'id': '323', 'type': 'keyword_argument', 'children': ['324', '325']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '326', 'type': 'elif_clause', 'children': ['327', '333']}; {'id': '327', 'type': 'comparison_operator', 'children': ['328', '332'], 'value': '>'}; {'id': '328', 'type': 'call', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '330', 'type': 'argument_list', 'children': ['331']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'child_list'}; {'id': '332', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '333', 'type': 'block', 'children': ['334']}; {'id': '334', 'type': 'expression_statement', 'children': ['335']}; {'id': '335', 'type': 'assignment', 'children': ['336', '337']}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'untl_element'}; {'id': '337', 'type': 'call', 'children': ['338', '341']}; {'id': '338', 'type': 'subscript', 'children': ['339', '340']}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'PYUNTL_DISPATCH'}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'element_tag'}; {'id': '341', 'type': 'argument_list', 'children': []}; {'id': '342', 'type': 'if_statement', 'children': ['343', '353']}; {'id': '343', 'type': 'boolean_operator', 'children': ['344', '350'], 'value': 'and'}; {'id': '344', 'type': 'comparison_operator', 'children': ['345', '349'], 'value': '>'}; {'id': '345', 'type': 'call', 'children': ['346', '347']}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '347', 'type': 'argument_list', 'children': ['348']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'child_list'}; {'id': '349', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '350', 'type': 'comparison_operator', 'children': ['351', '352'], 'value': 'is'}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'untl_element'}; {'id': '352', 'type': 'None', 'children': []}; {'id': '353', 'type': 'block', 'children': ['354']}; {'id': '354', 'type': 'for_statement', 'children': ['355', '356', '357']}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'child_list'}; {'id': '357', 'type': 'block', 'children': ['358']}; {'id': '358', 'type': 'expression_statement', 'children': ['359']}; {'id': '359', 'type': 'call', 'children': ['360', '363']}; {'id': '360', 'type': 'attribute', 'children': ['361', '362']}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'untl_element'}; {'id': '362', 'type': 'identifier', 'children': [], 'value': 'add_child'}; {'id': '363', 'type': 'argument_list', 'children': ['364']}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '365', 'type': 'if_statement', 'children': ['366', '369']}; {'id': '366', 'type': 'comparison_operator', 'children': ['367', '368'], 'value': 'is'}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'untl_element'}; {'id': '368', 'type': 'None', 'children': []}; {'id': '369', 'type': 'block', 'children': ['370']}; {'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': 'root_element'}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'add_child'}; {'id': '375', 'type': 'argument_list', 'children': ['376']}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'untl_element'}; {'id': '377', 'type': 'return_statement', 'children': ['378']}; {'id': '378', 'type': 'call', 'children': ['379', '382']}; {'id': '379', 'type': 'attribute', 'children': ['380', '381']}; {'id': '380', 'type': 'identifier', 'children': [], 'value': 'root_element'}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'create_element_dict'}; {'id': '382', 'type': 'argument_list', 'children': []} | Convert the UNTL posted data to a Python dictionary. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'untlpy2highwirepy'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'untl_elements'}; {'id': '5', 'type': 'dictionary_splat_pattern', 'children': ['6']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '7', 'type': 'block', 'children': ['8', '12', '16', '20', '24', '34', '180', '190']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'highwire_list'}; {'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': 'title'}; {'id': '15', 'type': 'None', 'children': []}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'publisher'}; {'id': '19', 'type': 'None', 'children': []}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'creation'}; {'id': '23', 'type': 'None', 'children': []}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'assignment', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'escape'}; {'id': '27', 'type': 'call', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '31', 'type': 'argument_list', 'children': ['32', '33']}; {'id': '32', 'type': 'string', 'children': [], 'value': "'escape'"}; {'id': '33', 'type': 'False', 'children': []}; {'id': '34', 'type': 'for_statement', 'children': ['35', '36', '39']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'untl_elements'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '39', 'type': 'block', 'children': ['40']}; {'id': '40', 'type': 'if_statement', 'children': ['41', '46']}; {'id': '41', 'type': 'comparison_operator', 'children': ['42', '45'], 'value': 'in'}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'HIGHWIRE_CONVERSION_DISPATCH'}; {'id': '46', 'type': 'block', 'children': ['47', '75']}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'assignment', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'highwire_element'}; {'id': '50', 'type': 'call', 'children': ['51', '56']}; {'id': '51', 'type': 'subscript', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'HIGHWIRE_CONVERSION_DISPATCH'}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '56', 'type': 'argument_list', 'children': ['57', '62', '67', '72']}; {'id': '57', 'type': 'keyword_argument', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '59', 'type': 'attribute', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '62', 'type': 'keyword_argument', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '64', 'type': 'attribute', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '67', 'type': 'keyword_argument', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '72', 'type': 'keyword_argument', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'escape'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'escape'}; {'id': '75', 'type': 'if_statement', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'highwire_element'}; {'id': '77', 'type': 'block', 'children': ['78']}; {'id': '78', 'type': 'if_statement', 'children': ['79', '84', '110', '132', '168']}; {'id': '79', 'type': 'comparison_operator', 'children': ['80', '83'], 'value': '=='}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '83', 'type': 'string', 'children': [], 'value': "'title'"}; {'id': '84', 'type': 'block', 'children': ['85']}; {'id': '85', 'type': 'if_statement', 'children': ['86', '94', '99']}; {'id': '86', 'type': 'boolean_operator', 'children': ['87', '92'], 'value': 'and'}; {'id': '87', 'type': 'comparison_operator', 'children': ['88', '91'], 'value': '!='}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '91', 'type': 'string', 'children': [], 'value': "'officialtitle'"}; {'id': '92', 'type': 'not_operator', 'children': ['93']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'title'}; {'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': 'title'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'highwire_element'}; {'id': '99', 'type': 'elif_clause', 'children': ['100', '105']}; {'id': '100', 'type': 'comparison_operator', 'children': ['101', '104'], 'value': '=='}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '104', 'type': 'string', 'children': [], 'value': "'officialtitle'"}; {'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': 'title'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'highwire_element'}; {'id': '110', 'type': 'elif_clause', 'children': ['111', '116']}; {'id': '111', 'type': 'comparison_operator', 'children': ['112', '115'], 'value': '=='}; {'id': '112', 'type': 'attribute', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '115', 'type': 'string', 'children': [], 'value': "'publisher'"}; {'id': '116', 'type': 'block', 'children': ['117']}; {'id': '117', 'type': 'if_statement', 'children': ['118', '120']}; {'id': '118', 'type': 'not_operator', 'children': ['119']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'publisher'}; {'id': '120', 'type': 'block', 'children': ['121', '125']}; {'id': '121', 'type': 'expression_statement', 'children': ['122']}; {'id': '122', 'type': 'assignment', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'publisher'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'highwire_element'}; {'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': 'highwire_list'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '130', 'type': 'argument_list', 'children': ['131']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'publisher'}; {'id': '132', 'type': 'elif_clause', 'children': ['133', '138']}; {'id': '133', 'type': 'comparison_operator', 'children': ['134', '137'], 'value': '=='}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '137', 'type': 'string', 'children': [], 'value': "'date'"}; {'id': '138', 'type': 'block', 'children': ['139']}; {'id': '139', 'type': 'if_statement', 'children': ['140', '148']}; {'id': '140', 'type': 'boolean_operator', 'children': ['141', '143'], 'value': 'and'}; {'id': '141', 'type': 'not_operator', 'children': ['142']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'creation'}; {'id': '143', 'type': 'comparison_operator', 'children': ['144', '147'], 'value': '=='}; {'id': '144', 'type': 'attribute', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'qualifier'}; {'id': '147', 'type': 'string', 'children': [], 'value': "'creation'"}; {'id': '148', 'type': 'block', 'children': ['149']}; {'id': '149', 'type': 'if_statement', 'children': ['150', '153']}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'highwire_element'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '153', 'type': 'block', 'children': ['154', '158']}; {'id': '154', 'type': 'expression_statement', 'children': ['155']}; {'id': '155', 'type': 'assignment', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'creation'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'highwire_element'}; {'id': '158', 'type': 'if_statement', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'creation'}; {'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': 'highwire_list'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '166', 'type': 'argument_list', 'children': ['167']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'creation'}; {'id': '168', 'type': 'elif_clause', 'children': ['169', '172']}; {'id': '169', 'type': 'attribute', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'highwire_element'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '172', 'type': 'block', 'children': ['173']}; {'id': '173', 'type': 'expression_statement', 'children': ['174']}; {'id': '174', 'type': 'call', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'highwire_list'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '178', 'type': 'argument_list', 'children': ['179']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'highwire_element'}; {'id': '180', 'type': 'if_statement', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '182', 'type': 'block', 'children': ['183']}; {'id': '183', 'type': 'expression_statement', 'children': ['184']}; {'id': '184', 'type': 'call', 'children': ['185', '188']}; {'id': '185', 'type': 'attribute', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'highwire_list'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '188', 'type': 'argument_list', 'children': ['189']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '190', 'type': 'return_statement', 'children': ['191']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'highwire_list'} | Convert a UNTL Python object to a highwire Python object. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'handle_keypress'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'screen'}; {'id': '5', 'type': 'block', 'children': ['6', '8', '25']}; {'id': '6', 'type': 'global_statement', 'children': ['7']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '8', 'type': 'try_statement', 'children': ['9', '22']}; {'id': '9', 'type': 'block', 'children': ['10']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '13', 'type': 'call', 'children': ['14', '21']}; {'id': '14', 'type': 'attribute', 'children': ['15', '20']}; {'id': '15', 'type': 'call', 'children': ['16', '19']}; {'id': '16', 'type': 'attribute', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'screen'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'getkey'}; {'id': '19', 'type': 'argument_list', 'children': []}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '21', 'type': 'argument_list', 'children': []}; {'id': '22', 'type': 'except_clause', 'children': ['23']}; {'id': '23', 'type': 'block', 'children': ['24']}; {'id': '24', 'type': 'return_statement', 'children': []}; {'id': '25', 'type': 'if_statement', 'children': ['26', '31', '36', '50', '75', '109', '133', '168', '193']}; {'id': '26', 'type': 'comparison_operator', 'children': ['27', '28'], 'value': 'in'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '28', 'type': 'tuple', 'children': ['29', '30']}; {'id': '29', 'type': 'string', 'children': [], 'value': '"KEY_DOWN"'}; {'id': '30', 'type': 'string', 'children': [], 'value': '"J"'}; {'id': '31', 'type': 'block', 'children': ['32']}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'call', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'move_selection'}; {'id': '35', 'type': 'argument_list', 'children': []}; {'id': '36', 'type': 'elif_clause', 'children': ['37', '42']}; {'id': '37', 'type': 'comparison_operator', 'children': ['38', '39'], 'value': 'in'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '39', 'type': 'tuple', 'children': ['40', '41']}; {'id': '40', 'type': 'string', 'children': [], 'value': '"KEY_UP"'}; {'id': '41', 'type': 'string', 'children': [], 'value': '"K"'}; {'id': '42', 'type': 'block', 'children': ['43']}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'call', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'move_selection'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'keyword_argument', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'reverse'}; {'id': '49', 'type': 'True', 'children': []}; {'id': '50', 'type': 'elif_clause', 'children': ['51', '56']}; {'id': '51', 'type': 'comparison_operator', 'children': ['52', '53'], 'value': 'in'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '53', 'type': 'tuple', 'children': ['54', '55']}; {'id': '54', 'type': 'string', 'children': [], 'value': '"A"'}; {'id': '55', 'type': 'string', 'children': [], 'value': '"+"'}; {'id': '56', 'type': 'block', 'children': ['57', '62']}; {'id': '57', 'type': 'expression_statement', 'children': ['58']}; {'id': '58', 'type': 'call', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'send_signal'}; {'id': '60', 'type': 'argument_list', 'children': ['61']}; {'id': '61', 'type': 'string', 'children': [], 'value': '"TTIN"'}; {'id': '62', 'type': 'if_statement', 'children': ['63', '66']}; {'id': '63', 'type': 'comparison_operator', 'children': ['64', '65'], 'value': 'in'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '66', 'type': 'block', 'children': ['67']}; {'id': '67', 'type': 'expression_statement', 'children': ['68']}; {'id': '68', 'type': 'assignment', 'children': ['69', '74']}; {'id': '69', 'type': 'subscript', 'children': ['70', '73']}; {'id': '70', 'type': 'subscript', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '73', 'type': 'string', 'children': [], 'value': '"workers"'}; {'id': '74', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '75', 'type': 'elif_clause', 'children': ['76', '81']}; {'id': '76', 'type': 'comparison_operator', 'children': ['77', '78'], 'value': 'in'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '78', 'type': 'tuple', 'children': ['79', '80']}; {'id': '79', 'type': 'string', 'children': [], 'value': '"W"'}; {'id': '80', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '81', 'type': 'block', 'children': ['82']}; {'id': '82', 'type': 'if_statement', 'children': ['83', '86']}; {'id': '83', 'type': 'comparison_operator', 'children': ['84', '85'], 'value': 'in'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '86', 'type': 'block', 'children': ['87']}; {'id': '87', 'type': 'if_statement', 'children': ['88', '95']}; {'id': '88', 'type': 'comparison_operator', 'children': ['89', '94'], 'value': '!='}; {'id': '89', 'type': 'subscript', 'children': ['90', '93']}; {'id': '90', 'type': 'subscript', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '93', 'type': 'string', 'children': [], 'value': '"workers"'}; {'id': '94', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '95', 'type': 'block', 'children': ['96', '101']}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'call', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'send_signal'}; {'id': '99', 'type': 'argument_list', 'children': ['100']}; {'id': '100', 'type': 'string', 'children': [], 'value': '"TTOU"'}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '108']}; {'id': '103', 'type': 'subscript', 'children': ['104', '107']}; {'id': '104', 'type': 'subscript', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '107', 'type': 'string', 'children': [], 'value': '"workers"'}; {'id': '108', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '109', 'type': 'elif_clause', 'children': ['110', '114']}; {'id': '110', 'type': 'comparison_operator', 'children': ['111', '112'], 'value': 'in'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '112', 'type': 'tuple', 'children': ['113']}; {'id': '113', 'type': 'string', 'children': [], 'value': '"R"'}; {'id': '114', 'type': 'block', 'children': ['115']}; {'id': '115', 'type': 'if_statement', 'children': ['116', '119']}; {'id': '116', 'type': 'comparison_operator', 'children': ['117', '118'], 'value': 'in'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '119', 'type': 'block', 'children': ['120', '125', '129']}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'call', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'send_signal'}; {'id': '123', 'type': 'argument_list', 'children': ['124']}; {'id': '124', 'type': 'string', 'children': [], 'value': '"HUP"'}; {'id': '125', 'type': 'delete_statement', 'children': ['126']}; {'id': '126', 'type': 'subscript', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '129', 'type': 'expression_statement', 'children': ['130']}; {'id': '130', 'type': 'assignment', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '132', 'type': 'None', 'children': []}; {'id': '133', 'type': 'elif_clause', 'children': ['134', '138']}; {'id': '134', 'type': 'comparison_operator', 'children': ['135', '136'], 'value': 'in'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '136', 'type': 'tuple', 'children': ['137']}; {'id': '137', 'type': 'string', 'children': [], 'value': '"T"'}; {'id': '138', 'type': 'block', 'children': ['139']}; {'id': '139', 'type': 'for_statement', 'children': ['140', '141', '150']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'pid'}; {'id': '141', 'type': 'call', 'children': ['142', '149']}; {'id': '142', 'type': 'attribute', 'children': ['143', '148']}; {'id': '143', 'type': 'call', 'children': ['144', '147']}; {'id': '144', 'type': 'attribute', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '147', 'type': 'argument_list', 'children': []}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'iterkeys'}; {'id': '149', 'type': 'argument_list', 'children': []}; {'id': '150', 'type': 'block', 'children': ['151', '155', '160', '164']}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'assignment', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'pid'}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'call', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'send_signal'}; {'id': '158', 'type': 'argument_list', 'children': ['159']}; {'id': '159', 'type': 'string', 'children': [], 'value': '"HUP"'}; {'id': '160', 'type': 'delete_statement', 'children': ['161']}; {'id': '161', 'type': 'subscript', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '164', 'type': 'expression_statement', 'children': ['165']}; {'id': '165', 'type': 'assignment', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '167', 'type': 'None', 'children': []}; {'id': '168', 'type': 'elif_clause', 'children': ['169', '174']}; {'id': '169', 'type': 'comparison_operator', 'children': ['170', '171'], 'value': 'in'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '171', 'type': 'tuple', 'children': ['172', '173']}; {'id': '172', 'type': 'string', 'children': [], 'value': '"M"'}; {'id': '173', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '174', 'type': 'block', 'children': ['175']}; {'id': '175', 'type': 'if_statement', 'children': ['176', '179']}; {'id': '176', 'type': 'comparison_operator', 'children': ['177', '178'], 'value': 'in'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '179', 'type': 'block', 'children': ['180', '185', '189']}; {'id': '180', 'type': 'expression_statement', 'children': ['181']}; {'id': '181', 'type': 'call', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'send_signal'}; {'id': '183', 'type': 'argument_list', 'children': ['184']}; {'id': '184', 'type': 'string', 'children': [], 'value': '"QUIT"'}; {'id': '185', 'type': 'delete_statement', 'children': ['186']}; {'id': '186', 'type': 'subscript', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'gunicorns'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'assignment', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'selected_pid'}; {'id': '192', 'type': 'None', 'children': []}; {'id': '193', 'type': 'elif_clause', 'children': ['194', '198']}; {'id': '194', 'type': 'comparison_operator', 'children': ['195', '196'], 'value': 'in'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '196', 'type': 'tuple', 'children': ['197']}; {'id': '197', 'type': 'string', 'children': [], 'value': '"Q"'}; {'id': '198', 'type': 'block', 'children': ['199']}; {'id': '199', 'type': 'raise_statement', 'children': ['200']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'KeyboardInterrupt'} | Check for a key being pressed and handle it if applicable. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'errorhandle'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'resp'}; {'id': '6', 'type': 'block', 'children': ['7', '201']}; {'id': '7', 'type': 'if_statement', 'children': ['8', '13', '141', '190']}; {'id': '8', 'type': 'comparison_operator', 'children': ['9', '12'], 'value': '=='}; {'id': '9', 'type': 'attribute', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '12', 'type': 'string', 'children': [], 'value': "'json'"}; {'id': '13', 'type': 'block', 'children': ['14', '23', '35']}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'parsed'}; {'id': '17', 'type': 'call', 'children': ['18', '21']}; {'id': '18', 'type': 'attribute', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'xmltodict'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '21', 'type': 'argument_list', 'children': ['22']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'resp'}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '26', 'type': 'subscript', 'children': ['27', '32']}; {'id': '27', 'type': 'subscript', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'parsed'}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'RESPONSE_TOKEN'}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'ERROR_TOKEN'}; {'id': '35', 'type': 'if_statement', 'children': ['36', '49', '84']}; {'id': '36', 'type': 'boolean_operator', 'children': ['37', '43'], 'value': 'and'}; {'id': '37', 'type': 'comparison_operator', 'children': ['38', '42'], 'value': 'is'}; {'id': '38', 'type': 'call', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '40', 'type': 'argument_list', 'children': ['41']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '43', 'type': 'comparison_operator', 'children': ['44', '48'], 'value': '>'}; {'id': '44', 'type': 'call', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '48', 'type': 'integer', 'children': [], 'value': '1'}; {'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': 'messages'}; {'id': '53', 'type': 'call', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'string', 'children': [], 'value': '", "'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '57', 'type': 'argument_list', 'children': ['58']}; {'id': '58', 'type': 'list_comprehension', 'children': ['59', '81']}; {'id': '59', 'type': 'call', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '63', 'type': 'argument_list', 'children': ['64']}; {'id': '64', 'type': 'list_comprehension', 'children': ['65', '72']}; {'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': 'format'}; {'id': '69', 'type': 'argument_list', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '72', 'type': 'for_in_clause', 'children': ['73', '76']}; {'id': '73', 'type': 'pattern_list', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '76', 'type': 'call', 'children': ['77', '80']}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '80', 'type': 'argument_list', 'children': []}; {'id': '81', 'type': 'for_in_clause', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '84', 'type': 'else_clause', 'children': ['85']}; {'id': '85', 'type': 'block', 'children': ['86', '106']}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'assignment', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'overlimit'}; {'id': '89', 'type': 'call', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'any'}; {'id': '91', 'type': 'generator_expression', 'children': ['92', '99']}; {'id': '92', 'type': 'comparison_operator', 'children': ['93', '94'], 'value': 'in'}; {'id': '93', 'type': 'string', 'children': [], 'value': "'transaction limit'"}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '98', 'type': 'argument_list', 'children': []}; {'id': '99', 'type': 'for_in_clause', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '101', 'type': 'call', 'children': ['102', '105']}; {'id': '102', 'type': 'attribute', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '105', 'type': 'argument_list', 'children': []}; {'id': '106', 'type': 'if_statement', 'children': ['107', '108', '114']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'overlimit'}; {'id': '108', 'type': 'block', 'children': ['109']}; {'id': '109', 'type': 'raise_statement', 'children': ['110']}; {'id': '110', 'type': 'call', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'APILimitExceeded'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'id': '113', 'type': 'string', 'children': [], 'value': '"This API key has used up its daily quota of calls."'}; {'id': '114', 'type': 'else_clause', 'children': ['115']}; {'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': 'messages'}; {'id': '119', 'type': 'call', 'children': ['120', '123']}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '123', 'type': 'argument_list', 'children': ['124']}; {'id': '124', 'type': 'list_comprehension', 'children': ['125', '132']}; {'id': '125', 'type': 'call', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'string', 'children': [], 'value': '"{}: {}"'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '129', 'type': 'argument_list', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '132', 'type': 'for_in_clause', 'children': ['133', '136']}; {'id': '133', 'type': 'pattern_list', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '136', 'type': 'call', 'children': ['137', '140']}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '140', 'type': 'argument_list', 'children': []}; {'id': '141', 'type': 'elif_clause', 'children': ['142', '147']}; {'id': '142', 'type': 'comparison_operator', 'children': ['143', '146'], 'value': '=='}; {'id': '143', 'type': 'attribute', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '146', 'type': 'string', 'children': [], 'value': "'xml'"}; {'id': '147', 'type': 'block', 'children': ['148', '155', '171']}; {'id': '148', 'type': 'import_statement', 'children': ['149']}; {'id': '149', 'type': 'aliased_import', 'children': ['150', '154']}; {'id': '150', 'type': 'dotted_name', 'children': ['151', '152', '153']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'xml'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'etree'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'ElementTree'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'ET'}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'assignment', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '158', 'type': 'call', 'children': ['159', '167']}; {'id': '159', 'type': 'attribute', 'children': ['160', '166']}; {'id': '160', 'type': 'call', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'ET'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'fromstring'}; {'id': '164', 'type': 'argument_list', 'children': ['165']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'resp'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'findall'}; {'id': '167', 'type': 'argument_list', 'children': ['168']}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'ERROR_TOKEN'}; {'id': '171', 'type': 'expression_statement', 'children': ['172']}; {'id': '172', 'type': 'assignment', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'messages'}; {'id': '174', 'type': 'call', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'string', 'children': [], 'value': '", "'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '178', 'type': 'generator_expression', 'children': ['179', '187']}; {'id': '179', 'type': 'attribute', 'children': ['180', '186']}; {'id': '180', 'type': 'call', 'children': ['181', '184']}; {'id': '181', 'type': 'attribute', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'err'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'find'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'string', 'children': [], 'value': "'msg'"}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '187', 'type': 'for_in_clause', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'err'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '190', 'type': 'else_clause', 'children': ['191']}; {'id': '191', 'type': 'block', 'children': ['192']}; {'id': '192', 'type': 'raise_statement', 'children': ['193']}; {'id': '193', 'type': 'call', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '195', 'type': 'argument_list', 'children': ['196']}; {'id': '196', 'type': 'binary_operator', 'children': ['197', '198'], 'value': '%'}; {'id': '197', 'type': 'string', 'children': [], 'value': '"Invalid API response format specified: {}."'}; {'id': '198', 'type': 'attribute', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '201', 'type': 'raise_statement', 'children': ['202']}; {'id': '202', 'type': 'call', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'BustimeError'}; {'id': '204', 'type': 'argument_list', 'children': ['205']}; {'id': '205', 'type': 'call', 'children': ['206', '209']}; {'id': '206', 'type': 'attribute', 'children': ['207', '208']}; {'id': '207', 'type': 'string', 'children': [], 'value': '"API returned: {}"'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '209', 'type': 'argument_list', 'children': ['210']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'messages'} | Parse API error responses and raise appropriate exceptions. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'cleanup'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'searchstring'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '8', 'type': 'False', 'children': []}; {'id': '9', 'type': 'block', 'children': ['10', '16', '27', '68', '75', '83', '89', '101', '105', '109', '118', '128', '146', '160', '170', '181', '222', '228', '234', '261', '267', '292', '296', '305', '328']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'branches_'}; {'id': '19', 'type': 'call', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '21', 'type': 'argument_list', 'children': ['22']}; {'id': '22', 'type': 'call', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'find'}; {'id': '24', 'type': 'argument_list', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'searchstring'}; {'id': '27', 'type': 'if_statement', 'children': ['28', '30', '36']}; {'id': '28', 'type': 'not_operator', 'children': ['29']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'branches_'}; {'id': '30', 'type': 'block', 'children': ['31']}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'call', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'error_out'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'string', 'children': [], 'value': '"No branches found"'}; {'id': '36', 'type': 'elif_clause', 'children': ['37', '43']}; {'id': '37', 'type': 'comparison_operator', 'children': ['38', '42'], 'value': '>'}; {'id': '38', 'type': 'call', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '40', 'type': 'argument_list', 'children': ['41']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'branches_'}; {'id': '42', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '43', 'type': 'block', 'children': ['44']}; {'id': '44', 'type': 'expression_statement', 'children': ['45']}; {'id': '45', 'type': 'call', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'error_out'}; {'id': '47', 'type': 'argument_list', 'children': ['48']}; {'id': '48', 'type': 'call', 'children': ['49', '52']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'string', 'children': [], 'value': '"More than one branch found.{}"'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'format'}; {'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': '"\\n\\t"'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '57', 'type': 'argument_list', 'children': ['58']}; {'id': '58', 'type': 'binary_operator', 'children': ['59', '61'], 'value': '+'}; {'id': '59', 'type': 'list', 'children': ['60'], 'value': '[""]'}; {'id': '60', 'type': 'string', 'children': [], 'value': '""'}; {'id': '61', 'type': 'list_comprehension', 'children': ['62', '65']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '65', 'type': 'for_in_clause', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'branches_'}; {'id': '68', 'type': 'assert_statement', 'children': ['69']}; {'id': '69', 'type': 'comparison_operator', 'children': ['70', '74'], 'value': '=='}; {'id': '70', 'type': 'call', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'branches_'}; {'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': 'branch_name'}; {'id': '78', 'type': 'attribute', 'children': ['79', '82']}; {'id': '79', 'type': 'subscript', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'branches_'}; {'id': '81', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '83', 'type': 'expression_statement', 'children': ['84']}; {'id': '84', 'type': 'assignment', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'active_branch'}; {'id': '86', 'type': 'attribute', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'active_branch'}; {'id': '89', 'type': 'if_statement', 'children': ['90', '95']}; {'id': '90', 'type': 'comparison_operator', 'children': ['91', '92'], 'value': '=='}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'active_branch'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '95', 'type': 'block', 'children': ['96']}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'call', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'error_out'}; {'id': '99', 'type': 'argument_list', 'children': ['100']}; {'id': '100', 'type': 'string', 'children': [], 'value': '"Can\'t clean up the current active branch."'}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'upstream_remote'}; {'id': '104', 'type': 'None', 'children': []}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'assignment', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'fork_remote'}; {'id': '108', 'type': 'None', 'children': []}; {'id': '109', 'type': 'expression_statement', 'children': ['110']}; {'id': '110', 'type': 'assignment', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '112', 'type': 'call', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '114', 'type': 'argument_list', 'children': ['115']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'configfile'}; {'id': '118', 'type': 'expression_statement', 'children': ['119']}; {'id': '119', 'type': 'assignment', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'origin_name'}; {'id': '121', 'type': 'call', 'children': ['122', '125']}; {'id': '122', 'type': 'attribute', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '125', 'type': 'argument_list', 'children': ['126', '127']}; {'id': '126', 'type': 'string', 'children': [], 'value': '"ORIGIN_NAME"'}; {'id': '127', 'type': 'string', 'children': [], 'value': '"origin"'}; {'id': '128', 'type': 'for_statement', 'children': ['129', '130', '133']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'remote'}; {'id': '130', 'type': 'attribute', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'remotes'}; {'id': '133', 'type': 'block', 'children': ['134']}; {'id': '134', 'type': 'if_statement', 'children': ['135', '140']}; {'id': '135', 'type': 'comparison_operator', 'children': ['136', '139'], 'value': '=='}; {'id': '136', 'type': 'attribute', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'remote'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'origin_name'}; {'id': '140', 'type': 'block', 'children': ['141', '145']}; {'id': '141', 'type': 'expression_statement', 'children': ['142']}; {'id': '142', 'type': 'assignment', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'upstream_remote'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'remote'}; {'id': '145', 'type': 'break_statement', 'children': []}; {'id': '146', 'type': 'if_statement', 'children': ['147', '149']}; {'id': '147', 'type': 'not_operator', 'children': ['148']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'upstream_remote'}; {'id': '149', 'type': 'block', 'children': ['150']}; {'id': '150', 'type': 'expression_statement', 'children': ['151']}; {'id': '151', 'type': 'call', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'error_out'}; {'id': '153', 'type': 'argument_list', 'children': ['154']}; {'id': '154', 'type': 'call', 'children': ['155', '158']}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'string', 'children': [], 'value': '"No remote called {!r} found"'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '158', 'type': 'argument_list', 'children': ['159']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'origin_name'}; {'id': '160', 'type': 'expression_statement', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '169']}; {'id': '162', 'type': 'attribute', 'children': ['163', '168']}; {'id': '163', 'type': 'attribute', 'children': ['164', '167']}; {'id': '164', 'type': 'attribute', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'heads'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'master'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'checkout'}; {'id': '169', 'type': 'argument_list', 'children': []}; {'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': 'upstream_remote'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'pull'}; {'id': '175', 'type': 'argument_list', 'children': ['176']}; {'id': '176', 'type': 'attribute', 'children': ['177', '180']}; {'id': '177', 'type': 'attribute', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'heads'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'master'}; {'id': '181', 'type': 'expression_statement', 'children': ['182']}; {'id': '182', 'type': 'assignment', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'merged_branches'}; {'id': '184', 'type': 'list_comprehension', 'children': ['185', '190', '204']}; {'id': '185', 'type': 'call', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '189', 'type': 'argument_list', 'children': []}; {'id': '190', 'type': 'for_in_clause', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '192', 'type': 'call', 'children': ['193', '203']}; {'id': '193', 'type': 'attribute', 'children': ['194', '202']}; {'id': '194', 'type': 'call', 'children': ['195', '200']}; {'id': '195', 'type': 'attribute', 'children': ['196', '199']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'git'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'branch'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'string', 'children': [], 'value': '"--merged"'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'splitlines'}; {'id': '203', 'type': 'argument_list', 'children': []}; {'id': '204', 'type': 'if_clause', 'children': ['205']}; {'id': '205', 'type': 'boolean_operator', 'children': ['206', '211'], 'value': 'and'}; {'id': '206', 'type': 'call', 'children': ['207', '210']}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '210', 'type': 'argument_list', 'children': []}; {'id': '211', 'type': 'not_operator', 'children': ['212']}; {'id': '212', 'type': 'call', 'children': ['213', '220']}; {'id': '213', 'type': 'attribute', 'children': ['214', '219']}; {'id': '214', 'type': 'call', 'children': ['215', '218']}; {'id': '215', 'type': 'attribute', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '218', 'type': 'argument_list', 'children': []}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '220', 'type': 'argument_list', 'children': ['221']}; {'id': '221', 'type': 'string', 'children': [], 'value': '"*"'}; {'id': '222', 'type': 'expression_statement', 'children': ['223']}; {'id': '223', 'type': 'assignment', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'was_merged'}; {'id': '225', 'type': 'comparison_operator', 'children': ['226', '227'], 'value': 'in'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'merged_branches'}; {'id': '228', 'type': 'expression_statement', 'children': ['229']}; {'id': '229', 'type': 'assignment', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'certain'}; {'id': '231', 'type': 'boolean_operator', 'children': ['232', '233'], 'value': 'or'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'was_merged'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '234', 'type': 'if_statement', 'children': ['235', '237']}; {'id': '235', 'type': 'not_operator', 'children': ['236']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'certain'}; {'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': 'certain'}; {'id': '241', 'type': '()', 'children': ['242']}; {'id': '242', 'type': 'comparison_operator', 'children': ['243', '260'], 'value': '!='}; {'id': '243', 'type': 'call', 'children': ['244', '259']}; {'id': '244', 'type': 'attribute', 'children': ['245', '258']}; {'id': '245', 'type': 'call', 'children': ['246', '257']}; {'id': '246', 'type': 'attribute', 'children': ['247', '256']}; {'id': '247', 'type': 'call', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'input'}; {'id': '249', 'type': 'argument_list', 'children': ['250']}; {'id': '250', 'type': 'call', 'children': ['251', '254']}; {'id': '251', 'type': 'attribute', 'children': ['252', '253']}; {'id': '252', 'type': 'string', 'children': [], 'value': '"Are you certain {} is actually merged? [Y/n] "'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '254', 'type': 'argument_list', 'children': ['255']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '257', 'type': 'argument_list', 'children': []}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '259', 'type': 'argument_list', 'children': []}; {'id': '260', 'type': 'string', 'children': [], 'value': '"n"'}; {'id': '261', 'type': 'if_statement', 'children': ['262', '264']}; {'id': '262', 'type': 'not_operator', 'children': ['263']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'certain'}; {'id': '264', 'type': 'block', 'children': ['265']}; {'id': '265', 'type': 'return_statement', 'children': ['266']}; {'id': '266', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '267', 'type': 'if_statement', 'children': ['268', '269', '280']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'was_merged'}; {'id': '269', 'type': 'block', 'children': ['270']}; {'id': '270', 'type': 'expression_statement', 'children': ['271']}; {'id': '271', 'type': 'call', 'children': ['272', '277']}; {'id': '272', 'type': 'attribute', 'children': ['273', '276']}; {'id': '273', 'type': 'attribute', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'git'}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'branch'}; {'id': '277', 'type': 'argument_list', 'children': ['278', '279']}; {'id': '278', 'type': 'string', 'children': [], 'value': '"-d"'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '280', 'type': 'else_clause', 'children': ['281']}; {'id': '281', 'type': 'block', 'children': ['282']}; {'id': '282', 'type': 'expression_statement', 'children': ['283']}; {'id': '283', 'type': 'call', 'children': ['284', '289']}; {'id': '284', 'type': 'attribute', 'children': ['285', '288']}; {'id': '285', 'type': 'attribute', 'children': ['286', '287']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'git'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'branch'}; {'id': '289', 'type': 'argument_list', 'children': ['290', '291']}; {'id': '290', 'type': 'string', 'children': [], 'value': '"-D"'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '292', 'type': 'expression_statement', 'children': ['293']}; {'id': '293', 'type': 'assignment', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'fork_remote'}; {'id': '295', 'type': 'None', 'children': []}; {'id': '296', 'type': 'expression_statement', 'children': ['297']}; {'id': '297', 'type': 'assignment', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '299', 'type': 'call', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '301', 'type': 'argument_list', 'children': ['302']}; {'id': '302', 'type': 'attribute', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'configfile'}; {'id': '305', 'type': 'for_statement', 'children': ['306', '307', '310']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'remote'}; {'id': '307', 'type': 'attribute', 'children': ['308', '309']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'remotes'}; {'id': '310', 'type': 'block', 'children': ['311']}; {'id': '311', 'type': 'if_statement', 'children': ['312', '322']}; {'id': '312', 'type': 'comparison_operator', 'children': ['313', '316'], 'value': '=='}; {'id': '313', 'type': 'attribute', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'remote'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '316', 'type': 'call', 'children': ['317', '320']}; {'id': '317', 'type': 'attribute', 'children': ['318', '319']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '320', 'type': 'argument_list', 'children': ['321']}; {'id': '321', 'type': 'string', 'children': [], 'value': '"FORK_NAME"'}; {'id': '322', 'type': 'block', 'children': ['323', '327']}; {'id': '323', 'type': 'expression_statement', 'children': ['324']}; {'id': '324', 'type': 'assignment', 'children': ['325', '326']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'fork_remote'}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'remote'}; {'id': '327', 'type': 'break_statement', 'children': []}; {'id': '328', 'type': 'if_statement', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'fork_remote'}; {'id': '330', 'type': 'block', 'children': ['331', '340']}; {'id': '331', 'type': 'expression_statement', 'children': ['332']}; {'id': '332', 'type': 'call', 'children': ['333', '336']}; {'id': '333', 'type': 'attribute', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'fork_remote'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'push'}; {'id': '336', 'type': 'argument_list', 'children': ['337']}; {'id': '337', 'type': 'binary_operator', 'children': ['338', '339'], 'value': '+'}; {'id': '338', 'type': 'string', 'children': [], 'value': '":"'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'branch_name'}; {'id': '340', 'type': 'expression_statement', 'children': ['341']}; {'id': '341', 'type': 'call', 'children': ['342', '343']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'info_out'}; {'id': '343', 'type': 'argument_list', 'children': ['344']}; {'id': '344', 'type': 'string', 'children': [], 'value': '"Remote branch on fork deleted too."'} | Deletes a found branch locally and remotely. |
{'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': 'xml_file'}; {'id': '6', 'type': 'block', 'children': ['7', '9', '13', '34', '337']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'string', 'children': [], 'value': '"Get a list of parsed recipes from BeerXML input"'}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'assignment', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'recipes'}; {'id': '12', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '13', 'type': 'with_statement', 'children': ['14', '24']}; {'id': '14', 'type': 'with_clause', 'children': ['15']}; {'id': '15', 'type': 'with_item', 'children': ['16']}; {'id': '16', 'type': 'as_pattern', 'children': ['17', '22']}; {'id': '17', 'type': 'call', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '19', 'type': 'argument_list', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'xml_file'}; {'id': '21', 'type': 'string', 'children': [], 'value': '"rt"'}; {'id': '22', 'type': 'as_pattern_target', 'children': ['23']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'f'}; {'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': 'tree'}; {'id': '28', 'type': 'call', 'children': ['29', '32']}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'ElementTree'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '34', 'type': 'for_statement', 'children': ['35', '36', '41']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'recipeNode'}; {'id': '36', 'type': 'call', 'children': ['37', '40']}; {'id': '37', 'type': 'attribute', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'iter'}; {'id': '40', 'type': 'argument_list', 'children': []}; {'id': '41', 'type': 'block', 'children': ['42', '55', '61', '68']}; {'id': '42', 'type': 'if_statement', 'children': ['43', '53']}; {'id': '43', 'type': 'comparison_operator', 'children': ['44', '52'], 'value': '!='}; {'id': '44', 'type': 'call', 'children': ['45', '48']}; {'id': '45', 'type': 'attribute', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'to_lower'}; {'id': '48', 'type': 'argument_list', 'children': ['49']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'recipeNode'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '52', 'type': 'string', 'children': [], 'value': '"recipe"'}; {'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': 'recipe'}; {'id': '58', 'type': 'call', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'Recipe'}; {'id': '60', 'type': 'argument_list', 'children': []}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'call', 'children': ['63', '66']}; {'id': '63', 'type': 'attribute', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'recipes'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '66', 'type': 'argument_list', 'children': ['67']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'recipe'}; {'id': '68', 'type': 'for_statement', 'children': ['69', '70', '74']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'recipeProperty'}; {'id': '70', 'type': 'call', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'recipeNode'}; {'id': '74', 'type': 'block', 'children': ['75', '86']}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '78', 'type': 'call', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'to_lower'}; {'id': '82', 'type': 'argument_list', 'children': ['83']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'recipeProperty'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '86', 'type': 'if_statement', 'children': ['87', '90', '121', '156', '191', '226', '251', '327']}; {'id': '87', 'type': 'comparison_operator', 'children': ['88', '89'], 'value': '=='}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '89', 'type': 'string', 'children': [], 'value': '"fermentables"'}; {'id': '90', 'type': 'block', 'children': ['91']}; {'id': '91', 'type': 'for_statement', 'children': ['92', '93', '97']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'fermentable_node'}; {'id': '93', 'type': 'call', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '95', 'type': 'argument_list', 'children': ['96']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'recipeProperty'}; {'id': '97', 'type': 'block', 'children': ['98', '104', '112']}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'assignment', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'fermentable'}; {'id': '101', 'type': 'call', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'Fermentable'}; {'id': '103', 'type': 'argument_list', 'children': []}; {'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': 'self'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'nodes_to_object'}; {'id': '109', 'type': 'argument_list', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'fermentable_node'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'fermentable'}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'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': 'recipe'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'fermentables'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '119', 'type': 'argument_list', 'children': ['120']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'fermentable'}; {'id': '121', 'type': 'elif_clause', 'children': ['122', '125']}; {'id': '122', 'type': 'comparison_operator', 'children': ['123', '124'], 'value': '=='}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '124', 'type': 'string', 'children': [], 'value': '"yeasts"'}; {'id': '125', 'type': 'block', 'children': ['126']}; {'id': '126', 'type': 'for_statement', 'children': ['127', '128', '132']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'yeast_node'}; {'id': '128', 'type': 'call', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '130', 'type': 'argument_list', 'children': ['131']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'recipeProperty'}; {'id': '132', 'type': 'block', 'children': ['133', '139', '147']}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'assignment', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'yeast'}; {'id': '136', 'type': 'call', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'Yeast'}; {'id': '138', 'type': 'argument_list', 'children': []}; {'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': 'self'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'nodes_to_object'}; {'id': '144', 'type': 'argument_list', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'yeast_node'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'yeast'}; {'id': '147', 'type': 'expression_statement', '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': 'recipe'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'yeasts'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '154', 'type': 'argument_list', 'children': ['155']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'yeast'}; {'id': '156', 'type': 'elif_clause', 'children': ['157', '160']}; {'id': '157', 'type': 'comparison_operator', 'children': ['158', '159'], 'value': '=='}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '159', 'type': 'string', 'children': [], 'value': '"hops"'}; {'id': '160', 'type': 'block', 'children': ['161']}; {'id': '161', 'type': 'for_statement', 'children': ['162', '163', '167']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'hop_node'}; {'id': '163', 'type': 'call', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'recipeProperty'}; {'id': '167', 'type': 'block', 'children': ['168', '174', '182']}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'assignment', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'hop'}; {'id': '171', 'type': 'call', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'Hop'}; {'id': '173', 'type': 'argument_list', 'children': []}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'call', 'children': ['176', '179']}; {'id': '176', 'type': 'attribute', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'nodes_to_object'}; {'id': '179', 'type': 'argument_list', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'hop_node'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'hop'}; {'id': '182', 'type': 'expression_statement', 'children': ['183']}; {'id': '183', 'type': 'call', 'children': ['184', '189']}; {'id': '184', 'type': 'attribute', 'children': ['185', '188']}; {'id': '185', 'type': 'attribute', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'recipe'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'hops'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '189', 'type': 'argument_list', 'children': ['190']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'hop'}; {'id': '191', 'type': 'elif_clause', 'children': ['192', '195']}; {'id': '192', 'type': 'comparison_operator', 'children': ['193', '194'], 'value': '=='}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '194', 'type': 'string', 'children': [], 'value': '"miscs"'}; {'id': '195', 'type': 'block', 'children': ['196']}; {'id': '196', 'type': 'for_statement', 'children': ['197', '198', '202']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'misc_node'}; {'id': '198', 'type': 'call', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'recipeProperty'}; {'id': '202', 'type': 'block', 'children': ['203', '209', '217']}; {'id': '203', 'type': 'expression_statement', 'children': ['204']}; {'id': '204', 'type': 'assignment', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'misc'}; {'id': '206', 'type': 'call', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'Misc'}; {'id': '208', 'type': 'argument_list', 'children': []}; {'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': 'self'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'nodes_to_object'}; {'id': '214', 'type': 'argument_list', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'misc_node'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'misc'}; {'id': '217', 'type': 'expression_statement', 'children': ['218']}; {'id': '218', 'type': 'call', 'children': ['219', '224']}; {'id': '219', 'type': 'attribute', 'children': ['220', '223']}; {'id': '220', 'type': 'attribute', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'recipe'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'miscs'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '224', 'type': 'argument_list', 'children': ['225']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'misc'}; {'id': '226', 'type': 'elif_clause', 'children': ['227', '230']}; {'id': '227', 'type': 'comparison_operator', 'children': ['228', '229'], 'value': '=='}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '229', 'type': 'string', 'children': [], 'value': '"style"'}; {'id': '230', 'type': 'block', 'children': ['231', '237', '243']}; {'id': '231', 'type': 'expression_statement', 'children': ['232']}; {'id': '232', 'type': 'assignment', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '234', 'type': 'call', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'Style'}; {'id': '236', 'type': 'argument_list', 'children': []}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'assignment', 'children': ['239', '242']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'recipe'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '243', 'type': 'expression_statement', 'children': ['244']}; {'id': '244', 'type': 'call', 'children': ['245', '248']}; {'id': '245', 'type': 'attribute', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'nodes_to_object'}; {'id': '248', 'type': 'argument_list', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'recipeProperty'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '251', 'type': 'elif_clause', 'children': ['252', '255']}; {'id': '252', 'type': 'comparison_operator', 'children': ['253', '254'], 'value': '=='}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '254', 'type': 'string', 'children': [], 'value': '"mash"'}; {'id': '255', 'type': 'block', 'children': ['256']}; {'id': '256', 'type': 'for_statement', 'children': ['257', '258', '262']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'mash_node'}; {'id': '258', 'type': 'call', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '260', 'type': 'argument_list', 'children': ['261']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'recipeProperty'}; {'id': '262', 'type': 'block', 'children': ['263', '269', '275']}; {'id': '263', 'type': 'expression_statement', 'children': ['264']}; {'id': '264', 'type': 'assignment', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'mash'}; {'id': '266', 'type': 'call', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'Mash'}; {'id': '268', 'type': 'argument_list', 'children': []}; {'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': 'recipe'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'mash'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'mash'}; {'id': '275', 'type': 'if_statement', 'children': ['276', '286', '317']}; {'id': '276', 'type': 'comparison_operator', 'children': ['277', '285'], 'value': '=='}; {'id': '277', 'type': 'call', 'children': ['278', '281']}; {'id': '278', 'type': 'attribute', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'to_lower'}; {'id': '281', 'type': 'argument_list', 'children': ['282']}; {'id': '282', 'type': 'attribute', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'mash_node'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '285', 'type': 'string', 'children': [], 'value': '"mash_steps"'}; {'id': '286', 'type': 'block', 'children': ['287']}; {'id': '287', 'type': 'for_statement', 'children': ['288', '289', '293']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'mash_step_node'}; {'id': '289', 'type': 'call', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '291', 'type': 'argument_list', 'children': ['292']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'mash_node'}; {'id': '293', 'type': 'block', 'children': ['294', '300', '308']}; {'id': '294', 'type': 'expression_statement', 'children': ['295']}; {'id': '295', 'type': 'assignment', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'mash_step'}; {'id': '297', 'type': 'call', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'MashStep'}; {'id': '299', 'type': 'argument_list', 'children': []}; {'id': '300', 'type': 'expression_statement', 'children': ['301']}; {'id': '301', 'type': 'call', 'children': ['302', '305']}; {'id': '302', 'type': 'attribute', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'nodes_to_object'}; {'id': '305', 'type': 'argument_list', 'children': ['306', '307']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'mash_step_node'}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'mash_step'}; {'id': '308', 'type': 'expression_statement', 'children': ['309']}; {'id': '309', 'type': 'call', 'children': ['310', '315']}; {'id': '310', 'type': 'attribute', 'children': ['311', '314']}; {'id': '311', 'type': 'attribute', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'mash'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'steps'}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '315', 'type': 'argument_list', 'children': ['316']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'mash_step'}; {'id': '317', 'type': 'else_clause', 'children': ['318']}; {'id': '318', 'type': 'block', 'children': ['319']}; {'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': 'nodes_to_object'}; {'id': '324', 'type': 'argument_list', 'children': ['325', '326']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'mash_node'}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'mash'}; {'id': '327', 'type': 'else_clause', 'children': ['328']}; {'id': '328', 'type': 'block', 'children': ['329']}; {'id': '329', 'type': 'expression_statement', 'children': ['330']}; {'id': '330', 'type': 'call', 'children': ['331', '334']}; {'id': '331', 'type': 'attribute', 'children': ['332', '333']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'node_to_object'}; {'id': '334', 'type': 'argument_list', 'children': ['335', '336']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'recipeProperty'}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'recipe'}; {'id': '337', 'type': 'return_statement', 'children': ['338']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'recipes'} | Get a list of parsed recipes from BeerXML input |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_parse_extra'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'fp'}; {'id': '6', 'type': 'block', 'children': ['7', '11', '15', '22', '146']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'comment'}; {'id': '10', 'type': 'string', 'children': [], 'value': "''"}; {'id': '11', 'type': 'expression_statement', 'children': ['12']}; {'id': '12', 'type': 'assignment', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '14', 'type': 'string', 'children': [], 'value': "''"}; {'id': '15', 'type': 'expression_statement', 'children': ['16']}; {'id': '16', 'type': 'call', 'children': ['17', '20']}; {'id': '17', 'type': 'attribute', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'fp'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'seek'}; {'id': '20', 'type': 'argument_list', 'children': ['21']}; {'id': '21', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '22', 'type': 'for_statement', 'children': ['23', '24', '25']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'fp'}; {'id': '25', 'type': 'block', 'children': ['26', '34', '46', '142']}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'assignment', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '29', 'type': 'call', 'children': ['30', '33']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'rstrip'}; {'id': '33', 'type': 'argument_list', 'children': []}; {'id': '34', 'type': 'if_statement', 'children': ['35', '37']}; {'id': '35', 'type': 'not_operator', 'children': ['36']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '37', 'type': 'block', 'children': ['38', '45']}; {'id': '38', 'type': 'if_statement', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'comment'}; {'id': '40', 'type': 'block', 'children': ['41']}; {'id': '41', 'type': 'expression_statement', 'children': ['42']}; {'id': '42', 'type': 'augmented_assignment', 'children': ['43', '44'], 'value': '+='}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'comment'}; {'id': '44', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '45', 'type': 'continue_statement', 'children': []}; {'id': '46', 'type': 'if_statement', 'children': ['47', '50', '61', '93']}; {'id': '47', 'type': 'attribute', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '50', 'type': 'ERROR', 'children': ['51', '52', '55']}; {'id': '51', 'type': 'string', 'children': [], 'value': "'\n comment += line + '"}; {'id': '52', 'type': 'ERROR', 'children': ['53', '54']}; {'id': '53', 'type': 'escape_sequence', 'children': [], 'value': '\\n'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'continue'}; {'id': '55', 'type': 'call', 'children': ['56', '59']}; {'id': '56', 'type': 'attribute', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '59', 'type': 'argument_list', 'children': ['60']}; {'id': '60', 'type': 'string', 'children': [], 'value': "'['"}; {'id': '61', 'type': 'block', 'children': ['62', '71', '78']}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '65', 'type': 'call', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '69', 'type': 'argument_list', 'children': ['70']}; {'id': '70', 'type': 'string', 'children': [], 'value': "'[]'"}; {'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': 'self'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': '_add_dot_key'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '78', 'type': 'if_statement', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'comment'}; {'id': '80', 'type': 'block', 'children': ['81']}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '88']}; {'id': '83', 'type': 'subscript', 'children': ['84', '87']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': '_comments'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '88', 'type': 'call', 'children': ['89', '92']}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'comment'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'rstrip'}; {'id': '92', 'type': 'argument_list', 'children': []}; {'id': '93', 'type': 'elif_clause', 'children': ['94', '100']}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'CONFIG_KEY_RE'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '100', 'type': 'block', 'children': ['101', '117', '125']}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '104', 'type': 'call', 'children': ['105', '116']}; {'id': '105', 'type': 'attribute', 'children': ['106', '115']}; {'id': '106', 'type': 'subscript', 'children': ['107', '114']}; {'id': '107', 'type': 'call', 'children': ['108', '111']}; {'id': '108', 'type': 'attribute', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '111', 'type': 'argument_list', 'children': ['112', '113']}; {'id': '112', 'type': 'string', 'children': [], 'value': "'='"}; {'id': '113', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '114', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '116', 'type': 'argument_list', 'children': []}; {'id': '117', 'type': 'expression_statement', 'children': ['118']}; {'id': '118', 'type': 'call', 'children': ['119', '122']}; {'id': '119', 'type': 'attribute', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': '_add_dot_key'}; {'id': '122', 'type': 'argument_list', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '125', 'type': 'if_statement', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'comment'}; {'id': '127', 'type': 'block', 'children': ['128']}; {'id': '128', 'type': 'expression_statement', 'children': ['129']}; {'id': '129', 'type': 'assignment', 'children': ['130', '137']}; {'id': '130', 'type': 'subscript', 'children': ['131', '134']}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': '_comments'}; {'id': '134', 'type': 'tuple', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'section'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '137', 'type': 'call', 'children': ['138', '141']}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'comment'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'rstrip'}; {'id': '141', 'type': 'argument_list', 'children': []}; {'id': '142', 'type': 'expression_statement', 'children': ['143']}; {'id': '143', 'type': 'assignment', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'comment'}; {'id': '145', 'type': 'string', 'children': [], 'value': "''"}; {'id': '146', 'type': 'if_statement', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'comment'}; {'id': '148', 'type': 'block', 'children': ['149']}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'assignment', 'children': ['151', '158']}; {'id': '151', 'type': 'subscript', 'children': ['152', '155']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': '_comments'}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'LAST_COMMENT_KEY'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'comment'} | Parse and store the config comments and create maps for dot notion lookup |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'purge_existing_ovb'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'nova_api'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '6', 'type': 'block', 'children': ['7', '14', '55', '137', '228']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'call', 'children': ['9', '12']}; {'id': '9', 'type': 'attribute', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'LOG'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '12', 'type': 'argument_list', 'children': ['13']}; {'id': '13', 'type': 'string', 'children': [], 'value': "'Cleaning up OVB environment from the tenant.'"}; {'id': '14', 'type': 'for_statement', 'children': ['15', '16', '23']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'server'}; {'id': '16', 'type': 'call', 'children': ['17', '22']}; {'id': '17', 'type': 'attribute', 'children': ['18', '21']}; {'id': '18', 'type': 'attribute', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'nova_api'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'servers'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '22', 'type': 'argument_list', 'children': []}; {'id': '23', 'type': 'block', 'children': ['24', '39']}; {'id': '24', 'type': 'if_statement', 'children': ['25', '32']}; {'id': '25', 'type': 'comparison_operator', 'children': ['26', '29'], 'value': 'in'}; {'id': '26', 'type': 'attribute', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'server'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '29', 'type': 'tuple', 'children': ['30', '31']}; {'id': '30', 'type': 'string', 'children': [], 'value': "'bmc'"}; {'id': '31', 'type': 'string', 'children': [], 'value': "'undercloud'"}; {'id': '32', 'type': 'block', 'children': ['33']}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'call', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'server'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'delete'}; {'id': '38', 'type': 'argument_list', 'children': []}; {'id': '39', 'type': 'if_statement', 'children': ['40', '48']}; {'id': '40', 'type': 'call', 'children': ['41', '46']}; {'id': '41', 'type': 'attribute', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'server'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'string', 'children': [], 'value': "'baremetal_'"}; {'id': '48', 'type': 'block', 'children': ['49']}; {'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': 'server'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'delete'}; {'id': '54', 'type': 'argument_list', 'children': []}; {'id': '55', 'type': 'for_statement', 'children': ['56', '57', '67']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'router'}; {'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': 'neutron'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'list_routers'}; {'id': '63', 'type': 'argument_list', 'children': []}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '65', 'type': 'argument_list', 'children': ['66']}; {'id': '66', 'type': 'string', 'children': [], 'value': "'routers'"}; {'id': '67', 'type': 'block', 'children': ['68', '78']}; {'id': '68', 'type': 'if_statement', 'children': ['69', '76']}; {'id': '69', 'type': 'comparison_operator', 'children': ['70', '73'], 'value': 'not'}; {'id': '70', 'type': 'subscript', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'router'}; {'id': '72', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '73', 'type': 'tuple', 'children': ['74', '75']}; {'id': '74', 'type': 'string', 'children': [], 'value': "'router'"}; {'id': '75', 'type': 'string', 'children': [], 'value': "'bmc_router'"}; {'id': '76', 'type': 'block', 'children': ['77']}; {'id': '77', 'type': 'continue_statement', 'children': []}; {'id': '78', 'type': 'for_statement', 'children': ['79', '80', '90']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'subnet'}; {'id': '80', 'type': 'call', 'children': ['81', '88']}; {'id': '81', 'type': 'attribute', 'children': ['82', '87']}; {'id': '82', 'type': 'call', 'children': ['83', '86']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'list_subnets'}; {'id': '86', 'type': 'argument_list', 'children': []}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '88', 'type': 'argument_list', 'children': ['89']}; {'id': '89', 'type': 'string', 'children': [], 'value': "'subnets'"}; {'id': '90', 'type': 'block', 'children': ['91', '110']}; {'id': '91', 'type': 'if_statement', 'children': ['92', '108']}; {'id': '92', 'type': 'not_operator', 'children': ['93']}; {'id': '93', 'type': '()', 'children': ['94']}; {'id': '94', 'type': 'boolean_operator', 'children': ['95', '103'], 'value': 'or'}; {'id': '95', 'type': 'call', 'children': ['96', '101']}; {'id': '96', 'type': 'attribute', 'children': ['97', '100']}; {'id': '97', 'type': 'subscript', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'subnet'}; {'id': '99', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '101', 'type': 'argument_list', 'children': ['102']}; {'id': '102', 'type': 'string', 'children': [], 'value': "'bmc_eth'"}; {'id': '103', 'type': 'comparison_operator', 'children': ['104', '107'], 'value': '=='}; {'id': '104', 'type': 'subscript', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'subnet'}; {'id': '106', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '107', 'type': 'string', 'children': [], 'value': "'rdo-m-subnet'"}; {'id': '108', 'type': 'block', 'children': ['109']}; {'id': '109', 'type': 'continue_statement', 'children': []}; {'id': '110', 'type': 'try_statement', 'children': ['111', '127']}; {'id': '111', 'type': 'block', 'children': ['112']}; {'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': 'neutron'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'remove_interface_router'}; {'id': '117', 'type': 'argument_list', 'children': ['118', '121']}; {'id': '118', 'type': 'subscript', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'router'}; {'id': '120', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '121', 'type': 'dictionary', 'children': ['122']}; {'id': '122', 'type': 'pair', 'children': ['123', '124']}; {'id': '123', 'type': 'string', 'children': [], 'value': "'subnet_id'"}; {'id': '124', 'type': 'subscript', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'subnet'}; {'id': '126', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '127', 'type': 'except_clause', 'children': ['128', '135']}; {'id': '128', 'type': 'attribute', 'children': ['129', '134']}; {'id': '129', 'type': 'attribute', 'children': ['130', '133']}; {'id': '130', 'type': 'attribute', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'neutronclient'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'common'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'exceptions'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'NotFound'}; {'id': '135', 'type': 'block', 'children': ['136']}; {'id': '136', 'type': 'pass_statement', 'children': []}; {'id': '137', 'type': 'try_statement', 'children': ['138', '224']}; {'id': '138', 'type': 'block', 'children': ['139', '157', '215']}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'bmc_router'}; {'id': '142', 'type': 'subscript', 'children': ['143', '156']}; {'id': '143', 'type': 'call', 'children': ['144', '154']}; {'id': '144', 'type': 'attribute', 'children': ['145', '153']}; {'id': '145', 'type': 'call', 'children': ['146', '149']}; {'id': '146', 'type': 'attribute', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'list_routers'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'keyword_argument', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '152', 'type': 'string', 'children': [], 'value': "'bmc_router'"}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '154', 'type': 'argument_list', 'children': ['155']}; {'id': '155', 'type': 'string', 'children': [], 'value': "'routers'"}; {'id': '156', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '157', 'type': 'for_statement', 'children': ['158', '159', '171']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '159', 'type': 'subscript', 'children': ['160', '170']}; {'id': '160', 'type': 'call', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'list_ports'}; {'id': '164', 'type': 'argument_list', 'children': ['165']}; {'id': '165', 'type': 'keyword_argument', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'device_id'}; {'id': '167', 'type': 'subscript', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'bmc_router'}; {'id': '169', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '170', 'type': 'string', 'children': [], 'value': "'ports'"}; {'id': '171', 'type': 'block', 'children': ['172', '183', '205']}; {'id': '172', 'type': 'if_statement', 'children': ['173', '181']}; {'id': '173', 'type': 'comparison_operator', 'children': ['174', '180'], 'value': '=='}; {'id': '174', 'type': 'call', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '178', 'type': 'argument_list', 'children': ['179']}; {'id': '179', 'type': 'string', 'children': [], 'value': "'device_owner'"}; {'id': '180', 'type': 'string', 'children': [], 'value': "'network:router_gateway'"}; {'id': '181', 'type': 'block', 'children': ['182']}; {'id': '182', 'type': 'continue_statement', 'children': []}; {'id': '183', 'type': 'expression_statement', 'children': ['184']}; {'id': '184', 'type': 'assignment', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '186', 'type': 'dictionary', 'children': ['187', '192', '197']}; {'id': '187', 'type': 'pair', 'children': ['188', '189']}; {'id': '188', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '189', 'type': 'subscript', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'router'}; {'id': '191', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '192', 'type': 'pair', 'children': ['193', '194']}; {'id': '193', 'type': 'string', 'children': [], 'value': "'port_id'"}; {'id': '194', 'type': 'subscript', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '196', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '197', 'type': 'pair', 'children': ['198', '199']}; {'id': '198', 'type': 'string', 'children': [], 'value': "'tenant_id'"}; {'id': '199', 'type': 'call', 'children': ['200', '203']}; {'id': '200', 'type': 'attribute', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'bmc_router'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '203', 'type': 'argument_list', 'children': ['204']}; {'id': '204', 'type': 'string', 'children': [], 'value': "'tenant_id'"}; {'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': 'neutron'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'remove_interface_router'}; {'id': '210', 'type': 'argument_list', 'children': ['211', '214']}; {'id': '211', 'type': 'subscript', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'bmc_router'}; {'id': '213', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '215', 'type': 'expression_statement', 'children': ['216']}; {'id': '216', 'type': 'call', 'children': ['217', '220']}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'delete_router'}; {'id': '220', 'type': 'argument_list', 'children': ['221']}; {'id': '221', 'type': 'subscript', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'bmc_router'}; {'id': '223', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '224', 'type': 'except_clause', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'IndexError'}; {'id': '226', 'type': 'block', 'children': ['227']}; {'id': '227', 'type': 'pass_statement', 'children': []}; {'id': '228', 'type': 'for_statement', 'children': ['229', '230', '235']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '230', 'type': 'call', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '232', 'type': 'argument_list', 'children': ['233', '234']}; {'id': '233', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '234', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '235', 'type': 'block', 'children': ['236']}; {'id': '236', 'type': 'try_statement', 'children': ['237', '372', '395']}; {'id': '237', 'type': 'block', 'children': ['238', '267']}; {'id': '238', 'type': 'for_statement', 'children': ['239', '240', '247']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '240', 'type': 'subscript', 'children': ['241', '246']}; {'id': '241', 'type': 'call', 'children': ['242', '245']}; {'id': '242', 'type': 'attribute', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'list_ports'}; {'id': '245', 'type': 'argument_list', 'children': []}; {'id': '246', 'type': 'string', 'children': [], 'value': "'ports'"}; {'id': '247', 'type': 'block', 'children': ['248']}; {'id': '248', 'type': 'if_statement', 'children': ['249', '257']}; {'id': '249', 'type': 'call', 'children': ['250', '255']}; {'id': '250', 'type': 'attribute', 'children': ['251', '254']}; {'id': '251', 'type': 'subscript', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '253', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '255', 'type': 'argument_list', 'children': ['256']}; {'id': '256', 'type': 'string', 'children': [], 'value': "'_provision'"}; {'id': '257', 'type': 'block', 'children': ['258']}; {'id': '258', 'type': 'expression_statement', 'children': ['259']}; {'id': '259', 'type': 'call', 'children': ['260', '263']}; {'id': '260', 'type': 'attribute', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'delete_port'}; {'id': '263', 'type': 'argument_list', 'children': ['264']}; {'id': '264', 'type': 'subscript', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '266', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '267', 'type': 'for_statement', 'children': ['268', '269', '279']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'net'}; {'id': '269', 'type': 'call', 'children': ['270', '277']}; {'id': '270', 'type': 'attribute', 'children': ['271', '276']}; {'id': '271', 'type': 'call', 'children': ['272', '275']}; {'id': '272', 'type': 'attribute', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'list_networks'}; {'id': '275', 'type': 'argument_list', 'children': []}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '277', 'type': 'argument_list', 'children': ['278']}; {'id': '278', 'type': 'string', 'children': [], 'value': "'networks'"}; {'id': '279', 'type': 'block', 'children': ['280', '292', '363']}; {'id': '280', 'type': 'if_statement', 'children': ['281', '290']}; {'id': '281', 'type': 'not_operator', 'children': ['282']}; {'id': '282', 'type': 'call', 'children': ['283', '288']}; {'id': '283', 'type': 'attribute', 'children': ['284', '287']}; {'id': '284', 'type': 'subscript', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'net'}; {'id': '286', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '288', 'type': 'argument_list', 'children': ['289']}; {'id': '289', 'type': 'string', 'children': [], 'value': "'provision_'"}; {'id': '290', 'type': 'block', 'children': ['291']}; {'id': '291', 'type': 'continue_statement', 'children': []}; {'id': '292', 'type': 'for_statement', 'children': ['293', '294', '306']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '294', 'type': 'subscript', 'children': ['295', '305']}; {'id': '295', 'type': 'call', 'children': ['296', '299']}; {'id': '296', 'type': 'attribute', 'children': ['297', '298']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'list_ports'}; {'id': '299', 'type': 'argument_list', 'children': ['300']}; {'id': '300', 'type': 'keyword_argument', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'network_id'}; {'id': '302', 'type': 'subscript', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'net'}; {'id': '304', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '305', 'type': 'string', 'children': [], 'value': "'ports'"}; {'id': '306', 'type': 'block', 'children': ['307', '318', '339']}; {'id': '307', 'type': 'if_statement', 'children': ['308', '316']}; {'id': '308', 'type': 'comparison_operator', 'children': ['309', '315'], 'value': '=='}; {'id': '309', 'type': 'call', 'children': ['310', '313']}; {'id': '310', 'type': 'attribute', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '313', 'type': 'argument_list', 'children': ['314']}; {'id': '314', 'type': 'string', 'children': [], 'value': "'device_owner'"}; {'id': '315', 'type': 'string', 'children': [], 'value': "'network:router_interface'"}; {'id': '316', 'type': 'block', 'children': ['317']}; {'id': '317', 'type': 'continue_statement', 'children': []}; {'id': '318', 'type': 'try_statement', 'children': ['319', '329']}; {'id': '319', 'type': 'block', 'children': ['320']}; {'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': 'neutron'}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'delete_port'}; {'id': '325', 'type': 'argument_list', 'children': ['326']}; {'id': '326', 'type': 'subscript', 'children': ['327', '328']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '328', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '329', 'type': 'except_clause', 'children': ['330', '337']}; {'id': '330', 'type': 'attribute', 'children': ['331', '336']}; {'id': '331', 'type': 'attribute', 'children': ['332', '335']}; {'id': '332', 'type': 'attribute', 'children': ['333', '334']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'neutronclient'}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'common'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'exceptions'}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'PortNotFoundClient'}; {'id': '337', 'type': 'block', 'children': ['338']}; {'id': '338', 'type': 'pass_statement', 'children': []}; {'id': '339', 'type': 'for_statement', 'children': ['340', '341', '353']}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'subnet'}; {'id': '341', 'type': 'subscript', 'children': ['342', '352']}; {'id': '342', 'type': 'call', 'children': ['343', '346']}; {'id': '343', 'type': 'attribute', 'children': ['344', '345']}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'list_subnets'}; {'id': '346', 'type': 'argument_list', 'children': ['347']}; {'id': '347', 'type': 'keyword_argument', 'children': ['348', '349']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'network_id'}; {'id': '349', 'type': 'subscript', 'children': ['350', '351']}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'net'}; {'id': '351', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '352', 'type': 'string', 'children': [], 'value': "'subnets'"}; {'id': '353', 'type': 'block', 'children': ['354']}; {'id': '354', 'type': 'expression_statement', 'children': ['355']}; {'id': '355', 'type': 'call', 'children': ['356', '359']}; {'id': '356', 'type': 'attribute', 'children': ['357', '358']}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'neutron'}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'delete_subnet'}; {'id': '359', 'type': 'argument_list', 'children': ['360']}; {'id': '360', 'type': 'subscript', 'children': ['361', '362']}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'subnet'}; {'id': '362', 'type': 'string', 'children': [], 'value': "'id'"}; {'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': 'neutron'}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'delete_network'}; {'id': '368', 'type': 'argument_list', 'children': ['369']}; {'id': '369', 'type': 'subscript', 'children': ['370', '371']}; {'id': '370', 'type': 'identifier', 'children': [], 'value': 'net'}; {'id': '371', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '372', 'type': 'except_clause', 'children': ['373', '380']}; {'id': '373', 'type': 'attribute', 'children': ['374', '379']}; {'id': '374', 'type': 'attribute', 'children': ['375', '378']}; {'id': '375', 'type': 'attribute', 'children': ['376', '377']}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'neutronclient'}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'common'}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'exceptions'}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'Conflict'}; {'id': '380', 'type': 'block', 'children': ['381', '388']}; {'id': '381', 'type': 'expression_statement', 'children': ['382']}; {'id': '382', 'type': 'call', 'children': ['383', '386']}; {'id': '383', 'type': 'attribute', 'children': ['384', '385']}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'LOG'}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '386', 'type': 'argument_list', 'children': ['387']}; {'id': '387', 'type': 'string', 'children': [], 'value': "'waiting for all the ports to be freed...'"}; {'id': '388', 'type': 'expression_statement', 'children': ['389']}; {'id': '389', 'type': 'call', 'children': ['390', '393']}; {'id': '390', 'type': 'attribute', 'children': ['391', '392']}; {'id': '391', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '392', 'type': 'identifier', 'children': [], 'value': 'sleep'}; {'id': '393', 'type': 'argument_list', 'children': ['394']}; {'id': '394', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '395', 'type': 'else_clause', 'children': ['396']}; {'id': '396', 'type': 'block', 'children': ['397']}; {'id': '397', 'type': 'return_statement', 'children': []} | Purge any trace of an existing OVB deployment. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'parse_atom_tag_data'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '7', 'type': 'block', 'children': ['8', '10', '16']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'string', 'children': [], 'value': "'''Parse the atom tag data.'''"}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '16', 'type': 'if_statement', 'children': ['17', '20', '22', '168', '204', '256', '277', '310', '328', '349']}; {'id': '17', 'type': 'attribute', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'IsHETATM'}; {'id': '20', 'type': 'block', 'children': ['21']}; {'id': '21', 'type': 'return_statement', 'children': []}; {'id': '22', 'type': 'elif_clause', 'children': ['23', '26']}; {'id': '23', 'type': 'comparison_operator', 'children': ['24', '25'], 'value': '=='}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '25', 'type': 'string', 'children': [], 'value': "'PDBx:atom_site'"}; {'id': '26', 'type': 'block', 'children': ['27', '33', '39', '45']}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'assignment', 'children': ['29', '32']}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': '_BLOCK'}; {'id': '32', 'type': 'None', 'children': []}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'assignment', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'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': 'current_atom_site'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'validate'}; {'id': '44', 'type': 'argument_list', 'children': []}; {'id': '45', 'type': 'if_statement', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'IsATOM'}; {'id': '49', 'type': 'block', 'children': ['50', '65']}; {'id': '50', 'type': 'expression_statement', 'children': ['51']}; {'id': '51', 'type': 'assignment', 'children': ['52', '57']}; {'id': '52', 'type': 'pattern_list', 'children': ['53', '54', '55', '56']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'seqres'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'ResidueAA'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'Residue3AA'}; {'id': '57', 'type': 'call', 'children': ['58', '61']}; {'id': '58', 'type': 'attribute', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'convert_to_residue'}; {'id': '61', 'type': 'argument_list', 'children': ['62']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'modified_residues'}; {'id': '65', 'type': 'if_statement', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '67', 'type': 'block', 'children': ['68']}; {'id': '68', 'type': 'if_statement', 'children': ['69', '80']}; {'id': '69', 'type': 'not_operator', 'children': ['70']}; {'id': '70', 'type': '()', 'children': ['71']}; {'id': '71', 'type': 'boolean_operator', 'children': ['72', '77'], 'value': 'and'}; {'id': '72', 'type': 'comparison_operator', 'children': ['73', '76'], 'value': 'in'}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'pdb_id'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'cases_with_ACE_residues_we_can_ignore'}; {'id': '77', 'type': 'comparison_operator', 'children': ['78', '79'], 'value': '=='}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'Residue3AA'}; {'id': '79', 'type': 'string', 'children': [], 'value': "'ACE'"}; {'id': '80', 'type': 'block', 'children': ['81', '88']}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'full_residue_id'}; {'id': '84', 'type': 'call', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '86', 'type': 'argument_list', 'children': ['87']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '88', 'type': 'if_statement', 'children': ['89', '97', '111']}; {'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': '_residues_read'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '95', 'type': 'argument_list', 'children': ['96']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'full_residue_id'}; {'id': '97', 'type': 'block', 'children': ['98']}; {'id': '98', 'type': 'assert_statement', 'children': ['99']}; {'id': '99', 'type': '()', 'children': ['100']}; {'id': '100', 'type': 'comparison_operator', 'children': ['101', '106'], 'value': '=='}; {'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': '_residues_read'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'full_residue_id'}; {'id': '106', 'type': 'tuple', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'ResidueAA'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'seqres'}; {'id': '111', 'type': 'else_clause', 'children': ['112']}; {'id': '112', 'type': 'block', 'children': ['113', '125', '145', '153']}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '120']}; {'id': '115', 'type': 'subscript', 'children': ['116', '119']}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': '_residues_read'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'full_residue_id'}; {'id': '120', 'type': 'tuple', 'children': ['121', '124']}; {'id': '121', 'type': 'attribute', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'ResidueAA'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'seqres'}; {'id': '125', 'type': 'expression_statement', 'children': ['126']}; {'id': '126', 'type': 'assignment', 'children': ['127', '134']}; {'id': '127', 'type': 'subscript', 'children': ['128', '131']}; {'id': '128', 'type': 'attribute', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': '_residue_map'}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'Chain'}; {'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': '_residue_map'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '140', 'type': 'argument_list', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'Chain'}; {'id': '144', 'type': 'dictionary', 'children': []}; {'id': '145', 'type': 'assert_statement', 'children': ['146']}; {'id': '146', 'type': '()', 'children': ['147']}; {'id': '147', 'type': 'comparison_operator', 'children': ['148', '152'], 'value': '=='}; {'id': '148', 'type': 'call', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '150', 'type': 'argument_list', 'children': ['151']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'seqres'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'int_type'}; {'id': '153', 'type': 'expression_statement', 'children': ['154']}; {'id': '154', 'type': 'assignment', 'children': ['155', '167']}; {'id': '155', 'type': 'subscript', 'children': ['156', '163']}; {'id': '156', 'type': 'subscript', 'children': ['157', '160']}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': '_residue_map'}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'Chain'}; {'id': '163', 'type': 'call', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'seqres'}; {'id': '168', 'type': 'elif_clause', 'children': ['169', '172']}; {'id': '169', 'type': 'comparison_operator', 'children': ['170', '171'], 'value': '=='}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '171', 'type': 'string', 'children': [], 'value': "'PDBx:group_PDB'"}; {'id': '172', 'type': 'block', 'children': ['173']}; {'id': '173', 'type': 'if_statement', 'children': ['174', '177', '184', '195']}; {'id': '174', 'type': 'comparison_operator', 'children': ['175', '176'], 'value': '=='}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '176', 'type': 'string', 'children': [], 'value': "'ATOM'"}; {'id': '177', 'type': 'block', 'children': ['178']}; {'id': '178', 'type': 'expression_statement', 'children': ['179']}; {'id': '179', 'type': 'assignment', 'children': ['180', '183']}; {'id': '180', 'type': 'attribute', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'IsATOM'}; {'id': '183', 'type': 'True', 'children': []}; {'id': '184', 'type': 'elif_clause', 'children': ['185', '188']}; {'id': '185', 'type': 'comparison_operator', 'children': ['186', '187'], 'value': '=='}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '187', 'type': 'string', 'children': [], 'value': "'HETATM'"}; {'id': '188', 'type': 'block', 'children': ['189']}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'assignment', 'children': ['191', '194']}; {'id': '191', 'type': 'attribute', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'IsHETATM'}; {'id': '194', 'type': 'True', 'children': []}; {'id': '195', 'type': 'else_clause', 'children': ['196']}; {'id': '196', 'type': 'block', 'children': ['197']}; {'id': '197', 'type': 'raise_statement', 'children': ['198']}; {'id': '198', 'type': 'call', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'binary_operator', 'children': ['202', '203'], 'value': '%'}; {'id': '202', 'type': 'string', 'children': [], 'value': '"PDBx:group_PDB was expected to be \'ATOM\' or \'HETATM\'. \'%s\' read instead."'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '204', 'type': 'elif_clause', 'children': ['205', '208']}; {'id': '205', 'type': 'comparison_operator', 'children': ['206', '207'], 'value': '=='}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '207', 'type': 'string', 'children': [], 'value': "'PDBx:auth_asym_id'"}; {'id': '208', 'type': 'block', 'children': ['209', '216', '222']}; {'id': '209', 'type': 'assert_statement', 'children': ['210']}; {'id': '210', 'type': '()', 'children': ['211']}; {'id': '211', 'type': 'not_operator', 'children': ['212']}; {'id': '212', 'type': '()', 'children': ['213']}; {'id': '213', 'type': 'attribute', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'PDBChainID'}; {'id': '216', 'type': 'expression_statement', 'children': ['217']}; {'id': '217', 'type': 'assignment', 'children': ['218', '221']}; {'id': '218', 'type': 'attribute', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'PDBChainID'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '222', 'type': 'if_statement', 'children': ['223', '225']}; {'id': '223', 'type': 'not_operator', 'children': ['224']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '225', 'type': 'block', 'children': ['226', '231']}; {'id': '226', 'type': 'assert_statement', 'children': ['227']}; {'id': '227', 'type': '()', 'children': ['228']}; {'id': '228', 'type': 'attribute', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'PDBChainIDIsNull'}; {'id': '231', 'type': 'if_statement', 'children': ['232', '241', '248']}; {'id': '232', 'type': 'comparison_operator', 'children': ['233', '240'], 'value': '=='}; {'id': '233', 'type': 'call', 'children': ['234', '239']}; {'id': '234', 'type': 'attribute', 'children': ['235', '238']}; {'id': '235', 'type': 'attribute', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'pdb_id'}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '239', 'type': 'argument_list', 'children': []}; {'id': '240', 'type': 'string', 'children': [], 'value': "'2MBP'"}; {'id': '241', 'type': 'block', 'children': ['242']}; {'id': '242', 'type': 'expression_statement', 'children': ['243']}; {'id': '243', 'type': 'assignment', 'children': ['244', '247']}; {'id': '244', 'type': 'attribute', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'PDBChainID'}; {'id': '247', 'type': 'string', 'children': [], 'value': "'A'"}; {'id': '248', 'type': 'else_clause', 'children': ['249']}; {'id': '249', 'type': 'block', 'children': ['250']}; {'id': '250', 'type': 'expression_statement', 'children': ['251']}; {'id': '251', 'type': 'assignment', 'children': ['252', '255']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'PDBChainID'}; {'id': '255', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '256', 'type': 'elif_clause', 'children': ['257', '260']}; {'id': '257', 'type': 'comparison_operator', 'children': ['258', '259'], 'value': '=='}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '259', 'type': 'string', 'children': [], 'value': "'PDBx:auth_seq_id'"}; {'id': '260', 'type': 'block', 'children': ['261', '268']}; {'id': '261', 'type': 'assert_statement', 'children': ['262']}; {'id': '262', 'type': '()', 'children': ['263']}; {'id': '263', 'type': 'not_operator', 'children': ['264']}; {'id': '264', 'type': '()', 'children': ['265']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'ATOMResidueID'}; {'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': 'current_atom_site'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'ATOMResidueID'}; {'id': '273', 'type': 'call', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '275', 'type': 'argument_list', 'children': ['276']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '277', 'type': 'elif_clause', 'children': ['278', '281']}; {'id': '278', 'type': 'comparison_operator', 'children': ['279', '280'], 'value': '=='}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '280', 'type': 'string', 'children': [], 'value': '"PDBx:pdbx_PDB_ins_code"'}; {'id': '281', 'type': 'block', 'children': ['282']}; {'id': '282', 'type': 'if_statement', 'children': ['283', '286', '295']}; {'id': '283', 'type': 'attribute', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'ATOMResidueiCodeIsNull'}; {'id': '286', 'type': 'block', 'children': ['287']}; {'id': '287', 'type': 'assert_statement', 'children': ['288']}; {'id': '288', 'type': '()', 'children': ['289']}; {'id': '289', 'type': 'comparison_operator', 'children': ['290', '294'], 'value': '=='}; {'id': '290', 'type': 'call', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '292', 'type': 'argument_list', 'children': ['293']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '294', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '295', 'type': 'else_clause', 'children': ['296']}; {'id': '296', 'type': 'block', 'children': ['297', '304']}; {'id': '297', 'type': 'assert_statement', 'children': ['298']}; {'id': '298', 'type': '()', 'children': ['299']}; {'id': '299', 'type': 'comparison_operator', 'children': ['300', '303'], 'value': '=='}; {'id': '300', 'type': 'attribute', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'ATOMResidueiCode'}; {'id': '303', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '304', 'type': 'expression_statement', 'children': ['305']}; {'id': '305', 'type': 'assignment', 'children': ['306', '309']}; {'id': '306', 'type': 'attribute', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'ATOMResidueiCode'}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '310', 'type': 'elif_clause', 'children': ['311', '314']}; {'id': '311', 'type': 'comparison_operator', 'children': ['312', '313'], 'value': '=='}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '313', 'type': 'string', 'children': [], 'value': '"PDBx:auth_comp_id"'}; {'id': '314', 'type': 'block', 'children': ['315', '322']}; {'id': '315', 'type': 'assert_statement', 'children': ['316']}; {'id': '316', 'type': '()', 'children': ['317']}; {'id': '317', 'type': 'not_operator', 'children': ['318']}; {'id': '318', 'type': '()', 'children': ['319']}; {'id': '319', 'type': 'attribute', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'ATOMResidueAA'}; {'id': '322', 'type': 'expression_statement', 'children': ['323']}; {'id': '323', 'type': 'assignment', 'children': ['324', '327']}; {'id': '324', 'type': 'attribute', 'children': ['325', '326']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'ATOMResidueAA'}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '328', 'type': 'elif_clause', 'children': ['329', '332']}; {'id': '329', 'type': 'comparison_operator', 'children': ['330', '331'], 'value': '=='}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '331', 'type': 'string', 'children': [], 'value': '"PDBx:label_seq_id"'}; {'id': '332', 'type': 'block', 'children': ['333', '340']}; {'id': '333', 'type': 'assert_statement', 'children': ['334']}; {'id': '334', 'type': '()', 'children': ['335']}; {'id': '335', 'type': 'not_operator', 'children': ['336']}; {'id': '336', 'type': '()', 'children': ['337']}; {'id': '337', 'type': 'attribute', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'SEQRESIndex'}; {'id': '340', 'type': 'expression_statement', 'children': ['341']}; {'id': '341', 'type': 'assignment', 'children': ['342', '345']}; {'id': '342', 'type': 'attribute', 'children': ['343', '344']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'SEQRESIndex'}; {'id': '345', 'type': 'call', 'children': ['346', '347']}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '347', 'type': 'argument_list', 'children': ['348']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'tag_content'}; {'id': '349', 'type': 'elif_clause', 'children': ['350', '353']}; {'id': '350', 'type': 'comparison_operator', 'children': ['351', '352'], 'value': '=='}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '352', 'type': 'string', 'children': [], 'value': '"PDBx:label_comp_id"'}; {'id': '353', 'type': 'block', 'children': ['354', '361']}; {'id': '354', 'type': 'assert_statement', 'children': ['355']}; {'id': '355', 'type': '()', 'children': ['356']}; {'id': '356', 'type': 'not_operator', 'children': ['357']}; {'id': '357', 'type': '()', 'children': ['358']}; {'id': '358', 'type': 'attribute', 'children': ['359', '360']}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'ATOMSeqresResidueAA'}; {'id': '361', 'type': 'expression_statement', 'children': ['362']}; {'id': '362', 'type': 'assignment', 'children': ['363', '366']}; {'id': '363', 'type': 'attribute', 'children': ['364', '365']}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'current_atom_site'}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'ATOMSeqresResidueAA'}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'tag_content'} | Parse the atom tag data. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_push'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8', '9']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'view'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'is_class'}; {'id': '9', 'type': 'dictionary_splat_pattern', 'children': ['10']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '11', 'type': 'block', 'children': ['12', '22', '28', '34', '46', '56', '64', '74', '87', '97', '114', '120', '131', '144', '160', '166', '172', '178', '184', '226', '234', '245', '255', '266']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'call', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'set_view_attr'}; {'id': '15', 'type': 'argument_list', 'children': ['16', '17', '18', '19']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'view'}; {'id': '17', 'type': 'string', 'children': [], 'value': '"title"'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '19', 'type': 'keyword_argument', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'cls_name'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '22', 'type': 'expression_statement', 'children': ['23']}; {'id': '23', 'type': 'assignment', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'module_name'}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'view'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': '__module__'}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'method_name'}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'view'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': '__name__'}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': '_endpoint'}; {'id': '37', 'type': 'call', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'build_endpoint_route_name'}; {'id': '39', 'type': 'argument_list', 'children': ['40', '41', '45']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'view'}; {'id': '41', 'type': 'conditional_expression', 'children': ['42', '43', '44'], 'value': 'if'}; {'id': '42', 'type': 'string', 'children': [], 'value': '"index"'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'is_class'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'method_name'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '46', 'type': 'expression_statement', 'children': ['47']}; {'id': '47', 'type': 'assignment', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'endpoint'}; {'id': '49', 'type': 'call', 'children': ['50', '53']}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '53', 'type': 'argument_list', 'children': ['54', '55']}; {'id': '54', 'type': 'string', 'children': [], 'value': '"endpoint"'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': '_endpoint'}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'call', 'children': ['58', '61']}; {'id': '58', 'type': 'attribute', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'setdefault'}; {'id': '61', 'type': 'argument_list', 'children': ['62', '63']}; {'id': '62', 'type': 'string', 'children': [], 'value': '"endpoint_kwargs"'}; {'id': '63', 'type': 'dictionary', 'children': []}; {'id': '64', 'type': 'expression_statement', 'children': ['65']}; {'id': '65', 'type': 'assignment', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '67', 'type': 'call', 'children': ['68', '71']}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '71', 'type': 'argument_list', 'children': ['72', '73']}; {'id': '72', 'type': 'string', 'children': [], 'value': '"order"'}; {'id': '73', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '74', 'type': 'expression_statement', 'children': ['75']}; {'id': '75', 'type': 'assignment', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': '_nav_tags'}; {'id': '77', 'type': 'call', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'get_view_attr'}; {'id': '79', 'type': 'argument_list', 'children': ['80', '81', '82', '84']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'view'}; {'id': '81', 'type': 'string', 'children': [], 'value': '"nav_tags"'}; {'id': '82', 'type': 'list', 'children': ['83'], 'value': '["default"]'}; {'id': '83', 'type': 'string', 'children': [], 'value': '"default"'}; {'id': '84', 'type': 'keyword_argument', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'cls_name'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '94', 'type': 'argument_list', 'children': ['95', '96']}; {'id': '95', 'type': 'string', 'children': [], 'value': '"tags"'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': '_nav_tags'}; {'id': '97', 'type': 'if_statement', 'children': ['98', '104']}; {'id': '98', 'type': 'not_operator', 'children': ['99']}; {'id': '99', 'type': 'call', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '101', 'type': 'argument_list', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '104', 'type': 'block', 'children': ['105', '109']}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'assignment', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '109', 'type': 'expression_statement', 'children': ['110']}; {'id': '110', 'type': 'assignment', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '112', 'type': 'list', 'children': ['113'], 'value': '[_]'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': '_'}; {'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': 'kwargs'}; {'id': '118', 'type': 'string', 'children': [], 'value': '"tags"'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'visible'}; {'id': '123', 'type': 'call', 'children': ['124', '127']}; {'id': '124', 'type': 'attribute', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '127', 'type': 'argument_list', 'children': ['128', '129']}; {'id': '128', 'type': 'string', 'children': [], 'value': '"visible"'}; {'id': '129', 'type': 'list', 'children': ['130'], 'value': '[True]'}; {'id': '130', 'type': 'True', 'children': []}; {'id': '131', 'type': 'if_statement', 'children': ['132', '138']}; {'id': '132', 'type': 'not_operator', 'children': ['133']}; {'id': '133', 'type': 'call', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '135', 'type': 'argument_list', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'visible'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '138', 'type': 'block', 'children': ['139']}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'visible'}; {'id': '142', 'type': 'list', 'children': ['143'], 'value': '[visible]'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'visible'}; {'id': '144', 'type': 'if_statement', 'children': ['145', '155']}; {'id': '145', 'type': 'comparison_operator', 'children': ['146', '154'], 'value': 'is'}; {'id': '146', 'type': 'call', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'get_view_attr'}; {'id': '148', 'type': 'argument_list', 'children': ['149', '150', '151']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'view'}; {'id': '150', 'type': 'string', 'children': [], 'value': '"nav_visible"'}; {'id': '151', 'type': 'keyword_argument', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'cls_name'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '154', 'type': 'False', 'children': []}; {'id': '155', 'type': 'block', 'children': ['156']}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'assignment', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'visible'}; {'id': '159', 'type': 'False', 'children': []}; {'id': '160', 'type': 'expression_statement', 'children': ['161']}; {'id': '161', 'type': 'assignment', 'children': ['162', '165']}; {'id': '162', 'type': 'subscript', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '164', 'type': 'string', 'children': [], 'value': '"view"'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'view'}; {'id': '166', 'type': 'expression_statement', 'children': ['167']}; {'id': '167', 'type': 'assignment', 'children': ['168', '171']}; {'id': '168', 'type': 'subscript', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '170', 'type': 'string', 'children': [], 'value': '"visible"'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'visible'}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'assignment', 'children': ['174', '177']}; {'id': '174', 'type': 'subscript', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '176', 'type': 'string', 'children': [], 'value': '"active"'}; {'id': '177', 'type': 'False', 'children': []}; {'id': '178', 'type': 'expression_statement', 'children': ['179']}; {'id': '179', 'type': 'assignment', 'children': ['180', '183']}; {'id': '180', 'type': 'subscript', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '182', 'type': 'string', 'children': [], 'value': '"key"'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '184', 'type': 'if_statement', 'children': ['185', '186', '199']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'is_class'}; {'id': '186', 'type': 'block', 'children': ['187', '193']}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'assignment', 'children': ['189', '192']}; {'id': '189', 'type': 'subscript', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '191', 'type': 'string', 'children': [], 'value': '"endpoint"'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'endpoint'}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'assignment', 'children': ['195', '198']}; {'id': '195', 'type': 'subscript', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '197', 'type': 'string', 'children': [], 'value': '"has_subnav"'}; {'id': '198', 'type': 'True', 'children': []}; {'id': '199', 'type': 'else_clause', 'children': ['200']}; {'id': '200', 'type': 'block', 'children': ['201', '207']}; {'id': '201', 'type': 'expression_statement', 'children': ['202']}; {'id': '202', 'type': 'assignment', 'children': ['203', '206']}; {'id': '203', 'type': 'subscript', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '205', 'type': 'string', 'children': [], 'value': '"has_subnav"'}; {'id': '206', 'type': 'False', 'children': []}; {'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': 'kwargs'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '212', 'type': 'argument_list', 'children': ['213']}; {'id': '213', 'type': 'dictionary', 'children': ['214', '217', '220', '223']}; {'id': '214', 'type': 'pair', 'children': ['215', '216']}; {'id': '215', 'type': 'string', 'children': [], 'value': '"order"'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '217', 'type': 'pair', 'children': ['218', '219']}; {'id': '218', 'type': 'string', 'children': [], 'value': '"has_subnav"'}; {'id': '219', 'type': 'False', 'children': []}; {'id': '220', 'type': 'pair', 'children': ['221', '222']}; {'id': '221', 'type': 'string', 'children': [], 'value': '"title"'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '223', 'type': 'pair', 'children': ['224', '225']}; {'id': '224', 'type': 'string', 'children': [], 'value': '"endpoint"'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'endpoint'}; {'id': '226', 'type': 'expression_statement', 'children': ['227']}; {'id': '227', 'type': 'assignment', 'children': ['228', '233']}; {'id': '228', 'type': 'subscript', 'children': ['229', '232']}; {'id': '229', 'type': 'attribute', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': '_title_map'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'endpoint'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '234', 'type': 'expression_statement', 'children': ['235']}; {'id': '235', 'type': 'assignment', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '237', 'type': 'binary_operator', 'children': ['238', '239'], 'value': '%'}; {'id': '238', 'type': 'string', 'children': [], 'value': '"%s.%s"'}; {'id': '239', 'type': 'tuple', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'module_name'}; {'id': '241', 'type': 'conditional_expression', 'children': ['242', '243', '244'], 'value': 'if'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'method_name'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'is_class'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'class_name'}; {'id': '245', 'type': 'expression_statement', 'children': ['246']}; {'id': '246', 'type': 'assignment', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'attach_to'}; {'id': '248', 'type': 'call', 'children': ['249', '252']}; {'id': '249', 'type': 'attribute', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '252', 'type': 'argument_list', 'children': ['253', '254']}; {'id': '253', 'type': 'string', 'children': [], 'value': '"attach_to"'}; {'id': '254', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '255', 'type': 'if_statement', 'children': ['256', '258']}; {'id': '256', 'type': 'not_operator', 'children': ['257']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'attach_to'}; {'id': '258', 'type': 'block', 'children': ['259']}; {'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': 'attach_to'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '264', 'type': 'argument_list', 'children': ['265']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '266', 'type': 'for_statement', 'children': ['267', '268', '269']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'attach_to'}; {'id': '269', 'type': 'block', 'children': ['270', '303']}; {'id': '270', 'type': 'if_statement', 'children': ['271', '276']}; {'id': '271', 'type': 'comparison_operator', 'children': ['272', '273'], 'value': 'not'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '273', 'type': 'attribute', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'MENU'}; {'id': '276', 'type': 'block', 'children': ['277']}; {'id': '277', 'type': 'expression_statement', 'children': ['278']}; {'id': '278', 'type': 'assignment', 'children': ['279', '284']}; {'id': '279', 'type': 'subscript', 'children': ['280', '283']}; {'id': '280', 'type': 'attribute', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'MENU'}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '284', 'type': 'dictionary', 'children': ['285', '288', '291', '294', '297', '300']}; {'id': '285', 'type': 'pair', 'children': ['286', '287']}; {'id': '286', 'type': 'string', 'children': [], 'value': '"title"'}; {'id': '287', 'type': 'None', 'children': []}; {'id': '288', 'type': 'pair', 'children': ['289', '290']}; {'id': '289', 'type': 'string', 'children': [], 'value': '"endpoint"'}; {'id': '290', 'type': 'None', 'children': []}; {'id': '291', 'type': 'pair', 'children': ['292', '293']}; {'id': '292', 'type': 'string', 'children': [], 'value': '"endpoint_kwargs"'}; {'id': '293', 'type': 'dictionary', 'children': []}; {'id': '294', 'type': 'pair', 'children': ['295', '296']}; {'id': '295', 'type': 'string', 'children': [], 'value': '"order"'}; {'id': '296', 'type': 'None', 'children': []}; {'id': '297', 'type': 'pair', 'children': ['298', '299']}; {'id': '298', 'type': 'string', 'children': [], 'value': '"subnav"'}; {'id': '299', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '300', 'type': 'pair', 'children': ['301', '302']}; {'id': '301', 'type': 'string', 'children': [], 'value': '"kwargs"'}; {'id': '302', 'type': 'dictionary', 'children': []}; {'id': '303', 'type': 'if_statement', 'children': ['304', '305', '336']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'is_class'}; {'id': '305', 'type': 'block', 'children': ['306', '316', '326']}; {'id': '306', 'type': 'expression_statement', 'children': ['307']}; {'id': '307', 'type': 'assignment', 'children': ['308', '315']}; {'id': '308', 'type': 'subscript', 'children': ['309', '314']}; {'id': '309', 'type': 'subscript', 'children': ['310', '313']}; {'id': '310', 'type': 'attribute', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'MENU'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '314', 'type': 'string', 'children': [], 'value': '"title"'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '316', 'type': 'expression_statement', 'children': ['317']}; {'id': '317', 'type': 'assignment', 'children': ['318', '325']}; {'id': '318', 'type': 'subscript', 'children': ['319', '324']}; {'id': '319', 'type': 'subscript', 'children': ['320', '323']}; {'id': '320', 'type': 'attribute', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'MENU'}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '324', 'type': 'string', 'children': [], 'value': '"order"'}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'order'}; {'id': '326', 'type': 'expression_statement', 'children': ['327']}; {'id': '327', 'type': 'assignment', 'children': ['328', '335']}; {'id': '328', 'type': 'subscript', 'children': ['329', '334']}; {'id': '329', 'type': 'subscript', 'children': ['330', '333']}; {'id': '330', 'type': 'attribute', 'children': ['331', '332']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'MENU'}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '334', 'type': 'string', 'children': [], 'value': '"kwargs"'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '336', 'type': 'else_clause', 'children': ['337']}; {'id': '337', 'type': 'block', 'children': ['338']}; {'id': '338', 'type': 'expression_statement', 'children': ['339']}; {'id': '339', 'type': 'call', 'children': ['340', '349']}; {'id': '340', 'type': 'attribute', 'children': ['341', '348']}; {'id': '341', 'type': 'subscript', 'children': ['342', '347']}; {'id': '342', 'type': 'subscript', 'children': ['343', '346']}; {'id': '343', 'type': 'attribute', 'children': ['344', '345']}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'MENU'}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '347', 'type': 'string', 'children': [], 'value': '"subnav"'}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '349', 'type': 'argument_list', 'children': ['350']}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'kwargs'} | Push nav data stack |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'render'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '10', '14', '216']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'menu_list'}; {'id': '9', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'menu_index'}; {'id': '13', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '14', 'type': 'for_statement', 'children': ['15', '18', '30']}; {'id': '15', 'type': 'pattern_list', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '18', 'type': 'call', 'children': ['19', '29']}; {'id': '19', 'type': 'attribute', 'children': ['20', '28']}; {'id': '20', 'type': 'call', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'deepcopy'}; {'id': '24', 'type': 'argument_list', 'children': ['25']}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'MENU'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '29', 'type': 'argument_list', 'children': []}; {'id': '30', 'type': 'block', 'children': ['31', '35', '46', '54', '78', '158', '164', '212']}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'subnav'}; {'id': '34', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '35', 'type': 'expression_statement', 'children': ['36']}; {'id': '36', 'type': 'assignment', 'children': ['37', '42']}; {'id': '37', 'type': 'subscript', 'children': ['38', '41']}; {'id': '38', 'type': 'subscript', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '40', 'type': 'string', 'children': [], 'value': '"kwargs"'}; {'id': '41', 'type': 'string', 'children': [], 'value': '"_id"'}; {'id': '42', 'type': 'call', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '44', 'type': 'argument_list', 'children': ['45']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'menu_index'}; {'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': 'menu'}; {'id': '51', 'type': 'string', 'children': [], 'value': '"kwargs"'}; {'id': '52', 'type': 'string', 'children': [], 'value': '"active"'}; {'id': '53', 'type': 'False', 'children': []}; {'id': '54', 'type': 'if_statement', 'children': ['55', '60']}; {'id': '55', 'type': 'comparison_operator', 'children': ['56', '57'], 'value': 'in'}; {'id': '56', 'type': 'string', 'children': [], 'value': '"visible"'}; {'id': '57', 'type': 'subscript', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '59', 'type': 'string', 'children': [], 'value': '"kwargs"'}; {'id': '60', 'type': 'block', 'children': ['61']}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '68']}; {'id': '63', 'type': 'subscript', 'children': ['64', '67']}; {'id': '64', 'type': 'subscript', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '66', 'type': 'string', 'children': [], 'value': '"kwargs"'}; {'id': '67', 'type': 'string', 'children': [], 'value': '"visible"'}; {'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': '_test_visibility'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'subscript', 'children': ['74', '77']}; {'id': '74', 'type': 'subscript', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '76', 'type': 'string', 'children': [], 'value': '"kwargs"'}; {'id': '77', 'type': 'string', 'children': [], 'value': '"visible"'}; {'id': '78', 'type': 'for_statement', 'children': ['79', '80', '83']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '80', 'type': 'subscript', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '82', 'type': 'string', 'children': [], 'value': '"subnav"'}; {'id': '83', 'type': 'block', 'children': ['84', '102', '125', '138', '142', '151']}; {'id': '84', 'type': 'if_statement', 'children': ['85', '88']}; {'id': '85', 'type': 'subscript', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '87', 'type': 'string', 'children': [], 'value': '"title"'}; {'id': '88', 'type': 'block', 'children': ['89']}; {'id': '89', 'type': 'expression_statement', 'children': ['90']}; {'id': '90', 'type': 'assignment', 'children': ['91', '94']}; {'id': '91', 'type': 'subscript', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '93', 'type': 'string', 'children': [], 'value': '"title"'}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': '_get_title'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'subscript', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '101', 'type': 'string', 'children': [], 'value': '"title"'}; {'id': '102', 'type': 'if_statement', 'children': ['103', '110']}; {'id': '103', 'type': 'comparison_operator', 'children': ['104', '107'], 'value': '=='}; {'id': '104', 'type': 'subscript', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '106', 'type': 'string', 'children': [], 'value': '"endpoint"'}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'endpoint'}; {'id': '110', 'type': 'block', 'children': ['111', '117']}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'assignment', 'children': ['113', '116']}; {'id': '113', 'type': 'subscript', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '115', 'type': 'string', 'children': [], 'value': '"active"'}; {'id': '116', 'type': 'True', 'children': []}; {'id': '117', 'type': 'expression_statement', 'children': ['118']}; {'id': '118', 'type': 'assignment', 'children': ['119', '124']}; {'id': '119', 'type': 'subscript', 'children': ['120', '123']}; {'id': '120', 'type': 'subscript', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '122', 'type': 'string', 'children': [], 'value': '"kwargs"'}; {'id': '123', 'type': 'string', 'children': [], 'value': '"active"'}; {'id': '124', 'type': 'True', 'children': []}; {'id': '125', 'type': 'expression_statement', 'children': ['126']}; {'id': '126', 'type': 'assignment', 'children': ['127', '130']}; {'id': '127', 'type': 'subscript', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '129', 'type': 'string', 'children': [], 'value': '"visible"'}; {'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': '_test_visibility'}; {'id': '134', 'type': 'argument_list', 'children': ['135']}; {'id': '135', 'type': 'subscript', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '137', 'type': 'string', 'children': [], 'value': '"visible"'}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'augmented_assignment', 'children': ['140', '141'], 'value': '+='}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'menu_index'}; {'id': '141', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '142', 'type': 'expression_statement', 'children': ['143']}; {'id': '143', 'type': 'assignment', 'children': ['144', '147']}; {'id': '144', 'type': 'subscript', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '146', 'type': 'string', 'children': [], 'value': '"_id"'}; {'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': 'menu_index'}; {'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': 'subnav'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '156', 'type': 'argument_list', 'children': ['157']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'assignment', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': '_kwargs'}; {'id': '161', 'type': 'subscript', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '163', 'type': 'string', 'children': [], 'value': '"kwargs"'}; {'id': '164', 'type': 'if_statement', 'children': ['165', '168', '206']}; {'id': '165', 'type': 'subscript', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '167', 'type': 'string', 'children': [], 'value': '"title"'}; {'id': '168', 'type': 'block', 'children': ['169', '199']}; {'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': '_kwargs'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '174', 'type': 'argument_list', 'children': ['175']}; {'id': '175', 'type': 'dictionary', 'children': ['176', '184', '189']}; {'id': '176', 'type': 'pair', 'children': ['177', '178']}; {'id': '177', 'type': 'string', 'children': [], 'value': '"subnav"'}; {'id': '178', 'type': 'call', 'children': ['179', '182']}; {'id': '179', 'type': 'attribute', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': '_sort'}; {'id': '182', 'type': 'argument_list', 'children': ['183']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'subnav'}; {'id': '184', 'type': 'pair', 'children': ['185', '186']}; {'id': '185', 'type': 'string', 'children': [], 'value': '"order"'}; {'id': '186', 'type': 'subscript', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '188', 'type': 'string', 'children': [], 'value': '"order"'}; {'id': '189', 'type': 'pair', 'children': ['190', '191']}; {'id': '190', 'type': 'string', 'children': [], 'value': '"title"'}; {'id': '191', 'type': 'call', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': '_get_title'}; {'id': '195', 'type': 'argument_list', 'children': ['196']}; {'id': '196', 'type': 'subscript', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'menu'}; {'id': '198', 'type': 'string', 'children': [], 'value': '"title"'}; {'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': 'menu_list'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '204', 'type': 'argument_list', 'children': ['205']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': '_kwargs'}; {'id': '206', 'type': 'else_clause', 'children': ['207']}; {'id': '207', 'type': 'block', 'children': ['208']}; {'id': '208', 'type': 'expression_statement', 'children': ['209']}; {'id': '209', 'type': 'augmented_assignment', 'children': ['210', '211'], 'value': '+='}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'menu_list'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'subnav'}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'augmented_assignment', 'children': ['214', '215'], 'value': '+='}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'menu_index'}; {'id': '215', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '216', 'type': 'return_statement', 'children': ['217']}; {'id': '217', 'type': 'call', 'children': ['218', '221']}; {'id': '218', 'type': 'attribute', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': '_sort'}; {'id': '221', 'type': 'argument_list', 'children': ['222']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'menu_list'} | Render the menu into a sorted by order multi dict |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'make'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'apps'}; {'id': '6', 'type': 'block', 'children': ['7', '368']}; {'id': '7', 'type': 'for_statement', 'children': ['8', '11', '33']}; {'id': '8', 'type': 'tuple_pattern', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'appname'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'app'}; {'id': '11', 'type': 'call', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '13', 'type': 'argument_list', 'children': ['14', '19']}; {'id': '14', 'type': 'call', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'apps'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '18', 'type': 'argument_list', 'children': []}; {'id': '19', 'type': 'keyword_argument', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '21', 'type': 'lambda', 'children': ['22', '24']}; {'id': '22', 'type': 'lambda_parameters', 'children': ['23']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '24', 'type': 'tuple', 'children': ['25', '30']}; {'id': '25', 'type': 'attribute', 'children': ['26', '29']}; {'id': '26', 'type': 'subscript', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '28', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'priority'}; {'id': '30', 'type': 'subscript', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '32', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '33', 'type': 'block', 'children': ['34', '42']}; {'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': 'info'}; {'id': '39', 'type': 'argument_list', 'children': ['40', '41']}; {'id': '40', 'type': 'string', 'children': [], 'value': "'Getting report results from %r'"}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'appname'}; {'id': '42', 'type': 'for_statement', 'children': ['43', '44', '47']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'app'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '47', 'type': 'block', 'children': ['48', '58', '354']}; {'id': '48', 'type': 'if_statement', 'children': ['49', '56']}; {'id': '49', 'type': 'comparison_operator', 'children': ['50', '53'], 'value': '!='}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'subreport'}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '56', 'type': 'block', 'children': ['57']}; {'id': '57', 'type': 'continue_statement', 'children': []}; {'id': '58', 'type': 'if_statement', 'children': ['59', '64', '188', '271']}; {'id': '59', 'type': 'comparison_operator', 'children': ['60', '63'], 'value': '=='}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'function'}; {'id': '63', 'type': 'string', 'children': [], 'value': "'total'"}; {'id': '64', 'type': 'block', 'children': ['65']}; {'id': '65', 'type': 'for_statement', 'children': ['66', '67', '68']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '68', 'type': 'block', 'children': ['69', '78', '87', '96', '105', '119', '133', '139', '174']}; {'id': '69', 'type': 'expression_statement', 'children': ['70']}; {'id': '70', 'type': 'assignment', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '72', 'type': 'call', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'parse_report_data'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '78', 'type': 'expression_statement', 'children': ['79']}; {'id': '79', 'type': 'assignment', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'cond'}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'string', 'children': [], 'value': "'condition'"}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'valfld'}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '94', 'type': 'argument_list', 'children': ['95']}; {'id': '95', 'type': 'string', 'children': [], 'value': "'valfld'"}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'assignment', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '99', 'type': 'call', 'children': ['100', '103']}; {'id': '100', 'type': 'attribute', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '103', 'type': 'argument_list', 'children': ['104']}; {'id': '104', 'type': 'string', 'children': [], 'value': "'unit'"}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'assignment', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'itemtitle'}; {'id': '108', 'type': 'call', 'children': ['109', '117']}; {'id': '109', 'type': 'attribute', 'children': ['110', '116']}; {'id': '110', 'type': 'call', 'children': ['111', '114']}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '114', 'type': 'argument_list', 'children': ['115']}; {'id': '115', 'type': 'string', 'children': [], 'value': "'fields'"}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '117', 'type': 'argument_list', 'children': ['118']}; {'id': '118', 'type': 'string', 'children': [], 'value': '\'"\''}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'total'}; {'id': '122', 'type': 'call', 'children': ['123', '130']}; {'id': '123', 'type': 'attribute', 'children': ['124', '129']}; {'id': '124', 'type': 'subscript', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'rules'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'total_events'}; {'id': '130', 'type': 'argument_list', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'cond'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'valfld'}; {'id': '133', 'type': 'if_statement', 'children': ['134', '137']}; {'id': '134', 'type': 'comparison_operator', 'children': ['135', '136'], 'value': '=='}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'total'}; {'id': '136', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '137', 'type': 'block', 'children': ['138']}; {'id': '138', 'type': 'continue_statement', 'children': []}; {'id': '139', 'type': 'if_statement', 'children': ['140', '143', '165']}; {'id': '140', 'type': 'comparison_operator', 'children': ['141', '142'], 'value': 'is'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '142', 'type': 'None', 'children': []}; {'id': '143', 'type': 'block', 'children': ['144', '155']}; {'id': '144', 'type': 'expression_statement', 'children': ['145']}; {'id': '145', 'type': 'assignment', 'children': ['146', '149']}; {'id': '146', 'type': 'pattern_list', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'total'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '149', 'type': 'call', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'get_value_unit'}; {'id': '151', 'type': 'argument_list', 'children': ['152', '153', '154']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'total'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '154', 'type': 'string', 'children': [], 'value': "'T'"}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'assignment', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'total'}; {'id': '158', 'type': 'call', 'children': ['159', '162']}; {'id': '159', 'type': 'attribute', 'children': ['160', '161']}; {'id': '160', 'type': 'string', 'children': [], 'value': "'{0} {1}'"}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '162', 'type': 'argument_list', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'total'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'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': 'total'}; {'id': '170', 'type': 'call', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '172', 'type': 'argument_list', 'children': ['173']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'total'}; {'id': '174', 'type': 'expression_statement', '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': 'report_data'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'results'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '181', 'type': 'argument_list', 'children': ['182']}; {'id': '182', 'type': 'call', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'list', 'children': ['186', '187'], 'value': '[total, itemtitle]'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'total'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'itemtitle'}; {'id': '188', 'type': 'elif_clause', 'children': ['189', '194']}; {'id': '189', 'type': 'comparison_operator', 'children': ['190', '193'], 'value': '=='}; {'id': '190', 'type': 'attribute', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'function'}; {'id': '193', 'type': 'string', 'children': [], 'value': "'top'"}; {'id': '194', 'type': 'block', 'children': ['195', '204']}; {'id': '195', 'type': 'expression_statement', 'children': ['196']}; {'id': '196', 'type': 'assignment', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '198', 'type': 'call', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'attribute', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'topnum'}; {'id': '204', 'type': 'for_statement', 'children': ['205', '206', '207']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '207', 'type': 'block', 'children': ['208', '217', '226', '235', '246', '262']}; {'id': '208', 'type': 'expression_statement', 'children': ['209']}; {'id': '209', 'type': 'assignment', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '211', 'type': 'call', 'children': ['212', '215']}; {'id': '212', 'type': 'attribute', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'parse_report_data'}; {'id': '215', 'type': 'argument_list', 'children': ['216']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '217', 'type': 'expression_statement', 'children': ['218']}; {'id': '218', 'type': 'assignment', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'valfld'}; {'id': '220', 'type': 'call', 'children': ['221', '224']}; {'id': '221', 'type': 'attribute', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '224', 'type': 'argument_list', 'children': ['225']}; {'id': '225', 'type': 'string', 'children': [], 'value': "'valfld'"}; {'id': '226', 'type': 'expression_statement', 'children': ['227']}; {'id': '227', 'type': 'assignment', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '229', 'type': 'call', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '233', 'type': 'argument_list', 'children': ['234']}; {'id': '234', 'type': 'string', 'children': [], 'value': "'fields'"}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'assignment', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'usemax'}; {'id': '238', 'type': 'comparison_operator', 'children': ['239', '245'], 'value': 'is'}; {'id': '239', 'type': 'call', 'children': ['240', '243']}; {'id': '240', 'type': 'attribute', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '243', 'type': 'argument_list', 'children': ['244']}; {'id': '244', 'type': 'string', 'children': [], 'value': "'add2res'"}; {'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': 'toplist'}; {'id': '249', 'type': 'call', 'children': ['250', '257']}; {'id': '250', 'type': 'attribute', 'children': ['251', '256']}; {'id': '251', 'type': 'subscript', 'children': ['252', '255']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'rules'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'top_events'}; {'id': '257', 'type': 'argument_list', 'children': ['258', '259', '260', '261']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'valfld'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'usemax'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '262', 'type': 'expression_statement', 'children': ['263']}; {'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': 'report_data'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'results'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '269', 'type': 'argument_list', 'children': ['270']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'toplist'}; {'id': '271', 'type': 'elif_clause', 'children': ['272', '277']}; {'id': '272', 'type': 'comparison_operator', 'children': ['273', '276'], 'value': '=='}; {'id': '273', 'type': 'attribute', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'function'}; {'id': '276', 'type': 'string', 'children': [], 'value': "'table'"}; {'id': '277', 'type': 'block', 'children': ['278', '293']}; {'id': '278', 'type': 'expression_statement', 'children': ['279']}; {'id': '279', 'type': 'assignment', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'cols'}; {'id': '281', 'type': 'call', 'children': ['282', '283']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '283', 'type': 'argument_list', 'children': ['284']}; {'id': '284', 'type': 'call', 'children': ['285', '288']}; {'id': '285', 'type': 'attribute', 'children': ['286', '287']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '288', 'type': 'argument_list', 'children': ['289', '290']}; {'id': '289', 'type': 'string', 'children': [], 'value': "'\\s*,\\s*'"}; {'id': '290', 'type': 'attribute', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '293', 'type': 'for_statement', 'children': ['294', '295', '296']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '296', 'type': 'block', 'children': ['297', '306', '315', '330', '345']}; {'id': '297', 'type': 'expression_statement', 'children': ['298']}; {'id': '298', 'type': 'assignment', 'children': ['299', '300']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '300', 'type': 'call', 'children': ['301', '304']}; {'id': '301', 'type': 'attribute', 'children': ['302', '303']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'parse_report_data'}; {'id': '304', 'type': 'argument_list', 'children': ['305']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '306', 'type': 'expression_statement', 'children': ['307']}; {'id': '307', 'type': 'assignment', 'children': ['308', '309']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'cond'}; {'id': '309', 'type': 'call', 'children': ['310', '313']}; {'id': '310', 'type': 'attribute', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '313', 'type': 'argument_list', 'children': ['314']}; {'id': '314', 'type': 'string', 'children': [], 'value': "'condition'"}; {'id': '315', 'type': 'expression_statement', 'children': ['316']}; {'id': '316', 'type': 'assignment', 'children': ['317', '318']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '318', 'type': 'call', 'children': ['319', '322']}; {'id': '319', 'type': 'attribute', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '322', 'type': 'argument_list', 'children': ['323', '324']}; {'id': '323', 'type': 'string', 'children': [], 'value': "'\\s*,\\s*'"}; {'id': '324', 'type': 'call', 'children': ['325', '328']}; {'id': '325', 'type': 'attribute', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '328', 'type': 'argument_list', 'children': ['329']}; {'id': '329', 'type': 'string', 'children': [], 'value': "'fields'"}; {'id': '330', 'type': 'expression_statement', 'children': ['331']}; {'id': '331', 'type': 'assignment', 'children': ['332', '333']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'tablelist'}; {'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': 'report_data'}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'rules'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'list_events'}; {'id': '341', 'type': 'argument_list', 'children': ['342', '343', '344']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'cond'}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'cols'}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '345', 'type': 'expression_statement', 'children': ['346']}; {'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': 'report_data'}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'results'}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '352', 'type': 'argument_list', 'children': ['353']}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'tablelist'}; {'id': '354', 'type': 'if_statement', 'children': ['355', '358']}; {'id': '355', 'type': 'attribute', 'children': ['356', '357']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'results'}; {'id': '358', 'type': 'block', 'children': ['359']}; {'id': '359', 'type': 'expression_statement', 'children': ['360']}; {'id': '360', 'type': 'call', 'children': ['361', '366']}; {'id': '361', 'type': 'attribute', 'children': ['362', '365']}; {'id': '362', 'type': 'attribute', 'children': ['363', '364']}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '366', 'type': 'argument_list', 'children': ['367']}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '368', 'type': 'for_statement', 'children': ['369', '370', '373']}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '370', 'type': 'attribute', 'children': ['371', '372']}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '373', 'type': 'block', 'children': ['374']}; {'id': '374', 'type': 'if_statement', 'children': ['375', '380']}; {'id': '375', 'type': 'comparison_operator', 'children': ['376', '379'], 'value': '=='}; {'id': '376', 'type': 'attribute', 'children': ['377', '378']}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'function'}; {'id': '379', 'type': 'string', 'children': [], 'value': "'top'"}; {'id': '380', 'type': 'block', 'children': ['381', '403', '407', '435']}; {'id': '381', 'type': 'expression_statement', 'children': ['382']}; {'id': '382', 'type': 'assignment', 'children': ['383', '386']}; {'id': '383', 'type': 'attribute', 'children': ['384', '385']}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'results'}; {'id': '386', 'type': 'call', 'children': ['387', '388']}; {'id': '387', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '388', 'type': 'argument_list', 'children': ['389', '392', '400']}; {'id': '389', 'type': 'attribute', 'children': ['390', '391']}; {'id': '390', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '391', 'type': 'identifier', 'children': [], 'value': 'results'}; {'id': '392', 'type': 'keyword_argument', 'children': ['393', '394']}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '394', 'type': 'lambda', 'children': ['395', '397']}; {'id': '395', 'type': 'lambda_parameters', 'children': ['396']}; {'id': '396', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '397', 'type': 'subscript', 'children': ['398', '399']}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '399', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '400', 'type': 'keyword_argument', 'children': ['401', '402']}; {'id': '401', 'type': 'identifier', 'children': [], 'value': 'reverse'}; {'id': '402', 'type': 'True', 'children': []}; {'id': '403', 'type': 'expression_statement', 'children': ['404']}; {'id': '404', 'type': 'assignment', 'children': ['405', '406']}; {'id': '405', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '406', 'type': 'None', 'children': []}; {'id': '407', 'type': 'for_statement', 'children': ['408', '409', '410']}; {'id': '408', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '409', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '410', 'type': 'block', 'children': ['411', '420', '429']}; {'id': '411', 'type': 'expression_statement', 'children': ['412']}; {'id': '412', 'type': 'assignment', 'children': ['413', '414']}; {'id': '413', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '414', 'type': 'call', 'children': ['415', '418']}; {'id': '415', 'type': 'attribute', 'children': ['416', '417']}; {'id': '416', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '417', 'type': 'identifier', 'children': [], 'value': 'parse_report_data'}; {'id': '418', 'type': 'argument_list', 'children': ['419']}; {'id': '419', 'type': 'identifier', 'children': [], 'value': 'opt'}; {'id': '420', 'type': 'expression_statement', 'children': ['421']}; {'id': '421', 'type': 'assignment', 'children': ['422', '423']}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '423', 'type': 'call', 'children': ['424', '427']}; {'id': '424', 'type': 'attribute', 'children': ['425', '426']}; {'id': '425', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '426', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '427', 'type': 'argument_list', 'children': ['428']}; {'id': '428', 'type': 'string', 'children': [], 'value': "'unit'"}; {'id': '429', 'type': 'if_statement', 'children': ['430', '433']}; {'id': '430', 'type': 'comparison_operator', 'children': ['431', '432'], 'value': 'is'}; {'id': '431', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '432', 'type': 'None', 'children': []}; {'id': '433', 'type': 'block', 'children': ['434']}; {'id': '434', 'type': 'break_statement', 'children': []}; {'id': '435', 'type': 'for_statement', 'children': ['436', '437', '440']}; {'id': '436', 'type': 'identifier', 'children': [], 'value': 'res'}; {'id': '437', 'type': 'attribute', 'children': ['438', '439']}; {'id': '438', 'type': 'identifier', 'children': [], 'value': 'report_data'}; {'id': '439', 'type': 'identifier', 'children': [], 'value': 'results'}; {'id': '440', 'type': 'block', 'children': ['441']}; {'id': '441', 'type': 'if_statement', 'children': ['442', '445', '471']}; {'id': '442', 'type': 'comparison_operator', 'children': ['443', '444'], 'value': 'is'}; {'id': '443', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '444', 'type': 'None', 'children': []}; {'id': '445', 'type': 'block', 'children': ['446', '459']}; {'id': '446', 'type': 'expression_statement', 'children': ['447']}; {'id': '447', 'type': 'assignment', 'children': ['448', '451']}; {'id': '448', 'type': 'pattern_list', 'children': ['449', '450']}; {'id': '449', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '450', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '451', 'type': 'call', 'children': ['452', '453']}; {'id': '452', 'type': 'identifier', 'children': [], 'value': 'get_value_unit'}; {'id': '453', 'type': 'argument_list', 'children': ['454', '457', '458']}; {'id': '454', 'type': 'subscript', 'children': ['455', '456']}; {'id': '455', 'type': 'identifier', 'children': [], 'value': 'res'}; {'id': '456', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '457', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '458', 'type': 'string', 'children': [], 'value': "'T'"}; {'id': '459', 'type': 'expression_statement', 'children': ['460']}; {'id': '460', 'type': 'assignment', 'children': ['461', '464']}; {'id': '461', 'type': 'subscript', 'children': ['462', '463']}; {'id': '462', 'type': 'identifier', 'children': [], 'value': 'res'}; {'id': '463', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '464', 'type': 'call', 'children': ['465', '468']}; {'id': '465', 'type': 'attribute', 'children': ['466', '467']}; {'id': '466', 'type': 'string', 'children': [], 'value': "'{0} {1}'"}; {'id': '467', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '468', 'type': 'argument_list', 'children': ['469', '470']}; {'id': '469', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '470', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '471', 'type': 'else_clause', 'children': ['472']}; {'id': '472', 'type': 'block', 'children': ['473']}; {'id': '473', 'type': 'expression_statement', 'children': ['474']}; {'id': '474', 'type': 'assignment', 'children': ['475', '478']}; {'id': '475', 'type': 'subscript', 'children': ['476', '477']}; {'id': '476', 'type': 'identifier', 'children': [], 'value': 'res'}; {'id': '477', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '478', 'type': 'call', 'children': ['479', '480']}; {'id': '479', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '480', 'type': 'argument_list', 'children': ['481']}; {'id': '481', 'type': 'subscript', 'children': ['482', '483']}; {'id': '482', 'type': 'identifier', 'children': [], 'value': 'res'}; {'id': '483', 'type': 'integer', 'children': [], 'value': '0'} | Make subreport items from results. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_report_parts'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'apps'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'formats'}; {'id': '7', 'type': 'block', 'children': ['8', '41', '48', '139', '143', '179', '212', '221', '225', '300']}; {'id': '8', 'type': 'for_statement', 'children': ['9', '10', '11']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'formats'}; {'id': '11', 'type': 'block', 'children': ['12', '27']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '15', 'type': 'conditional_expression', 'children': ['16', '17', '20'], 'value': 'if'}; {'id': '16', 'type': 'integer', 'children': [], 'value': '100'}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '19'], 'value': 'is'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '19', 'type': 'None', 'children': []}; {'id': '20', 'type': 'subscript', 'children': ['21', '26']}; {'id': '21', 'type': 'call', 'children': ['22', '25']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'tui'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'get_terminal_size'}; {'id': '25', 'type': 'argument_list', 'children': []}; {'id': '26', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '27', 'type': 'for_statement', 'children': ['28', '29', '32']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'sr'}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'subreports'}; {'id': '32', 'type': 'block', 'children': ['33']}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'call', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'sr'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'make_format'}; {'id': '38', 'type': 'argument_list', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '41', 'type': 'expression_statement', 'children': ['42']}; {'id': '42', 'type': 'call', 'children': ['43', '46']}; {'id': '43', 'type': 'attribute', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'string', 'children': [], 'value': "'Build a map for arguments and run\\'s statistics ...'"}; {'id': '48', 'type': 'expression_statement', 'children': ['49']}; {'id': '49', 'type': 'assignment', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'value_mapping'}; {'id': '51', 'type': 'dictionary', 'children': ['52', '57', '78', '92', '106', '136']}; {'id': '52', 'type': 'pair', 'children': ['53', '54']}; {'id': '53', 'type': 'string', 'children': [], 'value': "'title'"}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '57', 'type': 'pair', 'children': ['58', '59']}; {'id': '58', 'type': 'string', 'children': [], 'value': "'patterns'"}; {'id': '59', 'type': 'boolean_operator', 'children': ['60', '77'], 'value': 'or'}; {'id': '60', 'type': 'call', 'children': ['61', '64']}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '64', 'type': 'argument_list', 'children': ['65']}; {'id': '65', 'type': 'list_comprehension', 'children': ['66', '70']}; {'id': '66', 'type': 'call', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'repr'}; {'id': '68', 'type': 'argument_list', 'children': ['69']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '70', 'type': 'for_in_clause', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '72', 'type': 'attribute', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'patterns'}; {'id': '77', 'type': 'None', 'children': []}; {'id': '78', 'type': 'pair', 'children': ['79', '80']}; {'id': '79', 'type': 'string', 'children': [], 'value': "'pattern_files'"}; {'id': '80', 'type': 'boolean_operator', 'children': ['81', '91'], 'value': 'or'}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'attribute', 'children': ['87', '90']}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'pattern_files'}; {'id': '91', 'type': 'None', 'children': []}; {'id': '92', 'type': 'pair', 'children': ['93', '94']}; {'id': '93', 'type': 'string', 'children': [], 'value': "'hosts'"}; {'id': '94', 'type': 'boolean_operator', 'children': ['95', '105'], 'value': 'or'}; {'id': '95', 'type': 'call', 'children': ['96', '99']}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '99', 'type': 'argument_list', 'children': ['100']}; {'id': '100', 'type': 'attribute', 'children': ['101', '104']}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'hosts'}; {'id': '105', 'type': 'None', 'children': []}; {'id': '106', 'type': 'pair', 'children': ['107', '108']}; {'id': '107', 'type': 'string', 'children': [], 'value': "'apps'"}; {'id': '108', 'type': 'call', 'children': ['109', '112']}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'string', 'children': [], 'value': "u', '"}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'id': '113', 'type': 'list_comprehension', 'children': ['114', '123', '130']}; {'id': '114', 'type': 'binary_operator', 'children': ['115', '116'], 'value': '%'}; {'id': '115', 'type': 'string', 'children': [], 'value': "u'%s(%d)'"}; {'id': '116', 'type': 'tuple', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'app'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'app'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '123', 'type': 'for_in_clause', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'app'}; {'id': '125', 'type': 'call', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'apps'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '129', 'type': 'argument_list', 'children': []}; {'id': '130', 'type': 'if_clause', 'children': ['131']}; {'id': '131', 'type': 'comparison_operator', 'children': ['132', '135'], 'value': '>'}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'app'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '135', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '136', 'type': 'pair', 'children': ['137', '138']}; {'id': '137', 'type': 'string', 'children': [], 'value': "'version'"}; {'id': '138', 'type': 'identifier', 'children': [], 'value': '__version__'}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'filters'}; {'id': '142', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '143', 'type': 'for_statement', 'children': ['144', '145', '150']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'flt'}; {'id': '145', 'type': 'attribute', 'children': ['146', '149']}; {'id': '146', 'type': 'attribute', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'filters'}; {'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': 'filters'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '156', 'type': 'argument_list', 'children': ['157']}; {'id': '157', 'type': 'call', 'children': ['158', '161']}; {'id': '158', 'type': 'attribute', 'children': ['159', '160']}; {'id': '159', 'type': 'string', 'children': [], 'value': "' AND '"}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '161', 'type': 'argument_list', 'children': ['162']}; {'id': '162', 'type': 'list_comprehension', 'children': ['163', '170']}; {'id': '163', 'type': 'binary_operator', 'children': ['164', '165'], 'value': '%'}; {'id': '164', 'type': 'string', 'children': [], 'value': "'%s=%r'"}; {'id': '165', 'type': 'tuple', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '167', 'type': 'attribute', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '170', 'type': 'for_in_clause', 'children': ['171', '174']}; {'id': '171', 'type': 'pattern_list', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '174', 'type': 'call', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'flt'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '178', 'type': 'argument_list', 'children': []}; {'id': '179', 'type': 'if_statement', 'children': ['180', '181', '199']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'filters'}; {'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': 'value_mapping'}; {'id': '186', 'type': 'string', 'children': [], 'value': "'filters'"}; {'id': '187', 'type': 'call', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'string', 'children': [], 'value': "' OR '"}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'list_comprehension', 'children': ['193', '196']}; {'id': '193', 'type': 'binary_operator', 'children': ['194', '195'], 'value': '%'}; {'id': '194', 'type': 'string', 'children': [], 'value': "'(%s)'"}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '196', 'type': 'for_in_clause', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'filters'}; {'id': '199', 'type': 'else_clause', 'children': ['200']}; {'id': '200', 'type': 'block', 'children': ['201']}; {'id': '201', 'type': 'expression_statement', 'children': ['202']}; {'id': '202', 'type': 'assignment', 'children': ['203', '206']}; {'id': '203', 'type': 'subscript', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'value_mapping'}; {'id': '205', 'type': 'string', 'children': [], 'value': "'filters'"}; {'id': '206', 'type': 'conditional_expression', 'children': ['207', '210', '211'], 'value': 'if'}; {'id': '207', 'type': 'subscript', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'filters'}; {'id': '209', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'filters'}; {'id': '211', 'type': 'None', 'children': []}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'call', 'children': ['214', '217']}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'value_mapping'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '217', 'type': 'argument_list', 'children': ['218']}; {'id': '218', 'type': 'attribute', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'stats'}; {'id': '221', 'type': 'expression_statement', 'children': ['222']}; {'id': '222', 'type': 'assignment', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'report'}; {'id': '224', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '225', 'type': 'for_statement', 'children': ['226', '227', '228']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'formats'}; {'id': '228', 'type': 'block', 'children': ['229']}; {'id': '229', 'type': 'if_statement', 'children': ['230', '233', '253', '277']}; {'id': '230', 'type': 'comparison_operator', 'children': ['231', '232'], 'value': '=='}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '232', 'type': 'string', 'children': [], 'value': "'text'"}; {'id': '233', 'type': 'block', 'children': ['234', '241']}; {'id': '234', 'type': 'expression_statement', 'children': ['235']}; {'id': '235', 'type': 'call', 'children': ['236', '239']}; {'id': '236', 'type': 'attribute', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '239', 'type': 'argument_list', 'children': ['240']}; {'id': '240', 'type': 'string', 'children': [], 'value': "'appends a text page report'"}; {'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': 'report'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '246', 'type': 'argument_list', 'children': ['247']}; {'id': '247', 'type': 'call', 'children': ['248', '251']}; {'id': '248', 'type': 'attribute', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'make_text_page'}; {'id': '251', 'type': 'argument_list', 'children': ['252']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'value_mapping'}; {'id': '253', 'type': 'elif_clause', 'children': ['254', '257']}; {'id': '254', 'type': 'comparison_operator', 'children': ['255', '256'], 'value': '=='}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '256', 'type': 'string', 'children': [], 'value': "'html'"}; {'id': '257', 'type': 'block', 'children': ['258', '265']}; {'id': '258', 'type': 'expression_statement', 'children': ['259']}; {'id': '259', 'type': 'call', 'children': ['260', '263']}; {'id': '260', 'type': 'attribute', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '263', 'type': 'argument_list', 'children': ['264']}; {'id': '264', 'type': 'string', 'children': [], 'value': "'appends a html page report'"}; {'id': '265', 'type': 'expression_statement', 'children': ['266']}; {'id': '266', 'type': 'call', 'children': ['267', '270']}; {'id': '267', 'type': 'attribute', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'report'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '270', 'type': 'argument_list', 'children': ['271']}; {'id': '271', 'type': 'call', 'children': ['272', '275']}; {'id': '272', 'type': 'attribute', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'make_html_page'}; {'id': '275', 'type': 'argument_list', 'children': ['276']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'value_mapping'}; {'id': '277', 'type': 'elif_clause', 'children': ['278', '281']}; {'id': '278', 'type': 'comparison_operator', 'children': ['279', '280'], 'value': '=='}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '280', 'type': 'string', 'children': [], 'value': "'csv'"}; {'id': '281', 'type': 'block', 'children': ['282', '289']}; {'id': '282', 'type': 'expression_statement', 'children': ['283']}; {'id': '283', 'type': 'call', 'children': ['284', '287']}; {'id': '284', 'type': 'attribute', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '287', 'type': 'argument_list', 'children': ['288']}; {'id': '288', 'type': 'string', 'children': [], 'value': "'extends with a list of csv subreports'"}; {'id': '289', 'type': 'expression_statement', 'children': ['290']}; {'id': '290', 'type': 'call', 'children': ['291', '294']}; {'id': '291', 'type': 'attribute', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'report'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '294', 'type': 'argument_list', 'children': ['295']}; {'id': '295', 'type': 'call', 'children': ['296', '299']}; {'id': '296', 'type': 'attribute', 'children': ['297', '298']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'make_csv_tables'}; {'id': '299', 'type': 'argument_list', 'children': []}; {'id': '300', 'type': 'return_statement', 'children': ['301']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'report'} | Make report item texts in a specified format. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_convert'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'residue_id'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'from_scheme'}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '9', 'type': 'block', 'children': ['10', '12', '50', '105', '160', '198']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'string', 'children': [], 'value': "'''The actual 'private' conversion function.'''"}; {'id': '12', 'type': 'if_statement', 'children': ['13', '16']}; {'id': '13', 'type': 'comparison_operator', 'children': ['14', '15'], 'value': '=='}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'from_scheme'}; {'id': '15', 'type': 'string', 'children': [], 'value': "'rosetta'"}; {'id': '16', 'type': 'block', 'children': ['17', '31']}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'atom_id'}; {'id': '20', 'type': 'subscript', 'children': ['21', '30']}; {'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': 'rosetta_to_atom_sequence_maps'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '27', 'type': 'argument_list', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '29', 'type': 'dictionary', 'children': []}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'residue_id'}; {'id': '31', 'type': 'if_statement', 'children': ['32', '35', '38']}; {'id': '32', 'type': 'comparison_operator', 'children': ['33', '34'], 'value': '=='}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '34', 'type': 'string', 'children': [], 'value': "'atom'"}; {'id': '35', 'type': 'block', 'children': ['36']}; {'id': '36', 'type': 'return_statement', 'children': ['37']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'atom_id'}; {'id': '38', 'type': 'else_clause', 'children': ['39']}; {'id': '39', 'type': 'block', 'children': ['40']}; {'id': '40', 'type': 'return_statement', 'children': ['41']}; {'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': '_convert'}; {'id': '45', 'type': 'argument_list', 'children': ['46', '47', '48', '49']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'atom_id'}; {'id': '48', 'type': 'string', 'children': [], 'value': "'atom'"}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '50', 'type': 'if_statement', 'children': ['51', '54']}; {'id': '51', 'type': 'comparison_operator', 'children': ['52', '53'], 'value': '=='}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'from_scheme'}; {'id': '53', 'type': 'string', 'children': [], 'value': "'atom'"}; {'id': '54', 'type': 'block', 'children': ['55']}; {'id': '55', 'type': 'if_statement', 'children': ['56', '59', '72']}; {'id': '56', 'type': 'comparison_operator', 'children': ['57', '58'], 'value': '=='}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '58', 'type': 'string', 'children': [], 'value': "'rosetta'"}; {'id': '59', 'type': 'block', 'children': ['60']}; {'id': '60', 'type': 'return_statement', 'children': ['61']}; {'id': '61', 'type': 'subscript', 'children': ['62', '71']}; {'id': '62', 'type': 'call', 'children': ['63', '68']}; {'id': '63', 'type': 'attribute', 'children': ['64', '67']}; {'id': '64', 'type': 'attribute', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'atom_to_rosetta_sequence_maps'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '68', 'type': 'argument_list', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '70', 'type': 'dictionary', 'children': []}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'residue_id'}; {'id': '72', 'type': 'else_clause', 'children': ['73']}; {'id': '73', 'type': 'block', 'children': ['74', '88', '95']}; {'id': '74', 'type': 'expression_statement', 'children': ['75']}; {'id': '75', 'type': 'assignment', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'seqres_id'}; {'id': '77', 'type': 'subscript', 'children': ['78', '87']}; {'id': '78', 'type': 'call', 'children': ['79', '84']}; {'id': '79', 'type': 'attribute', 'children': ['80', '83']}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'atom_to_seqres_sequence_maps'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '84', 'type': 'argument_list', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '86', 'type': 'dictionary', 'children': []}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'residue_id'}; {'id': '88', 'type': 'if_statement', 'children': ['89', '92']}; {'id': '89', 'type': 'comparison_operator', 'children': ['90', '91'], 'value': '=='}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '91', 'type': 'string', 'children': [], 'value': "'seqres'"}; {'id': '92', 'type': 'block', 'children': ['93']}; {'id': '93', 'type': 'return_statement', 'children': ['94']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'seqres_id'}; {'id': '95', 'type': 'return_statement', 'children': ['96']}; {'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': 'convert'}; {'id': '100', 'type': 'argument_list', 'children': ['101', '102', '103', '104']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'seqres_id'}; {'id': '103', 'type': 'string', 'children': [], 'value': "'seqres'"}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '105', 'type': 'if_statement', 'children': ['106', '109']}; {'id': '106', 'type': 'comparison_operator', 'children': ['107', '108'], 'value': '=='}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'from_scheme'}; {'id': '108', 'type': 'string', 'children': [], 'value': "'seqres'"}; {'id': '109', 'type': 'block', 'children': ['110']}; {'id': '110', 'type': 'if_statement', 'children': ['111', '114', '127']}; {'id': '111', 'type': 'comparison_operator', 'children': ['112', '113'], 'value': '=='}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '113', 'type': 'string', 'children': [], 'value': "'uniparc'"}; {'id': '114', 'type': 'block', 'children': ['115']}; {'id': '115', 'type': 'return_statement', 'children': ['116']}; {'id': '116', 'type': 'subscript', 'children': ['117', '126']}; {'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': 'seqres_to_uniparc_sequence_maps'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '123', 'type': 'argument_list', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '125', 'type': 'dictionary', 'children': []}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'residue_id'}; {'id': '127', 'type': 'else_clause', 'children': ['128']}; {'id': '128', 'type': 'block', 'children': ['129', '143', '150']}; {'id': '129', 'type': 'expression_statement', 'children': ['130']}; {'id': '130', 'type': 'assignment', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'atom_id'}; {'id': '132', 'type': 'subscript', 'children': ['133', '142']}; {'id': '133', 'type': 'call', 'children': ['134', '139']}; {'id': '134', 'type': 'attribute', 'children': ['135', '138']}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'seqres_to_atom_sequence_maps'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '139', 'type': 'argument_list', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '141', 'type': 'dictionary', 'children': []}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'residue_id'}; {'id': '143', 'type': 'if_statement', 'children': ['144', '147']}; {'id': '144', 'type': 'comparison_operator', 'children': ['145', '146'], 'value': '=='}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '146', 'type': 'string', 'children': [], 'value': "'atom'"}; {'id': '147', 'type': 'block', 'children': ['148']}; {'id': '148', 'type': 'return_statement', 'children': ['149']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'atom_id'}; {'id': '150', 'type': 'return_statement', 'children': ['151']}; {'id': '151', 'type': 'call', 'children': ['152', '155']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'convert'}; {'id': '155', 'type': 'argument_list', 'children': ['156', '157', '158', '159']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'atom_id'}; {'id': '158', 'type': 'string', 'children': [], 'value': "'atom'"}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '160', 'type': 'if_statement', 'children': ['161', '164']}; {'id': '161', 'type': 'comparison_operator', 'children': ['162', '163'], 'value': '=='}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'from_scheme'}; {'id': '163', 'type': 'string', 'children': [], 'value': "'uniparc'"}; {'id': '164', 'type': 'block', 'children': ['165', '179']}; {'id': '165', 'type': 'expression_statement', 'children': ['166']}; {'id': '166', 'type': 'assignment', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'seqres_id'}; {'id': '168', 'type': 'subscript', 'children': ['169', '178']}; {'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': 'self'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'uniparc_to_seqres_sequence_maps'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '175', 'type': 'argument_list', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '177', 'type': 'dictionary', 'children': []}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'residue_id'}; {'id': '179', 'type': 'if_statement', 'children': ['180', '183', '186']}; {'id': '180', 'type': 'comparison_operator', 'children': ['181', '182'], 'value': '=='}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '182', 'type': 'string', 'children': [], 'value': "'seqres'"}; {'id': '183', 'type': 'block', 'children': ['184']}; {'id': '184', 'type': 'return_statement', 'children': ['185']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'seqres_id'}; {'id': '186', 'type': 'else_clause', 'children': ['187']}; {'id': '187', 'type': 'block', 'children': ['188']}; {'id': '188', 'type': 'return_statement', 'children': ['189']}; {'id': '189', 'type': 'call', 'children': ['190', '193']}; {'id': '190', 'type': 'attribute', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': '_convert'}; {'id': '193', 'type': 'argument_list', 'children': ['194', '195', '196', '197']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'seqres_id'}; {'id': '196', 'type': 'string', 'children': [], 'value': "'seqres'"}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'to_scheme'}; {'id': '198', 'type': 'raise_statement', 'children': ['199']}; {'id': '199', 'type': 'call', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '201', 'type': 'argument_list', 'children': ['202']}; {'id': '202', 'type': 'string', 'children': [], 'value': '"We should never reach this line."'} | The actual 'private' conversion function. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_create_sequences'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '8', '40', '71', '86', '96', '106', '149', '153', '259', '336']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'string', 'children': [], 'value': "'''Get all of the Sequences - Rosetta, ATOM, SEQRES, FASTA, UniParc.'''"}; {'id': '8', 'type': 'try_statement', 'children': ['9', '31']}; {'id': '9', 'type': 'block', 'children': ['10']}; {'id': '10', 'type': 'expression_statement', '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': 'self'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'pdb'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'construct_pdb_to_rosetta_residue_map'}; {'id': '17', 'type': 'argument_list', 'children': ['18', '21', '26']}; {'id': '18', 'type': 'attribute', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'rosetta_scripts_path'}; {'id': '21', 'type': 'keyword_argument', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'rosetta_database_path'}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'rosetta_database_path'}; {'id': '26', 'type': 'keyword_argument', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'cache_dir'}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'cache_dir'}; {'id': '31', 'type': 'except_clause', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'PDBMissingMainchainAtomsException'}; {'id': '33', 'type': 'block', 'children': ['34']}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '39']}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'pdb_to_rosetta_residue_map_error'}; {'id': '39', 'type': 'True', 'children': []}; {'id': '40', 'type': 'if_statement', 'children': ['41', '46', '57']}; {'id': '41', 'type': 'comparison_operator', 'children': ['42', '45'], 'value': 'not'}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'pdb_id'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'do_not_use_the_sequence_aligner'}; {'id': '46', 'type': 'block', 'children': ['47']}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'assignment', 'children': ['49', '52']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'uniparc_sequences'}; {'id': '52', 'type': 'attribute', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'PDB_UniParc_SA'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'uniparc_sequences'}; {'id': '57', 'type': 'else_clause', 'children': ['58']}; {'id': '58', 'type': 'block', 'children': ['59']}; {'id': '59', 'type': 'expression_statement', 'children': ['60']}; {'id': '60', 'type': 'assignment', 'children': ['61', '64']}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'uniparc_sequences'}; {'id': '64', 'type': 'call', 'children': ['65', '70']}; {'id': '65', 'type': 'attribute', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'sifts'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'get_uniparc_sequences'}; {'id': '70', 'type': 'argument_list', 'children': []}; {'id': '71', 'type': 'expression_statement', 'children': ['72']}; {'id': '72', 'type': 'assignment', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'fasta_sequences'}; {'id': '76', 'type': 'call', 'children': ['77', '82']}; {'id': '77', 'type': 'attribute', 'children': ['78', '81']}; {'id': '78', 'type': 'attribute', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'FASTA'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'get_sequences'}; {'id': '82', 'type': 'argument_list', 'children': ['83']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'pdb_id'}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'assignment', 'children': ['88', '91']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'seqres_sequences'}; {'id': '91', 'type': 'attribute', 'children': ['92', '95']}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'pdb'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'seqres_sequences'}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'assignment', 'children': ['98', '101']}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'atom_sequences'}; {'id': '101', 'type': 'attribute', 'children': ['102', '105']}; {'id': '102', 'type': 'attribute', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'pdb'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'atom_sequences'}; {'id': '106', 'type': 'if_statement', 'children': ['107', '110', '137']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'pdb_to_rosetta_residue_map_error'}; {'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': 'self'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'rosetta_sequences'}; {'id': '116', 'type': 'dictionary', 'children': []}; {'id': '117', 'type': 'for_statement', 'children': ['118', '119', '126']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'c'}; {'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': 'self'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'atom_sequences'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '125', 'type': 'argument_list', 'children': []}; {'id': '126', 'type': 'block', 'children': ['127']}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'assignment', 'children': ['129', '134']}; {'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': 'rosetta_sequences'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '134', 'type': 'call', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'Sequence'}; {'id': '136', 'type': 'argument_list', 'children': []}; {'id': '137', 'type': 'else_clause', 'children': ['138']}; {'id': '138', 'type': 'block', 'children': ['139']}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'rosetta_sequences'}; {'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': 'pdb'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'rosetta_sequences'}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'assignment', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'uniparc_pdb_chain_mapping'}; {'id': '152', 'type': 'dictionary', 'children': []}; {'id': '153', 'type': 'if_statement', 'children': ['154', '159', '216']}; {'id': '154', 'type': 'comparison_operator', 'children': ['155', '158'], 'value': 'not'}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'pdb_id'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'do_not_use_the_sequence_aligner'}; {'id': '159', 'type': 'block', 'children': ['160']}; {'id': '160', 'type': 'for_statement', 'children': ['161', '164', '173']}; {'id': '161', 'type': 'pattern_list', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'pdb_chain_id'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'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': 'PDB_UniParc_SA'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'clustal_matches'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '172', 'type': 'argument_list', 'children': []}; {'id': '173', 'type': 'block', 'children': ['174']}; {'id': '174', 'type': 'if_statement', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '176', 'type': 'block', 'children': ['177', '187', '195', '207']}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '180', 'type': 'subscript', 'children': ['181', '186']}; {'id': '181', 'type': 'call', 'children': ['182', '185']}; {'id': '182', 'type': 'attribute', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '185', 'type': 'argument_list', 'children': []}; {'id': '186', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '187', 'type': 'assert_statement', 'children': ['188']}; {'id': '188', 'type': '()', 'children': ['189']}; {'id': '189', 'type': 'comparison_operator', 'children': ['190', '194'], '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': 'identifier', 'children': [], 'value': 'matches'}; {'id': '194', 'type': 'integer', 'children': [], 'value': '1'}; {'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': 'uniparc_pdb_chain_mapping'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '200', 'type': 'call', 'children': ['201', '204']}; {'id': '201', 'type': 'attribute', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'uniparc_pdb_chain_mapping'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '204', 'type': 'argument_list', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '206', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '207', 'type': 'expression_statement', 'children': ['208']}; {'id': '208', 'type': 'call', 'children': ['209', '214']}; {'id': '209', 'type': 'attribute', 'children': ['210', '213']}; {'id': '210', 'type': 'subscript', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'uniparc_pdb_chain_mapping'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '214', 'type': 'argument_list', 'children': ['215']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'pdb_chain_id'}; {'id': '216', 'type': 'else_clause', 'children': ['217']}; {'id': '217', 'type': 'block', 'children': ['218']}; {'id': '218', 'type': 'for_statement', 'children': ['219', '222', '233']}; {'id': '219', 'type': 'pattern_list', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'pdb_chain_id'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_ids'}; {'id': '222', 'type': 'call', 'children': ['223', '232']}; {'id': '223', 'type': 'attribute', 'children': ['224', '231']}; {'id': '224', 'type': 'call', 'children': ['225', '230']}; {'id': '225', 'type': 'attribute', 'children': ['226', '229']}; {'id': '226', 'type': 'attribute', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'sifts'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'get_pdb_chain_to_uniparc_id_map'}; {'id': '230', 'type': 'argument_list', 'children': []}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '232', 'type': 'argument_list', 'children': []}; {'id': '233', 'type': 'block', 'children': ['234']}; {'id': '234', 'type': 'for_statement', 'children': ['235', '236', '237']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_ids'}; {'id': '237', 'type': 'block', 'children': ['238', '250']}; {'id': '238', 'type': 'expression_statement', 'children': ['239']}; {'id': '239', 'type': 'assignment', 'children': ['240', '243']}; {'id': '240', 'type': 'subscript', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'uniparc_pdb_chain_mapping'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '243', 'type': 'call', 'children': ['244', '247']}; {'id': '244', 'type': 'attribute', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'uniparc_pdb_chain_mapping'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '247', 'type': 'argument_list', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '249', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '250', 'type': 'expression_statement', 'children': ['251']}; {'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': 'uniparc_pdb_chain_mapping'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '257', 'type': 'argument_list', 'children': ['258']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'pdb_chain_id'}; {'id': '259', 'type': 'for_statement', 'children': ['260', '263', '268']}; {'id': '260', 'type': 'pattern_list', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'pdb_chain_ids'}; {'id': '263', 'type': 'call', 'children': ['264', '267']}; {'id': '264', 'type': 'attribute', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'uniparc_pdb_chain_mapping'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '267', 'type': 'argument_list', 'children': []}; {'id': '268', 'type': 'block', 'children': ['269', '286', '294', '302', '313', '324']}; {'id': '269', 'type': 'expression_statement', 'children': ['270']}; {'id': '270', 'type': 'assignment', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'sequence_type'}; {'id': '272', 'type': 'call', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '274', 'type': 'argument_list', 'children': ['275']}; {'id': '275', 'type': 'list_comprehension', 'children': ['276', '283']}; {'id': '276', 'type': 'attribute', 'children': ['277', '282']}; {'id': '277', 'type': 'subscript', 'children': ['278', '281']}; {'id': '278', 'type': 'attribute', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'seqres_sequences'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'sequence_type'}; {'id': '283', 'type': 'for_in_clause', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'pdb_chain_ids'}; {'id': '286', 'type': 'assert_statement', 'children': ['287']}; {'id': '287', 'type': '()', 'children': ['288']}; {'id': '288', 'type': 'comparison_operator', 'children': ['289', '293'], 'value': '=='}; {'id': '289', 'type': 'call', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '291', 'type': 'argument_list', 'children': ['292']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'sequence_type'}; {'id': '293', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '294', 'type': 'expression_statement', 'children': ['295']}; {'id': '295', 'type': 'assignment', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'sequence_type'}; {'id': '297', 'type': 'call', 'children': ['298', '301']}; {'id': '298', 'type': 'attribute', 'children': ['299', '300']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'sequence_type'}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '301', 'type': 'argument_list', 'children': []}; {'id': '302', 'type': 'assert_statement', 'children': ['303']}; {'id': '303', 'type': '()', 'children': ['304']}; {'id': '304', 'type': 'comparison_operator', 'children': ['305', '312'], 'value': '=='}; {'id': '305', 'type': 'attribute', 'children': ['306', '311']}; {'id': '306', 'type': 'subscript', 'children': ['307', '310']}; {'id': '307', 'type': 'attribute', 'children': ['308', '309']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'uniparc_sequences'}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'sequence_type'}; {'id': '312', 'type': 'None', 'children': []}; {'id': '313', 'type': 'expression_statement', 'children': ['314']}; {'id': '314', 'type': 'call', 'children': ['315', '322']}; {'id': '315', 'type': 'attribute', 'children': ['316', '321']}; {'id': '316', 'type': 'subscript', 'children': ['317', '320']}; {'id': '317', 'type': 'attribute', 'children': ['318', '319']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'uniparc_sequences'}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'set_type'}; {'id': '322', 'type': 'argument_list', 'children': ['323']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'sequence_type'}; {'id': '324', 'type': 'for_statement', 'children': ['325', '326', '327']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'pdb_chain_ids'}; {'id': '327', 'type': 'block', 'children': ['328']}; {'id': '328', 'type': 'expression_statement', 'children': ['329']}; {'id': '329', 'type': 'assignment', 'children': ['330', '335']}; {'id': '330', 'type': 'subscript', 'children': ['331', '334']}; {'id': '331', 'type': 'attribute', 'children': ['332', '333']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'pdb_chain_to_uniparc_chain_mapping'}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'uniparc_chain_id'}; {'id': '336', 'type': 'for_statement', 'children': ['337', '340', '347']}; {'id': '337', 'type': 'pattern_list', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'sequence'}; {'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': 'seqres_sequences'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '346', 'type': 'argument_list', 'children': []}; {'id': '347', 'type': 'block', 'children': ['348']}; {'id': '348', 'type': 'expression_statement', 'children': ['349']}; {'id': '349', 'type': 'call', 'children': ['350', '357']}; {'id': '350', 'type': 'attribute', 'children': ['351', '356']}; {'id': '351', 'type': 'subscript', 'children': ['352', '355']}; {'id': '352', 'type': 'attribute', 'children': ['353', '354']}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'fasta_sequences'}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'chain_id'}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'set_type'}; {'id': '357', 'type': 'argument_list', 'children': ['358']}; {'id': '358', 'type': 'attribute', 'children': ['359', '360']}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'sequence'}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'sequence_type'} | Get all of the Sequences - Rosetta, ATOM, SEQRES, FASTA, UniParc. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '13']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'process'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '10']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'rdfsonly'}; {'id': '7', 'type': 'default_parameter', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '9', 'type': 'None', 'children': []}; {'id': '10', 'type': 'default_parameter', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'logging'}; {'id': '13', 'type': 'block', 'children': ['14', '16', '294']}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'string', 'children': [], 'value': "'''\n Prepare a statement into a triple ready for rdflib graph\n '''"}; {'id': '16', 'type': 'for_statement', 'children': ['17', '18', '23']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'link'}; {'id': '18', 'type': 'call', 'children': ['19', '22']}; {'id': '19', 'type': 'attribute', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '22', 'type': 'argument_list', 'children': []}; {'id': '23', 'type': 'block', 'children': ['24', '35', '46', '57', '68', '131', '176', '228', '235', '249', '266']}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'assignment', 'children': ['26', '30']}; {'id': '26', 'type': 'pattern_list', 'children': ['27', '28', '29']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '30', 'type': 'subscript', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'link'}; {'id': '32', 'type': 'slice', 'children': ['33', '34']}; {'id': '33', 'type': 'colon', 'children': []}; {'id': '34', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '35', 'type': 'if_statement', 'children': ['36', '44']}; {'id': '36', 'type': 'comparison_operator', 'children': ['37', '38'], 'value': '=='}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '38', 'type': 'binary_operator', 'children': ['39', '43'], 'value': '+'}; {'id': '39', 'type': '()', 'children': ['40']}; {'id': '40', 'type': 'boolean_operator', 'children': ['41', '42'], 'value': 'or'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '42', 'type': 'string', 'children': [], 'value': "''"}; {'id': '43', 'type': 'string', 'children': [], 'value': "'@docheader'"}; {'id': '44', 'type': 'block', 'children': ['45']}; {'id': '45', 'type': 'continue_statement', 'children': []}; {'id': '46', 'type': 'if_statement', 'children': ['47', '50']}; {'id': '47', 'type': 'comparison_operator', 'children': ['48', '49'], 'value': 'in'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'RESOURCE_MAPPING'}; {'id': '50', 'type': 'block', 'children': ['51']}; {'id': '51', 'type': 'expression_statement', 'children': ['52']}; {'id': '52', 'type': 'assignment', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '54', 'type': 'subscript', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'RESOURCE_MAPPING'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '57', 'type': 'if_statement', 'children': ['58', '61']}; {'id': '58', 'type': 'comparison_operator', 'children': ['59', '60'], 'value': 'in'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'RESOURCE_MAPPING'}; {'id': '61', 'type': 'block', 'children': ['62']}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '65', 'type': 'subscript', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'RESOURCE_MAPPING'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '68', 'type': 'if_statement', 'children': ['69', '74']}; {'id': '69', 'type': 'comparison_operator', 'children': ['70', '71'], 'value': '=='}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '71', 'type': 'binary_operator', 'children': ['72', '73'], 'value': '+'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'VERSA_BASEIRI'}; {'id': '73', 'type': 'string', 'children': [], 'value': "'refines'"}; {'id': '74', 'type': 'block', 'children': ['75', '88']}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'tlinks'}; {'id': '78', 'type': 'call', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '85', 'type': 'argument_list', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'TYPE_REL'}; {'id': '88', 'type': 'if_statement', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'tlinks'}; {'id': '90', 'type': 'block', 'children': ['91']}; {'id': '91', 'type': 'if_statement', 'children': ['92', '101', '111']}; {'id': '92', 'type': 'comparison_operator', 'children': ['93', '98'], 'value': '=='}; {'id': '93', 'type': 'subscript', 'children': ['94', '97']}; {'id': '94', 'type': 'subscript', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'tlinks'}; {'id': '96', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'TARGET'}; {'id': '98', 'type': 'binary_operator', 'children': ['99', '100'], 'value': '+'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'VERSA_BASEIRI'}; {'id': '100', 'type': 'string', 'children': [], 'value': "'Resource'"}; {'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': 'p'}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'I'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'binary_operator', 'children': ['109', '110'], 'value': '+'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'RDFS_NAMESPACE'}; {'id': '110', 'type': 'string', 'children': [], 'value': "'subClassOf'"}; {'id': '111', 'type': 'elif_clause', 'children': ['112', '121']}; {'id': '112', 'type': 'comparison_operator', 'children': ['113', '118'], 'value': '=='}; {'id': '113', 'type': 'subscript', 'children': ['114', '117']}; {'id': '114', 'type': 'subscript', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'tlinks'}; {'id': '116', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'TARGET'}; {'id': '118', 'type': 'binary_operator', 'children': ['119', '120'], 'value': '+'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'VERSA_BASEIRI'}; {'id': '120', 'type': 'string', 'children': [], 'value': "'Property'"}; {'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': 'p'}; {'id': '125', 'type': 'call', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'I'}; {'id': '127', 'type': 'argument_list', 'children': ['128']}; {'id': '128', 'type': 'binary_operator', 'children': ['129', '130'], 'value': '+'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'RDFS_NAMESPACE'}; {'id': '130', 'type': 'string', 'children': [], 'value': "'subPropertyOf'"}; {'id': '131', 'type': 'if_statement', 'children': ['132', '137']}; {'id': '132', 'type': 'comparison_operator', 'children': ['133', '134'], 'value': '=='}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '134', 'type': 'binary_operator', 'children': ['135', '136'], 'value': '+'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'VERSA_BASEIRI'}; {'id': '136', 'type': 'string', 'children': [], 'value': "'properties'"}; {'id': '137', 'type': 'block', 'children': ['138', '154', '175']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'assignment', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'suri'}; {'id': '141', 'type': 'conditional_expression', 'children': ['142', '152', '153'], 'value': 'if'}; {'id': '142', 'type': 'call', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'I'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'call', 'children': ['146', '149']}; {'id': '146', 'type': 'attribute', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'iri'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'absolutize'}; {'id': '149', 'type': 'argument_list', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 's'}; {'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': 'target'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'tuple', 'children': ['161', '165', '171']}; {'id': '161', 'type': 'call', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'URIRef'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '165', 'type': 'call', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'URIRef'}; {'id': '167', 'type': 'argument_list', 'children': ['168']}; {'id': '168', 'type': 'binary_operator', 'children': ['169', '170'], 'value': '+'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'RDFS_NAMESPACE'}; {'id': '170', 'type': 'string', 'children': [], 'value': "'domain'"}; {'id': '171', 'type': 'call', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'URIRef'}; {'id': '173', 'type': 'argument_list', 'children': ['174']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'suri'}; {'id': '175', 'type': 'continue_statement', 'children': []}; {'id': '176', 'type': 'if_statement', 'children': ['177', '182']}; {'id': '177', 'type': 'comparison_operator', 'children': ['178', '179'], 'value': '=='}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '179', 'type': 'binary_operator', 'children': ['180', '181'], 'value': '+'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'VERSA_BASEIRI'}; {'id': '181', 'type': 'string', 'children': [], 'value': "'value'"}; {'id': '182', 'type': 'block', 'children': ['183']}; {'id': '183', 'type': 'if_statement', 'children': ['184', '189']}; {'id': '184', 'type': 'comparison_operator', 'children': ['185', '186'], 'value': 'not'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '186', 'type': 'list', 'children': ['187', '188'], 'value': "['Literal', 'IRI']"}; {'id': '187', 'type': 'string', 'children': [], 'value': "'Literal'"}; {'id': '188', 'type': 'string', 'children': [], 'value': "'IRI'"}; {'id': '189', 'type': 'block', 'children': ['190', '206', '227']}; {'id': '190', 'type': 'expression_statement', 'children': ['191']}; {'id': '191', 'type': 'assignment', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'ouri'}; {'id': '193', 'type': 'conditional_expression', 'children': ['194', '204', '205'], 'value': 'if'}; {'id': '194', 'type': 'call', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'I'}; {'id': '196', 'type': 'argument_list', 'children': ['197']}; {'id': '197', 'type': 'call', 'children': ['198', '201']}; {'id': '198', 'type': 'attribute', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'iri'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'absolutize'}; {'id': '201', 'type': 'argument_list', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '206', 'type': 'expression_statement', 'children': ['207']}; {'id': '207', 'type': 'call', 'children': ['208', '211']}; {'id': '208', 'type': 'attribute', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '211', 'type': 'argument_list', 'children': ['212']}; {'id': '212', 'type': 'tuple', 'children': ['213', '217', '223']}; {'id': '213', 'type': 'call', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'URIRef'}; {'id': '215', 'type': 'argument_list', 'children': ['216']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '217', 'type': 'call', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'URIRef'}; {'id': '219', 'type': 'argument_list', 'children': ['220']}; {'id': '220', 'type': 'binary_operator', 'children': ['221', '222'], 'value': '+'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'RDFS_NAMESPACE'}; {'id': '222', 'type': 'string', 'children': [], 'value': "'range'"}; {'id': '223', 'type': 'call', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'URIRef'}; {'id': '225', 'type': 'argument_list', 'children': ['226']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'ouri'}; {'id': '227', 'type': 'continue_statement', 'children': []}; {'id': '228', 'type': 'expression_statement', 'children': ['229']}; {'id': '229', 'type': 'assignment', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '231', 'type': 'call', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'URIRef'}; {'id': '233', 'type': 'argument_list', 'children': ['234']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'assignment', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '238', 'type': 'conditional_expression', 'children': ['239', '242', '245'], 'value': 'if'}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'RDF'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '242', 'type': 'comparison_operator', 'children': ['243', '244'], 'value': '=='}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'TYPE_REL'}; {'id': '245', 'type': 'call', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'URIRef'}; {'id': '247', 'type': 'argument_list', 'children': ['248']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '249', 'type': 'expression_statement', 'children': ['250']}; {'id': '250', 'type': 'assignment', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '252', 'type': 'conditional_expression', 'children': ['253', '257', '262'], 'value': 'if'}; {'id': '253', 'type': 'call', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'URIRef'}; {'id': '255', 'type': 'argument_list', 'children': ['256']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '257', 'type': 'call', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '259', 'type': 'argument_list', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'I'}; {'id': '262', 'type': 'call', 'children': ['263', '264']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'Literal'}; {'id': '264', 'type': 'argument_list', 'children': ['265']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '266', 'type': 'if_statement', 'children': ['267', '283']}; {'id': '267', 'type': 'boolean_operator', 'children': ['268', '277'], 'value': 'or'}; {'id': '268', 'type': 'boolean_operator', 'children': ['269', '271'], 'value': 'or'}; {'id': '269', 'type': 'not_operator', 'children': ['270']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'rdfsonly'}; {'id': '271', 'type': 'call', 'children': ['272', '275']}; {'id': '272', 'type': 'attribute', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '275', 'type': 'argument_list', 'children': ['276']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'RDF_NAMESPACE'}; {'id': '277', 'type': 'call', 'children': ['278', '281']}; {'id': '278', 'type': 'attribute', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '281', 'type': 'argument_list', 'children': ['282']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'RDFS_NAMESPACE'}; {'id': '283', 'type': 'block', 'children': ['284']}; {'id': '284', 'type': 'expression_statement', 'children': ['285']}; {'id': '285', 'type': 'call', 'children': ['286', '289']}; {'id': '286', 'type': 'attribute', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '289', 'type': 'argument_list', 'children': ['290']}; {'id': '290', 'type': 'tuple', 'children': ['291', '292', '293']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'o'}; {'id': '294', 'type': 'return_statement', 'children': []} | Prepare a statement into a triple ready for rdflib graph |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'plot_places'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '8', '15', '25', '29', '33', '90', '133', '149', '159', '169', '212']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'string', 'children': [], 'value': "'''Plot places where the agent has been and generated a spirograph.\n '''"}; {'id': '8', 'type': 'import_from_statement', 'children': ['9', '11']}; {'id': '9', 'type': 'dotted_name', 'children': ['10']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'matplotlib'}; {'id': '11', 'type': 'aliased_import', 'children': ['12', '14']}; {'id': '12', 'type': 'dotted_name', 'children': ['13']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'pyplot'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '15', 'type': 'expression_statement', 'children': ['16']}; {'id': '16', 'type': 'assignment', 'children': ['17', '20']}; {'id': '17', 'type': 'pattern_list', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'fig'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'ax'}; {'id': '20', 'type': 'call', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'subplots'}; {'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': 'x'}; {'id': '28', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'assignment', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '32', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '33', 'type': 'if_statement', 'children': ['34', '42']}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '41'], 'value': '>'}; {'id': '35', 'type': 'call', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '37', 'type': 'argument_list', 'children': ['38']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'arg_history'}; {'id': '41', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '42', 'type': 'block', 'children': ['43', '47', '51', '75']}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'xs'}; {'id': '46', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'assignment', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'ys'}; {'id': '50', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '51', 'type': 'for_statement', 'children': ['52', '53', '56']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'arg_history'}; {'id': '56', 'type': 'block', 'children': ['57', '66']}; {'id': '57', 'type': 'expression_statement', 'children': ['58']}; {'id': '58', 'type': 'call', 'children': ['59', '62']}; {'id': '59', 'type': 'attribute', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'xs'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '62', 'type': 'argument_list', 'children': ['63']}; {'id': '63', 'type': 'subscript', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '65', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'call', 'children': ['68', '71']}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'ys'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '71', 'type': 'argument_list', 'children': ['72']}; {'id': '72', 'type': 'subscript', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '74', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'call', 'children': ['77', '80']}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'ax'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'plot'}; {'id': '80', 'type': 'argument_list', 'children': ['81', '82', '83']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'xs'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'ys'}; {'id': '83', 'type': 'keyword_argument', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '85', 'type': 'tuple', 'children': ['86', '87', '88', '89']}; {'id': '86', 'type': 'float', 'children': [], 'value': '0.0'}; {'id': '87', 'type': 'float', 'children': [], 'value': '0.0'}; {'id': '88', 'type': 'float', 'children': [], 'value': '1.0'}; {'id': '89', 'type': 'float', 'children': [], 'value': '0.1'}; {'id': '90', 'type': 'for_statement', 'children': ['91', '92', '95']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'A'}; {'id': '95', 'type': 'block', 'children': ['96']}; {'id': '96', 'type': 'if_statement', 'children': ['97', '102']}; {'id': '97', 'type': 'comparison_operator', 'children': ['98', '101'], 'value': '=='}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'self_criticism'}; {'id': '101', 'type': 'string', 'children': [], 'value': "'pass'"}; {'id': '102', 'type': 'block', 'children': ['103', '115', '124']}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'assignment', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '106', 'type': 'subscript', 'children': ['107', '114']}; {'id': '107', 'type': 'subscript', 'children': ['108', '111']}; {'id': '108', 'type': 'attribute', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'framings'}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'creator'}; {'id': '114', 'type': 'string', 'children': [], 'value': "'args'"}; {'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': 'x'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '120', 'type': 'argument_list', 'children': ['121']}; {'id': '121', 'type': 'subscript', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '123', 'type': 'integer', 'children': [], 'value': '0'}; {'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': 'y'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'subscript', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '132', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'assignment', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'sc'}; {'id': '136', 'type': 'call', 'children': ['137', '140']}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'ax'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'scatter'}; {'id': '140', 'type': 'argument_list', 'children': ['141', '142', '143', '146']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '143', 'type': 'keyword_argument', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'marker'}; {'id': '145', 'type': 'string', 'children': [], 'value': '"x"'}; {'id': '146', 'type': 'keyword_argument', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'color'}; {'id': '148', 'type': 'string', 'children': [], 'value': "'red'"}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'call', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'ax'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'set_xlim'}; {'id': '154', 'type': 'argument_list', 'children': ['155']}; {'id': '155', 'type': 'list', 'children': ['156', '158'], 'value': '[-200, 200]'}; {'id': '156', 'type': 'unary_operator', 'children': ['157'], 'value': '-'}; {'id': '157', 'type': 'integer', 'children': [], 'value': '200'}; {'id': '158', 'type': 'integer', 'children': [], 'value': '200'}; {'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': 'ax'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'set_ylim'}; {'id': '164', 'type': 'argument_list', 'children': ['165']}; {'id': '165', 'type': 'list', 'children': ['166', '168'], 'value': '[-200, 200]'}; {'id': '166', 'type': 'unary_operator', 'children': ['167'], 'value': '-'}; {'id': '167', 'type': 'integer', 'children': [], 'value': '200'}; {'id': '168', 'type': 'integer', 'children': [], 'value': '200'}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'assignment', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'agent_vars'}; {'id': '172', 'type': 'call', 'children': ['173', '176']}; {'id': '173', 'type': 'attribute', 'children': ['174', '175']}; {'id': '174', 'type': 'string', 'children': [], 'value': '"{}_{}_{}{}_last={}_stmem=list{}_veto={}_sc={}_jump={}_sw={}_mr={}_maxN"'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '176', 'type': 'argument_list', 'children': ['177', '180', '183', '186', '189', '192', '197', '200', '203', '206', '209']}; {'id': '177', 'type': 'attribute', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '180', 'type': 'attribute', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'age'}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'env_learning_method'}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'env_learning_amount'}; {'id': '189', 'type': 'attribute', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'env_learn_on_add'}; {'id': '192', 'type': 'attribute', 'children': ['193', '196']}; {'id': '193', 'type': 'attribute', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'stmem'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'length'}; {'id': '197', 'type': 'attribute', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': '_novelty_threshold'}; {'id': '200', 'type': 'attribute', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': '_own_threshold'}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'jump'}; {'id': '206', 'type': 'attribute', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'search_width'}; {'id': '209', 'type': 'attribute', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'move_radius'}; {'id': '212', 'type': 'if_statement', 'children': ['213', '218', '390']}; {'id': '213', 'type': 'comparison_operator', 'children': ['214', '217'], 'value': 'is'}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '217', 'type': 'None', 'children': []}; {'id': '218', 'type': 'block', 'children': ['219', '240', '247', '253', '274']}; {'id': '219', 'type': 'expression_statement', 'children': ['220']}; {'id': '220', 'type': 'assignment', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'imname'}; {'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': 'os'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '228', 'type': 'argument_list', 'children': ['229', '234']}; {'id': '229', 'type': 'attribute', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'folder'}; {'id': '234', 'type': 'call', 'children': ['235', '238']}; {'id': '235', 'type': 'attribute', 'children': ['236', '237']}; {'id': '236', 'type': 'string', 'children': [], 'value': "'{}.png'"}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '238', 'type': 'argument_list', 'children': ['239']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'agent_vars'}; {'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': 'plt'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'savefig'}; {'id': '245', 'type': 'argument_list', 'children': ['246']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'imname'}; {'id': '247', 'type': 'expression_statement', 'children': ['248']}; {'id': '248', 'type': 'call', 'children': ['249', '252']}; {'id': '249', 'type': 'attribute', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'close'}; {'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': 'fname'}; {'id': '256', 'type': 'call', 'children': ['257', '262']}; {'id': '257', 'type': 'attribute', 'children': ['258', '261']}; {'id': '258', 'type': 'attribute', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '262', 'type': 'argument_list', 'children': ['263', '268']}; {'id': '263', 'type': 'attribute', 'children': ['264', '267']}; {'id': '264', 'type': 'attribute', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'folder'}; {'id': '268', 'type': 'call', 'children': ['269', '272']}; {'id': '269', 'type': 'attribute', 'children': ['270', '271']}; {'id': '270', 'type': 'string', 'children': [], 'value': "'{}.txt'"}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '272', 'type': 'argument_list', 'children': ['273']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'agent_vars'}; {'id': '274', 'type': 'with_statement', 'children': ['275', '285']}; {'id': '275', 'type': 'with_clause', 'children': ['276']}; {'id': '276', 'type': 'with_item', 'children': ['277']}; {'id': '277', 'type': 'as_pattern', 'children': ['278', '283']}; {'id': '278', 'type': 'call', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '280', 'type': 'argument_list', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'fname'}; {'id': '282', 'type': 'string', 'children': [], 'value': '"w"'}; {'id': '283', 'type': 'as_pattern_target', 'children': ['284']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '285', 'type': 'block', 'children': ['286', '305', '312', '331', '338', '357', '364', '383']}; {'id': '286', 'type': 'expression_statement', 'children': ['287']}; {'id': '287', 'type': 'call', 'children': ['288', '291']}; {'id': '288', 'type': 'attribute', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '291', 'type': 'argument_list', 'children': ['292']}; {'id': '292', 'type': 'call', 'children': ['293', '296']}; {'id': '293', 'type': 'attribute', 'children': ['294', '295']}; {'id': '294', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '296', 'type': 'argument_list', 'children': ['297']}; {'id': '297', 'type': 'list_comprehension', 'children': ['298', '302']}; {'id': '298', 'type': 'call', 'children': ['299', '300']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '300', 'type': 'argument_list', 'children': ['301']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '302', 'type': 'for_in_clause', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'xs'}; {'id': '305', 'type': 'expression_statement', 'children': ['306']}; {'id': '306', 'type': 'call', 'children': ['307', '310']}; {'id': '307', 'type': 'attribute', 'children': ['308', '309']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '310', 'type': 'argument_list', 'children': ['311']}; {'id': '311', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '312', 'type': 'expression_statement', 'children': ['313']}; {'id': '313', 'type': 'call', 'children': ['314', '317']}; {'id': '314', 'type': 'attribute', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '317', 'type': 'argument_list', 'children': ['318']}; {'id': '318', 'type': 'call', 'children': ['319', '322']}; {'id': '319', 'type': 'attribute', 'children': ['320', '321']}; {'id': '320', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '322', 'type': 'argument_list', 'children': ['323']}; {'id': '323', 'type': 'list_comprehension', 'children': ['324', '328']}; {'id': '324', 'type': 'call', 'children': ['325', '326']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '326', 'type': 'argument_list', 'children': ['327']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '328', 'type': 'for_in_clause', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'ys'}; {'id': '331', 'type': 'expression_statement', 'children': ['332']}; {'id': '332', 'type': 'call', 'children': ['333', '336']}; {'id': '333', 'type': 'attribute', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '336', 'type': 'argument_list', 'children': ['337']}; {'id': '337', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'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': 'f'}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '343', 'type': 'argument_list', 'children': ['344']}; {'id': '344', 'type': 'call', 'children': ['345', '348']}; {'id': '345', 'type': 'attribute', 'children': ['346', '347']}; {'id': '346', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '348', 'type': 'argument_list', 'children': ['349']}; {'id': '349', 'type': 'list_comprehension', 'children': ['350', '354']}; {'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': 'e'}; {'id': '354', 'type': 'for_in_clause', 'children': ['355', '356']}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'x'}; {'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': 'f'}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '362', 'type': 'argument_list', 'children': ['363']}; {'id': '363', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '364', 'type': 'expression_statement', 'children': ['365']}; {'id': '365', 'type': 'call', 'children': ['366', '369']}; {'id': '366', 'type': 'attribute', 'children': ['367', '368']}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '369', 'type': 'argument_list', 'children': ['370']}; {'id': '370', 'type': 'call', 'children': ['371', '374']}; {'id': '371', 'type': 'attribute', 'children': ['372', '373']}; {'id': '372', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '374', 'type': 'argument_list', 'children': ['375']}; {'id': '375', 'type': 'list_comprehension', 'children': ['376', '380']}; {'id': '376', 'type': 'call', 'children': ['377', '378']}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '378', 'type': 'argument_list', 'children': ['379']}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '380', 'type': 'for_in_clause', 'children': ['381', '382']}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '382', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '383', 'type': 'expression_statement', 'children': ['384']}; {'id': '384', 'type': 'call', 'children': ['385', '388']}; {'id': '385', 'type': 'attribute', 'children': ['386', '387']}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '387', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '388', 'type': 'argument_list', 'children': ['389']}; {'id': '389', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '390', 'type': 'else_clause', 'children': ['391']}; {'id': '391', 'type': 'block', 'children': ['392']}; {'id': '392', 'type': 'expression_statement', 'children': ['393']}; {'id': '393', 'type': 'call', 'children': ['394', '397']}; {'id': '394', 'type': 'attribute', 'children': ['395', '396']}; {'id': '395', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '396', 'type': 'identifier', 'children': [], 'value': 'show'}; {'id': '397', 'type': 'argument_list', 'children': []} | Plot places where the agent has been and generated a spirograph. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'df'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'default_parameter', 'children': ['5', '6']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '6', 'type': 'string', 'children': [], 'value': "'GB'"}; {'id': '7', 'type': 'block', 'children': ['8', '10', '14', '25', '32', '38', '56', '66', '75', '101', '112', '130', '317']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'string', 'children': [], 'value': "'''A wrapper for the df shell command.'''"}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '13', 'type': 'dictionary', 'children': []}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '17', 'type': 'list', 'children': ['18', '19', '20', '21', '22', '23', '24'], 'value': "['Filesystem', 'Type', 'Size', 'Used', 'Available', 'Capacity', 'MountedOn']"}; {'id': '18', 'type': 'string', 'children': [], 'value': "'Filesystem'"}; {'id': '19', 'type': 'string', 'children': [], 'value': "'Type'"}; {'id': '20', 'type': 'string', 'children': [], 'value': "'Size'"}; {'id': '21', 'type': 'string', 'children': [], 'value': "'Used'"}; {'id': '22', 'type': 'string', 'children': [], 'value': "'Available'"}; {'id': '23', 'type': 'string', 'children': [], 'value': "'Capacity'"}; {'id': '24', 'type': 'string', 'children': [], 'value': "'MountedOn'"}; {'id': '25', 'type': 'expression_statement', 'children': ['26']}; {'id': '26', 'type': 'assignment', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '28', 'type': 'call', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '30', 'type': 'argument_list', 'children': ['31']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'assignment', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '35', 'type': 'subscript', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'df_conversions'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '41', 'type': 'call', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'subprocess'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'Popen'}; {'id': '45', 'type': 'argument_list', 'children': ['46', '51']}; {'id': '46', 'type': 'keyword_argument', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '48', 'type': 'list', 'children': ['49', '50'], 'value': "['df', '-TP']"}; {'id': '49', 'type': 'string', 'children': [], 'value': "'df'"}; {'id': '50', 'type': 'string', 'children': [], 'value': "'-TP'"}; {'id': '51', 'type': 'keyword_argument', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'stdout'}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'subprocess'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'PIPE'}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '61']}; {'id': '58', 'type': 'pattern_list', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'stdout'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '61', 'type': 'call', 'children': ['62', '65']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'communicate'}; {'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': 'lines'}; {'id': '69', 'type': 'call', 'children': ['70', '73']}; {'id': '70', 'type': 'attribute', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'stdout'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '80']}; {'id': '77', 'type': 'subscript', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '79', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '80', 'type': 'call', 'children': ['81', '98']}; {'id': '81', 'type': 'attribute', 'children': ['82', '97']}; {'id': '82', 'type': 'call', 'children': ['83', '94']}; {'id': '83', 'type': 'attribute', 'children': ['84', '93']}; {'id': '84', 'type': 'call', 'children': ['85', '90']}; {'id': '85', 'type': 'attribute', 'children': ['86', '89']}; {'id': '86', 'type': 'subscript', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '88', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '90', 'type': 'argument_list', 'children': ['91', '92']}; {'id': '91', 'type': 'string', 'children': [], 'value': '"Mounted on"'}; {'id': '92', 'type': 'string', 'children': [], 'value': '"MountedOn"'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '94', 'type': 'argument_list', 'children': ['95', '96']}; {'id': '95', 'type': 'string', 'children': [], 'value': '"1K-blocks"'}; {'id': '96', 'type': 'string', 'children': [], 'value': '"Size"'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '98', 'type': 'argument_list', 'children': ['99', '100']}; {'id': '99', 'type': 'string', 'children': [], 'value': '"1024-blocks"'}; {'id': '100', 'type': 'string', 'children': [], 'value': '"Size"'}; {'id': '101', 'type': 'assert_statement', 'children': ['102']}; {'id': '102', 'type': '()', 'children': ['103']}; {'id': '103', 'type': 'comparison_operator', 'children': ['104', '111'], 'value': '=='}; {'id': '104', 'type': 'call', 'children': ['105', '110']}; {'id': '105', 'type': 'attribute', 'children': ['106', '109']}; {'id': '106', 'type': 'subscript', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '108', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '110', 'type': 'argument_list', 'children': []}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'id': '113', 'type': 'assignment', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '115', 'type': 'list_comprehension', 'children': ['116', '121', '124']}; {'id': '116', 'type': 'call', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'l'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '120', 'type': 'argument_list', 'children': []}; {'id': '121', 'type': 'for_in_clause', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'l'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '124', 'type': 'if_clause', 'children': ['125']}; {'id': '125', 'type': 'call', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'l'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '129', 'type': 'argument_list', 'children': []}; {'id': '130', 'type': 'for_statement', 'children': ['131', '132', '137']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '132', 'type': 'subscript', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '134', 'type': 'slice', 'children': ['135', '136']}; {'id': '135', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '136', 'type': 'colon', 'children': []}; {'id': '137', 'type': 'block', 'children': ['138', '146', '154', '162', '166', '187', '200', '210', '218', '231', '244', '259', '309']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'assignment', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'tokens'}; {'id': '141', 'type': 'call', 'children': ['142', '145']}; {'id': '142', 'type': 'attribute', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '145', 'type': 'argument_list', 'children': []}; {'id': '146', 'type': 'if_statement', 'children': ['147', '152']}; {'id': '147', 'type': 'comparison_operator', 'children': ['148', '151'], 'value': '=='}; {'id': '148', 'type': 'subscript', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'tokens'}; {'id': '150', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '151', 'type': 'string', 'children': [], 'value': "'none'"}; {'id': '152', 'type': 'block', 'children': ['153']}; {'id': '153', 'type': 'continue_statement', 'children': []}; {'id': '154', 'type': 'assert_statement', 'children': ['155']}; {'id': '155', 'type': '()', 'children': ['156']}; {'id': '156', 'type': 'comparison_operator', 'children': ['157', '161'], 'value': '=='}; {'id': '157', 'type': 'call', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'tokens'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '162', 'type': 'expression_statement', 'children': ['163']}; {'id': '163', 'type': 'assignment', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '165', 'type': 'dictionary', 'children': []}; {'id': '166', 'type': 'for_statement', 'children': ['167', '168', '176']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '168', 'type': 'call', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '170', 'type': 'argument_list', 'children': ['171', '172']}; {'id': '171', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '172', 'type': 'call', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '174', 'type': 'argument_list', 'children': ['175']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '176', 'type': 'block', 'children': ['177']}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '184']}; {'id': '179', 'type': 'subscript', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '181', 'type': 'subscript', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '184', 'type': 'subscript', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'tokens'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'assignment', 'children': ['189', '192']}; {'id': '189', 'type': 'subscript', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '191', 'type': 'string', 'children': [], 'value': "'Size'"}; {'id': '192', 'type': 'binary_operator', 'children': ['193', '199'], 'value': '/'}; {'id': '193', 'type': 'call', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '195', 'type': 'argument_list', 'children': ['196']}; {'id': '196', 'type': 'subscript', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '198', 'type': 'string', 'children': [], 'value': "'Size'"}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '200', 'type': 'assert_statement', 'children': ['201']}; {'id': '201', 'type': '()', 'children': ['202']}; {'id': '202', 'type': 'call', 'children': ['203', '208']}; {'id': '203', 'type': 'attribute', 'children': ['204', '207']}; {'id': '204', 'type': 'subscript', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '206', 'type': 'string', 'children': [], 'value': "'Capacity'"}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '208', 'type': 'argument_list', 'children': ['209']}; {'id': '209', 'type': 'string', 'children': [], 'value': '"%"'}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'assignment', 'children': ['212', '215']}; {'id': '212', 'type': 'subscript', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '214', 'type': 'string', 'children': [], 'value': "'Use%'"}; {'id': '215', 'type': 'subscript', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '217', 'type': 'string', 'children': [], 'value': "'Capacity'"}; {'id': '218', 'type': 'expression_statement', 'children': ['219']}; {'id': '219', 'type': 'assignment', 'children': ['220', '223']}; {'id': '220', 'type': 'subscript', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '222', 'type': 'string', 'children': [], 'value': "'Used'"}; {'id': '223', 'type': 'binary_operator', 'children': ['224', '230'], 'value': '/'}; {'id': '224', 'type': 'call', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '226', 'type': 'argument_list', 'children': ['227']}; {'id': '227', 'type': 'subscript', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '229', 'type': 'string', 'children': [], 'value': "'Used'"}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'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': "'Available'"}; {'id': '236', 'type': 'binary_operator', 'children': ['237', '243'], 'value': '/'}; {'id': '237', 'type': 'call', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '239', 'type': 'argument_list', 'children': ['240']}; {'id': '240', 'type': 'subscript', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '242', 'type': 'string', 'children': [], 'value': "'Available'"}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '244', 'type': 'expression_statement', 'children': ['245']}; {'id': '245', 'type': 'assignment', 'children': ['246', '249']}; {'id': '246', 'type': 'subscript', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '248', 'type': 'string', 'children': [], 'value': "'Using'"}; {'id': '249', 'type': 'binary_operator', 'children': ['250', '251'], 'value': '*'}; {'id': '250', 'type': 'integer', 'children': [], 'value': '100'}; {'id': '251', 'type': '()', 'children': ['252']}; {'id': '252', 'type': 'binary_operator', 'children': ['253', '256'], 'value': '/'}; {'id': '253', 'type': 'subscript', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '255', 'type': 'string', 'children': [], 'value': "'Used'"}; {'id': '256', 'type': 'subscript', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '258', 'type': 'string', 'children': [], 'value': "'Size'"}; {'id': '259', 'type': 'if_statement', 'children': ['260', '268', '276']}; {'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': 'd'}; {'id': '264', 'type': 'string', 'children': [], 'value': "'Type'"}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '266', 'type': 'argument_list', 'children': ['267']}; {'id': '267', 'type': 'string', 'children': [], 'value': "'ext'"}; {'id': '268', 'type': 'block', 'children': ['269', '270']}; {'id': '269', 'type': 'pass_statement', 'children': []}; {'id': '270', 'type': 'expression_statement', 'children': ['271']}; {'id': '271', 'type': 'augmented_assignment', 'children': ['272', '275'], 'value': '+='}; {'id': '272', 'type': 'subscript', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '274', 'type': 'string', 'children': [], 'value': "'Using'"}; {'id': '275', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '276', 'type': 'else_clause', 'children': ['277']}; {'id': '277', 'type': 'block', 'children': ['278', '285']}; {'id': '278', 'type': 'expression_statement', 'children': ['279']}; {'id': '279', 'type': 'assignment', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'ext3_filesystems'}; {'id': '281', 'type': 'list', 'children': ['282', '283', '284'], 'value': "['ganon:', 'kortemmelab:', 'albana:']"}; {'id': '282', 'type': 'string', 'children': [], 'value': "'ganon:'"}; {'id': '283', 'type': 'string', 'children': [], 'value': "'kortemmelab:'"}; {'id': '284', 'type': 'string', 'children': [], 'value': "'albana:'"}; {'id': '285', 'type': 'for_statement', 'children': ['286', '287', '288']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'e3fs'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'ext3_filesystems'}; {'id': '288', 'type': 'block', 'children': ['289']}; {'id': '289', 'type': 'if_statement', 'children': ['290', '301']}; {'id': '290', 'type': 'comparison_operator', 'children': ['291', '299'], 'value': '!='}; {'id': '291', 'type': 'call', 'children': ['292', '297']}; {'id': '292', 'type': 'attribute', 'children': ['293', '296']}; {'id': '293', 'type': 'subscript', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'tokens'}; {'id': '295', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'find'}; {'id': '297', 'type': 'argument_list', 'children': ['298']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'e3fs'}; {'id': '299', 'type': 'unary_operator', 'children': ['300'], 'value': '-'}; {'id': '300', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '301', 'type': 'block', 'children': ['302', '308']}; {'id': '302', 'type': 'expression_statement', 'children': ['303']}; {'id': '303', 'type': 'augmented_assignment', 'children': ['304', '307'], 'value': '+='}; {'id': '304', 'type': 'subscript', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '306', 'type': 'string', 'children': [], 'value': "'Using'"}; {'id': '307', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '308', 'type': 'break_statement', 'children': []}; {'id': '309', 'type': 'expression_statement', 'children': ['310']}; {'id': '310', 'type': 'assignment', 'children': ['311', '316']}; {'id': '311', 'type': 'subscript', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'details'}; {'id': '313', 'type': 'subscript', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'tokens'}; {'id': '315', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '317', 'type': 'return_statement', 'children': ['318']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'details'} | A wrapper for the df shell command. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'install_dependencies'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'default_parameter', 'children': ['5', '6']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'feature'}; {'id': '6', 'type': 'None', 'children': []}; {'id': '7', 'type': 'block', 'children': ['8', '11', '19', '29', '49', '106', '116', '128', '159', '168', '176', '191', '207', '344']}; {'id': '8', 'type': 'import_statement', 'children': ['9']}; {'id': '9', 'type': 'dotted_name', 'children': ['10']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'subprocess'}; {'id': '11', 'type': 'expression_statement', 'children': ['12']}; {'id': '12', 'type': 'call', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'echo'}; {'id': '14', 'type': 'argument_list', 'children': ['15']}; {'id': '15', 'type': 'call', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'green'}; {'id': '17', 'type': 'argument_list', 'children': ['18']}; {'id': '18', 'type': 'string', 'children': [], 'value': "'\\nInstall dependencies:'"}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'call', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'echo'}; {'id': '22', 'type': 'argument_list', 'children': ['23']}; {'id': '23', 'type': 'call', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'green'}; {'id': '25', 'type': 'argument_list', 'children': ['26']}; {'id': '26', 'type': 'binary_operator', 'children': ['27', '28'], 'value': '*'}; {'id': '27', 'type': 'string', 'children': [], 'value': "'-'"}; {'id': '28', 'type': 'integer', 'children': [], 'value': '40'}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'assignment', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'req_path'}; {'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': 'realpath'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'binary_operator', 'children': ['40', '48'], 'value': '+'}; {'id': '40', 'type': 'call', 'children': ['41', '46']}; {'id': '41', 'type': 'attribute', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'dirname'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': '__file__'}; {'id': '48', 'type': 'string', 'children': [], 'value': "'/../_requirements'"}; {'id': '49', 'type': 'if_statement', 'children': ['50', '52']}; {'id': '50', 'type': 'not_operator', 'children': ['51']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'feature'}; {'id': '52', 'type': 'block', 'children': ['53', '61', '101', '105']}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'call', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'echo'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'call', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'yellow'}; {'id': '59', 'type': 'argument_list', 'children': ['60']}; {'id': '60', 'type': 'string', 'children': [], 'value': "'Please specify a feature to install. \\n'"}; {'id': '61', 'type': 'for_statement', 'children': ['62', '65', '74']}; {'id': '62', 'type': 'pattern_list', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '65', 'type': 'call', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '67', 'type': 'argument_list', 'children': ['68']}; {'id': '68', 'type': 'call', 'children': ['69', '72']}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'listdir'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'req_path'}; {'id': '74', 'type': 'block', 'children': ['75', '85']}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '78', 'type': 'call', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '82', 'type': 'argument_list', 'children': ['83', '84']}; {'id': '83', 'type': 'string', 'children': [], 'value': "'.txt'"}; {'id': '84', 'type': 'string', 'children': [], 'value': "''"}; {'id': '85', 'type': 'expression_statement', 'children': ['86']}; {'id': '86', 'type': 'call', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'echo'}; {'id': '88', 'type': 'argument_list', 'children': ['89']}; {'id': '89', 'type': 'call', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'green'}; {'id': '91', 'type': 'argument_list', 'children': ['92']}; {'id': '92', 'type': 'call', 'children': ['93', '96']}; {'id': '93', 'type': 'attribute', 'children': ['94', '95']}; {'id': '94', 'type': 'string', 'children': [], 'value': "'{}. {}'"}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '96', 'type': 'argument_list', 'children': ['97', '100']}; {'id': '97', 'type': 'binary_operator', 'children': ['98', '99'], 'value': '+'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '99', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'call', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'echo'}; {'id': '104', 'type': 'argument_list', 'children': []}; {'id': '105', 'type': 'return_statement', 'children': []}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'feature_file'}; {'id': '109', 'type': 'binary_operator', 'children': ['110', '115'], 'value': '+'}; {'id': '110', 'type': 'call', 'children': ['111', '114']}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'feature'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '114', 'type': 'argument_list', 'children': []}; {'id': '115', 'type': 'string', 'children': [], 'value': "'.txt'"}; {'id': '116', 'type': 'expression_statement', 'children': ['117']}; {'id': '117', 'type': 'assignment', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'feature_reqs'}; {'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': 'os'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '125', 'type': 'argument_list', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'req_path'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'feature_file'}; {'id': '128', 'type': 'if_statement', 'children': ['129', '138']}; {'id': '129', 'type': 'not_operator', 'children': ['130']}; {'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': 'os'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'isfile'}; {'id': '136', 'type': 'argument_list', 'children': ['137']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'feature_reqs'}; {'id': '138', 'type': 'block', 'children': ['139', '143', '158']}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '142', 'type': 'string', 'children': [], 'value': "'Unable to locate feature requirements file [{}]'"}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'call', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'echo'}; {'id': '146', 'type': 'argument_list', 'children': ['147']}; {'id': '147', 'type': 'binary_operator', 'children': ['148', '157'], 'value': '+'}; {'id': '148', 'type': 'call', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'red'}; {'id': '150', 'type': 'argument_list', 'children': ['151']}; {'id': '151', 'type': 'call', 'children': ['152', '155']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'feature_file'}; {'id': '157', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '158', 'type': 'return_statement', 'children': []}; {'id': '159', 'type': 'expression_statement', 'children': ['160']}; {'id': '160', 'type': 'assignment', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '162', 'type': 'call', 'children': ['163', '166']}; {'id': '163', 'type': 'attribute', 'children': ['164', '165']}; {'id': '164', 'type': 'string', 'children': [], 'value': '\'Now installing dependencies for "{}" feature...\''}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '166', 'type': 'argument_list', 'children': ['167']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'feature'}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'call', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'echo'}; {'id': '171', 'type': 'argument_list', 'children': ['172']}; {'id': '172', 'type': 'call', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'yellow'}; {'id': '174', 'type': 'argument_list', 'children': ['175']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '176', 'type': 'expression_statement', 'children': ['177']}; {'id': '177', 'type': 'call', 'children': ['178', '181']}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'subprocess'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'check_call'}; {'id': '181', 'type': 'argument_list', 'children': ['182']}; {'id': '182', 'type': 'list', 'children': ['183', '186', '187', '188', '189', '190'], 'value': "[\n sys.executable, '-m', 'pip', 'install', '-r', feature_reqs]"}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'executable'}; {'id': '186', 'type': 'string', 'children': [], 'value': "'-m'"}; {'id': '187', 'type': 'string', 'children': [], 'value': "'pip'"}; {'id': '188', 'type': 'string', 'children': [], 'value': "'install'"}; {'id': '189', 'type': 'string', 'children': [], 'value': "'-r'"}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'feature_reqs'}; {'id': '191', 'type': 'expression_statement', 'children': ['192']}; {'id': '192', 'type': 'assignment', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'reqs'}; {'id': '194', 'type': 'call', 'children': ['195', '200']}; {'id': '195', 'type': 'attribute', 'children': ['196', '199']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '200', 'type': 'argument_list', 'children': ['201', '206']}; {'id': '201', 'type': 'call', 'children': ['202', '205']}; {'id': '202', 'type': 'attribute', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'getcwd'}; {'id': '205', 'type': 'argument_list', 'children': []}; {'id': '206', 'type': 'string', 'children': [], 'value': "'requirements.txt'"}; {'id': '207', 'type': 'if_statement', 'children': ['208', '216']}; {'id': '208', 'type': 'call', 'children': ['209', '214']}; {'id': '209', 'type': 'attribute', 'children': ['210', '213']}; {'id': '210', 'type': 'attribute', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '214', 'type': 'argument_list', 'children': ['215']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'reqs'}; {'id': '216', 'type': 'block', 'children': ['217', '253', '258', '325']}; {'id': '217', 'type': 'with_statement', 'children': ['218', '227']}; {'id': '218', 'type': 'with_clause', 'children': ['219']}; {'id': '219', 'type': 'with_item', 'children': ['220']}; {'id': '220', 'type': 'as_pattern', 'children': ['221', '225']}; {'id': '221', 'type': 'call', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '223', 'type': 'argument_list', 'children': ['224']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'reqs'}; {'id': '225', 'type': 'as_pattern_target', 'children': ['226']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'file'}; {'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': 'existing'}; {'id': '231', 'type': 'list_comprehension', 'children': ['232', '244', '251']}; {'id': '232', 'type': 'subscript', 'children': ['233', '243']}; {'id': '233', 'type': 'call', 'children': ['234', '241']}; {'id': '234', 'type': 'attribute', 'children': ['235', '240']}; {'id': '235', 'type': 'call', 'children': ['236', '239']}; {'id': '236', 'type': 'attribute', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '239', 'type': 'argument_list', 'children': []}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '241', 'type': 'argument_list', 'children': ['242']}; {'id': '242', 'type': 'string', 'children': [], 'value': "'=='"}; {'id': '243', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '244', 'type': 'for_in_clause', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '246', 'type': 'call', 'children': ['247', '250']}; {'id': '247', 'type': 'attribute', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'file'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'readlines'}; {'id': '250', 'type': 'argument_list', 'children': []}; {'id': '251', 'type': 'if_clause', 'children': ['252']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'assignment', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '256', 'type': 'list', 'children': ['257'], 'value': "['\\n']"}; {'id': '257', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '258', 'type': 'with_statement', 'children': ['259', '268']}; {'id': '259', 'type': 'with_clause', 'children': ['260']}; {'id': '260', 'type': 'with_item', 'children': ['261']}; {'id': '261', 'type': 'as_pattern', 'children': ['262', '266']}; {'id': '262', 'type': 'call', 'children': ['263', '264']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '264', 'type': 'argument_list', 'children': ['265']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'feature_reqs'}; {'id': '266', 'type': 'as_pattern_target', 'children': ['267']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'file'}; {'id': '268', 'type': 'block', 'children': ['269', '277']}; {'id': '269', 'type': 'expression_statement', 'children': ['270']}; {'id': '270', 'type': 'assignment', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'incoming'}; {'id': '272', 'type': 'call', 'children': ['273', '276']}; {'id': '273', 'type': 'attribute', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'file'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'readlines'}; {'id': '276', 'type': 'argument_list', 'children': []}; {'id': '277', 'type': 'for_statement', 'children': ['278', '279', '280']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'incoming'}; {'id': '280', 'type': 'block', 'children': ['281']}; {'id': '281', 'type': 'if_statement', 'children': ['282', '292', '317']}; {'id': '282', 'type': 'boolean_operator', 'children': ['283', '289'], 'value': 'or'}; {'id': '283', 'type': 'not_operator', 'children': ['284']}; {'id': '284', 'type': '()', 'children': ['285']}; {'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': 'attribute', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '292', 'type': 'ERROR', 'children': ['293', '301', '302', '314']}; {'id': '293', 'type': 'ERROR', 'children': ['294', '300']}; {'id': '294', 'type': 'call', 'children': ['295', '298']}; {'id': '295', 'type': 'attribute', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '298', 'type': 'argument_list', 'children': ['299']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'continue'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'package'}; {'id': '302', 'type': 'subscript', 'children': ['303', '313']}; {'id': '303', 'type': 'call', 'children': ['304', '311']}; {'id': '304', 'type': 'attribute', 'children': ['305', '310']}; {'id': '305', 'type': 'call', 'children': ['306', '309']}; {'id': '306', 'type': 'attribute', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '309', 'type': 'argument_list', 'children': []}; {'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': '0'}; {'id': '314', 'type': 'comparison_operator', 'children': ['315', '316'], 'value': 'not'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'package'}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'existing'}; {'id': '317', 'type': 'block', 'children': ['318']}; {'id': '318', 'type': 'expression_statement', 'children': ['319']}; {'id': '319', 'type': 'call', 'children': ['320', '323']}; {'id': '320', 'type': 'attribute', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '323', 'type': 'argument_list', 'children': ['324']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '325', 'type': 'with_statement', 'children': ['326', '336']}; {'id': '326', 'type': 'with_clause', 'children': ['327']}; {'id': '327', 'type': 'with_item', 'children': ['328']}; {'id': '328', 'type': 'as_pattern', 'children': ['329', '334']}; {'id': '329', 'type': 'call', 'children': ['330', '331']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '331', 'type': 'argument_list', 'children': ['332', '333']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'reqs'}; {'id': '333', 'type': 'string', 'children': [], 'value': "'a'"}; {'id': '334', 'type': 'as_pattern_target', 'children': ['335']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'file'}; {'id': '336', 'type': 'block', 'children': ['337']}; {'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': 'file'}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'writelines'}; {'id': '342', 'type': 'argument_list', 'children': ['343']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '344', 'type': 'expression_statement', 'children': ['345']}; {'id': '345', 'type': 'call', 'children': ['346', '347']}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'echo'}; {'id': '347', 'type': 'argument_list', 'children': ['348']}; {'id': '348', 'type': 'call', 'children': ['349', '350']}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'green'}; {'id': '350', 'type': 'argument_list', 'children': ['351']}; {'id': '351', 'type': 'string', 'children': [], 'value': "'DONE\\n'"} | Install dependencies for a feature |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'dispatch_request'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '18', '27', '37', '62', '71', '96', '207', '216', '225', '234', '243', '254', '271', '349', '373', '380']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '10']}; {'id': '7', 'type': 'attribute', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'current_user'}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'is_authenticated'}; {'id': '10', 'type': 'block', 'children': ['11']}; {'id': '11', 'type': 'return_statement', 'children': ['12']}; {'id': '12', 'type': 'call', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'redirect'}; {'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': 'next'}; {'id': '18', 'type': 'if_statement', 'children': ['19', '22']}; {'id': '19', 'type': 'comparison_operator', 'children': ['20', '21'], 'value': 'in'}; {'id': '20', 'type': 'string', 'children': [], 'value': "'social_data'"}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'session'}; {'id': '22', 'type': 'block', 'children': ['23']}; {'id': '23', 'type': 'delete_statement', 'children': ['24']}; {'id': '24', 'type': 'subscript', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'session'}; {'id': '26', 'type': 'string', 'children': [], 'value': "'social_data'"}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'assignment', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'res'}; {'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': 'self'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'app'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'authorized_response'}; {'id': '36', 'type': 'argument_list', 'children': []}; {'id': '37', 'type': 'if_statement', 'children': ['38', '41']}; {'id': '38', 'type': 'comparison_operator', 'children': ['39', '40'], 'value': 'is'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'res'}; {'id': '40', 'type': 'None', 'children': []}; {'id': '41', 'type': 'block', 'children': ['42', '55']}; {'id': '42', 'type': 'if_statement', 'children': ['43', '46']}; {'id': '43', 'type': 'attribute', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'flash'}; {'id': '46', 'type': 'block', 'children': ['47']}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'call', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'flash'}; {'id': '50', 'type': 'argument_list', 'children': ['51', '54']}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'auth_failed_msg'}; {'id': '54', 'type': 'string', 'children': [], 'value': "'danger'"}; {'id': '55', 'type': 'return_statement', 'children': ['56']}; {'id': '56', 'type': 'call', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'redirect'}; {'id': '58', 'type': 'argument_list', 'children': ['59']}; {'id': '59', 'type': 'attribute', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'next'}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'data'}; {'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': 'get_profile_data'}; {'id': '69', 'type': 'argument_list', 'children': ['70']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'res'}; {'id': '71', 'type': 'if_statement', 'children': ['72', '75']}; {'id': '72', 'type': 'comparison_operator', 'children': ['73', '74'], 'value': 'is'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '74', 'type': 'None', 'children': []}; {'id': '75', 'type': 'block', 'children': ['76', '89']}; {'id': '76', 'type': 'if_statement', 'children': ['77', '80']}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'flash'}; {'id': '80', 'type': 'block', 'children': ['81']}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'call', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'flash'}; {'id': '84', 'type': 'argument_list', 'children': ['85', '88']}; {'id': '85', 'type': 'attribute', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'data_failed_msg'}; {'id': '88', 'type': 'string', 'children': [], 'value': "'danger'"}; {'id': '89', 'type': 'return_statement', 'children': ['90']}; {'id': '90', 'type': 'call', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'redirect'}; {'id': '92', 'type': 'argument_list', 'children': ['93']}; {'id': '93', 'type': 'attribute', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'next'}; {'id': '96', 'type': 'try_statement', 'children': ['97', '142', '192']}; {'id': '97', 'type': 'block', 'children': ['98', '112']}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'assignment', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'ok'}; {'id': '101', 'type': 'call', 'children': ['102', '105']}; {'id': '102', 'type': 'attribute', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'user_service'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'attempt_social_login'}; {'id': '105', 'type': 'argument_list', 'children': ['106', '109']}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'provider'}; {'id': '109', 'type': 'subscript', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '111', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '112', 'type': 'if_statement', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'ok'}; {'id': '114', 'type': 'block', 'children': ['115', '135']}; {'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': 'flash'}; {'id': '119', 'type': 'block', 'children': ['120']}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'call', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'flash'}; {'id': '123', 'type': 'argument_list', 'children': ['124', '134']}; {'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': 'logged_in_msg'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'format'}; {'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': 'provider'}; {'id': '134', 'type': 'string', 'children': [], 'value': "'success'"}; {'id': '135', 'type': 'return_statement', 'children': ['136']}; {'id': '136', 'type': 'call', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'redirect'}; {'id': '138', 'type': 'argument_list', 'children': ['139']}; {'id': '139', 'type': 'attribute', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'logged_in'}; {'id': '142', 'type': 'except_clause', 'children': ['143', '149']}; {'id': '143', 'type': 'as_pattern', 'children': ['144', '147']}; {'id': '144', 'type': 'attribute', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'AccountLocked'}; {'id': '147', 'type': 'as_pattern_target', 'children': ['148']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '149', 'type': 'block', 'children': ['150', '163', '174', '187']}; {'id': '150', 'type': 'expression_statement', 'children': ['151']}; {'id': '151', 'type': 'assignment', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '153', 'type': 'call', 'children': ['154', '159']}; {'id': '154', 'type': 'attribute', 'children': ['155', '158']}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'lock_msg'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'locked_until'}; {'id': '163', 'type': 'if_statement', 'children': ['164', '167']}; {'id': '164', 'type': 'attribute', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'flash'}; {'id': '167', 'type': 'block', 'children': ['168']}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'call', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'flash'}; {'id': '171', 'type': 'argument_list', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '173', 'type': 'string', 'children': [], 'value': "'danger'"}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'assignment', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '177', 'type': 'call', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'url_for'}; {'id': '179', 'type': 'argument_list', 'children': ['180', '183']}; {'id': '180', 'type': 'attribute', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'lock_redirect'}; {'id': '183', 'type': 'dictionary_splat', 'children': ['184']}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'lock_redirect_params'}; {'id': '187', 'type': 'return_statement', 'children': ['188']}; {'id': '188', 'type': 'call', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'redirect'}; {'id': '190', 'type': 'argument_list', 'children': ['191']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '192', 'type': 'except_clause', 'children': ['193', '196']}; {'id': '193', 'type': 'attribute', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'EmailNotConfirmed'}; {'id': '196', 'type': 'block', 'children': ['197']}; {'id': '197', 'type': 'return_statement', 'children': ['198']}; {'id': '198', 'type': 'call', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'redirect'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'call', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'url_for'}; {'id': '203', 'type': 'argument_list', 'children': ['204']}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'unconfirmed_email_endpoint'}; {'id': '207', 'type': 'expression_statement', 'children': ['208']}; {'id': '208', 'type': 'assignment', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'email'}; {'id': '210', 'type': 'call', 'children': ['211', '214']}; {'id': '211', 'type': 'attribute', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '214', 'type': 'argument_list', 'children': ['215']}; {'id': '215', 'type': 'string', 'children': [], 'value': "'email'"}; {'id': '216', 'type': 'expression_statement', 'children': ['217']}; {'id': '217', 'type': 'assignment', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'provider'}; {'id': '219', 'type': 'call', 'children': ['220', '223']}; {'id': '220', 'type': 'attribute', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '223', 'type': 'argument_list', 'children': ['224']}; {'id': '224', 'type': 'string', 'children': [], 'value': "'provider'"}; {'id': '225', 'type': 'expression_statement', 'children': ['226']}; {'id': '226', 'type': 'assignment', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '228', 'type': 'call', 'children': ['229', '232']}; {'id': '229', 'type': 'attribute', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '232', 'type': 'argument_list', 'children': ['233']}; {'id': '233', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '234', 'type': 'expression_statement', 'children': ['235']}; {'id': '235', 'type': 'assignment', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'id_column'}; {'id': '237', 'type': 'call', 'children': ['238', '241']}; {'id': '238', 'type': 'attribute', 'children': ['239', '240']}; {'id': '239', 'type': 'string', 'children': [], 'value': "'{}_id'"}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '241', 'type': 'argument_list', 'children': ['242']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'provider'}; {'id': '243', 'type': 'expression_statement', 'children': ['244']}; {'id': '244', 'type': 'assignment', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '246', 'type': 'call', 'children': ['247', '250']}; {'id': '247', 'type': 'attribute', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'user_service'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'first'}; {'id': '250', 'type': 'argument_list', 'children': ['251']}; {'id': '251', 'type': 'keyword_argument', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'email'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'email'}; {'id': '254', 'type': 'if_statement', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '256', 'type': 'block', 'children': ['257', '264']}; {'id': '257', 'type': 'expression_statement', 'children': ['258']}; {'id': '258', 'type': 'call', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'setattr'}; {'id': '260', 'type': 'argument_list', 'children': ['261', '262', '263']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'id_column'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'id'}; {'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': 'user_service'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'save'}; {'id': '269', 'type': 'argument_list', 'children': ['270']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '271', 'type': 'if_statement', 'children': ['272', '274']}; {'id': '272', 'type': 'not_operator', 'children': ['273']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '274', 'type': 'block', 'children': ['275', '281', '290', '299', '317', '326', '332']}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'assignment', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'cfg'}; {'id': '278', 'type': 'attribute', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'current_app'}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '281', 'type': 'expression_statement', 'children': ['282']}; {'id': '282', 'type': 'assignment', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'send_welcome'}; {'id': '284', 'type': 'call', 'children': ['285', '288']}; {'id': '285', 'type': 'attribute', 'children': ['286', '287']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'cfg'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '288', 'type': 'argument_list', 'children': ['289']}; {'id': '289', 'type': 'string', 'children': [], 'value': "'USER_SEND_WELCOME_MESSAGE'"}; {'id': '290', 'type': 'expression_statement', 'children': ['291']}; {'id': '291', 'type': 'assignment', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'base_confirm_url'}; {'id': '293', 'type': 'call', 'children': ['294', '297']}; {'id': '294', 'type': 'attribute', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'cfg'}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '297', 'type': 'argument_list', 'children': ['298']}; {'id': '298', 'type': 'string', 'children': [], 'value': "'USER_BASE_EMAIL_CONFIRM_URL'"}; {'id': '299', 'type': 'if_statement', 'children': ['300', '302']}; {'id': '300', 'type': 'not_operator', 'children': ['301']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'base_confirm_url'}; {'id': '302', 'type': 'block', 'children': ['303', '307']}; {'id': '303', 'type': 'expression_statement', 'children': ['304']}; {'id': '304', 'type': 'assignment', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'endpoint'}; {'id': '306', 'type': 'string', 'children': [], 'value': "'user.confirm.email.request'"}; {'id': '307', 'type': 'expression_statement', 'children': ['308']}; {'id': '308', 'type': 'assignment', 'children': ['309', '310']}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'base_confirm_url'}; {'id': '310', 'type': 'call', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'url_for'}; {'id': '312', 'type': 'argument_list', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'endpoint'}; {'id': '314', 'type': 'keyword_argument', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': '_external'}; {'id': '316', 'type': 'True', 'children': []}; {'id': '317', 'type': 'expression_statement', 'children': ['318']}; {'id': '318', 'type': 'assignment', 'children': ['319', '320']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '320', 'type': 'call', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '322', 'type': 'argument_list', 'children': ['323']}; {'id': '323', 'type': 'keyword_argument', 'children': ['324', '325']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'email'}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'email'}; {'id': '326', 'type': 'expression_statement', 'children': ['327']}; {'id': '327', 'type': 'assignment', 'children': ['328', '331']}; {'id': '328', 'type': 'subscript', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'id_column'}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '332', 'type': 'expression_statement', 'children': ['333']}; {'id': '333', 'type': 'assignment', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '335', 'type': 'call', 'children': ['336', '339']}; {'id': '336', 'type': 'attribute', 'children': ['337', '338']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'user_service'}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'register'}; {'id': '339', 'type': 'argument_list', 'children': ['340', '343', '346']}; {'id': '340', 'type': 'keyword_argument', 'children': ['341', '342']}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'user_data'}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '343', 'type': 'keyword_argument', 'children': ['344', '345']}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'send_welcome'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'send_welcome'}; {'id': '346', 'type': 'keyword_argument', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'base_confirm_url'}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'base_confirm_url'}; {'id': '349', 'type': 'if_statement', 'children': ['350', '358']}; {'id': '350', 'type': 'boolean_operator', 'children': ['351', '354'], 'value': 'and'}; {'id': '351', 'type': 'attribute', 'children': ['352', '353']}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'user_service'}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'require_confirmation'}; {'id': '354', 'type': 'not_operator', 'children': ['355']}; {'id': '355', 'type': 'attribute', 'children': ['356', '357']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'email_confirmed'}; {'id': '358', 'type': 'block', 'children': ['359']}; {'id': '359', 'type': 'return_statement', 'children': ['360']}; {'id': '360', 'type': 'call', 'children': ['361', '362']}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'redirect'}; {'id': '362', 'type': 'argument_list', 'children': ['363']}; {'id': '363', 'type': 'call', 'children': ['364', '365']}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'url_for'}; {'id': '365', 'type': 'argument_list', 'children': ['366', '369']}; {'id': '366', 'type': 'attribute', 'children': ['367', '368']}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'ok_endpoint'}; {'id': '369', 'type': 'dictionary_splat', 'children': ['370']}; {'id': '370', 'type': 'attribute', 'children': ['371', '372']}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'ok_params'}; {'id': '373', 'type': 'expression_statement', 'children': ['374']}; {'id': '374', 'type': 'call', 'children': ['375', '378']}; {'id': '375', 'type': 'attribute', 'children': ['376', '377']}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'user_service'}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'force_login'}; {'id': '378', 'type': 'argument_list', 'children': ['379']}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '380', 'type': 'return_statement', 'children': ['381']}; {'id': '381', 'type': 'call', 'children': ['382', '383']}; {'id': '382', 'type': 'identifier', 'children': [], 'value': 'redirect'}; {'id': '383', 'type': 'argument_list', 'children': ['384']}; {'id': '384', 'type': 'attribute', 'children': ['385', '386']}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'force_login_redirect'} | Handle redirect back from provider |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '13']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'build'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '10']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'client'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'repository_tag'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'docker_file'}; {'id': '7', 'type': 'default_parameter', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '9', 'type': 'None', 'children': []}; {'id': '10', 'type': 'default_parameter', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'use_cache'}; {'id': '12', 'type': 'False', 'children': []}; {'id': '13', 'type': 'block', 'children': ['14', '29', '59', '74', '82', '100', '105', '120', '124', '230', '235', '241']}; {'id': '14', 'type': 'if_statement', 'children': ['15', '23']}; {'id': '15', 'type': 'not_operator', 'children': ['16']}; {'id': '16', 'type': 'call', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '18', 'type': 'argument_list', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'client'}; {'id': '20', 'type': 'attribute', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'docker'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'Client'}; {'id': '23', 'type': 'block', 'children': ['24']}; {'id': '24', 'type': 'raise_statement', 'children': ['25']}; {'id': '25', 'type': 'call', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'TypeError'}; {'id': '27', 'type': 'argument_list', 'children': ['28']}; {'id': '28', 'type': 'string', 'children': [], 'value': '"client needs to be of type docker.Client."'}; {'id': '29', 'type': 'if_statement', 'children': ['30', '48']}; {'id': '30', 'type': 'boolean_operator', 'children': ['31', '39'], 'value': 'or'}; {'id': '31', 'type': 'not_operator', 'children': ['32']}; {'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': 'docker_file'}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'string_types'}; {'id': '39', 'type': 'not_operator', 'children': ['40']}; {'id': '40', 'type': 'call', 'children': ['41', '46']}; {'id': '41', 'type': 'attribute', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'docker_file'}; {'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': 'Exception'}; {'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': '"docker file path doesn\'t exist: {0}"'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '57', 'type': 'argument_list', 'children': ['58']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'docker_file'}; {'id': '59', 'type': 'if_statement', 'children': ['60', '68']}; {'id': '60', 'type': 'not_operator', 'children': ['61']}; {'id': '61', 'type': 'call', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '63', 'type': 'argument_list', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'repository_tag'}; {'id': '65', 'type': 'attribute', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'string_types'}; {'id': '68', 'type': 'block', 'children': ['69']}; {'id': '69', 'type': 'raise_statement', 'children': ['70']}; {'id': '70', 'type': 'call', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'TypeError'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'string', 'children': [], 'value': "'repository must be a string'"}; {'id': '74', 'type': 'if_statement', 'children': ['75', '77']}; {'id': '75', 'type': 'not_operator', 'children': ['76']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'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': 'tag'}; {'id': '81', 'type': 'string', 'children': [], 'value': "'latest'"}; {'id': '82', 'type': 'if_statement', 'children': ['83', '89']}; {'id': '83', 'type': 'not_operator', 'children': ['84']}; {'id': '84', 'type': 'call', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '86', 'type': 'argument_list', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'use_cache'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'bool'}; {'id': '89', 'type': 'block', 'children': ['90']}; {'id': '90', 'type': 'raise_statement', 'children': ['91']}; {'id': '91', 'type': 'call', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'TypeError'}; {'id': '93', 'type': 'argument_list', 'children': ['94']}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'string', 'children': [], 'value': '"use_cache must be a bool. {0} was passed."'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'use_cache'}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'assignment', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'no_cache'}; {'id': '103', 'type': 'not_operator', 'children': ['104']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'use_cache'}; {'id': '105', 'type': 'if_statement', 'children': ['106', '109']}; {'id': '106', 'type': 'comparison_operator', 'children': ['107', '108'], 'value': 'not'}; {'id': '107', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'repository_tag'}; {'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': 'repository_tag'}; {'id': '113', 'type': 'call', 'children': ['114', '117']}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'string', 'children': [], 'value': '"{0}:{1}"'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '117', 'type': 'argument_list', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'repository_tag'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '123', 'type': 'None', 'children': []}; {'id': '124', 'type': 'try_statement', 'children': ['125', '211', '219']}; {'id': '125', 'type': 'block', 'children': ['126']}; {'id': '126', 'type': 'if_statement', 'children': ['127', '135', '186']}; {'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': 'isfile'}; {'id': '133', 'type': 'argument_list', 'children': ['134']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'docker_file'}; {'id': '135', 'type': 'block', 'children': ['136', '144', '160']}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'assignment', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '139', 'type': 'call', 'children': ['140', '143']}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'getcwd'}; {'id': '143', 'type': 'argument_list', 'children': []}; {'id': '144', 'type': 'expression_statement', 'children': ['145']}; {'id': '145', 'type': 'assignment', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'docker_file'}; {'id': '147', 'type': 'call', 'children': ['148', '151']}; {'id': '148', 'type': 'attribute', 'children': ['149', '150']}; {'id': '149', 'type': 'string', 'children': [], 'value': '"./{0}"'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '151', 'type': 'argument_list', 'children': ['152']}; {'id': '152', 'type': 'call', 'children': ['153', '158']}; {'id': '153', 'type': 'attribute', 'children': ['154', '157']}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '158', 'type': 'argument_list', 'children': ['159']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'docker_file'}; {'id': '160', 'type': 'expression_statement', 'children': ['161']}; {'id': '161', 'type': 'assignment', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '163', 'type': 'call', 'children': ['164', '167']}; {'id': '164', 'type': 'attribute', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'client'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'build'}; {'id': '167', 'type': 'argument_list', 'children': ['168', '171', '174', '177', '180', '183']}; {'id': '168', 'type': 'keyword_argument', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '171', 'type': 'keyword_argument', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'nocache'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'no_cache'}; {'id': '174', 'type': 'keyword_argument', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'dockerfile'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'docker_file'}; {'id': '177', 'type': 'keyword_argument', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'repository_tag'}; {'id': '180', 'type': 'keyword_argument', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'rm'}; {'id': '182', 'type': 'True', 'children': []}; {'id': '183', 'type': 'keyword_argument', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'stream'}; {'id': '185', 'type': 'True', 'children': []}; {'id': '186', 'type': 'else_clause', 'children': ['187']}; {'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': 'response'}; {'id': '191', 'type': 'call', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'client'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'build'}; {'id': '195', 'type': 'argument_list', 'children': ['196', '199', '202', '205', '208']}; {'id': '196', 'type': 'keyword_argument', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'docker_file'}; {'id': '199', 'type': 'keyword_argument', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'repository_tag'}; {'id': '202', 'type': 'keyword_argument', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'rm'}; {'id': '204', 'type': 'True', 'children': []}; {'id': '205', 'type': 'keyword_argument', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'nocache'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'no_cache'}; {'id': '208', 'type': 'keyword_argument', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'stream'}; {'id': '210', 'type': 'True', 'children': []}; {'id': '211', 'type': 'except_clause', 'children': ['212', '216']}; {'id': '212', 'type': 'as_pattern', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '214', 'type': 'as_pattern_target', 'children': ['215']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '216', 'type': 'block', 'children': ['217']}; {'id': '217', 'type': 'raise_statement', 'children': ['218']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '219', 'type': 'finally_clause', 'children': ['220']}; {'id': '220', 'type': 'block', 'children': ['221']}; {'id': '221', 'type': 'if_statement', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '223', 'type': 'block', 'children': ['224']}; {'id': '224', 'type': 'expression_statement', 'children': ['225']}; {'id': '225', 'type': 'call', 'children': ['226', '229']}; {'id': '226', 'type': 'attribute', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '229', 'type': 'argument_list', 'children': []}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'call', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'parse_stream'}; {'id': '233', 'type': 'argument_list', 'children': ['234']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'call', 'children': ['237', '240']}; {'id': '237', 'type': 'attribute', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'client'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '240', 'type': 'argument_list', 'children': []}; {'id': '241', 'type': 'return_statement', 'children': ['242']}; {'id': '242', 'type': 'call', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'Image'}; {'id': '244', 'type': 'argument_list', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'client'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'repository_tag'} | Build a docker image |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'add_node'}; {'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', '15']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '10', 'type': 'call', 'children': ['11', '14']}; {'id': '11', 'type': 'attribute', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '14', 'type': 'argument_list', 'children': []}; {'id': '15', 'type': 'if_statement', 'children': ['16', '24', '57']}; {'id': '16', 'type': 'comparison_operator', 'children': ['17', '21'], 'value': '<='}; {'id': '17', 'type': 'call', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '19', 'type': 'argument_list', 'children': ['20']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'm0'}; {'id': '24', 'type': 'block', 'children': ['25', '41']}; {'id': '25', 'type': 'expression_statement', 'children': ['26']}; {'id': '26', 'type': 'assignment', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'other_nodes'}; {'id': '28', 'type': 'list_comprehension', 'children': ['29', '30', '33']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '30', 'type': 'for_in_clause', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '33', 'type': 'if_clause', 'children': ['34']}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '38'], 'value': '!='}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '41', 'type': 'for_statement', 'children': ['42', '43', '44']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'other_nodes'}; {'id': '44', 'type': 'block', 'children': ['45']}; {'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': 'node'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'connect'}; {'id': '50', 'type': 'argument_list', 'children': ['51', '54']}; {'id': '51', 'type': 'keyword_argument', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'direction'}; {'id': '53', 'type': 'string', 'children': [], 'value': '"both"'}; {'id': '54', 'type': 'keyword_argument', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'whom'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '57', 'type': 'else_clause', 'children': ['58']}; {'id': '58', 'type': 'block', 'children': ['59']}; {'id': '59', 'type': 'for_statement', 'children': ['60', '61', '67']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'idx_newvector'}; {'id': '61', 'type': 'call', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'xrange'}; {'id': '63', 'type': 'argument_list', 'children': ['64']}; {'id': '64', 'type': 'attribute', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '67', 'type': 'block', 'children': ['68', '98', '116', '133', '146', '150', '174']}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'assignment', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'these_nodes'}; {'id': '71', 'type': 'list_comprehension', 'children': ['72', '73', '76']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '73', 'type': 'for_in_clause', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '76', 'type': 'if_clause', 'children': ['77']}; {'id': '77', 'type': '()', 'children': ['78']}; {'id': '78', 'type': 'boolean_operator', 'children': ['79', '86'], 'value': 'and'}; {'id': '79', 'type': 'comparison_operator', 'children': ['80', '83'], 'value': '!='}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '86', 'type': 'not_operator', 'children': ['87']}; {'id': '87', 'type': 'call', 'children': ['88', '91']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'is_connected'}; {'id': '91', 'type': 'argument_list', 'children': ['92', '95']}; {'id': '92', 'type': 'keyword_argument', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'direction'}; {'id': '94', 'type': 'string', 'children': [], 'value': '"either"'}; {'id': '95', 'type': 'keyword_argument', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'whom'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'assignment', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'outdegrees'}; {'id': '101', 'type': 'list_comprehension', 'children': ['102', '113']}; {'id': '102', 'type': 'call', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '104', 'type': 'argument_list', 'children': ['105']}; {'id': '105', 'type': 'call', 'children': ['106', '109']}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'vectors'}; {'id': '109', 'type': 'argument_list', 'children': ['110']}; {'id': '110', 'type': 'keyword_argument', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'direction'}; {'id': '112', 'type': 'string', 'children': [], 'value': '"outgoing"'}; {'id': '113', 'type': 'for_in_clause', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'these_nodes'}; {'id': '116', 'type': 'expression_statement', 'children': ['117']}; {'id': '117', 'type': 'assignment', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'ps'}; {'id': '119', 'type': 'list_comprehension', 'children': ['120', '130']}; {'id': '120', 'type': '()', 'children': ['121']}; {'id': '121', 'type': 'binary_operator', 'children': ['122', '123'], 'value': '/'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '123', 'type': '()', 'children': ['124']}; {'id': '124', 'type': 'binary_operator', 'children': ['125', '126'], 'value': '*'}; {'id': '125', 'type': 'float', 'children': [], 'value': '1.0'}; {'id': '126', 'type': 'call', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '128', 'type': 'argument_list', 'children': ['129']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'outdegrees'}; {'id': '130', 'type': 'for_in_clause', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'outdegrees'}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'assignment', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'rnd'}; {'id': '136', 'type': 'binary_operator', 'children': ['137', '142'], 'value': '*'}; {'id': '137', 'type': 'call', 'children': ['138', '141']}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'random'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'random'}; {'id': '141', 'type': 'argument_list', 'children': []}; {'id': '142', 'type': 'call', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'ps'}; {'id': '146', 'type': 'expression_statement', 'children': ['147']}; {'id': '147', 'type': 'assignment', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'cur'}; {'id': '149', 'type': 'float', 'children': [], 'value': '0.0'}; {'id': '150', 'type': 'for_statement', 'children': ['151', '154', '158']}; {'id': '151', 'type': 'pattern_list', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '154', 'type': 'call', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '156', 'type': 'argument_list', 'children': ['157']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'ps'}; {'id': '158', 'type': 'block', 'children': ['159', '163']}; {'id': '159', 'type': 'expression_statement', 'children': ['160']}; {'id': '160', 'type': 'augmented_assignment', 'children': ['161', '162'], 'value': '+='}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'cur'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '163', 'type': 'if_statement', 'children': ['164', '167']}; {'id': '164', 'type': 'comparison_operator', 'children': ['165', '166'], 'value': '<'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'rnd'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'cur'}; {'id': '167', 'type': 'block', 'children': ['168']}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'assignment', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'vector_to'}; {'id': '171', 'type': 'subscript', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'these_nodes'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'call', 'children': ['176', '179']}; {'id': '176', 'type': 'attribute', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'connect'}; {'id': '179', 'type': 'argument_list', 'children': ['180', '183']}; {'id': '180', 'type': 'keyword_argument', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'direction'}; {'id': '182', 'type': 'string', 'children': [], 'value': '"both"'}; {'id': '183', 'type': 'keyword_argument', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'whom'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'vector_to'} | Add newcomers one by one, using linear preferential attachment. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '21']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'execute'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '9', '12', '15', '18']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'sql'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'default_parameter', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'cursorClass'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'DictCursor'}; {'id': '12', 'type': 'default_parameter', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'quiet'}; {'id': '14', 'type': 'False', 'children': []}; {'id': '15', 'type': 'default_parameter', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '17', 'type': 'False', 'children': []}; {'id': '18', 'type': 'default_parameter', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'do_commit'}; {'id': '20', 'type': 'True', 'children': []}; {'id': '21', 'type': 'block', 'children': ['22', '26', '30', '34', '38', '66', '332', '382']}; {'id': '22', 'type': 'expression_statement', 'children': ['23']}; {'id': '23', 'type': 'assignment', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '25', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'assignment', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'errcode'}; {'id': '29', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '30', 'type': 'expression_statement', 'children': ['31']}; {'id': '31', 'type': 'assignment', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'caughte'}; {'id': '33', 'type': 'None', 'children': []}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '37', 'type': 'None', 'children': []}; {'id': '38', 'type': 'if_statement', 'children': ['39', '58']}; {'id': '39', 'type': 'boolean_operator', 'children': ['40', '49'], 'value': 'or'}; {'id': '40', 'type': 'comparison_operator', 'children': ['41', '47'], 'value': '!='}; {'id': '41', 'type': 'call', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'sql'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'find'}; {'id': '45', 'type': 'argument_list', 'children': ['46']}; {'id': '46', 'type': 'string', 'children': [], 'value': '";"'}; {'id': '47', 'type': 'unary_operator', 'children': ['48'], 'value': '-'}; {'id': '48', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '49', 'type': 'comparison_operator', 'children': ['50', '56'], 'value': '!='}; {'id': '50', 'type': 'call', 'children': ['51', '54']}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'sql'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'find'}; {'id': '54', 'type': 'argument_list', 'children': ['55']}; {'id': '55', 'type': 'string', 'children': [], 'value': '"\\\\G"'}; {'id': '56', 'type': 'unary_operator', 'children': ['57'], 'value': '-'}; {'id': '57', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '58', 'type': 'block', 'children': ['59']}; {'id': '59', 'type': 'raise_statement', 'children': ['60']}; {'id': '60', 'type': 'call', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '62', 'type': 'argument_list', 'children': ['63']}; {'id': '63', 'type': 'binary_operator', 'children': ['64', '65'], 'value': '%'}; {'id': '64', 'type': 'string', 'children': [], 'value': '"The SQL command \'%s\' contains a semi-colon or \\\\G. This is a potential SQL injection."'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'sql'}; {'id': '66', 'type': 'while_statement', 'children': ['67', '72']}; {'id': '67', 'type': 'comparison_operator', 'children': ['68', '69'], 'value': '<'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'numTries'}; {'id': '72', 'type': 'block', 'children': ['73', '77', '327']}; {'id': '73', 'type': 'expression_statement', 'children': ['74']}; {'id': '74', 'type': 'augmented_assignment', 'children': ['75', '76'], 'value': '+='}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '76', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '77', 'type': 'try_statement', 'children': ['78', '219', '274']}; {'id': '78', 'type': 'block', 'children': ['79', '94', '101', '111', '129', '153', '164', '179', '187', '205', '211', '217']}; {'id': '79', 'type': 'assert_statement', 'children': ['80']}; {'id': '80', 'type': '()', 'children': ['81']}; {'id': '81', 'type': 'boolean_operator', 'children': ['82', '87'], 'value': 'or'}; {'id': '82', 'type': 'not_operator', 'children': ['83']}; {'id': '83', 'type': '()', 'children': ['84']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'connection'}; {'id': '87', 'type': 'not_operator', 'children': ['88']}; {'id': '88', 'type': '()', 'children': ['89']}; {'id': '89', 'type': 'attribute', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'connection'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'open'}; {'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': 'self'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': '_get_connection'}; {'id': '99', 'type': 'argument_list', 'children': ['100']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'cursorClass'}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'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': 'self'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'connection'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '110', 'type': 'argument_list', 'children': []}; {'id': '111', 'type': 'if_statement', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '113', 'type': 'block', 'children': ['114', '123']}; {'id': '114', 'type': 'expression_statement', 'children': ['115']}; {'id': '115', 'type': 'call', 'children': ['116', '119']}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'execute'}; {'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': 'lockstring'}; {'id': '123', 'type': 'expression_statement', 'children': ['124']}; {'id': '124', 'type': 'assignment', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '128', 'type': 'True', 'children': []}; {'id': '129', 'type': 'if_statement', 'children': ['130', '131', '142']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'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': 'errcode'}; {'id': '135', 'type': 'call', 'children': ['136', '139']}; {'id': '136', 'type': 'attribute', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'execute'}; {'id': '139', 'type': 'argument_list', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'sql'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '142', 'type': 'else_clause', 'children': ['143']}; {'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': 'errcode'}; {'id': '147', 'type': 'call', 'children': ['148', '151']}; {'id': '148', 'type': 'attribute', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'execute'}; {'id': '151', 'type': 'argument_list', 'children': ['152']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'sql'}; {'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': 'self'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'lastrowid'}; {'id': '158', 'type': 'call', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '160', 'type': 'argument_list', 'children': ['161']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'lastrowid'}; {'id': '164', 'type': 'if_statement', 'children': ['165', '170']}; {'id': '165', 'type': 'boolean_operator', 'children': ['166', '167'], 'value': 'and'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'do_commit'}; {'id': '167', 'type': 'attribute', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'isInnoDB'}; {'id': '170', 'type': 'block', 'children': ['171']}; {'id': '171', 'type': 'expression_statement', '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': 'self'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'connection'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'commit'}; {'id': '178', 'type': 'argument_list', 'children': []}; {'id': '179', 'type': 'expression_statement', 'children': ['180']}; {'id': '180', 'type': 'assignment', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'results'}; {'id': '182', 'type': 'call', 'children': ['183', '186']}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'fetchall'}; {'id': '186', 'type': 'argument_list', 'children': []}; {'id': '187', 'type': 'if_statement', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '189', 'type': 'block', 'children': ['190', '199']}; {'id': '190', 'type': 'expression_statement', 'children': ['191']}; {'id': '191', 'type': 'call', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'execute'}; {'id': '195', 'type': 'argument_list', 'children': ['196']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'unlockstring'}; {'id': '199', 'type': 'expression_statement', 'children': ['200']}; {'id': '200', 'type': 'assignment', 'children': ['201', '204']}; {'id': '201', 'type': 'attribute', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '204', 'type': 'False', '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': 'cursor'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '210', 'type': 'argument_list', 'children': []}; {'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': 'self'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': '_close_connection'}; {'id': '216', 'type': 'argument_list', 'children': []}; {'id': '217', 'type': 'return_statement', 'children': ['218']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'results'}; {'id': '219', 'type': 'except_clause', 'children': ['220', '223', '224']}; {'id': '220', 'type': 'attribute', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'MySQLdb'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'OperationalError'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '224', 'type': 'block', 'children': ['225', '254', '260', '267', '273']}; {'id': '225', 'type': 'if_statement', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '227', 'type': 'block', 'children': ['228', '248']}; {'id': '228', 'type': 'if_statement', 'children': ['229', '232']}; {'id': '229', 'type': 'attribute', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '232', 'type': 'block', 'children': ['233', '242']}; {'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': 'cursor'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'execute'}; {'id': '238', 'type': 'argument_list', 'children': ['239']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'unlockstring'}; {'id': '242', 'type': 'expression_statement', 'children': ['243']}; {'id': '243', 'type': 'assignment', 'children': ['244', '247']}; {'id': '244', 'type': 'attribute', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '247', 'type': 'False', 'children': []}; {'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': 'cursor'}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '253', 'type': 'argument_list', 'children': []}; {'id': '254', 'type': 'expression_statement', 'children': ['255']}; {'id': '255', 'type': 'call', 'children': ['256', '259']}; {'id': '256', 'type': 'attribute', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': '_close_connection'}; {'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': 'caughte'}; {'id': '263', 'type': 'call', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '265', 'type': 'argument_list', 'children': ['266']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '267', 'type': 'expression_statement', 'children': ['268']}; {'id': '268', 'type': 'assignment', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'errcode'}; {'id': '270', 'type': 'subscript', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '272', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '273', 'type': 'continue_statement', 'children': []}; {'id': '274', 'type': 'except_clause', 'children': ['275', '276', '277']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '277', 'type': 'block', 'children': ['278', '307', '313', '320', '326']}; {'id': '278', 'type': 'if_statement', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '280', 'type': 'block', 'children': ['281', '301']}; {'id': '281', 'type': 'if_statement', 'children': ['282', '285']}; {'id': '282', 'type': 'attribute', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '285', 'type': 'block', 'children': ['286', '295']}; {'id': '286', 'type': 'expression_statement', 'children': ['287']}; {'id': '287', 'type': 'call', 'children': ['288', '291']}; {'id': '288', 'type': 'attribute', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'execute'}; {'id': '291', 'type': 'argument_list', 'children': ['292']}; {'id': '292', 'type': 'attribute', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'unlockstring'}; {'id': '295', 'type': 'expression_statement', 'children': ['296']}; {'id': '296', 'type': 'assignment', 'children': ['297', '300']}; {'id': '297', 'type': 'attribute', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'locked'}; {'id': '300', 'type': 'False', 'children': []}; {'id': '301', 'type': 'expression_statement', 'children': ['302']}; {'id': '302', 'type': 'call', 'children': ['303', '306']}; {'id': '303', 'type': 'attribute', 'children': ['304', '305']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'cursor'}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '306', 'type': 'argument_list', 'children': []}; {'id': '307', 'type': 'expression_statement', 'children': ['308']}; {'id': '308', 'type': 'call', 'children': ['309', '312']}; {'id': '309', 'type': 'attribute', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '311', 'type': 'identifier', 'children': [], 'value': '_close_connection'}; {'id': '312', 'type': 'argument_list', 'children': []}; {'id': '313', 'type': 'expression_statement', 'children': ['314']}; {'id': '314', 'type': 'assignment', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'caughte'}; {'id': '316', 'type': 'call', 'children': ['317', '318']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '318', 'type': 'argument_list', 'children': ['319']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'e'}; {'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': 'traceback'}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'print_exc'}; {'id': '325', 'type': 'argument_list', 'children': []}; {'id': '326', 'type': 'break_statement', 'children': []}; {'id': '327', 'type': 'expression_statement', 'children': ['328']}; {'id': '328', 'type': 'call', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'sleep'}; {'id': '330', 'type': 'argument_list', 'children': ['331']}; {'id': '331', 'type': 'float', 'children': [], 'value': '0.2'}; {'id': '332', 'type': 'if_statement', 'children': ['333', '335']}; {'id': '333', 'type': 'not_operator', 'children': ['334']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'quiet'}; {'id': '335', 'type': 'block', 'children': ['336', '358', '374']}; {'id': '336', 'type': 'expression_statement', 'children': ['337']}; {'id': '337', 'type': 'call', 'children': ['338', '343']}; {'id': '338', 'type': 'attribute', 'children': ['339', '342']}; {'id': '339', 'type': 'attribute', 'children': ['340', '341']}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '343', 'type': 'argument_list', 'children': ['344']}; {'id': '344', 'type': 'binary_operator', 'children': ['345', '346'], 'value': '%'}; {'id': '345', 'type': 'string', 'children': [], 'value': '"\\nSQL execution error in query %s at %s:"'}; {'id': '346', 'type': 'tuple', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'sql'}; {'id': '348', 'type': 'call', 'children': ['349', '356']}; {'id': '349', 'type': 'attribute', 'children': ['350', '355']}; {'id': '350', 'type': 'call', 'children': ['351', '354']}; {'id': '351', 'type': 'attribute', 'children': ['352', '353']}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'datetime'}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'now'}; {'id': '354', 'type': 'argument_list', 'children': []}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'strftime'}; {'id': '356', 'type': 'argument_list', 'children': ['357']}; {'id': '357', 'type': 'string', 'children': [], 'value': '"%Y-%m-%d %H:%M:%S"'}; {'id': '358', 'type': 'expression_statement', 'children': ['359']}; {'id': '359', 'type': 'call', 'children': ['360', '365']}; {'id': '360', 'type': 'attribute', 'children': ['361', '364']}; {'id': '361', 'type': 'attribute', 'children': ['362', '363']}; {'id': '362', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '365', 'type': 'argument_list', 'children': ['366']}; {'id': '366', 'type': 'binary_operator', 'children': ['367', '368'], 'value': '%'}; {'id': '367', 'type': 'string', 'children': [], 'value': '"\\nErrorcode/Error: %d - \'%s\'.\\n"'}; {'id': '368', 'type': 'tuple', 'children': ['369', '370']}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'errcode'}; {'id': '370', 'type': 'call', 'children': ['371', '372']}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '372', 'type': 'argument_list', 'children': ['373']}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'caughte'}; {'id': '374', 'type': 'expression_statement', 'children': ['375']}; {'id': '375', 'type': 'call', 'children': ['376', '381']}; {'id': '376', 'type': 'attribute', 'children': ['377', '380']}; {'id': '377', 'type': 'attribute', 'children': ['378', '379']}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '380', 'type': 'identifier', 'children': [], 'value': 'flush'}; {'id': '381', 'type': 'argument_list', 'children': []}; {'id': '382', 'type': 'raise_statement', 'children': ['383']}; {'id': '383', 'type': 'call', 'children': ['384', '387']}; {'id': '384', 'type': 'attribute', 'children': ['385', '386']}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'MySQLdb'}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'OperationalError'}; {'id': '387', 'type': 'argument_list', 'children': ['388']}; {'id': '388', 'type': 'identifier', 'children': [], 'value': 'caughte'} | Execute SQL query. This uses DictCursor by default. |
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '13']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'neighbors2'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '10']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'distance'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'chain_residue'}; {'id': '7', 'type': 'default_parameter', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '9', 'type': 'None', 'children': []}; {'id': '10', 'type': 'default_parameter', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'resid_list'}; {'id': '12', 'type': 'None', 'children': []}; {'id': '13', 'type': 'block', 'children': ['14', '16', '76', '85', '133', '137', '218']}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'string', 'children': [], 'value': "'''this one is more precise since it uses the chain identifier also'''"}; {'id': '16', 'type': 'if_statement', 'children': ['17', '20', '43']}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '19'], 'value': '=='}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'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': 'lines'}; {'id': '24', 'type': 'list_comprehension', 'children': ['25', '26', '34']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '26', 'type': 'for_in_clause', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '28', 'type': 'call', 'children': ['29', '32']}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'atomlines'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'resid_list'}; {'id': '34', 'type': 'if_clause', 'children': ['35']}; {'id': '35', 'type': 'comparison_operator', 'children': ['36', '42'], 'value': 'in'}; {'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': '17'}; {'id': '40', 'type': 'colon', 'children': []}; {'id': '41', 'type': 'integer', 'children': [], 'value': '20'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'allowed_PDB_residues_types'}; {'id': '43', 'type': 'else_clause', 'children': ['44']}; {'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': 'lines'}; {'id': '48', 'type': 'list_comprehension', 'children': ['49', '50', '58']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '50', 'type': 'for_in_clause', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '52', 'type': 'call', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'atomlines'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'resid_list'}; {'id': '58', 'type': 'if_clause', 'children': ['59']}; {'id': '59', 'type': 'boolean_operator', 'children': ['60', '68'], 'value': 'and'}; {'id': '60', 'type': 'comparison_operator', 'children': ['61', '67'], 'value': 'in'}; {'id': '61', 'type': 'subscript', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '63', 'type': 'slice', 'children': ['64', '65', '66']}; {'id': '64', 'type': 'integer', 'children': [], 'value': '17'}; {'id': '65', 'type': 'colon', 'children': []}; {'id': '66', 'type': 'integer', 'children': [], 'value': '20'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'allowed_PDB_residues_types'}; {'id': '68', 'type': 'comparison_operator', 'children': ['69', '75'], 'value': '=='}; {'id': '69', 'type': 'subscript', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '71', 'type': 'slice', 'children': ['72', '73', '74']}; {'id': '72', 'type': 'integer', 'children': [], 'value': '12'}; {'id': '73', 'type': 'colon', 'children': []}; {'id': '74', 'type': 'integer', 'children': [], 'value': '16'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'atom'}; {'id': '76', 'type': 'expression_statement', 'children': ['77']}; {'id': '77', 'type': 'assignment', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'shash'}; {'id': '79', 'type': 'call', 'children': ['80', '83']}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'spatialhash'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'SpatialHash'}; {'id': '83', 'type': 'argument_list', 'children': ['84']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'distance'}; {'id': '85', 'type': 'for_statement', 'children': ['86', '87', '88']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '88', 'type': 'block', 'children': ['89', '120']}; {'id': '89', 'type': 'expression_statement', 'children': ['90']}; {'id': '90', 'type': 'assignment', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '92', 'type': 'tuple', 'children': ['93', '102', '111']}; {'id': '93', 'type': 'call', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '95', 'type': 'argument_list', 'children': ['96']}; {'id': '96', 'type': 'subscript', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '98', 'type': 'slice', 'children': ['99', '100', '101']}; {'id': '99', 'type': 'integer', 'children': [], 'value': '30'}; {'id': '100', 'type': 'colon', 'children': []}; {'id': '101', 'type': 'integer', 'children': [], 'value': '38'}; {'id': '102', 'type': 'call', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '104', 'type': 'argument_list', 'children': ['105']}; {'id': '105', 'type': 'subscript', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '107', 'type': 'slice', 'children': ['108', '109', '110']}; {'id': '108', 'type': 'integer', 'children': [], 'value': '38'}; {'id': '109', 'type': 'colon', 'children': []}; {'id': '110', 'type': 'integer', 'children': [], 'value': '46'}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '113', 'type': 'argument_list', 'children': ['114']}; {'id': '114', 'type': 'subscript', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '116', 'type': 'slice', 'children': ['117', '118', '119']}; {'id': '117', 'type': 'integer', 'children': [], 'value': '46'}; {'id': '118', 'type': 'colon', 'children': []}; {'id': '119', 'type': 'integer', 'children': [], 'value': '54'}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'call', 'children': ['122', '125']}; {'id': '122', 'type': 'attribute', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'shash'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'insert'}; {'id': '125', 'type': 'argument_list', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '127', 'type': 'subscript', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '129', 'type': 'slice', 'children': ['130', '131', '132']}; {'id': '130', 'type': 'integer', 'children': [], 'value': '21'}; {'id': '131', 'type': 'colon', 'children': []}; {'id': '132', 'type': 'integer', 'children': [], 'value': '26'}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'assignment', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'neighbor_list'}; {'id': '136', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '137', 'type': 'for_statement', 'children': ['138', '139', '140']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '140', 'type': 'block', 'children': ['141', '150']}; {'id': '141', 'type': 'expression_statement', 'children': ['142']}; {'id': '142', 'type': 'assignment', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'resid'}; {'id': '144', 'type': 'subscript', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '146', 'type': 'slice', 'children': ['147', '148', '149']}; {'id': '147', 'type': 'integer', 'children': [], 'value': '21'}; {'id': '148', 'type': 'colon', 'children': []}; {'id': '149', 'type': 'integer', 'children': [], 'value': '26'}; {'id': '150', 'type': 'if_statement', 'children': ['151', '154']}; {'id': '151', 'type': 'comparison_operator', 'children': ['152', '153'], 'value': '=='}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'resid'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'chain_residue'}; {'id': '154', 'type': 'block', 'children': ['155', '186', '212']}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'assignment', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '158', 'type': 'tuple', 'children': ['159', '168', '177']}; {'id': '159', 'type': 'call', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '161', 'type': 'argument_list', 'children': ['162']}; {'id': '162', 'type': 'subscript', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '164', 'type': 'slice', 'children': ['165', '166', '167']}; {'id': '165', 'type': 'integer', 'children': [], 'value': '30'}; {'id': '166', 'type': 'colon', 'children': []}; {'id': '167', 'type': 'integer', 'children': [], 'value': '38'}; {'id': '168', 'type': 'call', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '170', 'type': 'argument_list', 'children': ['171']}; {'id': '171', 'type': 'subscript', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '173', 'type': 'slice', 'children': ['174', '175', '176']}; {'id': '174', 'type': 'integer', 'children': [], 'value': '38'}; {'id': '175', 'type': 'colon', 'children': []}; {'id': '176', 'type': 'integer', 'children': [], 'value': '46'}; {'id': '177', 'type': 'call', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '179', 'type': 'argument_list', 'children': ['180']}; {'id': '180', 'type': 'subscript', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '182', 'type': 'slice', 'children': ['183', '184', '185']}; {'id': '183', 'type': 'integer', 'children': [], 'value': '46'}; {'id': '184', 'type': 'colon', 'children': []}; {'id': '185', 'type': 'integer', 'children': [], 'value': '54'}; {'id': '186', 'type': 'for_statement', 'children': ['187', '188', '195']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '188', 'type': 'call', 'children': ['189', '192']}; {'id': '189', 'type': 'attribute', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'shash'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'nearby'}; {'id': '192', 'type': 'argument_list', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'distance'}; {'id': '195', 'type': 'block', 'children': ['196']}; {'id': '196', 'type': 'if_statement', 'children': ['197', '202']}; {'id': '197', 'type': 'comparison_operator', 'children': ['198', '201'], 'value': 'not'}; {'id': '198', 'type': 'subscript', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '200', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'neighbor_list'}; {'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': 'neighbor_list'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '208', 'type': 'argument_list', 'children': ['209']}; {'id': '209', 'type': 'subscript', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '211', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'call', 'children': ['214', '217']}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'neighbor_list'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'sort'}; {'id': '217', 'type': 'argument_list', 'children': []}; {'id': '218', 'type': 'return_statement', 'children': ['219']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'neighbor_list'} | this one is more precise since it uses the chain identifier also |
Subsets and Splits