<commit_before>from django.conf.urls import patterns, url, include
import cog.views
import django_openid_auth.views
import django.contrib.auth.views
from django.http.response import HttpResponseNotFound
import django.views
from cog.models import settings


urlpatterns = [

    # FIXME: top-level index
    #url(r'^index/$', TemplateView.as_view(template_name="cog/index.html")),
    
    # forbidden extensions
    url(r'.*\.asp$', HttpResponseNotFound),
    url(r'.*\.aspx$', HttpResponseNotFound),
    url(r'.*\.cfm$', HttpResponseNotFound),
    url(r'.*\.cgi$', HttpResponseNotFound),
    url(r'.*\.jsp$', HttpResponseNotFound),
    url(r'.*\.php$', HttpResponseNotFound),
    url(r'.*\.php3$', HttpResponseNotFound),
    url(r'.*\.pl$', HttpResponseNotFound),
    url(r'.*\.shtml$', HttpResponseNotFound),
    
    # site home
    url(r'^$', cog.views.site_home, name='site_home' ) ,
    
    # COG administration<commit_msg>Preventing bad extension + /<commit_after>from django.conf.urls import patterns, url, include
import cog.views
import django_openid_auth.views
import django.contrib.auth.views
from django.http.response import HttpResponseNotFound
import django.views
from cog.models import settings


urlpatterns = [

    # FIXME: top-level index
    #url(r'^index/$', TemplateView.as_view(template_name="cog/index.html")),
    
    # forbidden extensions
    url(r'.*\.asp\/?$', HttpResponseNotFound),
    url(r'.*\.aspx\/?$', HttpResponseNotFound),
    url(r'.*\.cfm\/?$', HttpResponseNotFound),
    url(r'.*\.cgi\/?$', HttpResponseNotFound),
    url(r'.*\.jsp\/?$', HttpResponseNotFound),
    url(r'.*\.php\/?$', HttpResponseNotFound),
    url(r'.*\.php3\/?$', HttpResponseNotFound),
    url(r'.*\.pl\/?$', HttpResponseNotFound),
    url(r'.*\.shtml\/?$', HttpResponseNotFound),
    
    # site home
    url(r'^$', cog.views.site_home, name='site_home' ) ,
    
    # COG administration
{'fraction_non_alphanumeric': 0.17823343848580442, 'fraction_numerical': 0.0010515247108307045, 'mean_word_length': 3.8299492385786804, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2424305', 'n_tokens_mistral': 655, 'n_tokens_neox': 626, 'n_words': 112}