<commit_before>const fs = require('fs');
const questions = require('questions');
const colors = require('colors/safe');
const path = require('path');
const rootDir = path.join(__dirname, '..');
const libDir = path.join(rootDir, 'lib');
const logo = fs.readFileSync(path.join(rootDir, 'logo.txt'), { encoding: 'utf-8' });
const Dynastia = require(path.join(libDir, 'dynastia'));
const defaults = require(path.join(libDir, 'defaults'));
const Renderer = require(path.join(libDir, 'renderer'));
const Saver = require(path.join(libDir, 'saver'));

const wizard = (outputDir) => {
  if (outputDir === undefined) outputDir = '.';

  // output welcome
  process.stdout.write(`\n${colors.cyan(logo)}\n`);

  // ask a few questions
  questions.askMany({
    theme: {
      info: colors.cyan('What culture theme is this dynasty?') + colors.white(` (${defaults.themes.join(' | ')})`),
      required: false,
    },

    race: {
      info: colors.cyan('What race this dynasty?') + colors.white(` (${defaults.races.join(' | ')})`),
      required: false,
    },

    generationsCount: {
      info: colors.cyan('How many generations are there?'),
      required: false,
    },<commit_msg>Adding ability to input name to the wizard<commit_after>const fs = require('fs');
const questions = require('questions');
const colors = require('colors/safe');
const path = require('path');
const rootDir = path.join(__dirname, '..');
const libDir = path.join(rootDir, 'lib');
const logo = fs.readFileSync(path.join(rootDir, 'logo.txt'), { encoding: 'utf-8' });
const Dynastia = require(path.join(libDir, 'dynastia'));
const defaults = require(path.join(libDir, 'defaults'));
const Renderer = require(path.join(libDir, 'renderer'));
const Saver = require(path.join(libDir, 'saver'));

const wizard = (outputDir) => {
  if (outputDir === undefined) outputDir = '.';

  // output welcome
  process.stdout.write(`\n${colors.cyan(logo)}\n`);

  // ask a few questions
  questions.askMany({
    name: {
      info: colors.cyan('What is the name of this dynasty?'),
      required: false,
    },

    theme: {
      info: colors.cyan('What culture theme is this dynasty?') + colors.white(` (${defaults.themes.join(' | ')})`),
      required: false,
    },

    race: {
      info: colors.cyan('What race this dynasty?') + colors.white(` (${defaults.races.join(' | ')})`),
      required: false,
    },

    generationsCount: {
      info: colors.cyan('How many generations are there?'),
      required: false,
    },
{'fraction_non_alphanumeric': 0.1834271922767498, 'fraction_numerical': 0.0008045052292839903, 'mean_word_length': 3.9839679358717435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4065791', 'n_tokens_mistral': 792, 'n_tokens_neox': 775, 'n_words': 192}