<commit_before><%= form_for([:admin, @event]) do |f| %>
  <% if @event.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2>

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

  <div class="field">
    <%= f.label :title %><br>
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label :description %><br>
    <%= f.text_field :description %>
  </div>
  <div class="field">
    <%= f.label :event_date %><br>
    <%= f.date_select :event_date %>
  </div>
  <div class="field">
    <%= f.label :coach_reg_start %><br>
    <%= f.date_select :coach_reg_start %>
  </div>
  <div class="field">
    <%= f.label :coach_reg_end %><br>
    <%= f.date_select :coach_reg_end %>
  </div>
  <div class="field">
    <%= f.label :attendee_reg_start %><br>
    <%= f.date_select :attendee_reg_start %>
  </div>
  <div class="field">
    <%= f.label :attendee_reg_end %><br>
    <%= f.date_select :attendee_reg_end %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %><commit_msg>allow empty registration dates in events form<commit_after><%= form_for([:admin, @event]) do |f| %>
  <% if @event.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2>

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

  <div class="field">
    <%= f.label :title %><br>
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label :description %><br>
    <%= f.text_field :description %>
  </div>
  <div class="field">
    <%= f.label :event_date %><br>
    <%= f.date_select :event_date %>
  </div>
  <div class="field">
    <%= f.label :coach_reg_start %><br>
    <%= f.date_select :coach_reg_start, include_blank: true %>
  </div>
  <div class="field">
    <%= f.label :coach_reg_end %><br>
    <%= f.date_select :coach_reg_end, include_blank: true %>
  </div>
  <div class="field">
    <%= f.label :attendee_reg_start %><br>
    <%= f.date_select :attendee_reg_start, include_blank: true %>
  </div>
  <div class="field">
    <%= f.label :attendee_reg_end %><br>
    <%= f.date_select :attendee_reg_end, include_blank: true %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.2179080824088748, 'fraction_numerical': 0.001584786053882726, 'mean_word_length': 3.0791599353796446, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '4107619', 'n_tokens_mistral': 1054, 'n_tokens_neox': 970, 'n_words': 194}