<commit_before>from django.conf.urls.defaults import *
from django.conf import settings
from django.views.generic.simple import direct_to_template
from django.contrib import admin

import os.path

admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', 'clusters.views.featured_cluster', name="featured_cluster"),
    (r'^clusters/', include('clusters.urls')),
        
    # admin
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/', include(admin.site.urls)),
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
    
    # emails
    url(r'^sendemail/$', 'clusters.views.send_email', name="send_email"),
    url(r'^email_sent/$', direct_to_template, 
        {"template": "clusters/email_sent.html"}, name="email_sent"),
        
    # about
    url(r'^about/$', direct_to_template, 
        {"template": "about.html"}, name="about"),

)

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': os.path.join(os.path.dirname(__file__), "site_media")}),
    )<commit_msg>change about page from template to flatpage<commit_after>from django.conf.urls.defaults import *
from django.conf import settings
from django.views.generic.simple import direct_to_template
from django.contrib import admin

import os.path

admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', 'clusters.views.featured_cluster', name="featured_cluster"),
    (r'^clusters/', include('clusters.urls')),
        
    # admin
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/', include(admin.site.urls)),
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
    
    # emails
    url(r'^sendemail/$', 'clusters.views.send_email', name="send_email"),
    url(r'^email_sent/$', direct_to_template, 
        {"template": "clusters/email_sent.html"}, name="email_sent"),
        
    # about
    #url(r'^about/$', direct_to_template, 
    #    {"template": "about.html"}, name="about"),

)

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': os.path.join(os.path.dirname(__file__), "site_media")}),
    )
{'fraction_non_alphanumeric': 0.18456078083407276, 'fraction_numerical': 0.0, 'mean_word_length': 3.891540130151844, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, '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': '6823717', 'n_tokens_mistral': 759, 'n_tokens_neox': 737, 'n_words': 118}