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

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

  <!-- the customer id needs to be passed in this action -->
  <%= f.hidden_field :customer_id, :value=>@customer.id %>

  <fieldset class="new-trip">

    <ol class="section first">
      <li class="selfclear">
        <label for="customer">Customer:</label>
        <strong><%= @customer.name %></strong>
      </li>

      <li class="selfclear timepicker">
        <%= f.label :pickup_time, "Pickup Time:" %>
        <%= f.text_field :pickup_time %>
      </li>

      <li class="selfclear timepicker">
        <%= f.label :appointment_time, "Appointment Time:" %>
        <%= f.text_field :appointment_time %>
      </li>

      <li class="selfclear"><commit_msg>make date edit use local dates<commit_after><%= form_for(@trip) do |f| %>
  <% if @trip.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@trip.errors.count, "error") %> prohibited this trip from being saved:</h2>

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

  <!-- the customer id needs to be passed in this action -->
  <%= f.hidden_field :customer_id, :value=>@customer.id %>

  <fieldset class="new-trip">

    <ol class="section first">
      <li class="selfclear">
        <label for="customer">Customer:</label>
        <strong><%= @customer.name %></strong>
      </li>

      <li class="selfclear timepicker">
        <%= f.label :pickup_time, "Pickup Time:" %>
        <%= f.text_field :pickup_time, :value=>@trip.pickup_time %>
      </li>

      <li class="selfclear timepicker">
        <%= f.label :appointment_time, "Appointment Time:" %>
        <%= f.text_field :appointment_time, :value=>@trip.pickup_time %>
      </li>

      <li class="selfclear">
{'fraction_non_alphanumeric': 0.1934566145092461, 'fraction_numerical': 0.001896633475580844, 'mean_word_length': 2.6759581881533103, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 77, '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': '5692365', 'n_tokens_mistral': 773, 'n_tokens_neox': 692, 'n_words': 158}