<commit_before>'use strict';

/*
* grunt-robots-txt
* https://github.com/t1st3/grunt-robots-txt
*
* Copyright (c) 2014 t1st3
* Licensed under the MIT license.
*/

var fs, path, _, chalk, updateNotifier, notifier;
path = require('path');
fs = require('fs');
_ = require('lodash');
chalk = require('chalk');
updateNotifier = require('update-notifier');

module.exports = function (grunt) {
  return grunt.registerMultiTask('robotstxt', 'Generates robots.txt', function () {
    notifier = updateNotifier({
      packagePath: '../package.json',
      packageName: 'grunt-robots-txt'
    });
    if (notifier.update) {
      notifier.notify();
    }
    var policy, items, str, root, rootWarnMess, robotsPath, n;
    root = path.normalize(this.data.dest || '.');
    rootWarnMess = 'No "dest" parameter defined. Using current directory.';
    if (root === '.') {
      grunt.log.subhead(rootWarnMess);<commit_msg>use current update-notifier API<commit_after>'use strict';

/*
* grunt-robots-txt
* https://github.com/t1st3/grunt-robots-txt
*
* Copyright (c) 2014 t1st3
* Licensed under the MIT license.
*/

var fs, path, _, chalk, updateNotifier;
path = require('path');
fs = require('fs');
_ = require('lodash');
chalk = require('chalk');
updateNotifier = require('update-notifier');

module.exports = function (grunt) {
  return grunt.registerMultiTask('robotstxt', 'Generates robots.txt', function () {
    var pkg, policy, items, str, root, rootWarnMess, robotsPath, n;
    pkg = require('../package.json');
    updateNotifier({pkg: pkg}).notify();
    root = path.normalize(this.data.dest || '.');
    rootWarnMess = 'No "dest" parameter defined. Using current directory.';
    if (root === '.') {
      grunt.log.subhead(rootWarnMess);
{'fraction_non_alphanumeric': 0.1693548387096774, 'fraction_numerical': 0.009216589861751152, 'mean_word_length': 4.049418604651163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2440694', 'n_tokens_mistral': 594, 'n_tokens_neox': 578, 'n_words': 129}