def parse_comment_telemetry(text):
parsed = {}<EOL>match = re.findall(r"<STR_LIT>", text)<EOL>if match and len(match[<NUM_LIT:0>][<NUM_LIT:1>]) % <NUM_LIT:2> == <NUM_LIT:0>:<EOL><INDENT>text, telemetry, post = match[<NUM_LIT:0>]<EOL>text += post<EOL>temp = [<NUM_LIT:0>] * <NUM_LIT:7><EOL>for i in range(<NUM_LIT:7>):<EOL><INDENT>temp[i] = base91.to_decimal(telemetry[i*<NUM_LIT:2>:i*<NUM_LIT:2>+<NUM_LIT:2>])<EOL><DEDENT>parsed.update({<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': temp[<NUM_LIT:0>],<EOL>'<STR_LIT>': temp[<NUM_LIT:1>:<NUM_LIT:6>]<EOL>}<EOL>})<EOL>if temp[<NUM_LIT:6>] != '<STR_LIT>':<EOL><INDENT>parsed['<STR_LIT>'].update({<EOL>'<STR_LIT>': "<STR_LIT>".format(temp[<NUM_LIT:6>] & <NUM_LIT>)[::-<NUM_LIT:1>]<EOL>})<EOL><DEDENT><DEDENT>return (text, parsed)<EOL>
Looks for base91 telemetry found in comment field
Returns [remaining_text, telemetry]