<commit_before><h1><%= "#{@location.name}'s" if @location %> Event Details -
  <%= link_to "edit", @location ? edit_location_event_path(@location) : edit_event_path(@event) %> |
  <%= link_to "delete", event_path(@event), method: :delete, data: { confirm: "Are you sure?"} %>
</h1>


<h3>Name: <%= @event.name %></h3>
<h3>Start Time: <%= formatted_time(@event.start_time) %></h3>
<h3>End Time: <%= formatted_time(@event.end_time) %></h3>
<br>

<% if !@location %>
  <h1>Location</h1>
  <h3>Name: <%= link_to @event.location.name, location_path(@event.location) %></h3>
  <br>
<% end %>

<h1>Participants</h1>
<ol>
  <% @event.participants.each do |participant| %>
    <li><%= link_to participant_to_s(participant), participant_path(participant) %></li>
  <% end %>  
</ol><commit_msg>Changed events show page to account for load participants ajax request<commit_after><h1><%= "#{@location.name}'s" if @location %> Event Details -
  <%= link_to "edit", @location ? edit_location_event_path(@location) : edit_event_path(@event) %> |
  <%= link_to "delete", event_path(@event), method: :delete, data: { confirm: "Are you sure?"} %>
</h1>


<h3>Name: <%= @event.name %></h3>
<h3>Start Time: <%= formatted_time(@event.start_time) %></h3>
<h3>End Time: <%= formatted_time(@event.end_time) %></h3>
<br>

<% if !@location %>
  <h1>Location</h1>
  <h3>Name: <%= link_to @event.location.name, location_path(@event.location) %></h3>
  <br>
<% end %>

<% if @event.participants.any? %>
  <h1>Participants</h1>
  <%= link_to "Load Participants", event_participants_path(@event), class: "load_participants" %>
  <div class="participants"> 
  </div>
<% else %>
  <h1>No participants for this event</h1>
<% end %>
{'fraction_non_alphanumeric': 0.22097819681791397, 'fraction_numerical': 0.01767825574543312, 'mean_word_length': 5.4562737642585555, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 0, '>': 68, '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': '4713960', 'n_tokens_mistral': 700, 'n_tokens_neox': 629, 'n_words': 128}