<commit_before>var setup = require('./setup'),
    assert = require('assert');

var max=6000;
var current=0;

setup(function(err, cb) {
    assert(!err, "setup failure");

    cb.on("error", function (message) {
        console.log("ERROR: [" + message + "]");
        process.exit(1);
    });


    for (var i=0; i < max; ++i){
	cb.set("new_"+i, "something", function(err, meta) {
            assert(!err, "Failed to store value");
            ++current;
            if (current == max) {
               process.exit(1);
            }
	})
    }
});<commit_msg>Fixup JSCBC-16 exit code ;)<commit_after>var setup = require('./setup'),
    assert = require('assert');

var max=6000;
var current=0;

setup(function(err, cb) {
    assert(!err, "setup failure");

    cb.on("error", function (message) {
        console.log("ERROR: [" + message + "]");
        process.exit(1);
    });


    for (var i=0; i < max; ++i){
	cb.set("new_"+i, "something", function(err, meta) {
            assert(!err, "Failed to store value");
            ++current;
            if (current == max) {
               process.exit(0);
            }
	})
    }
});
{'fraction_non_alphanumeric': 0.19454225352112675, 'fraction_numerical': 0.01584507042253521, 'mean_word_length': 2.2301136363636362, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4971076', 'n_tokens_mistral': 380, 'n_tokens_neox': 365, 'n_words': 84}