<commit_before>
function renderGamePage(gameState) {
  console.log('renderGamePage(', gameState, ')');

  var cardHTML = `<h1>${gameState.card}</h1>`;

  var startRoundFormHTML = `
    <form class="action-form" action="/games/${gameState.game.name}/start_round" method="post">
      <input class="waves-effect waves-light btn-large teal" type="submit" value="START ROUND">
    </form>
  `
  var team1 = gameState.teams[0]
  var team2 = gameState.teams[1]

  var team1Players = ''
  var team2Players = ''

  team1.players.forEach(function(player) {
    team1Players += ('<li>' + player.display_name + '</li>')
  })

  team2.players.forEach(function(player) {
    team2Players += ('<li>' + player.display_name + '</li>')
  })

  var teamsHTML = `<h4>Teams:</h4>
  <div>
    <h5>${team1.name}</h5>
    <ul>
      ${team1Players}
    </ul>
    <h5>${team2.name}</h5>
    <ul>
      ${team2Players}
    </ul>
  </div>
  `;

  var buttonHTML =  `<div class="actions">
        <form class="action-form" action="/games/${gameState.game.name}/pass" method="post">
          <input class="waves-effect waves-light btn-large red" type="submit" value="pass">
        </form>

        <form class="action-form" action="/games/${gameState.game.name}/win_card" method="post">
          <input class="waves-effect waves-light btn-large teal" type="submit" value="got it!">
        </form>

        <form class="action-form" action="/games/${gameState.game.name}/pause" method="post"><commit_msg>Include teams scores<commit_after>
function renderGamePage(gameState) {
  console.log('renderGamePage(', gameState, ')');

  var cardHTML = `<h1>${gameState.card}</h1>`;

  var startRoundFormHTML = `
    <form class="action-form" action="/games/${gameState.game.name}/start_round" method="post">
      <input class="waves-effect waves-light btn-large teal" type="submit" value="START ROUND">
    </form>
  `
  var team1 = gameState.teams[0]
  var team2 = gameState.teams[1]

  var team1Players = ''
  var team2Players = ''

  team1.players.forEach(function(player) {
    team1Players += ('<li>' + player.display_name + '</li>')
  })

  team2.players.forEach(function(player) {
    team2Players += ('<li>' + player.display_name + '</li>')
  })

  var teamsHTML = `<h4>Teams:</h4>
  <div>
    <h5>${team1.name}</h5>
    <h6>${team1.score}</h6>
    <ul>
      ${team1Players}
    </ul>
    <h5>${team2.name}</h5>
    <h6>${team2.score}</h6>
    <ul>
      ${team2Players}
    </ul>
  </div>
  `;

  var buttonHTML =  `<div class="actions">
        <form class="action-form" action="/games/${gameState.game.name}/pass" method="post">
          <input class="waves-effect waves-light btn-large red" type="submit" value="pass">
        </form>

        <form class="action-form" action="/games/${gameState.game.name}/win_card" method="post">
          <input class="waves-effect waves-light btn-large teal" type="submit" value="got it!">
        </form>

        <form class="action-form" action="/games/${gameState.game.name}/pause" method="post">
{'fraction_non_alphanumeric': 0.1939755047997352, 'fraction_numerical': 0.0165508109897385, 'mean_word_length': 3.437591776798825, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, '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': '6976029', 'n_tokens_mistral': 1090, 'n_tokens_neox': 1051, 'n_words': 181}