<commit_before>from django.conf.urls import patterns, include
from django.views.generic import TemplateView
from django.contrib import admin

admin.autodiscover()


urlpatterns = patterns(
    # Prefix
    '',

    (r'^admin/', include(admin.site.urls)),
    (r'^api/', include('blimp_boards.router')),

    (r'', include('blimp_boards.users.urls')),

    # Catch all URL
    (r'^.*/$', TemplateView.as_view(template_name='index.html'))
)<commit_msg>Correctly set root and catch all URL<commit_after>from django.conf.urls import patterns, include
from django.views.generic import TemplateView
from django.contrib import admin


admin.autodiscover()

index_view = TemplateView.as_view(template_name='index.html')

urlpatterns = patterns(
    # Prefix
    '',

    (r'^admin/', include(admin.site.urls)),
    (r'^api/', include('blimp_boards.router')),

    (r'', include('blimp_boards.users.urls')),

    # Catch all URL
    (r'^($|.*/$)', index_view),
)
{'fraction_non_alphanumeric': 0.161594963273872, 'fraction_numerical': 0.0, 'mean_word_length': 4.389830508474576, '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': '7278863', 'n_tokens_mistral': 325, 'n_tokens_neox': 315, 'n_words': 64}