<commit_before>(function(){
	var adminCon = angular.module('adminConfiguration', []);
	
	// Create a Controller for jcomparser admin dashboard
	adminCon.controller('jcomparserMainView', ['$routeParams', '$location', '$http', '$scope',
		function($routeParams, $location, $http){
			var controller = this;
			
			// initialize an empty list of scenario Ids
			this.scenarioIds = [];
			this.scenarios = {};
			this.scenarioDetails = {};
			
			$http.get(JEngine_Server_URL + "/" + JComparser_REST_Interface + "/scenarios").
				success(function(data){
				    controller.scenarioDetails = data['ids'];
				    
        		});

			this.getImageForScenario = function(id){
				return	JEngine_Server_URL + "/" + JComparser_REST_Interface + 
					"/scenarios/" + id + "/image/";
			};
					
			// Creates a new instance of the scenario with the given Id
			this.loadInstance = function(id){
				$http.post(JEngine_Server_URL + "/" + JComparser_REST_Interface + "/launch/" + id).
					success(function(data) {
						if (data) {
							return data;
						}
					});
			};
		}]
	);

	// Create a Controller for mail config
	adminCon.controller('mailConfig', ['$routeParams', '$location', '$http', '$scope',
		function($routeParams, $location, $http, $scope){
			var controller = this;
			
			// initialize an empty list of scenario Ids
			this.Details = [];
			this.emailtaskIDs = [];
			this.scenarioIDs = [];
			this.detailsForID = [];

			$http.get(JEngine_Server_URL + "/" + JCore_REST_Interface + "/scenario/").
				success(function(data){
				    controller.scenarioIDs = data['ids'];
				    
        		});

			//post update for email tasks
			this.submitMyForm=function(){
				var data=$scope.form;  
				$http.post(JEngine_Server_URL + "/" + JConfig_REST_Interface + "/emailtask/"+ controller.workingID + "/?", data);
		   	 }

			//get all infos for popup
			this.getDetails = function(id){
				controller.getDetailsForMailtaskID(id);
				controller.workingID = id;
			};

			// Got all emailtasks with the given Id
			this.getAllMailtaskForScenarioID = function(id){
				$http.get(JEngine_Server_URL+"/" + JCore_REST_Interface + "/scenario/" + id + "/emailtask/").
					success(function(data) {
						controller.emailtaskIDs = data['ids'];
					});
			};
			// Got to the instance with the given Id
			this.getDetailsForMailtaskID = function(id){
				$http.get(JEngine_Server_URL + "/" + JCore_REST_Interface +
					"/scenario/0/emailtask/" + id + "/?").
					success(function(data) {
						controller.detailsForID = data;
						$scope.form = { 
								receiver: data['receiver'],
								subject: data['subject'],
								content: data['message']
								};
					});
			};
			
			this.loadData = function(){
				controller.getDetailsForMailtaskID(controller.workingID);
			};
		}]
	);
})();<commit_msg>correcting api path based on global variables<commit_after>(function(){
	var adminCon = angular.module('adminConfiguration', []);
	
	// Create a Controller for jcomparser admin dashboard
	adminCon.controller('jcomparserMainView', ['$routeParams', '$location', '$http', '$scope',
		function($routeParams, $location, $http){
			var controller = this;
			
			// initialize an empty list of scenario Ids
			this.scenarioIds = [];
			this.scenarios = {};
			this.scenarioDetails = {};
			
			$http.get(JEngine_Server_URL + "/" + JComparser_REST_Interface + "/scenarios").
				success(function(data){
				    controller.scenarioDetails = data['ids'];
				    
        		});

			this.getImageForScenario = function(id){
				return	JEngine_Server_URL + "/" + JComparser_REST_Interface + 
					"/scenarios/" + id + "/image/";
			};
					
			// Creates a new instance of the scenario with the given Id
			this.loadInstance = function(id){
				$http.post(JEngine_Server_URL + "/" + JComparser_REST_Interface + "/launch/" + id).
					success(function(data) {
						if (data) {
							return data;
						}
					});
			};
		}]
	);

	// Create a Controller for mail config
	adminCon.controller('mailConfig', ['$routeParams', '$location', '$http', '$scope',
		function($routeParams, $location, $http, $scope){
			var controller = this;
			
			// initialize an empty list of scenario Ids
			this.Details = [];
			this.emailtaskIDs = [];
			this.scenarioIDs = [];
			this.detailsForID = [];

			$http.get(JEngine_Server_URL + "/" + JCore_REST_Interface + "/scenario/").
				success(function(data){
				    controller.scenarioIDs = data['ids'];
				    
        		});

			//post update for email tasks
			this.submitMyForm=function(){
				var data=$scope.form;  
				$http.post(JEngine_Server_URL + "/" + JConfig_REST_Interface + "/emailtask/"+ controller.workingID + "/?", data);
		   	 }

			//get all infos for popup
			this.getDetails = function(id){
				controller.getDetailsForMailtaskID(id);
				controller.workingID = id;
			};

			// Got all emailtasks with the given Id
			this.getAllMailtaskForScenarioID = function(id){
				$http.get(JEngine_Server_URL+"/" + JConfig_REST_Interface + "/scenario/" + id + "/emailtask/").
					success(function(data) {
						controller.emailtaskIDs = data['ids'];
					});
			};
			// Got to the instance with the given Id
			this.getDetailsForMailtaskID = function(id){
				$http.get(JEngine_Server_URL + "/" + JConfig_REST_Interface +
					"/scenario/0/emailtask/" + id + "/?").
					success(function(data) {
						controller.detailsForID = data;
						$scope.form = { 
								receiver: data['receiver'],
								subject: data['subject'],
								content: data['message']
								};
					});
			};
			
			this.loadData = function(){
				controller.getDetailsForMailtaskID(controller.workingID);
			};
		}]
	);
})();
{'fraction_non_alphanumeric': 0.15191218130311615, 'fraction_numerical': 0.0003541076487252125, 'mean_word_length': 2.9753694581280787, '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': '4225945', 'n_tokens_mistral': 2218, 'n_tokens_neox': 1725, 'n_words': 346}