def format(file_metrics, build_metrics):
<EOL>def report_header(file_metrics):<EOL><INDENT>values = list(file_metrics.values())[<NUM_LIT:0>]<EOL>print(values)<EOL>values.pop('<STR_LIT>', None)<EOL>return '<STR_LIT>' + '<STR_LIT:U+002C>'.join(values) + '<STR_LIT:\n>'<EOL><DEDENT>def report_metrics(file_metrics):<EOL><INDENT>report = '<STR_LIT>'<EOL>for key, values in file_metrics.items():<EOL><INDENT>report += key + '<STR_LIT:U+002C>'<EOL>report += '<STR_LIT:U+002C>'.join([str(v) for k, v in values.items() if k not in ['<STR_LIT>']])<EOL>report += '<STR_LIT:\n>'<EOL><DEDENT>return report<EOL><DEDENT>report = report_header(file_metrics)<EOL>report += report_metrics(file_metrics)<EOL>return report<EOL>
Compute output in CSV format (only file_metrics).