<commit_before>"use strict";

var crunchtimeControllers = angular.module("crunchtimeControllers", []);

crunchtimeControllers.controller('crunchtimeAppCtrl', function($scope) {
  $scope.todos = [];

  $scope.done = function(index) {
    $scope.todos.splice(index, 1);
  };

  $scope.add = function(e) {
    if (e.which && e.which === 13) { //13 is the enter button
      $scope.todos.push($scope.newTodo);
      $scope.newTodo = '';
    }
  };

});<commit_msg>made a countdown thing<commit_after>"use strict";

var crunchtimeControllers = angular.module("crunchtimeControllers", []);

crunchtimeControllers.controller('crunchtimeAppCtrl', function($scope, $interval) {
  $scope.todos = [];

  $scope.done = function(index) {
    $scope.todos.splice(index, 1);
  };

  $scope.add = function(e) {
    if (e.which && e.which === 13) { //13 is the enter button
      $scope.todos.push($scope.newTodo);
      $scope.newTodo = '';
    }
  };

  $scope.countdown = function() {
    var endDate = new Date(2014, 10, 20);

    function updateCountdown() {
      var now = new Date();
      if (endDate > now) {
        $scope.countdown = ((enddate - now) / (1000 * 60 * 60 * 24)).toFixed(6) + " days remain 'til due"
      } else {
        $scope.countdown = "OVERDUE";
      }
    }

    $interval(updatecountdown, 30)
  }

});
{'fraction_non_alphanumeric': 0.17361637604245642, 'fraction_numerical': 0.02350265352539803, 'mean_word_length': 3.125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5591309', 'n_tokens_mistral': 495, 'n_tokens_neox': 464, 'n_words': 87}