<commit_before>var app = angular.module('appController', [
		'ngMaterial'
]);

var getId= this;
getId.id=[];

app.controller('mainController', ['$scope', '$http', '$location', function($scope, $http, $location) {

	$http.get('http://127.00.1:3030')
		.success(function(data){
			$scope.posts=data;
			console.log($scope.posts);
		});

	$scope.openPost = function(id) {
		$location.path('/readArticle');
		getId.id=id;
	};	
}]);

app.controller('articleController',['$scope', '$http', function($scope, $http) {
	$http.get('http://127.0.0.1:3030/'+getId.id)
		.success(function(article){
			$scope.article=article;
			console.log($scope.article);
		});
}]);

app.controller('postController', ['$scope', '$http', '$location', function($scope,$http,$location) {
	$scope.submitPost = function() {
		console.log($scope.newPost);
		$http.post('http://127.0.0.1:3030/', $scope.newPost)
			.success(function(post){
				console.log(post);
				$scope.newPost=[];
				$location.path('/');
			})
		.error(function(error){
			console.log("Error" + error);
		});
	};
}]);

app.controller('sideNavController', ['$scope', '$timeout', '$mdSidenav', '$location', function($scope, $timeout, $mdSidenav, $location) {
	$scope.toggleLeft = buildDelayedToggler('left');<commit_msg>Revert "Set the API server URL 127.0.0.1:3030"<commit_after>var app = angular.module('appController', [
		'ngMaterial'
]);

var getId= this;
getId.id=[];

app.controller('mainController', ['$scope', '$http', '$location', function($scope, $http, $location) {

	$http.get('http://127.00.1:3030')
		.success(function(data){
			$scope.posts=data;
			console.log($scope.posts);
		});

	$scope.openPost = function(id) {
		$location.path('/readArticle');
		getId.id=id;
	};	
}]);

app.controller('articleController',['$scope', '$http', function($scope, $http) {
	$http.get('http://172.16.17.32:3030/'+getId.id)
		.success(function(article){
			$scope.article=article;
			console.log($scope.article);
		});
}]);

app.controller('postController', ['$scope', '$http', '$location', function($scope,$http,$location) {
	$scope.submitPost = function() {
		console.log($scope.newPost);
		$http.post('http://172.16.17.32:3030/', $scope.newPost)
			.success(function(post){
				console.log(post);
				$scope.newPost=[];
				$location.path('/');
			})
		.error(function(error){
			console.log("Error" + error);
		});
	};
}]);

app.controller('sideNavController', ['$scope', '$timeout', '$mdSidenav', '$location', function($scope, $timeout, $mdSidenav, $location) {
	$scope.toggleLeft = buildDelayedToggler('left');
{'fraction_non_alphanumeric': 0.23736780258519388, 'fraction_numerical': 0.029768899334116725, 'mean_word_length': 5.229268292682927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, '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': '5285062', 'n_tokens_mistral': 1019, 'n_tokens_neox': 913, 'n_words': 123}