<commit_before>---
layout: default
---

<div class="posts">
  {% for post in site.posts %}
    {% capture currentyear %}{{ post.date | date: "%Y" }}{% endcapture %}
    {% if currentyear != year %}
      {% unless forloop.first %}
        </div>
      {% endunless %}
      <h1>{{ currentyear }}</h1>
      <div class="archive">
      {% capture year %}{{ currentyear }}{% endcapture %}
    {% endif %}
    <a href="{% if post.external_url %}{{ post.external_url }}{% else %}{{ post.url }}{% endif %}"{% if post.external_url %} target="_blank"{% endif %}>
      <div class="archive-item">
        <time class="archive-date" datetime="{{ post.date | date_to_xmlschema }}">
          {{ post.date | date_to_string }}
        </time>
        <span class="archive-title">{{ post.title }}</span>
        {% if post.redirect_to or post.external_url %}
          &gt;
        {% endif %}
      </div>
    </a>
  {% endfor %}
</div>

{% if site.paginate %}
  <div class="pagination">
    {% if paginator.next_page %}
      <a class="pagination-item older" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a>
    {% else %}
      <span class="pagination-item older">Older</span>
    {% endif %}
    {% if paginator.previous_page %}
      <a class="pagination-item newer" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
    {% else %}
      <span class="pagination-item newer">Newer</span>
    {% endif %}
  </div>
{% endif %}
<commit_msg>Correctly close `<div>` tag at the last year group<commit_after>---
layout: default
---

<div class="posts">
  {% for post in site.posts %}
    {% capture currentyear %}{{ post.date | date: "%Y" }}{% endcapture %}
    {% if currentyear != year %}
      {% unless forloop.first %}
        </div>
      {% endunless %}
      <h1>{{ currentyear }}</h1>
      <div class="archive">
      {% capture year %}{{ currentyear }}{% endcapture %}
    {% endif %}
    <a href="{% if post.external_url %}{{ post.external_url }}{% else %}{{ post.url }}{% endif %}"{% if post.external_url %} target="_blank"{% endif %}>
      <div class="archive-item">
        <time class="archive-date" datetime="{{ post.date | date_to_xmlschema }}">
          {{ post.date | date_to_string }}
        </time>
        <span class="archive-title">{{ post.title }}</span>
        {% if post.redirect_to or post.external_url %}
          &gt;
        {% endif %}
      </div>
    </a>
    {% if forloop.last %}</div>{% endif %}
  {% endfor %}
</div>

{% if site.paginate %}
  <div class="pagination">
    {% if paginator.next_page %}
      <a class="pagination-item older" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a>
    {% else %}
      <span class="pagination-item older">Older</span>
    {% endif %}
    {% if paginator.previous_page %}
      <a class="pagination-item newer" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
    {% else %}
      <span class="pagination-item newer">Newer</span>
    {% endif %}
  </div>
{% endif %}

{'fraction_non_alphanumeric': 0.2003955174686882, 'fraction_numerical': 0.0013183915622940012, 'mean_word_length': 2.7608426270136306, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7013125', 'n_tokens_mistral': 1081, 'n_tokens_neox': 993, 'n_words': 220}