<commit_before><%= form_for([:admin, @page]) do |f| %>
  <% if @page.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@page.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
      <% @page.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <input type="hidden" name="user_textfilter" id="user_textfilter" value="<%= current_user.text_filter_name %>">

  <div class='row save-bar'>
    <div class='col-md-8 col-md-offset-2'>
      <span class='pull-right'>
        <%= link_to(t('.cancel'), {action: 'index'}, {class: 'btn btn-default'}) %>
        <!-- Button trigger modal -->
        <button class="btn btn-success" data-toggle="modal" type="button" data-target="#publish">
          <%= controller.action_name == "new" ? t(".publish") : t(".save") %>
        </button>
      </span>
    </div>
  </div>

  <div class='row'>
    <div class='col-md-8 col-md-offset-2' style='padding-top: 20px'>
      <%= error_messages_for 'page' %>
    </div>
  </div>

  <div class='row'>
    <div class='col-md-2' id='quicktags-block'>
      <div id='quicktags' class='pull-right'>
        <script type="text/javascript">edToolbar('page_body', '<%= @page.text_filter %>');</script>
      </div>
    </div>

    <div class='col-md-8'>
      <%= text_field 'page', 'title', :class => 'form-control', :placeholder => t('.title')  %>

      <div id='editor'>
        <%= text_area('page', 'body', {:class => 'form-control ', style: 'height: 360px', :rows => '20', placeholder: t('.type_your_post'), :"data-widearea" => "enable"}) %>
      </div>
    </div>
  </div>

  <!-- Modal -->
  <div class="modal fade" id="publish" tabindex="-1" role="dialog" aria-labelledby="publish" aria-hidden="true"><commit_msg>Fixed showing the correct editor toolbar on the page editing form<commit_after><%= form_for([:admin, @page]) do |f| %>
  <% if @page.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@page.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
      <% @page.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <input type="hidden" name="user_textfilter" id="user_textfilter" value="<%= current_user.text_filter_name %>">

  <div class='row save-bar'>
    <div class='col-md-8 col-md-offset-2'>
      <span class='pull-right'>
        <%= link_to(t('.cancel'), {action: 'index'}, {class: 'btn btn-default'}) %>
        <!-- Button trigger modal -->
        <button class="btn btn-success" data-toggle="modal" type="button" data-target="#publish">
          <%= controller.action_name == "new" ? t(".publish") : t(".save") %>
        </button>
      </span>
    </div>
  </div>

  <div class='row'>
    <div class='col-md-8 col-md-offset-2' style='padding-top: 20px'>
      <%= error_messages_for 'page' %>
    </div>
  </div>

  <div class='row'>
    <div class='col-md-2' id='quicktags-block'>
      <div id='quicktags' class='pull-right'>
        <script type="text/javascript">edToolbar('page_body', '<%= @page.text_filter.name %>');</script>
      </div>
    </div>

    <div class='col-md-8'>
      <%= text_field 'page', 'title', :class => 'form-control', :placeholder => t('.title')  %>

      <div id='editor'>
        <%= text_area('page', 'body', {:class => 'form-control ', style: 'height: 360px', :rows => '20', placeholder: t('.type_your_post'), :"data-widearea" => "enable"}) %>
      </div>
    </div>
  </div>

  <!-- Modal -->
  <div class="modal fade" id="publish" tabindex="-1" role="dialog" aria-labelledby="publish" aria-hidden="true">
{'fraction_non_alphanumeric': 0.2291497975708502, 'fraction_numerical': 0.00863697705802969, 'mean_word_length': 3.108647450110865, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 113, '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': '2973669', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1253, 'n_words': 263}