<commit_before><%# 
  # Prepare a title in an H4, with formats in parens in a <small> (for
  # bootstrap), linked, etc.
  #
  # Pass in local `item` with BentoSearch::ResultItem (can use :as arg to
  # Rails render). 
  #
  # Optionally pass in a local "index" with result set index to display
  # in front of title. 1. 2. etc. 
  # 
  # If index is passed in, we'll make an 'id' attribute that can be used
  # for an attribute based on anchor. Using either a passed in 'id_prefix'
  # or, the engine_id if present. If neither present no go (need a prefix for
  # uniqueness when more than one bento_results on a page). 
  #  
  # %>
  <h4 class="bento_item_title">
    <% if local_assigns[:index] %>
      <% id_attr = item.html_id(local_assigns[:id_prefix], index) %>
      <%= content_tag("span", :class => "bento_index", :id => (id_attr if id_attr)) do %>
        <%= index %>.
      <% end %>
    <% end %>
  
    <%= link_to_unless(item.link.blank?, item.complete_title, item.link) %>
    
    <% if item.display_format.present? || item.display_language.present? %>
    
      <small class="bento_item_about">
        <%# sorry, no whitespace so parens are flush %>
        (<%- if item.display_format.present? -%><span class="bento_format"><%= item.display_format -%></span><%- end -%><%- if item.display_language.present? -%><span class="bento_language"> in <%= item.display_language -%></span><%- end -%>)
      </small>
      
    <% end %>  
  </h4>
  
<commit_msg>trailing whitespace<commit_after><%#
  # Prepare a title in an H4, with formats in parens in a <small> (for
  # bootstrap), linked, etc.
  #
  # Pass in local `item` with BentoSearch::ResultItem (can use :as arg to
  # Rails render).
  #
  # Optionally pass in a local "index" with result set index to display
  # in front of title. 1. 2. etc.
  #
  # If index is passed in, we'll make an 'id' attribute that can be used
  # for an attribute based on anchor. Using either a passed in 'id_prefix'
  # or, the engine_id if present. If neither present no go (need a prefix for
  # uniqueness when more than one bento_results on a page).
  #
  # %>
  <h4 class="bento_item_title">
    <% if local_assigns[:index] %>
      <% id_attr = item.html_id(local_assigns[:id_prefix], index) %>
      <%= content_tag("span", :class => "bento_index", :id => (id_attr if id_attr)) do %>
        <%= index %>.
      <% end %>
    <% end %>

    <%= link_to_unless(item.link.blank?, item.complete_title, item.link) %>

    <% if item.display_format.present? || item.display_language.present? %>

      <small class="bento_item_about">
        <%# sorry, no whitespace so parens are flush %>
        (<%- if item.display_format.present? -%><span class="bento_format"><%= item.display_format -%></span><%- end -%><%- if item.display_language.present? -%><span class="bento_language"> in <%= item.display_language -%></span><%- end -%>)
      </small>

    <% end %>
  </h4>


{'fraction_non_alphanumeric': 0.1535312180143296, 'fraction_numerical': 0.0034118048447628795, 'mean_word_length': 3.0665742024965326, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 59, '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': '5515552', 'n_tokens_mistral': 1040, 'n_tokens_neox': 959, 'n_words': 301}