<commit_before>from django.conf.urls import patterns, include, url
from authentication.views import customadmin_index, approve
from django.contrib import admin
from django.contrib.auth.models import User
from django.views.generic import ListView
admin.autodiscover()

urlpatterns = patterns('',
                       url(r'^admin/', include(admin.site.urls)),
                       url(r'^customadmin/$', customadmin_index, name='customeadmin_index'),
                       url(r'^customadmin/unapproved-users$', ListView.as_view(
                           template_name='authentication/unapproved_users.html',
                           queryset=User.objects.filter(
                           beneficiary__is_approved=False),
                           context_object_name="unapproved_users"), name='unapproved'),
                       url(r'^customadmin/approve/(?P<user_id>\d+)$',
                           approve, name='approve'),


                       url(r'^accounts/', include(
                           'authentication.urls', namespace='accounts')),


                       url(r'^books/', include(
                           'books.urls', namespace='books')),

                       url(r'^people/', include(
                           'people.urls', namespace='people')),

                       url(r'^campaigns/', include(
                           'campaigns.urls', namespace='campaigns')),
                       )<commit_msg>Added image/static files serving code to urlconf<commit_after>from django.conf.urls import patterns, include, url
from authentication.views import customadmin_index, approve
from django.contrib import admin
from django.contrib.auth.models import User
from django.views.generic import ListView
from django.conf import settings
admin.autodiscover()

urlpatterns = patterns('',
                       url(r'^admin/', include(admin.site.urls)),
                       url(r'^customadmin/$', customadmin_index,
                           name='customeadmin_index'),
                       url(r'^customadmin/unapproved-users$', ListView.as_view(
                           template_name='authentication/unapproved_users.html',
                           queryset=User.objects.filter(
                           beneficiary__is_approved=False),
                           context_object_name="unapproved_users"), name='unapproved'),
                       url(r'^customadmin/approve/(?P<user_id>\d+)$',
                           approve, name='approve'),


                       url(r'^accounts/', include(
                           'authentication.urls', namespace='accounts')),


                       url(r'^books/', include(
                           'books.urls', namespace='books')),

                       url(r'^people/', include(
                           'people.urls', namespace='people')),

                       url(r'^campaigns/', include(
                           'campaigns.urls', namespace='campaigns')),
                       )

if settings.DEBUG:
    urlpatterns += patterns('',
                            url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
                                {'document_root': settings.MEDIA_ROOT}),
                            )
{'fraction_non_alphanumeric': 0.11737523105360444, 'fraction_numerical': 0.0, 'mean_word_length': 1.610128617363344, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '4359019', 'n_tokens_mistral': 827, 'n_tokens_neox': 766, 'n_words': 132}