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

from django.conf import settings
from django.contrib.sitemaps import FlatPageSitemap

admin.autodiscover()

sitemaps = {
    'flatpages' : FlatPageSitemap,
}

urlpatterns = patterns('',

                       (r'^admin/(.*)',  admin.site.root),
                       ( r'^r/', include('django.conf.urls.shortcut')),

                       # Sitemaps
                       (r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),

                       # Language setting
                       (r'^i18n/', include('django.conf.urls.i18n')),

                       # Auth
                       (r'^account/', include('django_authopenid.urls')),                       
                       
                       # Library
                       (r'^', include('bookworm.library.urls')),
                       
                       # Search 
                       (r'^search/', include('bookworm.search.urls')),
)

if settings.DEBUG:
    urlpatterns += patterns('',
                            (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.ROOT_PATH + '/library/templates/static'}),
                            (r'^orm-media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.ROOT_PATH + '/orm/templates/orm-media'}),
                            (r'(?P<path>sitedown.html)$', 'django.views.static.serve', 
                             {'document_root': settings.ROOT_PATH + '/library/templates/'}),
                            )
urlpatterns = patterns('django.views.generic.simple',
                       (r'.*', 'direct_to_template', 
                        {'template':'sitedown.html'}))


    <commit_msg>Accidental commit<commit_after>from django.conf.urls.defaults import *
from django.contrib import admin

from django.conf import settings
from django.contrib.sitemaps import FlatPageSitemap

admin.autodiscover()

sitemaps = {
    'flatpages' : FlatPageSitemap,
}

urlpatterns = patterns('',

                       (r'^admin/(.*)',  admin.site.root),
                       ( r'^r/', include('django.conf.urls.shortcut')),

                       # Sitemaps
                       (r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),

                       # Language setting
                       (r'^i18n/', include('django.conf.urls.i18n')),

                       # Auth
                       (r'^account/', include('django_authopenid.urls')),                       
                       
                       # Library
                       (r'^', include('bookworm.library.urls')),
                       
                       # Search 
                       (r'^search/', include('bookworm.search.urls')),
)

if settings.DEBUG:
    urlpatterns += patterns('',
                            (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.ROOT_PATH + '/library/templates/static'}),
                            (r'^orm-media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.ROOT_PATH + '/orm/templates/orm-media'}),
                            (r'(?P<path>sitedown.html)$', 'django.views.static.serve', 
                             {'document_root': settings.ROOT_PATH + '/library/templates/'}),
                            )
    
{'fraction_non_alphanumeric': 0.15176230702009905, 'fraction_numerical': 0.002330323332362365, 'mean_word_length': 1.508400292184076, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1304974', 'n_tokens_mistral': 978, 'n_tokens_neox': 909, 'n_words': 130}