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


var EeModuleGenerator = module.exports = function EeModuleGenerator(args, options, config)
{
  yeoman.generators.Base.apply(this, arguments);
};

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

EeModuleGenerator.prototype.askFor = function askFor()
{
  var cb = this.async();

  // have Yeoman greet the user.
  console.log(this.yeoman);

  var prompts = [
    {
      name: 'addonTypes',
      message: 'Which Add-On type(s) are you making?',
      type: 'checkbox',
      required: true,
      default: [],
      validate: function(data) {
        return (data.length > 0) ? true : 'You must choose an Add-On type.';
      },
      choices: [
        {
          name: 'Plugin',
          value: 'plugin',
        },
        {
          name: 'Extension',
          value: 'extension',
        },
        {
          name: 'Module',
          value: 'module',
        },
        {
          name: 'Fieldtype',
          value: 'fieldtype',
        },
        {
          name: 'Accessory',
          value: 'accessory',
        },
      ]
    },
    {
      name: 'addonName',
      message: 'What do you want to name your Add-On? (ex. Google Maps)',
      validate: function(data) {
        return (data.length > 0) ? true : 'You must choose an Add-On name.';
      }
    },
    {
      name: 'addonSlug',
      message: 'What slug name do you want to give your Add-On? (ex. google_maps)',
      validate: function(data) {
        return (data.length > 0) ? true : 'You must choose an Add-On slug.';
      }
    },
    {
      name: 'addonDescription',
      message: 'What is Add-On description?',
      when: function(data) {
        return data.addonTypes.indexOf('plugin') !== -1 ||
               data.addonTypes.indexOf('accessory') !== -1 ||
               data.addonTypes.indexOf('extension') !== -1 ||
               data.addonTypes.indexOf('module') !== -1;
      }
    },
    {
      name: 'authorName',
      message: 'What is your name?'
    },
    {
      name: 'authorUrl',
      message: 'What is your URL?'
    },
    {
      type: 'confirm',
      name: 'hasExtensionSettings',
      message: 'Does the extension have settings?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('extension') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasModuleMod',
      message: 'Does the module need a mod file for template tags?',
      default: true,
      when: function(data) {
        return data.addonTypes.indexOf('module') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasModuleMcp',
      message: 'Does the module need an mcp file for control panel views or actions?',
      default: true,
      when: function(data) {
        return data.addonTypes.indexOf('module') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasModuleCp',
      message: 'Does the module have a control panel backend?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('module') !== -1 && data.hasModuleMcp;
      }
    },
    {
      type: 'confirm',
      name: 'hasModuleTab',
      message: 'Does the module have a publish tab?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('module') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasFieldtypeSettings',
      message: 'Does the fieldtype have settings?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('fieldtype') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasFieldtypeGlobalSettings',
      message: 'Does the fieldtype have global settings?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('fieldtype') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasFieldtypeTagPair',
      message: 'Does the fieldtype have a tag pair?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('fieldtype') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasTheme',
      message: 'Does this Add-On need theme files?',
      default: false
    }
  ];

  this.prompt(prompts, function (props)
  {
    this.hasPlugin = props.addonTypes.indexOf('plugin') !== -1;
    this.hasExtension = props.addonTypes.indexOf('extension') !== -1;
    this.hasModule = props.addonTypes.indexOf('module') !== -1;
    this.hasFieldtype = props.addonTypes.indexOf('fieldtype') !== -1;
    this.hasAccessory = props.addonTypes.indexOf('accessory') !== -1;
    this.hasTheme = props.hasTheme;
    this.addonName = props.addonName;<commit_msg>Change some of the language<commit_after>'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');


var EeModuleGenerator = module.exports = function EeModuleGenerator(args, options, config)
{
  yeoman.generators.Base.apply(this, arguments);
};

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

EeModuleGenerator.prototype.askFor = function askFor()
{
  var cb = this.async();

  // have Yeoman greet the user.
  console.log(this.yeoman);

  var prompts = [
    {
      name: 'addonTypes',
      message: 'Which add-on type(s) are you making?',
      type: 'checkbox',
      required: true,
      default: [],
      validate: function(data) {
        return (data.length > 0) ? true : 'You must choose an add-on type.';
      },
      choices: [
        {
          name: 'Plugin',
          value: 'plugin',
        },
        {
          name: 'Extension',
          value: 'extension',
        },
        {
          name: 'Module',
          value: 'module',
        },
        {
          name: 'Fieldtype',
          value: 'fieldtype',
        },
        {
          name: 'Accessory',
          value: 'accessory',
        },
      ]
    },
    {
      name: 'addonName',
      message: 'What do you want to name your add-on? (ex. Google Maps)',
      validate: function(data) {
        return (data.length > 0) ? true : 'You must choose an add-on name.';
      }
    },
    {
      name: 'addonSlug',
      message: 'What slug name do you want to give your add-on? (ex. google_maps)',
      validate: function(data) {
        return (data.length > 0) ? true : 'You must choose an add-on slug.';
      }
    },
    {
      name: 'addonDescription',
      message: 'What is the description for this add-on?',
      when: function(data) {
        return data.addonTypes.indexOf('plugin') !== -1 ||
               data.addonTypes.indexOf('accessory') !== -1 ||
               data.addonTypes.indexOf('extension') !== -1 ||
               data.addonTypes.indexOf('module') !== -1;
      }
    },
    {
      name: 'authorName',
      message: 'What is your name?'
    },
    {
      name: 'authorUrl',
      message: 'What is your URL?'
    },
    {
      type: 'confirm',
      name: 'hasExtensionSettings',
      message: 'Does the extension have settings?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('extension') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasModuleMod',
      message: 'Does the module need a mod file for template tags?',
      default: true,
      when: function(data) {
        return data.addonTypes.indexOf('module') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasModuleMcp',
      message: 'Does the module need an mcp file for control panel views or actions?',
      default: true,
      when: function(data) {
        return data.addonTypes.indexOf('module') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasModuleCp',
      message: 'Does the module have a control panel backend?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('module') !== -1 && data.hasModuleMcp;
      }
    },
    {
      type: 'confirm',
      name: 'hasModuleTab',
      message: 'Does the module have a publish tab?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('module') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasFieldtypeSettings',
      message: 'Does the fieldtype have settings?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('fieldtype') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasFieldtypeGlobalSettings',
      message: 'Does the fieldtype have global settings?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('fieldtype') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasFieldtypeTagPair',
      message: 'Does the fieldtype have a tag pair?',
      default: false,
      when: function(data) {
        return data.addonTypes.indexOf('fieldtype') !== -1;
      }
    },
    {
      type: 'confirm',
      name: 'hasTheme',
      message: 'Does this add-on need theme files?',
      default: false
    }
  ];

  this.prompt(prompts, function (props)
  {
    this.hasPlugin = props.addonTypes.indexOf('plugin') !== -1;
    this.hasExtension = props.addonTypes.indexOf('extension') !== -1;
    this.hasModule = props.addonTypes.indexOf('module') !== -1;
    this.hasFieldtype = props.addonTypes.indexOf('fieldtype') !== -1;
    this.hasAccessory = props.addonTypes.indexOf('accessory') !== -1;
    this.hasTheme = props.hasTheme;
    this.addonName = props.addonName;
{'fraction_non_alphanumeric': 0.14483982051549618, 'fraction_numerical': 0.004174058228112282, 'mean_word_length': 2.129980404964076, 'pattern_counts': {'":': 0, '<': 3, '<?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': '47451', 'n_tokens_mistral': 2932, 'n_tokens_neox': 2906, 'n_words': 728}