<commit_before>function getRandomNumber ( max = Number.MAX_SAFE_INTEGER ) {
    if ( max <= 0 ) { return 0; }

    return Math.floor( Math.random() * max );
}

module.exports = { getRandomNumber };<commit_msg>Added log method to util.js<commit_after>function getRandomNumber ( max = Number.MAX_SAFE_INTEGER ) {
    if ( max <= 0 ) { return 0; }

    return Math.floor( Math.random() * max );
}

function log ( outputStr ) {
    process.stdout.write( outputStr + '\r\n' );
}

module.exports = { getRandomNumber, log };
{'fraction_non_alphanumeric': 0.14313346228239845, 'fraction_numerical': 0.007736943907156673, 'mean_word_length': 3.543859649122807, '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': '5582840', 'n_tokens_mistral': 175, 'n_tokens_neox': 168, 'n_words': 41}