<commit_before>var domChanger = require("domChanger");
var nanoajax = require("nanoajax");
var config = window.config || {};

var requestBody = JSON.stringify({
    url: config.url,
    interests: config.interests
});
var interval = config.interval;

var isSuccess = function(code) {
    return code >= 200 && code <= 299;
};

var asError = function(message) {
    message || (message = "Error!");
    return [{
        name: message,
        stages: [{
            name: "Error",
            status: "Failed"
        }]
    }];
};

var Stage = function() {
    var render = function(stage) {
        var stageProps = {<commit_msg>Explicit intent - default error message when no response from server<commit_after>var domChanger = require("domChanger");
var nanoajax = require("nanoajax");
var config = window.config || {};

var requestBody = JSON.stringify({
    url: config.url,
    interests: config.interests
});
var interval = config.interval;

var isSuccess = function(code) {
    return code >= 200 && code <= 299;
};

var asError = function(message) {
    if (message === undefined || message === null) {
        message = "Error - is server reachable?";
    }
    return [{
        name: message,
        stages: [{
            name: "Error",
            status: "Failed"
        }]
    }];
};

var Stage = function() {
    var render = function(stage) {
        var stageProps = {
{'fraction_non_alphanumeric': 0.14254859611231102, 'fraction_numerical': 0.008639308855291577, 'mean_word_length': 2.687002652519894, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6561465', 'n_tokens_mistral': 413, 'n_tokens_neox': 400, 'n_words': 114}