<commit_before>from django.conf.urls import patterns, include, url
from django.conf import settings
from django.views.generic import TemplateView
from django.views.generic.base import RedirectView
from django.contrib import admin
admin.autodiscover()
from schools.views import SchoolPageView
from stories.views import IVRSPageView
from common.views import StaticPageView
from users.views import (ProfilePageView, OrganizationSlugPageView,
    OrganizationPKPageView, ProfileEditPageView, OrganizationEditPageView,
    VolunteerActivityAddPageView, VolunteerActivityEditPageView,
    EmailVerificationView, VolunteerMapPageView, DonatePageView,
    DonationRequirementsView, DonationRequirementView,
    DonationRequirementAddEditPageView)

urlpatterns = patterns(
    '',

    # home page
    url(r'^$', StaticPageView.as_view(
        template_name='home.html',
        ), name='home'),

    # styleguide page
    url(r'^styleguide/$', StaticPageView.as_view(
        template_name='styleguide.html'
        ), name='styleguide'),

    # about pages
    url(r'^about/$', StaticPageView.as_view(
        template_name='aboutus.html',
        ), name='aboutus'),
    url(r'text/aboutus/$', RedirectView.as_view(url='/about')),

    url(r'^partners/$', StaticPageView.as_view(
        template_name='partners.html',
        ), name='partners'),
    url(r'text/partners/$', RedirectView.as_view(url='/partners')),

    url(r'^disclaimer/$', StaticPageView.as_view(
        template_name='disclaimer.html',
        ), name='disclaimer'),
    url(r'text/disclaimer/$', RedirectView.as_view(url='/disclaimer')),

    # reports page
    url(r'^reports/$', StaticPageView.as_view(
        template_name='reports.html',
        ), name='reports'),
    url(r'text/reports/$', RedirectView.as_view(url='/reports')),

    # data page
    url(r'^data/$', StaticPageView.as_view(
        template_name='data.html',
        ), name='data'),
    url(r'text/data$', RedirectView.as_view(url='/data')),
    url(r'listFiles/2$', RedirectView.as_view(url='/data')),

    # programme pages
    url(r'^programmes/reading/$', StaticPageView.as_view(
        template_name='reading_programme.html',
        ), name='reading_programme'),
    url(r'text/reading/$', RedirectView.as_view(url='/programmes/reading')),

    url(r'^text/maths/$', StaticPageView.as_view(
        template_name='maths_programme.html',
        ), name='maths_programme'),

    url(r'^text/library/$', StaticPageView.as_view(
        template_name='library_programme.html',
        ), name='library_programme'),

    url(r'^text/preschool/$', StaticPageView.as_view(
        template_name='preschool_programme.html',
        ), name='preschool_programme'),

    url(r'^programmes/sikshana/$', StaticPageView.as_view(
        template_name='sikshana_programme.html',
        ), name='sikshana_programme'),

    url(r'^text/sikshana/$', RedirectView.as_view(url='/programmes/sikshana')),

    url(r'^partners/pratham/learn-out-of-the-box/$', StaticPageView.as_view(
        template_name='partners/pratham/learn.html',
        ), name='partners_pratham_learn'),

    url(r'^volunteer/$', StaticPageView.as_view(
        template_name='volunteer.html',
        ), name='volunteer'),
    url(r'text/volunteer/$', RedirectView.as_view(url='/volunteer/')),

    url(r'^map/$', StaticPageView.as_view(
        template_name='map.html',
        extra_context={
            'hide_footer': True,
        }), name='map'),


    # url(r'^volunteer-map$', StaticPageView.as_view(
    #     template_name='volunteer-map.html',
    #     extra_context={
    #         'header_full_width': True,
    #         'header_fixed': True,
    #         'hide_footer': True
    #     }), name='volunteer_map'),

    url(r'^volunteer-map$', VolunteerMapPageView.as_view(
        template_name='volunteer-map.html',
        extra_context={<commit_msg>standardize urls to /partners/... as per #426<commit_after>from django.conf.urls import patterns, include, url
from django.conf import settings
from django.views.generic import TemplateView
from django.views.generic.base import RedirectView
from django.contrib import admin
admin.autodiscover()
from schools.views import SchoolPageView
from stories.views import IVRSPageView
from common.views import StaticPageView
from users.views import (ProfilePageView, OrganizationSlugPageView,
    OrganizationPKPageView, ProfileEditPageView, OrganizationEditPageView,
    VolunteerActivityAddPageView, VolunteerActivityEditPageView,
    EmailVerificationView, VolunteerMapPageView, DonatePageView,
    DonationRequirementsView, DonationRequirementView,
    DonationRequirementAddEditPageView)

urlpatterns = patterns(
    '',

    # home page
    url(r'^$', StaticPageView.as_view(
        template_name='home.html',
        ), name='home'),

    # styleguide page
    url(r'^styleguide/$', StaticPageView.as_view(
        template_name='styleguide.html'
        ), name='styleguide'),

    # about pages
    url(r'^about/$', StaticPageView.as_view(
        template_name='aboutus.html',
        ), name='aboutus'),
    url(r'text/aboutus/$', RedirectView.as_view(url='/about')),

    url(r'^partners/$', StaticPageView.as_view(
        template_name='partners.html',
        ), name='partners'),
    url(r'text/partners/$', RedirectView.as_view(url='/partners')),

    url(r'^disclaimer/$', StaticPageView.as_view(
        template_name='disclaimer.html',
        ), name='disclaimer'),
    url(r'text/disclaimer/$', RedirectView.as_view(url='/disclaimer')),

    # reports page
    url(r'^reports/$', StaticPageView.as_view(
        template_name='reports.html',
        ), name='reports'),
    url(r'text/reports/$', RedirectView.as_view(url='/reports')),

    # data page
    url(r'^data/$', StaticPageView.as_view(
        template_name='data.html',
        ), name='data'),
    url(r'text/data$', RedirectView.as_view(url='/data')),
    url(r'listFiles/2$', RedirectView.as_view(url='/data')),

    # partners pages

    url(r'^partners/akshara/reading/$', StaticPageView.as_view(
        template_name='reading_programme.html',
        ), name='reading_programme'),     
    url(r'^programmes/reading/$', RedirectView.as_view(url='/partners/akshara/reading/')),
    url(r'text/reading/$', RedirectView.as_view(url='/partners/akshara/reading/')),

    url(r'^partners/akshara/maths/$', StaticPageView.as_view(
        template_name='maths_programme.html',
        ), name='maths_programme'),
    url(r'^text/maths/$', RedirectView.as_view(url='/partners/akshara/maths/')),

    url(r'^partners/akshara/library/$', StaticPageView.as_view(
        template_name='library_programme.html',
        ), name='library_programme'),
    url(r'^text/library/$', RedirectView.as_view(url='/partners/akshara/library/')),

    url(r'^partners/akshara/preschool/$', StaticPageView.as_view(
        template_name='preschool_programme.html',
        ), name='preschool_programme'),
    url(r'^text/preschool/$', RedirectView.as_view(url='/partners/akshara/preschool/')),

    url(r'^partners/sikshana/reading/$', StaticPageView.as_view(
        template_name='sikshana_programme.html',
        ), name='sikshana_programme'),
    url(r'^programmes/sikshana/$', RedirectView.as_view(url='/partners/sikshana/reading/')),
    url(r'^text/sikshana/$', RedirectView.as_view(url='/partners/sikshana/reading/')),

    url(r'^partners/pratham/learn-out-of-the-box/$', StaticPageView.as_view(
        template_name='partners/pratham/learn.html',
        ), name='partners_pratham_learn'),

    url(r'^volunteer/$', StaticPageView.as_view(
        template_name='volunteer.html',
        ), name='volunteer'),
    url(r'text/volunteer/$', RedirectView.as_view(url='/volunteer/')),

    url(r'^map/$', StaticPageView.as_view(
        template_name='map.html',
        extra_context={
            'hide_footer': True,
        }), name='map'),


    # url(r'^volunteer-map$', StaticPageView.as_view(
    #     template_name='volunteer-map.html',
    #     extra_context={
    #         'header_full_width': True,
    #         'header_fixed': True,
    #         'hide_footer': True
    #     }), name='volunteer_map'),

    url(r'^volunteer-map$', VolunteerMapPageView.as_view(
        template_name='volunteer-map.html',
        extra_context={
{'fraction_non_alphanumeric': 0.15506214552914202, 'fraction_numerical': 0.0006033546518643658, 'mean_word_length': 3.8158047646717024, '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': '3258584', 'n_tokens_mistral': 2863, 'n_tokens_neox': 2714, 'n_words': 337}