<commit_before><% nav_caption = %Q{
  <div>#{link_to(event.name, edit_admin_event_path(event))}</div>
  <div class="right">
  #{link_to(image_tag('/images/icons/web_page.png', :title => 'View public results web page', :alt => 'View public results web page'), 
     {:controller => '/results', :action => 'event', :year => event.date.year, 
     :discipline => event.discipline, :id => event.id},
     { :class => "image" }) unless event.standings.empty?}  
  </div>
} %>
<% table :caption => nav_caption, :class => "event_nav clear span-3", :insert_header => true, :columns => 2 do %>
  <% event.standings.each do |standings| -%>
  <tr id="standings_<%= standings.id %>_row">
    <td class="standings"><%= link_to standings.name, edit_admin_standings_path(standings) %></td>
    <td>
      <%= link_to_remote image_tag('/images/buttons/small_remove_solo.gif'),
      :url => admin_standings_url(standings),
      :html => { :class => "image", :id => "destroy_standings_#{standings.id}" },
      :confirm => "Really delete #{standings.name}?",
      :complete => evaluate_remote_response, 
      :method => :delete
      %>
    </td>
  </tr>
  <% if defined?(race) && !race.nil?
       races = [race]
     else
       races = standings.races
     end
  races.each do |race| %>
  <tr id="race_<%= race.id %>_row">
    <td class="race">
      <%= link_to race.name, edit_admin_race_path(race) %>
      <%= "&nbsp;&nbsp;(#{race[:field_size]})" if race[:field_size] %>
    </td>
    <td>
      <%= link_to_remote image_tag('/images/buttons/small_remove_solo.gif'),
      :url => admin_race_url(race),
      :html => { :class => "image", :id => "destroy_race_#{race.id}" },
      :complete => evaluate_remote_response, 
      :method => :delete
      %>
    </td>
  </tr>
  <% end %>
  <% end %>
  <% if event.standings.empty? %>
  <tr>
    <td colspan="2" class="empty">No results</td>
  </tr>
  <% end %>
  <% unless event.new_record? -%>
  <tr>
    <td colspan="4">
      <div class="page_buttons">
        <%= label_tag :schedule_file, "Import Results", :class => "left" %>
        <% form_tag upload_admin_event_path(event), :multipart => true, :id => "upload_form", :style => "clear" do %>
          <div>
            <%= file_field_tag "schedule_file", :style => "width: 250px;", :onchange => "$('upload_form').submit();" %>
          </div>
        <% end -%>
      </div>
    </td>
  </tr>
  <% end -%>
<% end -%><commit_msg>Fix upload results file form field name problem<commit_after><% nav_caption = %Q{
  <div>#{link_to(event.name, edit_admin_event_path(event))}</div>
  <div class="right">
  #{link_to(image_tag('/images/icons/web_page.png', :title => 'View public results web page', :alt => 'View public results web page'), 
     {:controller => '/results', :action => 'event', :year => event.date.year, 
     :discipline => event.discipline, :id => event.id},
     { :class => "image" }) unless event.standings.empty?}  
  </div>
} %>
<% table :caption => nav_caption, :class => "event_nav clear span-3", :insert_header => true, :columns => 2 do %>
  <% event.standings.each do |standings| -%>
  <tr id="standings_<%= standings.id %>_row">
    <td class="standings"><%= link_to standings.name, edit_admin_standings_path(standings) %></td>
    <td>
      <%= link_to_remote image_tag('/images/buttons/small_remove_solo.gif'),
      :url => admin_standings_url(standings),
      :html => { :class => "image", :id => "destroy_standings_#{standings.id}" },
      :confirm => "Really delete #{standings.name}?",
      :complete => evaluate_remote_response, 
      :method => :delete
      %>
    </td>
  </tr>
  <% if defined?(race) && !race.nil?
       races = [race]
     else
       races = standings.races
     end
  races.each do |race| %>
  <tr id="race_<%= race.id %>_row">
    <td class="race">
      <%= link_to race.name, edit_admin_race_path(race) %>
      <%= "&nbsp;&nbsp;(#{race[:field_size]})" if race[:field_size] %>
    </td>
    <td>
      <%= link_to_remote image_tag('/images/buttons/small_remove_solo.gif'),
      :url => admin_race_url(race),
      :html => { :class => "image", :id => "destroy_race_#{race.id}" },
      :complete => evaluate_remote_response, 
      :method => :delete
      %>
    </td>
  </tr>
  <% end %>
  <% end %>
  <% if event.standings.empty? %>
  <tr>
    <td colspan="2" class="empty">No results</td>
  </tr>
  <% end %>
  <% unless event.new_record? -%>
  <tr>
    <td colspan="4">
      <div class="page_buttons">
        <%= label_tag :results_file, "Import Results", :class => "left" %>
        <% form_tag upload_admin_event_path(event), :multipart => true, :id => "upload_form", :style => "clear" do %>
          <div>
            <%= file_field_tag "results_file", :style => "width: 250px;", :onchange => "$('upload_form').hide(); $('upload_form').submit();" %>
          </div>
        <% end -%>
      </div>
    </td>
  </tr>
  <% end -%>
<% end -%>
{'fraction_non_alphanumeric': 0.20700183187461835, 'fraction_numerical': 0.0028495827396702628, 'mean_word_length': 3.1433389544688026, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 165, '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': '2474562', 'n_tokens_mistral': 1839, 'n_tokens_neox': 1729, 'n_words': 346}