<commit_before>from django.conf.urls import include, url
from django.contrib import admin
from django.core.urlresolvers import reverse_lazy
from django.views.generic import RedirectView

from bluebottle.views import HomeView
from bluebottle.auth.views import admin_password_reset
from django.contrib.auth.views import password_reset_done, password_reset_confirm

admin.autodiscover()


urlpatterns = [

    # Django Admin, docs and password reset
    url(r'^admin/password_reset/$',
        admin_password_reset,
        name='admin_password_reset'),
    url(r'^admin/password_reset/done/$',
        password_reset_done, name='password_reset_done'),
    url(r'^admin/', include('loginas.urls')),
    url(r'^admin/password_reset/confirm/(?P<uidb36>[0-9A-Za-z]{1,13})-(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
        password_reset_confirm,
        name='password_reset_confirm'),
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/exportdb/', include('exportdb.urls')),
    url(r'^admin/', include(admin.site.urls)),

    url(r'^admin/utils/tinymce/', include('tinymce.urls')),
    url(r'^admin/utils/admintools/', include('admin_tools.urls')),

    # account login/logout, password reset, and password change
    url(r'^accounts/',
        include('django.contrib.auth.urls', namespace='accounts')),

    url(r'^admin', RedirectView.as_view(url=reverse_lazy('admin:index')), name='admin-slash'),

    url(r'^', HomeView.as_view(), name='home'),

]
<commit_msg>add analytics urls config<commit_after>from django.conf.urls import include, url
from django.contrib import admin
from django.core.urlresolvers import reverse_lazy
from django.views.generic import RedirectView

from bluebottle.views import HomeView
from bluebottle.auth.views import admin_password_reset
from django.contrib.auth.views import password_reset_done, password_reset_confirm

admin.autodiscover()


urlpatterns = [

    # Django Admin, docs and password reset
    url(r'^admin/password_reset/$',
        admin_password_reset,
        name='admin_password_reset'),
    url(r'^admin/password_reset/done/$',
        password_reset_done, name='password_reset_done'),
    url(r'^admin/', include('loginas.urls')),
    url(r'^admin/password_reset/confirm/(?P<uidb36>[0-9A-Za-z]{1,13})-(?P<token>[<KEY>/$',
        password_reset_confirm,
        name='password_reset_confirm'),
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/exportdb/', include('exportdb.urls')),
    url(r'^admin/analytics/', include('bluebottle.analytics.urls')),
    url(r'^admin/', include(admin.site.urls)),

    url(r'^admin/utils/tinymce/', include('tinymce.urls')),
    url(r'^admin/utils/admintools/', include('admin_tools.urls')),

    # account login/logout, password reset, and password change
    url(r'^accounts/',
        include('django.contrib.auth.urls', namespace='accounts')),

    url(r'^admin', RedirectView.as_view(url=reverse_lazy('admin:index')), name='admin-slash'),

    url(r'^', HomeView.as_view(), name='home'),

]

{'fraction_non_alphanumeric': 0.16355904481517827, 'fraction_numerical': 0.007850834151128557, 'mean_word_length': 4.869481765834933, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6316519', 'n_tokens_mistral': 1068, 'n_tokens_neox': 1023, 'n_words': 155}