<commit_before>from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.views.generic import TemplateView
from .views import AlbumView, PhotoView, PhotoCreate

urlpatterns = [
    url(
        r'^library/',
        login_required(
            TemplateView.as_view(template_name='library.html')
        ),
        name='library'
    ),
    url(
        r'^album/(?P<pk>\d+)/$',
        login_required(
            AlbumView.as_view()
        ),
        name='album_detail'
    ),
    url(
        r'^photo/(?P<pk>\d+)/$',
        login_required(
            PhotoView.as_view()
        ),
        name='photo_detail'
    ),
    url(
        r'^photos/add/',
        login_required(
            PhotoCreate.as_view()
        ),
        name='photo_add'
    ),
]<commit_msg>added routing to PhotoEdit view<commit_after>from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.views.generic import TemplateView
from .views import AlbumView, PhotoView, PhotoCreate, PhotoEdit

urlpatterns = [
    url(
        r'^library/',
        login_required(
            TemplateView.as_view(template_name='library.html')
        ),
        name='library'
    ),
    url(
        r'^album/(?P<pk>\d+)/$',
        login_required(
            AlbumView.as_view()
        ),
        name='album_detail'
    ),
    url(
        r'^photo/(?P<pk>\d+)/$',
        login_required(
            PhotoView.as_view()
        ),
        name='photo_detail'
    ),
    url(
        r'^photos/add/',
        login_required(
            PhotoCreate.as_view()
        ),
        name='photo_add'
    ),
    url(
        r'^photos/(?P<pk>\d+)/$',
        login_required(
            PhotoEdit.as_view()
        ),
        name='photo_edit'
    )
]
{'fraction_non_alphanumeric': 0.1329639889196676, 'fraction_numerical': 0.0, 'mean_word_length': 1.8712241653418125, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6793067', 'n_tokens_mistral': 566, 'n_tokens_neox': 554, 'n_words': 88}