<commit_before><% title "Pictures by #{@user.name}" %>
<% set_meta_tags og: { image: @user.avatar.thumb_url('100x100'), type: 'profile', profile: { username: @user.username } } %>

<%= render 'header' %>

<div class="row mt-4">
  <div class="col-sm">
    <table class="table">
      <tr>
        <th scope="row">Joined</th>
        <td><%= timeago_tag @user.created_at %></td>
      </tr>

      <tr>
        <th scope="row">Views</th>
        <td><%= @user.pictures.sum(:views_count) %></td>
      </tr>

      <tr>
        <th scope="row">Likes</th>
        <td><%= @user.pictures.sum(:cached_votes_total) %></td>
      </tr>
    </table>
  </div>

  <div class="col-sm">
    <%= simple_format(@user.description) %>
  </div>
</div>

<div class="mt-5">
  <h3>Most popular pictures</h3><commit_msg>Add overflow hidden to user description in profile<commit_after><% title "Pictures by #{@user.name}" %>
<% set_meta_tags og: { image: @user.avatar.thumb_url('100x100'), type: 'profile', profile: { username: @user.username } } %>

<%= render 'header' %>

<div class="row mt-4">
  <div class="col-sm">
    <table class="table">
      <tr>
        <th scope="row">Joined</th>
        <td><%= timeago_tag @user.created_at %></td>
      </tr>

      <tr>
        <th scope="row">Views</th>
        <td><%= @user.pictures.sum(:views_count) %></td>
      </tr>

      <tr>
        <th scope="row">Likes</th>
        <td><%= @user.pictures.sum(:cached_votes_total) %></td>
      </tr>
    </table>
  </div>

  <div class="col-sm">
    <%= simple_format(@user.description, class: 'overflow-hidden') %>
  </div>
</div>

<div class="mt-5">
  <h3>Most popular pictures</h3>
{'fraction_non_alphanumeric': 0.22603978300180833, 'fraction_numerical': 0.012055455093429777, 'mean_word_length': 2.9058823529411764, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '3490292', 'n_tokens_mistral': 658, 'n_tokens_neox': 617, 'n_words': 122}