<commit_before>try:
    from django.conf.urls.defaults import patterns, include, url
except ImportError:
    from django.conf.urls import patterns, url, include

import settings
import os

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',

    url(r'^$',
        'django.views.generic.simple.direct_to_template',
        {'template': 'index.html'}
        ),

    url(r'^test/', 'test_app.views.test_index'),

    url(r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns(
        '',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve',<commit_msg>Fix for 1.6 & 1.7<commit_after>from django.views.generic.base import TemplateView

from django.conf.urls import patterns, url, include

import settings
import os

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',

    url(r'^$', TemplateView.as_view(template_name="index.html")),

    url(r'^test/', 'test_app.views.test_index'),

    url(r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns(
        '',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'fraction_non_alphanumeric': 0.16251074806534824, 'fraction_numerical': 0.0034393809114359416, 'mean_word_length': 3.7901234567901234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '195069', 'n_tokens_mistral': 391, 'n_tokens_neox': 379, 'n_words': 75}