<commit_before>var _ = require('lodash-node');
var fs = require('fs');
var inquirer = require('inquirer');
var path = require('path');
var Q = require('q');
var gulp = require('gulp');
var replace = require('gulp-replace');
var rename = require('gulp-rename');
var minimist = require('minimist');
var stringify = require('json-stable-stringify');
var paths = require('../config.js').paths;
var rimraf = require('rimraf');
var chalk = require('chalk');

var fileTypes = ['html','less','js','md'];

//questions

var questionSelectModuleList = {
	type: 'list',
	name: 'path',
	choices:function () {
		var index = getConsoleModuleIndex(getModuleIndex());
		return [new inquirer.Separator('=== COMPONENTS:')].concat(
			index.components
		).concat([new inquirer.Separator('=== VIEWS:')]).concat(
			index.views
		);
	}
};
var questionFileTypesToAdd = {
	type:'checkbox',
	name:'files',
	message:'Which file types would you like to add?',
	when:function (answers) {
		return Boolean(getMissingTypes(answers.path).length);
	},
	choices:function (answers) {
		return getMissingTypes(answers.path);
	}
};
var questionConfirmRemove = {
	type:'confirm',
	name:'remove',
	message:function (answers) {
		var moduleName = answers.path.split('/')[1];
		return 'are you sure you want to remove module ' + moduleName;
	},
	default: false
};
//questions for edit module method

var editQuestions = [
	//question 1: select from a list of existing modules
	questionSelectModuleList,<commit_msg>chore(guide-prompt) - minor visual change on components listing.<commit_after>var _ = require('lodash-node');
var fs = require('fs');
var inquirer = require('inquirer');
var path = require('path');
var Q = require('q');
var gulp = require('gulp');
var replace = require('gulp-replace');
var rename = require('gulp-rename');
var minimist = require('minimist');
var stringify = require('json-stable-stringify');
var paths = require('../config.js').paths;
var rimraf = require('rimraf');
var chalk = require('chalk');

var fileTypes = ['html','less','js','md'];

//questions

var questionSelectModuleList = {
	type: 'list',
	name: 'path',
	choices:function () {
		var index = getConsoleModuleIndex(getModuleIndex());
		return [new inquirer.Separator('[COMPONENTS]')].concat(
			index.components
		).concat([new inquirer.Separator('[VIEWS]')]).concat(
			index.views
		);
	}
};
var questionFileTypesToAdd = {
	type:'checkbox',
	name:'files',
	message:'Which file types would you like to add?',
	when:function (answers) {
		return Boolean(getMissingTypes(answers.path).length);
	},
	choices:function (answers) {
		return getMissingTypes(answers.path);
	}
};
var questionConfirmRemove = {
	type:'confirm',
	name:'remove',
	message:function (answers) {
		var moduleName = answers.path.split('/')[1];
		return 'are you sure you want to remove module ' + moduleName;
	},
	default: false
};
//questions for edit module method

var editQuestions = [
	//question 1: select from a list of existing modules
	questionSelectModuleList,
{'fraction_non_alphanumeric': 0.16471767457400602, 'fraction_numerical': 0.0013364517206815904, 'mean_word_length': 5.356687898089172, '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': '5591827', 'n_tokens_mistral': 992, 'n_tokens_neox': 939, 'n_words': 241}