<commit_before>
<div class="container" ng-controller="CanvassDashController">
  <div class="row row-content">
    <div class="col-xs-12">
      <div class="col-xs-4">
        <h2>Canvass Dashboard</h2>
      </div>
    </div>

    <div class="col-sm-12 filter-box">
      <form class="form-inline">
        <div class="form-group col-sm-2">
          <h4>Filter by:</h4>
        </div>

        <div class="form-group col-sm-4">
          <label for="name" class="control-label col-sm-3 filter-label">Name</label>
          <input type="text" class="form-control col-sm-9" id="name" name="name" placeholder="Enter name" ng-model="filterText">
        </div>

        <div class="form-group col-sm-1">
          <label for="op" class="sr-only">Filter operation</label>
          <select class="form-control" id="op" name="op" ng-model="filterOp" data-toggle="tooltip" title="Select filter operation" ng-options="op for op in filterOps">
          </select>
        </div>
        
        <div class="form-group col-sm-4">
          <label for="election" class="control-label col-sm-3 filter-label">Election</label>
          <select class="form-control col-sm-9" id="election" name="election" ng-model="filterElection" data-toggle="tooltip" title="Select election"
            ng-options="election._id as election.name for election in elections">
              <option value="">Select election</option>
          </select>
        </div>
        <div class="form-group col-sm-1">
          <button type="reset" class="btn btn-default" ng-click="initFilter()" data-toggle="tooltip" title="Clear filter">Clear</button>
        </div>
      </form>
    </div>
    <div class="col-sm-10">
      <div class="list-group">
        <button type="button" class="list-group-item" ng-repeat="canvass in canvasses | filterDashCanvass: filterText : filterOp : filterElection" ng-class="{active: canvass.isSelected}" ng-click="toggleCanvassSel(canvass)">
          <div class="row">
            <div class="col-sm-12">
              <div class="col-sm-4">
                <p>{{canvass.name}}</p>
              </div>
              <div class="col-sm-4">
                <div ng-if="debug.show">
                  <p><code>{{canvass._id}}</code></p>
                </div>
              </div>
              <div class="col-sm-4">
                <p class="text-right">{{formatDate(canvass.startDate)}}</p>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-sm-12">
              <div class="col-sm-4">
                <p>{{canvass.election.name}}</p>
              </div>
              <div class="col-sm-4">
                <div ng-if="debug.show">
                  <p><code>{{canvass.election._id}}</code></p>
                </div>
              </div>
              <div class="col-sm-4">
                <p class="text-right">{{formatDate(canvass.endDate)}}</p>
              </div>
            </div>
          </div>
        </button>
      </div>
    </div>
    <div class="col-sm-2" ng-controller="StateButtonsController">
      <div ng-include="'views/state_buttons.html'"></div>
    </div>
  </div>
</div>  <!-- end of container -->

<commit_msg>add survey info to canvass dash elements<commit_after>
<div class="container" ng-controller="CanvassDashController">
  <div class="row row-content">
    <div class="col-xs-12">
      <div class="col-xs-4">
        <h2>Canvass Dashboard</h2>
      </div>
    </div>

    <div class="col-sm-12 filter-box">
      <form class="form-inline">
        <div class="form-group col-sm-2">
          <h4>Filter by:</h4>
        </div>

        <div class="form-group col-sm-4">
          <label for="name" class="control-label col-sm-3 filter-label">Name</label>
          <input type="text" class="form-control col-sm-9" id="name" name="name" placeholder="Enter name" ng-model="filterText">
        </div>

        <div class="form-group col-sm-1">
          <label for="op" class="sr-only">Filter operation</label>
          <select class="form-control" id="op" name="op" ng-model="filterOp" data-toggle="tooltip" title="Select filter operation" ng-options="op for op in filterOps">
          </select>
        </div>
        
        <div class="form-group col-sm-4">
          <label for="election" class="control-label col-sm-3 filter-label">Election</label>
          <select class="form-control col-sm-9" id="election" name="election" ng-model="filterElection" data-toggle="tooltip" title="Select election"
            ng-options="election._id as election.name for election in elections">
              <option value="">Select election</option>
          </select>
        </div>
        <div class="form-group col-sm-1">
          <button type="reset" class="btn btn-default" ng-click="initFilter()" data-toggle="tooltip" title="Clear filter">Clear</button>
        </div>
      </form>
    </div>
    <div class="col-sm-10">
      <div class="list-group">
        <button type="button" class="list-group-item" ng-repeat="canvass in canvasses | filterDashCanvass: filterText : filterOp : filterElection" ng-class="{active: canvass.isSelected}" ng-click="toggleCanvassSel(canvass)">
          <div class="row">
            <div class="col-sm-12">
              <div class="col-sm-4">
                <p>{{canvass.name}}</p>
              </div>
              <div class="col-sm-4">
                <div ng-if="debug.show">
                  <p><code>{{canvass._id}}</code></p>
                </div>
              </div>
              <div class="col-sm-4">
                <p class="text-right">{{formatDate(canvass.startDate)}} ~ {{formatDate(canvass.endDate)}}</p>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-sm-12">
              <div class="col-sm-4">
                <p>{{canvass.election.name}}</p>
              </div>
              <div class="col-sm-4">
                <div ng-if="debug.show">
                  <p><code>{{canvass.election._id}}</code></p>
                </div>
              </div>
              <div class="col-sm-4">
                <p class="text-right">{{formatDate(canvass.election.electionDate)}}</p>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-sm-12">
              <div class="col-sm-4">
                <p>{{canvass.survey.name}}</p>
              </div>
              <div class="col-sm-4">
                <div ng-if="debug.show">
                  <p><code>{{canvass.survey._id}}</code></p>
                </div>
              </div>
            </div>
          </div>
        </button>
      </div>
    </div>
    <div class="col-sm-2" ng-controller="StateButtonsController">
      <div ng-include="'views/state_buttons.html'"></div>
    </div>
  </div>
</div>  <!-- end of container -->


{'fraction_non_alphanumeric': 0.18123636363636364, 'fraction_numerical': 0.0096, 'mean_word_length': 1.8988195615514334, 'pattern_counts': {'":': 0, '<': 203, '<?xml version=': 0, '>': 203, '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': '6862390', 'n_tokens_mistral': 2195, 'n_tokens_neox': 2120, 'n_words': 394}