<commit_before><%= javascript_include_tag 'calendar_date_select/calendar_date_select' %>
<%= stylesheet_link_tag 'calendar_date_select/default' %>
<%= javascript_include_tag "sharing.js" -%>

<%= f.error_messages %>


<h2>Sample Details</h2>

<div style="width: 95%;">

  <p>
    <%= f.label "Sample name:" -%><span class="required">*</span><br/>
    <%= f.text_field :title, :style => "width: 350px;" -%>
  </p>

  <p>
    <%= f.label "Choose a specimen" %> <span class="required">*</span><br/>
    <%= collection_select(:sample, :specimen_id, Specimen.all.select{|s|s.can_view?} , :id, :title,{:include_blank =>"Please Select..."},{:style=>"width:90%"}) %>
  </p>

  <p>
    <%= f.label "Explantation time" -%><br/>
    <%= f.text_field :explantation, :style => "width: 350px;" -%>
  </p>

  <p>
    <%= f.label :lab_internal_number -%><span class="required">*</span><br/>
    <%= f.text_field :lab_internal_number, :style => "width: 350px;" -%>
  </p>
  <p>
    <%= f.label :donation_date -%><span class="required">*</span><br/>
    <%= f.calendar_date_select :donation_date, :time => "mixed" -%>
  </p>

  <p>
    <%= f.label :description -%><br/>
    <%= f.text_area :comments, :style => "width: 85%;", :rows => 5 -%>
  </p>

  <%= render :partial => 'projects/project_selector', :locals => {:resource => @sample}%>

  <br style="clear:both"/>
  <p><commit_msg>remove * for projects in sample form<commit_after><%= javascript_include_tag 'calendar_date_select/calendar_date_select' %>
<%= stylesheet_link_tag 'calendar_date_select/default' %>
<%= javascript_include_tag "sharing.js" -%>

<%= f.error_messages %>


<h2>Sample Details</h2>

<div style="width: 95%;">

  <p>
    <%= f.label "Sample name:" -%><span class="required">*</span><br/>
    <%= f.text_field :title, :style => "width: 350px;" -%>
  </p>

  <p>
    <%= f.label "Choose a specimen" %> <span class="required">*</span><br/>
    <%= collection_select(:sample, :specimen_id, Specimen.all.select{|s|s.can_view?} , :id, :title,{:include_blank =>"Please Select..."},{:style=>"width:90%"}) %>
  </p>

  <p>
    <%= f.label "Explantation time" -%><br/>
    <%= f.text_field :explantation, :style => "width: 350px;" -%>
  </p>

  <p>
    <%= f.label :lab_internal_number -%><span class="required">*</span><br/>
    <%= f.text_field :lab_internal_number, :style => "width: 350px;" -%>
  </p>
  <p>
    <%= f.label :donation_date -%><span class="required">*</span><br/>
    <%= f.calendar_date_select :donation_date, :time => "mixed" -%>
  </p>

  <p>
    <%= f.label :description -%><br/>
    <%= f.text_area :comments, :style => "width: 85%;", :rows => 5 -%>
  </p>

  <%= render :partial => 'projects/project_selector', :locals => {:resource => @sample,:allow_nil=>true}%>

  <br style="clear:both"/>
  <p>
{'fraction_non_alphanumeric': 0.24639249639249639, 'fraction_numerical': 0.012987012987012988, 'mean_word_length': 4.088073394495413, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 122, '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': '2208489', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1054, 'n_words': 190}