<commit_before>var statControllers = angular.module('statControllers', []);

statControllers.controller('StatListCtrl', ['$scope', '$http',
  function($scope, $http) {
	$http({	method: 'GET', 
			url: 'http://localhost:3003/api/stats/2014/2014/pointsTot' /*'http://localhost:3000/stats',
			params: {yFrom: 2014, yTo: 2014, type: 'pointsTot' }*/
			})
		.success(function(data) {
			$scope.stats = data.stats;
			console.log(data);
		})
		.error(function(data) {
			console.log('Error: ' + data);
		});
	
    $scope.orderProp = 'pointsTot';
  }]);<commit_msg>Update statControllers.js<commit_after>var statControllers = angular.module('statControllers', []);

statControllers.controller('StatListCtrl', ['$scope', '$http', '$location'
  function($scope, $http) {
	$http({	method: 'GET', 
			url: 'http://'.concat($location.host(), ':3003/api/stats/2014/2014/pointsTot') //'http://localhost:3000/stats',
			//params: {yFrom: 2014, yTo: 2014, type: 'pointsTot' }*/
			})
		.success(function(data) {
			$scope.stats = data.stats;
			console.log(data);
		})
		.error(function(data) {
			console.log('Error: ' + data);
		});
	
    $scope.orderProp = 'pointsTot';
  }]);
{'fraction_non_alphanumeric': 0.21649484536082475, 'fraction_numerical': 0.041237113402061855, 'mean_word_length': 4.393518518518518, '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': '3378393', 'n_tokens_mistral': 489, 'n_tokens_neox': 414, 'n_words': 63}