<commit_before><%= form.inputs do %>
<%= form.input :name %>
<%= form.input :postal_address %>

<%= form.inputs 'Phone numbers' do %>
  <%= form.semantic_fields_for :phone_numbers, phone_numbers_for(form.object) do |phone_number| %>
    <div class="phone-group">
      <%= phone_number.input :kind, :collection => PhoneNumber::KINDS %>
      <%= phone_number.input :label %>
      <%= phone_number.input :value %>
      
      <%= form.submit 'Delete', :class => 'delete-item' %>
    </div>
  <% end %>
  <%= form.submit 'Add new phone number', :class => 'new-item' %>
<% end %>

<%= form.input :email_address %>
<%= form.input :website_url %>
<%= form.input :opening_hours %>


<div class="format-controls">
  
  <li><%= link_to 'Cancel', form.object.new_record? ? contacts_path : contact_path(form.object), :class => 'button' %></li>
  <li><%= form.submit "#{form.object.new_record? ? 'Create' : 'Update'} Contact", :class => form.object.new_record? ? 'create' : 'update' %></li>
  
</div>

<% end %><commit_msg>Clean up contact form partial<commit_after><%= form.inputs do %>
  <%= form.input :name %>
  <%= form.input :postal_address %>

  <%= form.inputs 'Phone numbers' do %>
    <%= form.semantic_fields_for :phone_numbers, phone_numbers_for(form.object) do |phone_number| %>
      <div class="phone-group">
        <%= phone_number.input :kind, :collection => PhoneNumber::KINDS %>
        <%= phone_number.input :label %>
        <%= phone_number.input :value %>

        <%= form.submit 'Delete', :class => 'delete-item' %>
      </div>
    <% end %>

    <%= form.submit 'Add new phone number', :class => 'new-item' %>
  <% end %>

  <%= form.input :email_address %>
  <%= form.input :website_url %>
  <%= form.input :opening_hours %>

  <div class="format-controls">
    <li><%= link_to 'Cancel', form.object.new_record? ? contacts_path : contact_path(form.object), :class => 'button' %></li>
    <li><%= form.submit "#{form.object.new_record? ? 'Create' : 'Update'} Contact", :class => form.object.new_record? ? 'create' : 'update' %></li>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.20956059874456784, 'fraction_numerical': 0.0, 'mean_word_length': 3.774193548387097, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 65, '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': '343308', 'n_tokens_mistral': 781, 'n_tokens_neox': 697, 'n_words': 144}