<commit_before><h4>Report: User Votes</h4>

<div>
  <p>The following report shows user votes over the past three days.</p>

  <div style="float: left; width: 200px;">
    <table width="100%">
      <thead>
        <tr>
          <th>User</th>
          <th>Total</th>
          <th>Votes</th>
        </tr>
      </thead>
      <tbody>
        <% @users.each do |user| %>
          <tr class="<%= cycle 'even', 'odd' %>">
            <td><%= link_to_unless user['id'].nil?, user['name'], :controller => 'user', :action => 'show', :id => user['id'] %></td>
            <td><%= link_to_unless user['id'].nil?, user['change_count'], :controller => 'post', :action => 'index', :tags => "vote:>=1:#{user['name']} order:vote" %></td>
	    <td>
              <span class="stars" style="white-space: nowrap">
                <% (1..3).each do |vote| %>
                    <% count = (user['votes'] && user['votes'][vote]) || '0' %>
                    <% text = "#{h count} <span class='score-on score-voted score-visible'>★</span>".html_safe %>
                    <% if user['id'].nil? %>
                      <%= content_tag :span, text, :class => "star star-#{vote}" %>
                    <% else %>
                      <%= link_to text, {:controller => "post", :action => "index", :tags => "vote:>=#{vote}:#{user['name']} order:vote"}, :class => "star star-#{vote}" %>
                    <% end %>
                <% end %>
              <span>
	    </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div><commit_msg>Less html_safe, more capture.<commit_after><h4>Report: User Votes</h4>

<div>
  <p>The following report shows user votes over the past three days.</p>

  <div style="float: left; width: 200px;">
    <table width="100%">
      <thead>
        <tr>
          <th>User</th>
          <th>Total</th>
          <th>Votes</th>
        </tr>
      </thead>
      <tbody>
        <% @users.each do |user| %>
          <tr class="<%= cycle 'even', 'odd' %>">
            <td><%= link_to_unless user['id'].nil?, user['name'], :controller => 'user', :action => 'show', :id => user['id'] %></td>
            <td><%= link_to_unless user['id'].nil?, user['change_count'], :controller => 'post', :action => 'index', :tags => "vote:>=1:#{user['name']} order:vote" %></td>
	    <td>
              <span class="stars" style="white-space: nowrap">
                <% (1..3).each do |vote| %>
                    <% count = (user['votes'] && user['votes'][vote]) || '0' %>
                    <% text = capture do %>
                      <%= count %>
                      <span class='score-on score-voted score-visible'>★</span>
                    <% end %>
                    <% if user['id'].nil? %>
                      <%= content_tag :span, text, :class => "star star-#{vote}" %>
                    <% else %>
                      <%= link_to text, {:controller => "post", :action => "index", :tags => "vote:>=#{vote}:#{user['name']} order:vote"}, :class => "star star-#{vote}" %>
                    <% end %>
                <% end %>
              <span>
	    </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>
{'fraction_non_alphanumeric': 0.22497646689676812, 'fraction_numerical': 0.007530593034201443, 'mean_word_length': 1.7673611111111112, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 127, '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': '3493767', 'n_tokens_mistral': 1088, 'n_tokens_neox': 993, 'n_words': 226}