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

# Page urls
urlpatterns = patterns('sophie.views',
    url(r'^$', 'show_index', name='index_view'),
    url(r'^entries/$', 'list_entries'),
    url(r'^entries/(?P<page_num>\d+)/$', 'list_entries'),
    url(r'^category/(?P<category_slug>\w+)/$', 
        'show_category', name='category_view'),
    url(r'^category/(?P<category_slug>\w+)/(?P<page_num>\d+)/$', 
        'show_category', name='category_view'),
    # Reserved for future use, held till 0.1.0
    #url(r'^tag/(?P<tag_slug>)/$', 'show_tag'),
    #url(r'^tag/(?P<tag_slug>)/(?P<page_num>]d+)/$', 'show_tag'),
    #url(r'^archive/(?P<year>\d{4})/((?P<month>\d{1,2})/$','show_archive'),
    #url(r'^archive/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<page_num>\d+)/$',
    #    'show_archive'),
    url(r'^(?P<entry_slug>\w+)/$', 'show_entry', name='entry_view'),
)

# Feed urls
urlpatterns += patterns('sophie.feeds',
    url(r'^feed/$', 'BlogFeed', name='blog_feed'),
    url(r'^category/(?P<category_slug>\w+)/feed/$', 
        'CategoryFeed', name='blog_feed'),
)<commit_msg>add blog_slug to urls<commit_after>from django.conf.urls.defaults import *

# Page urls
urlpatterns = patterns('sophie.views',
    url(r'(?P<blog_slug>)?^$', 'show_index', name='index_view'),
    url(r'^((?P<blog_slug>)/)?entries/$', 'list_entries'),
    url(r'^((?P<blog_slug>)/)?entries/(?P<page_num>\d+)/$', 'list_entries'),
    url(r'^((?P<blog_slug>)/)?category/(?P<category_slug>\w+)/$', 
        'show_category', name='category_view'),
    url(r'^((?P<blog_slug>)/)?category/(?P<category_slug>\w+)/(?P<page_num>\d+)/$', 
        'show_category', name='category_view'),
    # Reserved for future use, held till 0.1.0
    #url(r'^((?P<blog_slug>)/)?tag/(?P<tag_slug>)/$', 'show_tag'),
    #url(r'^((?P<blog_slug>)/)?tag/(?P<tag_slug>)/(?P<page_num>]d+)/$', 'show_tag'),
    #url(r'^((?P<blog_slug>)/)?archive/(?P<year>\d{4})/((?P<month>\d{1,2})/$','show_archive'),
    #url(r'^((?P<blog_slug>)/)?archive/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<page_num>\d+)/$',
    #    'show_archive'),
    url(r'^((?P<blog_slug>)/)?(?P<entry_slug>\w+)/$', 'show_entry', name='entry_view'),
)

# Feed urls
urlpatterns += patterns('sophie.feeds',
    url(r'^((?P<blog_slug>)/)?feed/$', 'BlogFeed', name='blog_feed'),
    url(r'^((?P<blog_slug>)/)?category/(?P<category_slug>\w+)/feed/$', 
        'CategoryFeed', name='blog_feed'),
)
{'fraction_non_alphanumeric': 0.29514321295143214, 'fraction_numerical': 0.007471980074719801, 'mean_word_length': 5.227390180878553, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '3461001', 'n_tokens_mistral': 1045, 'n_tokens_neox': 1028, 'n_words': 97}