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

var npmName = require('npm-name');


var NodeGenerator = yeoman.generators.Base.extend({
	init: function() {
		// var done = this.async();
		this.pkg = require('../package.json');

		this.on('end', function() {
			if (!this.options['skip-install']) {
				this.installDependencies({
					bower: false,
					callback: function() {
						this.log(chalk.red('\n\n---- GULP TASKS ----'));
						this.log('Run these gulp tasks as needed:');
						this.log(chalk.green('- gulp init'));
						this.log(chalk.green('- gulp gh-pages'));
						this.log(chalk.green('- gulp dev'));
						this.log(chalk.green('- gulp docs'));
					}.bind(this)
				});
			}

			// done();
		});
	},

	welcome: function() {
		// have Yeoman greet the user
		this.log(this.yeoman);

		this.log(chalk.red('---- NODE.JS PROJECT GENERATOR ----'));
		this.log('Use this generator to scaffold basic node.js projects.\n\n');
	},

	askFor: function() {
		var done = this.async();

		var prompts = [{
			name: 'githubUser',
			message: 'What is your GitHub user name?'
		}, {
			name: 'name',
			message: 'What is the name of your project?',
			default: path.basename(process.cwd()),<commit_msg>feat: add `grunt init` to default process<commit_after>'use strict';
var fs = require('fs');
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var chalk = require('chalk');

var npmName = require('npm-name');


var NodeGenerator = yeoman.generators.Base.extend({
	init: function() {
		// var done = this.async();
		this.pkg = require('../package.json');

		this.option('git', {
			desc: 'Initialize the project with git.',
			type: Boolean,
			required: false
		});

		if((typeof this.options.git === 'undefined') || (this.options.git === null)) {
			this.options.git = true;
		}

		this.on('end', function() {
			if (!this.options['skip-install']) {
				this.installDependencies({
					bower: false,
					callback: function() {
						this.log(chalk.red('\n\nINITIALIZING GIT'));
						this.log('Please wait...\n\n');

						if(this.options.git) {
							this.spawnCommand('grunt', ['init']);
						}
					}.bind(this)
				});
			}

			// done();
		});
	},

	welcome: function() {
		// have Yeoman greet the user
		this.log(this.yeoman);

		this.log(chalk.red('---- NODE.JS PROJECT GENERATOR ----'));
		this.log('Use this generator to scaffold basic node.js projects.\n\n');
	},

	askFor: function() {
		var done = this.async();

		var prompts = [{
			name: 'githubUser',
			message: 'What is your GitHub user name?'
		}, {
			name: 'name',
			message: 'What is the name of your project?',
			default: path.basename(process.cwd()),
{'fraction_non_alphanumeric': 0.19453319133830316, 'fraction_numerical': 0.0, 'mean_word_length': 3.101892285298399, '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': '1243277', 'n_tokens_mistral': 1128, 'n_tokens_neox': 930, 'n_words': 229}