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


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

  this.on('end', function () {
    this.installDependencies({ skipInstall: options['skip-install'] });
  });

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

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

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

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


  var prompts = [
		{
			name: 'RunOnComplete',
			type: 'confirm',
			message: 'Do you want to start the application in localhost on compeltion?',
			default: true
		}
	];



  	/**
	 * If you add a prompt above, make sure you add it below here as well
	 * e.g this.newName = props.newName;
	 */
	this.prompt(prompts, function (props) {
		this.RunOnComplete = props.RunOnComplete;
		cb();
	}.bind(this));
};

/*
NodeExpressGenerator.prototype.routes = function routes() {
  this.copy('routes.js', 'app/routes.js');
};

NodeExpressGenerator.prototype.gruntfile = function gruntfile() {
  this.copy('Gruntfile.js', 'Gruntfile.js');
};

*/

// install bower dependencies
var done = this.async();

NodeExpressGenerator.prototype.InstallBowerDependencies = function InstallBowerDependencies() {
      bower.commands
      .install()
      .on('end', function(){
        done();
      });
};

NodeExpressGenerator.prototype.packageJSON = function packageJSON() {
  this.copy('_package.json', 'package.json');
};<commit_msg>try install bower dependiencies in index.js file instead of preinstall<commit_after>var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');


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

  this.on('end', function () {
    this.installDependencies({ skipInstall: options['skip-install'] });
  });

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

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

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

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


  var prompts = [
		{
			name: 'RunOnComplete',
			type: 'confirm',
			message: 'Do you want to start the application in localhost on compeltion?',
			default: true
		}
	];



  	/**
	 * If you add a prompt above, make sure you add it below here as well
	 * e.g this.newName = props.newName;
	 */
	this.prompt(prompts, function (props) {
		this.RunOnComplete = props.RunOnComplete;
		cb();
	}.bind(this));
};

/*
NodeExpressGenerator.prototype.routes = function routes() {
  this.copy('routes.js', 'app/routes.js');
};

NodeExpressGenerator.prototype.gruntfile = function gruntfile() {
  this.copy('Gruntfile.js', 'Gruntfile.js');
};

*/

// install bower dependencies


NodeExpressGenerator.prototype.InstallBowerDependencies = function InstallBowerDependencies() {

     var done = this.async();
      bower.commands
      .install()
      .on('end', function(){
        done();
      });
};

NodeExpressGenerator.prototype.packageJSON = function packageJSON() {
  this.copy('_package.json', 'package.json');
};
{'fraction_non_alphanumeric': 0.1484375, 'fraction_numerical': 0.0, 'mean_word_length': 4.113905325443787, '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': '6219208', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1045, 'n_words': 237}