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

admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'datavis.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^$', RedirectView.as_view(url='/ncharts')),

    url(r'^ncharts/', include('ncharts.urls', namespace='ncharts'), name="ncharts"),
    url(r'^admin/', include(admin.site.urls), name="admin:index")
)<commit_msg>Updates for django 1.8, comments<commit_after>from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.views.generic import RedirectView

admin.autodiscover()

urlpatterns = [

    # redirect empty URL to /ncharts
    url(r'^$', RedirectView.as_view(url='/ncharts',permanent=True)),

    # If URL starts with ncharts, remove "ncharts/", pass what's
    # left on to ncharts.urls
    url(r'^ncharts/', include('ncharts.urls', namespace='ncharts'), name="ncharts"),

    url(r'^admin/', include(admin.site.urls), name="admin:index")
]
{'fraction_non_alphanumeric': 0.16984559491371481, 'fraction_numerical': 0.0018165304268846503, 'mean_word_length': 5.122222222222222, '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': '5125603', 'n_tokens_mistral': 385, 'n_tokens_neox': 361, 'n_words': 79}