<commit_before>from django.conf.urls.defaults import patterns, include
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.core.urlresolvers import reverse
from django.shortcuts import redirect
from django.views.generic import View

from devilry.apps.core import pluginloader
from devilry.defaults.urls import devilry_urls


class RedirectToFrontpage(View):
    def get(self, request):
        return redirect(reverse('student'))


urlpatterns = patterns('',
                       # Custom urls for this project
                       (r'^$', RedirectToFrontpage.as_view()),
                       (r'^corerest/', include('devilry.apps.corerest.urls')),
                       (r'^subjectadmin/', include('devilry_subjectadmin.urls')),
                       (r'^themebase/', include('devilry.apps.themebase.urls')),

                       # Add the default Devilry urls
                       *devilry_urls
) + staticfiles_urlpatterns()

# Must be after url-loading to allow plugins to use reverse()
pluginloader.autodiscover()
<commit_msg>devenv..urls: devilry_subjectadmin/ instead of subjectadmin.<commit_after>from django.conf.urls.defaults import patterns, include
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.core.urlresolvers import reverse
from django.shortcuts import redirect
from django.views.generic import View

from devilry.apps.core import pluginloader
from devilry.defaults.urls import devilry_urls


class RedirectToFrontpage(View):
    def get(self, request):
        return redirect(reverse('student'))


urlpatterns = patterns('',
                       # Custom urls for this project
                       (r'^$', RedirectToFrontpage.as_view()),
                       (r'^corerest/', include('devilry.apps.corerest.urls')),
                       (r'^devilry_subjectadmin/', include('devilry_subjectadmin.urls')),
                       (r'^themebase/', include('devilry.apps.themebase.urls')),

                       # Add the default Devilry urls
                       *devilry_urls
) + staticfiles_urlpatterns()

# Must be after url-loading to allow plugins to use reverse()
pluginloader.autodiscover()

{'fraction_non_alphanumeric': 0.09786071916249431, 'fraction_numerical': 0.0, 'mean_word_length': 2.822608695652174, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5488593', 'n_tokens_mistral': 607, 'n_tokens_neox': 586, 'n_words': 142}