<commit_before><div class="row">
	<div class="row event-title">
		<div class="span8 offset4">
			<h3><%= event.title %></h3>
			<p><strong><%= event.event_date.strftime("%A, %B %e, %Y") %> from <%= event.start_time.strftime(" %l:%M %P") %> to <%= event.end_time.strftime(" %l:%M %P") %></strong></p>
		</div>
	</div>
	<div class="row">
		<div class="span4">
			<div class="eventphoto">
				<% if event.photo? %>
					<%= link_to image_tag(event.photo.url(:medium)),event.photo.url %>
				<% else %>
				&nbsp;
				<% end %>

			</div>
		</div>
		<div class="span8">
			<div class="">
				<div class="span10">
					<address>
						<% if event.location_url? %>
							<strong><%= link_to event.location_name, event.location_url %></strong><br />
						<% else %>
							<strong><%= event.location_name %></strong><br />
						<% end %>
						<%= event.address %><br />
						<% if event.location_phone? %>
							<abbr title="Phone">P: </abbr><%= event.location_phone %><br />
						<% end %>
					</address>
				</div>
				<% if event.photographer_name? && event.photographer_url? %>
					<p><i class="icon-camera"></i> <strong>Event Photographer:</strong> <%= link_to event.photographer_name, event.photographer_url %></p>
				<% end %>
				<% if event.photographer_name? && !event.photographer_url? %>
					<p><i class="icon-camera"></i> <strong>Event Photographer:</strong> <%= event.photographer_name %></p>
				<% end %>
			</div>
			<a href="<%="https://maps.google.com/?q=#{event.latitude}%2C#{event.longitude}"%>">
			<%= image_tag "https://maps.google.com/maps/api/staticmap?size=250x100&zoom=12&sensor=false&zoom=16&markers=#{event.latitude}%2C#{event.longitude}"
				 %></a>
			<div class="row">
				<div class="span8">
					<p><%= event.description %></p>
				</div>
			</div>

			<p>

			<% if event.facebook_url? %>
				<%= link_to "RSVP on Facebook", event.facebook_url, :class => "btn btn-primary" %>
			<% end %>

			<a href="/adopt" class="btn btn-primary">Apply to Adopt</a>
			
			<% if can_edit_events? %>
				<%= link_to  "edit", edit_event_path(event), :class => "btn btn-small" %>
			<% end %>

			<% if is_admin? %>
				  	<%= link_to  "delete",
					 			  event,
					 			  :method => :delete,
					 			  :class => "btn btn-small",
					 			  :confirm => "You sure?",
					 			  :title => "Delete #{event.title}" %>
				
			<% end %>

			</p>
		</div>
	</div>
</div>
<br />
<br /><commit_msg>event planners can delete events now<commit_after><div class="row">
  <div class="row event-title">
    <div class="span8 offset4">
      <h3><%= event.title %></h3>
      <p><strong><%= event.event_date.strftime("%A, %B %e, %Y") %> from <%= event.start_time.strftime(" %l:%M %P") %> to <%= event.end_time.strftime(" %l:%M %P") %></strong></p>
    </div>
  </div>
  <div class="row">
    <div class="span4">
      <div class="eventphoto">
        <% if event.photo? %>
          <%= link_to image_tag(event.photo.url(:medium)),event.photo.url %>
        <% else %>
        &nbsp;
        <% end %>

      </div>
    </div>
    <div class="span8">
      <div class="">
        <div class="span10">
          <address>
            <% if event.location_url? %>
              <strong><%= link_to event.location_name, event.location_url %></strong><br />
            <% else %>
              <strong><%= event.location_name %></strong><br />
            <% end %>
            <%= event.address %><br />
            <% if event.location_phone? %>
              <abbr title="Phone">P: </abbr><%= event.location_phone %><br />
            <% end %>
          </address>
        </div>
        <% if event.photographer_name? && event.photographer_url? %>
          <p><i class="icon-camera"></i> <strong>Event Photographer:</strong> <%= link_to event.photographer_name, event.photographer_url %></p>
        <% end %>
        <% if event.photographer_name? && !event.photographer_url? %>
          <p><i class="icon-camera"></i> <strong>Event Photographer:</strong> <%= event.photographer_name %></p>
        <% end %>
      </div>
      <a href="<%="https://maps.google.com/?q=#{event.latitude}%2C#{event.longitude}"%>">
      <%= image_tag "https://maps.google.com/maps/api/staticmap?size=250x100&zoom=12&sensor=false&zoom=16&markers=#{event.latitude}%2C#{event.longitude}"
         %></a>
      <div class="row">
        <div class="span8">
          <p><%= event.description %></p>
        </div>
      </div>

      <p>

      <% if event.facebook_url? %>
        <%= link_to "RSVP on Facebook", event.facebook_url, :class => "btn btn-primary" %>
      <% end %>

      <a href="/adopt" class="btn btn-primary">Apply to Adopt</a>

      <% if can_edit_events? %>
        <%= link_to  "edit", edit_event_path(event), :class => "btn btn-small" %>
      <% end %>

      <% if can_edit_events? %>
            <%= link_to  "delete",
                  event,
                  :method => :delete,
                  :class => "btn btn-small",
                  :confirm => "You sure?",
                  :title => "Delete #{event.title}" %>

      <% end %>

      </p>
    </div>
  </div>
</div>
<br />
<br />
{'fraction_non_alphanumeric': 0.2184873949579832, 'fraction_numerical': 0.008207934336525308, 'mean_word_length': 2.4464646464646465, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 209, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '796477', 'n_tokens_mistral': 2136, 'n_tokens_neox': 1741, 'n_words': 325}