<commit_before>function ElasticClient(connection, http_service, q) {
	this.host = connection.host;
	this.username = connection.username;
	this.password = <PASSWORD>;

	this.createAuthToken=function(username,password) {
		var hasAuth = isDefined(username) && isDefined(password);
        return hasAuth ? "Basic " + window.btoa(username + ":" + password) : null;
	};
	
	var auth = this.createAuthToken(this.username, this.password);
	var fetch_version = $.ajax({
		type: 'GET',
		url: connection.host + "/",
		beforeSend: function(xhr) {
			if (isDefined(auth)) {
				xhr.setRequestHeader("Authorization", auth);
			} 
		},
		async: false
	});<commit_msg>Add dataType to version request<commit_after>function ElasticClient(connection, http_service, q) {
	this.host = connection.host;
	this.username = connection.username;
	this.password = <PASSWORD>;

	this.createAuthToken=function(username,password) {
		var hasAuth = isDefined(username) && isDefined(password);
        return hasAuth ? "Basic " + window.btoa(username + ":" + password) : null;
	};
	
	var auth = this.createAuthToken(this.username, this.password);
	var fetch_version = $.ajax({
		type: 'GET',
		url: connection.host + "/",
		dataType: 'json',
		beforeSend: function(xhr) {
			if (isDefined(auth)) {
				xhr.setRequestHeader("Authorization", auth);
			} 
		},
		async: false
	});
{'fraction_non_alphanumeric': 0.1485884101040119, 'fraction_numerical': 0.0, 'mean_word_length': 4.4534412955465585, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, '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': '4992431', 'n_tokens_mistral': 469, 'n_tokens_neox': 435, 'n_words': 86}