<commit_before><% if post.title.present? %>
  <h3><%= link_to post.title, post %></h3>
<% else %>
  <span>&nbsp;</span>
<% end %>
<pre><code><%= post.content %></code></pre>
<% if post.author.present? %>
  <small class="author">- <%= post.author %></small>
<% end %>
<% if post.comments.present? %>
  <span class="comments_count">
    <%= post.comments.size %>
    <i class="icon-comment"></i>
  </span>
<% end %>
<div class="pull-right">
  <div class="btn-group">
    <%= link_to post, :class => "btn btn-small" do %>
      <i class="icon-eye-open"></i>
    <% end %>
    <%= link_to post_path(post, :format => :text),
      :class => "btn btn-small"  do %>
      <i class="icon-download"></i>
    <% end%>
    <%= link_to edit_post_path(post), :class => "btn btn-small"  do %>
      <i class="icon-edit"></i>
      <% end %>
    <%= link_to post, method: :delete,
     data: { confirm: 'Are you sure?' }, :class => "btn btn-small" do %>
      <i class="icon-trash"></i>
    <% end %><commit_msg>Truncate posts on the index page<commit_after><% if post.title.present? %>
  <h3><%= link_to post.title, post %></h3>
<% else %>
  <span>&nbsp;</span>
<% end %>
<pre><code><%= truncate(post.content,
                        :length => 800,
                        :omission => "\n\n...") %>
</code></pre>
<% if post.author.present? %>
  <small class="author">- <%= post.author %></small>
<% end %>
<% if post.comments.present? %>
  <span class="comments_count">
    <%= post.comments.size %>
    <i class="icon-comment"></i>
  </span>
<% end %>
<div class="pull-right">
  <div class="btn-group">
    <%= link_to post, :class => "btn btn-small" do %>
      <i class="icon-eye-open"></i>
    <% end %>
    <%= link_to post_path(post, :format => :text),
      :class => "btn btn-small"  do %>
      <i class="icon-download"></i>
    <% end%>
    <%= link_to edit_post_path(post), :class => "btn btn-small"  do %>
      <i class="icon-edit"></i>
      <% end %>
    <%= link_to post, method: :delete,
     data: { confirm: 'Are you sure?' }, :class => "btn btn-small" do %>
      <i class="icon-trash"></i>
    <% end %>
{'fraction_non_alphanumeric': 0.24195075757575757, 'fraction_numerical': 0.0033143939393939395, 'mean_word_length': 2.841818181818182, 'pattern_counts': {'":': 0, '<': 89, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5299612', 'n_tokens_mistral': 829, 'n_tokens_neox': 753, 'n_words': 167}