<commit_before><%= form.errors %>

<%= form.label :person_id, 'Person' %>
<%= form.select :person_id,
                options_from_collection_for_select(Person.all, 'id', 'name', form.object.person_id),
                {include_blank: true},
                class: 'chzn-select',
                data: { placeholder: "Choose person..." },
                disabled: !form.object.new_record? %>

<% if form.object.new_record? %>
  <p>Once an appointment has been created the person cannot be changed, to preserve this person's relationship to any associated speeches.</p>
<% end %>

<%= form.label :started_at %>
<%= form.date_select :started_at, { include_blank: true, start_year: 1730 }, { :class => "date" } %>

<% if params[:make_current].blank? %>
  <%= form.label :ended_at %>
  <%= form.date_select :ended_at, { include_blank: true, start_year: 1730 }, { :class => "date" } %>
<% end %>

<% if params[:make_current] %>
  <%= form.hidden_field :make_current, value: true %>
<% end %><commit_msg>Role appointments go waaaaaay back<commit_after><%= form.errors %>

<%= form.label :person_id, 'Person' %>
<%= form.select :person_id,
                options_from_collection_for_select(Person.all, 'id', 'name', form.object.person_id),
                {include_blank: true},
                class: 'chzn-select',
                data: { placeholder: "Choose person..." },
                disabled: !form.object.new_record? %>

<% if form.object.new_record? %>
  <p>Once an appointment has been created the person cannot be changed, to preserve this person's relationship to any associated speeches.</p>
<% end %>

<%= form.label :started_at %>
<%= form.date_select :started_at, { include_blank: true, start_year: 1700 }, { :class => "date" } %>

<% if params[:make_current].blank? %>
  <%= form.label :ended_at %>
  <%= form.date_select :ended_at, { include_blank: true, start_year: 1700 }, { :class => "date" } %>
<% end %>

<% if params[:make_current] %>
  <%= form.hidden_field :make_current, value: true %>
<% end %>
{'fraction_non_alphanumeric': 0.17038137691926697, 'fraction_numerical': 0.0079247152055473, 'mean_word_length': 3.400871459694989, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 39, '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': '6712600', 'n_tokens_mistral': 716, 'n_tokens_neox': 624, 'n_words': 154}