<commit_before><table class="commits_in_event">
<% @commits.each_with_index do |c, index| %>
  <% if index+1 > Event::MAX_COMMIT_EVENTS -%>
    <tr>
      <td valign="top" class="avatar">
        
      </td>
      <td valign="top">
          <%= link_to("And #{@event.events.count - @commits.count} more commits&hellip;",
              repo_owner_path(c.target.target.target,
                    :project_repository_commits_in_ref_path, c.project,
                    c.target.target.target, ensplat_path(@event.data))) -%>
      </td>
    </tr>
  <% else -%>
    <tr id="<%= dom_id(c) -%>">
      <td valign="top" class="avatar">
        <%= avatar_from_email(c.email, :size => 16)  %>
      </td>
      <td valign="top">
        <p>
          <% if c.user.nil? %>
            <%= c.actor_display %>
          <% else %>
            <%= link_to h(c.user.title), user_path(c.user) %>
          <% end %>
          <strong>committed</strong>
          <%= link_to(c.data[0,8], repo_owner_path(c.target.target.target, 
                :project_repository_commit_path, c.project, c.target.target.target, c.data)) %>
          at <%= c.created_at.to_s(:short_time) %>
        </p>
        <div class="commit_message">
          <%= link_to(simple_format(h(c.body)),
                repo_owner_path(c.target.target.target,
                  :project_repository_commit_path, c.project, c.target.target.target, c.data)) %>
        </div><commit_msg>Use long format for Ajax-loaded commits too<commit_after><table class="commits_in_event">
<% @commits.each_with_index do |c, index| %>
  <% if index+1 > Event::MAX_COMMIT_EVENTS -%>
    <tr>
      <td valign="top" class="avatar">
        
      </td>
      <td valign="top">
          <%= link_to("And #{@event.events.count - @commits.count} more commits&hellip;",
              repo_owner_path(c.target.target.target,
                    :project_repository_commits_in_ref_path, c.project,
                    c.target.target.target, ensplat_path(@event.data))) -%>
      </td>
    </tr>
  <% else -%>
    <tr id="<%= dom_id(c) -%>">
      <td valign="top" class="avatar">
        <%= avatar_from_email(c.email, :size => 16)  %>
      </td>
      <td valign="top">
        <p>
          <% if c.user.nil? %>
            <%= c.actor_display %>
          <% else %>
            <%= link_to h(c.user.title), user_path(c.user) %>
          <% end %>
          <strong>committed</strong>
          <%= link_to(c.data[0,8], repo_owner_path(c.target.target.target, 
                :project_repository_commit_path, c.project, c.target.target.target, c.data)) %>
          <%= c.created_at.to_s(:long) %>
        </p>
        <div class="commit_message">
          <%= link_to(simple_format(h(c.body)),
                repo_owner_path(c.target.target.target,
                  :project_repository_commit_path, c.project, c.target.target.target, c.data)) %>
        </div>
{'fraction_non_alphanumeric': 0.17440660474716202, 'fraction_numerical': 0.0034399724802201583, 'mean_word_length': 2.0969116080937167, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 69, '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': '2245260', 'n_tokens_mistral': 1063, 'n_tokens_neox': 985, 'n_words': 142}