<commit_before>"""
TWLight URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
"""

from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.admindocs import urls as admindocs
from django.contrib.auth import views as auth_views
from django.views.generic import TemplateView
from django.views.decorators.cache import cache_page
import django

import TWLight.i18n.views
import TWLight.i18n.urls
from TWLight.applications.urls import urlpatterns as applications_urls
from TWLight.graphs.urls import csv_urlpatterns as csv_urls
from TWLight.graphs.views import DashboardView
from TWLight.resources.urls import urlpatterns as partners_urls
from TWLight.users import authorization as auth
from TWLight.users.urls import urlpatterns as users_urls
from TWLight.users.views import TermsView

from .views import LanguageWhiteListView, HomePageView


urlpatterns = [
    # Built-in -----------------------------------------------------------------
    url(r'^admin/doc', include(admindocs)),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^accounts/login/', auth_views.login, name='auth_login'),
    url(r'^accounts/logout/',
        auth_views.logout,
        {'next_page': '/'},
        name='auth_logout'),
    url(r'^password/change/$',
        auth_views.password_change,
        {'post_change_redirect': 'users:home'},
        name='password_change'),
    url(r'^password/reset/$',
        auth_views.password_reset,
        {'post_reset_redirect': 'users:home'},
        name='password_reset'),

    # Third-party --------------------------------------------------------------
    url(r'^comments/', include('django_comments.urls')),

    # TWLight apps -------------------------------------------------------------
    # This makes our custom set language form  available.
    url(r'^i18n/', include('TWLight.i18n.urls')),
    url(r'^users/', include(users_urls, namespace="users")),
    url(r'^applications/', include(applications_urls, namespace="applications")),
    url(r'^partners/', include(partners_urls, namespace="partners")),
    url(r'^csv/', include(csv_urls, namespace="csv")),

    # Other TWLight views
    url(r'^oauth/login/$',
        auth.OAuthInitializeView.as_view(),
        name='oauth_login'),
    url(r'^oauth/callback/$',
        auth.OAuthCallbackView.as_view(),
        name='oauth_callback'),

    url(r'^dashboard/$', DashboardView.as_view(), name='dashboard'),
    url(r'^terms/$', TermsView.as_view(), name='terms'),
    # Cached for 24 hours.
    url(r'^i18n-whitelist$', cache_page(86400)(LanguageWhiteListView.as_view()), name='i18n_whitelist'),
    url(r'^$', HomePageView.as_view(), name='homepage'),
    url(r'^about/$',
        TemplateView.as_view(template_name='about.html'),
        name='about'),
	url(r'^activity/$',
        HomePageView.as_view(template_name='activity.html'),
        name='activity'),
]
<commit_msg>url pattern for suggest partner<commit_after>"""
TWLight URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
"""

from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.admindocs import urls as admindocs
from django.contrib.auth import views as auth_views
from django.views.generic import TemplateView
from django.views.decorators.cache import cache_page
import django

import TWLight.i18n.views
import TWLight.i18n.urls
from TWLight.applications.urls import urlpatterns as applications_urls
from TWLight.graphs.urls import csv_urlpatterns as csv_urls
from TWLight.graphs.views import DashboardView
from TWLight.resources.urls import urlpatterns as partners_urls
from TWLight.resources.views import PartnerSuggestView
from TWLight.users import authorization as auth
from TWLight.users.urls import urlpatterns as users_urls
from TWLight.users.views import TermsView

from .views import LanguageWhiteListView, HomePageView


urlpatterns = [
    # Built-in -----------------------------------------------------------------
    url(r'^admin/doc', include(admindocs)),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^accounts/login/', auth_views.login, name='auth_login'),
    url(r'^accounts/logout/',
        auth_views.logout,
        {'next_page': '/'},
        name='auth_logout'),
    url(r'^password/change/$',
        auth_views.password_change,
        {'post_change_redirect': 'users:home'},
        name='password_change'),
    url(r'^password/reset/$',
        auth_views.password_reset,
        {'post_reset_redirect': 'users:home'},
        name='password_reset'),

    # Third-party --------------------------------------------------------------
    url(r'^comments/', include('django_comments.urls')),

    # TWLight apps -------------------------------------------------------------
    # This makes our custom set language form  available.
    url(r'^i18n/', include('TWLight.i18n.urls')),
    url(r'^users/', include(users_urls, namespace="users")),
    url(r'^applications/', include(applications_urls, namespace="applications")),
    url(r'^partners/', include(partners_urls, namespace="partners")),
    url(r'^csv/', include(csv_urls, namespace="csv")),

    # Other TWLight views
    url(r'^oauth/login/$',
        auth.OAuthInitializeView.as_view(),
        name='oauth_login'),
    url(r'^oauth/callback/$',
        auth.OAuthCallbackView.as_view(),
        name='oauth_callback'),

    url(r'^dashboard/$', DashboardView.as_view(), name='dashboard'),
    url(r'^terms/$', TermsView.as_view(), name='terms'),
    url(r'^suggest/$',
        PartnerSuggestView.as_view(),
        name='suggest'),
    # Cached for 24 hours.
    url(r'^i18n-whitelist$', cache_page(86400)(LanguageWhiteListView.as_view()), name='i18n_whitelist'),
    url(r'^$', HomePageView.as_view(), name='homepage'),
    url(r'^about/$',
        TemplateView.as_view(template_name='about.html'),
        name='about'),
	url(r'^activity/$',
        HomePageView.as_view(template_name='activity.html'),
        name='activity'),
]

{'fraction_non_alphanumeric': 0.19408054342552158, 'fraction_numerical': 0.006792819019893256, 'mean_word_length': 3.1727395411605936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2172134', 'n_tokens_mistral': 1928, 'n_tokens_neox': 1836, 'n_words': 363}