<commit_before># -*- coding: utf-8 -*-
from django.conf.urls.defaults import *

from blog.feeds import LatestEntriesFeed, CategoryFeed
from blog.models import Category, Entry

entry_info = {
    'queryset': Entry.live.all(),
    'date_field': 'pub_date',
}

entry_info_month = dict(entry_info, month_format='%m')

category_info = {
    'queryset': Category.objects.all(),
}

feeds = {'entries': LatestEntriesFeed,
         'category': CategoryFeed}

urlpatterns = patterns('django.views.generic.date_based',
    (r'^$', 'archive_index', entry_info, 'blog_entry_index'),
    (r'^(?P<year>\d{4})/$', 'archive_year', entry_info,
     'blog_entry_archive_year'),
    (r'^(?P<year>\d{4})/(?P<month>\d{2})/$', 'archive_month', entry_info_month,
     'blog_entry_archive_month'),
    (r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$', 'archive_day',
     entry_info_month, 'blog_entry_archive_day'),
)

urlpatterns += patterns('',
    (r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$',
     'blog.views.enhanced_object_detail', entry_info_month, 'blog_entry_detail'),
)

urlpatterns += patterns('django.views.generic.list_detail',
    (r'^category/(?P<slug>[-\w]+)/$', 'object_detail', category_info,
     'blog_category_detail'),
)

urlpatterns += patterns('',<commit_msg>Fixed day urls<commit_after># -*- coding: utf-8 -*-
from django.conf.urls.defaults import *

from blog.feeds import LatestEntriesFeed, CategoryFeed
from blog.models import Category, Entry

entry_info = {
    'queryset': Entry.live.all(),
    'date_field': 'pub_date',
}

entry_info_month = dict(entry_info, month_format='%m')

category_info = {
    'queryset': Category.objects.all(),
}

feeds = {'entries': LatestEntriesFeed,
         'category': CategoryFeed}

urlpatterns = patterns('django.views.generic.date_based',
    (r'^$', 'archive_index', entry_info, 'blog_entry_index'),
    (r'^(?P<year>\d{4})/$', 'archive_year', entry_info,
     'blog_entry_archive_year'),
    (r'^(?P<year>\d{4})/(?P<month>\w{1,2})/$', 'archive_month', entry_info_month,
     'blog_entry_archive_month'),
    (r'^(?P<year>\d{4})/(?P<month>\w{1,2})/(?P<day>\w{1,2})/$', 'archive_day',
     entry_info_month, 'blog_entry_archive_day'),
)

urlpatterns += patterns('',
    (r'^(?P<year>\d{4})/(?P<month>\w{1,2})/(?P<day>\w{1,2})/(?P<slug>[-\w]+)/$',
     'blog.views.enhanced_object_detail', entry_info_month, 'blog_entry_detail'),
)

urlpatterns += patterns('django.views.generic.list_detail',
    (r'^category/(?P<slug>[-\w]+)/$', 'object_detail', category_info,
     'blog_category_detail'),
)

urlpatterns += patterns('',
{'fraction_non_alphanumeric': 0.22371967654986524, 'fraction_numerical': 0.009626492106276472, 'mean_word_length': 5.23021582733813, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '3891805', 'n_tokens_mistral': 1000, 'n_tokens_neox': 989, 'n_words': 129}