<commit_before><meta name="robots" content="noindex">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Singapore Schools</title>
  <link rel="stylesheet" href=
  "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" type=
  "text/css" />
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.9/angular.min.js"
  type="text/javascript">
</script>
    <script src="https://cdn.firebase.com/js/client/2.0.4/firebase.js"></script>
    <script src="https://cdn.firebase.com/libs/angularfire/0.8.0/angularfire.min.js"></script>

    <!--Google Analytics -->
    <script src="https://dl.dropboxusercontent.com/u/4972572/temp/angulartics-master/dist/angulartics.min.js"></script>
    <script src="https://dl.dropboxusercontent.com/u/4972572/temp/angulartics-master/dist/angulartics-ga.min.js"></script>
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    ga('create', 'UA-60478752-1', { 'cookieDomain': 'none' });
    </script>
    <!-- Anagular-char data -->
    <link rel="stylesheet" href="https://cdn.rawgit.com/jtblin/angular-chart.js/master/dist/angular-chart.css" type="text/css" />  
    <script src="https://cdn.rawgit.com/nnnick/Chart.js/master/Chart.min.js" type="text/javascript"></script>
    <script src="https://cdn.rawgit.com/jtblin/angular-chart.js/master/dist/angular-chart.js" type="text/javascript"></script>

</head>

<body ng-app="schools">
  <div class="panel panel-default" ng-controller="TableCtrl" ng-init="predicate='-badgeEarners'">
    <table class="table table-striped">
      <tr>
        <th></th>
        <th></th>
        <th></th>
        <th>Sec1</th>
        <th>Sec2</th>
        <th>Sec3</th>
        <th>Sec4</th>
        <th>JC1</th>
        <th>JC2</th>
        <th></th>
        <th></th>
      </tr>
      <tr>
        <th>Crest</th>
        <th><a href="" analytics-on="click" analytics-event="Name Sort" analytics-category="Stats Table" ng-click="predicate = 'name'">School</a></th>
        <th><a href="" analytics-on="click" analytics-event="Integrated Sort" analytics-category="Stats Table" ng-click="predicate = 'group'">School Type</a></th>
        <th>2002</th>
        <th>2001</th>
        <th>2000</th>
        <th>1999</th>
        <th>1998</th>
        <th>1997</th>
        <th><a href="" analytics-on="click" analytics-event="Badge Earners" analytics-category="Stats Table" ng-click="predicate = '-badgeEarners'">Total Registered</a></th>
        <th>Code Combat Auth</th>
        <th>Github Auth</th>

      </tr>


      <tr ng-repeat="school in schools | orderBy : predicate" ng-show="school.name"> 
        <td><img height="24" width="24" title="{{school.name}}" ng-src="{{school.crest}}"></td>
        <td>{{school.name}}</td>
        <td>{{school.group}}</td>
        <td><span ng-show="school.integrated || school.group=='Secondary'">1</span>
          <span ng-hide="school.integrated || school.group=='Secondary'">-</span></td>
        <td><span ng-show="school.integrated || school.group=='Secondary'">1</span>
          <span ng-hide="school.integrated || school.group=='Secondary'">-</span></td>
        <td><span ng-show="school.integrated || school.group=='Secondary'">1</span>
          <span ng-hide="school.integrated || school.group=='Secondary'">-</span></td>
        <td><span ng-show="school.integrated || school.group=='Secondary'">1</span>
          <span ng-hide="school.integrated || school.group=='Secondary'">-</span></td>
        <td ng-show="school.group=='Junior College' || school.group=='Polytechnic'  ">{{school.badgeEarners/2 |number:0}}</td>
        <td ng-hide="school.group=='Junior College' || school.group=='Polytechnic'  ">-</td>
        
        <td ng-show="school.group=='Junior College' || school.group=='Polytechnic'">{{school.badgeEarners/2 |number:0}}</td>
        <td ng-hide="school.group=='Junior College' || school.group=='Polytechnic'">-</td>
        <td>{{school.badgeEarners}}</td>
        <td>0</td>
        <td>0</td>
        
      </tr>
      <tr class="bold">
        
          <th>Total</th>
          <th></th>
          <th></th>
          <th></th>
          <th></th>
          <th></th>
          <th></th>
          <th></th>
          <th></th>
          <th>{{numCoders}}</th>      
      </tr>
    </table>
    <br>
    
<script id="jsbin-javascript">

var app = angular.module("schools", ["firebase","chart.js",'angulartics', 'angulartics.google.analytics']).config(function ($analyticsProvider) {
            $analyticsProvider.firstPageview(true); 
            $analyticsProvider.withAutoBase(true);  
    });

/*var app = angular.module("schools", ["firebase","chart.js"])*/

app.controller("TableCtrl", ['$scope','$http','$firebase', function ($scope, $http, $firebase) {
   
   $scope.numCoders = 0;<commit_msg>Updated progress table<commit_after><meta name="robots" content="noindex">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Singapore Schools</title>
  <link rel="stylesheet" href=
  "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" type=
  "text/css" />
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.9/angular.min.js"
  type="text/javascript">
</script>
    <script src="https://cdn.firebase.com/js/client/2.0.4/firebase.js"></script>
    <script src="https://cdn.firebase.com/libs/angularfire/0.8.0/angularfire.min.js"></script>

    <!--Google Analytics -->
    <script src="https://dl.dropboxusercontent.com/u/4972572/temp/angulartics-master/dist/angulartics.min.js"></script>
    <script src="https://dl.dropboxusercontent.com/u/4972572/temp/angulartics-master/dist/angulartics-ga.min.js"></script>
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    ga('create', 'UA-60478752-1', { 'cookieDomain': 'none' });
    </script>
    <!-- Anagular-char data -->
    <link rel="stylesheet" href="https://cdn.rawgit.com/jtblin/angular-chart.js/master/dist/angular-chart.css" type="text/css" />  
    <script src="https://cdn.rawgit.com/nnnick/Chart.js/master/Chart.min.js" type="text/javascript"></script>
    <script src="https://cdn.rawgit.com/jtblin/angular-chart.js/master/dist/angular-chart.js" type="text/javascript"></script>

</head>

<body ng-app="schools">
  <div class="panel panel-default" ng-controller="TableCtrl" ng-init="predicate='-badgeEarners'">
    <table class="table table-striped">
      <tr>
        <th></th>
        <th></th>
        <th></th>
        <th>Sec1</th>
        <th>Sec2</th>
        <th>Sec3</th>
        <th>Sec4</th>
        <th>JC1</th>
        <th>JC2</th>
        <th></th>
        <th></th>
        <th></th>
        <th></th>
        <th></th>
        <th></th>
      </tr>
      <tr>
        <th>Crest</th>
        <th><a href="" analytics-on="click" analytics-event="Name Sort" analytics-category="Stats Table" ng-click="predicate = 'name'">School</a></th>
        <th><a href="" analytics-on="click" analytics-event="Integrated Sort" analytics-category="Stats Table" ng-click="predicate = 'group'">School Type</a></th>
        <th>2002</th>
        <th>2001</th>
        <th>2000</th>
        <th>1999</th>
        <th>1998</th>
        <th>1997</th>
        <th><a href="" analytics-on="click" analytics-event="Badge Earners" analytics-category="Stats Table" ng-click="predicate = '-badgeEarners'">Total Registered</a></th>
        <th>Code Combat Auth</th>
        <th>Earned Code Combat Badge</th>
        <th>Solved SingPath Problem</th>
        <th>Joined a Class</th>
        <th>Solved a Problem in Class</th>
      </tr>


      <tr ng-repeat="school in schools | orderBy : predicate" ng-show="school.name"> 
        <td><img height="24" width="24" title="{{school.name}}" ng-src="{{school.crest}}"></td>
        <td>{{school.name}}</td>
        <td>{{school.group}}</td>
        <td><span ng-show="school.integrated || school.group=='Secondary'">1</span>
          <span ng-hide="school.integrated || school.group=='Secondary'">-</span></td>
        <td><span ng-show="school.integrated || school.group=='Secondary'">1</span>
          <span ng-hide="school.integrated || school.group=='Secondary'">-</span></td>
        <td><span ng-show="school.integrated || school.group=='Secondary'">1</span>
          <span ng-hide="school.integrated || school.group=='Secondary'">-</span></td>
        <td><span ng-show="school.integrated || school.group=='Secondary'">1</span>
          <span ng-hide="school.integrated || school.group=='Secondary'">-</span></td>
        <td ng-show="school.group=='Junior College' || school.group=='Polytechnic'  ">{{school.badgeEarners/2 |number:0}}</td>
        <td ng-hide="school.group=='Junior College' || school.group=='Polytechnic'  ">-</td>
        
        <td ng-show="school.group=='Junior College' || school.group=='Polytechnic'">{{school.badgeEarners/2 |number:0}}</td>
        <td ng-hide="school.group=='Junior College' || school.group=='Polytechnic'">-</td>
        <td>{{school.badgeEarners}}</td>
        <td>0</td>
        <td>0</td>
        <td>0</td>
        <td>0</td>
        <td>0</td>        
      </tr>
      <tr class="bold">
        
          <th>Total</th>
          <th></th>
          <th></th>
          <th></th>
          <th></th>
          <th></th>
          <th></th>
          <th></th>
          <th></th>
          <th>{{numCoders}}</th> 
          <th></th>
          <th></th>
          <th></th>
               
      </tr>
    </table>
    <br>
    
<script id="jsbin-javascript">

var app = angular.module("schools", ["firebase","chart.js",'angulartics', 'angulartics.google.analytics']).config(function ($analyticsProvider) {
            $analyticsProvider.firstPageview(true); 
            $analyticsProvider.withAutoBase(true);  
    });

/*var app = angular.module("schools", ["firebase","chart.js"])*/

app.controller("TableCtrl", ['$scope','$http','$firebase', function ($scope, $http, $firebase) {
   
   $scope.numCoders = 0;
{'fraction_non_alphanumeric': 0.22180952380952382, 'fraction_numerical': 0.017047619047619048, 'mean_word_length': 3.0049580472921433, 'pattern_counts': {'":': 0, '<': 343, '<?xml version=': 0, '>': 343, 'https://': 18, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '1826342', 'n_tokens_mistral': 3878, 'n_tokens_neox': 3628, 'n_words': 458}