<commit_before><div class="apple_pagination">
  <!-- render page links in the view: -->
  <%= will_paginate @search.results unless @search.search_comparison %>
</div>
<div class="table spacing expand_width">
  <div class="row">
    <%- result_headers.each do |proc| -%>
        <div class="cell"><%= proc.call @search.group %></div>
    <%- end -%>
  </div>
  <%- if @search.search_comparison -%>
      <%- @search.results(false).each do |result| -%>
          <%= render :partial => "searches/result", :locals => { :result => result}, :inline => true %>
      <%- end -%>
  <%- else -%>
      <%- @search.results.each do |result| -%>
          <%= render :partial => "searches/result", :locals => { :result => result}, :inline => true %>
      <%- end -%>
  <%- end -%>
</div>
<div class="apple_pagination">
  <!-- render page links in the view: -->
  <%= will_paginate @search.results unless @search.search_comparison %>
</div>
<commit_msg>Refactoring for a nicer code<commit_after><div class="apple_pagination">
  <!-- render page links in the view: -->
  <%= will_paginate @search.results unless @search.search_comparison %>
</div>
<div class="table spacing expand_width">
  <div class="row">
    <%- result_headers.each do |proc| -%>
        <div class="cell"><%= proc.call @search.group %></div>
    <%- end -%>
  </div>
  <%- pagination_enable = !@search.search_comparison -%>
  <%- @search.results(pagination_enable).each do |result| -%>
      <%= render :partial => "searches/result", :locals => { :result => result}, :inline => true %>
  <%- end -%>
</div>
<div class="apple_pagination">
  <!-- render page links in the view: -->
  <%= will_paginate @search.results unless @search.search_comparison %>
</div>

{'fraction_non_alphanumeric': 0.20767888307155322, 'fraction_numerical': 0.0, 'mean_word_length': 3.3434343434343434, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 62, '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': '5813944', 'n_tokens_mistral': 605, 'n_tokens_neox': 565, 'n_words': 132}