<commit_before>
var fs = require('fs');
var path = require('path');

/**
 * Loads the default IMA.js and application-specific gulp tasks. The
 * application-specific gulp tasks will override the default ones if the names
 * match.
 *
 * @param {Object<string, *>} gulpConfig Configuration of the gulp tasks.
 */
module.exports = function (gulpConfig) {
	console.log('Loading gulp tasks...');
	loadTasks('./node_modules/ima.js-gulp-tasks/tasks', gulpConfig);
	loadTasks('./app/gulp/tasks', gulpConfig);
};

/**
 * Loads the gulp tasks defined in the JavaScript files within the specified
 * directory. The JavaScript files are executed in arbitrary order.
 *
 * @param {string} directory The directory containing the JavaScript files<commit_msg>#! add directories argument to exported function<commit_after>
var fs = require('fs');
var path = require('path');

/**
 * Loads gulp tasks from defined directories. The
 * newest gulp tasks will override the older tasks if the names
 * match.
 *
 * @param {Array<string>} directories
 * @param {Object<string, *>} gulpConfig Configuration of the gulp tasks.
 */
 module.exports = function (directories, gulpConfig) {
 	console.log('Loading gulp tasks...');

 	for (var i = 0; i < directories.length; i++) {
 		var directory = directories[i];

 		loadTasks(directory, gulpConfig);
 	}
 };

/**
 * Loads the gulp tasks defined in the JavaScript files within the specified
 * directory. The JavaScript files are executed in arbitrary order.
 *
 * @param {string} directory The directory containing the JavaScript files
{'fraction_non_alphanumeric': 0.11538461538461539, 'fraction_numerical': 0.000641025641025641, 'mean_word_length': 4.309523809523809, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, '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': '4174486', 'n_tokens_mistral': 442, 'n_tokens_neox': 427, 'n_words': 167}