<commit_before>var glob = require("glob");
var _ = require("lodash");
var path = require("path");

var exports = [
    // Vue Resource, Validator
    {
        entry: {
            "vue-resource": "./vendor/assets/vue-resource/index",
            "vue-validator": "./vendor/assets/vue-validator/index"
        },
        output: {
            filename: "./vendor/assets/[name]/dist/[name].js"
        }
    }
];

glob.sync('{app/modules/**,app/system/**,extensions/**,themes/**}/webpack.config.js').forEach(function (file) {
    var dir = __dirname + '/' + path.dirname(file);
    exports = exports.concat(require('./' + file).map(function (config) {
        return _.merge({ context: dir, output: { path: dir } }, config);
    }));
});

module.exports = exports;
<commit_msg>use path.join<commit_after>var _ = require("lodash");
var glob = require("glob");
var path = require("path");

var exports = [
    // Vue Resource, Validator
    {
        entry: {
            "vue-resource": "./vendor/assets/vue-resource/index",
            "vue-validator": "./vendor/assets/vue-validator/index"
        },
        output: {
            filename: "./vendor/assets/[name]/dist/[name].js"
        }
    }
];

glob.sync('{app/modules/**,app/system/**,extensions/**,themes/**}/webpack.config.js').forEach(function (file) {
    var dir = path.join(__dirname, path.dirname(file));
    exports = exports.concat(require('./' + file).map(function (config) {
        return _.merge({ context: dir, output: { path: dir } }, config);
    }));
});

module.exports = exports;

{'fraction_non_alphanumeric': 0.20051413881748073, 'fraction_numerical': 0.0, 'mean_word_length': 2.6378504672897196, 'pattern_counts': {'":': 4, '<': 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': '4394869', 'n_tokens_mistral': 476, 'n_tokens_neox': 473, 'n_words': 83}