<commit_before>'use strict';

const chalk = require('chalk');
const inquirer = require('inquirer');

module.exports = {
	multipleWordsInput: (input) => {
		// node index.js add Super Mario World returns Super Mario World
		return input.splice(3).join(' ');
	},
	calculateGames: (games) => {
		return console.log(chalk.cyan(games.length) + ' games in your collection');
	},
	noGamesFound: () => {
		return console.warn(chalk.dim('No games found'));
	},
	gameAdded: (game) => {
		return console.log(chalk.yellow(chalk.bold(game) + ' inserted into your game collection.'));
	},
	gameRemoved: (game) => {
		return console.log(chalk.yellow(chalk.bold(game) + ' removed from your game collection.'));
	},
	pleaseEnterName: () => {
		return console.error(chalk.red('Could not complete your request, please enter a name for a game'));
	},
	dialog: async (dialogType, dialogMessage, dialogName, dialogChoices, dialogPageSize, dialogNoSelectionMessage) => {
		return await inquirer.prompt([{
			type: dialogType,
			message: dialogMessage,
			name: dialogName,
			choices: dialogChoices,
			pageSize: dialogPageSize,
			validate: (answer) => {
				if (answer.length < 1) {
					return dialogNoSelectionMessage;
				}
				return true;
			}
		}]);
	}
};
<commit_msg>Removed pleaseEnterName function because commander handles this now. Integrate labels<commit_after>'use strict';

const chalk = require('chalk');
const inquirer = require('inquirer');
const labels = require('./labels');

module.exports = {
	multipleWordsInput: (input) => {
		// node index.js add Super Mario World returns Super Mario World
		return input.splice(3).join(' ');
	},
	calculateGames: (games) => {
		return console.log(chalk.cyan(games.length) + ` ${labels.log.gamesInCollection}`);
	},
	noGamesFound: () => {
		return console.warn(chalk.dim(labels.warning.noGamesFound));
	},
	gameAdded: (game) => {
		return console.log(chalk.yellow(chalk.bold(game) + ` ${labels.log.insertedIntoCollection}`));
	},
	gameRemoved: (game) => {
		return console.log(chalk.yellow(chalk.bold(game) + ` ${labels.log.removedFromCollection}`));
	},
	dialog: async (dialogType, dialogMessage, dialogName, dialogChoices, dialogPageSize, dialogNoSelectionMessage) => {
		return await inquirer.prompt([{
			type: dialogType,
			message: dialogMessage,
			name: dialogName,
			choices: dialogChoices,
			pageSize: dialogPageSize,
			validate: (answer) => {
				if (answer.length < 1) {
					return dialogNoSelectionMessage;
				}
				return true;
			}
		}]);
	}
};

{'fraction_non_alphanumeric': 0.1501597444089457, 'fraction_numerical': 0.001597444089456869, 'mean_word_length': 4.46943231441048, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '29759', 'n_tokens_mistral': 897, 'n_tokens_neox': 803, 'n_words': 181}