<commit_before>'use strict';

var inquirer = require('inquirer');

module.exports = function (data) {
  var appName = data.appName;
  var npmScripts = data.scriptKeys.filter(function (key) {
    return key !== 'install' && key !== 'postinstall';
  });

  return [
    {
      name: 'appUrl',
      message: 'What is the URL of your app?',
      default: appName.indexOf('.com') === -1 ? appName + '.com' : appName
    }, {
      name: 'cloneUrl',
      message: 'What is the app\'s git clone URL?',
      default: data.cloneUrl
    }, {
      name: 'branch',
      message: 'Which branch should be used for deployment?',
      default: 'master'
    }, {
      name: 'nodeEnv',
      message: 'What value would you like to use for NODE_ENV?',
      default: 'production'
    }, {
      name: 'nodeVersion',
      message: 'What version of Node.js would you like to use?',
      default: 'default'
    }, {
      name: 'upstreamPort',
      message: 'What port is your app listening on?',
      default: 3000
    }, {
      name: 'sshAddress',
      message: 'What is the server\'s SSH address?'
    }, {
      name: 'runNpmScript',
      type: 'expand',
      message: 'Would you like to run an npm script after `postinstall` runs?',
      choices: [
        { key: 'Y', name: 'Yes', value: true },
        { key: 'n', name: 'No', value: false }
      ],
      when: function () {
        return npmScripts.length > 0;
      },
      default: 0
    }, {
      name: 'npmScript',
      type: 'list',
      message: 'Which npm script would you like to run?',
      choices: npmScripts,
      when: function (answers) {
        return answers.runNpmScript;
      }
    }
  ];
};
<commit_msg>Fix default nodeVersion<commit_after>'use strict';

var inquirer = require('inquirer');

module.exports = function (data) {
  var appName = data.appName;
  var npmScripts = data.scriptKeys.filter(function (key) {
    return key !== 'install' && key !== 'postinstall';
  });

  return [
    {
      name: 'appUrl',
      message: 'What is the URL of your app?',
      default: appName.indexOf('.com') === -1 ? appName + '.com' : appName
    }, {
      name: 'cloneUrl',
      message: 'What is the app\'s git clone URL?',
      default: data.cloneUrl
    }, {
      name: 'branch',
      message: 'Which branch should be used for deployment?',
      default: 'master'
    }, {
      name: 'nodeEnv',
      message: 'What value would you like to use for NODE_ENV?',
      default: 'production'
    }, {
      name: 'nodeVersion',
      message: 'What version of Node.js would you like to use?',
      default: 'latest'
    }, {
      name: 'upstreamPort',
      message: 'What port is your app listening on?',
      default: 3000
    }, {
      name: 'sshAddress',
      message: 'What is the server\'s SSH address?'
    }, {
      name: 'runNpmScript',
      type: 'expand',
      message: 'Would you like to run an npm script after `postinstall` runs?',
      choices: [
        { key: 'Y', name: 'Yes', value: true },
        { key: 'n', name: 'No', value: false }
      ],
      when: function () {
        return npmScripts.length > 0;
      },
      default: 0
    }, {
      name: 'npmScript',
      type: 'list',
      message: 'Which npm script would you like to run?',
      choices: npmScripts,
      when: function (answers) {
        return answers.runNpmScript;
      }
    }
  ];
};

{'fraction_non_alphanumeric': 0.14425066509015666, 'fraction_numerical': 0.004138338752586462, 'mean_word_length': 2.2444870565675936, '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': '1493434', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1047, 'n_words': 334}