<commit_before>from django.shortcuts import render
from posts.models import Post, Tag

def home(request):
    posts = Post.objects.filter(published=True).order_by('-datePosted')[:5]
    return render(request, 'home.html', { 'posts':posts, 'title':'<NAME>' })

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

def projects(request):
    return render(request, 'projects.html', { 'title': 'projects' })<commit_msg>show 10 posts on frontpage<commit_after>from django.shortcuts import render
from posts.models import Post, Tag

def home(request):
    posts = Post.objects.filter(published=True).order_by('-datePosted')[:10]
    return render(request, 'home.html', { 'posts':posts, 'title':'<NAME>' })

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

def projects(request):
    return render(request, 'projects.html', { 'title': 'projects' })
{'fraction_non_alphanumeric': 0.16993464052287582, 'fraction_numerical': 0.0054466230936819175, 'mean_word_length': 5.807407407407408, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4066899', 'n_tokens_mistral': 285, 'n_tokens_neox': 273, 'n_words': 66}