<commit_before>from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.contrib.auth.decorators import login_required

from japper.monitoring.views import StatesList
from japper.monitoring.plugins import get_url_patterns


urlpatterns = get_url_patterns('',
    url(r'^$',login_required(StatesList.as_view(problems_only=True)),
        name='frontpage'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^monitoring/', include('japper.monitoring.urls')),
    url(r'^login/$', auth_views.login, name='login'),
    url(r'^logout/$', auth_views.logout_then_login, name='logout'),
    url(r'^users/', include('japper.users.urls')),
)
<commit_msg>frontpage redirects to problems page instead of aliasing it<commit_after>from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.views.generic import RedirectView

from japper.monitoring.plugins import get_url_patterns


urlpatterns = get_url_patterns('',
    url(r'^$', RedirectView.as_view(pattern_name='monitoring_problems'),
        name='frontpage'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^monitoring/', include('japper.monitoring.urls')),
    url(r'^login/$', auth_views.login, name='login'),
    url(r'^logout/$', auth_views.logout_then_login, name='logout'),
    url(r'^users/', include('japper.users.urls')),
)

{'fraction_non_alphanumeric': 0.14649243466299863, 'fraction_numerical': 0.0, 'mean_word_length': 5.767441860465116, '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': '2075687', 'n_tokens_mistral': 483, 'n_tokens_neox': 468, 'n_words': 91}