def index_file(self):
index_tmpl = Templite(<EOL>data("<STR_LIT>"), self.template_globals<EOL>)<EOL>self.totals = sum([f['<STR_LIT>'] for f in self.files])<EOL>html = index_tmpl.render({<EOL>'<STR_LIT>': self.arcs,<EOL>'<STR_LIT>': self.extra_css,<EOL>'<STR_LIT>': self.files,<EOL>'<STR_LIT>': self.totals,<EOL>})<EOL>if sys.version_info < (<NUM_LIT:3>, <NUM_LIT:0>):<EOL><INDENT>html = html.decode("<STR_LIT:utf-8>")<EOL><DEDENT>self.write_html(<EOL>os.path.join(self.directory, "<STR_LIT>"),<EOL>html<EOL>)<EOL>self.status.write(self.directory)<EOL>
Write the index.html file for this report.