<commit_before>from tornado import web as tw

from .templates import index_html


class IndexHandler(tw.RequestHandler):

    def get(self):
        self.render(index_html)<commit_msg>rewrite view<commit_after>from aiohttp import web as aw
import aiohttp_jinja2 as aj


class IndexHandler(aw.View):

    async def get(self):
        return aj.render_template('index.html', self.request, None)
{'fraction_non_alphanumeric': 0.08418367346938775, 'fraction_numerical': 0.002551020408163265, 'mean_word_length': 4.458333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3041105', 'n_tokens_mistral': 124, 'n_tokens_neox': 116, 'n_words': 34}