<commit_before><%
  add_body_class "posts"
  @page_title = "#{@user.username}'s Posts"
%>

<h2 class="section">
  <%= link_to "Users", users_path %> &raquo;
  <%= profile_link(@user) %> &raquo;
  <%= link_to "Posts", posts_user_path(id: @user.username) %>
</h2>

<% if @posts %>
  <%= render partial: "posts/posts", locals: { posts: @posts, title: true } %>
<% else %>
  <p>
    No posts were found.
  </p>
<% end %>
<commit_msg>Hide NSFW posts on user profile<commit_after><%
  add_body_class "user_profile", "posts"
  @page_title = "#{@user.username}'s Posts"
%>

<h2 class="section">
  <%= link_to "Users", users_path %> &raquo;
  <%= profile_link(@user) %> &raquo;
  <%= link_to "Posts", posts_user_path(id: @user.username) %>
</h2>

<% if @posts %>
  <%= render(partial: "posts/posts",
             locals: { posts: @posts, title: true, hide_nsfw: true }) %>
<% else %>
  <p>
    No posts were found.
  </p>
<% end %>

{'fraction_non_alphanumeric': 0.21560130010834236, 'fraction_numerical': 0.004333694474539545, 'mean_word_length': 3.9411764705882355, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '3196624', 'n_tokens_mistral': 394, 'n_tokens_neox': 358, 'n_words': 81}