<commit_before><div class="row">
<h1>New Event</h1>
<%= form_for(@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 :description %>
    <%= f.text_area :description %>
  </div>

  <div class="field">
    <%= f.label :address %>
    <%= f.text_field :address %>
  </div>

  <div class="field">
    <%= f.label :shift_length %>
    <%= f.number_field :shift_length %>
  </div>


  <h2>Shifts</h2>
  <%= f.nested_fields_for :shifts do |ff| %>

    <%= ff.remove_nested_fields_link %>

    <div class="field">
      <%= ff.label :volunteers_needed %>
      <%= ff.number_field :volunteers_needed %>
    </div>

    <div class="field">
      <%= ff.label :starts_at %>
      <%= ff.datetime_field :starts_at %>
    </div>

    <div class="field">
      <%= ff.label :ends_at %>
      <%= ff.datetime_field :ends_at %>
    </div>

  <% end %>
  <%= f.add_nested_fields_link :shifts %>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
</div>
<commit_msg>Bootstrap-ify the new event form<commit_after><div class="row">
  <div class="col-sm-4 col-sm-offset-4">
    <h1>New Event</h1>
    <%= form_for(@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="form-group">
        <%= f.label :description %>
        <%= f.text_area :description, class: 'form-control' %>
      </div>

      <div class="form-group">
        <%= f.label :address %>
        <%= f.text_field :address, class: 'form-control' %>
      </div>

      <div class="form-group">
        <%= f.label :shift_length %>
        <%= f.number_field :shift_length, class: 'form-control' %>
      </div>


      <h2>Shifts</h2>
      <%= f.nested_fields_for :shifts do |ff| %>

        <%= ff.remove_nested_fields_link %>

        <div class="form-group">
          <%= ff.label :volunteers_needed %>
          <%= ff.number_field :volunteers_needed, class: 'form-control' %>
        </div>

        <div class="form-group">
          <%= ff.label :starts_at %>
          <%= ff.datetime_field :starts_at, class: 'form-control' %>
        </div>

        <div class="form-group">
          <%= ff.label :ends_at %>
          <%= ff.datetime_field :ends_at, class: 'form-control' %>
        </div>

      <% end %>
      <%= f.add_nested_fields_link :shifts %>

      <div class="actions">
        <%= f.submit %>
      </div>
    <% end %>
  </div>
</div>

{'fraction_non_alphanumeric': 0.2003338898163606, 'fraction_numerical': 0.004674457429048414, 'mean_word_length': 2.221505376344086, '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': '7460310', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1038, 'n_words': 196}