<commit_before><% truncate_length_for_boxes = 22 -%>

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

<ul class="sectionIcons">
  <%= render :partial => "subscriptions/subscribe", :locals => { :object => @sample } %>
  <% if @sample.can_manage? %>
      <li><%= image_tag_for_key('manage', edit_sample_path(@sample), "Manage Sample", nil, 'Manage Sample') %></li>
   <% elsif @sample.can_edit? %>
      <li><%= image_tag_for_key('edit', edit_sample_path(@sample), "Edit Sample", nil, 'Edit Sample') %></li>
  <% end %>
  <%= delete_icon(@sample, current_user)-%>
  <% if logged_in? && current_user.person.member? && Seek::Config.is_virtualliver %>
      <li><%= image_tag_for_key('new', new_object_based_on_existing_one_path(:controller_name=>"samples",:id=>@sample.id), nil, nil, 'New sample based on this one') %></li>
  <% end %>
</ul>

<div class="show_basic">

  <div class="main_content_left_box">

    <div class="box_about_actor">
      <p>
        <label>Sample name:</label>
        <%= text_or_not_specified(@sample.title) -%>
      </p>
      <p>
        <label>Seek ID:</label>
        <%= text_or_not_specified(@sample.id) %>
      </p>
      <p>
        <label>Lab internal identifier:</label>
        <%= text_or_not_specified(@sample.lab_internal_number) %>
      </p>
      <p>
        <label>Date at sampling:</label>
        <%= text_or_not_specified @sample.sampling_date.nil? ? nil : date_as_string(@sample.sampling_date) -%>
      </p>
      <p>
        <label>Age at sampling:</label>
        <%= text_or_not_specified @sample.age_at_sampling_info -%>
      </p>
      <p>
        <label>Provider name:</label>
        <%= text_or_not_specified @sample.provider_name -%>
      </p>
      <p>
        <label>Provider's sample identifier:</label>
        <%= text_or_not_specified @sample.provider_id -%>
      </p>
      <p>
        <label>Organism part:</label>
        <%= text_or_not_specified @sample.organism_part -%>
      </p>
      <p>
          <label>Comment:</label>
          <%= text_or_not_specified @sample.comments -%>
      </p>
      <%= render :partial => "assets/special_auth_code_display", :locals => {:resource => @sample} %>
    </div>

  </div>

  <%= render :partial => "assets/resource_main_content_right", :locals => {:resource => @sample, :title => 'Owner'} %>

  <div style="clear:both">
    <br/>
    <h2><%= Seek::Config.sample_parent_term.capitalize -%> details</h2>

    <div class="main_content_left_box">
      <%= render :partial => "sample_specimen_details", :object => @sample.specimen %>
    </div>
    <br/>
    <%= render :partial => "assets/resource_main_content_right", :locals => {:resource => @sample.specimen, :title => 'Owner and creators'} %>
  </div>

  <div style="clear:both">
    <br/>
    <%= render :partial => "general/items_related_to", :object => @sample %>
    <br/>
  </div>

</div><commit_msg>show specimen as hidden item if can not view<commit_after><% truncate_length_for_boxes = 22 -%>

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

<ul class="sectionIcons">
  <%= render :partial => "subscriptions/subscribe", :locals => { :object => @sample } %>
  <% if @sample.can_manage? %>
      <li><%= image_tag_for_key('manage', edit_sample_path(@sample), "Manage Sample", nil, 'Manage Sample') %></li>
   <% elsif @sample.can_edit? %>
      <li><%= image_tag_for_key('edit', edit_sample_path(@sample), "Edit Sample", nil, 'Edit Sample') %></li>
  <% end %>
  <%= delete_icon(@sample, current_user)-%>
  <% if logged_in? && current_user.person.member? && Seek::Config.is_virtualliver %>
      <li><%= image_tag_for_key('new', new_object_based_on_existing_one_path(:controller_name=>"samples",:id=>@sample.id), nil, nil, 'New sample based on this one') %></li>
  <% end %>
</ul>

<div class="show_basic">

  <div class="main_content_left_box">

    <div class="box_about_actor">
      <p>
        <label>Sample name:</label>
        <%= text_or_not_specified(@sample.title) -%>
      </p>
      <p>
        <label>Seek ID:</label>
        <%= text_or_not_specified(@sample.id) %>
      </p>
      <p>
        <label>Lab internal identifier:</label>
        <%= text_or_not_specified(@sample.lab_internal_number) %>
      </p>
      <p>
        <label>Date at sampling:</label>
        <%= text_or_not_specified @sample.sampling_date.nil? ? nil : date_as_string(@sample.sampling_date) -%>
      </p>
      <p>
        <label>Age at sampling:</label>
        <%= text_or_not_specified @sample.age_at_sampling_info -%>
      </p>
      <p>
        <label>Provider name:</label>
        <%= text_or_not_specified @sample.provider_name -%>
      </p>
      <p>
        <label>Provider's sample identifier:</label>
        <%= text_or_not_specified @sample.provider_id -%>
      </p>
      <p>
        <label>Organism part:</label>
        <%= text_or_not_specified @sample.organism_part -%>
      </p>
      <p>
          <label>Comment:</label>
          <%= text_or_not_specified @sample.comments -%>
      </p>
      <%= render :partial => "assets/special_auth_code_display", :locals => {:resource => @sample} %>
    </div>

  </div>

  <%= render :partial => "assets/resource_main_content_right", :locals => {:resource => @sample, :title => 'Owner'} %>

  <div style="clear:both">
    <br/>
    <h2><%= Seek::Config.sample_parent_term.capitalize -%> details</h2>

    <div class="main_content_left_box">
      <% if @sample.specimen.can_view? %>
        <%= render :partial => "sample_specimen_details", :object => @sample.specimen %>
      <% else %>
        <%= render :partial => "assets/hidden_items", :local => {:hidden_items => [@sample.specimen]} %>
      <% end %>
    </div>
    <br/>
    <%= render :partial => "assets/resource_main_content_right", :locals => {:resource => @sample.specimen, :title => 'Owner and creators'} %>
  </div>

  <div style="clear:both">
    <br/>
    <%= render :partial => "general/items_related_to", :object => @sample %>
    <br/>
  </div>

</div>
{'fraction_non_alphanumeric': 0.19205848147532814, 'fraction_numerical': 0.0013291244392756273, 'mean_word_length': 3.215686274509804, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 234, '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': '4530091', 'n_tokens_mistral': 2208, 'n_tokens_neox': 2056, 'n_words': 363}