<commit_before>/*!
 * common-questions <https://github.com/jonschlinkert/common-questions>
 *
 * Copyright (c) 2015, <NAME>.
 * Licensed under the MIT License.
 */

'use strict';

var project = require('project-name');

module.exports = function(options) {
  options = options || {};
  return {
    setDefault: {
      'author.name': 'Author\'s name?',
      'author.url': 'Author\'s URL?',
      'author.username': 'Author\'s GitHub username?'
    },
    set: {
      name: {
        message: 'Project name?',
        default: project(process.cwd()),
        force: !!options.init
      },
      description: {
        message: 'Project description?',
        force: !!options.init
      }
    }
  };
};<commit_msg>improve cwd logic, adds `twitter` and `email` questions<commit_after>/*!
 * common-questions <https://github.com/jonschlinkert/common-questions>
 *
 * Copyright (c) 2015, <NAME>.
 * Licensed under the MIT License.
 */

'use strict';

var project = require('project-name');

module.exports = function(options) {
  options = options || {};
  var cwd = options.cwd || process.cwd();
  var name = options.name || project(cwd);

  return {
    setDefault: {
      'author.name': 'Author\'s name?',
      'author.url': 'Author\'s URL?',
      'author.username': 'Author\'s GitHub username?',
      'author.twitter': 'Author\'s Twitter username?',
      'author.email': 'Author\'s email address?',
    },
    set: {
      'project.name': {
        message: 'Project name?',
        default: name,
        force: options.init === true
      },
      'project.description': {
        message: 'Project description?',
        force: options.init === true
      }
    }
  };
};
{'fraction_non_alphanumeric': 0.1724137931034483, 'fraction_numerical': 0.0047562425683709865, 'mean_word_length': 2.634989200863931, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1281082', 'n_tokens_mistral': 531, 'n_tokens_neox': 513, 'n_words': 121}