<commit_before>'use strict';

/**
 * Creates a new cordova project in the current directory.
 *
 * @author <NAME>      <<EMAIL>>
 * @since  22 April 2015
 */

// module dependencies
var path = require('path'),
    through = require('through2'),
    gutil = require('gulp-util'),
    cordova = require('cordova-lib').cordova.raw;

// export the module
module.exports = function(plugin) {

    return through.obj(function(file, enc, cb) {
        // Change the working directory
        process.env.PWD = file.path;

        // Pipe the file to the next step
        this.push(file);

        cb();
    }, function(cb) {
        // Print which plugin will be added
        console.log('\tadd ' + plugin);

        // Execute the cordova plugin add command
        cordova.plugin('add', plugin)
            .then(cb)
            .catch(function(err) {
                // Return an error if something happened
                cb(new gutil.PluginError('gulp-cordova-plugin', err.message));
            });
    });
};<commit_msg>change console.log call to gulp-util.log call<commit_after>'use strict';

/**
 * Creates a new cordova project in the current directory.
 *
 * @author <NAME>      <<EMAIL>>
 * @since  22 April 2015
 */

// module dependencies
var path = require('path'),
    through = require('through2'),
    gutil = require('gulp-util'),
    cordova = require('cordova-lib').cordova.raw;

// export the module
module.exports = function(plugin) {

    return through.obj(function(file, enc, cb) {
        // Change the working directory
        process.env.PWD = file.path;

        // Pipe the file to the next step
        this.push(file);

        cb();
    }, function(cb) {
        // Print which plugin will be added
        gutil.log('\tadd ' + plugin);

        // Execute the cordova plugin add command
        cordova.plugin('add', plugin)
            .then(cb)
            .catch(function(err) {
                // Return an error if something happened
                cb(new gutil.PluginError('gulp-cordova-plugin', err.message));
            });
    });
};
{'fraction_non_alphanumeric': 0.13342967244701348, 'fraction_numerical': 0.00674373795761079, 'mean_word_length': 2.1327300150829562, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2662717', 'n_tokens_mistral': 606, 'n_tokens_neox': 585, 'n_words': 167}