<commit_before><% if @person == @the_person %>
<% @title = "Your personal page" %>
<% else %>
<% @title = "Page for #{@the_person.fullname}" %>
<% @headline_avatar = @the_person.avatar.url(:thumb) %>
<% end %>

<% if @person != @the_person %>
<div id="person-atom-feed"><%= link_to image_tag("feed.png"), :controller => :account, :action => :follow, :id => @the_person.id, :format => :atom %> <%= link_to "Follow #{@the_person.first_name}'s activity in your feed reader", :controller => :account, :action => :follow, :id => @the_person.id, :format => :atom %></div>
<% end %>

<div id="right-news-box">
  <div id="viewed-models" class="news-box">
    <% start_time = Time.now %>
    <h2>Most-viewed models <span class="h2-explanation">(in the last 2 weeks)</span></h2>
    <% if @most_viewed.empty? %>
    <p>No statistics on most-viewed models</p>
    <% else %>
    <ul>
      <% @most_viewed.each do |model| %>
      <% next if model[1].to_i.zero? %>
      <li><%= model_link(model[0]) %> (<%= pluralize(number_with_delimiter(model[1]), "time", "times") -%>)</li>
      <% end %>
    </ul>
    <% end %>
    <!-- Time spent in viewed-models: <%= Time.now - start_time-%> -->
  </div>

  <div id="downloaded-models" class="news-box">
    <% start_time = Time.now %>
    <h2>Most-downloaded models <span class="h2-explanation">(in the last 2 weeks)</span></h2>
    <% if @most_downloaded.empty? %>
    <p>No statistics on most-downloaded models</p>
    <% else %>
    <ul>
      <% @most_downloaded.each do |model| %>
      <% next if model[1].to_i.zero? %>
      <li><%= model_link(model[0]) %> (<%= pluralize(number_with_delimiter(model[1]), "time", "times") -%>)</li>
      <% end %>
    </ul>
    <% end %>
    <!-- Time spent in downloaded-models: <%= Time.now - start_time-%> -->
  </div>

  <div id="applied-tag" class="news-box">
    <% start_time = Time.now %>
    <h2>Most popular tags <span class="h2-explanation">(in the last 2 weeks)</span></h2>
    <% if @most_downloaded.empty? %>
    <p>No statistics on most-popular tags</p>
    <% else %>
    <ul>
      <% @most_popular_tags.each do |tn| %>
      <% next if tn[1].to_i.zero? %>
      <li>
        <%= link_to tn[0].name, :controller => :tags, :action => :one_tag, :id => tn[0].id %>
        (<%= pluralize(number_with_delimiter(tn[1]), "time", "times" ) -%>)
      </li>
      <% end %>
    </ul>
    <% end %>
    <!-- Time spent in applied_tag: <%= Time.now - start_time-%> -->
  </div>

  <div id="recommended" class="news-box">
    <% start_time = Time.now %>
    <h2>Most-recommended models <span class="h2-explanation">(in the last 2 weeks)</span></h2>
    <% if @most_recommended_models.empty? %>
    <p>No model recommendations</p>
    <% else %>
    <ul>
      <% @most_recommended_models.each do |m| %>
      <% next if m[1].to_i.zero? %>
      <li><%= model_link m[0] %> (<%= pluralize(number_with_delimiter(m[1]), "time", "times") -%>)</li>
      <% end %>
    </ul>
    <% end %>
    <!-- Time spent in recommended: <%= Time.now - start_time-%> -->
  </div>
</div>

<div id="left-news-box">
  <div class="news-box">
    <% start_time = Time.now %>
    <h2>Recent activity in all models</h2>

    <% if @all_model_events.empty? %>
    <p>No recent activity</p>
    <% else %>
    <ul>
      <% @all_model_events.each do |model| %>
      <% if model.created_at == model.updated_at %>
      <li><%= model_link(model) -%> was added to the system.</li>
      <% else %>
      <li><%= whats_new_text(model) %></li>
      <% end %>
      <% end %>
    </ul>
    <% end %>
    <!-- Time spent in news-box all-models: <%= Time.now - start_time-%> -->
  </div>

  <div class="news-box">
    <% start_time = Time.now %>
    <% if @person == @the_person %><commit_msg>Better creation message<commit_after><% if @person == @the_person %>
<% @title = "Your personal page" %>
<% else %>
<% @title = "Page for #{@the_person.fullname}" %>
<% @headline_avatar = @the_person.avatar.url(:thumb) %>
<% end %>

<% if @person != @the_person %>
<div id="person-atom-feed"><%= link_to image_tag("feed.png"), :controller => :account, :action => :follow, :id => @the_person.id, :format => :atom %> <%= link_to "Follow #{@the_person.first_name}'s activity in your feed reader", :controller => :account, :action => :follow, :id => @the_person.id, :format => :atom %></div>
<% end %>

<div id="right-news-box">
  <div id="viewed-models" class="news-box">
    <% start_time = Time.now %>
    <h2>Most-viewed models <span class="h2-explanation">(in the last 2 weeks)</span></h2>
    <% if @most_viewed.empty? %>
    <p>No statistics on most-viewed models</p>
    <% else %>
    <ul>
      <% @most_viewed.each do |model| %>
      <% next if model[1].to_i.zero? %>
      <li><%= model_link(model[0]) %> (<%= pluralize(number_with_delimiter(model[1]), "time", "times") -%>)</li>
      <% end %>
    </ul>
    <% end %>
    <!-- Time spent in viewed-models: <%= Time.now - start_time-%> -->
  </div>

  <div id="downloaded-models" class="news-box">
    <% start_time = Time.now %>
    <h2>Most-downloaded models <span class="h2-explanation">(in the last 2 weeks)</span></h2>
    <% if @most_downloaded.empty? %>
    <p>No statistics on most-downloaded models</p>
    <% else %>
    <ul>
      <% @most_downloaded.each do |model| %>
      <% next if model[1].to_i.zero? %>
      <li><%= model_link(model[0]) %> (<%= pluralize(number_with_delimiter(model[1]), "time", "times") -%>)</li>
      <% end %>
    </ul>
    <% end %>
    <!-- Time spent in downloaded-models: <%= Time.now - start_time-%> -->
  </div>

  <div id="applied-tag" class="news-box">
    <% start_time = Time.now %>
    <h2>Most popular tags <span class="h2-explanation">(in the last 2 weeks)</span></h2>
    <% if @most_downloaded.empty? %>
    <p>No statistics on most-popular tags</p>
    <% else %>
    <ul>
      <% @most_popular_tags.each do |tn| %>
      <% next if tn[1].to_i.zero? %>
      <li>
        <%= link_to tn[0].name, :controller => :tags, :action => :one_tag, :id => tn[0].id %>
        (<%= pluralize(number_with_delimiter(tn[1]), "time", "times" ) -%>)
      </li>
      <% end %>
    </ul>
    <% end %>
    <!-- Time spent in applied_tag: <%= Time.now - start_time-%> -->
  </div>

  <div id="recommended" class="news-box">
    <% start_time = Time.now %>
    <h2>Most-recommended models <span class="h2-explanation">(in the last 2 weeks)</span></h2>
    <% if @most_recommended_models.empty? %>
    <p>No model recommendations</p>
    <% else %>
    <ul>
      <% @most_recommended_models.each do |m| %>
      <% next if m[1].to_i.zero? %>
      <li><%= model_link m[0] %> (<%= pluralize(number_with_delimiter(m[1]), "time", "times") -%>)</li>
      <% end %>
    </ul>
    <% end %>
    <!-- Time spent in recommended: <%= Time.now - start_time-%> -->
  </div>
</div>

<div id="left-news-box">
  <div class="news-box">
    <% start_time = Time.now %>
    <h2>Models activity <span class="h2-explanation">(in the last 2 weeks)</span></h2>

    <% if @all_model_events.empty? %>
    <p>No recent activity</p>
    <% else %>
    <ul>
      <% @all_model_events.each do |model| %>
      <% if model.created_at == model.updated_at %>
      <li><%= "#{model_link(model)} was created by #{person_link(model.people.first)} #{distance_of_time_in_words(Time.now, item.created_at)} ago."</li>
      <% else %>
      <li><%= whats_new_text(model) %></li>
      <% end %>
      <% end %>
    </ul>
    <% end %>
    <!-- Time spent in news-box all-models: <%= Time.now - start_time-%> -->
  </div>

  <div class="news-box">
    <% start_time = Time.now %>
    <% if @person == @the_person %>
{'fraction_non_alphanumeric': 0.2236513978212364, 'fraction_numerical': 0.008400052500328128, 'mean_word_length': 2.96875, 'pattern_counts': {'":': 0, '<': 275, '<?xml version=': 0, '>': 296, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1058650', 'n_tokens_mistral': 3030, 'n_tokens_neox': 2732, 'n_words': 585}