def find_missing_taf_times(lines: [dict], start: Timestamp, end: Timestamp) -> [dict]:  
if not lines:<EOL><INDENT>return lines<EOL><DEDENT>lines[<NUM_LIT:0>]['<STR_LIT>'] = start<EOL>last_fm_line = <NUM_LIT:0><EOL>for i, line in enumerate(lines):<EOL><INDENT>if _is_tempo_or_prob(line['<STR_LIT:type>']):<EOL><INDENT>continue<EOL><DEDENT>last_fm_line = i<EOL>for target, other, direc in (('<STR_LIT:start>', '<STR_LIT:end>', -<NUM_LIT:1>), ('<STR_LIT:end>', '<STR_LIT:start>', <NUM_LIT:1>)):<EOL><INDENT>target += '<STR_LIT>'<EOL>if not line[target]:<EOL><INDENT>line[target] = _get_next_time(lines[i::direc][<NUM_LIT:1>:], other + '<STR_LIT>')<EOL><DEDENT><DEDENT><DEDENT>if last_fm_line:<EOL><INDENT>lines[last_fm_line]['<STR_LIT>'] = end<EOL><DEDENT>if lines and not lines[<NUM_LIT:0>]['<STR_LIT>']:<EOL><INDENT>lines[<NUM_LIT:0>]['<STR_LIT>'] = end<EOL><DEDENT>return lines<EOL>
Fix any missing time issues (except for error/empty lines)