<commit_before><div class="l-results">
  <div class="l-constrained">
    <h1 class="l-results__title">Archive</h1>

    <%- if @articles.empty? %>
      <p><%= t(".no_articles_found")%></p>
    <%- else %>
      <%- for article in @articles %>
        <div class="l-results-item">
          <h2 class="l-results-item__header"><%= link_to_permalink(article,h(article.title)) %></h2>
          <div class="l-results-item__author">
            <%= link_to(article.author, author_path(id: article.author)) if article.author %> - <%= article.published_at.strftime("#{article.published_at.day.ordinalize} %b %Y") %>
          </div>
        </div>
      <%- end %>
    <%- end %>
  </div>

  <% if @articles.total_pages > 1 %>
    <nav class="l-results-pagination">
      <p class="l-results-pagination__text">Page <%= @articles.current_page %> of <%= @articles.total_pages %></p>

      <% if !@articles.first_page? %>
        <a href="/archives?page=<%= @articles.current_page-1 %>" class="button">&lt; Previous</a>
      <% end %>
      <% if !@articles.last_page? %>
        <a href="/archives?page=<%= @articles.current_page+1 %>" class="button">Next &gt;</a>
      <% end %><commit_msg>altered for statement to use each<commit_after><div class="l-results">
  <div class="l-constrained">
    <h1 class="l-results__title">Archive</h1>

    <%- if @articles.empty? %>
      <p><%= t(".no_articles_found")%></p>
    <%- else %>
      <%- @articles.each do |article| %>
        <div class="l-results-item">
          <h2 class="l-results-item__header"><%= link_to_permalink(article,h(article.title)) %></h2>
          <div class="l-results-item__author">
            <%= link_to(article.author, author_path(id: article.author)) if article.author %> - <%= article.published_at.strftime("#{article.published_at.day.ordinalize} %b %Y") %>
          </div>
        </div>
      <%- end %>
    <%- end %>
  </div>

  <% if @articles.total_pages > 1 %>
    <nav class="l-results-pagination">
      <p class="l-results-pagination__text">Page <%= @articles.current_page %> of <%= @articles.total_pages %></p>

      <% if !@articles.first_page? %>
        <a href="/archives?page=<%= @articles.current_page-1 %>" class="button">&lt; Previous</a>
      <% end %>
      <% if !@articles.last_page? %>
        <a href="/archives?page=<%= @articles.current_page+1 %>" class="button">Next &gt;</a>
      <% end %>
{'fraction_non_alphanumeric': 0.2150313152400835, 'fraction_numerical': 0.005845511482254697, 'mean_word_length': 3.0472972972972974, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 81, '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': '3206277', 'n_tokens_mistral': 913, 'n_tokens_neox': 807, 'n_words': 130}