<commit_before><%
@assay_word=@assay.is_modelling? ? "Analysis" : "Assay" %>
<ul class="sectionIcons">
    <% if @assay.can_manage? -%>
      <li><%= image_tag_for_key('manage', edit_assay_path, nil, nil, "Manage #{@assay_word}") -%></li>
    <% elsif @assay.can_edit?-%>
      <li> <%= image_tag_for_key('edit', edit_assay_path, "Edit #{@assay_word} Details", nil, "Edit #{@assay_word} Details") -%></li>
    <% end -%>
    <%= delete_ISA_icon(@assay,current_user) %>
</ul>
<%= render :partial => "layouts/item_title",:locals=>{:item=>@assay} %>
<div class="show_basic">
   <div class="main_content_left_box_narrower">
      <%= render :partial => "layouts/usage_info", :locals => { :resource => @assay } -%>
      <% if @assay.study.nil? -%>
      <div class="warning">
          <%= image("warning") %><b style="color:red">WARNING</b>
          <br/>
          <br/>
          An Assay may be edited by anybody, regardless of project membership, until it has been associated with a Study
      </div>
      <% end -%>
      <p class="id">
          <label>
              ID: 
          </label>
          <%= @assay.id -%>
      </p>
      <p class="id">
          <label>
              Class: 
          </label>
          <%= @assay.assay_class.title -%>
      </p>
      <p class="id">
          <label>
              Owner: 
          </label>
          <%= link_to h(@assay.owner.name),@assay.owner -%>
      </p>
      <p>
          <b>Description:</b>
          <div id="description" class="box_standout">
              <%= text_or_not_specified(@assay.description, :description=>true,:auto_link=>true) %>
          </div>
      </p>
      <p id="project">
          <b>Project: </b>
          <%= projects_link_list [@assay.project] %>
      </p>
      <p id="investigation">
          <b>Investigation: </b>
          <%= investigation_link(@assay.investigation) %>
      </p>
      <p id="study">
          <b>Study: </b>
          <%= studies_link_list [@assay.study] %>
      </p>
      <p id="assay_type">
          <b><%= @assay_word -%> type: </b>
          <%= link_to h(@assay.assay_type.title.capitalize), @assay.assay_type -%>
      </p>
      <% unless @assay.is_modelling? -%>
      <p id="technology_type">
          <b>Technology type: </b>
          <%= link_to h(@assay.technology_type.title.capitalize), @assay.technology_type -%>
      </p>
      <% end -%>
      <p id="organism">
          <b>Organisms: </b>
          <%= assay_organisms_list @assay.assay_organisms %>
      </p>
      <style type="text/css">
          div.data_model_relationship {
              border: 1px dotted black;
              background-color: #EEEEFF;
              padding: 5px
          }
          
          div.data_model_relationship ul li {
              list-style: none;
              list-style-position: inside;
              margin-left: 5px;
          }<commit_msg>show specimen and sample for assay<commit_after><%
@assay_word=@assay.is_modelling? ? "Analysis" : "Assay" %>
<ul class="sectionIcons">
    <% if @assay.can_manage? -%>
      <li><%= image_tag_for_key('manage', edit_assay_path, nil, nil, "Manage #{@assay_word}") -%></li>
    <% elsif @assay.can_edit?-%>
      <li> <%= image_tag_for_key('edit', edit_assay_path, "Edit #{@assay_word} Details", nil, "Edit #{@assay_word} Details") -%></li>
    <% end -%>
    <%= delete_ISA_icon(@assay,current_user) %>
</ul>
<%= render :partial => "layouts/item_title",:locals=>{:item=>@assay} %>
<div class="show_basic">
   <div class="main_content_left_box_narrower">
      <%= render :partial => "layouts/usage_info", :locals => { :resource => @assay } -%>
      <% if @assay.study.nil? -%>
      <div class="warning">
          <%= image("warning") %><b style="color:red">WARNING</b>
          <br/>
          <br/>
          An Assay may be edited by anybody, regardless of project membership, until it has been associated with a Study
      </div>
      <% end -%>
      <p class="id">
          <label>
              ID: 
          </label>
          <%= @assay.id -%>
      </p>
      <p class="id">
          <label>
              Class: 
          </label>
          <%= @assay.assay_class.title -%>
      </p>
      <p class="id">
          <label>
              Owner: 
          </label>
          <%= link_to h(@assay.owner.name),@assay.owner -%>
      </p>
      <p>
          <b>Description:</b>
          <div id="description" class="box_standout">
              <%= text_or_not_specified(@assay.description, :description=>true,:auto_link=>true) %>
          </div>
      </p>
      <p id="project">
          <b>Project: </b>
          <%= projects_link_list [@assay.project] %>
      </p>
      <p id="investigation">
          <b>Investigation: </b>
          <%= investigation_link(@assay.investigation) %>
      </p>
      <p id="study">
          <b>Study: </b>
          <%= studies_link_list [@assay.study] %>
      </p>
      <p id="assay_type">
          <b><%= @assay_word -%> type: </b>
          <%= link_to h(@assay.assay_type.title.capitalize), @assay.assay_type -%>
      </p>
      <% unless @assay.is_modelling? -%>
      <p id="technology_type">
          <b>Technology type: </b>
          <%= link_to h(@assay.technology_type.title.capitalize), @assay.technology_type -%>
      </p>
      <% end -%>
      <p id="organism">
          <b>Organisms: </b>
          <%= assay_organisms_list @assay.assay_organisms %>
      </p>

     <p id="specimen">
       <b>Specimen: </b>
       <%= link_to h(@assay.sample.specimen.title.capitalize), @assay.sample.specimen -%>
     </p>

     <p id="Sample">
       <b>Sample: </b>
       <%= link_to h(@assay.sample.title.capitalize), @assay.sample -%>
     </p>
      <style type="text/css">
          div.data_model_relationship {
              border: 1px dotted black;
              background-color: #EEEEFF;
              padding: 5px
          }
          
          div.data_model_relationship ul li {
              list-style: none;
              list-style-position: inside;
              margin-left: 5px;
          }
{'fraction_non_alphanumeric': 0.18166858647358894, 'fraction_numerical': 0.0009873292743129835, 'mean_word_length': 1.9591041869522883, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 193, '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': '6413206', 'n_tokens_mistral': 2210, 'n_tokens_neox': 2000, 'n_words': 371}