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

from djauth.views import loggedout

admin.autodiscover()

handler404 = 'djtools.views.errors.four_oh_four_error'
handler500 = 'djtools.views.errors.server_error'

urlpatterns = patterns('',
    # home
    (r'^$', TemplateView.as_view(template_name="forms_home.html")),
    # simple 400 error view
    url(
        r'^denied/$',
        TemplateView.as_view(
            template_name="denied.html"
        ), name="access_denied"
    ),
    # auth
    url(
        r'^accounts/login',
        auth_views.login,{'template_name': 'accounts/login.html'},
        name='auth_login'
    ),
    url(
        r'^accounts/logout/$',
        auth_views.logout,{'next_page': '/forms/accounts/loggedout/'},
        name='auth_logout'
    ),
    url(
        r'^accounts/loggedout',
        loggedout,{'template_name': 'accounts/logged_out.html'},
        name='auth_loggedout'
    ),
    url(
        r'^accounts/$', RedirectView.as_view(url='/forms/')
    ),
    # CSV
    url(
        r'^admin/(?P<app_label>[\d\w]+)/(?P<model_name>[\d\w]+)/csv/',
        'djforms.core.util.admin_list_export'
    ),
    # admin
    (r'^admin/', include(admin.site.urls) ),
    # override user creation
    #(r'^admin/auth/user/add/', 'djauth.views.user_add'),
    # admin/docs
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # admissions
    (r'^admissions/', include('djforms.admissions.urls')),
    # alumni
    (r'^alumni/', include('djforms.alumni.urls')),
    # athletics
    (r'^athletics/', include('djforms.athletics.urls')),
    # biology
    (r'^biology/', include('djforms.biology.urls')),
    # catering
    (r'^catering/', include('djforms.catering.urls')),
    # CharacterQuest
    (r'^character-quest/', include('djforms.characterquest.urls')),
    # communications
    (r'^communications/', include('djforms.communications.urls')),
    # giving
    (r'^giving/', include('djforms.giving.urls')),
    # LIS
    (r'^lis/', include('djforms.lis.urls')),
    # for the job post environment
    (r'^job/', include('djforms.jobpost.urls')),
    # for the modern language form environment
    (r'^languages/', include('djforms.languages.urls')),
    # maintenance/evs
    (r'^maintenance/', include('djforms.maintenance.urls')),
    # music
    (r'^music/', include('djforms.music.urls')),
    # polisci
    (r'^political-science/', include('djforms.polisci.urls')),
    # pre-health
    (r'^pre-health/', include('djforms.prehealth.urls')),
    # office of the president
    (r'^president/', include('djforms.president.urls')),
    # for the security appeal form environment
    (r'^scholars/', include('djforms.scholars.urls')),
    # for the security appeal form environment
    (r'^security/', include('djforms.security.urls')),
    # sustainability
    (r'^sustainability/', include('djforms.sustainability.urls')),
    # writing across curriculum
    (r'^writingcurriculum/', include('djforms.writingcurriculum.urls')),
)
<commit_msg>removed president app for now<commit_after>from django.contrib import admin
from django.conf.urls import patterns, include, url
from django.contrib.auth import views as auth_views
from django.views.generic import TemplateView, RedirectView

from djauth.views import loggedout

admin.autodiscover()

handler404 = 'djtools.views.errors.four_oh_four_error'
handler500 = 'djtools.views.errors.server_error'

urlpatterns = patterns('',
    # home
    (r'^$', TemplateView.as_view(template_name="forms_home.html")),
    # simple 400 error view
    url(
        r'^denied/$',
        TemplateView.as_view(
            template_name="denied.html"
        ), name="access_denied"
    ),
    # auth
    url(
        r'^accounts/login',
        auth_views.login,{'template_name': 'accounts/login.html'},
        name='auth_login'
    ),
    url(
        r'^accounts/logout/$',
        auth_views.logout,{'next_page': '/forms/accounts/loggedout/'},
        name='auth_logout'
    ),
    url(
        r'^accounts/loggedout',
        loggedout,{'template_name': 'accounts/logged_out.html'},
        name='auth_loggedout'
    ),
    url(
        r'^accounts/$', RedirectView.as_view(url='/forms/')
    ),
    # CSV
    url(
        r'^admin/(?P<app_label>[\d\w]+)/(?P<model_name>[\d\w]+)/csv/',
        'djforms.core.util.admin_list_export'
    ),
    # admin
    (r'^admin/', include(admin.site.urls) ),
    # override user creation
    #(r'^admin/auth/user/add/', 'djauth.views.user_add'),
    # admin/docs
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # admissions
    (r'^admissions/', include('djforms.admissions.urls')),
    # alumni
    (r'^alumni/', include('djforms.alumni.urls')),
    # athletics
    (r'^athletics/', include('djforms.athletics.urls')),
    # biology
    (r'^biology/', include('djforms.biology.urls')),
    # catering
    (r'^catering/', include('djforms.catering.urls')),
    # CharacterQuest
    (r'^character-quest/', include('djforms.characterquest.urls')),
    # communications
    (r'^communications/', include('djforms.communications.urls')),
    # giving
    (r'^giving/', include('djforms.giving.urls')),
    # LIS
    (r'^lis/', include('djforms.lis.urls')),
    # for the job post environment
    (r'^job/', include('djforms.jobpost.urls')),
    # for the modern language form environment
    (r'^languages/', include('djforms.languages.urls')),
    # maintenance/evs
    (r'^maintenance/', include('djforms.maintenance.urls')),
    # music
    (r'^music/', include('djforms.music.urls')),
    # polisci
    (r'^political-science/', include('djforms.polisci.urls')),
    # pre-health
    (r'^pre-health/', include('djforms.prehealth.urls')),
    # office of the president
    #(r'^president/', include('djforms.president.urls')),
    # for the security appeal form environment
    (r'^scholars/', include('djforms.scholars.urls')),
    # for the security appeal form environment
    (r'^security/', include('djforms.security.urls')),
    # sustainability
    (r'^sustainability/', include('djforms.sustainability.urls')),
    # writing across curriculum
    (r'^writingcurriculum/', include('djforms.writingcurriculum.urls')),
)

{'fraction_non_alphanumeric': 0.16950452523393159, 'fraction_numerical': 0.0027611596870685687, 'mean_word_length': 3.007375537799631, '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': '5272022', 'n_tokens_mistral': 2352, 'n_tokens_neox': 2143, 'n_words': 328}