<commit_before><div class = "row">
<%= f.label :name %>
<%= f.text_field :name %>
</div>

<div class = "row">
<%= f.label :family_name, "Surname" %>
<%= f.text_field :family_name %>
</div>

<div class = "row">
<%= f.label :email %>
<%= f.text_field :email %>
</div>

<div class = "row">
<%= f.label :gender %>
<%= f.text_field :gender %>
</div>

<div class = "row">
<%= f.label :national_identity %>
<%= f.text_field :national_identity %>
</div>

<div class = "row">
<%= f.label :birth_date %>
<%= f.date_select :birth_date, include_blank: true, start_year: 1900, class: 'form-control' %>
</div>

<div class = "row">
<%= f.label :death_date %>
<%= f.date_select :death_date, include_blank: true, start_year: 1950, class: 'form-control' %>
</div>

<div class = "row">
<%= f.label :summary %>
<%= f.text_area :summary %>
</div>

<div class = "row">
<%= f.label :biography %>
<%= f.text_area :biography %>
</div>

<div class = "row">
<%= f.label :image, 'An image URL' %>
<%= f.text_field :image %>
</div>

  <aside>
    <% unless @person.contact_details.empty? %>
      <section>
        <header>
          <h2><%= Popolo::ContactDetail.model_name.human(count: @person.contact_details.size) %></h2>
        </header>
      </section>
    <% end %>
    <% unless @person.other_names.empty? %>
      <section>
        <header>
          <h2><%= Popolo::OtherName.model_name.human(count: @person.other_names.size) %></h2>
        </header>


      </section>
    <% end %>
    <% unless @person.identifiers.empty? %>
      <section>
        <header>
          <h2><%= Popolo::Identifier.model_name.human(count: @person.identifiers.size) %></h2>
        </header>


      </section>
    <% end %>
    <% unless @person.links.empty? %>
      <section>
        <header>
          <h2><%= Popolo::Link.model_name.human(count: @person.links.size) %></h2>
        </header>


      </section>
    <% end %>
    <% unless @person.sources.empty? %>
      <section>
        <header>
          <h2><%=t 'popolo/source', count: @person.sources.size, scope: [:popolo]  %></h2>
        </header>

      </section>
    <% end %>
  </aside>

  <aside>
    <% unless @person.memberships.empty? %>
      <section>
        <header>
          <h2>
            <%= Popolo::Membership.model_name.human(count: @person.memberships.size) %>
          </h2>
        </header>


      </section>
    <% end %>
  </aside>
</section>
<commit_msg>adds embedded fields to person form<commit_after><div class = "row">
<%= f.label :name %>
<%= f.text_field :name %>
</div>

<div class = "row">
<%= f.label :family_name, "Surname" %>
<%= f.text_field :family_name %>
</div>

<div class = "row">
<%= f.label :email %>
<%= f.text_field :email %>
</div>

<div class = "row">
<%= f.label :gender %>
<%= f.text_field :gender %>
</div>

<div class = "row">
<%= f.label :national_identity %>
<%= f.text_field :national_identity %>
</div>

<div class = "row">
<%= f.label :birth_date %>
<%= f.date_select :birth_date, include_blank: true, start_year: 1900, class: 'form-control' %>
</div>

<div class = "row">
<%= f.label :death_date %>
<%= f.date_select :death_date, include_blank: true, start_year: 1950, class: 'form-control' %>
</div>

<div class = "row">
<%= f.label :summary %>
<%= f.text_area :summary %>
</div>

<div class = "row">
<%= f.label :biography %>
<%= f.text_area :biography %>
</div>

<div class = "row">
<%= f.label :image, 'An image URL' %>
<%= f.text_field :image %>
</div>

  <aside>
    <% unless @person.contact_details.empty? %>
      <section>
        <header>
          <h2><%= Popolo::ContactDetail.model_name.human(count: @person.contact_details.size) %></h2>
        </header>
      </section>
    <% end %>
    <% unless @person.other_names.empty? %>
      <section>
        <header>
          <h2><%= Popolo::OtherName.model_name.human(count: @person.other_names.size) %></h2>
        </header>


      </section>
    <% end %>
    <% unless @person.identifiers.empty? %>
      <section>
        <header>
          <h2><%= Popolo::Identifier.model_name.human(count: @person.identifiers.size) %></h2>
        </header>


      </section>
    <% end %>
    <% unless @person.links.empty? %>
      <section>
        <header>
          <h2><%= Popolo::Link.model_name.human(count: @person.links.size) %></h2>
        </header>


      </section>
    <% end %>
    <% unless @person.sources.empty? %>
      <section>
        <header>
          <h2><%=t 'popolo/source', count: @person.sources.size, scope: [:popolo]  %></h2>
        </header>

      </section>
    <% end %>
  </aside>

  <aside>
    <% unless @person.memberships.empty? %>
      <section>
        <header>
          <h2>
            <%= Popolo::Membership.model_name.human(count: @person.memberships.size) %>
          </h2>
        </header>


      </section>
    <% end %>
  </aside>
</section>


<%= field_set_tag 'Sources' do %>
  <p>What sources were referenced in order to create this record?</p>
  <% f.fields_for :sources do |sf| %>
    <%= render 'admin/shared/linkable_fields', f: sf %>
  <% end %>
<% end %>

<%= field_set_tag 'Links' do %>
  <p>Links to anything else about this person.</p>
  <% f.fields_for :links do |lf| %>
    <%= render 'admin/shared/linkable_fields', f: lf %>
  <% end %>
<% end %>

<%= field_set_tag 'Contacts Details' do %>
  <p>How can you contact this person?</p>
  <% f.fields_for :contact_details do |cf| %>
    <%= render 'admin/shared/contact_details_fields', f: cf %>
  <% end %>
<% end %>

{'fraction_non_alphanumeric': 0.2096627164995442, 'fraction_numerical': 0.007292616226071103, 'mean_word_length': 2.7370572207084467, 'pattern_counts': {'":': 0, '<': 222, '<?xml version=': 0, '>': 222, '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': '4995428', 'n_tokens_mistral': 2206, 'n_tokens_neox': 1966, 'n_words': 408}