<commit_before>'use strict';

module.exports = function(grunt) {
    var i18next = require('..');
    var vfs = require('vinyl-fs');

    grunt.registerMultiTask('i18next', 'A grunt task for i18next-scanner', function() {
        var done = this.async();
        var options = this.options() || {};
        var targets = (this.file) ? [this.file] : this.files;

        targets.forEach(function(target) {
            vfs.src(target.files || target.src, {base: target.base || '.'})
                .pipe(i18next(options, target.customTransform, target.customFlush))
                .pipe(vfs.dest(target.dest))
                .on('end', function() {
                    done();
                });
        });
    });
};<commit_msg>If the  path is not specified, output files to current working directory by default.<commit_after>'use strict';

module.exports = function(grunt) {
    var i18next = require('..');
    var vfs = require('vinyl-fs');

    grunt.registerMultiTask('i18next', 'A grunt task for i18next-scanner', function() {
        var done = this.async();
        var options = this.options() || {};
        var targets = (this.file) ? [this.file] : this.files;

        targets.forEach(function(target) {
            vfs.src(target.files || target.src, {base: target.base || '.'})
                .pipe(i18next(options, target.customTransform, target.customFlush))
                .pipe(vfs.dest(target.dest || '.'))
                .on('end', function() {
                    done();
                });
        });
    });
};
{'fraction_non_alphanumeric': 0.16407263294422827, 'fraction_numerical': 0.010376134889753566, 'mean_word_length': 2.1046277665995974, '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': '2304399', 'n_tokens_mistral': 469, 'n_tokens_neox': 444, 'n_words': 93}