<commit_before>'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var colors = require('colors');
var semver = require('semver');

module.exports = Generator;

function Generator() {
  yeoman.generators.Base.apply(this, arguments);

  this.argument('interactive', {
    type: Boolean,
    defaults: true,
    banner: '[interactive mode]',
    required: false
  });
}

util.inherits(Generator, yeoman.generators.Base);

Generator.prototype.setupEnv = function setupEnv() {
  // Copies the contents of the generator `templates`
  // directory into your users new application path
  this.directory('.', '.', true);

  // TODO: not sure if this is the most pragmatic way to do this
  if (this.interactive) {
    console.log([
      'If you have not already, install the "gruntacular" plugin for grunt:',
      '  npm install --save gruntacular',
    ].join('\n'));
  }
};

Generator.prototype.checkTestacular = function () {
  try {
    var testacular = require('testacular');

    if (semver.lt(testacular.VERSION, '0.4.0')) {
      console.log('\n✖ Testacular out of date\n'.yellow +
      '  To update it, run '.grey + 'npm update -g testacular'.yellow);
    }
  } catch (err) {
    console.log('\n✖ Testacular not installed\n'.red +
    '  You\'re ready to start using Angular, but you need Testacular to run unit tests.\n'.grey +
    '  Get it by running '.grey + 'npm install -g testacular'.yellow);
  }
};<commit_msg>remove warning about installing testacular globally; now installed via gruntacular task<commit_after>'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var colors = require('colors');
var semver = require('semver');

module.exports = Generator;

function Generator() {
  yeoman.generators.Base.apply(this, arguments);

  this.argument('interactive', {
    type: Boolean,
    defaults: true,
    banner: '[interactive mode]',
    required: false
  });
}

util.inherits(Generator, yeoman.generators.Base);

Generator.prototype.setupEnv = function setupEnv() {
  // Copies the contents of the generator `templates`
  // directory into your users new application path
  this.directory('.', '.', true);

  // TODO: not sure if this is the most pragmatic way to do this
  if (this.interactive) {
    console.log([
      'If you have not already, install the "gruntacular" plugin for grunt:',
      '  npm install --save gruntacular'
    ].join('\n'));
  }
};
{'fraction_non_alphanumeric': 0.14153969526864474, 'fraction_numerical': 0.0012028869286287089, 'mean_word_length': 3.6461824953445063, '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': '856289', 'n_tokens_mistral': 764, 'n_tokens_neox': 745, 'n_words': 234}