<commit_before>angular.module('myApp.trackUser', [] )

	.controller('trackUserController', function($scope, $http){
		$scope.userToTrack;
		$scope.userKarma;
		$scope.userSubmitted;
		// var userData = $firebase();
		$scope.trackUser = function(user){
			var url = "https://hacker-news.firebaseio.com/v0/user/";
			var fullUrl = url.concat(user);
			var hackerNewsRef = new Firebase(fullUrl);
			hackerNewsRef.on('value', function (snapshot) {
				console.log(snapshot);
				$scope.userToTrack= snapshot.val().id;
				$scope.userSubmitted = snapshot.val().submitted;
				$scope.userKarma = snapshot.val().karma;
			}, function (errorObject) {
			  console.log('The read failed: ' + errorObject.code);
			});	
		}
});

<commit_msg>(FEAT) console logging when update<commit_after>angular.module('myApp.trackUser', [] )

	.controller('trackUserController', function($scope, $http){
		$scope.userToTrack;
		$scope.userKarma;
		$scope.userSubmitted;
		// var userData = $firebase();
		$scope.trackUser = function(user){
			var url = "https://hacker-news.firebaseio.com/v0/user/";
			var fullUrl = url.concat(user);
			var hackerNewsRef = new Firebase(fullUrl);
			hackerNewsRef.on('value', function (snapshot) {
				console.log('updated' snapshot);
				$scope.userToTrack= snapshot.val().id;
				$scope.userSubmitted = snapshot.val().submitted;
				$scope.userKarma = snapshot.val().karma;
			}, function (errorObject) {
			  console.log('The read failed: ' + errorObject.code);
			});	
		}
});


{'fraction_non_alphanumeric': 0.16901408450704225, 'fraction_numerical': 0.0013413816230717639, 'mean_word_length': 4.144827586206897, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7123314', 'n_tokens_mistral': 573, 'n_tokens_neox': 496, 'n_words': 81}