<commit_before><%= form_for(@service) do |f| %>

  <% if @service.errors.any? %>
    <section class="row">
      <div id="error_explanation" class="small-12 columns alert-box alert radius">
        <p>There are <%= pluralize(@service.errors.count, "error") %>. Please fix them and try again!</p>
        <ul class="no-bullet">
        <% @service.errors.full_messages.each do |message| %>
          <li><i class="fi-alert"></i><%= message %></li>
        <% end %>
        </ul>
      </div>
    </section>
  <% end %>

  <section class="row">
    <div class="small-12 columns">
      <div class="field">
        <%= f.label :name %><br>
        <%= f.text_field :name %>
      </div>
      <div class="field">
        <%= f.label :url %><br>
        <%= f.url_field :url %>
      </div>
      <div class="field">
        <%= f.label :description %><br>
        <%= f.text_area :description %>
      </div>
      <div class="field">
        <%= f.label :service_type_id %><br>
        <%= f.collection_select :service_type_id, ServiceType.all, :id, :name,
        {:prompt => 'Please select one!'} %>
      </div>
      <div class="field">
        <%= f.label :tags %><br>
        <%= f.collection_check_boxes :tag_ids, Service.unique_sorted_tags, :id, :name %>
      </div>
      <div class="field">
        <%= f.label :image %><br>
        <%= f.text_field :image %>
      </div>
    </div>
  </section>
  <section class="row">
    <div class="small-8 small-centered text-center medium-8 columns">
      <%= f.submit "Save", class: "actions button" %>
    </div>          
  </section>
<% end %>
<commit_msg>Changed field to f.file_field<commit_after><%= form_for(@service) do |f| %>

  <% if @service.errors.any? %>
    <section class="row">
      <div id="error_explanation" class="small-12 columns alert-box alert radius">
        <p>There are <%= pluralize(@service.errors.count, "error") %>. Please fix them and try again!</p>
        <ul class="no-bullet">
        <% @service.errors.full_messages.each do |message| %>
          <li><i class="fi-alert"></i><%= message %></li>
        <% end %>
        </ul>
      </div>
    </section>
  <% end %>

  <section class="row">
    <div class="small-12 columns">
      <div class="field">
        <%= f.label :name %><br>
        <%= f.text_field :name %>
      </div>
      <div class="field">
        <%= f.label :url %><br>
        <%= f.url_field :url %>
      </div>
      <div class="field">
        <%= f.label :description %><br>
        <%= f.text_area :description %>
      </div>
      <div class="field">
        <%= f.label :service_type_id %><br>
        <%= f.collection_select :service_type_id, ServiceType.all, :id, :name,
        {:prompt => 'Please select one!'} %>
      </div>
      <div class="field">
        <%= f.label :tags %><br>
        <%= f.collection_check_boxes :tag_ids, Service.unique_sorted_tags, :id, :name %>
      </div>
      <div class="field">
        <%= f.label :image %><br>
        <%= f.file_field :image %>
      </div>
    </div>
  </section>
  <section class="row">
    <div class="small-8 small-centered text-center medium-8 columns">
      <%= f.submit "Save", class: "actions button" %>
    </div>          
  </section>
<% end %>

{'fraction_non_alphanumeric': 0.20166769610870908, 'fraction_numerical': 0.0037059913526868438, 'mean_word_length': 2.2618328298086605, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 123, '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': '5312037', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1081, 'n_words': 243}