<commit_before>#!/usr/bin/env node

var vlocity = require('./vlocitycli.js');

function oncomplete(result) {
    VlocityUtils.log(result);
}

function onerror(result) {
    VlocityUtils.log(result);
    process.exitCode = 1;
}
<commit_msg>Fix up quiet logging in command line result handling.<commit_after>#!/usr/bin/env node

var vlocity = require('./vlocitycli.js');

function oncomplete(result) {
    if (VlocityUtils.quiet) {
        return;
    }
    console.log(result);
}

function onerror(result) {
    process.exitCode = 1;
    if (VlocityUtils.quiet) {
        return;
    }
    console.log(result);
}

{'fraction_non_alphanumeric': 0.1388888888888889, 'fraction_numerical': 0.0032679738562091504, 'mean_word_length': 3.3785714285714286, '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': '7515296', 'n_tokens_mistral': 219, 'n_tokens_neox': 212, 'n_words': 40}