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


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

  var skipMessage = options['skip-install-message'];
  var skipInstall = options['skip-install'];

  this.on('end', function () {
    this.installDependencies({
      skipInstall: skipInstall,
      skipMessage: skipMessage
    });
  });

  this.pkg = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));
};

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

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

  // welcome message
  if (!this.options['skip-welcome-message']) {
    console.log(this.yeoman);
    console.log('Out of the box I include HTML5 Boilerplate, jQuery, Modernizr, Normalize and Typeplate.');
  }

  var prompts = [{
    name: 'themeName',
    message: 'What do you want to call your theme?',
    default: 'eGzpo'
  }, {
    type: 'confirm',
    name: 'includeLogo',
    message: 'Would you like to support rel=logo?',
    default: true
  }];

  this.prompt(prompts, function (props) {
    this.themeName = props.themeName;
    this.includeLogo = props.includeLogo;

    cb();
  }.bind(this));
};

EgzpoGenerator.prototype.gruntfile = function gruntfile() {
  this.template('Gruntfile.js');
};

EgzpoGenerator.prototype.packageJSON = function packageJSON() {
  this.template('_package.json', 'package.json');
};

EgzpoGenerator.prototype.git = function git() {
  this.copy('gitignore', '.gitignore');
};

EgzpoGenerator.prototype.bower = function bower() {
  this.copy('_bower.json', 'bower.json');
};

EgzpoGenerator.prototype.jshint = function jshint() {
  this.copy('jshintrc', '.jshintrc');
};

EgzpoGenerator.prototype.csslint = function csslint() {
  this.copy('csslintrc', '.csslintrc');
};

EgzpoGenerator.prototype.editorConfig = function editorConfig() {
  this.copy('editorconfig', '.editorconfig');
};

EgzpoGenerator.prototype.travis = function travis() {
  this.copy('travis.yml', '.travis.yml');
};

EgzpoGenerator.prototype.assets = function assets() {
  this.mkdir('app/assets');
  this.mkdir('app/assets/img');
  this.mkdir('app/assets/img/favicons');
  this.mkdir('app/assets/img/icons');
  this.mkdir('app/assets/js');
  if (this.includeLogo) {
    this.copy('logo.svg', 'app/assets/img/logo.svg');
  }
  this.copy('main.js', 'app/assets/js/main.js');
};

EgzpoGenerator.prototype.lang = function lang() {
  this.directory('lang', 'app/lang');
};

EgzpoGenerator.prototype.lib = function lib() {
  this.directory('lib', 'app/lib');
};

EgzpoGenerator.prototype.sass = function sass() {
  this.directory('sass', 'app/sass');
};

EgzpoGenerator.prototype.templates = function templates() {
  this.directory('templates', 'app/templates');
};

EgzpoGenerator.prototype.templates = function templates() {
  this.directory('templates', 'app/templates');
};

EgzpoGenerator.prototype.app = function app() {
  this.mkdir('app');
  this.copy('404.php', 'app/404.php');
  this.copy('base.php', 'app/base.php');
  this.copy('functions.php', 'app/functions.php');
  this.copy('index.php', 'app/index.php');
  this.copy('page.php', 'app/page.php');
  this.copy('screenshot.png', 'app/screenshot.png');
  this.copy('single.php', 'app/single.php');
  this.copy('style.css', 'app/style.css');
  this.copy('template-custom.php', 'app/template-custom.php');
};<commit_msg>Added GitHub username and humans.txt prompts<commit_after>'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');


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

  var skipMessage = options['skip-install-message'];
  var skipInstall = options['skip-install'];

  this.on('end', function () {
    this.installDependencies({
      skipInstall: skipInstall,
      skipMessage: skipMessage
    });
  });

  this.pkg = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));
};

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

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

  // welcome message
  if (!this.options['skip-welcome-message']) {
    console.log(this.yeoman);
    console.log('Out of the box I include HTML5 Boilerplate, jQuery, Modernizr, Normalize and Typeplate.');
  }

  var prompts = [{
    name: 'userName',
    message: 'What is your GitHub username?'
  },
  {
    name: 'themeName',
    message: 'What do you want to call your theme?',
    default: 'eGzpo'
  }, {
    type: 'confirm',
    name: 'includeLogo',
    message: 'Would you like to support rel=logo?',
    default: true
  }, {
    type: 'confirm',
    name: 'includeHumans',
    message: 'Would you like to include humans.txt?',
    default: true
  }];

  this.prompt(prompts, function (props) {
    this.userName = props.userName;
    this.themeName = props.themeName;
    this.includeLogo = props.includeLogo;
    this.includeHumans = props.includeHumans;

    cb();
  }.bind(this));
};

EgzpoGenerator.prototype.gruntfile = function gruntfile() {
  this.template('Gruntfile.js');
};

EgzpoGenerator.prototype.packageJSON = function packageJSON() {
  this.template('_package.json', 'package.json');
};

EgzpoGenerator.prototype.git = function git() {
  this.copy('gitignore', '.gitignore');
};

EgzpoGenerator.prototype.bower = function bower() {
  this.copy('_bower.json', 'bower.json');
};

EgzpoGenerator.prototype.jshint = function jshint() {
  this.copy('jshintrc', '.jshintrc');
};

EgzpoGenerator.prototype.csslint = function csslint() {
  this.copy('csslintrc', '.csslintrc');
};

EgzpoGenerator.prototype.editorConfig = function editorConfig() {
  this.copy('editorconfig', '.editorconfig');
};

EgzpoGenerator.prototype.travis = function travis() {
  this.copy('travis.yml', '.travis.yml');
};

EgzpoGenerator.prototype.assets = function assets() {
  this.mkdir('app/assets');
  this.mkdir('app/assets/img');
  this.mkdir('app/assets/img/favicons');
  this.mkdir('app/assets/img/icons');
  this.mkdir('app/assets/js');
  if (this.includeLogo) {
    this.copy('logo.svg', 'app/assets/img/logo.svg');
  }
  this.copy('main.js', 'app/assets/js/main.js');
};

EgzpoGenerator.prototype.lang = function lang() {
  this.directory('lang', 'app/lang');
};

EgzpoGenerator.prototype.lib = function lib() {
  this.directory('lib', 'app/lib');
};

EgzpoGenerator.prototype.sass = function sass() {
  this.directory('sass', 'app/sass');
};

EgzpoGenerator.prototype.templates = function templates() {
  this.directory('templates', 'app/templates');
};

EgzpoGenerator.prototype.templates = function templates() {
  this.directory('templates', 'app/templates');
};

EgzpoGenerator.prototype.app = function app() {
  this.mkdir('app');
  this.copy('404.php', 'app/404.php');
  this.copy('base.php', 'app/base.php');
  this.copy('functions.php', 'app/functions.php');
  if (this.includeHumans) {
    this.copy('humans.txt', 'app/humans.txt');
  }
  this.copy('index.php', 'app/index.php');
  this.copy('page.php', 'app/page.php');
  this.copy('screenshot.png', 'app/screenshot.png');
  this.copy('single.php', 'app/single.php');
  this.copy('style.css', 'app/style.css');
  this.copy('template-custom.php', 'app/template-custom.php');
};
{'fraction_non_alphanumeric': 0.1808524942853301, 'fraction_numerical': 0.001882479494419793, 'mean_word_length': 4.461086637298091, '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': '2674414', 'n_tokens_mistral': 2547, 'n_tokens_neox': 2489, 'n_words': 432}