<commit_before><h1><%= @event.name %></h1>
<p><%= @event.date.strftime("%m/%d/%y")%></p>
<p><%= @event.time.strftime("%l:%M %p") %></p>
<p><%= @event.location %></p>
<h2>Attendees</h2>
<ul><% @event.attending_users.each do |user| %>
  <li><%= user.email%></li>
<% end %></ul>

<% if @event.attending_users.include?(User.find(session[:user_id])) %>

	<p>You are bringing <%= @event_wine.wine.name %>. <%= @event_wine.wine.description %></p>

  <%= button_to "Edit Event", edit_event_path(@event), :method => :get, :class =>"button [radius round]" %>
<% end %>

<!-- User shouldn't see either of these if they've already taken all of their tastings, but they should see them if they've only taken some of them. -->

<% if Time.now > @event.date %>
	<%= button_to "Start Tasting!", "/events/#{@event.id}/quiz", :method => :get, :class =>"button [radius round]", :id => "taste" %>
<% end  %>
<% if Time.now > @event.time && @user_tastings != nil  %><commit_msg>Temporarily remove validation for see results button<commit_after><h1><%= @event.name %></h1>
<p><%= @event.date.strftime("%m/%d/%y")%></p>
<p><%= @event.time.strftime("%l:%M %p") %></p>
<p><%= @event.location %></p>
<h2>Attendees</h2>
<ul><% @event.attending_users.each do |user| %>
  <li><%= user.email%></li>
<% end %></ul>

<% if @event.attending_users.include?(User.find(session[:user_id])) %>

	<p>You are bringing <%= @event_wine.wine.name %>. <%= @event_wine.wine.description %></p>

  <%= button_to "Edit Event", edit_event_path(@event), :method => :get, :class =>"button [radius round]" %>
<% end %>

<!-- User shouldn't see either of these if they've already taken all of their tastings, but they should see them if they've only taken some of them. -->

<% if Time.now > @event.date %>
	<%= button_to "Start Tasting!", "/events/#{@event.id}/quiz", :method => :get, :class =>"button [radius round]", :id => "taste" %>
<% end  %>
<% if Time.now > @event.time %>
{'fraction_non_alphanumeric': 0.2516865594187857, 'fraction_numerical': 0.0041515308770108976, 'mean_word_length': 4.738095238095238, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 83, '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': '2621083', 'n_tokens_mistral': 774, 'n_tokens_neox': 703, 'n_words': 178}