<commit_before>from django.shortcuts import render

import commonware

from gameon.submissions.models import Category
from gameon.events.models import Event


log = commonware.log.getLogger('playdoh')


def home(request, template='static_site/landing.html'):
    """Main example view."""

    upcoming_events = Event.objects.get_upcoming()

    data = {
        'events': upcoming_events.order_by('start_date')[:3],
        'num_events': upcoming_events.count()
    }<commit_msg>#111 - changing the max events displayed to 5 from 3<commit_after>from django.shortcuts import render

import commonware

from gameon.submissions.models import Category
from gameon.events.models import Event


log = commonware.log.getLogger('playdoh')


def home(request, template='static_site/landing.html'):
    """Main example view."""

    upcoming_events = Event.objects.get_upcoming()

    data = {
        'events': upcoming_events.order_by('start_date')[:5],
        'num_events': upcoming_events.count()
    }
{'fraction_non_alphanumeric': 0.11634904714142427, 'fraction_numerical': 0.007021063189568706, 'mean_word_length': 4.365591397849462, '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': '7219416', 'n_tokens_mistral': 306, 'n_tokens_neox': 290, 'n_words': 67}