<commit_before>$(function() {

    var issuesUrl = "http://issues.numenta.org:8081/status.json?callback=?"
      , statusUrl = "http://issues.numenta.org:8081/status"
      // give up if no response in 3s
      , TIMEOUT = 3000
      ;

    function initialize(id, config, server, template) {
        $.getJSON(issuesUrl, function(data) {
            template({
                url: statusUrl
              , up: true
              , state: 'success'
              , monitors: data.monitors
              , validators: data.validators
              , handlers: data.handlers
              , timeout: TIMEOUT
            });
        }).fail(function(err) {
            template({
                url: statusUrl
              , up: false
              , state: 'error'
            });
        });
    };

    window.WB.issues_status = initialize;

});

<commit_msg>Replaced direct JSONP call with AJAX.<commit_after>$(function() {

    var issuesUrl = "http://issues.numenta.org:8081/status.json?callback=?"
      , statusUrl = "http://issues.numenta.org:8081/status"
      // give up if no response in 3s
      , TIMEOUT = 3000
      ;

    function initialize(id, config, server, template) {
        $.ajax(issuesUrl, {
            dataType: 'jsonp'
          , timeout: TIMEOUT
          , error: function() {
                template({
                    url: statusUrl
                  , up: false
                  , state: 'error'
                });
            }
          , success: function(data) {
                template({
                    url: statusUrl
                  , up: true
                  , state: 'success'
                  , monitors: data.monitors
                  , validators: data.validators
                  , handlers: data.handlers
                  , timeout: TIMEOUT
                });
            }
        });
    };

    window.WB.issues_status = initialize;

});


{'fraction_non_alphanumeric': 0.11447987454260324, 'fraction_numerical': 0.013591217982226868, 'mean_word_length': 1.2840095465393795, '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': '1193681', 'n_tokens_mistral': 546, 'n_tokens_neox': 496, 'n_words': 105}