<commit_before>var cmakeJS = require("cmake-js");

var defaultRuntime = "nw";
var defaultRuntimeVersion = "0.12.2";
var defaultWinArch = "ia32";

var options = {
    runtime: process.env.npm_config_wcjs_runtime || undefined,
    runtimeVersion: process.env.npm_config_wcjs_runtime_version || undefined,
    arch: process.env.npm_config_wcjs_arch || undefined
};

var buildSystem = new cmakeJS.BuildSystem(options);

if(buildSystem.options.runtime == undefined) {
    buildSystem.options.runtime = defaultRuntime;
}

if(buildSystem.options.runtimeVersion == undefined) {
    buildSystem.options.runtimeVersion = defaultRuntimeVersion;
}

if(buildSystem.options.arch == undefined && process.platform == "win32") {
    buildSystem.options.arch = defaultWinArch;
}

buildSystem.rebuild();
<commit_msg>rebuild.js: try workaround not downloaded yet dependency problem<commit_after>function build() {
    var cmakeJS = require("cmake-js");

    var defaultRuntime = "nw";
    var defaultRuntimeVersion = "0.12.2";
    var defaultWinArch = "ia32";

    var options = {
        runtime: process.env.npm_config_wcjs_runtime || undefined,
        runtimeVersion: process.env.npm_config_wcjs_runtime_version || undefined,
        arch: process.env.npm_config_wcjs_arch || undefined
    };

    var buildSystem = new cmakeJS.BuildSystem(options);

    if (buildSystem.options.runtime == undefined) {
        buildSystem.options.runtime = defaultRuntime;
    }

    if (buildSystem.options.runtimeVersion == undefined) {
        buildSystem.options.runtimeVersion = defaultRuntimeVersion;
    }

    if (buildSystem.options.arch == undefined && process.platform == "win32") {
        buildSystem.options.arch = defaultWinArch;
    }

    buildSystem.rebuild();
}

var times = 0;

function begin() {
    try {
        build();
    }
    catch(e) {
        if (e.code == "MODULE_NOT_FOUND") {
            if (times++ == 5) {
                throw e;
            }
            else {
                setTimeout(begin, 2000);
            }
        }
        else {
            throw e;
        }
    }
};

begin();

{'fraction_non_alphanumeric': 0.11731044349070101, 'fraction_numerical': 0.010491177873152123, 'mean_word_length': 2.943609022556391, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4683325', 'n_tokens_mistral': 642, 'n_tokens_neox': 611, 'n_words': 119}