<commit_before>from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.conf import settings

from fest.views import score, rateMe, home, result_action, ItemListView, ItemDetailView
from django.contrib import admin, auth
from django.contrib.auth.views import logout
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', home, name='home'),
    url(r'^score/$', score, name='items'),
    url(r'^report/$', ItemListView.as_view(), name='item_report'),
    url(r'^report/(?P<pk>\d+)$', ItemDetailView.as_view(), name='item_rating_report'),
    url(r'^resultaction/$', result_action, name='resultaction'),
    url(r'^admin/$', include(admin.site.urls)),
    url(r'^rate/$', rateMe, name='rating'),
    url(r'^logout/$', logout, {'next_page': '/'}, name='logout'),
)

if settings.DEBUG and settings.MEDIA_ROOT:
    urlpatterns += patterns('',
        (r'^files/(?P<path>.*)$', 'django.views.static.serve', {
        'document_root': settings.MEDIA_ROOT}))
    urlpatterns += static(settings.MEDIA_URL,
        document_root=settings.MEDIA_ROOT)

<commit_msg>correcting a mistake with url<commit_after>from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.conf import settings

from fest.views import score, rateMe, home, result_action, ItemListView, ItemDetailView
from django.contrib import admin, auth
from django.contrib.auth.views import logout
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', home, name='home'),
    url(r'^score/$', score, name='items'),
    url(r'^report/$', ItemListView.as_view(), name='item_report'),
    url(r'^report/(?P<pk>\d+)$', ItemDetailView.as_view(), name='item_rating_report'),
    url(r'^resultaction/$', result_action, name='resultaction'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^rate/$', rateMe, name='rating'),
    url(r'^logout/$', logout, {'next_page': '/'}, name='logout'),
)

if settings.DEBUG and settings.MEDIA_ROOT:
    urlpatterns += patterns('',
        (r'^files/(?P<path>.*)$', 'django.views.static.serve', {
        'document_root': settings.MEDIA_ROOT}))
    urlpatterns += static(settings.MEDIA_URL,
        document_root=settings.MEDIA_ROOT)


{'fraction_non_alphanumeric': 0.17893797411869702, 'fraction_numerical': 0.0, 'mean_word_length': 5.108991825613079, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '561087', 'n_tokens_mistral': 738, 'n_tokens_neox': 716, 'n_words': 148}