<commit_before><%= semantic_form_for(@post, :html => {:novalidate => true}) do |f| %>
  <table>
    <tr>
      <td>
        <div class="">
          <div class="">
            <h3>Post Details</h3>
          </div>
          <div class="">
            <%= f.semantic_errors %>

            <%= f.inputs do %>
              <%= f.input :title, :label => "Title", :required => true %>
              <%= f.input :body, :label => "Body" %>
              <%= f.input :category, :as => :select, :collection => Category.all, :label => "Category", :include_blank => false %>
              <%= f.input :is_published, :label => "Post Published" %>
            <% end %>
          </div>
        </div>
      </td>
      <td>
        <div class="">
          <div class="">
            <h3>Images</h3>
          </div>
          <div class="">
            <%= f.semantic_fields_for :images do |image| %>
              <%= render "shared/image_fields", :f => image  %>
            <% end %>

            <%= link_to_add_fields content_tag(:span, "Add Image", :class => ''), f, :images, :class => 'add-image-form-button' %>
          </div>
        </div>
      </td>
    </tr>
  </table>

  <div class="">
    <%= f.actions  do %>
      <%= f.action :submit, :as => :button, :button_html => { :class => 'form-button' } %>
    <% end %>
  </div>
<% end %><commit_msg>styling post form<commit_after><%= semantic_form_for(@post, :html => {:novalidate => true}) do |f| %>
  <table>
    <tr>
      <td style="width: 400px;">
        <div class="">
          <div class="">
            <h3>Post Details</h3>
          </div>
          <div class="">
            <%= f.semantic_errors %>

            <%= f.inputs do %>
              <%= f.input :title, :label => "Title<br>".html_safe, :required => true %>
              <%= f.input :body, :label => "Body<br>".html_safe %>
              <%= f.input :category, :as => :select, :collection => Category.all, :label => "Category<br>".html_safe, :include_blank => false %>
              <%= f.input :is_published, :label => "Post Published" %>
            <% end %>
          </div>
        </div>
      </td>
      <td>
        <div class="">
          <div class="">
            <h3>Images</h3>
          </div>
          <div class="">
            <%= f.semantic_fields_for :images do |image| %>
              <%= render "shared/image_fields", :f => image  %>
            <% end %>

            <%= link_to_add_fields content_tag(:button, "Add Image", :class => ''), f, :images, :class => 'add-image-form-button' %>
          </div>
        </div>
      </td>
    </tr>
  </table>

  <div class="">
    <%= f.actions  do %>
      <%= f.action :submit, :as => :button, :button_html => { :class => 'form-button' } %>
    <% end %>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.210943124550036, 'fraction_numerical': 0.003959683225341973, 'mean_word_length': 1.6980582524271846, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 122, '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': '6789984', 'n_tokens_mistral': 976, 'n_tokens_neox': 890, 'n_words': 198}