<commit_before>var vfs = require('vinyl-fs');
var nextback = require('nextback');

module.exports = function() {
    return function (path, cb) {
        cb = nextback(cb);
        var files = [];
        var globber = vfs.src(path);
        globber.once('error', cb);
        globber.on('data', function (file) {
            files.push(file);
        });
        globber.once('end', function () {
            cb(null, files);
        });
    };
};<commit_msg>commonjs fix<commit_after>var vfs = require('vinyl-fs');
var nextback = require('nextback');

module.exports = function (path, cb) {
    cb = nextback(cb);
    var files = [];
    var globber = vfs.src(path);
    globber.once('error', cb);
    globber.on('data', function (file) {
        files.push(file);
    });
    globber.once('end', function () {
        cb(null, files);
    });
};
{'fraction_non_alphanumeric': 0.1804245283018868, 'fraction_numerical': 0.0, 'mean_word_length': 2.451219512195122, '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': '1575027', 'n_tokens_mistral': 274, 'n_tokens_neox': 271, 'n_words': 57}