<commit_before>from django.conf.urls import *
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView
from django.views.static import serve
from home.views import homepage
import settings

admin.autodiscover()

urlpatterns = [
	url(r'^$', homepage, name='home'),
	url(r'^api/', include('api.urls')),
	url(r'^blog/', include('blog.urls')),
	url(r'^stats/', include('stats.urls')),
	url(r'^', include('accounts.urls')),
	url(r'^', include('race.urls')),
	url(r'^', include('home.urls')),
	url(r'^c/', include('django_comments.urls')),
	url(r'^admin_tools/', include('admin_tools.urls')),
	url(r'^help/', include('faq.urls.shallow')),
	# url(r'^stream/', include('actstream.urls')),
	url(r'^admin/', include(admin.site.urls)),
] + [
	url(r'^about/', TemplateView.as_view(template_name='static/about.html'), name='about'),
	url(r'^contact/', TemplateView.as_view(template_name='static/contact.html'), name='contact'),
]

urlpatterns += staticfiles_urlpatterns()

if settings.DEBUG:
	urlpatterns += [
        url(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
    ]

if settings.BETA:
	urlpatterns += [
		url(r'^beta/', include('beta.urls')),
	]<commit_msg>added possibility to use debug toolbar<commit_after>from django.conf.urls import *
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView
from django.views.static import serve
from home.views import homepage
import settings

admin.autodiscover()

urlpatterns = [
    url(r'^$', homepage, name='home'),
    url(r'^api/', include('api.urls')),
    url(r'^blog/', include('blog.urls')),
    url(r'^stats/', include('stats.urls')),
    url(r'^', include('accounts.urls')),
    url(r'^', include('race.urls')),
    url(r'^', include('home.urls')),
    url(r'^c/', include('django_comments.urls')),
    url(r'^admin_tools/', include('admin_tools.urls')),
    url(r'^help/', include('faq.urls.shallow')),
    # url(r'^stream/', include('actstream.urls')),
    url(r'^admin/', include(admin.site.urls)),
] + [
    url(r'^about/', TemplateView.as_view(template_name='static/about.html'), name='about'),
    url(r'^contact/', TemplateView.as_view(template_name='static/contact.html'), name='contact'),
]

urlpatterns += staticfiles_urlpatterns()

if settings.DEBUG:
    urlpatterns += [
        url(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
    ]

    try:
        __import__('debug_toolbar')
    except ImportError:
        pass
    else:
        import debug_toolbar
        urlpatterns += [
            url(r'^__debug__/', include(debug_toolbar.urls)),
        ]

if settings.BETA:
    urlpatterns += [
        url(r'^beta/', include('beta.urls')),
    ]
{'fraction_non_alphanumeric': 0.1972525537160972, 'fraction_numerical': 0.0, 'mean_word_length': 4.867768595041323, 'pattern_counts': {'":': 0, '<': 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': '4463270', 'n_tokens_mistral': 997, 'n_tokens_neox': 983, 'n_words': 160}