def translate_file_diff(data):
diff = '<STR_LIT>'<EOL>sections = data.get('<STR_LIT>')<EOL>for title, config in sections.items():<EOL><INDENT>title = title.replace('<STR_LIT:_>', '<STR_LIT>')<EOL>diff += '<STR_LIT>'.replace('<STR_LIT>', title)<EOL>for opt, vals in config.items():<EOL><INDENT>opt = opt.replace('<STR_LIT:_>', '<STR_LIT>')<EOL>diff += '<STR_LIT>'.replace('<STR_LIT>', opt)<EOL>if vals[<NUM_LIT:0>]:<EOL><INDENT>diff += '<STR_LIT>'.replace('<STR_LIT>', vals[-<NUM_LIT:1>])<EOL><DEDENT>else:<EOL><INDENT>diff += ('<STR_LIT>'.format(vals[<NUM_LIT:1>], vals[-<NUM_LIT:1>]))<EOL><DEDENT><DEDENT><DEDENT>diff += '<STR_LIT>'<EOL>return diff<EOL>
Translates data where data["Type"]=="Diff