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

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from xform_manager import views as xform_manager_views
OPT_GROUP_REGEX = "((?P<group_name>[^/]+)/)?"

from main import views as main_views

from survey_photos.views import photo_redirect

urlpatterns = patterns('',
    url(r'^$', main_views.dashboard),

    url(r'^xform_manager/', include('nmis.xform_manager.urls')),
    url(r'^xls2xform/', include('nmis.xls2xform.urls')),
    url(r'^parsed_xforms/', include('nmis.parsed_xforms.urls')),

    url(r'^survey_photos/(?P<size>\S+)/(?P<photo_id>\S+)$', photo_redirect),

    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
)<commit_msg>Added formList and submission back in to urls to get tests passing.<commit_after>from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from xform_manager import views as xform_manager_views
OPT_GROUP_REGEX = "((?P<group_name>[^/]+)/)?"

from main import views as main_views

from survey_photos.views import photo_redirect

urlpatterns = patterns('',
    url(r'^$', main_views.dashboard),

    # todo: formList and submission should have a user prefix.
    url(r"^%sformList$" % OPT_GROUP_REGEX, xform_manager_views.formList),
    url(r"^%ssubmission$" % OPT_GROUP_REGEX, xform_manager_views.submission),

    url(r'^xform_manager/', include('nmis.xform_manager.urls')),
    url(r'^xls2xform/', include('nmis.xls2xform.urls')),
    url(r'^parsed_xforms/', include('nmis.parsed_xforms.urls')),

    url(r'^survey_photos/(?P<size>\S+)/(?P<photo_id>\S+)$', photo_redirect),

    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
)
{'fraction_non_alphanumeric': 0.16297010607521698, 'fraction_numerical': 0.0019286403085824494, 'mean_word_length': 5.6293929712460065, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2023985', 'n_tokens_mistral': 748, 'n_tokens_neox': 729, 'n_words': 138}