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

from settings import UNALOG_ROOT

admin.autodiscover()


urlpatterns = patterns('',
    # NOTE: don't enable this for real.
    (r'^s/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': "%s/base/media" % UNALOG_ROOT}),

    url(r'^admin/(.*)', admin.site.root),

    url(r'^login/$', 'django.contrib.auth.views.login', 
        {'template_name': 'login.html'}, name='login'),

    )

urlpatterns += patterns('base.views',
    # Site-wide
    url(r'^$', 'index', name='index'),
    url(r'^feed/$', 'feed', name='feed'),
    url(r'^logout/$', 'logout_view', name='logout'),
    url(r'^register/$', 'register_view', name='register'),
    url(r'^indexing.js$', 'indexing_js', name='indexing_js'),
    url(r'^bookmarklet/$', 'bookmarklet', name='bookmarklet'),
    url(r'^prefs/$', 'prefs', name='prefs'),
    url(r'^about/$', 'about', name='about'),
    url(r'^contact/$', 'contact', name='contact'),
    
    # Entries
    url(r'^entry/(?P<entry_id>[0-9]+)$', 'entry', name='entry'),
    url(r'^entry/new', 'entry_new', name='entry_new'),
    url(r'^entry/(?P<entry_id>[0-9]+)/edit/$', 'entry_edit', 
        name='entry_edit'),
    url(r'^entry/(?P<entry_id>[0-9]+)/delete/$', 'entry_delete', 
        name='entry_delete'),
    
    # Tags (site-wide)
    url(r'^tags/$', 'tags', name='tags'),
    url(r'^tag/(?P<tag_name>[+\w:._-]+)/$', 'tag', name='tag'),
    url(r'^tag/(?P<tag_name>[+\w:._-]+)/feed/$', 'tag_feed', 
        name='tag_feed'),
    
    # Users
    url(r'^user/(?P<user_name>[a-zA-Z0-9._]+)/$', 'user', name='user'),
    url(r'^user/(?P<user_name>[a-zA-Z0-9._]+)/feed/$', 'user_feed', 
        name='user_feed'),<commit_msg>Fixing mistake on entry view<commit_after>from django.conf.urls.defaults import *
from django.contrib import admin

from settings import UNALOG_ROOT

admin.autodiscover()


urlpatterns = patterns('',
    # NOTE: don't enable this for real.
    (r'^s/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': "%s/base/media" % UNALOG_ROOT}),

    url(r'^admin/(.*)', admin.site.root),

    url(r'^login/$', 'django.contrib.auth.views.login', 
        {'template_name': 'login.html'}, name='login'),

    )

urlpatterns += patterns('base.views',
    # Site-wide
    url(r'^$', 'index', name='index'),
    url(r'^feed/$', 'feed', name='feed'),
    url(r'^logout/$', 'logout_view', name='logout'),
    url(r'^register/$', 'register_view', name='register'),
    url(r'^indexing.js$', 'indexing_js', name='indexing_js'),
    url(r'^bookmarklet/$', 'bookmarklet', name='bookmarklet'),
    url(r'^prefs/$', 'prefs', name='prefs'),
    url(r'^about/$', 'about', name='about'),
    url(r'^contact/$', 'contact', name='contact'),
    
    # Entries
    url(r'^entry/(?P<entry_id>[0-9]+)/$', 'entry', name='entry'),
    url(r'^entry/new', 'entry_new', name='entry_new'),
    url(r'^entry/(?P<entry_id>[0-9]+)/edit/$', 'entry_edit', 
        name='entry_edit'),
    url(r'^entry/(?P<entry_id>[0-9]+)/delete/$', 'entry_delete', 
        name='entry_delete'),
    
    # Tags (site-wide)
    url(r'^tags/$', 'tags', name='tags'),
    url(r'^tag/(?P<tag_name>[+\w:._-]+)/$', 'tag', name='tag'),
    url(r'^tag/(?P<tag_name>[+\w:._-]+)/feed/$', 'tag_feed', 
        name='tag_feed'),
    
    # Users
    url(r'^user/(?P<user_name>[a-zA-Z0-9._]+)/$', 'user', name='user'),
    url(r'^user/(?P<user_name>[a-zA-Z0-9._]+)/feed/$', 'user_feed', 
        name='user_feed'),
{'fraction_non_alphanumeric': 0.2656605922551253, 'fraction_numerical': 0.0056947608200455585, 'mean_word_length': 3.8927576601671308, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6896517', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1326, 'n_words': 189}