@staticmethod<EOL><INDENT>def include_file_cb(include_path, line_ranges, symbol):<DEDENT>
lang = '<STR_LIT>'<EOL>if include_path.endswith(("<STR_LIT>", "<STR_LIT>")):<EOL><INDENT>lang = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>split = os.path.splitext(include_path)<EOL>if len(split) == <NUM_LIT:2>:<EOL><INDENT>ext = split[<NUM_LIT:1>].strip('<STR_LIT:.>')<EOL>lang = LANG_MAPPING.get(ext) or ext<EOL><DEDENT><DEDENT>if line_ranges:<EOL><INDENT>res = []<EOL>for line_range in line_ranges:<EOL><INDENT>for lineno in range(line_range[<NUM_LIT:0>] + <NUM_LIT:1>, line_range[<NUM_LIT:1>] + <NUM_LIT:1>):<EOL><INDENT>line = linecache.getline(include_path, lineno)<EOL>if not line:<EOL><INDENT>return None<EOL><DEDENT>res.append(line)<EOL><DEDENT><DEDENT>return '<STR_LIT>'.join(res), lang<EOL><DEDENT>with io.open(include_path, '<STR_LIT:r>', encoding='<STR_LIT:utf-8>') as _:<EOL><INDENT>return _.read(), lang<EOL><DEDENT>
Banana banana