<commit_before>from django.contrib.auth import login as auth_login, logout as auth_logout
from django.contrib.auth.forms import AuthenticationForm
from django.shortcuts import render, redirect, resolve_url as r


def login(request):
    if request.method == 'GET':
        return render(request, 'login.html', {'form': AuthenticationForm()})
    elif request.method == 'POST':
        form = AuthenticationForm(request, data=request.POST)
        if form.is_valid():
            user = form.get_user()
            if user is not None and user.is_active:
                auth_login(request, user)
                return redirect(r('core:index'))
        return render(request, 'login.html', {'form': form})


def logout(request):
    auth_logout(request)
    return redirect(r('landing:index'))


def index(request):
    return render(request, 'index.html')
 <commit_msg>Test deploy<commit_after>from django.contrib.auth import login as auth_login, logout as auth_logout
from django.contrib.auth.forms import AuthenticationForm
from django.shortcuts import render, redirect, resolve_url as r


def login(request):
    if request.method == 'GET':
        return render(request, 'login.html', {'form': AuthenticationForm()})
    elif request.method == 'POST':
        form = AuthenticationForm(request, data=request.POST)
        if form.is_valid():
            user = form.get_user()
            if user is not None and user.is_active:
                auth_login(request, user)
                return redirect(r('core:index'))
        return render(request, 'login.html', {'form': form})


def logout(request):
    auth_logout(request)
    return redirect(r('landing:index'))


def index(request):
    return render(request, 'index.html')
{'fraction_non_alphanumeric': 0.1152073732718894, 'fraction_numerical': 0.0, 'mean_word_length': 3.3208955223880596, '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': '7220413', 'n_tokens_mistral': 493, 'n_tokens_neox': 480, 'n_words': 135}