<commit_before>'use strict';

var path = require('path');
var chalk = require('chalk');
var spawn = require('child_process').spawn;

module.exports = function (grunt) {
    grunt.registerMultiTask('grunt', 'Spawn Grunt tasks in other Gruntfiles easily from a Grunt task', function () {
        var done = this.async();
        var data = this.data;

        if (typeof data.task === 'string') data.tasks = [data.task];
        if (typeof data.tasks === 'string') data.tasks = [data.tasks];

        if (!data.gruntfile) grunt.fatal('Gruntfile path missing');
        if (!data.tasks) data.tasks = ['default'];

        grunt.log.writeln('Spawning %s task(s) in %s', chalk.underline(chalk.blue(data.tasks.join(' '))), chalk.yellow(data.gruntfile));

        // var args = data.tasks.concat(['--gruntfile', data.gruntfile]);
        var cwd = path.dirname(data.gruntfile);

        var child = spawn('grunt', [], {<commit_msg>fix mistake<commit_after>'use strict';

var path = require('path');
var chalk = require('chalk');
var spawn = require('child_process').spawn;

module.exports = function (grunt) {
    grunt.registerMultiTask('grunt', 'Spawn Grunt tasks in other Gruntfiles easily from a Grunt task', function () {
        var done = this.async();
        var data = this.data;

        if (typeof data.task === 'string') data.tasks = [data.task];
        if (typeof data.tasks === 'string') data.tasks = [data.tasks];

        if (!data.gruntfile) grunt.fatal('Gruntfile path missing');
        if (!data.tasks) data.tasks = ['default'];

        grunt.log.writeln('Spawning %s task(s) in %s', chalk.underline(chalk.blue(data.tasks.join(' '))), chalk.yellow(data.gruntfile));

        // var args = data.tasks.concat(['--gruntfile', data.gruntfile]);
        var cwd = path.dirname(data.gruntfile);

        var child = spawn('grunt', data.tasks, {
{'fraction_non_alphanumeric': 0.16990291262135923, 'fraction_numerical': 0.0, 'mean_word_length': 3.3039443155452437, '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': '4398141', 'n_tokens_mistral': 595, 'n_tokens_neox': 574, 'n_words': 144}