<commit_before><%= nested_form_for( [:admin, @contact],  html: {class: 'form-horizontal'} ) do |f| %>
  <% if @contact.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@contact.errors.count, "error") %> prohibited this contact from being saved:</h2>

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

  <div class="form-group">
    <%= f.label :name, class: "col-lg-2 control-label"%>
    <div class="col-lg-7">
      <%= f.text_field :name, class: "form-control" %>
    </div>
  </div>
  <div class="form-group">
      <%= f.label :surname, class: "col-lg-2 control-label"%>
      <div class="col-lg-7">
        <%= f.text_field :surname, class: "form-control" %>
      </div>
  </div>

  <div class="form-group">
    <%= f.label :telephone, class: "col-lg-2 control-label"%>
    <div class="col-lg-7">
      <%= f.text_field :telephone, class: "form-control" %>
    </div>
  </div>

  <div class="form-group">
      <%= f.label :email, class: "col-lg-2 control-label"%>
      <div class="col-lg-7">
        <%= f.text_field :email, class: "form-control" %>
      </div>
  </div>
    <% f.fields_for :emails do |form| %>
    <div class="form-group"> 
    <%= form.label :email, class: "col-lg-1 control-label" %>
    <div class="col-lg-6">
      <%= form.text_field :email, class: "form-control " %>
    </div>
    <%= form.link_to_remove "Remove" %>
    </div>
   
    
    <% end %>

    <div class="form-group">
        <div class="col-lg-10 col-lg-offset-2">
         <%= f.link_to_add "Add", :emails, class: "btn-default btn-sm"%>
        </div> 
    </div> 

      <div class="form-group">
    <%= f.label :skype, class: "col-lg-2 control-label"%>
    <div class="col-lg-7">
      <%= f.text_field :skype, class: "form-control" %>
    </div>
    </div>
  <div class="form-group">
    <div class="col-lg-10 col-lg-offset-2">
      <%= f.submit class: "btn btn-primary"%>
    </div>
  </div>
<% end %>

<commit_msg>fixing merge conflicts after pull for contacts form<commit_after><%= nested_form_for( [:admin, @contact],  html: {class: 'form-horizontal'} ) do |f| %>
  <% if @contact.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@contact.errors.count, "error") %> prohibited this contact from being saved:</h2>

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

  <div class="form-group">
    <%= f.label :name, class: "col-lg-2 control-label"%>
    <div class="col-lg-7">
      <%= f.text_field :name, class: "form-control" %>
    </div>
  </div>
  <div class="form-group">
      <%= f.label :surname, class: "col-lg-2 control-label"%>
      <div class="col-lg-7">
        <%= f.text_field :surname, class: "form-control" %>
      </div>
  </div>

  <div class="form-group">
    <%= f.label :telephone, class: "col-lg-2 control-label"%>
    <div class="col-lg-7">
      <%= f.text_field :telephone, class: "form-control" %>
    </div>
  </div>

  <div class="form-group">
      <%= f.label :email, class: "col-lg-2 control-label"%>
      <div class="col-lg-7">
        <%= f.text_field :email, class: "form-control" %>
      </div>
  </div>

    <% f.fields_for :emails do |form| %>
    <div class="form-group"> 
    <%= form.label :email, class: "col-lg-1 control-label" %>
    <div class="col-lg-6">
      <%= form.text_field :email, class: "form-control " %>
    </div>
    <%= form.link_to_remove "Remove" %>
    </div>
   
    
    <% end %>


    <div class="form-group">
        <div class="col-lg-10 col-lg-offset-2">
         <%= f.link_to_add "Add", :emails, class: "btn-default btn-sm"%>
        </div> 
    </div> 

      <div class="form-group">
    <%= f.label :skype, class: "col-lg-2 control-label"%>
    <div class="col-lg-7">
      <%= f.text_field :skype, class: "form-control" %>
    </div>
    </div>
  <div class="form-group">
    <div class="col-lg-10 col-lg-offset-2">
      <%= f.submit class: "btn btn-primary"%>
    </div>
  </div>
<% end %>


{'fraction_non_alphanumeric': 0.22098646034816247, 'fraction_numerical': 0.009671179883945842, 'mean_word_length': 2.488195615514334, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 133, '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': '3210264', 'n_tokens_mistral': 1667, 'n_tokens_neox': 1563, 'n_words': 317}