<commit_before><table class="table">
  <thead>
    <tr>
      <th>Start Time</th>
      <th>End Time</th>
      <% if current_user == event.manager %>
        <th>Attendees</th>
      <% end %>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% event_times.each do |event_time| %>
      <tr>
        <td><%= event_time.start_time.strftime('%A %b %e @ %l:%M %p') %></td>
        <td><%= event_time.end_time.strftime('%A %b %e @ %l:%M %p') %></td>
        <% if current_user == event.manager %>
          <td><%= link_to "#{event_time.tickets.count}", event_event_time_path(event, event_time), class: "btn btn-primary" %></td>
        <% end %>
        <% if current_user == event.manager && event_time.upcoming? %>
          <td><%= link_to "edit", edit_event_event_time_path(event, event_time), class: "btn btn-default" %></td>
        <% elsif event_time.upcoming? %>
          <td>
            <%= form_for(ticket) do |f| %>
              <%= f.hidden_field :event_time_id, :value => event_time.id %>
              <%= f.submit 'buy ticket', class: 'btn btn-primary' %>
            <% end %>
          </td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table><commit_msg>updated partial to use datetime format helper<commit_after><table class="table">
  <thead>
    <tr>
      <th>Start Time</th>
      <th>End Time</th>
      <% if current_user == event.manager %>
        <th>Attendees</th>
      <% end %>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% event_times.each do |event_time| %>
      <tr>
        <td><%= datetime_formatter(event_time.start_time) %></td>
        <td><%= datetime_formatter(event_time.end_time) %></td>
        <% if current_user == event.manager %>
          <td><%= link_to "#{event_time.tickets.count}", event_event_time_path(event, event_time), class: "btn btn-primary" %></td>
        <% end %>
        <% if current_user == event.manager && event_time.upcoming? %>
          <td><%= link_to "edit", edit_event_event_time_path(event, event_time), class: "btn btn-default" %></td>
        <% elsif event_time.upcoming? %>
          <td>
            <%= form_for(ticket) do |f| %>
              <%= f.hidden_field :event_time_id, :value => event_time.id %>
              <%= f.submit 'buy ticket', class: 'btn btn-primary' %>
            <% end %>
          </td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.19463087248322147, 'fraction_numerical': 0.0, 'mean_word_length': 2.2448979591836733, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 95, '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': '3614759', 'n_tokens_mistral': 888, 'n_tokens_neox': 817, 'n_words': 165}