<commit_before><p class="breadcrumb"><%= link_to 'Home', root_path %> > <%= link_to 'Events', events_path %> > <%= link_to @event.name, event_path(@event) %> > Application</p>

<h1 class="page-title"><span class="page-title-firstword">Application for</span> <%= @event.name %></h1>
<p class="page-description">Please fill out this form. Fields marked with * are required.</p>
<% if @event.applicant_directions.present? %>
  <p class="page-description markdownize"><%= @event.applicant_directions %></p>
<% end %>

<p>The deadline for application is: <%= @event.deadline %> UTC</p>

<%= form_for @application, url: event_applications_path(params[:event_id]), builder: ::FormBuilder do |f| %>

  <% if @application.errors.any? %>
    <div class="error">
      <p><%= pluralize(@application.errors.count, "error") %> stopped this application from being saved:</p>
      <ul>
        <% @application.errors.messages.each do |field, messages| %>
          <li><%= @application.class.human_attribute_name(field) %> <%= join_messages(messages) %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <section class="box">
    <%= f.form_field :text_area, :attendee_info_1, "Why do you want to attend #{@event.name} and what especially do you look forward to learning?" %>
    <%= f.form_field :text_area, :attendee_info_2, "Please share with us why you're applying for a diversity ticket. (1-2 sentences is enough, please only share what you're comfortable with)" %>
    <%= f.form_field :text_field, :name, 'Name' %>
    <%= f.form_field :text_field, :email, 'Email' %>
    <%= f.form_field :text_field, :email_confirmation, 'Email Confirmation' %>

    <% if @event.travel_funded? %><commit_msg>Make wording concerning deadline for applications more precise<commit_after><p class="breadcrumb"><%= link_to 'Home', root_path %> > <%= link_to 'Events', events_path %> > <%= link_to @event.name, event_path(@event) %> > Application</p>

<h1 class="page-title"><span class="page-title-firstword">Application for</span> <%= @event.name %></h1>
<p class="page-description">Please fill out this form. Fields marked with * are required.</p>
<% if @event.applicant_directions.present? %>
  <p class="page-description markdownize"><%= @event.applicant_directions %></p>
<% end %>

<p>The application deadline is: <%= @event.deadline %> midnight UTC</p>

<%= form_for @application, url: event_applications_path(params[:event_id]), builder: ::FormBuilder do |f| %>

  <% if @application.errors.any? %>
    <div class="error">
      <p><%= pluralize(@application.errors.count, "error") %> stopped this application from being saved:</p>
      <ul>
        <% @application.errors.messages.each do |field, messages| %>
          <li><%= @application.class.human_attribute_name(field) %> <%= join_messages(messages) %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <section class="box">
    <%= f.form_field :text_area, :attendee_info_1, "Why do you want to attend #{@event.name} and what especially do you look forward to learning?" %>
    <%= f.form_field :text_area, :attendee_info_2, "Please share with us why you're applying for a diversity ticket. (1-2 sentences is enough, please only share what you're comfortable with)" %>
    <%= f.form_field :text_field, :name, 'Name' %>
    <%= f.form_field :text_field, :email, 'Email' %>
    <%= f.form_field :text_field, :email_confirmation, 'Email Confirmation' %>

    <% if @event.travel_funded? %>
{'fraction_non_alphanumeric': 0.17681159420289855, 'fraction_numerical': 0.0034782608695652175, 'mean_word_length': 4.495222929936306, 'pattern_counts': {'":': 0, '<': 89, '<?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': '3610781', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1077, 'n_words': 285}