<commit_before>from django.conf import settings
from django.conf.urls import patterns, url
from django.views.generic.base import TemplateView

from accounts import views


urlpatterns = patterns('',
    # Auth
    url(
        r'^login/$',
        'django.contrib.auth.views.login',
        {'template_name': 'accounts/login.html'},
        name='login'
    ),
    url(
        r'^logout/$',
        'django.contrib.auth.views.logout',
        {
            'next_page': '/',
            'template_name': 'accounts/login.html'
        },
        name='logout'
    ),

    # page where user can request to reset their password
    url(r'^password/reset/$',
        'django.contrib.auth.views.password_reset',
        {
            'template_name': 'accounts/password_reset.html',
            'post_reset_redirect': '/accounts/password/reset/done/',
            'from_email': settings.EMAIL_HOST_USER,
            'current_app' : 'accounts',
            'email_template_name': 'accounts/emails/password_reset_email.html',
        },
        name="password_reset"
    ),

    # page to confirm that email has been sent
    url(r'^password/reset/done/$',
        'django.contrib.auth.views.password_reset_done',
        {
            'template_name': 'accounts/password_reset_done.html',
            'current_app' : 'accounts',
        },
        name="password_reset_done"
    ),


    # page for user to change password (uses token sent in email)
    url(r'^password/reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
        'django.contrib.auth.views.password_reset_confirm',
        {
            'template_name': 'accounts/password_reset_confirm.html',
            'post_reset_redirect': '/accounts/password/done/',
            'current_app' : 'accounts',
        },
        name="password_reset_confirm"
    ),
<commit_msg>Changed email template on reset password page<commit_after>from django.conf import settings
from django.conf.urls import patterns, url
from django.views.generic.base import TemplateView

from accounts import views


urlpatterns = patterns('',
    # Auth
    url(
        r'^login/$',
        'django.contrib.auth.views.login',
        {'template_name': 'accounts/login.html'},
        name='login'
    ),
    url(
        r'^logout/$',
        'django.contrib.auth.views.logout',
        {
            'next_page': '/',
            'template_name': 'accounts/login.html'
        },
        name='logout'
    ),

    # page where user can request to reset their password
    url(r'^password/reset/$',
        'django.contrib.auth.views.password_reset',
        {
            'template_name': 'accounts/password_reset.html',
            'post_reset_redirect': '/accounts/password/reset/done/',
            'from_email': settings.EMAIL_HOST_USER,
            'current_app': 'accounts',
            'email_template_name': 'accounts/emails/password_reset_email.html',
            'html_email_template_name': 'accounts/emails/password_reset_email.html',
        },
        name="password_reset"
    ),

    # page to confirm that email has been sent
    url(r'^password/reset/done/$',
        'django.contrib.auth.views.password_reset_done',
        {
            'template_name': 'accounts/password_reset_done.html',
            'current_app' : 'accounts',
        },
        name="password_reset_done"
    ),


    # page for user to change password (uses token sent in email)
    url(r'^password/reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
        'django.contrib.auth.views.password_reset_confirm',
        {
            'template_name': 'accounts/password_reset_confirm.html',
            'post_reset_redirect': '/accounts/password/done/',
            'current_app' : 'accounts',
        },
        name="password_reset_confirm"
    ),

{'fraction_non_alphanumeric': 0.1376657824933687, 'fraction_numerical': 0.002122015915119363, 'mean_word_length': 2.3342175066313, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4463793', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1129, 'n_words': 188}