<commit_before>﻿(function () {
	const app = angular.module('app');

	console.log("task service is registered");

	app.factory('TaskService', function ($http) {
		var tasks = [];
		var returnObj = {}

		/*returnObj.initTasks = returnObj.refreshTasks().then(function () {
			return tasks;
		}, function (reason) {
			//placeholder here for error handling...
		});*/

		returnObj.getTasks = function () {
			return $http.post('/Tasks/GetTasks/');
			/*then (function (response) {
				//console.log(response);
				//tasks = response.data;
				return response.data;
			}, function (reason) {
				//placeholder here for error handling...
			});*/
		};

		/*returnObj.getTasks = function () { return tasks; };

		returnObj.initTasks = returnObj.refreshTasks();*/


		return returnObj;
		/*return {

			initTasks = refreshTasks().then(function () {
				return tasks;
			}, function (reason) {
				//placeholder here for error handling...
			}),

			refreshTasks() {
				return $http.post('/Tasks/GetTasks/')
				.then(function (response) {
					response.data = tasks;
				}, function (reason) {
					//placeholder here for error handling...
				});
			}
		}*/
	});

})();<commit_msg>style changed<commit_after>﻿(function () {
	const app = angular.module('app');

	app.factory('TaskService', function ($http) {
		
		return {
			getTasks() {
				return $http.post('/Tasks/GetTasks/');
			}
		}
	});

})();
{'fraction_non_alphanumeric': 0.1813620071684588, 'fraction_numerical': 0.0, 'mean_word_length': 2.977207977207977, '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': '518872', 'n_tokens_mistral': 516, 'n_tokens_neox': 421, 'n_words': 91}