<commit_before><%= link_to 'Add Comment', :action => 'add_comment', :id => @observation %> |
<%= link_to 'Edit Observation', :action => 'edit_observation', :id => @observation %>

<h1>Observation: <%= h @observation.unique_name %></h1>

<table cellpadding="10">
<tr>
    <td width="75%" valign="top">
        <p>When: <span class="Data"><%= @observation.when %></span></p>
        <p>Where: <span class="Data"><%= h @observation.where %></span></p>
        <p>What: <span class="Data"><%= h @observation.what %></span></p>
        <p>Who: <span class="Data"><%= h @observation.who %></span></p>
        <p><span class="Data"><%= if @observation.specimen
            'Herbarium specimen available'
         else
            'No herbarium specimen'
         end %></span></p>
         <p>Notes:</br><%= textilize @observation.notes %></p>
      Comments:<br/>
      <% for comment in @observation.comments.sort {|x,y| y.created <=> x.created } %>
        <%= link_to sprintf("%s: %s", truncate(h(comment.who), MAX_WHO_LENGTH),
                            truncate(h(comment.summary), MAX_FIELD_LENGTH)),
                    :action => 'show_comment', :id => comment %>
      <% end %>
      <p><span class="Date">
      Observation created: <%= @observation.created %><br/>
      Last modified: <%= @observation.modified %>
      </span></p>
    </td>
    <td valign="top" align="middle" width="25%">
    <%= link_to 'Add Image', :action => 'add_image', :id => @observation %><br/>
    <% for image in @observation.images %>
      <p><%= link_to('<img src="' + url_for(:action => "img_thumb", :id => image.id) +
              '"/><br/>' + h(image.unique_name),
            :action => 'show_image', :id => image.id) %></p>
    <% end %>
    </td>
</tr>
</table>
<commit_msg>Added line breaks in comment list.<commit_after><%= link_to 'Add Comment', :action => 'add_comment', :id => @observation %> |
<%= link_to 'Edit Observation', :action => 'edit_observation', :id => @observation %>

<h1>Observation: <%= h @observation.unique_name %></h1>

<table cellpadding="10">
<tr>
    <td width="75%" valign="top">
        <p>When: <span class="Data"><%= @observation.when %></span></p>
        <p>Where: <span class="Data"><%= h @observation.where %></span></p>
        <p>What: <span class="Data"><%= h @observation.what %></span></p>
        <p>Who: <span class="Data"><%= h @observation.who %></span></p>
        <p><span class="Data"><%= if @observation.specimen
            'Herbarium specimen available'
         else
            'No herbarium specimen'
         end %></span></p>
         <p>Notes:</br><%= textilize @observation.notes %></p>
      Comments:<br/>
      <% for comment in @observation.comments.sort {|x,y| y.created <=> x.created } %>
        <%= link_to sprintf("%s: %s", truncate(h(comment.who), MAX_WHO_LENGTH),
                            truncate(h(comment.summary), MAX_FIELD_LENGTH)),
                    :action => 'show_comment', :id => comment %><br/>
      <% end %>
      <p><span class="Date">
      Observation created: <%= @observation.created %><br/>
      Last modified: <%= @observation.modified %>
      </span></p>
    </td>
    <td valign="top" align="middle" width="25%">
    <%= link_to 'Add Image', :action => 'add_image', :id => @observation %><br/>
    <% for image in @observation.images %>
      <p><%= link_to('<img src="' + url_for(:action => "img_thumb", :id => image.id) +
              '"/><br/>' + h(image.unique_name),
            :action => 'show_image', :id => image.id) %></p>
    <% end %>
    </td>
</tr>
</table>

{'fraction_non_alphanumeric': 0.22253363228699552, 'fraction_numerical': 0.004484304932735426, 'mean_word_length': 2.8376344086021503, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 0, '>': 154, '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': '3212522', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1172, 'n_words': 266}