<commit_before>import asyncio

from aiohttp import web

from .app import BaseApplication


class Application(BaseApplication, web.Application):
    def __init__(self, *, config, **kwargs):
        if kwargs.get('loop') is None:
            kwargs['loop'] = asyncio.get_event_loop()
        web.Application.__init__(self, **kwargs)
        BaseApplication.__init__(self, config=config, **kwargs)

    def run_forever(self, **kwargs):
        web.run_app(self, **kwargs)<commit_msg>link to context in app<commit_after>import asyncio

from aiohttp import web

from .app import BaseApplication


class Application(BaseApplication, web.Application):
    def __init__(self, *, config, context, **kwargs):
        if kwargs.get('loop') is None:
            kwargs['loop'] = asyncio.get_event_loop()
        web.Application.__init__(self, **kwargs)
        BaseApplication.__init__(
            self, config=config, context=context, **kwargs)

    def run_forever(self, **kwargs):
        web.run_app(self, **kwargs)
{'fraction_non_alphanumeric': 0.12003968253968254, 'fraction_numerical': 0.0, 'mean_word_length': 3.628440366972477, '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': '871856', 'n_tokens_mistral': 289, 'n_tokens_neox': 285, 'n_words': 72}