<commit_before>SLib.newHTTPRequest = function() {
	if(SLib.browser.ie && SLib.browser.ie.major < 7) // in ie6
		client = new ActiveXObject("Microsoft.XMLHTTP");
	else // in ff, safari, opera und ie ab v7
		client = new XMLHttpRequest();

	return client;
};

SLib.ajaxGet(url, callback) {
    if(typeof(url) != "string" || typeof(callback) != "function") {
        console.error("SLib.ajaxGet(url, callback): url needs to be a string and callback a function");

    r = SLib.newHTTPRequest();
    r.onreadystatechange = function() {
        if(r.readystate == 4)
            callback(r.responseText);
    };
    r.open("GET", url, true);
    r.send();
}<commit_msg>fixed .ajaxGet() syntax<commit_after>SLib.newHTTPRequest = function() {
	if(SLib.browser.ie && SLib.browser.ie.major < 7) // in ie6
		client = new ActiveXObject("Microsoft.XMLHTTP");
	else // in ff, safari, opera und ie ab v7
		client = new XMLHttpRequest();

	return client;
};

SLib.ajaxGet = new function(url, callback) {
    if(typeof(url) != "string" || typeof(callback) != "function") {
        console.error("SLib.ajaxGet(url, callback): url needs to be a string and callback a function");

    r = SLib.newHTTPRequest();
    r.onreadystatechange = function() {
        if(r.readystate == 4)
            callback(r.responseText);
    };
    r.open("GET", url, true);
    r.send();
}
{'fraction_non_alphanumeric': 0.1581670362158167, 'fraction_numerical': 0.005912786400591279, 'mean_word_length': 3.2984126984126982, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1096922', 'n_tokens_mistral': 463, 'n_tokens_neox': 443, 'n_words': 110}