<commit_before>window.picoAPI = function(url, params, callback){
    $.getJSON(url, params, function(data){
        if(data && data.ok === true){
            callback(null, data);
        }else{
            var err = new Error((data.error || "unknown cause") + "");
            err.data = data;
            callback(err);
        }
    }).fail(function(ajax_err){
        var err;<commit_msg>use POST for engine rulesets<commit_after>window.picoAPI = function(url, params, callback){
    $.post(url, params, function(data){
        if(data && data.ok === true){
            callback(null, data);
        }else{
            var err = new Error((data.error || "unknown cause") + "");
            err.data = data;
            callback(err);
        }
    },"json").fail(function(ajax_err){
        var err;
{'fraction_non_alphanumeric': 0.1581569115815691, 'fraction_numerical': 0.0, 'mean_word_length': 2.1042471042471043, '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': '4898911', 'n_tokens_mistral': 233, 'n_tokens_neox': 232, 'n_words': 53}