<commit_before># -*- coding: utf-8 -*-

from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from hkm import views
from hkm.decorators import restrict_for_museum

urlpatterns = [
    url(r'^$', views.IndexView.as_view(), name='hkm_index'),
    url(r'^info/$', views.InfoView.as_view(), name='hkm_info'),

    url(r'^about/$', views.SiteinfoAboutView.as_view(), name='hkm_siteinfo_about'),
    url(r'^privacy/$', views.SiteinfoPrivacyView.as_view(),
        name='hkm_siteinfo_privacy'),
    url(r'^QA/$', views.SiteinfoQAView.as_view(), name='hkm_siteinfo_QA'),
    url(r'^terms/$', views.SiteinfoTermsView.as_view(), name='hkm_siteinfo_terms'),

    url(r'^collection/public/$', views.PublicCollectionsView.as_view(),
        name='hkm_public_collections'),
    url(r'^collection/my/$', restrict_for_museum(login_required()
        (views.MyCollectionsView.as_view())), name='hkm_my_collections'),
    url(r'^collection/(?P<collection_id>\d+)/$',
        views.CollectionDetailView.as_view(), name='hkm_collection'),

    url(r'^record/(?P<finna_id>[a-zA-Z0-9:.]+)/$',
        views.FinnaRecordDetailView.as_view(), name='hkm_record'),
    url(r'^record/(?P<finna_id>[a-zA-Z0-9:.]+)/feedback/$',
        restrict_for_museum(views.FinnaRecordFeedbackView.as_view()), name='hkm_record_feedback'),

    url(r'^search/$', restrict_for_museum(views.SearchView.as_view()), name='hkm_search'),
    url(r'^search/record/$', restrict_for_museum(views.SearchRecordDetailView.as_view()),
        name='hkm_search_record'),

    url(r'^signup/$', restrict_for_museum(views.SignUpView.as_view()), name='hkm_signup'),
    url(r'^language/$', views.LanguageView.as_view(), name='hkm_language'),

    url(r'^order/(?P<finna_id>[a-zA-Z0-9:.]+)/$',
        views.CreateOrderView.as_view(), name='hkm_order_create'),
    url(r'^order/(?P<order_id>[a-zA-Z0-9]+)/product/$',
        views.OrderProductView.as_view(), name='hkm_order_product'),
    url(r'^order/(?P<order_id>[a-zA-Z0-9]+)/contact/$',
        restrict_for_museum(views.OrderContactInformationView.as_view()), name='hkm_order_contact_information'),
    url(r'^order/(?P<order_id>[a-zA-Z0-9]+)/summary/$',
        restrict_for_museum(views.OrderSummaryView.as_view()), name='hkm_order_summary'),
    url(r'^order/(?P<order_id>[a-zA-Z0-9]+)/confirmation/$',
        restrict_for_museum(views.OrderConfirmation.as_view()), name='hkm_order_confirmation'),<commit_msg>Let museum users use search.<commit_after># -*- coding: utf-8 -*-

from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from hkm import views
from hkm.decorators import restrict_for_museum

urlpatterns = [
    url(r'^$', views.IndexView.as_view(), name='hkm_index'),
    url(r'^info/$', views.InfoView.as_view(), name='hkm_info'),

    url(r'^about/$', views.SiteinfoAboutView.as_view(), name='hkm_siteinfo_about'),
    url(r'^privacy/$', views.SiteinfoPrivacyView.as_view(),
        name='hkm_siteinfo_privacy'),
    url(r'^QA/$', views.SiteinfoQAView.as_view(), name='hkm_siteinfo_QA'),
    url(r'^terms/$', views.SiteinfoTermsView.as_view(), name='hkm_siteinfo_terms'),

    url(r'^collection/public/$', views.PublicCollectionsView.as_view(),
        name='hkm_public_collections'),
    url(r'^collection/my/$', restrict_for_museum(login_required()
        (views.MyCollectionsView.as_view())), name='hkm_my_collections'),
    url(r'^collection/(?P<collection_id>\d+)/$',
        views.CollectionDetailView.as_view(), name='hkm_collection'),

    url(r'^record/(?P<finna_id>[a-zA-Z0-9:.]+)/$',
        views.FinnaRecordDetailView.as_view(), name='hkm_record'),
    url(r'^record/(?P<finna_id>[a-zA-Z0-9:.]+)/feedback/$',
        restrict_for_museum(views.FinnaRecordFeedbackView.as_view()), name='hkm_record_feedback'),

    url(r'^search/$', views.SearchView.as_view(), name='hkm_search'),
    url(r'^search/record/$', views.SearchRecordDetailView.as_view(),
        name='hkm_search_record'),

    url(r'^signup/$', restrict_for_museum(views.SignUpView.as_view()), name='hkm_signup'),
    url(r'^language/$', views.LanguageView.as_view(), name='hkm_language'),

    url(r'^order/(?P<finna_id>[a-zA-Z0-9:.]+)/$',
        views.CreateOrderView.as_view(), name='hkm_order_create'),
    url(r'^order/(?P<order_id>[a-zA-Z0-9]+)/product/$',
        views.OrderProductView.as_view(), name='hkm_order_product'),
    url(r'^order/(?P<order_id>[a-zA-Z0-9]+)/contact/$',
        restrict_for_museum(views.OrderContactInformationView.as_view()), name='hkm_order_contact_information'),
    url(r'^order/(?P<order_id>[a-zA-Z0-9]+)/summary/$',
        restrict_for_museum(views.OrderSummaryView.as_view()), name='hkm_order_summary'),
    url(r'^order/(?P<order_id>[a-zA-Z0-9]+)/confirmation/$',
        restrict_for_museum(views.OrderConfirmation.as_view()), name='hkm_order_confirmation'),
{'fraction_non_alphanumeric': 0.1987667009249743, 'fraction_numerical': 0.006166495375128468, 'mean_word_length': 5.3524804177545695, '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': '45120', 'n_tokens_mistral': 1843, 'n_tokens_neox': 1758, 'n_words': 165}