<commit_before><dt>Galleries</dt>
<dd>
  <ul>
    <% Gallery.without_parent.each do |gallery| %>
      <li>
        <%= link_gallery_with_number(gallery) %> 
        <% unless gallery.children.empty? %>
          <ul>
            <% gallery.children.each do |gallery_child| %>
              <li><%= link_gallery_with_number(gallery_child) %></li>
            <% end %>
          </ul>
        <% end %>
      </li>
    <% end %>
  </ul>
</dd><commit_msg>view first subgallery only if you see the ancestor gallery or subgallery. Not for several level into sub gallery<commit_after><dt>Galleries</dt>
<dd>
  <ul>
    <% Gallery.without_parent.each do |gallery| %>
      <li>
        <%= link_gallery_with_number(gallery) %> 
        <% unless @gallery.nil? %>
          <% if @gallery == gallery || @gallery.ancestors.include?(gallery) %>
            <ul>
              <% gallery.children.each do |gallery_child| %>
                <li><%= link_gallery_with_number(gallery_child) %></li>
              <% end %>
            </ul>
          <% end %>
        <% end %>
      </li>
    <% end %>
  </ul>
</dd>
{'fraction_non_alphanumeric': 0.16636528028933092, 'fraction_numerical': 0.0, 'mean_word_length': 1.9598930481283423, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '6122944', 'n_tokens_mistral': 396, 'n_tokens_neox': 338, 'n_words': 70}