<commit_before><div>
  <%= render partial: "instances/workspace/widgets/accepted_placement_indicator",
             locals: {tree_version_element: tve}
  %>
  <dl class="dl-horizontal">
    <dt>Path</dt>
    <dd><%= tve.name_path %></dd>
    <dt><%= tve.comment_key %></dt>
    <dd>
      <%= render partial: 'instances/workspace/diff_field',
                 locals: {
                     v1: tve.comment.html_safe,
                     v2: @tree_version_element&.comment&.html_safe,
                     attrib: @tree_version_element&.tree_version&.draft_name
                 }
      %>
    </dd>

    <dt><%= tve.distribution_key %></dt>
    <dd>
      <%= render partial: 'instances/workspace/diff_field',
                 locals: {
                     v1: tve.distribution,
                     v2: @tree_version_element&.distribution,
                     attrib: @tree_version_element&.tree_version&.draft_name
                 }
      %>
    </dd>

    <dt>Under</dt>
    <dd>
      <% if tve.parent.tree_element %>
        <%= link_to("<i class=\"fa fa-sitemap\"></i> #{search_icon_on_tab}
                    #{tve.parent.tree_element.instance.name.try('full_name')}"
                        .html_safe,
                    search_path(query_target: 'name',
                                query_string: "id: #{tve.parent.tree_element.name_id} show-instances:"),
                    title: 'Search for the parent with its instances',
                    class: 'name') %>
      <% end %>
    </dd>

    <dt>Element link</dt>
    <dd>
      <a href="<%= tve.full_element_link %>" title="Tree element link id">
        <i class="fa fa-code-fork"></i> ... <%= tve.element_link %>
      </a>
    </dd><commit_msg>Fix tree tab if parent is not present.<commit_after><div>
  <%= render partial: "instances/workspace/widgets/accepted_placement_indicator",
             locals: {tree_version_element: tve}
  %>
  <dl class="dl-horizontal">
    <dt>Path</dt>
    <dd><%= tve.name_path %></dd>
    <dt><%= tve.comment_key %></dt>
    <dd>
      <%= render partial: 'instances/workspace/diff_field',
                 locals: {
                     v1: tve.comment.html_safe,
                     v2: @tree_version_element&.comment&.html_safe,
                     attrib: @tree_version_element&.tree_version&.draft_name
                 }
      %>
    </dd>

    <dt><%= tve.distribution_key %></dt>
    <dd>
      <%= render partial: 'instances/workspace/diff_field',
                 locals: {
                     v1: tve.distribution,
                     v2: @tree_version_element&.distribution,
                     attrib: @tree_version_element&.tree_version&.draft_name
                 }
      %>
    </dd>

    <dt>Under</dt>
    <dd>
      <% if tve.parent.present? && tve.parent.tree_element %>
        <%= link_to("<i class=\"fa fa-sitemap\"></i> #{search_icon_on_tab}
                    #{tve.parent.tree_element.instance.name.try('full_name')}"
                        .html_safe,
                    search_path(query_target: 'name',
                                query_string: "id: #{tve.parent.tree_element.name_id} show-instances:"),
                    title: 'Search for the parent with its instances',
                    class: 'name') %>
      <% end %>
    </dd>

    <dt>Element link</dt>
    <dd>
      <a href="<%= tve.full_element_link %>" title="Tree element link id">
        <i class="fa fa-code-fork"></i> ... <%= tve.element_link %>
      </a>
    </dd>
{'fraction_non_alphanumeric': 0.15234822451317298, 'fraction_numerical': 0.002290950744558992, 'mean_word_length': 1.726775956284153, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '4884913', 'n_tokens_mistral': 1157, 'n_tokens_neox': 1094, 'n_words': 181}