<commit_before>from django.views.generic.dates import ArchiveIndexView
from aspc.blog.views import PostArchive
from aspc.blog.models import Post

class HomeView(PostArchive):
    template_name = "home.html"
    model = Post
    date_field = 'posted'
    context_object_name = 'posts'
    
    def get_context_data(self, **kwargs):
        context = super(HomeView, self).get_context_data(**kwargs)
        context['all_nav'] = True
        return context
    <commit_msg>Don't want home to give 404<commit_after>from django.views.generic.dates import ArchiveIndexView
from aspc.blog.views import PostArchive
from aspc.blog.models import Post

class HomeView(PostArchive):
    template_name = "home.html"
    model = Post
    date_field = 'posted'
    context_object_name = 'posts'
    allow_empty = True
    
    def get_context_data(self, **kwargs):
        context = super(HomeView, self).get_context_data(**kwargs)
        context['all_nav'] = True
        return context
    
{'fraction_non_alphanumeric': 0.09193054136874361, 'fraction_numerical': 0.0030643513789581204, 'mean_word_length': 3.558139534883721, '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': '1591682', 'n_tokens_mistral': 302, 'n_tokens_neox': 287, 'n_words': 71}