<commit_before>
var util = {};

util.mergeNodeParams = function (paramNodes) {
    var output = {
        paramNames: [],
        params: {}
    };
    var node;
    var paramName;
    var n, p, pf;
    for (n = 0; n < paramNodes.length; n += 1) {
        node = paramNodes[n];
        for (p = 0; p < node.paramNames.length; p += 1) {
            paramName = node.params[p];
            if (output.params[paramName] === undefined) {
                output.params[paramName] = [];
                output.paramNames.push(paramName);
            }
            for (pf = 0; pf < node.params[paramName].length; pf += 1) {
                output.params[paramName].push(node.params[paramName][pf]);
            }
        }
    }
    return output;
};

module.exports = util;
<commit_msg>Fixing param node merging bug<commit_after>
var util = {};

util.mergeNodeParams = function (paramNodes) {
    var output = {
        paramNames: [],
        params: {}
    };
    var node;
    var paramName;
    var n, p, pf;
    for (n = 0; n < paramNodes.length; n += 1) {
        node = paramNodes[n];
        for (p = 0; p < node.paramNames.length; p += 1) {
            paramName = node.paramNames[p];
            if (output.params[paramName] === undefined) {
                output.params[paramName] = [];
                output.paramNames.push(paramName);
            }
            for (pf = 0; pf < node.params[paramName].length; pf += 1) {
                output.params[paramName].push(node.params[paramName][pf]);
            }
        }
    }
    return output;
};

module.exports = util;

{'fraction_non_alphanumeric': 0.14412136536030343, 'fraction_numerical': 0.007585335018963337, 'mean_word_length': 1.7723292469352014, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3890907', 'n_tokens_mistral': 510, 'n_tokens_neox': 490, 'n_words': 110}