<commit_before><% unless entities.empty? %>
<div class="span4 sidebar hidden-phone">

  <%= render 'shared/social_buttons' %>
  
  <h3>Protagonistas</h3>
  
  <div class="related-entities">
    <ul>
      <% entities.each_with_index do |entity, i| %>
      <%# Start displaying at least 5 related entities, always the high priority ones %>
      <li <%= "class='extra-related-entity'".html_safe if i>=5 and entity.priority!='1' %>>
        <div class="picture">
          <%= link_to entity_path(entity) do %>
          <%= 
            image_tag(entity.avatar.url ? entity.avatar.url(:icon) : 'avatar-tiny.png', class: 'image tiny') 
          %>
          <% end %>
        </div>
        <div class="content">
          <%= link_to entity.short_or_long_name, entity_path(entity) %>
          <small><%= entity.description %></small>
        </div>
        <%= render 'shared/show_admin_links', :item => entity, :inline => true %>
      </li>
      <% end %>
    </ul>
  </div>

  <span id="related-entities-toggle" class="label toggable">
    <i class="icon-chevron-down"></i> Mostrar todos
  </span> 
</div>
<% end %><commit_msg>Don't use the entities/ path in post article, mix up with JSON cache, to be fixed later<commit_after><% unless entities.empty? %>
<div class="span4 sidebar hidden-phone">

  <%= render 'shared/social_buttons' %>
  
  <h3>Protagonistas</h3>
  
  <div class="related-entities">
    <ul>
      <% entities.each_with_index do |entity, i| %>
      <%# Start displaying at least 5 related entities, always the high priority ones %>
      <li <%= "class='extra-related-entity'".html_safe if i>=5 and entity.priority!='1' %>>
        <div class="picture">
          <%= link_to entity_path(entity) do %>
          <%= 
            image_tag(entity.avatar.url ? entity.avatar.url(:icon) : 'avatar-tiny.png', class: 'image tiny') 
          %>
          <% end %>
        </div>
        <div class="content">
          <% if entity.person? %>
          <%= link_to entity.short_or_long_name, person_path(entity) %>
          <% else %>
          <%= link_to entity.short_or_long_name, organization_path(entity) %>
          <% end %>
          <small><%= entity.description %></small>
        </div>
        <%= render 'shared/show_admin_links', :item => entity, :inline => true %>
      </li>
      <% end %>
    </ul>
  </div>

  <span id="related-entities-toggle" class="label toggable">
    <i class="icon-chevron-down"></i> Mostrar todos
  </span> 
</div>
<% end %>
{'fraction_non_alphanumeric': 0.17288407541115122, 'fraction_numerical': 0.0048134777376654635, 'mean_word_length': 2.5577746077032812, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 79, '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': '7582181', 'n_tokens_mistral': 856, 'n_tokens_neox': 791, 'n_words': 179}