<commit_before><% # encoding: utf-8
%><%


if @event.is_cancelled?
  %>CANCELLED:
<%
end
%><%= @event.title %>

<%
time_format = @event.is_allday? ? :plain_date : :plain_datetime
event_start = @event.start_at
event_end = @event.end_at
%><%= event_start.to_s(time_format) %><%
unless event_end.blank? || event_end == event_start
  is_multi_day = event_end && (event_end.to_date > event_start.to_date)
  if is_multi_day
    %>
to <%= event_end.to_s(time_format) %><%
  elsif !(@event.is_allday?)
    %>-<%= event_end.to_s(:plain_time).lstrip! %><%
  end
end %>

<%

loc_location = @event.location
loc_address = @event.address
loc_city = @event.city
if true
  %>Location:
<%
  if loc_location.present?
    %><%= loc_location %><%
    if loc_address.present?
      %> (<%= loc_address %>)<%
    end %>
<%
  elsif loc_address.present?
    %><%= loc_address %>
<%
  end
  if loc_city.present?
    %><%= [loc_city, @event.province, @event.country].join(', ') %>
<%
  end
  loc_url = @event.location_url
  if loc_url.present?
    %><%= loc_url %>
<%
  end
  %>

<%
end


if @event.organizer?
  %>Presented by <%= @event.organizer %>.
<%
  if @event.organizer_url?
    %><%= @event.organizer_url %>
<%
  end
  %>

<%
end


%>

<%


if @event.description?
  %><%= @event.description %>

<%
end
if @event.content?
  %><%= @event.content %>

<%
end

%>

<%= event_url(@event) %>
<%

if @event.external_links.count > 0
  @event.external_links.each do |external_link|
    %><%= external_link.title %>:
<%= external_link.url %>
    <%
  end
end

%><commit_msg>[Event] fix unwanted html-encoding in plain-text show view.<commit_after><% # encoding: utf-8
%><%


if @event.is_cancelled?
  %>CANCELLED:
<%
end
%><%= @event.title.html_safe %>

<%
time_format = @event.is_allday? ? :plain_date : :plain_datetime
event_start = @event.start_at
event_end = @event.end_at
%><%= event_start.to_s(time_format) %><%
unless event_end.blank? || event_end == event_start
  is_multi_day = event_end && (event_end.to_date > event_start.to_date)
  if is_multi_day
    %>
to <%= event_end.to_s(time_format) %><%
  elsif !(@event.is_allday?)
    %>-<%= event_end.to_s(:plain_time).lstrip! %><%
  end
end %>

<%

loc_location = @event.location
loc_address = @event.address
loc_city = @event.city
if true
  %>Location:
<%
  if loc_location.present?
    %><%= loc_location.html_safe %><%
    if loc_address.present?
      %> (<%= loc_address.html_safe %>)<%
    end %>
<%
  elsif loc_address.present?
    %><%= loc_address.html_safe %>
<%
  end
  if loc_city.present?
    %><%= [loc_city, @event.province, @event.country].join(', ').html_safe %>
<%
  end
  loc_url = @event.location_url
  if loc_url.present?
    %><%= loc_url.html_safe %>
<%
  end
  %>

<%
end


if @event.organizer?
  %>Presented by <%= @event.organizer.html_safe %>.
<%
  if @event.organizer_url?
    %><%= @event.organizer_url.html_safe %>
<%
  end
  %>

<%
end


%>

<%


if @event.description?
  %><%= @event.description.html_safe %>

<%
end
if @event.content?
  %><%= @event.content.html_safe %>

<%
end

%>

<%= event_url(@event).html_safe %>
<%

if @event.external_links.count > 0
  @event.external_links.each do |external_link|
    %><%= external_link.title.html_safe %>:
<%= external_link.url.html_safe %>
    <%
  end
end

%>
{'fraction_non_alphanumeric': 0.19534598897734232, 'fraction_numerical': 0.001224739742804654, 'mean_word_length': 3.7903225806451615, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 87, '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': '4912117', 'n_tokens_mistral': 1439, 'n_tokens_neox': 1326, 'n_words': 200}