<commit_before><ion-view title="Game" hide-back-button="true">
  <ion-nav-buttons side="left">
    <button ng-click="back()" class="button buttons header-item">
        <i class="icon ion-ios-arrow-back"></i>
    </button>
  </ion-nav-buttons>
  <ion-content padding="true" class="has-header">
    <button ng-click="kickoff()" ng-disabled="game.players.length < 2" ng-if="!Game.started && Game.isCreator" class="button button-block button-royal">
      Kick this party off
    </button>

    <div ng-if="game.players.length < 2">You need at least one friend to join</div>

    <div class="card">
      <div class="item reader item-text-wrap ng-class: {alert: Game.isReader}" ng-if="Game.started && !game.current_round.topic.length">
        {{Game.isReader ? "You\'re the reader! Enter a topic." : "Waiting for a clever topic from reader"}}
      </div>
      <div class="item reader item-text-wrap" ng-if="Game.started && game.current_round.topic.length"><strong>Topic: </strong>{{game.current_round.topic}}</div>
    </div>

    <h4 class="topic" ng-if="!Game.started && !Game.isCreator">Waiting to start the game...</h4>
    <div class="row">
      <div class="col">
        <h4>Reader: <span ng-bind="game.current_round.reader_name"></span></h4>
      </div>
      <div class="col">
        <h4 ng-if="Game.game.rounds.length" class="round-count">Round #{{Game.game.rounds.length}}</h4>
      </div>
    </div>
    <div class="row">
      <div class="col">
        <h4 class="max-score">Game to: <span ng-bind="game.max_score"></span></h4>
      </div>
      <div class="col">
        <h4 ng-if="Game.game.winner" class="winner">Winner: <span ng-bind="Game.game.winner.full_name"></span></h4>
      </div>
    </div>
  <hr />
    <div class="list game-inputs">
      <div ng-if="(!Game.isReader || Game.game.current_round.topic.length) && !Game.game.current_round.ready" class="response-field">
        <button ng-click="submitRes()" ng-disabled="!Game.response.trim().length" ng-if="typingResponse || Game.response.trim().length" class="button button-block button-balanced">
            Submit!
        </button>
        <label class="item item-input item-stacked-label">
          <span class="input-label">Response</span>
          <input ng-model="Game.response" ng-disabled="!Game.game.current_round.topic.length" ng-focus="typingResponse = true" ng-blur="typingResponse = false" type="text" placeholder="{{game.current_round.topic.length ? 'Be creative' : 'No topic yet'}}">
        </label>
      </div>
      <div ng-if="Game.isReader && !Game.game.current_round.topic.length" class="topic-field">
        <button ng-disabled="!Game.topic.trim().length" ng-if="typingTopic || Game.topic.trim().length" ng-click="submitTop()" class="button button-block button-balanced">
          Submit!
        </button>
        <label class="item item-input item-stacked-label">
          <span class="input-label">Topic</span>
          <input ng-model="Game.topic" ng-focus="typingTopic = true" ng-blur="typingTopic = false" type="text" placeholder="Be creative">
        </label>
      </div>
    </div>
    <div ng-if="!Game.game.completed" class="guesser" ng-if="Game.game.guesser.id">
      <p>Guesser: {{Game.amGuesser() ? "IT\'S YOU. GUESS." : Game.game.guesser.full_name}}</p>
    </div>

    <div class="guess-space" ng-if="Game.amGuesser()">
      <p>Select below to match player with a guess, then submit.</p>
      <button ng-click="submitGuess({guessee_id: Game.guess.user.id, response_id: Game.guess.response.id})"class="button button-block button-balanced" ng-click="submitGuess()" ng-disabled="!Game.guess.user || !Game.guess.response">
        Guess
      </button>
    </div>
<commit_msg>(fix) only display guesser section if the game has a guesser<commit_after><ion-view title="Game" hide-back-button="true">
  <ion-nav-buttons side="left">
    <button ng-click="back()" class="button buttons header-item">
        <i class="icon ion-ios-arrow-back"></i>
    </button>
  </ion-nav-buttons>
  <ion-content padding="true" class="has-header">
    <button ng-click="kickoff()" ng-disabled="game.players.length < 2" ng-if="!Game.started && Game.isCreator" class="button button-block button-royal">
      Kick this party off
    </button>

    <div ng-if="game.players.length < 2">You need at least one friend to join</div>

    <div class="card">
      <div class="item reader item-text-wrap ng-class: {alert: Game.isReader}" ng-if="Game.started && !game.current_round.topic.length">
        {{Game.isReader ? "You\'re the reader! Enter a topic." : "Waiting for a clever topic from reader"}}
      </div>
      <div class="item reader item-text-wrap" ng-if="Game.started && game.current_round.topic.length"><strong>Topic: </strong>{{game.current_round.topic}}</div>
    </div>

    <h4 class="topic" ng-if="!Game.started && !Game.isCreator">Waiting to start the game...</h4>
    <div class="row">
      <div class="col">
        <h4>Reader: <span ng-bind="game.current_round.reader_name"></span></h4>
      </div>
      <div class="col">
        <h4 ng-if="Game.game.rounds.length" class="round-count">Round #{{Game.game.rounds.length}}</h4>
      </div>
    </div>
    <div class="row">
      <div class="col">
        <h4 class="max-score">Game to: <span ng-bind="game.max_score"></span></h4>
      </div>
      <div class="col">
        <h4 ng-if="Game.game.winner" class="winner">Winner: <span ng-bind="Game.game.winner.full_name"></span></h4>
      </div>
    </div>
  <hr />
    <div class="list game-inputs">
      <div ng-if="(!Game.isReader || Game.game.current_round.topic.length) && !Game.game.current_round.ready" class="response-field">
        <button ng-click="submitRes()" ng-disabled="!Game.response.trim().length" ng-if="typingResponse || Game.response.trim().length" class="button button-block button-balanced">
            Submit!
        </button>
        <label class="item item-input item-stacked-label">
          <span class="input-label">Response</span>
          <input ng-model="Game.response" ng-disabled="!Game.game.current_round.topic.length" ng-focus="typingResponse = true" ng-blur="typingResponse = false" type="text" placeholder="{{game.current_round.topic.length ? 'Be creative' : 'No topic yet'}}">
        </label>
      </div>
      <div ng-if="Game.isReader && !Game.game.current_round.topic.length" class="topic-field">
        <button ng-disabled="!Game.topic.trim().length" ng-if="typingTopic || Game.topic.trim().length" ng-click="submitTop()" class="button button-block button-balanced">
          Submit!
        </button>
        <label class="item item-input item-stacked-label">
          <span class="input-label">Topic</span>
          <input ng-model="Game.topic" ng-focus="typingTopic = true" ng-blur="typingTopic = false" type="text" placeholder="Be creative">
        </label>
      </div>
    </div>
    <div ng-if="!Game.game.completed && Game.game.guesser.id" class="guesser">
      <p>Guesser: {{Game.amGuesser() ? "IT\'S YOU. GUESS." : Game.game.guesser.full_name}}</p>
    </div>

    <div class="guess-space" ng-if="Game.amGuesser()">
      <p>Select below to match player with a guess, then submit.</p>
      <button ng-click="submitGuess({guessee_id: Game.guess.user.id, response_id: Game.guess.response.id})"class="button button-block button-balanced" ng-click="submitGuess()" ng-disabled="!Game.guess.user || !Game.guess.response">
        Guess
      </button>
    </div>

{'fraction_non_alphanumeric': 0.1892109500805153, 'fraction_numerical': 0.00322061191626409, 'mean_word_length': 3.3712609970674485, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 161, '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': '6248156', 'n_tokens_mistral': 2502, 'n_tokens_neox': 2451, 'n_words': 468}