<commit_before>from django.conf.urls.defaults import *
from django.views.generic import date_based, list_detail
from djblog.models import Entry
from djblog.feeds import EntriesFeed

feeds = {
    'entries': EntriesFeed,
}

info_dict = {
    'queryset': Entry.objects.order_by('posted'),
    'date_field': 'posted',
}

urlpatterns = patterns('djblog.views.blog',
    (r'^category/(?P<category_name>\S+)/$','list' ),
    #(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d+)/(?P<slug>[a-z0-9]+\S+)/$','view'),
    (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>\w+)/$', date_based.object_detail, dict(info_dict, slug_field='slug')),
    (r'^$','list'),
    #(r'^$', date_based.archive_index, dict(info_dict, template_name='djblog/list.html')),
)

urlpatterns += patterns('djblog.views.comment',
    (r'^comment/saved', 'saved'),
)

urlpatterns += patterns('',
    (r'^feed/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
    (r'^comments/', include('django.contrib.comments.urls')),
)<commit_msg>fixed url<commit_after>from django.conf.urls.defaults import *
from django.views.generic import date_based, list_detail
from djblog.models import Entry
from djblog.feeds import EntriesFeed

feeds = {
    'entries': EntriesFeed,
}

info_dict = {
    'queryset': Entry.objects.order_by('posted'),
    'date_field': 'posted',
}

urlpatterns = patterns('djblog.views.blog',
    (r'^category/(?P<category_name>\S+)/$','list' ),
    #(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d+)/(?P<slug>[a-z0-9]+\S+)/$','view'),
    (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>\S+)/$', date_based.object_detail, dict(info_dict, slug_field='slug')),
    (r'^$','list'),
    #(r'^$', date_based.archive_index, dict(info_dict, template_name='djblog/list.html')),
)

urlpatterns += patterns('djblog.views.comment',
    (r'^comment/saved', 'saved'),
)

urlpatterns += patterns('',
    (r'^feed/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
    (r'^comments/', include('django.contrib.comments.urls')),
)
{'fraction_non_alphanumeric': 0.25769230769230766, 'fraction_numerical': 0.007692307692307693, 'mean_word_length': 5.422839506172839, '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': '5113781', 'n_tokens_mistral': 854, 'n_tokens_neox': 826, 'n_words': 99}