<commit_before>"""
At the moment this module does something only when restframework is available
"""
from django.conf import settings

if 'rest_framework' in settings.INSTALLED_APPS:
    from rest_framework.routers import DefaultRouter
    from django.conf.urls import patterns, url, include
    from . import views

    router = DefaultRouter()
    router.register(r'inbox', views.InboxViewSet, base_name='inbox')
    router.register(r'archive', views.InboxViewSet, base_name='archive')

    urlpatterns = patterns(
        '',
        url(r'^', include(router.urls)),
        url(r'^mark_all_read/$', views.mark_all_read, name='mark_all_read'),
    )
<commit_msg>fix(url:archive): fix called view<commit_after>"""
At the moment this module does something only when restframework is available
"""
from django.conf import settings

if 'rest_framework' in settings.INSTALLED_APPS:
    from rest_framework.routers import DefaultRouter
    from django.conf.urls import patterns, url, include
    from . import views

    router = DefaultRouter()
    router.register(r'inbox', views.InboxViewSet, base_name='inbox')
    router.register(r'archive', views.ArchiveViewSet, base_name='archive')

    urlpatterns = patterns(
        '',
        url(r'^', include(router.urls)),
        url(r'^mark_all_read/$', views.mark_all_read, name='mark_all_read'),
    )

{'fraction_non_alphanumeric': 0.11390532544378698, 'fraction_numerical': 0.0, 'mean_word_length': 4.244186046511628, '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': '1744862', 'n_tokens_mistral': 405, 'n_tokens_neox': 399, 'n_words': 101}