<commit_before>var shire = {};

function getCookie(name) {
    var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
    return r ? r[1] : undefined;
}

shire.ajax = function(url, type, args, callback){
    return $.ajax({
        'type': type,
        'timeout': 60000,
        'url': url,
        'data': args,
        'dataType': 'json'
    }).done(function(data){
        if ('error_msg' in data) {
            alert('Sorry, but ' + data['error_msg']);
        }<commit_msg>Update timeout value.<commit_after>var shire = {};

function getCookie(name) {
    var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
    return r ? r[1] : undefined;
}

shire.ajax = function(url, type, args, callback){
    return $.ajax({
        'type': type,
        'timeout': 10000,
        'url': url,
        'data': args,
        'dataType': 'json'
    }).done(function(data){
        if ('error_msg' in data) {
            alert('Sorry, but ' + data['error_msg']);
        }
{'fraction_non_alphanumeric': 0.19938650306748465, 'fraction_numerical': 0.012269938650306749, 'mean_word_length': 2.3074324324324325, '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': '5351982', 'n_tokens_mistral': 335, 'n_tokens_neox': 322, 'n_words': 78}