<commit_before># coding: utf-8
from django.conf import settings
from django.contrib import admin
from django.urls import include, path, re_path
from django.views.generic.base import RedirectView

from kobo.apps.service_health.views import service_health

admin.autodiscover()

urlpatterns = [
    re_path(r'^admin/', admin.site.urls),
    # https://github.com/stochastic-technologies/django-loginas
    re_path(r'^admin/', include('loginas.urls')),
    re_path(r'^', include('kpi.urls')),
    re_path(r'^markdownx/', include('markdownx.urls')),
    re_path(r'^markitup/', include('markitup.urls')),
    re_path(r'^help/', include('kobo.apps.help.urls')),
    path('service_health/', service_health),
    re_path(r'kobocat/', RedirectView.as_view(url=settings.KOBOCAT_URL, permanent=True)),
]<commit_msg>Declare loginas urls before django admin urls<commit_after># coding: utf-8
from django.conf import settings
from django.contrib import admin
from django.urls import include, path, re_path
from django.views.generic.base import RedirectView

from kobo.apps.service_health.views import service_health

admin.autodiscover()

urlpatterns = [
    # https://github.com/stochastic-technologies/django-loginas
    re_path(r'^admin/', include('loginas.urls')),
    re_path(r'^admin/', admin.site.urls),
    re_path(r'^', include('kpi.urls')),
    re_path(r'^markdownx/', include('markdownx.urls')),
    re_path(r'^markitup/', include('markitup.urls')),
    re_path(r'^help/', include('kobo.apps.help.urls')),
    path('service_health/', service_health),
    re_path(r'kobocat/', RedirectView.as_view(url=settings.KOBOCAT_URL, permanent=True)),
]
{'fraction_non_alphanumeric': 0.1575091575091575, 'fraction_numerical': 0.001221001221001221, 'mean_word_length': 5.478260869565218, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1141449', 'n_tokens_mistral': 586, 'n_tokens_neox': 575, 'n_words': 96}