<commit_before>module.exports = function (grunt) {

  var YUIConfigurator = require('./lib/yui_configurator');

  grunt.registerMultiTask('yuiConfig', 'Configure YUI with automatic module definitions', function() {
    var options   = this.options({ dest: 'yui_config.js', applyConfig: true }),
        dest      = options.dest,
        template  = options.template,
        fileContent,
        config;

    delete options.dest;

    if (grunt.option('debug')) {
      grunt.log.debug(options);
    }

    if (template) {
      options.applyConfig = false;
    }

    config = new YUIConfigurator(options, grunt);
    config.build();

    if (template) {
      tmplFile = grunt.file.read(template);
      fileContent = grunt.template.process(tmplFile, { data: config.config });
    }
    else {
      fileContent = config.output;
    }

    grunt.file.write(dest, fileContent);
  });

};<commit_msg>add back console.log<commit_after>module.exports = function (grunt) {

  var YUIConfigurator = require('./lib/yui_configurator');

  grunt.registerMultiTask('yuiConfig', 'Configure YUI with automatic module definitions', function() {
    var options   = this.options({ dest: 'yui_config.js', applyConfig: true }),
        dest      = options.dest,
        template  = options.template,
        fileContent,
        config;

    console.log('Building: ' + dest);

    delete options.dest;

    if (grunt.option('debug')) {
      grunt.log.debug(options);
    }

    if (template) {
      options.applyConfig = false;
    }

    config = new YUIConfigurator(options, grunt);
    config.build();

    if (template) {
      tmplFile = grunt.file.read(template);
      fileContent = grunt.template.process(tmplFile, { data: config.config });
    }
    else {
      fileContent = config.output;
    }

    grunt.file.write(dest, fileContent);
  });

};
{'fraction_non_alphanumeric': 0.13271939328277357, 'fraction_numerical': 0.0, 'mean_word_length': 2.769387755102041, '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': '6783324', 'n_tokens_mistral': 583, 'n_tokens_neox': 566, 'n_words': 112}