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


var NopejsGenerator = module.exports = function NopejsGenerator(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(NopejsGenerator, yeoman.generators.Base);

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

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

  var prompts = [
  //]; /*
    {
      name: 'packageName',
      message: 'What would you like to name this package? (this will be slugified)'
    },
    {
      name: 'siteName',
      message: 'What would you like to call your site?'
    },
    {
      name: 'siteAuthor',
      message: 'Who is the site author?'
    }
  ];
//*/
  this.prompt(prompts, function (props) {
    ///*
    this.packageName = props.packageName;
    this.siteName = props.siteName;
    this.siteAuthor = props.siteAuthor;
    //*/

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

NopejsGenerator.prototype.app = function app() {
  this.copy('_package.json', 'package.json');
  this.copy('_bower.json', 'bower.json');
  this.copy('.bowerrc');
};

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

NopejsGenerator.prototype.projectfiles = function projectfiles() {
  this.copy('editorconfig', '.editorconfig');
  this.copy('jshintrc', '.jshintrc');
};

NopejsGenerator.prototype.nopejsFiles = function nopejsFiles() {
    this.bowerInstall("shakeelmohamed/nopejs", { save: true }, function(){
      fs.copy('./bower_components/nopejs', './', function (err) {
        if (err) {
          console.error(err);
        } else {
          console.log("success!");
        }
      });
    });
};<commit_msg>We can just remove the bower components afterwards :)<commit_after>'use strict';
var util = require('util');
var path = require('path');
var fs = require('fs-extra');
var yeoman = require('yeoman-generator');


var NopejsGenerator = module.exports = function NopejsGenerator(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(NopejsGenerator, yeoman.generators.Base);

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

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

  var prompts = [
  //]; /*
    {
      name: 'packageName',
      message: 'What would you like to name this package? (this will be slugified)'
    },
    {
      name: 'siteName',
      message: 'What would you like to call your site?'
    },
    {
      name: 'siteAuthor',
      message: 'Who is the site author?'
    }
  ];
//*/
  this.prompt(prompts, function (props) {
    ///*
    this.packageName = props.packageName;
    this.siteName = props.siteName;
    this.siteAuthor = props.siteAuthor;
    //*/

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

NopejsGenerator.prototype.app = function app() {
  this.copy('_package.json', 'package.json');
  this.copy('_bower.json', 'bower.json');
  this.copy('.bowerrc');
};

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

NopejsGenerator.prototype.projectfiles = function projectfiles() {
  this.copy('editorconfig', '.editorconfig');
  this.copy('jshintrc', '.jshintrc');
};

NopejsGenerator.prototype.nopejsFiles = function nopejsFiles() {
    this.bowerInstall("shakeelmohamed/nopejs", { save: true }, function(){
      fs.copy('./bower_components/nopejs', './', function (err) {
        if (err) {
          console.error(err);
        } else {
          console.log("success!");
          fs.remove('./bower_components', function(err){
            if (err) return console.error(err);

            console.log("success!")
          });
        }
      });
    });
};
{'fraction_non_alphanumeric': 0.16840360018948367, 'fraction_numerical': 0.0, 'mean_word_length': 3.244221105527638, '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': '6832571', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1337, 'n_words': 267}