<commit_before><% if @observation.images.length > 0 %>
  <%= :images.t %>:<br/>
<% end %>

<% if check_permission(@observation.user_id) %>
  <%= link_to(:show_observation_add_images.t, :controller => 'image', :action => 'add_image', :id => @observation.id) %><br/>
  <%= link_to(:show_observation_reuse_image.t, :controller => 'image', :action => 'reuse_image', :id => @observation.id) %><br/>
  <% if @observation.images.length > 0 %>
    <%= link_to(:show_observation_remove_images.t, :controller => 'image', :action => 'remove_images', :id => @observation.id) %><br/>
  <% end %>
<% end %>
<br/>

<center>
  <% done = {}
  for image in [@observation.thumb_image] + @observation.images
    if image && !done[image.id]
      done[image.id] = true %>
      <p>
        <%= link_to(image_tag(sprintf("thumb/%d.jpg", image.id)) + '<br/>' +
                      image.unique_format_name.t,
                    :controller => 'image', :action => 'show_image', :id => image.id, :params => search_params) %><br/>
        <% if image.notes && image.notes != '' %>
          <small>
            <%= str = image.notes[0..40].tl
            str += '...' if image.notes.length > 41
            str %>
          </small>
        <% end %>
      </p>
    <% end %>
  <% end %>
</center><commit_msg>Changed length of notes under images on show_images from 40 to 300 chars.<commit_after><% if @observation.images.length > 0 %>
  <%= :images.t %>:<br/>
<% end %>

<% if check_permission(@observation.user_id) %>
  <%= link_to(:show_observation_add_images.t, :controller => 'image', :action => 'add_image', :id => @observation.id) %><br/>
  <%= link_to(:show_observation_reuse_image.t, :controller => 'image', :action => 'reuse_image', :id => @observation.id) %><br/>
  <% if @observation.images.length > 0 %>
    <%= link_to(:show_observation_remove_images.t, :controller => 'image', :action => 'remove_images', :id => @observation.id) %><br/>
  <% end %>
<% end %>
<br/>

<center>
  <% done = {}
  for image in [@observation.thumb_image] + @observation.images
    if image && !done[image.id]
      done[image.id] = true %>
      <p>
        <%= link_to(image_tag(sprintf("thumb/%d.jpg", image.id)) + '<br/>' +
                      image.unique_format_name.t,
                    :controller => 'image', :action => 'show_image', :id => image.id, :params => search_params) %><br/>
        <% if image.notes && image.notes != '' %>
          <small>
            <%= str = image.notes[0..300].tl
            str += '...' if image.notes.length > 301
            str %>
          </small>
        <% end %>
      </p>
    <% end %>
  <% end %>
</center>
{'fraction_non_alphanumeric': 0.21222475322703113, 'fraction_numerical': 0.007972665148063782, 'mean_word_length': 2.680167597765363, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 95, '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': '6871652', 'n_tokens_mistral': 964, 'n_tokens_neox': 885, 'n_words': 175}