<commit_before>from django.shortcuts import render

from bidb.buildinfo.buildinfo_submissions.models import Submission

def landing(request):
    latest = Submission.objects.all()[:20]
    num_submissions = Submission.objects.count()

    return render(request, 'static/landing.html', {
        'latest': latest,
        'num_submissions': num_submissions,
    })<commit_msg>Actually show latest here.<commit_after>from django.shortcuts import render

from bidb.buildinfo.buildinfo_submissions.models import Submission

def landing(request):
    latest = Submission.objects.order_by('-created')[:20]
    num_submissions = Submission.objects.count()

    return render(request, 'static/landing.html', {
        'latest': latest,
        'num_submissions': num_submissions,
    })
{'fraction_non_alphanumeric': 0.11053984575835475, 'fraction_numerical': 0.005141388174807198, 'mean_word_length': 4.409722222222222, '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': '616888', 'n_tokens_mistral': 240, 'n_tokens_neox': 224, 'n_words': 45}