<commit_before><h3>
  <a name="top">&nbsp;</a>
  <%= @tournament.name %>
</h3>

<dl class="dl-horizontal">
  <%= show_attribute :exercise_type_id, value: link_to(@tournament.game_and_exercise_type.exercise_type.name, competition_exercise_type_path(@tournament.game_and_exercise_type.exercise_type.id)) %>
  <%= show_attribute :game_id, value: link_to(@tournament.game_and_exercise_type.game.name, competition_game_path(@tournament.game_and_exercise_type.game.id)) %>
  <%= show_actions namespace: :competition %>
</dl>

<table>
  <tr>
    <td style="width:270px">
      <%= form_tag competition_tournament_path(@tournament), method: :get, class: 'simple_form form-horizontal' do %>
        <label for="season_id" class="string required" style="display:inline"><%= t('tournament_seasons.general.short_model_name') %></label>&nbsp;&nbsp;
        <%= hidden_field_tag 'matchday', @matchday %>
        <%= select_tag 'season_id', options_for_select(@seasons.map{|s| [s.name || s.id, s.id]}, @season.id), style: 'width:110px' %> 
        <% if user_signed_in? %>
          &nbsp;&nbsp;
          <div id="season_participation" style="display:inline;"><%= render partial: 'competition/tournament_seasons/join_or_leave' %></div>
        <% end %>
      <% end %>
    </td>
<% if @season.matchdays > 0 %>
    <td>
      <%= form_tag competition_tournament_path(@tournament), method: :get, class: 'simple_form form-horizontal' do %>
        <label for="matchday" class="string required" style="display:inline"><%= t('activerecord.attributes.tournament_match.matchday') %></label>&nbsp;&nbsp;
        <%= hidden_field_tag 'season_id', @season.id %>
        <%= select_tag 'matchday', options_for_select((1..@season.matchdays).to_a, @matchday), style: 'width:50px' %> 
      <% end %>
    </td>
<% end %>
  </tr>
</table>

<div class="tabs tournament_show_tabs">
  <ul>
    <li>
      <a href="<%= competition_season_rankings_path(@season.id, matchday: @ranking_matchday) %>">
        <%= t('tournament_season_rankings.index.title') %>
      </a>
    </li>
    <li><commit_msg>refs #5 Only show join link if the season is looking for competitors.<commit_after><h3>
  <a name="top">&nbsp;</a>
  <%= @tournament.name %>
</h3>

<dl class="dl-horizontal">
  <%= show_attribute :exercise_type_id, value: link_to(@tournament.game_and_exercise_type.exercise_type.name, competition_exercise_type_path(@tournament.game_and_exercise_type.exercise_type.id)) %>
  <%= show_attribute :game_id, value: link_to(@tournament.game_and_exercise_type.game.name, competition_game_path(@tournament.game_and_exercise_type.game.id)) %>
  <%= show_actions namespace: :competition %>
</dl>

<table>
  <tr>
    <td style="width:270px">
      <%= form_tag competition_tournament_path(@tournament), method: :get, class: 'simple_form form-horizontal' do %>
        <label for="season_id" class="string required" style="display:inline"><%= t('tournament_seasons.general.short_model_name') %></label>&nbsp;&nbsp;
        <%= hidden_field_tag 'matchday', @matchday %>
        <%= select_tag 'season_id', options_for_select(@seasons.map{|s| [s.name || s.id, s.id]}, @season.id), style: 'width:110px' %> 
        <% if @season.looking_for_competitors? && user_signed_in? %>
          &nbsp;&nbsp;
          <div id="season_participation" style="display:inline;"><%= render partial: 'competition/tournament_seasons/join_or_leave' %></div>
        <% end %>
      <% end %>
    </td>
<% if @season.matchdays > 0 %>
    <td>
      <%= form_tag competition_tournament_path(@tournament), method: :get, class: 'simple_form form-horizontal' do %>
        <label for="matchday" class="string required" style="display:inline"><%= t('activerecord.attributes.tournament_match.matchday') %></label>&nbsp;&nbsp;
        <%= hidden_field_tag 'season_id', @season.id %>
        <%= select_tag 'matchday', options_for_select((1..@season.matchdays).to_a, @matchday), style: 'width:50px' %> 
      <% end %>
    </td>
<% end %>
  </tr>
</table>

<div class="tabs tournament_show_tabs">
  <ul>
    <li>
      <a href="<%= competition_season_rankings_path(@season.id, matchday: @ranking_matchday) %>">
        <%= t('tournament_season_rankings.index.title') %>
      </a>
    </li>
    <li>
{'fraction_non_alphanumeric': 0.17921401515151514, 'fraction_numerical': 0.005918560606060606, 'mean_word_length': 4.522875816993464, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '245971', 'n_tokens_mistral': 1563, 'n_tokens_neox': 1414, 'n_words': 236}