<commit_before>'use strict';

/**
 * @param  {Object}  gulp    The gulp object
 * @param  {Object}  config  The configuration for gulp tasks. To get a property using `config.a.b.c` or `config.get('a.b.c')`
 * @param  {Object}  LL      Lazy required libraries and other data
 * @param  {Object}  args    The parsed arguments from comment line
 */
module.exports = function(gulp, config, LL, args) { // eslint-disable-line no-unused-vars
    /**** Load Generators ****/
    var Path = require('path');
    var traverseFilesSync = require('../lib/traverseFiles').traverseFilesSync;
    var GULP_GENERATORS_PATH = Path.resolve(__dirname, '../generators/');

    traverseFilesSync(GULP_GENERATORS_PATH, function(filename) {
        var task = require(Path.resolve(GULP_GENERATORS_PATH, filename));
        task(gulp, config, LL, args);
    }, {
        recursive: true,<commit_msg>chore(gulp): 只加载 generator 目录下的 js 文件<commit_after>'use strict';

/**
 * @param  {Object}  gulp    The gulp object
 * @param  {Object}  config  The configuration for gulp tasks. To get a property using `config.a.b.c` or `config.get('a.b.c')`
 * @param  {Object}  LL      Lazy required libraries and other data
 * @param  {Object}  args    The parsed arguments from comment line
 */
module.exports = function(gulp, config, LL, args) { // eslint-disable-line no-unused-vars
    /**** Load Generators ****/
    var Path = require('path');
    var traverseFilesSync = require('../lib/traverseFiles').traverseFilesSync;
    var GULP_GENERATORS_PATH = Path.resolve(__dirname, '../generators/');

    traverseFilesSync(GULP_GENERATORS_PATH, function(filename) {
        if (filename.lastIndexOf('.js') !== (filename.length - 3)) return undefined;
        var task = require(Path.resolve(GULP_GENERATORS_PATH, filename));
        task(gulp, config, LL, args);
    }, {
        recursive: true,
{'fraction_non_alphanumeric': 0.13809779688339602, 'fraction_numerical': 0.0005373455131649651, 'mean_word_length': 3.497584541062802, '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': '7633175', 'n_tokens_mistral': 596, 'n_tokens_neox': 591, 'n_words': 156}