<commit_before>
function renderGamePage(gameState) {
  var team1 = gameState.teams[0];
  var team2 = gameState.teams[1];
  var userdata = $("#live[data-userid]").data()
  var user_id = !!userdata ? userdata.userid : null;
  var isCluegiver = (user_id === gameState.cluegiver.id);
  var isCreator = (user_id === gameState.creator.id);

  // Universal View

  function getTimerHTML(){
    return `
      <div id='timer' class="fbCountdown" data-start-time='TBD' data-run-time='60'>
      <p>00:30</p>
      </div>`;
  };

  function getTitleHTML(){
    return `
    <h3>${gameState.game.name}</h3>
    <div id='round-container'>
    <p>Current Round: ${gameState.current_round.type}</p>
    </div>`;
  };

  // Waiting-to-Start-Game View

  function getWaitingHTML(){
    if(gameState.game_started){ return "" }

    var allPlayers = ''

    gameState.participants.forEach(function(participant){
      allPlayers += `<li class='player-name'>${participant.display_name}</li>`
    })

    return `
      <div class='waiting-game'>
        <h4>Participants</h4>
        <ul class='player-names-list'>
          ${allPlayers}
        </ul>
        <div id='create-card-form'>
          <form id="new_card" class="action-form" action="/cards" accept-charset="UTF-8" method="post">
            <input type="text" name="card[concept]" id="card_concept" />
            <input type="hidden" name="game_id" id="game_id" value="${gameState.game.id}" />
            <input type="submit" name="commit" value="Add Card" data-disable-with="Add Card" />
          </form>
        </div>
        ${startGameFormHTML()}
      </div>
    `;
  }

  function startGameFormHTML(){
    if(!isCreator) {
      return ""
    } else if(!gameState.ready) {
      return `
        <div class='game-not-ready'>
          <span>Waiting for at least 4 players...</span>
        </div>
      `
    }
    return `
    <form id="start-game" class="action-form" action="/games/${gameState.game.name}/start" method="post">
      <input class="waves-effect waves-light btn-large teal" type="submit" value="Start Game!">
    </form>
    `
  }
<commit_msg>Edit indentation of multiline string<commit_after>
function renderGamePage(gameState) {
  var team1 = gameState.teams[0];
  var team2 = gameState.teams[1];
  var userdata = $("#live[data-userid]").data()
  var user_id = !!userdata ? userdata.userid : null;
  var isCluegiver = (user_id === gameState.cluegiver.id);
  var isCreator = (user_id === gameState.creator.id);

  // Universal View

  function getTimerHTML(){
    return `
      <div id='timer' class="fbCountdown" data-start-time='TBD' data-run-time='60'>
      <p>00:30</p>
      </div>`;
  };

  function getTitleHTML(){
    return `
    <h3>${gameState.game.name}</h3>
    <div id='round-container'>
    <p>Current Round: ${gameState.current_round.type}</p>
    </div>`;
  };

  // Waiting-to-Start-Game View

  function getWaitingHTML(){
    if(gameState.game_started){ return "" }

    var allPlayers = ''

    gameState.participants.forEach(function(participant){
      allPlayers += `<li class='player-name'>${participant.display_name}</li>`
    })

    return `
      <div class='waiting-game'>
        <h4>Participants</h4>
        <ul class='player-names-list'>
          ${allPlayers}
        </ul>
        <div id='create-card-form'>
          <form id="new_card" class="action-form" action="/cards" accept-charset="UTF-8" method="post">
            <input type="text" name="card[concept]" id="card_concept" />
            <input type="hidden" name="game_id" id="game_id" value="${gameState.game.id}" />
            <input type="submit" name="commit" value="Add Card" data-disable-with="Add Card" />
          </form>
        </div>
        ${startGameFormHTML()}
      </div>
    `;
  }

  function startGameFormHTML(){
    if(!isCreator) {
      return ""
    } else if(!gameState.ready) {
      return `
        <div class='game-not-ready'>
          <span>Waiting for at least 4 players...</span>
        </div>
      `
    }
    return `
      <form id="start-game" class="action-form" action="/games/${gameState.game.name}/start" method="post">
        <input class="waves-effect waves-light btn-large teal" type="submit" value="Start Game!">
      </form>
    `
  }

{'fraction_non_alphanumeric': 0.17562808170932143, 'fraction_numerical': 0.0075135008217891526, 'mean_word_length': 2.779946761313221, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, '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': '6602793', 'n_tokens_mistral': 1462, 'n_tokens_neox': 1404, 'n_words': 256}