<commit_before><%-
  taxon ||= @taxon
  photos ||= taxon.photos.limit(24)
-%>
<% if !photos.size == 0 %>
  <% if taxon.species_or_lower? %>
    <% if [Photo, Photo.subclasses].flatten.include?(photos[0].class) %>
      <% if photos.first.id %>
        <%= link_to(image_tag(photos.first.medium_url || photos.first.small_url), photos.first.becomes(Photo), :class => "zoomable", :title => t(:photo_attribution, :attribution => photos.first.attribution)) %>
      <% else %>
        <%= link_to(image_tag(photos.first.medium_url || photos.first.small_url), photos.first.native_page_url) %>
      <% end %>
      <div class="clear description" style="clear: both">
        <%= t(:photo).titleize %>: <%= link_to photos[0].attribution, native_url_for_photo(photos[0]) %>
      </div>
    <% else %>
      <% photo_url = "http://flickr.com/photos/#{photos[0].photo_xml[:owner]}/#{photos[0].id}" %>
      <%= link_to image_tag(photos[0].source_url(:medium)), photo_url %>
      <div class="description">
        <%= t(:photo).titleize %>: <%= link_to t(:view_original_ccD_photo, :owner => "#{photos[0].photo_xml[:ownername]}"), photos[0].page_url %>
      </div>
    <% end %>
  <% else %><commit_msg>Because I can't code and talk to people at the same time.<commit_after><%-
  taxon ||= @taxon
  photos ||= taxon.photos.limit(24)
-%>
<% if photos.size > 0 %>
  <% if taxon.species_or_lower? %>
    <% if [Photo, Photo.subclasses].flatten.include?(photos[0].class) %>
      <% if photos.first.id %>
        <%= link_to(image_tag(photos.first.medium_url || photos.first.small_url), photos.first.becomes(Photo), :class => "zoomable", :title => t(:photo_attribution, :attribution => photos.first.attribution)) %>
      <% else %>
        <%= link_to(image_tag(photos.first.medium_url || photos.first.small_url), photos.first.native_page_url) %>
      <% end %>
      <div class="clear description" style="clear: both">
        <%= t(:photo).titleize %>: <%= link_to photos[0].attribution, native_url_for_photo(photos[0]) %>
      </div>
    <% else %>
      <% photo_url = "http://flickr.com/photos/#{photos[0].photo_xml[:owner]}/#{photos[0].id}" %>
      <%= link_to image_tag(photos[0].source_url(:medium)), photo_url %>
      <div class="description">
        <%= t(:photo).titleize %>: <%= link_to t(:view_original_ccD_photo, :owner => "#{photos[0].photo_xml[:ownername]}"), photos[0].page_url %>
      </div>
    <% end %>
  <% else %>
{'fraction_non_alphanumeric': 0.21069958847736625, 'fraction_numerical': 0.00905349794238683, 'mean_word_length': 3.776031434184676, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 56, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6695323', 'n_tokens_mistral': 931, 'n_tokens_neox': 827, 'n_words': 123}