<commit_before><%def name="select(startdate)">
<div class="calendar">
% for w in sorted(range(-4, 1), reverse=True):
    <% monday = startdate - datetime.timedelta(days=startdate.weekday()) + datetime.timedelta(days=w*7) %>
    <div class="week">
        % for d in range(0, 7):
            <% today = (monday + datetime.timedelta(days=d)).date() %>
            <div class="day">
                <div class="date">${today}</div>
                % for c in crosswords.get(today, []):
                    <a href="${base}crossword/${c.get("Id")}">${c.get("Title")}</a>
                % endfor
            </div>
        % endfor
    </div>
% endfor
    <div class="week"></div>
</div>

<div class="agenda">
% for w in sorted(range(-4, 1), reverse=True):
    % for d in range(0, 7):
        <% today = (startdate - datetime.timedelta(days=d)).date() %>
        <div class="day">
            <div class="date">${today.strftime("%A %B %d, %Y")}</div>
            % for c in crosswords.get(today, []):
                <a href="${base}crossword/${c.get("Id")}">${c.get("Title")}</a>
            % endfor
        </div><commit_msg>added agenda<commit_after><%def name="select(startdate)">
<div class="calendar">
% for w in sorted(range(-4, 1), reverse=True):
    <% monday = startdate - datetime.timedelta(days=startdate.weekday()) + datetime.timedelta(days=w*7) %>
    <div class="week">
        % for d in range(0, 7):
            <% today = (monday + datetime.timedelta(days=d)).date() %>
            <div class="day">
                <div class="date">${today}</div>
                % for c in crosswords.get(today, []):
                    <a href="${base}crossword/${c.get("Id")}">${c.get("Title")}</a>
                % endfor
            </div>
        % endfor
    </div>
% endfor
    <div class="week"></div>
</div>

<div class="agenda">
% for w in sorted(range(-4, 1), reverse=True):
    <% monday = startdate - datetime.timedelta(days=startdate.weekday()) + datetime.timedelta(days=w*7) %>
    % for d in range(0, 7):
        <% today = (startdate - datetime.timedelta(days=d)).date() %>
        <div class="day">
            <div class="date">${today.strftime("%A %B %d, %Y")}</div>
            % for c in crosswords.get(today, []):
                <a href="${base}crossword/${c.get("Id")}">${c.get("Title")}</a>
            % endfor
        </div>
{'fraction_non_alphanumeric': 0.2145284621920136, 'fraction_numerical': 0.008071367884451997, 'mean_word_length': 2.3404255319148937, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 50, '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': '4302046', 'n_tokens_mistral': 824, 'n_tokens_neox': 783, 'n_words': 150}