<commit_before>from django.conf.urls import url
from django.contrib.auth.views import login, logout
from django.views.generic import TemplateView

from osmaxx.excerptexport.views import (
    list_downloads,
    download_file,
    extraction_order_status,
    list_orders,
    access_denied,
    request_access,
    order_new_excerpt,
    order_existing_excerpt,
)


excerpt_export_urlpatterns = [
    url(r'^$', TemplateView.as_view(template_name="excerptexport/templates/index.html"), name='index'),
    url(r'^access_denied/$', access_denied, name='access_denied'),

    url(r'^downloads/$', list_downloads, name='downloads'),
    url(r'^downloads/(?P<uuid>[A-Za-z0-9_-]+)/$', download_file, name='download'),

    url(r'^orders/$', list_orders, name='orders'),
    url(r'^orders/new/new_excerpt/$', order_new_excerpt, name='order_new_excerpt'),
    url(r'^orders/new/existing_excerpt/$', order_existing_excerpt, name='order_existing_excerpt'),
    url(r'^orders/(?P<extraction_order_id>[0-9]+)$', extraction_order_status, name='status'),

    url(r'^request_access/$', request_access, name='request_access'),
]

login_logout_patterns = [
    url(r'^login/$', login,
        {'template_name': 'excerptexport/templates/login.html'}, name='login'),
    url(r'^logout/$', logout,
        {'template_name': 'excerptexport/templates/logout.html'}, name='logout'),
]

urlpatterns = excerpt_export_urlpatterns + login_logout_patterns
<commit_msg>templates renaming failed<commit_after>from django.conf.urls import url
from django.contrib.auth.views import login, logout
from django.views.generic import TemplateView

from osmaxx.excerptexport.views import (
    list_downloads,
    download_file,
    extraction_order_status,
    list_orders,
    access_denied,
    request_access,
    order_new_excerpt,
    order_existing_excerpt,
)


excerpt_export_urlpatterns = [
    url(r'^$', TemplateView.as_view(template_name="excerptexport/templates/index.html"), name='index'),
    url(r'^access_denied/$', access_denied, name='access_denied'),

    url(r'^downloads/$', list_downloads, name='downloads'),
    url(r'^downloads/(?P<uuid>[A-Za-z0-9_-]+)/$', download_file, name='download'),

    url(r'^orders/$', list_orders, name='orders'),
    url(r'^orders/new/new_excerpt/$', order_new_excerpt, name='order_new_excerpt'),
    url(r'^orders/new/existing_excerpt/$', order_existing_excerpt, name='order_existing_excerpt'),
    url(r'^orders/(?P<extraction_order_id>[0-9]+)$', extraction_order_status, name='status'),

    url(r'^request_access/$', request_access, name='request_access'),
]

login_logout_patterns = [
    url(r'^login/$', login,
        {'template_name': 'osmaxx/login.html'}, name='login'),
    url(r'^logout/$', logout,
        {'template_name': 'osmaxx/logout.html'}, name='logout'),
]

urlpatterns = excerpt_export_urlpatterns + login_logout_patterns

{'fraction_non_alphanumeric': 0.16002795248078266, 'fraction_numerical': 0.002795248078266946, 'mean_word_length': 5.642691415313225, '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': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4484711', 'n_tokens_mistral': 1036, 'n_tokens_neox': 965, 'n_words': 134}