<commit_before><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Suppose - ScrUm Planning POker SystEm</title>
  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="css/style.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
</head>
<body>
  <script type="text/x-handlebars">
    {{outlet}}
    {{outlet 'dialog'}}
  </script>

  <script type="text/x-handlebars" id="index">
    <div class="container" style="margin-top:20px">
      <div class="jumbotron">
        <h2>Suppose <small>The online planning poker</small></h2>
        <p style="font-size:small;">Suppose is a simple service for arragning planning poker when teams are split over multiple locations.</p>
        <p>
          <button class="btn btn-primary btn-lg" {{action 'showDialog' 'createPlanningSession'}} >Create Planning Session</button>
          <button class="btn btn-primary btn-lg" {{action 'showDialog' 'joinPlanningSession'}} >Join Planning Session</button>
        </p>
      </div>
    </div>
  </script>

  <script type="text/x-handlebars" id="participant">
    {{partial 'menu'}}
    {{outlet}}
  </script>

  <script type="text/x-handlebars" id="menu">
    <nav class="navbar navbar-default navbar-static-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-menu">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <p class="navbar-brand">{{controllers.session.sessionToken}}</p>
        </div>
        <div class="collapse navbar-collapse" id="navbar-menu">
          <ul class="nav navbar-nav">
            {{#if controllers.session.isHost}}
            <li><a href="#" {{action "showDialog" "countdown"}} >Start countdown</a></li>
            <li><a href="#" {{action "showDialog" "startEstimationRound"}} >Start estimating</a></li>
            {{/if}}
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">Participants
                <span class="badge">{{participants.length}}</span>
              </a>
              <ul class="dropdown-menu" role="menu">
                {{#each participant in participants}}
                  <li><p class="navbar-text">{{participant}}</p></li>
                {{/each}}
              </ul>
            </li>
            {{#unless hasHost}}
            <li><a href="#" {{action "showDialog" "becomeHost"}} >Become host</a></li>
            {{/unless}}
            {{#if controllers.session.isHost}}
              <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">Request a break
                  {{#if noWantsBreak}}
                    <span class="badge">{{noWantsBreak}}</span>
                  {{/if}}
                </a>
                <ul class="dropdown-menu" role="menu">
                  <li><a href="#" {{action "showDialog" "haveBreak"}} >Have break</a></li>
                </ul>
              </li>
            {{else}}
              <li><a href="#" {{action "requestBreak"}} >Request a break
                {{#if noWantsBreak}}
                  <span class="badge">{{noWantsBreak}}</span>
                {{/if}}
                </a></li>
            {{/if}}
            <li><a href="#" {{action "leave"}} >Leave</a></li>
          </ul>
        </div>
      </div>
    </nav>
  </script>

  <script type="text/x-handlebars" id="participantCountdown">
    <h1>ParticipantCountdown</h1>
    <p>{{controllers.participant.idleTimeout}} minutes</p>
  </script>

  <script type="text/x-handlebars" id="participantEstimate">
    <div class="container well">
      <h1 class="col-sm-offset-4">
        <span class="glyphicon glyphicon-tasks" aria-hidden="true"/>
        <span>ParticipantEstimate</span>
      </h1>
      <hr />
      {{#each val in model}}
        <button class="col-sm-3 col-xs-12 btn btn-info item" {{action "estimate" val}}><span class="estimate-badge">{{val}}</span></button>
      {{/each}}
    </div>
  </script>

  <script type="text/x-handlebars" id="participantEstimateResults">
    <h1>ParticipantEstimateResult</h1>
    {{#each item in controllers.participant.estimateResults.values}}
      {{log 'item is' item}}
    {{/each}}
  </script>

  <script type="text/x-handlebars" id="participantBreak">
    <h1>ParticipantEstimateBreak</h1>
    <p>{{controllers.participant.breakTimeout}} minutes</p>
  </script>

  <!-- Dialog Component -->

  <script type="text/x-handlebars" id="components/suppose-dialog">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">
        <div class="modal-header">
          <div class="button close btn-dismiss" {{action 'closeDialog'}}>x</div>
          <h4 class="modal-title">{{title}}</h4>
        </div>

        <div class="modal-body">
          {{yield}}
        </div>
      </div>
    </div>
  </script>

  <!-- Dialogs -->

  <script type="text/x-handlebars" id="createPlanningSession">
    {{#suppose-dialog title="Create Planning Session" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" placeholder="Your nickname" value=nickname}}
        {{input required="true" class="form-control" action="createSession" placeholder="Enter host key" value=hostKey}}
      </div>
      <button class="btn btn-primary" {{action "createSession"}}>Create</button>
    {{/suppose-dialog}}
  </script>

  <script type="text/x-handlebars" id="joinPlanningSession">
    {{#suppose-dialog title="Join Planning Session" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" placeholder="Your nickname" value=nickname}}
        {{input required="true" class="form-control" action="joinSession" placeholder="Enter session token" value=sessionToken}}
      </div>
      <button class="btn btn-primary" {{action "joinSession"}}>Join</button>
    {{/suppose-dialog}}
  </script>

  <script type="text/x-handlebars" id="countdown">
    {{#suppose-dialog title="Start a countdown" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" action="startCountdown" placeholder="Countdown in minutes" value=idleTimeout}}
      </div>
      <button class="btn btn-primary" {{action "startCountdown"}}>Start</button>
    {{/suppose-dialog}}
  </script>

  <script type="text/x-handlebars" id="startEstimationRound">
    {{#suppose-dialog title="Start Estimation Round" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" action="startEstimationRound" placeholder="Estimation timeout in seconds" value=estimateTimeout}}
      </div>
      <button class="btn btn-primary" {{action "startEstimationRound"}}>Start</button>
    {{/suppose-dialog}}
  </script>

  <script type="text/x-handlebars" id="becomeHost">
    {{#suppose-dialog title="Become host" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" action="becomeHost" placeholder="Enter host key" value=hostKey}}
      </div>
      <button class="btn btn-primary" {{action "becomeHost"}}>Become host</button>
    {{/suppose-dialog}}
  </script>

  <script type="text/x-handlebars" id="haveBreak">
    {{#suppose-dialog title="Have a break" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" action="haveBreak" placeholder="Break for number of minutes" value=breakTimeout}}
      </div>
      <button class="btn btn-primary" {{action "haveBreak"}}>Have a break</button>
    {{/suppose-dialog}}
  </script>

  <script src="/socket.io/socket.io.js"></script>
  <script src="js/libs/jquery-1.10.2.js"></script>
  <script src="js/libs/ember-template-compiler-1.10.0.js"></script>
  <script src="js/libs/ember-1.10.0.debug.js"></script>
  <script src="js/libs/ember-sockets-0.6.10.js"></script>
  <script src="js/libs/bootstrap.3.3.2.js"></script>
  <!-- Would like to use CDN but it contains a bug, waiting for 3.3.3
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
  -->
  <script src="js/app.js"></script>
  <!-- to activate the test runner, add the "?test" query string parameter -->
  <script src="tests/runner.js"></script>
</body>
</html>
<commit_msg>Modified estimation gui to support 2 cols on mobile devices<commit_after><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Suppose - ScrUm Planning POker SystEm</title>
  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="css/style.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
</head>
<body>
  <script type="text/x-handlebars">
    {{outlet}}
    {{outlet 'dialog'}}
  </script>

  <script type="text/x-handlebars" id="index">
    <div class="container" style="margin-top:20px">
      <div class="jumbotron">
        <h2>Suppose <small>The online planning poker</small></h2>
        <p style="font-size:small;">Suppose is a simple service for arragning planning poker when teams are split over multiple locations.</p>
        <p>
          <button class="btn btn-primary btn-lg" {{action 'showDialog' 'createPlanningSession'}} >Create Planning Session</button>
          <button class="btn btn-primary btn-lg" {{action 'showDialog' 'joinPlanningSession'}} >Join Planning Session</button>
        </p>
      </div>
    </div>
  </script>

  <script type="text/x-handlebars" id="participant">
    {{partial 'menu'}}
    {{outlet}}
  </script>

  <script type="text/x-handlebars" id="menu">
    <nav class="navbar navbar-default navbar-static-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-menu">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <p class="navbar-brand">{{controllers.session.sessionToken}}</p>
        </div>
        <div class="collapse navbar-collapse" id="navbar-menu">
          <ul class="nav navbar-nav">
            {{#if controllers.session.isHost}}
            <li><a href="#" {{action "showDialog" "countdown"}} >Start countdown</a></li>
            <li><a href="#" {{action "showDialog" "startEstimationRound"}} >Start estimating</a></li>
            {{/if}}
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">Participants
                <span class="badge">{{participants.length}}</span>
              </a>
              <ul class="dropdown-menu" role="menu">
                {{#each participant in participants}}
                  <li><p class="navbar-text">{{participant}}</p></li>
                {{/each}}
              </ul>
            </li>
            {{#unless hasHost}}
            <li><a href="#" {{action "showDialog" "becomeHost"}} >Become host</a></li>
            {{/unless}}
            {{#if controllers.session.isHost}}
              <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">Request a break
                  {{#if noWantsBreak}}
                    <span class="badge">{{noWantsBreak}}</span>
                  {{/if}}
                </a>
                <ul class="dropdown-menu" role="menu">
                  <li><a href="#" {{action "showDialog" "haveBreak"}} >Have break</a></li>
                </ul>
              </li>
            {{else}}
              <li><a href="#" {{action "requestBreak"}} >Request a break
                {{#if noWantsBreak}}
                  <span class="badge">{{noWantsBreak}}</span>
                {{/if}}
                </a></li>
            {{/if}}
            <li><a href="#" {{action "leave"}} >Leave</a></li>
          </ul>
        </div>
      </div>
    </nav>
  </script>

  <script type="text/x-handlebars" id="participantCountdown">
    <h1>ParticipantCountdown</h1>
    <p>{{controllers.participant.idleTimeout}} minutes</p>
  </script>

  <script type="text/x-handlebars" id="participantEstimate">
    <div class="container well">
      {{#each val in model}}
        <button class="col-sm-3 col-xs-6 btn btn-info item" {{action "estimate" val}}><span class="estimate-badge">{{val}}</span></button>
      {{/each}}
    </div>
  </script>

  <script type="text/x-handlebars" id="participantEstimateResults">
    <h1>ParticipantEstimateResult</h1>
    {{#each item in controllers.participant.estimateResults.values}}
      {{log 'item is' item}}
    {{/each}}
  </script>

  <script type="text/x-handlebars" id="participantBreak">
    <h1>ParticipantEstimateBreak</h1>
    <p>{{controllers.participant.breakTimeout}} minutes</p>
  </script>

  <!-- Dialog Component -->

  <script type="text/x-handlebars" id="components/suppose-dialog">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">
        <div class="modal-header">
          <div class="button close btn-dismiss" {{action 'closeDialog'}}>x</div>
          <h4 class="modal-title">{{title}}</h4>
        </div>

        <div class="modal-body">
          {{yield}}
        </div>
      </div>
    </div>
  </script>

  <!-- Dialogs -->

  <script type="text/x-handlebars" id="createPlanningSession">
    {{#suppose-dialog title="Create Planning Session" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" placeholder="Your nickname" value=nickname}}
        {{input required="true" class="form-control" action="createSession" placeholder="Enter host key" value=hostKey}}
      </div>
      <button class="btn btn-primary" {{action "createSession"}}>Create</button>
    {{/suppose-dialog}}
  </script>

  <script type="text/x-handlebars" id="joinPlanningSession">
    {{#suppose-dialog title="Join Planning Session" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" placeholder="Your nickname" value=nickname}}
        {{input required="true" class="form-control" action="joinSession" placeholder="Enter session token" value=sessionToken}}
      </div>
      <button class="btn btn-primary" {{action "joinSession"}}>Join</button>
    {{/suppose-dialog}}
  </script>

  <script type="text/x-handlebars" id="countdown">
    {{#suppose-dialog title="Start a countdown" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" action="startCountdown" placeholder="Countdown in minutes" value=idleTimeout}}
      </div>
      <button class="btn btn-primary" {{action "startCountdown"}}>Start</button>
    {{/suppose-dialog}}
  </script>

  <script type="text/x-handlebars" id="startEstimationRound">
    {{#suppose-dialog title="Start Estimation Round" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" action="startEstimationRound" placeholder="Estimation timeout in seconds" value=estimateTimeout}}
      </div>
      <button class="btn btn-primary" {{action "startEstimationRound"}}>Start</button>
    {{/suppose-dialog}}
  </script>

  <script type="text/x-handlebars" id="becomeHost">
    {{#suppose-dialog title="Become host" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" action="becomeHost" placeholder="Enter host key" value=hostKey}}
      </div>
      <button class="btn btn-primary" {{action "becomeHost"}}>Become host</button>
    {{/suppose-dialog}}
  </script>

  <script type="text/x-handlebars" id="haveBreak">
    {{#suppose-dialog title="Have a break" action="closeDialog"}}
      <div class="form-group">
        {{input required="true" class="form-control" action="haveBreak" placeholder="Break for number of minutes" value=breakTimeout}}
      </div>
      <button class="btn btn-primary" {{action "haveBreak"}}>Have a break</button>
    {{/suppose-dialog}}
  </script>

  <script src="/socket.io/socket.io.js"></script>
  <script src="js/libs/jquery-1.10.2.js"></script>
  <script src="js/libs/ember-template-compiler-1.10.0.js"></script>
  <script src="js/libs/ember-1.10.0.debug.js"></script>
  <script src="js/libs/ember-sockets-0.6.10.js"></script>
  <script src="js/libs/bootstrap.3.3.2.js"></script>
  <!-- Would like to use CDN but it contains a bug, waiting for 3.3.3
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
  -->
  <script src="js/app.js"></script>
  <!-- to activate the test runner, add the "?test" query string parameter -->
  <script src="tests/runner.js"></script>
</body>
</html>

{'fraction_non_alphanumeric': 0.1841452868261747, 'fraction_numerical': 0.005361775727875468, 'mean_word_length': 3.036769839422853, 'pattern_counts': {'":': 0, '<': 415, '<?xml version=': 0, '>': 415, 'https://': 4, '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': '5677625', 'n_tokens_mistral': 5478, 'n_tokens_neox': 5280, 'n_words': 1088}