<commit_before><div class="error" ng-show="error">
  {{ error }}
</div>

<div ng-hide="error">
  <div class="pull-right">
    <div>
      <table>
        <tr>
          <th></th>
          <th><img src="/media/W.jpeg"></th>
          <th><img src="/media/U.jpeg"></th>
          <th><img src="/media/B.jpeg"></th>
          <th><img src="/media/R.jpeg"></th>
          <th><img src="/media/G.jpeg"></th>
        </tr>
        <tr>
          <td>main</td>
          <td><input type="number" min="0" autoselect ng-model="mainLand.w"></td>
          <td><input type="number" min="0" autoselect ng-model="mainLand.u"></td>
          <td><input type="number" min="0" autoselect ng-model="mainLand.b"></td>
          <td><input type="number" min="0" autoselect ng-model="mainLand.r"></td>
          <td><input type="number" min="0" autoselect ng-model="mainLand.g"></td>
        </tr>
        <tr>
          <td>side</td>
          <td><input type="number" min="0" autoselect ng-model="sideLand.w"></td>
          <td><input type="number" min="0" autoselect ng-model="sideLand.u"></td>
          <td><input type="number" min="0" autoselect ng-model="sideLand.b"></td>
          <td><input type="number" min="0" autoselect ng-model="sideLand.r"></td>
          <td><input type="number" min="0" autoselect ng-model="sideLand.g"></td>
        </tr>
      </table>
    </div>
    <div>
      <form method="post" action="/deck">
        <input type="text" name="deck" hidden ng-model="deckJSON">
        generates a hash on the FIRST
        <button ng-disabled="round != 4" ng-click="generateDeck()">download</button>
        <select name="extension" ng-model="extension" save>
          <option value="dec">dec</option>
          <option value="cod">cod</option>
        </select>
      </form>
    </div>
    <div>
      click on a card twice to pick it from a pack
    </div>
    <div>
      single click to toggle between main / side
    </div>
    <div>
      move cards to jank by shift clicking
    </div>
    <div>
      <select dir="rtl" ng-model="beep" save>
        <option>never</option>
        <option>always</option>
        <option>if tab is hidden</option>
      </select>
      beep when receiving packs
      <!--
      http://freesound.org/people/pierrecartoons1979/sounds/90112/
      cc-by-nc-3.0
      -->
      <audio src="/media/beep.wav"></audio>
    </div>
    <div>
      order by
      <select ng-model="order" save>
        <option>cmc</option>
        <option>color</option>
        <option>name</option>
        <option>rarity</option>
        <option>type</option>
      </select>
    </div>
    <div>
      add cards to:
      <label><input type="radio" ng-model="zone" save value="main">main</input></label>
      <label><input type="radio" ng-model="zone" save value="side">side</input></label>
    </div>
  </div>

  <div ng-show="isHost && !round">
    <button ng-click="start()">start</button>
    <label>add bots<input type="checkbox" ng-model="addBots" save></label>
  </div>
  <table>
    <tr><th>#</th><th>name</th><th>time</th><th>packs</th><th>cockatrice</th><th>mws</th></tr>
    <tr ng-repeat="player in players" ng-class="{ self: self == $index, dropped: player.dropped, opponent: $index == ((self + 4) % 8) }">
      <td>{{ $index + 1 }}</td>
      <td ng-switch on="player.edit" ng-click="editName(player, $index)">
        <form ng-submit="name(player)" ng-switch-when="true">
          <input type="text" placeholder="username" autofocus required ng-model="player.name">
          <button>save</button>
        </form>
        <span ng-switch-default>{{ player.name }}</span>
      </td>
      <td>{{ player.time }}</td>
      <td>{{ player.packs }}</td>
      <td>{{ player.hash.cock }}</td>
      <td>{{ player.hash.mws }}</td>
    </tr>
  </table>

  <div class="container" ng-hide="end">
    <h1>pack</h1>
    <div ng-show="pack">
      <img ng-src="{{ card.url }}" ng-repeat="card in pack" ng-click="pick($index)">
    </div>
  </div>
  <div class="container">
    <h1>side</h1>
    <img ng-src="{{ card.url }}" ng-repeat="card in side | orderBy:[order, 'name']" ng-click="fromSide(card, $event)">
  </div>
  <div class="container">
    <h1>main {{ main.length }}</h1>
    <img ng-src="{{ card.url }}" ng-repeat="card in main | orderBy:[order, 'name']" ng-click="fromMain(card, $event)">
  </div>
  <div class="container">
    <h1>jank</h1>
    <img ng-src="{{ card.url }}" ng-repeat="card in jank | orderBy:[order, 'name']" ng-click="fromJank(card, $event)">
  </div>
</div><commit_msg>move side container back below main<commit_after><div class="error" ng-show="error">
  {{ error }}
</div>

<div ng-hide="error">
  <div class="pull-right">
    <div>
      <table>
        <tr>
          <th></th>
          <th><img src="/media/W.jpeg"></th>
          <th><img src="/media/U.jpeg"></th>
          <th><img src="/media/B.jpeg"></th>
          <th><img src="/media/R.jpeg"></th>
          <th><img src="/media/G.jpeg"></th>
        </tr>
        <tr>
          <td>main</td>
          <td><input type="number" min="0" autoselect ng-model="mainLand.w"></td>
          <td><input type="number" min="0" autoselect ng-model="mainLand.u"></td>
          <td><input type="number" min="0" autoselect ng-model="mainLand.b"></td>
          <td><input type="number" min="0" autoselect ng-model="mainLand.r"></td>
          <td><input type="number" min="0" autoselect ng-model="mainLand.g"></td>
        </tr>
        <tr>
          <td>side</td>
          <td><input type="number" min="0" autoselect ng-model="sideLand.w"></td>
          <td><input type="number" min="0" autoselect ng-model="sideLand.u"></td>
          <td><input type="number" min="0" autoselect ng-model="sideLand.b"></td>
          <td><input type="number" min="0" autoselect ng-model="sideLand.r"></td>
          <td><input type="number" min="0" autoselect ng-model="sideLand.g"></td>
        </tr>
      </table>
    </div>
    <div>
      <form method="post" action="/deck">
        <input type="text" name="deck" hidden ng-model="deckJSON">
        generates a hash on the FIRST
        <button ng-disabled="round != 4" ng-click="generateDeck()">download</button>
        <select name="extension" ng-model="extension" save>
          <option value="dec">dec</option>
          <option value="cod">cod</option>
        </select>
      </form>
    </div>
    <div>
      click on a card twice to pick it from a pack
    </div>
    <div>
      single click to toggle between main / side
    </div>
    <div>
      move cards to jank by shift clicking
    </div>
    <div>
      <select dir="rtl" ng-model="beep" save>
        <option>never</option>
        <option>always</option>
        <option>if tab is hidden</option>
      </select>
      beep when receiving packs
      <!--
      http://freesound.org/people/pierrecartoons1979/sounds/90112/
      cc-by-nc-3.0
      -->
      <audio src="/media/beep.wav"></audio>
    </div>
    <div>
      order by
      <select ng-model="order" save>
        <option>cmc</option>
        <option>color</option>
        <option>name</option>
        <option>rarity</option>
        <option>type</option>
      </select>
    </div>
    <div>
      add cards to:
      <label><input type="radio" ng-model="zone" save value="main">main</input></label>
      <label><input type="radio" ng-model="zone" save value="side">side</input></label>
    </div>
  </div>

  <div ng-show="isHost && !round">
    <button ng-click="start()">start</button>
    <label>add bots<input type="checkbox" ng-model="addBots" save></label>
  </div>
  <table>
    <tr><th>#</th><th>name</th><th>time</th><th>packs</th><th>cockatrice</th><th>mws</th></tr>
    <tr ng-repeat="player in players" ng-class="{ self: self == $index, dropped: player.dropped, opponent: $index == ((self + 4) % 8) }">
      <td>{{ $index + 1 }}</td>
      <td ng-switch on="player.edit" ng-click="editName(player, $index)">
        <form ng-submit="name(player)" ng-switch-when="true">
          <input type="text" placeholder="username" autofocus required ng-model="player.name">
          <button>save</button>
        </form>
        <span ng-switch-default>{{ player.name }}</span>
      </td>
      <td>{{ player.time }}</td>
      <td>{{ player.packs }}</td>
      <td>{{ player.hash.cock }}</td>
      <td>{{ player.hash.mws }}</td>
    </tr>
  </table>

  <div class="container" ng-hide="end">
    <h1>pack</h1>
    <div ng-show="pack">
      <img ng-src="{{ card.url }}" ng-repeat="card in pack" ng-click="pick($index)">
    </div>
  </div>
  <div class="container">
    <h1>main {{ main.length }}</h1>
    <img ng-src="{{ card.url }}" ng-repeat="card in main | orderBy:[order, 'name']" ng-click="fromMain(card, $event)">
  </div>
  <div class="container">
    <h1>side</h1>
    <img ng-src="{{ card.url }}" ng-repeat="card in side | orderBy:[order, 'name']" ng-click="fromSide(card, $event)">
  </div>
  <div class="container">
    <h1>jank</h1>
    <img ng-src="{{ card.url }}" ng-repeat="card in jank | orderBy:[order, 'name']" ng-click="fromJank(card, $event)">
  </div>
</div>
{'fraction_non_alphanumeric': 0.21342134213421343, 'fraction_numerical': 0.007260726072607261, 'mean_word_length': 2.613275039745628, 'pattern_counts': {'":': 0, '<': 381, '<?xml version=': 0, '>': 381, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '200120', 'n_tokens_mistral': 3223, 'n_tokens_neox': 3150, 'n_words': 644}