<commit_before><div class="news">
  <% start_time = Time.now %>
  <div class="news_list">
    <div class="news_heading">Most Viewed Models<span class="sub_heading"> (in the past 2 weeks)</span></div>
    
    <% if @most_viewed.empty?  %>
    <div class="news_empty">No statistics on most viewed models in the past 2 weeks</div>
    <% else %>
    <% @most_viewed.each do |modelAndCount| %>
    <% 
       model = modelAndCount.node
       count = modelAndCount.count

       your_news = @person and model.person and (@person.id == model.person.id)
     %>

    <% next if count.to_i.zero? %>
    <% next if model.node_versions.empty? %>
    <div class="news_post<% if your_news %> your_news<% end %>">
      <div class="news_image">
        <a href="<%= url_for(:controller => "browse", :action => "one_model", :id => model.id) %>">
          <% if !model.previews.nil? and !model.previews.empty? %>
          <img src="<%= url_for :controller => :browse, :action => :display_preview, :id => model.id, :size => 'thumb' %>" />
          <% end %>
        </a>
      </div>
      <div class="news_content"><commit_msg>Fix your_news class<commit_after><div class="news">
  <% start_time = Time.now %>
  <div class="news_list">
    <div class="news_heading">Most Viewed Models<span class="sub_heading"> (in the past 2 weeks)</span></div>
    
    <% if @most_viewed.empty?  %>
    <div class="news_empty">No statistics on most viewed models in the past 2 weeks</div>
    <% else %>
    <% @most_viewed.each do |modelAndCount| %>
    <% 
       model = modelAndCount.node
       count = modelAndCount.count

       your_news = model.author?(@person)
     %>

    <% next if count.to_i.zero? %>
    <% next if model.node_versions.empty? %>
    <div class="news_post<% if your_news %> your_news<% end %>">
      <div class="news_image">
        <a href="<%= url_for(:controller => "browse", :action => "one_model", :id => model.id) %>">
          <% if !model.previews.nil? and !model.previews.empty? %>
          <img src="<%= url_for :controller => :browse, :action => :display_preview, :id => model.id, :size => 'thumb' %>" />
          <% end %>
        </a>
      </div>
      <div class="news_content">
{'fraction_non_alphanumeric': 0.18029064486830154, 'fraction_numerical': 0.0018165304268846503, 'mean_word_length': 2.9060283687943262, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 73, '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': '4883555', 'n_tokens_mistral': 781, 'n_tokens_neox': 718, 'n_words': 170}