<commit_before><!DOCTYPE html>
<html>
<head>
<title>Campaign Monitoring Tool</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS -->
<link href="css/jquery.dynatable.css" rel="stylesheet" media="screen">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/bootstrap-sortable.css" rel="stylesheet" media="screen">
<link href="css/dc.css" rel="stylesheet" media="screen">
<!-- JS libs -->
<script src="js/jquery-1.11.0.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/jquery.dynatable.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-sortable.js"></script>
<script src="js/d3.js"></script>
<script src="js/dc.js"></script>
<script src="js/crossfilter.js"></script>
<script src="js/underscore-min.js"></script>
<script src="js/ohmage.js"></script>

<!-- JS for this page -->
<script src="index.js"></script>

</head>
<body>
<div class="container">
 <div class="row">
  <div class="col-md-6">
   <h1>Campaign Monitoring Tool <small><a href="javascript:dc.filterAll(); dc.renderAll();">Reset All</a></small></h1>
  </div>
  <div class="col-md-3"><br>
  <select class="form-control" id="campaign_select" disabled>
   <option>Select a campaign</option>
  </select>
  </div>
  <div class="col-md-3"><br>
   <p id="info_text" style="display:none"><span id="info_textResponses">0 responses / 0 users </span> <a data-toggle="modal" data-target="#info_modal"><span class="glyphicon glyphicon-info-sign"></span></a>
   <br><a href="/web" target="_blank">Edit Data</a></p>
  </div>
 </div> <!-- end row 1 -->
 <div class="row" style="display:none" id="generated-content">
  <div class="col-md-5 well">
  <div class="row"> <!-- subrow -->
   <div class="col-md-6" id="activity-pie">
    <div class="row">
    <div class="col-md-12"><span><h5>Active/Inactive Users<a class="reset" href="javascript:activity_pie.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
    </div>
   </div>
   <div class="col-md-6" id="privacy-pie">
    <div class="row">
    <div class="col-md-12"><span><h5>Shared/Private Resp<a class="reset" href="javascript:privacy_pie.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
    </div>
   </div>
  </div> <!-- end subrow -->
  <div class="row"> <!-- subrow -->
   <div class="col-md-12">
    <div class="row">
    <div class="col-md-12" id="date-chart"><span><h5>Total Responses by Day <a class="reset" href="javascript:date_chart.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
    </div>
    <div class="row">
    <div class="col-md-12" id="dist-chart"><span><h5>Total Responses by User <a class="reset" href="javascript:dist_chart.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
    </div>
   </div>
  </div> <!-- end subrow -->
  <div class="row"> <!-- subrow -->
   <div class="col-md-6" id="client-pie">
    <div class="row">
    <div class="col-md-12"><span><h5>Clients<a class="reset" href="javascript:client_pie.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
    </div>
   </div>
  </div>
  </div> <!-- end leftside well 1-->
   <div class="col-md-6 col-md-offset-1 well">
    <div class="row">
    <div class="col-md-6"><span><h4>User List</h4></span></div>
    <div class="col-md-6"><p class="text-right"><input type="checkbox" id="hidePersonal" checked="checked"> Show Personal Info</a></p></div>
    </div>
   <table id="user-table" class="table">
    <thead>
     <tr>
      <th class="dynatable-head">User</th>
      <th class="dynatable-head">First</th>
      <th class="dynatable-head">Last</th>
      <th class="dynatable-head">Private</th>
      <th class="dynatable-head">Shared</th>
      <th class="dynatable-head">Total</th>
     </tr>
    </thead>
   </table>
  </div>
 </div>
</div>
<!-- info modal -->
<div class="modal fade" id="info_modal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="info_title"></h4>
      </div>
      <div class="modal-body">
       <table id="info_table" class="table table-bordered">
	<tr><td>User Totals</td><td><span id="info_userTotal">0</span></td></tr>
        <tr><td>Response Totals</td><td><span id="info_responseTotal">0</span></td></tr>
        <tr><td>Avg responses per active user</td><td><span id="info_perUser">0</span></td></tr>
        <tr><td>Responses with GPS data</td><td><span id="info_gps">0</span></td></tr>
        <tr><td>First Response Date</td><td><span id="info_firstDate">0</span></td></tr>
        <tr><td>Last Response Date</td><td><span id="info_lastDate">0</span></td></tr>
        <tr><td>Total Collection Days</td><td><span id="info_totalDate">0</span></td></tr>
       </table>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>

</html>

<commit_msg>move "reset all" button to better suggest what it is resetting<commit_after><!DOCTYPE html>
<html>
<head>
<title>Campaign Monitoring Tool</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS -->
<link href="css/jquery.dynatable.css" rel="stylesheet" media="screen">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/bootstrap-sortable.css" rel="stylesheet" media="screen">
<link href="css/dc.css" rel="stylesheet" media="screen">
<!-- JS libs -->
<script src="js/jquery-1.11.0.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/jquery.dynatable.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-sortable.js"></script>
<script src="js/d3.js"></script>
<script src="js/dc.js"></script>
<script src="js/crossfilter.js"></script>
<script src="js/underscore-min.js"></script>
<script src="js/ohmage.js"></script>

<!-- JS for this page -->
<script src="index.js"></script>

</head>
<body>
<div class="container">
 <div class="row">
  <div class="col-md-6">
   <h1>Campaign Monitoring Tool</h1>
  </div>
  <div class="col-md-3"><br>
  <select class="form-control" id="campaign_select" disabled>
   <option>Select a campaign</option>
  </select>
  </div>
  <div class="col-md-3"><br>
   <p id="info_text" style="display:none"><span id="info_textResponses">0 responses / 0 users </span> <a data-toggle="modal" data-target="#info_modal"><span class="glyphicon glyphicon-info-sign"></span></a>
   <br><a href="/web" target="_blank">Edit Data</a></p>
  </div>
 </div> <!-- end row 1 -->
 <div class="row" style="display:none" id="generated-content">
  <div class="col-md-5 well">
  <div class="row"><div class="col-md-12"><p class="text-right"><a href="javascript:dc.filterAll(); dc.renderAll();">Reset All</a><p></div></div>
  <div class="row"> <!-- subrow -->
   <div class="col-md-6" id="activity-pie">
    <div class="row">
    <div class="col-md-12"><span><h5>Active/Inactive Users<a class="reset" href="javascript:activity_pie.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
    </div>
   </div>
   <div class="col-md-6" id="privacy-pie">
    <div class="row">
    <div class="col-md-12"><span><h5>Shared/Private Resp<a class="reset" href="javascript:privacy_pie.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
    </div>
   </div>
  </div> <!-- end subrow -->
  <div class="row"> <!-- subrow -->
   <div class="col-md-12">
    <div class="row">
    <div class="col-md-12" id="date-chart"><span><h5>Total Responses by Day <a class="reset" href="javascript:date_chart.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
    </div>
    <div class="row">
    <div class="col-md-12" id="dist-chart"><span><h5>Total Responses by User <a class="reset" href="javascript:dist_chart.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
    </div>
   </div>
  </div> <!-- end subrow -->
  <div class="row"> <!-- subrow -->
   <div class="col-md-6" id="client-pie">
    <div class="row">
    <div class="col-md-12"><span><h5>Clients<a class="reset" href="javascript:client_pie.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
    </div>
   </div>
  </div>
  </div> <!-- end leftside well 1-->
   <div class="col-md-6 col-md-offset-1 well">
    <div class="row">
    <div class="col-md-6"><span><h4>User List</h4></span></div>
    <div class="col-md-6"><p class="text-right"><input type="checkbox" id="hidePersonal" checked="checked"> Show Personal Info</a></p></div>
    </div>
   <table id="user-table" class="table">
    <thead>
     <tr>
      <th class="dynatable-head">User</th>
      <th class="dynatable-head">First</th>
      <th class="dynatable-head">Last</th>
      <th class="dynatable-head">Private</th>
      <th class="dynatable-head">Shared</th>
      <th class="dynatable-head">Total</th>
     </tr>
    </thead>
   </table>
  </div>
 </div>
</div>
<!-- info modal -->
<div class="modal fade" id="info_modal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="info_title"></h4>
      </div>
      <div class="modal-body">
       <table id="info_table" class="table table-bordered">
	<tr><td>User Totals</td><td><span id="info_userTotal">0</span></td></tr>
        <tr><td>Response Totals</td><td><span id="info_responseTotal">0</span></td></tr>
        <tr><td>Avg responses per active user</td><td><span id="info_perUser">0</span></td></tr>
        <tr><td>Responses with GPS data</td><td><span id="info_gps">0</span></td></tr>
        <tr><td>First Response Date</td><td><span id="info_firstDate">0</span></td></tr>
        <tr><td>Last Response Date</td><td><span id="info_lastDate">0</span></td></tr>
        <tr><td>Total Collection Days</td><td><span id="info_totalDate">0</span></td></tr>
       </table>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>

</html>


{'fraction_non_alphanumeric': 0.24489986027014438, 'fraction_numerical': 0.01080577550069865, 'mean_word_length': 4.176470588235294, 'pattern_counts': {'":': 0, '<': 533, '<?xml version=': 0, '>': 533, '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': '3332404', 'n_tokens_mistral': 3857, 'n_tokens_neox': 3788, 'n_words': 669}