<commit_before>from django.conf.urls import include, url
import django.conf
import django.views.generic as generic
import django.views.static
from django.contrib.auth.decorators import login_required
from django.conf import settings

from wagtail.wagtailadmin import urls as wagtailadmin_urls
from wagtail.wagtaildocs import urls as wagtaildocs_urls
from wagtail.wagtailcore import urls as wagtail_urls

import toolkit.members.urls
import toolkit.toolkit_auth.urls
import toolkit.index.urls
import toolkit.diary.urls

from toolkit.index.models import IndexLink

urlpatterns = [
    url(r'^programme/', include(toolkit.diary.urls.programme_urls)),
    url(r'^toolkit/diary/', include(toolkit.diary.urls.diary_urls)),
    url(r'^members/', include(toolkit.members.urls.member_urls)),
    url(r'^toolkit/volunteers/', include(toolkit.members.urls.volunteer_urls)),
    url(r'^toolkit/auth/', include(toolkit.toolkit_auth.urls.urlpatterns)),
    url(r'^toolkit/index/', include(toolkit.index.urls.urlpatterns)),

    # Main index page: requires logging in, even though some other parts
    # (eg diary index) don't.
    url(r'^toolkit/$', login_required(
        generic.list.ListView.as_view(
            model=IndexLink,
            template_name='toolkit_index.html')
        ),
        name="toolkit-index"),

    # Static content, only used when running in the development server
    # (django.views.static.serve only works when DEBUG=True)
    url(r'^static/(.*)$', django.views.static.serve,
        {'document_root': django.conf.settings.STATIC_ROOT}),
    url(r'^media/(.*)$', django.views.static.serve,
        {'document_root': django.conf.settings.MEDIA_ROOT}),

    url(r'^toolkit/cms/', include(wagtailadmin_urls)),
    url(r'^documents/', include(wagtaildocs_urls)),
    # For anything not caught by a more specific rule above, hand over to
    # Wagtail's serving mechanism
    url(r'', include(wagtail_urls)),<commit_msg>For S&S: Renove toolkit from internal URLs Cube stylee Add id short URL for an event Front page is the programme page, also Cube stylee.<commit_after>from django.conf.urls import include, url
import django.conf
import django.views.generic as generic
import django.views.static
from django.contrib.auth.decorators import login_required
from django.conf import settings

from wagtail.wagtailadmin import urls as wagtailadmin_urls
from wagtail.wagtaildocs import urls as wagtaildocs_urls
from wagtail.wagtailcore import urls as wagtail_urls

import toolkit.members.urls
import toolkit.toolkit_auth.urls
import toolkit.index.urls
import toolkit.diary.urls

from toolkit.index.models import IndexLink

urlpatterns = [
    url(r'^programme/', include(toolkit.diary.urls.programme_urls)),
    url(r'^diary/', include(toolkit.diary.urls.diary_urls)),
    url(r'^members/', include(toolkit.members.urls.member_urls)),
    url(r'^volunteers/', include(toolkit.members.urls.volunteer_urls)),
    url(r'^auth/', include(toolkit.toolkit_auth.urls.urlpatterns)),
    url(r'^toolkit/index/', include(toolkit.index.urls.urlpatterns)),
    url(r'^$', toolkit.diary.urls.view_diary, name="default-view"),
    url(r'^id/(?P<event_id>\d+)/$', toolkit.diary.urls.view_event,
        name="single-event-view"),

    # Main index page: requires logging in, even though some other parts
    # (eg diary index) don't.
    url(r'^toolkit/$', login_required(
        generic.list.ListView.as_view(
            model=IndexLink,
            template_name='toolkit_index.html')
        ),
        name="toolkit-index"),

    # Static content, only used when running in the development server
    # (django.views.static.serve only works when DEBUG=True)
    url(r'^static/(.*)$', django.views.static.serve,
        {'document_root': django.conf.settings.STATIC_ROOT}),
    url(r'^media/(.*)$', django.views.static.serve,
        {'document_root': django.conf.settings.MEDIA_ROOT}),

    url(r'^toolkit/cms/', include(wagtailadmin_urls)),
    url(r'^documents/', include(wagtaildocs_urls)),
    # For anything not caught by a more specific rule above, hand over to
    # Wagtail's serving mechanism
    url(r'', include(wagtail_urls)),
{'fraction_non_alphanumeric': 0.1259366690838772, 'fraction_numerical': 0.0, 'mean_word_length': 4.298335467349552, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6052382', 'n_tokens_mistral': 1346, 'n_tokens_neox': 1344, 'n_words': 289}