<commit_before><% if @search_results.length == 0 %>
  <h3>No search results found</h3>
<% end %>

<% @search_results.each do |key, value| %>
  <div class="cartridge">
    <h3><%= key %></h3>
    <hr />
      <% value.each_with_index do |val, index| %>
        <% if (index + 1) % 2 != 0 %>
          <div class="row">
        <% end %>
          <div class="col-md-6">
            <% val[:tags].each do |tag| %>
            <div class="label label-default"><%= tag %></div>
            <% end %>
            <% pngs = ["Create A Critter", "Ashlyns Alphabet", "Best Of Pixar", "Cricut Essentials"] %>
            <% if pngs.include? key %>
            
              <%= image_tag(key.gsub(" ", "") + '_page' + val[:page].to_s + '.PNG', class: "page-img") %>
            <% else %>
              <%= image_tag(key.gsub(" ", "") + '_page' + val[:page].to_s + '.JPG', class: "page-img") %>
            <% end %>
          </div>
        <% if (index + 1) % 2 == 0 %>
          </div>
        <% end %>
      <% end %>
    </div>
<% end %><commit_msg>added title to search page so that you can see page number on hover<commit_after><% if @search_results.length == 0 %>
  <h3>No search results found</h3>
<% end %>

<% @search_results.each do |key, value| %>
  <div class="cartridge">
    <h3><%= key %></h3>
    <hr />
      <% value.each_with_index do |val, index| %>
        <% if (index + 1) % 2 != 0 %>
          <div class="row">
        <% end %>
          <div class="col-md-6">
            <% val[:tags].each do |tag| %>
            <div class="label label-default"><%= tag %></div>
            <% end %>
            <% pngs = ["Create A Critter", "Ashlyns Alphabet", "Best Of Pixar", "Cricut Essentials"] %>
            <% if pngs.include? key %>
            
              <%= image_tag(key.gsub(" ", "") + '_page' + val[:page].to_s + '.PNG', 
                            class: "page-img", title: val[:page].to_s) %>
            <% else %>
              <%= image_tag(key.gsub(" ", "") + '_page' + val[:page].to_s + '.JPG', 
                            class: "page-img", title: val[:page].to_s) %>
            <% end %>
          </div>
        <% if (index + 1) % 2 == 0 %>
          </div>
        <% end %>
      <% end %>
    </div>
<% end %>
{'fraction_non_alphanumeric': 0.21472937000887313, 'fraction_numerical': 0.01064773735581189, 'mean_word_length': 1.6718009478672986, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '4104968', 'n_tokens_mistral': 839, 'n_tokens_neox': 739, 'n_words': 179}