<commit_before>angular.module('admin').controller('applicationController', ['$scope', 'ngTableParams',
	function($scope, ngTableParams) {
      	$scope.candidates = [
                  {fName: 'Dom', lName: 'Nostra'} 
            ];

            $scope.addApplicant = function(index) {
            	$scope.applications.splice(index, 1);
            }

            $scope.removeApplicant = function(index) {
            	$scope.applications.splice(index, 1);
            }

            $scope.tableParams = new ngTableParams({
            	page: 1,
            	count: 10,
            	}, {
            	getData: function($defer, params) {
            		$defer.resolve($scope.candidates.slice((params.page() - 1) * params.count(), params.page() * params.count()));
            	}
            });

            $scope.addCandidate = function(newCandidate) {
                  $scope.candidates.push(newCandidate);
                  $scope.tableParams.reload();
            }

  }])<commit_msg>added a watch event to the candidate ctrl<commit_after>angular.module('admin').controller('applicationController', ['$scope', 'ngTableParams',
	function($scope, ngTableParams) {
      	$scope.candidates = [
                  {fName: 'Dom', lName: 'Nostra'} 
            ];

            $scope.addApplicant = function(index) {
            	$scope.applications.splice(index, 1);
            }

            $scope.removeApplicant = function(index) {
            	$scope.applications.splice(index, 1);
            }

            $scope.tableParams = new ngTableParams({
            	page: 1,
            	count: 10,
            	}, {
            	getData: function($defer, params) {
            		$defer.resolve($scope.candidates.slice((params.page() - 1) * params.count(), params.page() * params.count()));
            	}
            });

            $scope.$watch("candidates", function() {
                  tableParams.reload();
            })

            $scope.addCandidate = function(newCandidate) {
                  $scope.candidates.push(newCandidate);
                  $scope.tableParams.reload();
            }

  }])
{'fraction_non_alphanumeric': 0.14076523382144543, 'fraction_numerical': 0.005668398677373642, 'mean_word_length': 1.6878172588832487, 'pattern_counts': {'":': 0, '<': 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': '5936101', 'n_tokens_mistral': 614, 'n_tokens_neox': 576, 'n_words': 84}