<commit_before><div id="message_overlay" class="board_overlay">
<% if @game.winner == current_user %>
  <h2>Congratulations, you won!</h2>
  <p><%= link_to "Play Again", new_game_path(:board_size => @game.board_size) %></p>
<% elsif @game.loser == current_user %>
  <h2>Sorry, you lost.</h2>
  <p class="resources">Need some help? Check out the <%= link_to "Go Resources", go_resources_path %>.</p>
  <p><%= link_to "Play Again", new_game_path(:board_size => @game.board_size) %></p>
<% else %>
  <h2><%= (@game.winner && @game.winner.username) || "GNU Go" %> won!</h2>
<% end %>
</div>
<commit_msg>don't show win/lost message when not signed in<commit_after><div id="message_overlay" class="board_overlay">
<% if current_user && @game.winner == current_user %>
  <h2>Congratulations, you won!</h2>
  <p><%= link_to "Play Again", new_game_path(:board_size => @game.board_size) %></p>
<% elsif current_user && @game.loser == current_user %>
  <h2>Sorry, you lost.</h2>
  <p class="resources">Need some help? Check out the <%= link_to "Go Resources", go_resources_path %>.</p>
  <p><%= link_to "Play Again", new_game_path(:board_size => @game.board_size) %></p>
<% else %>
  <h2><%= (@game.winner && @game.winner.username) || "GNU Go" %> won!</h2>
<% end %>
</div>

{'fraction_non_alphanumeric': 0.21694378463974665, 'fraction_numerical': 0.009501187648456057, 'mean_word_length': 5.288557213930348, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 51, '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': '1203004', 'n_tokens_mistral': 505, 'n_tokens_neox': 468, 'n_words': 109}