<commit_before>from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.

def index(request):
    return render(request, 'template.html', {})


def profile(request):
    return render(request, 'profile.html', {})


def user_home(request):
    return render(request, 'template.html', {})
<commit_msg>Added login protection to several pages.<commit_after>from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required

# Create your views here.

def index(request):
    return render(request, 'template.html', {})

@login_required()
def profile(request):
    return render(request, 'profile.html', {})

@login_required()
def user_home(request):
    return render(request, 'template.html', {})

{'fraction_non_alphanumeric': 0.1198501872659176, 'fraction_numerical': 0.0, 'mean_word_length': 5.467741935483871, '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': '204214', 'n_tokens_mistral': 224, 'n_tokens_neox': 225, 'n_words': 65}