<commit_before><%= content_tag_for :article, post do %>
  <header class="post_header">
    <h1><%= link_to_unless_current post.title, post %></h1>
    <div class="meta">
      Posted by <%= post.user.to_s.split.first %>
      <time pubdate datetime="<%= post.published_at.utc.to_s(:rfc822) %>"><%= post.published_at.strftime("on %A, %e %B %Y at %H:%M %Z") %></time>
      –
      <%= link_to "Permalink", post %>
    </div>
  </header>

  <%= sanitize post.body %>
<% end %><commit_msg>Correctly display unpublished posts when authorized<commit_after><%= content_tag_for :article, post do %>
  <header class="post_header">
    <h1><%= link_to_unless_current post.title, post %></h1>
    <div class="meta">
      Posted by <%= post.user.to_s.split.first %>
      <% if post.published_at %>
        <time pubdate datetime="<%= post.published_at.utc.to_s(:rfc822) %>"><%= post.published_at.strftime("on %A, %e %B %Y at %H:%M %Z") %></time>
      <% else %>
        <time pubdate datetime="<%= post.created_at.utc.to_s(:rfc822) %>"><%= post.created_at.strftime("on %A, %e %B %Y at %H:%M %Z") %></time>
      <% end %>
      –
      <%= link_to "Permalink", post %>
    </div>
  </header>

  <%= sanitize post.body %>
<% end %>
{'fraction_non_alphanumeric': 0.2144026186579378, 'fraction_numerical': 0.010638297872340425, 'mean_word_length': 3.4151624548736463, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 42, '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': '5083762', 'n_tokens_mistral': 503, 'n_tokens_neox': 452, 'n_words': 100}