<commit_before>from django.shortcuts import render
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.contrib.auth.views import login

# Create your views here.
def home(request):
    """
    App home page
    """
    if request.method == 'GET':
        return render(request, 'flashcardgui/index.html',{'user':request.user})

def profile(request):
    """
    ...
    """
    if request.method == 'GET':
        pass
        #return render(request, 'flashcardgui/index.html',{'user':request.user})






<commit_msg>view fix<commit_after>from django.shortcuts import render
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.contrib.auth.views import login
from django.contrib.auth.decorators import login_required

# Create your views here.
@login_required
def home(request):
    """
    App home page
    """
    if request.method == 'GET':
        decks = Deck.objects.filter(owner=request.user)
        context = {'user': request.user, 'decks': decks}
        return render(request, 'flashcardgui/index.html', context)

def profile(request):
    """
    ...
    """
    if request.method == 'GET':
        pass
        #return render(request, 'flashcardgui/index.html',{'user':request.user})







{'fraction_non_alphanumeric': 0.12849584278155707, 'fraction_numerical': 0.0, 'mean_word_length': 3.3127035830618894, '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': '5485072', 'n_tokens_mistral': 390, 'n_tokens_neox': 376, 'n_words': 94}