<commit_before>/**
 * Flock Global Constants
 *
 * These constants have an effect on the traversal process.
 */
/*global flock */
(function (utils) {
    flock.constants = {
        keys: 0,        // collect leaf keys
        values: 1,      // collect leaf values
        both: 2,        // collect key:value pairs of leaf nodes
        del: 3,         // delete leaf nodes
        count: 4        // count leaf nodes
    };

    // delegating constants on flock object
    utils.delegate(flock, flock.constants);
}(flock.utils));
<commit_msg>constants object refactored to match other delegated objects<commit_after>/**
 * Flock Global Constants
 *
 * These constants have an effect on the traversal process.
 */
/*global flock */

flock.constants = (function (utils) {
    var self = {
        keys: 0,        // collect leaf keys
        values: 1,      // collect leaf values
        both: 2,        // collect key:value pairs of leaf nodes
        del: 3,         // delete leaf nodes
        count: 4        // count leaf nodes
    };

    // delegating constants on flock object
    utils.delegate(flock, self);

    return self;
}(flock.utils));

{'fraction_non_alphanumeric': 0.10294117647058823, 'fraction_numerical': 0.00865051903114187, 'mean_word_length': 1.981958762886598, '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': '868310', 'n_tokens_mistral': 326, 'n_tokens_neox': 311, 'n_words': 119}