<commit_before><% if @tournament.joinable_by?(current_user) %>
	<%= form_tag(tournament_path(@tournament), method: "put") do %>
		<input type="hidden" name="update_action" value="join">
		<%= current_user.name %><%= submit_tag("Join") %>
	<% end %>
<% end %>


<div class="progress">
  <%= tag("div", {:class => "progress-bar progress-bar-warning",  :style => "width: " +(@tournament.players.count * 100 / (@tournament.min_players_per_team * @tournament.min_teams_per_match)).to_s + "%", "aria-valuemax" => "100", "aria-valuemin" => "0", "aria-valuenow" => (@tournament.players.count * 100 / (@tournament.min_players_per_team * @tournament.min_teams_per_match)).to_s, "role" => "progressbar"}) %>
    <span class="sr-only">60% Complete (warning)</span>
    </div>
</div>
<p><%= @tournament.players.count %> have signed up. <%= @tournament.min_players_per_team * @tournament.min_teams_per_match %> needed. </p>

<% if current_user.in_group?(:host) %>
<p>
  <strong>Game:</strong>
  <%= @tournament.id %>
</p>

<p>
  <strong>Status:</strong>
  <%= @tournament.status %>
</p>

<p>
  <strong>Min players per team:</strong>
  <%= @tournament.min_players_per_team %>
</p>

<p>
  <strong>Max players per team:</strong>
  <%= @tournament.max_players_per_team %>
</p>

<p>
  <strong>Min teams per match:</strong>
  <%= @tournament.min_teams_per_match %>
</p>

<p>
  <strong>Max teams per match:</strong>
  <%= @tournament.max_teams_per_match %>
</p>

<p>
  <strong>Set rounds:</strong>
  <%= @tournament.set_rounds %>
</p>

<p>
  <strong>Randomized teams:</strong>
  <%= @tournament.randomized_teams %>
</p>

<p>
  <strong>Status:</strong>
  <%= @tournament.status %>
</p>

<%= form_tag(tournaments_path.to_s + "/" + @tournament.id.to_s + "/edit", method: "get") do %>
  <input type="hidden" name="close_action" value="close">
  <% if @tournament.players.count > @tournament.min_players_per_team * @tournament.min_teams_per_match  %> 
    <%= submit_tag("Close Tournament Registration") %>
  <% else %>
    <%= submit_tag("Close Tournament Registration", disabled: true) %>
  <% end %>
<% end %>

<%= link_to 'Edit', edit_tournament_path(@tournament) %> |
<%= link_to 'Back', tournaments_path %>

<% end %>
<commit_msg>small changes<commit_after><% if @tournament.joinable_by?(current_user) %>
	<%= form_tag(tournament_path(@tournament), method: "put") do %>
		<input type="hidden" name="update_action" value="join">
		<%= current_user.name %><%= submit_tag("Join") %>
	<% end %>
<% end %>


<div class="progress">
  <%= tag("div", {:class => "progress-bar progress-bar-warning",  :style => "width: " +(@tournament.players.count * 100 / (@tournament.min_players_per_team * @tournament.min_teams_per_match)).to_s + "%", "aria-valuemax" => "100", "aria-valuemin" => "0", "aria-valuenow" => (@tournament.players.count * 100 / (@tournament.min_players_per_team * @tournament.min_teams_per_match)).to_s, "role" => "progressbar"}) %>
    <span class="sr-only">60% Complete (warning)</span>
    </div>
</div>
<p><%= @tournament.players.count %> have signed up. <%= @tournament.min_players_per_team * @tournament.min_teams_per_match %> needed. </p>

<% if current_user.in_group?(:host) %>
<p>
  <strong>Game:</strong>
  <%= @tournament.id %>
</p>

<p>
  <strong>Status:</strong>
  <%= @tournament.status %>
</p>

<p>
  <strong>Min players per team:</strong>
  <%= @tournament.min_players_per_team %>
</p>

<p>
  <strong>Max players per team:</strong>
  <%= @tournament.max_players_per_team %>
</p>

<p>
  <strong>Min teams per match:</strong>
  <%= @tournament.min_teams_per_match %>
</p>

<p>
  <strong>Max teams per match:</strong>
  <%= @tournament.max_teams_per_match %>
</p>

<p>
  <strong>Set rounds:</strong>
  <%= @tournament.set_rounds %>
</p>

<p>
  <strong>Randomized teams:</strong>
  <%= @tournament.randomized_teams %>
</p>

<p>
  <strong>Status:</strong>
  <%= @tournament.status %>
</p>

<%= form_tag(tournaments_path.to_s + "/" + @tournament.id.to_s + "/edit", method: "get") do %>
  <input type="hidden" name="close_action" value="close">
  <% if @tournament.players.count >= @tournament.min_players_per_team * @tournament.min_teams_per_match  %> 
    <%= submit_tag("Close Tournament Registration") %>
  <% else %>
    <%= submit_tag("Close Tournament Registration", disabled: true) %>
  <% end %>
<% end %>

<%= link_to 'Edit', edit_tournament_path(@tournament) %> |
<%= link_to 'Back', tournaments_path %>

<% end %>

{'fraction_non_alphanumeric': 0.21465731734901605, 'fraction_numerical': 0.0054286360551911335, 'mean_word_length': 4.991869918699187, 'pattern_counts': {'":': 0, '<': 151, '<?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': '1539342', 'n_tokens_mistral': 1878, 'n_tokens_neox': 1667, 'n_words': 275}