<commit_before>'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var fs = require('fs');
var inspect = require('eyes').inspector({maxLength: false});
var path = require('path');
var rmdir = require('rmdir');
var semver = require('semver');
var versions = require('./dependency-versions.js');
var yosay = require('yosay');
var _ = require('lodash');

module.exports = yeoman.Base.extend({
  initializing: function () {
    this.out = require('./app-output.js')(this);

    this.pkg = require('../../package.json');
    if (!this.config.get('originalGeneratorVersion')) {
      this.config.set('originalGeneratorVersion', this.pkg.version);
    }
    this.config.set('generatorVersion', this.pkg.version);
    this.sdkVersions = require('./sdk-versions.js');
    this.config.defaults({
      sdkVersion: '2.1.1',
      projectGroupId: 'org.alfresco',
      projectArtifactId: 'demoamp',
      projectVersion: '1.0.0-SNAPSHOT',
      projectPackage: 'org.alfresco',
      communityOrEnterprise: 'Community',
      includeGitIgnore: true,
      removeDefaultSourceAmps: false,
      removeDefaultSourceSamples: false,
    });
    this.bail = false;
    try {
      this.javaVersion = versions.getJavaVersion();
      if (!this.javaVersion) {
        throw new Error('We are unable to find a java executable. A compatible version of java is required.');
      }
      this.mavenVersion = versions.getMavenVersion();
      if (!this.mavenVersion) {
        throw new Error('We are unable to find a maven executable. A compatible version of maven is required.');
      }
    } catch (e) {
      this.out.error(e.message);
      this.bail = true;
    }
  },

  prompting: function () {
    if (this.bail) return;
    // Have Yeoman greet the user.
    this.log(yosay(<commit_msg>Change default artifact id from demoamp to demo<commit_after>'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var fs = require('fs');
var inspect = require('eyes').inspector({maxLength: false});
var path = require('path');
var rmdir = require('rmdir');
var semver = require('semver');
var versions = require('./dependency-versions.js');
var yosay = require('yosay');
var _ = require('lodash');

module.exports = yeoman.Base.extend({
  initializing: function () {
    this.out = require('./app-output.js')(this);

    this.pkg = require('../../package.json');
    if (!this.config.get('originalGeneratorVersion')) {
      this.config.set('originalGeneratorVersion', this.pkg.version);
    }
    this.config.set('generatorVersion', this.pkg.version);
    this.sdkVersions = require('./sdk-versions.js');
    this.config.defaults({
      sdkVersion: '2.1.1',
      projectGroupId: 'org.alfresco',
      projectArtifactId: 'demo',
      projectVersion: '1.0.0-SNAPSHOT',
      projectPackage: 'org.alfresco',
      communityOrEnterprise: 'Community',
      includeGitIgnore: true,
      removeDefaultSourceAmps: false,
      removeDefaultSourceSamples: false,
    });
    this.bail = false;
    try {
      this.javaVersion = versions.getJavaVersion();
      if (!this.javaVersion) {
        throw new Error('We are unable to find a java executable. A compatible version of java is required.');
      }
      this.mavenVersion = versions.getMavenVersion();
      if (!this.mavenVersion) {
        throw new Error('We are unable to find a maven executable. A compatible version of maven is required.');
      }
    } catch (e) {
      this.out.error(e.message);
      this.bail = true;
    }
  },

  prompting: function () {
    if (this.bail) return;
    // Have Yeoman greet the user.
    this.log(yosay(
{'fraction_non_alphanumeric': 0.14924554183813443, 'fraction_numerical': 0.0032921810699588477, 'mean_word_length': 3.279342723004695, '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': '2063329', 'n_tokens_mistral': 1119, 'n_tokens_neox': 1092, 'n_words': 262}