<commit_before><div class="span-6 last">
    <div style=" padding-top:18px;" class="span-5 last">
        <h1>Future</h1>
    </div>

    <div class="span-6 last">
        <div style="height:700px;" id="quicklinks">
            <table>
                <tr>
                    <div style="display:table-cell; vertical-align:top">
                        <div style="margin:1px;">
                            <strong>2016</strong> <!--lazy hardcoding! -->
                            <br/>

                            {{ range $.Site.Data.events }}
                              {{ if eq .status "current" }}
                                <a href="/events/{{ .friendly}}">{{ .city }}: {{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "Jan 2" .enddate }}</a>
                                <br />
                              {{ end }}
                            {{ end }}
                        </div>
                    </div>

                </tr>
            </table>
        </div><commit_msg>Fix hard-coded year.<commit_after><!--
Future events (i.e. "current" status) should take place in the current or
following year. E.g. We should have events in January next year appear when it
is December of the current year.

This code creates 2-3 lists: One of current years and a list of current events
for each year (namespaced with "future" to prevent collisions). Later we loop
through these lists to generate our event info.
-->

{{ range seq .Now.Year (add .Now.Year 1) }}
  {{ $future_year := (chomp .) }}
  {{ range $.Site.Data.events }}
    {{ if and (eq .year $future_year) (eq .status "current") }}
      {{ $.Scratch.SetInMap "future_years" $future_year $future_year }}
      {{ $.Scratch.SetInMap (print "future" $future_year) .startdate .friendly }}
    {{ end }}
  {{ end }}
{{ end }}
    
<div class="span-6 last">
    <div style=" padding-top:18px;" class="span-5 last">
        <h1>Future</h1>
    </div>

    <div class="span-6 last">
        <div style="height:700px;" id="quicklinks">
            <table>
                <tr>
                    <div style="display:table-cell; vertical-align:top">
                        <div style="margin:1px;">
                            {{ range ($.Scratch.GetSortedMapValues "future_years") }}
                                <strong>{{ . }}</strong><br/>

                                {{ range ($.Scratch.GetSortedMapValues (print "future" .)) }}
                                    {{ $c_event := (index $.Site.Data.events .) }}
                                    <a href="/events/{{ $c_event.friendly }}">{{ $c_event.city }}: {{ dateFormat "Jan 2" $c_event.startdate }} - {{ dateFormat "Jan 2" $c_event.enddate }}</a><br />
                                {{ end }}
                            {{ end }}
                        </div>
                    </div>

                </tr>
            </table>
        </div>
{'fraction_non_alphanumeric': 0.15458937198067632, 'fraction_numerical': 0.011387163561076604, 'mean_word_length': 1.372340425531915, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5522530', 'n_tokens_mistral': 837, 'n_tokens_neox': 786, 'n_words': 209}