<commit_before>from django.conf.urls import patterns, url

from django.views.generic.edit import CreateView

from entries import views
from entries.views import EntryList, EntryCreate, EntryRead, EntryUpdate, EntryDelete, EntryClone
from entries.models import Entry

urlpatterns = patterns('',
    url(r'^$', EntryList.as_view(), name='index'),
    url(r'^create/$', EntryCreate.as_view(success_url="/entries/"), name='create'),
    url(r'^clone/(?P<slug>[^/]+)/$', EntryClone.as_view(success_url="/entries/"), name='clone'),
    url(r'^update/(?P<slug>[^/]+)/$', EntryUpdate.as_view(success_url="/entries/"), name='update'),
    url(r'^delete/(?P<slug>[^/]+)/$', EntryDelete.as_view(), name='delete'),
    url(r'^(?P<year>(\d\d\d\d))/$', views.EntryListByYear.as_view(), name='list-year'),
    url(r'^(?P<year>(\d\d\d\d))/(?P<month>(\d\d))/$', views.EntryListByMonth.as_view(), name='list-month'),
    url(r'^(?P<year>(\d\d\d\d))/(?P<month>(\d\d))/(?P<day>(\d\d))/$', views.EntryListByDay.as_view(), name='list-day'),
    url(r'^(?P<slug>[^/]+)/$', EntryRead.as_view(), name='detail'),
)
<commit_msg>Simplified entries.urls by not importing each individual View<commit_after>from django.conf.urls import patterns, url

from django.views.generic.edit import CreateView

from entries import views
from entries.models import Entry

urlpatterns = patterns('',
    url(r'^$', views.EntryList.as_view(), name='index'),
    url(r'^create/$', views.EntryCreate.as_view(success_url="/entries/"), name='create'),
    url(r'^clone/(?P<slug>[^/]+)/$', views.EntryClone.as_view(success_url="/entries/"), name='clone'),
    url(r'^update/(?P<slug>[^/]+)/$', views.EntryUpdate.as_view(success_url="/entries/"), name='update'),
    url(r'^delete/(?P<slug>[^/]+)/$', views.EntryDelete.as_view(), name='delete'),
    url(r'^(?P<year>(\d\d\d\d))/$', views.EntryListByYear.as_view(), name='list-year'),
    url(r'^(?P<year>(\d\d\d\d))/(?P<month>(\d\d))/$', views.EntryListByMonth.as_view(), name='list-month'),
    url(r'^(?P<year>(\d\d\d\d))/(?P<month>(\d\d))/(?P<day>(\d\d))/$', views.EntryListByDay.as_view(), name='list-day'),
    url(r'^(?P<slug>[^/]+)/$', views.EntryRead.as_view(), name='detail'),
)

{'fraction_non_alphanumeric': 0.2673674588665448, 'fraction_numerical': 0.0, 'mean_word_length': 5.735384615384615, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1750765', 'n_tokens_mistral': 850, 'n_tokens_neox': 828, 'n_words': 108}