<commit_before><%= render_void_table(@resources.size, 6) %>
<% for upload in @resources -%>
<tr <%= alternate_class -%>>
  <td>
  <% if upload.mime =~ /image/ %>
    <%= link_to upload.upload_url, rel: 'lightbox' do %>
      <%= image_tag(upload.upload.thumb.url) %>
    <% end %>
  <% else %>
    <%= link_to(upload.upload_url, upload.upload_url, rel: 'lightbox') -%>
  <% end %>
	<p><%= resource_action_links(upload) %></p>
  </td>
  <td>
    <%= upload.mime %>
  </td>
  <td><%=h upload.size rescue 0 -%> bytes</td>
  <td><%= format_date upload.created_at -%></td>
</tr>
<% end -%>
<commit_msg>Fixes buggy behavior whe trying to view a non image resource.<commit_after><%= render_void_table(@resources.size, 6) %>
<% for upload in @resources -%>
<tr <%= alternate_class -%>>
  <td>
  <% if upload.mime =~ /image/ %>
    <%= link_to upload.upload_url, rel: 'lightbox' do %>
      <%= image_tag(upload.upload.thumb.url) %>
    <% end %>
  <% else %>
    <%= link_to(upload.upload_url, upload.upload_url) -%>
  <% end %>
	<p><%= resource_action_links(upload) %></p>
  </td>
  <td>
    <%= upload.mime %>
  </td>
  <td><%=h upload.size rescue 0 -%> bytes</td>
  <td><%= format_date upload.created_at -%></td>
</tr>
<% end -%>

{'fraction_non_alphanumeric': 0.2310204081632653, 'fraction_numerical': 0.0032653061224489797, 'mean_word_length': 3.3785714285714286, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '928230', 'n_tokens_mistral': 527, 'n_tokens_neox': 470, 'n_words': 96}