<commit_before>from django.conf.urls.defaults import *
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^\+media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': settings.MEDIA_ROOT}),
    (r'^admin/', include(admin.site.urls)),
    url(r'^(?P<id>\d+)$', 'tempel.views.view', {'mode': 'html'}, name='tempel_view'),
    url(r'^(?P<id>\d+).html$', 'tempel.views.view', {'mode': 'html'}, name='tempel_html'),
    url(r'^(?P<id>\d+).txt$', 'tempel.views.view', {'mode': 'txt'}, name='tempel_raw'),

    url(r'^entry/(?P<id>\d+)/download/$', 'tempel.views.download', name='tempel_download'),
    url(r'^entry/(?P<id>\d+)/edit/(?P<token>\w{8})/$', 'tempel.views.edit', name='tempel_edit'),

    url(r'^entry/(?P<id>\d+).(?P<private_token>\w{8})/download/$', 'tempel.views.private_download', name='tempel_private_download'),

    url(r'^$', 'tempel.views.index', name='tempel_index'),
)

<commit_msg>Add URLs for viewing private entry<commit_after>from django.conf.urls.defaults import *
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^\+media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': settings.MEDIA_ROOT}),
    (r'^admin/', include(admin.site.urls)),
    url(r'^(?P<id>\d+)$', 'tempel.views.view', {'mode': 'html'}, name='tempel_view'),
    url(r'^(?P<id>\d+).html$', 'tempel.views.view', {'mode': 'html'}, name='tempel_html'),
    url(r'^(?P<id>\d+).txt$', 'tempel.views.view', {'mode': 'txt'}, name='tempel_raw'),

    url(r'^entry/(?P<id>\d+)/download/$', 'tempel.views.download', name='tempel_download'),
    url(r'^entry/(?P<id>\d+)/edit/(?P<token>\w{8})/$', 'tempel.views.edit', name='tempel_edit'),

    url(r'^(?P<id>\d+).(?P<private_token>\w{8})$', 'tempel.views.private_view', {'mode': 'html'}, name='tempel_private_view'),
    url(r'^(?P<id>\d+).(?P<private_token>\w{8}).html$', 'tempel.views.private_view', {'mode': 'html'}, name='tempel_private_html'),
    url(r'^(?P<id>\d+).(?P<private_token>\w{8}).txt$', 'tempel.views.private_view', {'mode': 'txt'}, name='tempel_private_raw'),

    url(r'^entry/(?P<id>\d+).(?P<private_token>\w{8})/download/$', 'tempel.views.private_download', name='tempel_private_download'),

    url(r'^$', 'tempel.views.index', name='tempel_index'),
)


{'fraction_non_alphanumeric': 0.2747068676716918, 'fraction_numerical': 0.002931323283082077, 'mean_word_length': 5.767705382436261, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7106066', 'n_tokens_mistral': 950, 'n_tokens_neox': 920, 'n_words': 114}