def compute_file_metrics(processors, language, key, token_list):
<EOL>tli = itertools.tee(token_list, len(processors))<EOL>metrics = OrderedDict()<EOL>for p in processors:<EOL><INDENT>p.reset()<EOL><DEDENT>for p, tl in zip(processors, tli):<EOL><INDENT>p.process_file(language, key, tl)<EOL><DEDENT>for p in processors:<EOL><INDENT>metrics.update(p.metrics)<EOL><DEDENT>return metrics<EOL>
use processors to compute file metrics.