<commit_before><p>
<% chosen_caption = chosen_caption(@medium)
   if !chosen_caption.nil? %>
     <h2><%=  h(chosen_caption.title).s %></h2>
<% end
   if defined?(large) && large %>
<%=  render :partial => 'pictures/large' %>
<% else
     large = false
     if @medium.class == Picture %>
<%=    render :partial => 'pictures/show' %>
<%   elsif @medium.class == Video %>
<%=    render :partial => 'videos/show' %>
<%   elsif @medium.class == Document %>
<%=    render :partial => 'documents/show' %>
<%   end %>
<%=  display_if_not_blank ts(:id, :what => Medium.human_name.titleize), "#{@medium.id} (#{link_to ts(:url_for_reference), medium_path(@medium)})" %>
<%=  render :partial => 'titles/index_display_only', :locals => {:medium => @medium} %>
<%   features = @medium.features %>
<%=  display_if_not_blank(Location.human_name(:count => features.size).titleize.s, features.collect{|f| link_to_remote f.header, :url => place_path(f.fid), :method => 'get'}.join(', ')) if !features.empty? %>
<% end %>  
<% captions = @medium.captions
   if !captions.empty? && captions.size>1 %>
     <p>
<%   for caption in captions
       if caption != chosen_caption %>
<%=      h(caption.title).s %><br/>
<%     end
     end %><commit_msg>Making location links go to the PD instead of being AJAX MMS views<commit_after><p>
<% chosen_caption = chosen_caption(@medium)
   if !chosen_caption.nil? %>
     <h2><%=  h(chosen_caption.title).s %></h2>
<% end
   if defined?(large) && large %>
<%=  render :partial => 'pictures/large' %>
<% else
     large = false
     if @medium.class == Picture %>
<%=    render :partial => 'pictures/show' %>
<%   elsif @medium.class == Video %>
<%=    render :partial => 'videos/show' %>
<%   elsif @medium.class == Document %>
<%=    render :partial => 'documents/show' %>
<%   end %>
<%=  display_if_not_blank ts(:id, :what => Medium.human_name.titleize), "#{@medium.id} (#{link_to ts(:url_for_reference), medium_path(@medium)})" %>
<%=  render :partial => 'titles/index_display_only', :locals => {:medium => @medium} %>
<%   features = @medium.features %>
<%=  display_if_not_blank(Location.human_name(:count => features.size).titleize.s, features.collect{|f| link_to f.header, Feature.element_url(f.fid, :format => 'html')}.join(', ')) if !features.empty? %>
<% end %>  
<% captions = @medium.captions
   if !captions.empty? && captions.size>1 %>
     <p>
<%   for caption in captions
       if caption != chosen_caption %>
<%=      h(caption.title).s %><br/>
<%     end
     end %>
{'fraction_non_alphanumeric': 0.20750199521149243, 'fraction_numerical': 0.0023942537909018356, 'mean_word_length': 3.9545454545454546, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 76, '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': '4097108', 'n_tokens_mistral': 957, 'n_tokens_neox': 858, 'n_words': 175}