<commit_before>'use strict';

angular.module('myApp.home', ['ngRoute'])

.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/home', {
    templateUrl: 'home/home.html',
    controller: 'HomeCtrl'
  });
}])

.controller('HomeCtrl', ['$scope', '$rootScope', function(scope, rootScope) {
  scope.hasDeadline = false;
  if(rootScope) {
    if (rootScope.mainCollegeList) {
      scope.hasDeadline = true;
      scope.collegeDeadline = {"text": "Early Deadline 1", "date": rootScope.mainCollegeList[0]['edI']}
    } else {
      scope.hasDeadline = false;
      scope.collegeDeadline = {"text": "No deadlines coming up"}
    }
  }
}]);<commit_msg>Basic functionality of home page<commit_after>'use strict';

angular.module('myApp.home', ['ngRoute'])

.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/home', {
    templateUrl: 'home/home.html',
    controller: 'HomeCtrl'
  });
}])

.controller('HomeCtrl', ['$scope', '$rootScope', function(scope, rootScope) {
  scope.hasDeadline = false;
  if(rootScope) {
    if (rootScope.mainCollegeList) {
      var firstCollege = rootScope.mainCollegeList[0];
      scope.hasDeadline = true;
      scope.collegeDeadline = {"text": "Early Deadline 1", "school": firstCollege.name, "date": firstCollege.edI}
    } else {
      scope.hasDeadline = false;
      scope.collegeDeadline = {"text": "No deadlines coming up"}
    }
  }
}]);
{'fraction_non_alphanumeric': 0.17464788732394365, 'fraction_numerical': 0.0028169014084507044, 'mean_word_length': 4.205128205128205, 'pattern_counts': {'":': 7, '<': 3, '<?xml version=': 0, '>': 3, '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': '4641301', 'n_tokens_mistral': 470, 'n_tokens_neox': 456, 'n_words': 87}