<commit_before>var builder = require('./builder');
var configurator = require('./node-configurator');

module.exports = function (maker) {
    return {
        build: function (options) {
            options || (options = {});
            options.sourceLevels || (options.sourceLevels = options.levels);
            options.fileSuffixes || (options.fileSuffixes = ['tmpl-spec.js']);
            options.bundleSuffixes || (options.bundleSuffixes = ['tmpl-specs']);

            var resolve = builder({ suffixes: options.fileSuffixes });
            var config = maker._config;

            configurator.configure(config, options);

            maker._pseudoLevels.push({
                destPath: options.destPath,
                levels: options.levels,
                resolve: resolve
            });

            return maker._deferred.promise();
        }
    };
};<commit_msg>Provided `bundleSuffixes` to builder options<commit_after>var builder = require('./builder');
var configurator = require('./node-configurator');

module.exports = function (maker) {
    return {
        build: function (options) {
            options || (options = {});
            options.sourceLevels || (options.sourceLevels = options.levels);
            options.fileSuffixes || (options.fileSuffixes = ['tmpl-spec.js']);
            options.bundleSuffixes || (options.bundleSuffixes = ['tmpl-specs']);

            var resolve = builder({ suffixes: [].concat(options.fileSuffixes, options.bundleSuffixes) });
            var config = maker._config;

            configurator.configure(config, options);

            maker._pseudoLevels.push({
                destPath: options.destPath,
                levels: options.levels,
                resolve: resolve
            });

            return maker._deferred.promise();
        }
    };
};
{'fraction_non_alphanumeric': 0.12964989059080964, 'fraction_numerical': 0.0, 'mean_word_length': 2.1534482758620688, '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': '4388212', 'n_tokens_mistral': 495, 'n_tokens_neox': 470, 'n_words': 91}