<commit_before><main id="main" tabindex="-1" class="l-results">
  <div class="l-constrained">
    <div class="results-list">
      <h1 class="results-list__title"><%= t('.search_results_for')%> <% if params[:q] %>'<%= h(params[:q]) %>'<% end %></h1>
      <form class="search-form">
        <div class="form__row">
          <label for="q" class="form__label-heading">Search term</label>
          <input class="search-form__input" type="text" name="q" id="q" value="<%= h(params[:q]) %>" />
        </div>
        <div class="form__row">
          <input type="submit" class="button button--primary" />
        </div>
      </form>
      <%- if params[:q] && @articles.empty? %>
        <p><%= t(".no_articles_found")%></p>
      <%- else %>
        <a name="results" id="results"></a>
        <% if @articles.count > 0 %>
          <p class="results-list__count"><%= t('.results', count: @articles.total_count) %></p>
        <% end %>
        <%- @articles.each do |article| %>
          <div class="results-list-item">
            <h2 class="results-list-item__header"><%= link_to_permalink(article,h(article.title)) %></h2>
            <div class="results-list-item__author">
              <% if article.author %>
                <span class="visually-hidden"><%= t("articles.archives.published_by") %></span> <a href="<%= author_path(id: article.author) %>"><%= article.user.nickname %></a> -
              <% end %>
              <%= display_article_date(article) %>
            </div>
            <% if article.description_meta_tag.present? %>
              <p><%= article.description_meta_tag %></p>
            <% end %><commit_msg>Fix search URL on paginated search pages<commit_after><main id="main" tabindex="-1" class="l-results">
  <div class="l-constrained">
    <div class="results-list">
      <h1 class="results-list__title"><%= t('.search_results_for')%> <% if params[:q] %>'<%= h(params[:q]) %>'<% end %></h1>
      <form class="search-form" action="/search">
        <div class="form__row">
          <label for="q" class="form__label-heading">Search term</label>
          <input class="search-form__input" type="text" name="q" id="q" value="<%= h(params[:q]) %>" />
        </div>
        <div class="form__row">
          <input type="submit" class="button button--primary" />
        </div>
      </form>
      <%- if params[:q] && @articles.empty? %>
        <p><%= t(".no_articles_found")%></p>
      <%- else %>
        <a name="results" id="results"></a>
        <% if @articles.count > 0 %>
          <p class="results-list__count"><%= t('.results', count: @articles.total_count) %></p>
        <% end %>
        <%- @articles.each do |article| %>
          <div class="results-list-item">
            <h2 class="results-list-item__header"><%= link_to_permalink(article,h(article.title)) %></h2>
            <div class="results-list-item__author">
              <% if article.author %>
                <span class="visually-hidden"><%= t("articles.archives.published_by") %></span> <a href="<%= author_path(id: article.author) %>"><%= article.user.nickname %></a> -
              <% end %>
              <%= display_article_date(article) %>
            </div>
            <% if article.description_meta_tag.present? %>
              <p><%= article.description_meta_tag %></p>
            <% end %>
{'fraction_non_alphanumeric': 0.21454326923076922, 'fraction_numerical': 0.003605769230769231, 'mean_word_length': 2.552828175026681, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 113, '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': '2535752', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1039, 'n_words': 189}