<commit_before><% content_for :title do %>
    <% if params[:search].present? %>
        <% "OpenSplitTime: #{@event_display.name} - Results - #{params[:search]}" %>
    <% else %>
        <% "OpenSplitTime: #{@event_display.name} - Results" %>
    <% end %>
<% end %>
<div class="row header">
  <div class="col-xs-5">
    <h2><strong><%= "#{@event_display.name}: Results" %></strong>
    </h2>
    <h4>
      <%= "Start Time: #{l(@event_display.event_start_time, format: :full_with_weekday)} #{l(@event_display.event_start_time, format: :ampm)}" %>
      <br/>
      Run on <%= link_to @event_display.course_name, course_path(@event_display.course) %>
      <% if @event_display.organization %>
          <br/>Organized
          under <%= link_to @event_display.organization_name, organization_path(@event_display.organization) %>
      <% end %>
    </h4>
  </div>
  <div class="col-xs-7 page-navigation">
    <div class="row">
      <%= link_to_beacon_button(@event_display) %>
      <%= link_to_enter_live_entry(@event_display, @current_user) %>
      <%= render 'view_buttons', view_object: @event_display %>
    </div>
    <div class="row">
      <%= render 'feature_buttons', view_object: @event_display %>
    </div>
  </div>
</div>

<% unless (@event_display.started_efforts_count < 1) && (@event_display.unstarted_efforts_count < 1) %>
    <%= render 'effort_lookup', event: @event_display.event %>
<% end %>

<% if @event_display.started_efforts_count < 1 %>
    <strong>No efforts have started yet.</strong>
<% else %>
    <% if @event_display.filtered_ranked_efforts_count > 0 %>
        <hr>
        <div class="row">
          <div class="col-xs-8">
            <strong><%= "Started efforts: Returned #{@event_display.filtered_ranked_efforts_count} of #{@event_display.started_efforts_count} for #{@event_display.name}" %></strong>
          </div>
        </div>
        <div class="row">
          <div class="col-xs-8">
            <%= will_paginate(@event_display.filtered_ranked_efforts, param_name: 'started_page', inner_window: 2, outer_window: 0) %>
          </div>
        </div>
<commit_msg>Improve formatting in events/show view.<commit_after><% content_for :title do %>
    <% if params[:search].present? %>
        <% "OpenSplitTime: #{@event_display.name} - Results - #{params[:search]}" %>
    <% else %>
        <% "OpenSplitTime: #{@event_display.name} - Results" %>
    <% end %>
<% end %>
<div class="row header">
  <div class="col-xs-5">
    <h2><strong><%= "#{@event_display.name}: Results" %></strong>
    </h2>
    <h4>
      <%= "Start Time: #{l(@event_display.event_start_time, format: :full_with_weekday)} #{l(@event_display.event_start_time, format: :ampm)}" %>
      <br/>
      Run on <%= link_to @event_display.course_name, course_path(@event_display.course) %>
      <% if @event_display.organization %>
          <br/>Organized
          under <%= link_to @event_display.organization_name, organization_path(@event_display.organization) %>
      <% end %>
    </h4>
  </div>
  <div class="col-xs-7 page-navigation">
    <div class="row">
      <%= link_to_beacon_button(@event_display) %>
      <%= link_to_enter_live_entry(@event_display, @current_user) %>
      <%= render 'view_buttons', view_object: @event_display %>
    </div>
    <div class="row">
      <%= render 'feature_buttons', view_object: @event_display %>
    </div>
  </div>
</div>

<% unless (@event_display.started_efforts_count < 1) && (@event_display.unstarted_efforts_count < 1) %>
    <%= render 'effort_lookup', event: @event_display.event %>
<% end %>

<% if @event_display.started_efforts_count < 1 %>
    <hr>
    <strong>No efforts have started yet.</strong>
<% else %>
    <% if @event_display.filtered_ranked_efforts_count > 0 %>
        <hr>
        <div class="row">
          <div class="col-xs-8">
            <strong><%= "Started efforts: Returned #{@event_display.filtered_ranked_efforts_count} of #{@event_display.started_efforts_count} for #{@event_display.name}" %></strong>
          </div>
        </div>
        <div class="row">
          <div class="col-xs-8">
            <%= will_paginate(@event_display.filtered_ranked_efforts, param_name: 'started_page', inner_window: 2, outer_window: 0) %>
          </div>
        </div>

{'fraction_non_alphanumeric': 0.17841254975415594, 'fraction_numerical': 0.006555841723249824, 'mean_word_length': 3.332657200811359, 'pattern_counts': {'":': 0, '<': 122, '<?xml version=': 0, '>': 118, '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': '2621084', 'n_tokens_mistral': 1545, 'n_tokens_neox': 1410, 'n_words': 255}