<commit_before><% @title = "search" %>
<% if @gems %>
  <% @subtitle = "for <em>#{params[:query]}</em>" %>
  <% if @exact_match %>
    <p>Exact match</p>
    <div class="gems border">
      <ol>
        <%= render @exact_match %>
      </ol>
    </div>
  <% end %>

  <p class="entries">
    <%= page_entries_info(@gems, :entry_name => 'gem').html_safe %>
  </p>
  <% if @gems.present? %>
    <div class="gems border">
      <ol>
        <%= render @gems %>
      </ol>
    </div>
    <%= will_paginate @gems %>
  <% end %>
<% end %>
<commit_msg>Escape subtitle in search to close up an XSS bug<commit_after><% @title = "search" %>
<% if @gems %>
  <% @subtitle = "for <em>#{h(params[:query])}</em>" %>
  <% if @exact_match %>
    <p>Exact match</p>
    <div class="gems border">
      <ol>
        <%= render @exact_match %>
      </ol>
    </div>
  <% end %>

  <p class="entries">
    <%= page_entries_info(@gems, :entry_name => 'gem').html_safe %>
  </p>
  <% if @gems.present? %>
    <div class="gems border">
      <ol>
        <%= render @gems %>
      </ol>
    </div>
    <%= will_paginate @gems %>
  <% end %>
<% end %>

{'fraction_non_alphanumeric': 0.2336283185840708, 'fraction_numerical': 0.0, 'mean_word_length': 2.448170731707317, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 57, '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': '949558', 'n_tokens_mistral': 485, 'n_tokens_neox': 421, 'n_words': 91}