<commit_before>'use strict';

var chalk = require('chalk'),
  findup = require('findup-sync'),
  _ = require('lodash');

module.exports = function (packageJson) {
  var folderList = [];

  _.each(['sites', 'components', 'behaviors', 'validators'], function (folderName) {
    var exists = findup(folderName) ? chalk.gray.dim('exists') : false;
    var message = _.startCase(folderName) + ' Folder';

    folderList.push(
      {
        name: (exists) ? chalk.gray.dim(message) : message,
        value: folderName,
        checked: !exists,
        disabled: exists
      }
    );

  });

  var prompts = [
    {
      type: 'input',
      name: 'description',
      message: chalk.blue('No description found. Please enter one.\n') + 'Description',
      default: 'Clay instance',
      when: !packageJson.description
    },
    {
      type: 'input',
      name: 'keywords',
      message: chalk.blue('No keywords found. Please enter them.\n') + 'Package keywords (comma to split)',
      when: !packageJson.keywords || _.isEmpty(packageJson.keywords),
      default: 'clay, instance',
      filter: _.words
    },
    {
      type:'checkbox',
      name:'folders',
      message:'\n\nWhich folders would you like to create?',
      choices: folderList
    },
  ];

  return prompts;
};
<commit_msg>App: Directory - Fixed errors<commit_after>'use strict';

var chalk = require('chalk'),
  findup = require('findup-sync'),
  _ = require('lodash');

module.exports = function (packageJson) {
  var prompts, exists, message, folderList = [];

  _.each(['sites', 'components', 'behaviors', 'validators'], function (folderName) {
    exists = findup(folderName) ? chalk.gray.dim('exists') : false;
    message = _.startCase(folderName) + ' Folder';

    folderList.push(
      {
        name: exists ? chalk.gray.dim(message) : message,
        value: folderName,
        checked: !exists,
        disabled: exists
      }
    );

  });

  prompts = [
    {
      type: 'input',
      name: 'description',
      message: chalk.blue('No description found. Please enter one.\n') + 'Description',
      default: 'Clay instance',
      when: !packageJson.description
    },
    {
      type: 'input',
      name: 'keywords',
      message: chalk.blue('No keywords found. Please enter them.\n') + 'Package keywords (comma to split)',
      when: !packageJson.keywords || _.isEmpty(packageJson.keywords),
      default: 'clay, instance',
      filter: _.words
    },
    {
      type:'checkbox',
      name:'folders',
      message:'\n\nWhich folders would you like to create?',
      choices: folderList
    },
  ];

  return prompts;
};

{'fraction_non_alphanumeric': 0.15171102661596958, 'fraction_numerical': 0.0, 'mean_word_length': 2.726628895184136, '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': '5254014', 'n_tokens_mistral': 814, 'n_tokens_neox': 777, 'n_words': 193}