<commit_before>/**
 * @author Nourhan
 */

function readAllMessages() {
	
//set filtervalues and type later 
var Action;

jQuery.ajax({
    type: "POST",
    url: 'php/getMsgConnection.php',
    dataType: 'json',
    data: {Action:'GetAll'},
    success: function(data) {
    	console.log(data);
    },
    error: function(textStatus){
    	console.log("textStatus");
    }
        
});
}

function getMessagesbyExtent(Pointlow,PointUp) {
	
//set filtervalues and type later 
var Action,Argument1, Argument2;

jQuery.ajax({
    type: "POST",
    url: 'php/getMsgConnection.php',
    dataType: 'json',
    data: {Action:'ByExtent', Argument1:Pointlow, Argument2:PointUp},
    success: function(data) {
    	console.log(data);
    },
    error: function(textStatus){
    	console.log("textStatus");
    }
        
});
}

<commit_msg>Added error handler<commit_after>/*
 * @author Nourhan
 */

function readAllMessages() {
	
//set filtervalues and type later 
var Action;

jQuery.ajax({
    type: "POST",
    url: 'php/getMsgConnection.php',
    dataType: 'json',
    data: {Action:'GetAll'},
    success: function(data) {
    	console.log(data);
    },
    error: function(textStatus, error){
    	console.log(textStatus);
	console.log(error);
    }
        
});
}

function getMessagesbyExtent(Pointlow,PointUp) {
	
//set filtervalues and type later 
var Action,Argument1, Argument2;

jQuery.ajax({
    type: "POST",
    url: 'php/getMsgConnection.php',
    dataType: 'json',
    data: {Action:'ByExtent', Argument1:Pointlow, Argument2:PointUp},
    success: function(data) {
    	console.log(data);
    },
    error: function(textStatus){
    	console.log("textStatus");
    }
        
});
}


{'fraction_non_alphanumeric': 0.1512108682811577, 'fraction_numerical': 0.004725339633786178, 'mean_word_length': 3.1827160493827162, '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': '3057718', 'n_tokens_mistral': 571, 'n_tokens_neox': 565, 'n_words': 112}