<commit_before><%= render :partial => "general/item_title", :locals => {:item => @sample_type} %>

<% if @sample_type.template %>

    <h2>Template</h2>

    <%= @sample_type.template.original_filename %> -    <%= link_to 'Download',download_sample_type_content_blob_path(@sample_type,@sample_type.template)  %>

<% end %>

<h2>Attributes</h2>

<ul>
<% @sample_type.sample_attributes.each do |attribute| %>
<li>
  <%= attribute.title %> ( <%= attribute.sample_attribute_type.title %> ) <% if attribute.unit %> ( <%= attribute.unit.symbol   %> ) <% end %>
</li>


<% end %>
</ul><commit_msg>add the related items partial to sample type show page<commit_after><%= render :partial => "general/item_title", :locals => {:item => @sample_type} %>

<% if @sample_type.template %>

    <h2>Template</h2>

    <%= @sample_type.template.original_filename %> -    <%= link_to 'Download',download_sample_type_content_blob_path(@sample_type,@sample_type.template)  %>

<% end %>

<h2>Attributes</h2>

<ul>
<% @sample_type.sample_attributes.each do |attribute| %>
<li>
  <%= attribute.title %> ( <%= attribute.sample_attribute_type.title %> ) <% if attribute.unit %> ( <%= attribute.unit.symbol   %> ) <% end %>
</li>


<% end %>
</ul>

<%= render :partial=>"general/items_related_to",:object => @sample_type %>
{'fraction_non_alphanumeric': 0.20200462606013878, 'fraction_numerical': 0.006168080185042405, 'mean_word_length': 4.9, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 52, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1063968', 'n_tokens_mistral': 496, 'n_tokens_neox': 441, 'n_words': 69}