<commit_before>def setup_routes(app, handler, project_root):
    add_route = app.router.add_route
    add_route('GET', '/', handler.timeline, name='timeline')
    add_route('GET', '/public',
              handler.public_timeline, name='public_timeline')
    add_route('GET', '/logout', handler.logout, name='logout')
    add_route('GET', '/login', handler.login, name='login')
    add_route('GET', '/register', handler.register, name='register')
    add_route('GET', '/{username}', handler.user_timeline,
              name='user_timeline')
    add_route('GET', '/{username}/follow', handler.user_timeline,
              name='follow_user')
    add_route('GET', '/{username}/unfollow', handler.user_timeline,
              name='unfollow_user')
    add_route('POST', '/add_message', handler.user_timeline,
              name='add_message')
    app.router.add_static('/static/',
                          path=str(project_root / 'static'),
                          name='static')<commit_msg>fix routes<commit_after>def setup_routes(app, handler, project_root):
    add_route = app.router.add_route
    add_route('GET', '/', handler.timeline, name='timeline')
    add_route('GET', '/public',
              handler.public_timeline, name='public_timeline')
    add_route('GET', '/logout', handler.logout, name='logout')
    add_route('GET', '/login', handler.login, name='login')
    add_route('POST', '/login', handler.login)
    add_route('GET', '/register', handler.register, name='register')
    add_route('POST', '/register', handler.register)
    add_route('GET', '/{username}', handler.user_timeline,
              name='user_timeline')
    add_route('GET', '/{username}/follow', handler.user_timeline,
              name='follow_user')
    add_route('GET', '/{username}/unfollow', handler.user_timeline,
              name='unfollow_user')
    add_route('POST', '/add_message', handler.user_timeline,
              name='add_message')
    app.router.add_static('/static/',
                          path=str(project_root / 'static'),
                          name='static')
{'fraction_non_alphanumeric': 0.1673881673881674, 'fraction_numerical': 0.0, 'mean_word_length': 3.16, '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': '5306369', 'n_tokens_mistral': 614, 'n_tokens_neox': 617, 'n_words': 96}