<commit_before>from django.conf import settings
from django.conf.urls import patterns, include, url
# from django.contrib import admin
from django.http import HttpResponse

from armstrong import hatband as admin

admin.autodiscover()

from django.views.generic import View


class Http500View(View):
    def get(self, *args, **kwargs):
        raise Exception("One expects to simply walk into Mordor?")


urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^robots\.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /",
        mimetype="text/plain")),
    url(r'^500/$', Http500View.as_view()),

    url(r'', include('tx_highered.urls', namespace='tx_highered')),
)

# serve media
# https://docs.djangoproject.com/en/dev/howto/static-files/#serving-other-directories
# doesn't respect settings.MEDIA_URL
urlpatterns += patterns('',
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
        'document_root': settings.MEDIA_ROOT,
    }),
)<commit_msg>fix old reference to armstrong admin instead of regular admin<commit_after>from django.conf import settings
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.http import HttpResponse
from django.views.generic import View


admin.autodiscover()


class Http500View(View):
    def get(self, *args, **kwargs):
        raise Exception("One expects to simply walk into Mordor?")


urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^robots\.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /",
        mimetype="text/plain")),
    url(r'^500/$', Http500View.as_view()),

    url(r'', include('tx_highered.urls', namespace='tx_highered')),
)

# serve media
# https://docs.djangoproject.com/en/dev/howto/static-files/#serving-other-directories
# doesn't respect settings.MEDIA_URL
urlpatterns += patterns('',
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
        'document_root': settings.MEDIA_ROOT,
    }),
)
{'fraction_non_alphanumeric': 0.15671641791044777, 'fraction_numerical': 0.008955223880597015, 'mean_word_length': 4.55524861878453, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3356769', 'n_tokens_mistral': 682, 'n_tokens_neox': 637, 'n_words': 143}