<commit_before><section id="blue-container">
  <div class="container">
    <div class="row">

    <div class="col-sm-12 text-center">
      <%= form_for(service, class: "form-horizontal") do |f| %>

      <div class="control-group">
        <div class="controls">
          <div class="row">
            <%= f.text_field :title, class: "input-xlarge col-xs-8 col-xs-offset-2", placeholder: 'Service Name' %><br>
          </div>
        </div>
      </div>

      <div class="control-group">
        <div class="controls">
          <div class="row">
            <%= f.number_field :price, class: "input-xlarge col-xs-8 col-xs-offset-2", placeholder: "Price" %><br>
          </div>
        </div>
      </div>

<% if !params[:category_id] %>
      <div class="control-group">
        <div class="controls">
          <div class="row">
            <%= f.collection_select(:category_id, Category.all, :id, :title, {prompt: "Please Select a Category"}, {class: "input-xlarge col-xs-8 col-xs-offset-2", placeholder: "COJ"}) %><br>
          </div>
        </div>
      </div>
      <% end %>

      <%= f.hidden_field :category_id %>
      <div class="control-group">
        <div class="controls">
          <div class="row margin-20">
            <%= f.submit class: "btn-main col-xs-8 col-xs-offset-2" %>
          </div>
        </div>
      </div>

          <% end %>


      <div class="control-group">
        <div class="controls">
          <div class="row">
            <%= link_to 'Cancel', :back, class: "btn-main col-xs-8 col-xs-offset-2" %>
          </div>
        </div>
      </div>

     </div>
     
    </div><!--End Row-->
  </div><!--End Container-->
</section>
<commit_msg>fix indentation and formatting<commit_after><section id="blue-container">
  <div class="container">
    <div class="row">

      <div class="col-sm-12 text-center">
        <%= form_for(service, class: "form-horizontal") do |f| %>

          <div class="control-group">
            <div class="controls">
              <div class="row">
                <%= f.text_field :title, class: "input-xlarge col-xs-8 col-xs-offset-2", placeholder: 'Service Name' %><br>
              </div>
            </div>
          </div>

          <div class="control-group">
            <div class="controls">
              <div class="row">
                <%= f.number_field :price, class: "input-xlarge col-xs-8 col-xs-offset-2", placeholder: "Price" %><br>
              </div>
            </div>
          </div>

          <% if !params[:category_id] %>
            <div class="control-group">
              <div class="controls">
                <div class="row">
                  <%= f.collection_select(:category_id, Category.all, :id, :title, {prompt: "Please Select a Category"}, {class: "input-xlarge col-xs-8 col-xs-offset-2", placeholder: "COJ"}) %><br>
                </div>
              </div>
            </div>
          <% end %>

          <%= f.hidden_field :category_id %>
          <div class="control-group">
            <div class="controls">
              <div class="row margin-20">
                <%= f.submit class: "btn-main col-xs-8 col-xs-offset-2" %>
              </div>
            </div>
          </div>
        
        <% end %>

        <div class="control-group">
          <div class="controls">
            <div class="row">
              <%= link_to 'Cancel', :back, class: "btn-main col-xs-8 col-xs-offset-2" %>
            </div>
          </div>
        </div>

      </div>
     
    </div><!--End Row-->
  </div><!--End Container-->
</section>

{'fraction_non_alphanumeric': 0.18751749230338652, 'fraction_numerical': 0.00783655191715645, 'mean_word_length': 1.7075757575757575, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, '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': '648022', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1104, 'n_words': 241}