<commit_before>/**
 * /assets/linker/js/board.js
 *
 * @file Basic global functions which are attached to document ready event.
 * @author <NAME> <<EMAIL>>
 */

/**
 * Initialize all necessary javascript on document ready event.
 */
jQuery(document).ready(function() {
    // Global bootbox settings
    bootbox.setDefaults({
        animate: false
    });

    // Global tooltip event
    initTooltips(jQuery(document));
});<commit_msg>Added global AJAX settings, basically just for error handling.<commit_after>/**
 * /assets/linker/js/board.js
 *
 * @file Basic global functions which are attached to document ready event.
 * @author <NAME> <<EMAIL>>
 */

/**
 * Initialize all necessary javascript on document ready event.
 */
jQuery(document).ready(function() {
    // Global AJAX setup
    jQuery.ajaxSetup({
        error: function(jqXhr, textStatus, error) {
            handleAjaxError(jqXhr, textStatus, error);
        },
        type: "post"
    });

    // Global bootbox settings
    bootbox.setDefaults({
        animate: false
    });

    // Global tooltip event
    initTooltips(jQuery(document));
});
{'fraction_non_alphanumeric': 0.128686327077748, 'fraction_numerical': 0.0, 'mean_word_length': 2.98576512455516, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7358517', 'n_tokens_mistral': 327, 'n_tokens_neox': 311, 'n_words': 91}