<commit_before>"""
URL mappings for the FOIA application
"""

from django.conf.urls.defaults import patterns, url
from django.contrib.auth.decorators import login_required
from django.views.generic import list_detail

from foia import views
from foia.models import FOIARequest
from foia.forms import foia_wizard, wizard_extra_context
from foia.feeds import LatestSubmittedRequests, LatestDoneRequests

foia_qs = {'queryset': FOIARequest.objects.all(),
           'paginate_by': 10}

urlpatterns = patterns('',
    url(r'^list/$',                         login_required(list_detail.object_list),
                                            foia_qs, name='foia-list'),
    url(r'^list/(?P<user_name>[\w\d_]+)/$', views.list_by_user, name='foia-list-user'),
    url(r'^list/(?P<sort_order>asc|desc)/(?P<field>[\w]+)/$',
                                            views.sorted_list, name='foia-sorted-list'),
    url(r'^new/$',                          login_required(foia_wizard),
                                            kwargs={'extra_context': wizard_extra_context},
                                            name='foia-create'),
    url(r'^view/(?P<jurisdiction>[\w\d_-]+)/(?P<user_name>[\w\d_]+)/(?P<slug>[\w\d_-]+)/$',
                                            views.detail, name='foia-detail'),
    url(r'^view/(?P<jurisdiction>[\w\d_-]+)/(?P<user_name>[\w\d_]+)/(?P<slug>[\w\d_-]+)/'
         'doc/(?P<page>\d+)/$',
                                            views.document_detail, name='foia-doc-detail'),
    url(r'^update/$',                       views.update_list, name='foia-update-list'),
    url(r'^update/(?P<jurisdiction>[\w\d\_-]+)/(?P<user_name>[\w\d_]+)/(?P<slug>[\w\d_-]+)/$',
                                            views.update, name='foia-update'),
    url(r'^delete/(?P<jurisdiction>[\w\d_-]+)/(?P<user_name>[\w\d_]+)/(?P<slug>[\w\d_-]+)/$',
                                            views.delete, name='foia-delete'),
    url(r'^feeds/submitted/$',              login_required(LatestSubmittedRequests()), name='foia-submitted-feed'),
    url(r'^feeds/completed/$',              login_required(LatestDoneRequests()), name='foia-done-feed'),
)
<commit_msg>fix url change that was missed at some point<commit_after>"""
URL mappings for the FOIA application
"""

from django.conf.urls.defaults import patterns, url
from django.contrib.auth.decorators import login_required
from django.views.generic import list_detail

from foia import views
from foia.models import FOIARequest
from foia.forms import foia_wizard, wizard_extra_context
from foia.feeds import LatestSubmittedRequests, LatestDoneRequests

foia_qs = {'queryset': FOIARequest.objects.all(),
           'paginate_by': 10}

urlpatterns = patterns('',
    url(r'^list/$',                     login_required(list_detail.object_list),
                                        foia_qs, name='foia-list'),
    url(r'^list/user/(?P<user_name>[\w\d_]+)/$',
                                        views.list_by_user, name='foia-list-user'),
    url(r'^list/(?P<sort_order>asc|desc)/(?P<field>[\w]+)/$',
                                        views.sorted_list, name='foia-sorted-list'),
    url(r'^new/$',                      login_required(foia_wizard),
                                        kwargs={'extra_context': wizard_extra_context},
                                        name='foia-create'),
    url(r'^view/(?P<jurisdiction>[\w\d_-]+)/(?P<user_name>[\w\d_]+)/(?P<slug>[\w\d_-]+)/$',
                                        views.detail, name='foia-detail'),
    url(r'^view/(?P<jurisdiction>[\w\d_-]+)/(?P<user_name>[\w\d_]+)/(?P<slug>[\w\d_-]+)/'
         'doc/(?P<page>\d+)/$',
                                        views.document_detail, name='foia-doc-detail'),
    url(r'^update/$',                   views.update_list, name='foia-update-list'),
    url(r'^update/(?P<jurisdiction>[\w\d\_-]+)/(?P<user_name>[\w\d_]+)/(?P<slug>[\w\d_-]+)/$',
                                        views.update, name='foia-update'),
    url(r'^delete/(?P<jurisdiction>[\w\d_-]+)/(?P<user_name>[\w\d_]+)/(?P<slug>[\w\d_-]+)/$',
                                        views.delete, name='foia-delete'),
    url(r'^feeds/submitted/$',          login_required(LatestSubmittedRequests()), name='foia-submitted-feed'),
    url(r'^feeds/completed/$',          login_required(LatestDoneRequests()), name='foia-done-feed'),
)

{'fraction_non_alphanumeric': 0.1875283446712018, 'fraction_numerical': 0.0009070294784580499, 'mean_word_length': 2.1195190947666194, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 25, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1749211', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1376, 'n_words': 172}