<commit_before><div class="entry">
  <h2><%= h @entry.title %></h2>
  <hr />

  <%= markup(@entry.body_without_fragment_links) %>
  <hr />

  <%= render partial: 'fragments', locals: { entry: @entry } %>

  <% if @entry.source.present? -%>
    <p><strong>Source: </strong><%= @entry.source %></p>
  <% end -%>
</div><commit_msg>Don't render the fragments partial if there are no line or body fragments for the entry<commit_after><div class="entry">
  <h2><%= h @entry.title %></h2>
  <hr />

  <%= markup(@entry.body_without_fragment_links) %>
  <hr />

  <% if @entry.body_fragments.any? || @entry.line_fragments.any? %>
    <%= render partial: 'fragments', locals: { entry: @entry } %>
  <% end %>

  <% if @entry.source.present? -%>
    <p><strong>Source: </strong><%= @entry.source %></p>
  <% end -%>
</div>
{'fraction_non_alphanumeric': 0.23029556650246305, 'fraction_numerical': 0.0049261083743842365, 'mean_word_length': 3.754385964912281, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '2466362', 'n_tokens_mistral': 322, 'n_tokens_neox': 292, 'n_words': 64}