<commit_before>from django.shortcuts import render

# Create your views here.

def index(req):
    return render(req, 'login/login.html')

def login(req):
    username = req.POST['username']
    password = req.POST['password']

    """if username == "admin":
        return render(req, 'login.html')
    else:
        return render(req, 'login/login.html', { 'error_message': 'Invalid username or password'})"""

def register(req):
    return render(req, 'login/register.html')

def create_new_user(req):
    firstname = req.POST['firstname']
    lastname = req.POST['lastname']
    username = req.POST['username']
    password = req.POST['password']
    confirm_password = req.POST['confirm_password']
    bday = req.POST['bday']<commit_msg>just to make sure<commit_after>from django.shortcuts import render
from django.shortcuts import HttpResponseRedirect
from django.core.urlresolvers import reverse

# Create your views here.

def index(req):
    return render(req, 'login/login.html')


def login(req):
    username = req.POST['username']
    password = req.POST['password']

    """if username == "admin":
        return render(req, 'login.html')
    else:
        return render(req, 'login/login.html', { 'error_message': 'Invalid username or password'})"""
    return render(req, 'login/login.html', { 'error_message': 'Invalid username or password'})
    #return HttpResponseRedirect('/login/')

def register(req):
    return render(req, 'login/register.html')

def create_new_user(req):
    firstname = req.POST['firstname']
    lastname = req.POST['lastname']
    username = req.POST['username']
    password = req.POST['password']
    confirm_password = req.POST['<PASSWORD>_password']
    bday = req.POST['bday']
{'fraction_non_alphanumeric': 0.1465816917728853, 'fraction_numerical': 0.0, 'mean_word_length': 4.094395280235989, 'pattern_counts': {'":': 2, '<': 4, '<?xml version=': 0, '>': 4, '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': '6133506', 'n_tokens_mistral': 525, 'n_tokens_neox': 518, 'n_words': 126}