<commit_before><h1>Recent user activity</h1>
<div class="clearfix" style="height:155px">
  <div class="pull-left" style="padding:25px;">
    <strong style="font-size:3em"><%=@activities.size%>/<%=Activity.configuration.user_class.count%></strong>
    <div style="font-size:2em">users</div>
  </div>
  <div id="activity-chart" class="pull-left"></div>
  <div id="day-chart" class="pull-left"></div>
</div>

<div class="table-wrapper">
  <table class="list alternating"> 
    <thead>
      <tr>
        <th>When</th>
        <th>User</th>
        <th>Referer → Current Path</th>
        <th>Custom</th>
      </tr>
    </thead>
    <tbody>
      <% @activities.each do |a|%>
        <tr>
          <% a = a.first if a.is_a? Array%>
          <td><%=time_ago_in_words(Time.zone.parse(a[:time])) if a[:time]%></td>
          <td><%=link_to a[:user], activity_path(CGI.escape(a[:user]).gsub(/[\ .]+/, "%20")) if a[:user]%></td>
          <td><%=a[:referer]%> <strong>→ <%=a[:current_url]%></strong></td>
          <td>
            <%if a[:custom]%>
              <ul><commit_msg>float<commit_after><h1>Recent user activity</h1>
<div class="clearfix" style="height:155px">
  <div style="padding:25px;float:left">
    <strong style="font-size:3em"><%=@activities.size%>/<%=Activity.configuration.user_class.count%></strong>
    <div style="font-size:2em">users</div>
  </div>
  <div id="activity-chart" style="float:left"></div>
  <div id="day-chart" style="float:left"></div>
</div>

<div class="table-wrapper">
  <table class="list alternating"> 
    <thead>
      <tr>
        <th>When</th>
        <th>User</th>
        <th>Referer → Current Path</th>
        <th>Custom</th>
      </tr>
    </thead>
    <tbody>
      <% @activities.each do |a|%>
        <tr>
          <% a = a.first if a.is_a? Array%>
          <td><%=time_ago_in_words(Time.zone.parse(a[:time])) if a[:time]%></td>
          <td><%=link_to a[:user], activity_path(CGI.escape(a[:user]).gsub(/[\ .]+/, "%20")) if a[:user]%></td>
          <td><%=a[:referer]%> <strong>→ <%=a[:current_url]%></strong></td>
          <td>
            <%if a[:custom]%>
              <ul>
{'fraction_non_alphanumeric': 0.23945641986879102, 'fraction_numerical': 0.010309278350515464, 'mean_word_length': 2.9318600368324126, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '5545435', 'n_tokens_mistral': 833, 'n_tokens_neox': 795, 'n_words': 124}