<commit_before><% @title = "User - " + h(@admin_user.name) %>

<h1><%=@title%></h1>

<p>
<strong>Id:</strong> <%= @admin_user.id%> <br>
<% for column in User.content_columns %>
    <strong><%= column.human_name %>:</strong> 
    <% if column.name == 'email' %>
        <a href="mailto:<%=h @admin_user.email %>"><%=h @admin_user.email%></a>
    <% else %>
        <%=h @admin_user.send(column.name) %>
    <% end %>
    <br>
<% end %>
</p>

<p><%= link_to 'Public page', main_url(user_url(@admin_user)) %></p>

<h2>Track things</h2>

<table>
  <tr>
  <th>Id</th>
  <% for column in TrackThing.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  <th>Items sent by email</th>
  </tr>
  
<% for track_thing in @admin_user.track_things.find(:all, :order => 'created_at desc') %>
  <tr class="<%= cycle('odd', 'even') %>">
  <td><%=h track_thing.id %></td>
  <% for column in TrackThing.content_columns.map { |c| c.name } %>
    <td><%=h track_thing.send(column) %></td>
  <% end %>
  <td><%= track_thing.track_things_sent_emails.size %></td>
  </tr>
<% end %>
</table>


<h2>Post redirects</h2>

<table>
  <tr>
  <th>Id</th>
  <% for column in PostRedirect.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% for post_redirect in @admin_user.post_redirects.find(:all, :order => 'created_at desc') %>
  <tr class="<%= cycle('odd', 'even') %>">
  <td><%=h post_redirect.id %></td>
  <% for column in PostRedirect.content_columns.map { |c| c.name } %>
    <td><%=h post_redirect.send(column) %></td>
  <% end %>
  </tr>
<% end %>
</table>

<commit_msg>Link to email token URLs.<commit_after><% @title = "User - " + h(@admin_user.name) %>

<h1><%=@title%></h1>

<p>
<strong>Id:</strong> <%= @admin_user.id%> <br>
<% for column in User.content_columns %>
    <strong><%= column.human_name %>:</strong> 
    <% if column.name == 'email' %>
        <a href="mailto:<%=h @admin_user.email %>"><%=h @admin_user.email%></a>
    <% else %>
        <%=h @admin_user.send(column.name) %>
    <% end %>
    <br>
<% end %>
</p>

<p><%= link_to 'Public page', main_url(user_url(@admin_user)) %></p>

<h2>Track things</h2>

<table>
  <tr>
  <th>Id</th>
  <% for column in TrackThing.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  <th>Items sent by email</th>
  </tr>
  
<% for track_thing in @admin_user.track_things.find(:all, :order => 'created_at desc') %>
  <tr class="<%= cycle('odd', 'even') %>">
  <td><%=h track_thing.id %></td>
  <% for column in TrackThing.content_columns.map { |c| c.name } %>
    <td><%=h track_thing.send(column) %></td>
  <% end %>
  <td><%= track_thing.track_things_sent_emails.size %></td>
  </tr>
<% end %>
</table>


<h2>Post redirects</h2>

<table>
  <tr>
  <th>Id</th>
  <% for column in PostRedirect.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% for post_redirect in @admin_user.post_redirects.find(:all, :order => 'created_at desc') %>
  <tr class="<%= cycle('odd', 'even') %>">
  <td><%=h post_redirect.id %></td>
  <% for column in PostRedirect.content_columns.map { |c| c.name } %>
    <% if column == 'email_token' %>
    <td><%=link_to post_redirect.send(column), confirm_url(:email_token => post_redirect.send(column)) %></td>
    <% else %>
    <td><%=h post_redirect.send(column) %></td>
    <% end %>
  <% end %>
  </tr>
<% end %>
</table>


{'fraction_non_alphanumeric': 0.2447469665581533, 'fraction_numerical': 0.003551346552234389, 'mean_word_length': 3.6492434662998625, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 182, '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': '4488588', 'n_tokens_mistral': 1462, 'n_tokens_neox': 1330, 'n_words': 266}