<commit_before><style>
.gmnoprint img
{
max-width:none;
}
</style>
<div class="shrink-center well well-lg game-settings" style="max-width:100%;">
  <form class="form" role="form" onsubmit="return false;">
  <h4>
    Edit Game <span class="object-id text-muted"><%= game_id %></span>
  </h4>

  <div class="form-group row">
    <div class="col-xs-12 col-md-8 padded">

      <div class="form-group">
        <label for="game-name">Name</label>
        <input type="text" autofocus class="form-control" id="game-name" placeholder="Name" value="<%= name %>">
      </div>

      <div class="form-group">
        <label for="game-description">Description</label>
        <textarea class="form-control" id="game-description" placeholder="Description" rows=5><%= description %></textarea>
      </div>

      <div class="form-group">
        <label for="game-intro_scene_id">Intro Scene</label>

        <select class="form-control" id="game-intro_scene_id">
          <option value="0" selected disabled>- Select One -</option>

          <% scenes.each(function(scene) { %>
            <option value="<%= scene.id %>" <%= option_selected(intro_scene_id === scene.id) %>><%= scene.get("name") %></option>
          <% }); %>
        </select>
      </div>

      <div class="checkbox">
        <input type="checkbox" id="game-ipad_two_x" <%= is_checked(ipad_two_x) %>>
        <label for="game-ipad_two_x">
          Scale 2x on iPad
        </label>
      </div>

    </div> <!-- /fields col -->


    <div class="col-xs-12 col-md-4 padded">

      <div class="form-group">
        <label>Appearance</label>

        <div class="thumbnail change-icon">
          <img src=<%= icon_thumbnail_url %>>
          <div class="caption">
            <button type="button" class="btn btn-link btn-info btn-block change-icon">
              <span class="glyphicon glyphicon-picture"></span>
              Icon
            </button>
          </div>
        </div>

        <div class="thumbnail change-media">
          <img src=<%= media_thumbnail_url %>>
          <div class="caption">
            <button type="button" class="btn btn-link btn-info btn-block change-media">
              <span class="glyphicon glyphicon-facetime-video"></span>
              Media
            </button>
          </div>
        </div>
      </div>
    </div> <!-- /media col -->
  </div> <!-- /main form -->

  <div class="form-group">


    <div class="panel panel-default">
      <div class="panel-heading">
        <h4>Game Type</h4>
      </div>
      <div class="panel-body">

        <div class="form-group">
          <label for="type">Category</label>
          <select class="form-control" id="game-type">
            <option value="LOCATION" <%= option_selected(type === "LOCATION") %>>To be played around a specific location</option>
            <option value="ANYWHERE" <%= option_selected(type === "ANYWHERE") %>>Can be played anywhere</option>
            <option value="QR"       <%= option_selected(type === "QR")       %>>Intended for play with QR Codes</option>
          </select>
        </div>

        <div class="form-group">
          <label for="">Location (Used to determine "Nearby Games")</label>
          <div class="game-map-canvas" style="height:150px; width:100%"></div>
        </div>
      </div>
    </div>



    <div class="panel panel-default">
      <div class="panel-heading">
        <h4>Network</h4>
      </div>
      <div class="panel-body">

        <div class="btn-group btn-group-sm btn-group-justified network_levels">
          <!--
          <label class="btn btn-info  <%= tab_selected(network_level === "LOCAL") %>">
            <input type="radio" class="network_level item-type" name="network_level" value="LOCAL" <%= radio_selected(network_level === "LOCAL") %>>
            <span class="glyphicon glyphicon-stats"></span>
            &nbsp;No Internet
          </label>
          -->
          <label class="btn btn-info <%= tab_selected(network_level === "REMOTE_WRITE") %>">
            <input type="radio" class="network_level item-type" name="network_level" value="REMOTE_WRITE" <%= radio_selected(network_level === "REMOTE_WRITE") %>>
            <span class="glyphicon glyphicon-stats"></span>
            &nbsp;Local Evaulation
          </label>
          <!--
          <label class="btn btn-info <%= tab_selected(network_level === "HYBRID") %>">
            <input type="radio" class="network_level item-type" name="network_level" value="HYBRID"    <%= radio_selected(network_level === "HYBRID") %>>
            <span class="glyphicon glyphicon-stats"></span>
            &nbsp;Smart Cloud &trade; Technology
          </label>
          -->
          <label class="btn btn-info <%= tab_selected(network_level === "REMOTE") %>">
            <input type="radio" class="network_level item-type" name="network_level" value="REMOTE" <%= radio_selected(network_level === "REMOTE") %>>
            <span class="glyphicon glyphicon-stats"></span>
            &nbsp;Server Dependent
          </label>
        </div>


        <!-- Info Boxes -->

        <!--
        <div id="LOCAL-fields" class="network-game-tab" <%= tab_visible(network_level === "LOCAL") %>>
          <div class="alert alert-info">
            <span class="glyphicon glyphicon-info-sign"></span>
            <b>No Internet</b> - Once you are in the game, ARIS will make no attempt to contact the ARIS server. Any progress made by players will <b>not</b> be saved across devices/playthroughs.<br />
            <br />
            <b>Recommended for</b> games with static, unchanging content; especially in low-internet locations.<br />
            <b>Not Recommended for</b> multiplayer games that rely on changing global content (such as notes, factories, world items, etc...)
            <b>WARNING</b> - Do not use notebook in this mode.<br />
          </div>
        </div>
        -->

        <div id="REMOTE_WRITE-fields" class="network-game-tab" <%= tab_visible(network_level === "REMOTE_WRITE") %>>
          <div class="alert alert-info">
            <span class="glyphicon glyphicon-info-sign"></span>
            <b>Local Evaluation</b> - Once you are in the game, ARIS will make few attempts to contact the ARIS server. This will result in faster event/requirement computation, but limits networked functionality.<br />
            <br />
            <b>Recommended for</b> games with static, unchanging content.<br />
            <b>Not Recommended for</b> games that rely on changing global content (such as notes, factories, world items, etc...)
          </div>
        </div>

        <!--
        <div id="HYBRID-fields" class="network-game-tab" <%= tab_visible(network_level === "HYBRID") %>>
          <div class="alert alert-info">
            <span class="glyphicon glyphicon-info-sign"></span>
            <b>Smart Cloud &trade; Technology</b> - ARIS will maintain close contact with the ARIS server, but any downtime or sluggishness in connection speed will be mitigated using Smart Cloud &trade; prediction technology.<br />
            <br />
            <b>Recommended for</b> most games.<br />
            <b>Not Recommended for</b> multiplayer games that <b>fundamentally</b> rely on <b>realtime</b> changing content (especially "race to grab this item" style games).
            <b>WARNING</b> - Do not use notebook in this mode.<br />
          </div>
        </div>
        -->

        <div id="REMOTE-fields" class="network-game-tab" <%= tab_visible(network_level === "REMOTE") %>>
          <div class="alert alert-info">
            <span class="glyphicon glyphicon-info-sign"></span>
            <b>Server Dependent</b> - ARIS will not function without a constant connection to the internet. It will rely on the server to validate every action as it is taken.<br />
            <br />
            <b>Recommended for</b> multiplayer games that rely on realtime changing content (especially "race to grab this item" style games), or global state (group/game items, notebook, etc...).<br />
          </div>
        </div>


        <div class="checkbox">
          <input type="checkbox" id="game-preload_media" <%= is_checked(preload_media) %>>
          <label for="game-preload_media">
            Preload Media
          </label>
        </div>

      </div>
    </div>

  </div>


  <div class="panel panel-default">
    <div class="panel-heading">
      <h4>Login Codes</h4>
    </div>
    <div class="panel-body">

      <div class="form-group">

        <div id="login-codes">
          <div class="form-group row">
            <div class="col-xs-12 col-md-4 padded">
              <div class="qr_image"></div>
              <p class="qr_instructions">Log in to the game</p>
            </div>
            <div class="col-xs-12 col-md-4 padded locked_codes">
              <div class="qr_image_locked"></div>
              <p class="qr_instructions">Log in to the game, can't log out</p>
            </div>
            <div class="col-xs-12 col-md-4 padded locked_codes">
              <div class="log_out_qr_image"></div>
              <p class="qr_instructions">Scan this code to log out</p><commit_msg>Add message about AR forcing preload media<commit_after><style>
.gmnoprint img
{
max-width:none;
}
</style>
<div class="shrink-center well well-lg game-settings" style="max-width:100%;">
  <form class="form" role="form" onsubmit="return false;">
  <h4>
    Edit Game <span class="object-id text-muted"><%= game_id %></span>
  </h4>

  <div class="form-group row">
    <div class="col-xs-12 col-md-8 padded">

      <div class="form-group">
        <label for="game-name">Name</label>
        <input type="text" autofocus class="form-control" id="game-name" placeholder="Name" value="<%= name %>">
      </div>

      <div class="form-group">
        <label for="game-description">Description</label>
        <textarea class="form-control" id="game-description" placeholder="Description" rows=5><%= description %></textarea>
      </div>

      <div class="form-group">
        <label for="game-intro_scene_id">Intro Scene</label>

        <select class="form-control" id="game-intro_scene_id">
          <option value="0" selected disabled>- Select One -</option>

          <% scenes.each(function(scene) { %>
            <option value="<%= scene.id %>" <%= option_selected(intro_scene_id === scene.id) %>><%= scene.get("name") %></option>
          <% }); %>
        </select>
      </div>

      <div class="checkbox">
        <input type="checkbox" id="game-ipad_two_x" <%= is_checked(ipad_two_x) %>>
        <label for="game-ipad_two_x">
          Scale 2x on iPad
        </label>
      </div>

    </div> <!-- /fields col -->


    <div class="col-xs-12 col-md-4 padded">

      <div class="form-group">
        <label>Appearance</label>

        <div class="thumbnail change-icon">
          <img src=<%= icon_thumbnail_url %>>
          <div class="caption">
            <button type="button" class="btn btn-link btn-info btn-block change-icon">
              <span class="glyphicon glyphicon-picture"></span>
              Icon
            </button>
          </div>
        </div>

        <div class="thumbnail change-media">
          <img src=<%= media_thumbnail_url %>>
          <div class="caption">
            <button type="button" class="btn btn-link btn-info btn-block change-media">
              <span class="glyphicon glyphicon-facetime-video"></span>
              Media
            </button>
          </div>
        </div>
      </div>
    </div> <!-- /media col -->
  </div> <!-- /main form -->

  <div class="form-group">


    <div class="panel panel-default">
      <div class="panel-heading">
        <h4>Game Type</h4>
      </div>
      <div class="panel-body">

        <div class="form-group">
          <label for="type">Category</label>
          <select class="form-control" id="game-type">
            <option value="LOCATION" <%= option_selected(type === "LOCATION") %>>To be played around a specific location</option>
            <option value="ANYWHERE" <%= option_selected(type === "ANYWHERE") %>>Can be played anywhere</option>
            <option value="QR"       <%= option_selected(type === "QR")       %>>Intended for play with QR Codes</option>
          </select>
        </div>

        <div class="form-group">
          <label for="">Location (Used to determine "Nearby Games")</label>
          <div class="game-map-canvas" style="height:150px; width:100%"></div>
        </div>
      </div>
    </div>



    <div class="panel panel-default">
      <div class="panel-heading">
        <h4>Network</h4>
      </div>
      <div class="panel-body">

        <div class="btn-group btn-group-sm btn-group-justified network_levels">
          <!--
          <label class="btn btn-info  <%= tab_selected(network_level === "LOCAL") %>">
            <input type="radio" class="network_level item-type" name="network_level" value="LOCAL" <%= radio_selected(network_level === "LOCAL") %>>
            <span class="glyphicon glyphicon-stats"></span>
            &nbsp;No Internet
          </label>
          -->
          <label class="btn btn-info <%= tab_selected(network_level === "REMOTE_WRITE") %>">
            <input type="radio" class="network_level item-type" name="network_level" value="REMOTE_WRITE" <%= radio_selected(network_level === "REMOTE_WRITE") %>>
            <span class="glyphicon glyphicon-stats"></span>
            &nbsp;Local Evaulation
          </label>
          <!--
          <label class="btn btn-info <%= tab_selected(network_level === "HYBRID") %>">
            <input type="radio" class="network_level item-type" name="network_level" value="HYBRID"    <%= radio_selected(network_level === "HYBRID") %>>
            <span class="glyphicon glyphicon-stats"></span>
            &nbsp;Smart Cloud &trade; Technology
          </label>
          -->
          <label class="btn btn-info <%= tab_selected(network_level === "REMOTE") %>">
            <input type="radio" class="network_level item-type" name="network_level" value="REMOTE" <%= radio_selected(network_level === "REMOTE") %>>
            <span class="glyphicon glyphicon-stats"></span>
            &nbsp;Server Dependent
          </label>
        </div>


        <!-- Info Boxes -->

        <!--
        <div id="LOCAL-fields" class="network-game-tab" <%= tab_visible(network_level === "LOCAL") %>>
          <div class="alert alert-info">
            <span class="glyphicon glyphicon-info-sign"></span>
            <b>No Internet</b> - Once you are in the game, ARIS will make no attempt to contact the ARIS server. Any progress made by players will <b>not</b> be saved across devices/playthroughs.<br />
            <br />
            <b>Recommended for</b> games with static, unchanging content; especially in low-internet locations.<br />
            <b>Not Recommended for</b> multiplayer games that rely on changing global content (such as notes, factories, world items, etc...)
            <b>WARNING</b> - Do not use notebook in this mode.<br />
          </div>
        </div>
        -->

        <div id="REMOTE_WRITE-fields" class="network-game-tab" <%= tab_visible(network_level === "REMOTE_WRITE") %>>
          <div class="alert alert-info">
            <span class="glyphicon glyphicon-info-sign"></span>
            <b>Local Evaluation</b> - Once you are in the game, ARIS will make few attempts to contact the ARIS server. This will result in faster event/requirement computation, but limits networked functionality.<br />
            <br />
            <b>Recommended for</b> games with static, unchanging content.<br />
            <b>Not Recommended for</b> games that rely on changing global content (such as notes, factories, world items, etc...)
          </div>
        </div>

        <!--
        <div id="HYBRID-fields" class="network-game-tab" <%= tab_visible(network_level === "HYBRID") %>>
          <div class="alert alert-info">
            <span class="glyphicon glyphicon-info-sign"></span>
            <b>Smart Cloud &trade; Technology</b> - ARIS will maintain close contact with the ARIS server, but any downtime or sluggishness in connection speed will be mitigated using Smart Cloud &trade; prediction technology.<br />
            <br />
            <b>Recommended for</b> most games.<br />
            <b>Not Recommended for</b> multiplayer games that <b>fundamentally</b> rely on <b>realtime</b> changing content (especially "race to grab this item" style games).
            <b>WARNING</b> - Do not use notebook in this mode.<br />
          </div>
        </div>
        -->

        <div id="REMOTE-fields" class="network-game-tab" <%= tab_visible(network_level === "REMOTE") %>>
          <div class="alert alert-info">
            <span class="glyphicon glyphicon-info-sign"></span>
            <b>Server Dependent</b> - ARIS will not function without a constant connection to the internet. It will rely on the server to validate every action as it is taken.<br />
            <br />
            <b>Recommended for</b> multiplayer games that rely on realtime changing content (especially "race to grab this item" style games), or global state (group/game items, notebook, etc...).<br />
          </div>
        </div>


        <div class="checkbox">
          <input type="checkbox" id="game-preload_media" <%= is_checked(preload_media) %>>
          <label for="game-preload_media">
            Preload Media
          </label>
        </div>

        <p>
          Note: if your game uses AR triggers, media will always be preloaded.
        </p>

      </div>
    </div>

  </div>


  <div class="panel panel-default">
    <div class="panel-heading">
      <h4>Login Codes</h4>
    </div>
    <div class="panel-body">

      <div class="form-group">

        <div id="login-codes">
          <div class="form-group row">
            <div class="col-xs-12 col-md-4 padded">
              <div class="qr_image"></div>
              <p class="qr_instructions">Log in to the game</p>
            </div>
            <div class="col-xs-12 col-md-4 padded locked_codes">
              <div class="qr_image_locked"></div>
              <p class="qr_instructions">Log in to the game, can't log out</p>
            </div>
            <div class="col-xs-12 col-md-4 padded locked_codes">
              <div class="log_out_qr_image"></div>
              <p class="qr_instructions">Scan this code to log out</p>
{'fraction_non_alphanumeric': 0.15808305323647404, 'fraction_numerical': 0.003794860674400954, 'mean_word_length': 2.3564410480349345, 'pattern_counts': {'":': 0, '<': 517, '<?xml version=': 0, '>': 517, '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': '741862', 'n_tokens_mistral': 5659, 'n_tokens_neox': 5290, 'n_words': 1385}