<commit_before><section id="content" role="main" class="group ancillary search">
  <header>
    <h1>Search results</h1>
    <p>There were <strong><%= capped_search_set_size %></strong> <%= pluralize("result", "results") %> for &ldquo;<%=h @query %>&rdquo;.</p>
  </header>

  <div class="results top group">
    <header>
      <h2>Top results</h2>
    </header>

    <% if recommended_results %>
      <ul class="search-promoted">
      <% recommended_results.each do |result| %>
        <li>
          <h3><a href="<%= result.link %>" title="View <%= result.title %>"><%= result.link %></a></h3>
          <p><%=h result.description %></p>
          <p><a href="<% result.link %>" class="button" title="Visit this website (you will leave the gov.uk website)">Visit this website &rarr;</a></p>
        </li>
      <% end %>
      <ul>
    <% end %>

    <ol class="group">
      <% top_results.each do |result| %>
        <li class="<%= result.presentation_format %>">
          <a href="<%= result.link %>" title="View <%= result.title %>"><%= result.title %></a>
          <small><%= result.link %></small>
          <p><%=h result.description %></p>
          <% unless (result.additional_links.nil? || result.additional_links.empty?) %>
            <ul class="search-parts">
              <% result.additional_links.each do |link| %>
                <li><a href="<%= link.link %>"><%=h link.title %></a></li>
              <% end %>
            </ul>
          <% end %>
        </li>
      <% end %>
    </ol>
  </div>

  <% if more_results %>
    <div class="results more group">
      <header>
        <h3>More results</h3>
      </header>

      <ol class="group">
        <% more_results.each do |result| %>
          <li class="<%= result.presentation_format %>">
            <a href="<%= result.link %>" title="View <%= result.title %>"><%= result.title %></a>
            <small><%= result.link %></small>
            <p><%= h result.description %></p>
          </li>
        <% end %>
      </ol>
    </div>
  <% end %>
</section>
<commit_msg>change markup around recommended links<commit_after><section id="content" role="main" class="group ancillary search">
  <header>
    <h1>Search results</h1>
    <p>There were <strong><%= capped_search_set_size %></strong> <%= pluralize("result", "results") %> for &ldquo;<%=h @query %>&rdquo;.</p>
  </header>

  <div class="results top group">

    <% if recommended_results %>
      <header>
        <h2>Recommended results</h2>
      </header>
      <ul class="search-promoted">
      <% recommended_results.each do |result| %>
        <li>
          <h3><a href="<%= result.link %>" title="View <%= result.title %>"><%= result.title %></a></h3>
          <small><%= result.link %></small>
          <p><%=h result.description %></p>
          <p><a href="<% result.link %>" class="button" title="Visit this website (you will leave the gov.uk website)">Visit this website &rarr;</a></p>
        </li>
      <% end %>
      </ul>
    <% end %>

    <header>
      <h2>Top results</h2>
    </header>

    <ol class="group">
      <% top_results.each do |result| %>
        <li class="<%= result.presentation_format %>">
          <a href="<%= result.link %>" title="View <%= result.title %>"><%= result.title %></a>
          <small><%= result.link %></small>
          <p><%=h result.description %></p>
          <% unless (result.additional_links.nil? || result.additional_links.empty?) %>
            <ul class="search-parts">
              <% result.additional_links.each do |link| %>
                <li><a href="<%= link.link %>"><%=h link.title %></a></li>
              <% end %>
            </ul>
          <% end %>
        </li>
      <% end %>
    </ol>
  </div>

  <% if more_results %>
    <div class="results more group">
      <header>
        <h3>More results</h3>
      </header>

      <ol class="group">
        <% more_results.each do |result| %>
          <li class="<%= result.presentation_format %>">
            <a href="<%= result.link %>" title="View <%= result.title %>"><%= result.title %></a>
            <small><%= result.link %></small>
            <p><%= h result.description %></p>
          </li>
        <% end %>
      </ol>
    </div>
  <% end %>
</section>

{'fraction_non_alphanumeric': 0.2153267512929008, 'fraction_numerical': 0.004231311706629055, 'mean_word_length': 2.2283763277693476, 'pattern_counts': {'":': 0, '<': 206, '<?xml version=': 0, '>': 206, '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': '3551877', 'n_tokens_mistral': 1493, 'n_tokens_neox': 1328, 'n_words': 305}