<commit_before><dt class="heading-code" title="Heading code"><%= heading.display_short_code %></dt>
<dd>
  <%= link_to heading, heading_path(heading) %>
  <% heading.commodities.each do |commodity| %>
    <div><%= commodity %></div>
  <% end %>
</dd>
<commit_msg>Poor man's text excerpt functionality.<commit_after><dt class="heading-code" title="Heading code"><%= heading.display_short_code %></dt>
<dd>
  <%= link_to heading, heading_path(heading) %>
  <% heading.commodities.each do |commodity| %>
    <div><%= excerpt(commodity.description_plain, search_query, radius: 30) %></div>
  <% end %>
</dd>

{'fraction_non_alphanumeric': 0.1986754966887417, 'fraction_numerical': 0.0033112582781456954, 'mean_word_length': 5.576086956521739, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '4635129', 'n_tokens_mistral': 230, 'n_tokens_neox': 204, 'n_words': 43}