<commit_before>'use strict';

/* Log Events Controller */

mftApp.controller('EventShowCtrl', ['$scope', '$resource', 'SingleEvent', '$routeParams', '$route', '$location', '$filter', 
  function($scope, $resource, SingleEvent, $routeParams, $route, $location, $filter) {
	$scope.singleEvent = [];
	$scope.oldEvent = [];
	$scope.newEvent = [];
	SingleEvent.get({id:$routeParams.id}, function(results){
		angular.forEach(results.results, function(value, key){
			value.DATA = angular.fromJson(value.DATA);
			$scope.singleEvent.push(value);
		});
		console.log(results.results);
		//Compare Old and New Values
		for (var i = 1; i <= $scope.singleEvent.length; i++) {
			console.log("1st For Loop");
			console.log($scope.singleEvent[0].DATA[0]);
			for (var j = 1; j <= $scope.singleEvent[i-1].DATA.length; j++) {
				console.log("1st For Loop");
				if ($scope.singleEvent[i-1].DATA[j-1] != $scope.singleEvent[i].DATA[j]) {
					$scope.oldEvent.push($scope.singleEvent[i-1].DATA[j-1]);
					$scope.newEvent.push($scope.singleEvent[i].DATA[j]);
				}
			}
		}
		console.log($scope.oldEvent);
		console.log($scope.newEvent);
		}, 
		function() {
			console.log("error");
		}
	);
  }
]);<commit_msg>Get Logged Event Attribute<commit_after>'use strict';

/* Log Events Controller */

mftApp.controller('EventShowCtrl', ['$scope', '$resource', 'SingleEvent', '$routeParams', '$route', '$location', '$filter', 
  function($scope, $resource, SingleEvent, $routeParams, $route, $location, $filter) {
	$scope.singleEvent = [];
	$scope.eventData = [];
	$scope.oldEvent = [];
	$scope.newEvent = [];
	SingleEvent.get({id:$routeParams.id}, function(results){
		angular.forEach(results.results, function(value, key){
			value.DATA = angular.fromJson(value.DATA);
			$scope.singleEvent.push(value);
			$scope.eventData.push(value.DATA);
		});
		console.log(results.results);
		//Compare Old and New Values
		for (var i = 1; i <= $scope.singleEvent.length; i++) {
			console.log("1st For Loop");
			console.log($scope.eventData);
			for (var j = 1; j <= eventData.length; j++) {
				console.log("1st For Loop");
				if ($scope.singleEvent[i-1].DATA[j-1] != $scope.singleEvent[i].DATA[j]) {
					$scope.oldEvent.push($scope.singleEvent[i-1].DATA[j-1]);
					$scope.newEvent.push($scope.singleEvent[i].DATA[j]);
				}
			}
		}
		console.log($scope.oldEvent);
		console.log($scope.newEvent);
		}, 
		function() {
			console.log("error");
		}
	);
  }
]);
{'fraction_non_alphanumeric': 0.20879572544184136, 'fraction_numerical': 0.007809288943690916, 'mean_word_length': 4.314410480349345, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4992869', 'n_tokens_mistral': 945, 'n_tokens_neox': 842, 'n_words': 139}