<commit_before>function BasicApi(serverAddress) {
	var o = this;
	
	o.serverAddress = serverAddress;
	
	this.call = function(interfaceName, method, parameters, callback, errorCallback) {
		var request = {
			request: {
				"interface": interfaceName,
				method: method,
				parameters: parameters
			}
		};
		if (o.token != null) {
			request.token = o.token;
		}
		$.ajax({
			dataType: "json",
			method: "POST",
			url: o.serverAddress + "/json",
			data: JSON.stringify(request),
			success: function(response){
				if (response.response.exception == null) {
					if (interface == "AuthInterface" && method == "login") {
						o.token = response.response.result;
					}
					callback(response.response.result);
				} else {
					if (errorCallback == null) {
						console.error(response.response.exception.message);
					} else {
						errorCallback(response.response.exception.message);
					}
				}
			}
		});
	}

	this.multiCall = function(requests, callback) {
		var request = {requests: requests};
		if (o.token != null) {
			request.token = o.token;
		}
		$.ajax({
			dataType: "json",
			method: "POST",
			url: o.serverAddress + "/json",
			data: JSON.stringify(request),
			success: function(data){
				var responses = data.responses;
				if (callback != null) {
					callback();
				}
			}
		});
	}
}<commit_msg>One more syntax error<commit_after>function BasicApi(serverAddress) {
	var o = this;
	
	o.serverAddress = serverAddress;
	
	this.call = function(interfaceName, method, parameters, callback, errorCallback) {
		var request = {
			request: {
				"interface": interfaceName,
				method: method,
				parameters: parameters
			}
		};
		if (o.token != null) {
			request.token = o.token;
		}
		$.ajax({
			dataType: "json",
			method: "POST",
			url: o.serverAddress + "/json",
			data: JSON.stringify(request),
			success: function(response){
				if (response.response.exception == null) {
					if (interfaceName == "AuthInterface" && method == "login") {
						o.token = response.response.result;
					}
					callback(response.response.result);
				} else {
					if (errorCallback == null) {
						console.error(response.response.exception.message);
					} else {
						errorCallback(response.response.exception.message);
					}
				}
			}
		});
	}

	this.multiCall = function(requests, callback) {
		var request = {requests: requests};
		if (o.token != null) {
			request.token = o.token;
		}
		$.ajax({
			dataType: "json",
			method: "POST",
			url: o.serverAddress + "/json",
			data: JSON.stringify(request),
			success: function(data){
				var responses = data.responses;
				if (callback != null) {
					callback();
				}
			}
		});
	}
}
{'fraction_non_alphanumeric': 0.1447084233261339, 'fraction_numerical': 0.0, 'mean_word_length': 2.5, 'pattern_counts': {'":': 2, '<': 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': '6246299', 'n_tokens_mistral': 1085, 'n_tokens_neox': 841, 'n_words': 179}