<commit_before><div class="container-fluid">
  <div class="row-fluid">
    <div class="pull-left">
      <!--<%= render_partial(:search_filter) %>-->
    </div>
    <div class="span12" style="margin-left:0;"><!-- When we re-add filters, change this back to a span9 -->
      <ul class="nav nav-pills pull-right">
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">Sort By<b class="caret"></b></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" id="sort_by">
            <% ["Relevancy","Price","Rating","Distance"].each do |type| %>
            <li><a href="#" id="<%= type %>" value="sort"><%= type %></a></li>
            <% end %>
          </ul>
        </li>
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">Results Per Page<b class="caret"></b></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" id="per_page">
            <% [12,24,36,48].each do |pages| %>
            <li><a href="#" id="<%= pages %>" value="per_page"><%= pages %></a></li>
            <% end %>
          </ul>
        </li>
      </ul>

      <div class="span12" style="margin-left:0;">
        <ul class="thumbnails">
        <% @search_results["results"].to_enum.with_index(0).each do |result, i| %>
          <li>
            <%= render_partial(:show_item, {:locals => {:id => result["_id"], :store_ids => result["children_results"].map{|c| c["store_id"]},
                                            :name => result["name"], :img_url => result["img_url"],
                                            :rating =>(result["distinct"].nil? ? result["children_results"][0]["rating"] : nil),
                                            :min_price => result["price_range"]["min"],
                                            :max_price => result["price_range"]["max"]}}) %>
          </li>
        <% end %>
        </ul>
      </div>

      <div class="span12 pagination pagination-centered" style="margin-left: 0;">
        <ul>
          <!-- This math corresponds to pages ranging from -5 to +4, handling edge cases -->
          <% cur_page = @search_results["page"].to_i %><commit_msg>Show info alert when searching with no results.<commit_after><div class="container-fluid">
  <div class="row-fluid">
    <div class="pull-left">
      <!--<%= render_partial(:search_filter) %>-->
    </div>
    <div class="span12" style="margin-left:0;"><!-- When we re-add filters, change this back to a span9 -->
      <ul class="nav nav-pills pull-right">
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">Sort By<b class="caret"></b></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" id="sort_by">
            <% ["Relevancy","Price","Rating","Distance"].each do |type| %>
            <li><a href="#" id="<%= type %>" value="sort"><%= type %></a></li>
            <% end %>
          </ul>
        </li>
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">Results Per Page<b class="caret"></b></a>
          <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" id="per_page">
            <% [12,24,36,48].each do |pages| %>
            <li><a href="#" id="<%= pages %>" value="per_page"><%= pages %></a></li>
            <% end %>
          </ul>
        </li>
      </ul>

      <div class="span12" style="margin-left:0;">
        <% if @search_results["results"].nil? || @search_results["results"].empty? %>
          <div class="alert alert-info">Sorry, we couldn't find what you were looking for. Please try a different search term.</div>
        <% else %>
          <ul class="thumbnails">
  
          <% @search_results["results"].to_enum.with_index(0).each do |result, i| %>
            <li>
              <%= render_partial(:show_item, {:locals => {:id => result["_id"], :store_ids => result["children_results"].map{|c| c["store_id"]},
                                              :name => result["name"], :img_url => result["img_url"],
                                              :rating =>(result["distinct"].nil? ? result["children_results"][0]["rating"] : nil),
                                              :min_price => result["price_range"]["min"],
                                              :max_price => result["price_range"]["max"]}}) %>
            </li>
          <% end %>
          </ul>
        <% end %>
      </div>

      <div class="span12 pagination pagination-centered" style="margin-left: 0;">
        <ul>
          <!-- This math corresponds to pages ranging from -5 to +4, handling edge cases -->
          <% cur_page = @search_results["page"].to_i %>
{'fraction_non_alphanumeric': 0.20287440116642366, 'fraction_numerical': 0.009164757342220371, 'mean_word_length': 2.161290322580645, 'pattern_counts': {'":': 0, '<': 118, '<?xml version=': 0, '>': 134, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1270488', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1379, 'n_words': 301}