<commit_before>(function($) {
    $("body").ajaxError(
        function(event, request, settings, error) {
            var data;
            TCM.removeLoading();
            if(error === "UNAUTHORIZED" || error === "FORBIDDEN") {
                data = $.parseJSON(request.responseText);
                window.location = data.login_url + "?next=" + window.location.pathname;
            } else {
                // @@@ do something nicer than an alert()?
                alert("Help! Something broke, and we're not sure just what. Try reloading the page.");
            }
        });

    $.ajaxSetup(
        {
            dataType: "json",<commit_msg>Ditch alert() on unknown ajax error.<commit_after>(function($) {
    $("body").ajaxError(
        function(event, request, settings, error) {
            var data;
            TCM.removeLoading();
            if(error === "UNAUTHORIZED" || error === "FORBIDDEN") {
                data = $.parseJSON(request.responseText);
                window.location = data.login_url + "?next=" + window.location.pathname;
            } // @@@ any global default error handling needed?
        });

    $.ajaxSetup(
        {
            dataType: "json",
{'fraction_non_alphanumeric': 0.14452798663324978, 'fraction_numerical': 0.0, 'mean_word_length': 1.8188235294117647, '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': '2237262', 'n_tokens_mistral': 332, 'n_tokens_neox': 320, 'n_words': 74}