<commit_before><div class="pull-right">
  <div class="input-append">
    <%= form_tag(diff_post_path(@post), :method => "get") do %>

      <% unless current_page?(post_path(@post)) %>
        <%= link_to post_path(@post), :class => "btn btn-mini",
          :title => "View" do %>
          <i class="icon-eye-open"></i>
        <% end %>
      <% end %>

      <% unless current_page?(edit_post_path(@post)) %>
        <%= link_to edit_post_path(@post), :class => "btn btn-mini",
          :title => "Edit" do %>
          <i class="icon-edit"></i>
        <% end %>
      <% end %>
    
      <% if @post.parent.present? &&
        !current_page?(root_url) && !current_page?(posts_path) %>
          <%= text_field_tag(:diff_id, nil, :class => "input-sm", 
            :placeholder => @post.parent.id.to_s) %>
          <%= button_tag(:type => "submit", :class => "btn btn-mini", 
            :title => "Diff") do %>
              <i class="icon-plus"></i>
              <i class="icon-minus"></i>
          <% end %>
        <div class="btn-group">
          <button class="btn dropdown-toggle btn-mini" data-toggle="dropdown">
            <span class="caret"></span>
          </button>
            <ul class="dropdown-menu">
              <li><%= link_to(parentlist_post_path(@post)){"Parentlist"} %></li>
              <li class="divider"></li>
              <% parents = @post.parents %>
              <% parents.reverse.take(5).each.with_index(0) do |parent, id| %>
                <li><%= link_to(diff_post_path(@post, :diff_id => parent.id))
                  {"Version: #{parents.size - id}"} %></li>
              <% end %>
            </ul>
        </div>
    <% end %>
    
    <%= link_to post_path(@post, :format => :text), :class => "btn btn-mini", 
      :title => "Text" do %>
        <i class="icon-download"></i>
    <% end %>

    <%= link_to markdown_post_path(@post), :class => "btn btn-mini",
      :title => "Markdown" do %>
        <i class="icon-flag"></i><commit_msg>changed a return that caused an error in app/views/posts/_options.html.erb<commit_after><div class="pull-right">
  <div class="input-append">
    <%= form_tag(diff_post_path(@post), :method => "get") do %>

      <% unless current_page?(post_path(@post)) %>
        <%= link_to post_path(@post), :class => "btn btn-mini",
          :title => "View" do %>
          <i class="icon-eye-open"></i>
        <% end %>
      <% end %>

      <% unless current_page?(edit_post_path(@post)) %>
        <%= link_to edit_post_path(@post), :class => "btn btn-mini",
          :title => "Edit" do %>
          <i class="icon-edit"></i>
        <% end %>
      <% end %>
    
      <% if @post.parent.present? &&
        !current_page?(root_url) && !current_page?(posts_path) %>
          <%= text_field_tag(:diff_id, nil, :class => "input-sm", 
            :placeholder => @post.parent.id.to_s) %>
          <%= button_tag(:type => "submit", :class => "btn btn-mini", 
            :title => "Diff") do %>
              <i class="icon-plus"></i>
              <i class="icon-minus"></i>
          <% end %>
        <div class="btn-group">
          <button class="btn dropdown-toggle btn-mini" data-toggle="dropdown">
            <span class="caret"></span>
          </button>
            <ul class="dropdown-menu">
              <li><%= link_to(parentlist_post_path(@post)){"Parentlist"} %></li>
              <li class="divider"></li>
              <% parents = @post.parents %>
              <% parents.reverse.take(5).each.with_index(0) do |parent, id| %>
                <li><%= link_to(diff_post_path(@post, 
                  :diff_id => parent.id)){"Version: #{parents.size - id}"} %></li>
              <% end %>
            </ul>
        </div>
    <% end %>
    
    <%= link_to post_path(@post, :format => :text), :class => "btn btn-mini", 
      :title => "Text" do %>
        <i class="icon-download"></i>
    <% end %>

    <%= link_to markdown_post_path(@post), :class => "btn btn-mini",
      :title => "Markdown" do %>
        <i class="icon-flag"></i>
{'fraction_non_alphanumeric': 0.2059186189889026, 'fraction_numerical': 0.0009864364981504315, 'mean_word_length': 2.0588235294117645, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 135, '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': '3846893', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1286, 'n_words': 240}