<commit_before>{template todoItem title complete=false}
    <li class="todo-item {if $complete}is-complete{/if}">
        <label class="todo-item-wrap">
            <input class="todo-item-checkbox" type="checkbox" {if $complete}checked{/if}>
            <div class="todo-item-title"><a class="edit-link" href="#">Edit</a> {$title}</div>
        </label>
    </li>    
{/template}

<div class="sidebar-item todo-ct">
    <h2 class="sidebar-item-title">To-Do List</h2>

    <h3 class="sidebar-group-title"><a href="#" class="pull-right">Why?</a> Slate recommended tasks</h3>
    <ol class="todo-list recommended-todos">
        {loop array(
            array(title => 'Upload Users', complete => true),
            array(title => 'Upload Courses'),
            array(title => 'Create a Blog Post'),
            array(title => 'Create a Page')
        )}
            {todoItem $title $complete}
        {/loop}
    </ol>

    <h3 class="sidebar-group-title"><a href="#" class="pull-right">Clean Up</a> Your tasks</h3>
    <ul class="todo-list">
        {loop array(
            array(title => 'apply for scholarship'),
            array(title => 'email mrs. johnson about research paper next week'),
            array(title => 'research internships and apply', complete => true)
        )}
            {todoItem $title $complete}
        {/loop}
        <li class="todo-item">
            <form class="new-task-form todo-item-wrap">
                <input class="todo-item-checkbox" type="checkbox" disabled>
                <div class="textarea-ct todo-item-title"><textarea placeholder="New task&hellip;"></textarea></div>
{*                 <div class="submit-area"><input class="button small primary" type="submit" value="Add"></div> *}
            </form>
        </li>
    </ul>

    <h3 class="sidebar-group-title"><a href="#" class="pull-right">Hide</a> Completed tasks</h3>
    <ul class="todo-list completed-todo-list">
        {loop array(
            array(title => 'Completed task'),
            array(title => 'Lorem ipsum dolor sit'),
            array(title => 'Third completed task'),
            array(title => 'Every good boy does fine')
        )}
            {todoItem $title complete=true}
        {/loop}
    </ul>

</div>

{$calendarWidget = Slate::getWidgetConfig(calendar)}
{if $calendarWidget.enabled}
    <div class="sidebar-item events-ct">
        <h2 class="sidebar-item-title">Calendar</h2>
        {foreach key=date item=calendarEntries from=Emergence\Events\Event::groupEventsByDate(Emergence\Events\Event::getUpcoming(12))}
            <section class="event-day">
                <h3 class="event-day-heading">{$date|date_format:'%A, %B %e'}</h3>
                {foreach item=calendarEntry from=$calendarEntries}
                    <article class="vevent">
                        {strip}<a class="url" href="/events/{$calendarEntry.Event->Handle}">
                            <span class="summary">{$calendarEntry.Event->Title|escape}</span>
                            {$startMeridiem = strftime('%p', $calendarEntry.start)}
                            {$startTimestamp = strftime('%l:%M', $calendarEntry.start)}

                            {$endMeridiem = strftime('%p', $calendarEntry.end)}
                            {$endTimestamp = strftime('%l:%M', $calendarEntry.end)}

                            {if $startTimestamp == '12:00' && $startMeridiem == 'AM'}
                                {$startTimestamp = 'Midnight'}
                            {/if}

                            {if $endTimestamp == '12:00' && $endMeridiem == 'AM'}
                                {$endTimestamp = 'Midnight'}
                            {/if}
<commit_msg>hide tasks list mockup<commit_after>{template todoItem title complete=false}
    <li class="todo-item {if $complete}is-complete{/if}">
        <label class="todo-item-wrap">
            <input class="todo-item-checkbox" type="checkbox" {if $complete}checked{/if}>
            <div class="todo-item-title"><a class="edit-link" href="#">Edit</a> {$title}</div>
        </label>
    </li>    
{/template}

{*
<div class="sidebar-item todo-ct">
    <h2 class="sidebar-item-title">To-Do List</h2>

    <h3 class="sidebar-group-title"><a href="#" class="pull-right">Why?</a> Slate recommended tasks</h3>
    <ol class="todo-list recommended-todos">
        {loop array(
            array(title => 'Upload Users', complete => true),
            array(title => 'Upload Courses'),
            array(title => 'Create a Blog Post'),
            array(title => 'Create a Page')
        )}
            {todoItem $title $complete}
        {/loop}
    </ol>

    <h3 class="sidebar-group-title"><a href="#" class="pull-right">Clean Up</a> Your tasks</h3>
    <ul class="todo-list">
        {loop array(
            array(title => 'apply for scholarship'),
            array(title => 'email mrs. johnson about research paper next week'),
            array(title => 'research internships and apply', complete => true)
        )}
            {todoItem $title $complete}
        {/loop}
        <li class="todo-item">
            <form class="new-task-form todo-item-wrap">
                <input class="todo-item-checkbox" type="checkbox" disabled>
                <div class="textarea-ct todo-item-title"><textarea placeholder="New task&hellip;"></textarea></div>
<!--            <div class="submit-area"><input class="button small primary" type="submit" value="Add"></div> -->
            </form>
        </li>
    </ul>

    <h3 class="sidebar-group-title"><a href="#" class="pull-right">Hide</a> Completed tasks</h3>
    <ul class="todo-list completed-todo-list">
        {loop array(
            array(title => 'Completed task'),
            array(title => 'Lorem ipsum dolor sit'),
            array(title => 'Third completed task'),
            array(title => 'Every good boy does fine')
        )}
            {todoItem $title complete=true}
        {/loop}
    </ul>

</div>
*}

{$calendarWidget = Slate::getWidgetConfig(calendar)}
{if $calendarWidget.enabled}
    <div class="sidebar-item events-ct">
        <h2 class="sidebar-item-title">Calendar</h2>
        {foreach key=date item=calendarEntries from=Emergence\Events\Event::groupEventsByDate(Emergence\Events\Event::getUpcoming(12))}
            <section class="event-day">
                <h3 class="event-day-heading">{$date|date_format:'%A, %B %e'}</h3>
                {foreach item=calendarEntry from=$calendarEntries}
                    <article class="vevent">
                        {strip}<a class="url" href="/events/{$calendarEntry.Event->Handle}">
                            <span class="summary">{$calendarEntry.Event->Title|escape}</span>
                            {$startMeridiem = strftime('%p', $calendarEntry.start)}
                            {$startTimestamp = strftime('%l:%M', $calendarEntry.start)}

                            {$endMeridiem = strftime('%p', $calendarEntry.end)}
                            {$endTimestamp = strftime('%l:%M', $calendarEntry.end)}

                            {if $startTimestamp == '12:00' && $startMeridiem == 'AM'}
                                {$startTimestamp = 'Midnight'}
                            {/if}

                            {if $endTimestamp == '12:00' && $endMeridiem == 'AM'}
                                {$endTimestamp = 'Midnight'}
                            {/if}

{'fraction_non_alphanumeric': 0.16434465034492088, 'fraction_numerical': 0.005951575814960097, 'mean_word_length': 2.095018836333194, 'pattern_counts': {'":': 0, '<': 110, '<?xml version=': 0, '>': 140, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '919092', 'n_tokens_mistral': 2162, 'n_tokens_neox': 2087, 'n_words': 431}