<commit_before>from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.decorators import login_required
from django.views.i18n import javascript_catalog

from devilry_settings.i18n import get_javascript_catalog_packages
from .views.dashboard import DashboardView
from .views.singlegroupoverview import SingleGroupOverview
from .views.allgroupsoverview import AllGroupsOverview
from .views.allgroupsoverview import WaitingForFeedbackOverview
from .views.allgroupsoverview import WaitingForDeliveriesOverview
from .views.allgroupsoverview import CorrectedOverview
from .views.allgroupsoverview import BulkTest
from .views.singledelivery import SingleDeliveryView
from .views.add_deadline import AddDeadlineView
from .views.lastdelivery_or_groupoverview_redirect import LastDeliveryOrGroupOverviewRedirectView

i18n_packages = get_javascript_catalog_packages(
    #'devilry_examiner',
    'devilry_extjsextras', 'devilry.apps.core')

urlpatterns = patterns('devilry_examiner',
                       #url('^rest/', include('devilry_examiner.rest.urls')),
                       url('^$', login_required(DashboardView.as_view()),
                           name='devilry_examiner_dashboard'),
                       url('^allgroupsoverview/(?P<assignmentid>\d+)$',
                           login_required(AllGroupsOverview.as_view()),
                           name='devilry_examiner_allgroupsoverview'),
                       url('^allgroupsoverview/(?P<assignmentid>\d+)/waiting_for_feedback$',
                           login_required(WaitingForFeedbackOverview.as_view()),
                           name='devilry_examiner_waiting_for_feedback'),
                       url('^allgroupsoverview/(?P<assignmentid>\d+)/waiting_for_deliveries$',
                           login_required(WaitingForDeliveriesOverview.as_view()),
                           name='devilry_examiner_waiting_for_deliveries'),
                       url('^allgroupsoverview/(?P<assignmentid>\d+)/corrected$',
                           login_required(CorrectedOverview.as_view()),
                           name='devilry_examiner_corrected'),
                       url('^bulktest/$',
                           login_required(BulkTest.as_view()),
                           name='devilry_examiner_bulktest'),
                       url('^singlegroupoverview/(?P<groupid>\d+)$',
                           login_required(SingleGroupOverview.as_view()),
                           name='devilry_examiner_singlegroupoverview'),
                       url('^singledelivery/(?P<deliveryid>\d+)$',
                           login_required(SingleDeliveryView.as_view()),
                           name='devilry_examiner_singledeliveryview'),
                       url('^last_delivery_or_groupoverview/(?P<groupid>\d+)$',
                           login_required(LastDeliveryOrGroupOverviewRedirectView.as_view()),
                           name='devilry_examiner_last_delivery_or_groupoverview'),
                       url('^add_deadline/(?P<assignmentid>\d+)$',
                           login_required(AddDeadlineView.as_view()),
                           name='devilry_examiner_add_deadline'),
                       url('^i18n.js$', javascript_catalog,
                           kwargs={'packages': i18n_packages},
                           name='devilry_examiner_i18n')
                       )
<commit_msg>devilry_examiner.urls: Pep8 format.<commit_after>from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.decorators import login_required
from django.views.i18n import javascript_catalog

from devilry_settings.i18n import get_javascript_catalog_packages
from .views.dashboard import DashboardView
from .views.singlegroupoverview import SingleGroupOverview
from .views.allgroupsoverview import AllGroupsOverview
from .views.allgroupsoverview import WaitingForFeedbackOverview
from .views.allgroupsoverview import WaitingForDeliveriesOverview
from .views.allgroupsoverview import CorrectedOverview
from .views.allgroupsoverview import BulkTest
from .views.singledelivery import SingleDeliveryView
from .views.add_deadline import AddDeadlineView
from .views.lastdelivery_or_groupoverview_redirect import LastDeliveryOrGroupOverviewRedirectView

i18n_packages = get_javascript_catalog_packages(
    #'devilry_examiner',
    'devilry_extjsextras', 'devilry.apps.core')

urlpatterns = patterns(
    'devilry_examiner',
    #url('^rest/', include('devilry_examiner.rest.urls')),
    url('^$', login_required(DashboardView.as_view()),
        name='devilry_examiner_dashboard'),
    url('^allgroupsoverview/(?P<assignmentid>\d+)$',
        login_required(AllGroupsOverview.as_view()),
        name='devilry_examiner_allgroupsoverview'),
    url('^allgroupsoverview/(?P<assignmentid>\d+)/waiting_for_feedback$',
        login_required(
            WaitingForFeedbackOverview.as_view()),
        name='devilry_examiner_waiting_for_feedback'),
    url('^allgroupsoverview/(?P<assignmentid>\d+)/waiting_for_deliveries$',
        login_required(
            WaitingForDeliveriesOverview.as_view()),
        name='devilry_examiner_waiting_for_deliveries'),
    url('^allgroupsoverview/(?P<assignmentid>\d+)/corrected$',
        login_required(CorrectedOverview.as_view()),
        name='devilry_examiner_corrected'),
    url('^bulktest/$',
        login_required(BulkTest.as_view()),
        name='devilry_examiner_bulktest'),
    url('^singlegroupoverview/(?P<groupid>\d+)$',
        login_required(SingleGroupOverview.as_view()),
        name='devilry_examiner_singlegroupoverview'),
    url('^singledelivery/(?P<deliveryid>\d+)$',
        login_required(SingleDeliveryView.as_view()),
        name='devilry_examiner_singledeliveryview'),
    url('^last_delivery_or_groupoverview/(?P<groupid>\d+)$',
        login_required(
            LastDeliveryOrGroupOverviewRedirectView.as_view(
            )),
        name='devilry_examiner_last_delivery_or_groupoverview'),
    url('^add_deadline/(?P<assignmentid>\d+)$',
        login_required(AddDeadlineView.as_view()),
        name='devilry_examiner_add_deadline'),
    url('^i18n.js$', javascript_catalog,
        kwargs={'packages': i18n_packages},
        name='devilry_examiner_i18n')
)

{'fraction_non_alphanumeric': 0.10428275752268747, 'fraction_numerical': 0.003980257920713263, 'mean_word_length': 3.1713147410358564, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6879547', 'n_tokens_mistral': 1922, 'n_tokens_neox': 1818, 'n_words': 210}