<commit_before>from django.conf.urls import include, url, patterns
from django.contrib import admin

from bluebottle.views import HomeView

admin.autodiscover()

urlpatterns = patterns(
    '',

    # Django Admin, docs and password reset
    url(r'^admin/password_reset/$',
        'bluebottle.auth.views.admin_password_reset',
        name='admin_password_reset'),
    url(r'^admin/password_reset/done/$',
        'django.contrib.auth.views.password_reset_done'),

    url(
        r'^admin/password_reset/confirm/(?P<uidb36>[0-9A-Za-z]{1,13})-(?P<token>[<KEY>})/$',
        'django.contrib.auth.views.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)),

    # Other modules that need URLs exposed
    url(r'^admin/utils/taggit-autocomplete/',
        include('taggit_autocomplete_modified.urls')),
    url(r'^admin/utils/tinymce/', include('tinymce.urls')),
    url(r'^admin/utils/admintools/', include('admin_tools.urls')),

    url(r'^admin/documents/', include('bluebottle.utils.urls.main')),

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

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

    # Django Admin, docs and password reset
    url(r'^admin/password_reset/$', 'django.contrib.auth.views.password_reset',
        name='admin_password_reset'),
    url(r'^admin/password_reset/done/$',
        'django.contrib.auth.views.password_reset_done'),
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),

    # Other modules that need URLs exposed
    url(r'^admin/utils/taggit-autocomplete/',
        include('taggit_autocomplete_modified.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')),

    # These URL's will be automatically prefixed with the locale (e.g. '/nl/')
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^.{2}/', HomeView.as_view(), name='home'),
<commit_msg>Match all url under a language for the homepage<commit_after>from django.conf.urls import include, url, patterns
from django.contrib import admin

from bluebottle.views import HomeView

admin.autodiscover()

urlpatterns = patterns(
    '',

    # Django Admin, docs and password reset
    url(r'^admin/password_reset/$',
        'bluebottle.auth.views.admin_password_reset',
        name='admin_password_reset'),
    url(r'^admin/password_reset/done/$',
        'django.contrib.auth.views.password_reset_done'),

    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})/$',
        'django.contrib.auth.views.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)),

    # Other modules that need URLs exposed
    url(r'^admin/utils/taggit-autocomplete/',
        include('taggit_autocomplete_modified.urls')),
    url(r'^admin/utils/tinymce/', include('tinymce.urls')),
    url(r'^admin/utils/admintools/', include('admin_tools.urls')),

    url(r'^admin/documents/', include('bluebottle.utils.urls.main')),

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

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

    # Django Admin, docs and password reset
    url(r'^admin/password_reset/$', 'django.contrib.auth.views.password_reset',
        name='admin_password_reset'),
    url(r'^admin/password_reset/done/$',
        'django.contrib.auth.views.password_reset_done'),
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),

    # Other modules that need URLs exposed
    url(r'^admin/utils/taggit-autocomplete/',
        include('taggit_autocomplete_modified.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')),

    # These URL's will be automatically prefixed with the locale (e.g. '/nl/')
    url(r'^', HomeView.as_view(), name='home'),

{'fraction_non_alphanumeric': 0.17193836171938362, 'fraction_numerical': 0.005068937550689375, 'mean_word_length': 4.075102880658436, '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': '490792', 'n_tokens_mistral': 1700, 'n_tokens_neox': 1618, 'n_words': 255}