<commit_before>import os
import uvloop
import asyncio
import aiodns
import aiohttp
from aiohttp import web
from kubernetes_asyncio import client, config
import logging

from hailtop import gear
from hailtop.gear.auth import authenticated_developers_only

uvloop.install()

gear.configure_logging()
log = logging.getLogger('router-resolver')

app = web.Application()
routes = web.RouteTableDef()


@routes.get('/auth/{namespace}')
@authenticated_developers_only
async def auth(request):
    app = request.app<commit_msg>[router-resolver] fix import from hailtop.gear (#6872)<commit_after>import os
import uvloop
import asyncio
import aiodns
import aiohttp
from aiohttp import web
from kubernetes_asyncio import client, config
import logging

from hailtop import gear
from hailtop.gear.auth import web_authenticated_developers_only

uvloop.install()

gear.configure_logging()
log = logging.getLogger('router-resolver')

app = web.Application()
routes = web.RouteTableDef()


@routes.get('/auth/{namespace}')
@web_authenticated_developers_only
async def auth(request):
    app = request.app
{'fraction_non_alphanumeric': 0.08555657773689053, 'fraction_numerical': 0.0036798528058877645, 'mean_word_length': 6.4520547945205475, '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': '6196328', 'n_tokens_mistral': 346, 'n_tokens_neox': 336, 'n_words': 92}