<commit_before><?php
    $events = $context->getCategorizedEvents();
?>
<ul class="wdn_tabs">
    <li><a href="#pending">Pending (<?php echo count($events['pending']); ?>)</a></li>
    <li><a href="#upcoming">Upcoming (<?php echo count($events['posted']); ?>)</a></li>
    <li><a href="#archived">Archived (<?php echo count($events['archived']); ?>)</a></li>
</ul>
<div class="wdn_tabs_content">
    <div id="pending">
        <div id="pending-toolbar">
            <?php echo $context->calendar->name ?> <a href="<?php echo $base_manager_url . $context->calendar->shortname ?>/create/" class="wdn-button wdn-button-brand">+ New Event</a>
        </div><br>
        <?php if (count($events['pending']) == 0): ?>
            There are no pending events.
        <?php else: ?>
            <?php echo $savvy->render($events['pending'], 'Events/event-list.tpl.php') ?>
        <?php endif; ?>
    </div>
    <div id="upcoming">
        <div id="upcoming-toolbar">
            <?php echo $context->calendar->name ?> <a href="#" class="wdn-button wdn-button-brand">+ New Event</a>
        </div><br>
        <div class="wdn-grid-set">
            <div class="wdn-col-two-thirds">
                <?php if (count($events['posted']) == 0) { ?>
                    There are no upcoming events.
                <?php } ?>
                <?php foreach($events['posted'] as $event) { ?>
                    <div class="event" style="border: 1px solid black; padding: 5px;">
                    <h6 style="display: inline-block;"><?php echo $event->title ?></h6>
                    <h6 style="float: right;"></h6>
                    </div>
                    <br>
                <?php } ?>
            </div>
        </div>
    </div>
    <div id="archived">
        <div id="archived-toolbar">
            <?php echo $context->calendar->name ?> <a href="#" class="wdn-button wdn-button-brand">+ New Event</a>
        </div><br>
        <div class="wdn-grid-set">
            <div class="wdn-col-two-thirds">
                <?php if (count($events['archived']) == 0) { ?>
                    There are no archived events.
                <?php } ?>
                <?php foreach($events['archived'] as $event) { ?>
                    <div class="event" style="border: 1px solid black; padding: 5px;">
                    <h6 style="display: inline-block;"><?php echo $event->title ?></h6>
                    <h6 style="float: right;"></h6>
                    </div>
                    <br>
                <?php } ?>
            </div>
        </div>
    </div>
</div><commit_msg>Clean up home page, implement other lists and improve wordage<commit_after><?php
    $events = $context->getCategorizedEvents();
?>
<ul class="wdn_tabs">
    <li><a href="#pending">Pending (<?php echo count($events['pending']); ?>)</a></li>
    <li><a href="#upcoming">Upcoming (<?php echo count($events['posted']); ?>)</a></li>
    <li><a href="#past">Past (<?php echo count($events['archived']); ?>)</a></li>
</ul>
<div class="wdn_tabs_content">
    <div id="pending">
        <div id="pending-toolbar">
            <?php echo $context->calendar->name ?> <a href="<?php echo $base_manager_url . $context->calendar->shortname ?>/create/" class="wdn-button wdn-button-brand">+ New Event</a>
        </div>
        <?php if (count($events['pending']) == 0): ?>
            There are no pending events.
        <?php else: ?>
            <?php echo $savvy->render($events['pending'], 'Events/event-list.tpl.php') ?>
        <?php endif; ?>
    </div>
    <div id="upcoming">
        <div id="upcoming-toolbar">
            <?php echo $context->calendar->name ?> <a href="#" class="wdn-button wdn-button-brand">+ New Event</a>
        </div>
        <?php if (count($events['posted']) == 0): ?>
            There are no upcoming events.
        <?php else: ?>
            <?php echo $savvy->render($events['posted'], 'Events/event-list.tpl.php') ?>
        <?php endif; ?>
    </div>
    <div id="past">
        <div id="past-toolbar">
            <?php echo $context->calendar->name ?> <a href="#" class="wdn-button wdn-button-brand">+ New Event</a>
        </div>
        <?php if (count($events['archived']) == 0): ?>
            There are no past events.
        <?php else: ?>
            <?php echo $savvy->render($events['archived'], 'Events/event-list.tpl.php') ?>
        <?php endif; ?>
    </div>
</div>
{'fraction_non_alphanumeric': 0.20888382687927107, 'fraction_numerical': 0.004100227790432802, 'mean_word_length': 2.1865021770682147, 'pattern_counts': {'":': 0, '<': 138, '<?xml version=': 0, '>': 162, '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': '3133570', 'n_tokens_mistral': 1364, 'n_tokens_neox': 1327, 'n_words': 308}