<commit_before><% if commodity.has_children? %>
  <li class="has_children <%= commodity_level(commodity)%><%= leaf_position(commodity) %>">
    <span class="description open without_right_margin" id="commodity-<%= commodity.short_code %>"><%= commodity.to_s.html_safe %></span>

    <ul><%= render commodity.children %></ul>
  </li>
<% else %>
  <li class="<%= commodity_level(commodity)%><%= leaf_position(commodity) %>">
    <%= link_to commodity_path(commodity, request.query_parameters.symbolize_keys), title: "View complete information for this commodity" do %>
      <div class="description open" id="commodity-<%= commodity.short_code %>"><%= commodity.to_s.html_safe %></div>

      <div class="identifier" aria-describedby="commodity-<%= commodity.short_code %>">
        <%= format_full_code(commodity) %>
      </div>
    <% end %>
  </li>
<% end %><commit_msg>[commodity codes] Display codes for headings (restore)<commit_after><% if commodity.has_children? %>
  <li class="has_children <%= commodity_level(commodity)%><%= leaf_position(commodity) %>">
    <span class="description open without_right_margin" id="commodity-<%= commodity.short_code %>"><%= commodity.to_s.html_safe %></span>

    <div class='sub_heading_commodity_code_block pull-right'>
      <%= format_commodity_code_based_on_level(commodity) %>
    </div>

    <ul><%= render commodity.children %></ul>
  </li>
<% else %>
  <li class="<%= commodity_level(commodity)%><%= leaf_position(commodity) %>">
    <%= link_to commodity_path(commodity, request.query_parameters.symbolize_keys), title: "View complete information for this commodity" do %>
      <div class="description open" id="commodity-<%= commodity.short_code %>"><%= commodity.to_s.html_safe %></div>

      <div class="identifier" aria-describedby="commodity-<%= commodity.short_code %>">
        <%= format_commodity_code_based_on_level(commodity) %>
      </div>
    <% end %>
  </li>
<% end %>
{'fraction_non_alphanumeric': 0.18144329896907216, 'fraction_numerical': 0.0, 'mean_word_length': 5.201277955271565, 'pattern_counts': {'":': 0, '<': 62, '<?xml version=': 0, '>': 62, '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': '514440', 'n_tokens_mistral': 713, 'n_tokens_neox': 626, 'n_words': 115}