<commit_before>/*
 * grunt-init-node
 * https://gruntjs.com/
 *
 * Copyright (c) 2013 "Cowboy" <NAME>, contributors
 * Licensed under the MIT license.
 */

'use strict';

// Basic template description.
exports.description = 'Create a Node.js module, including mocha unit tests.';

// Template-specific notes to be displayed before question prompts.
exports.notes = '_Project name_ shouldn\'t contain "node" or "js" and should ' +
  'be a unique ID not already in use at search.npmjs.org.';

// Template-specific notes to be displayed after question prompts.
exports.after = 'You should now install project dependencies with _npm ' +
  'install_. After that, you may execute project tasks with _grunt_. For ' +
  'more information about installing and configuring Grunt, please see ' +
  'the Getting Started guide:' +
  '\n\n' +
  'http://gruntjs.com/getting-started';

// Any existing file or directory matching this wildcard will cause a warning.
exports.warnOn = '*';

// The actual init template.
exports.template = function(grunt, init, done) {

  init.process({type: 'node'}, [
    // Prompt for these values.
    init.prompt('name'),
    init.prompt('description'),
    init.prompt('version'),
    init.prompt('repository'),
    init.prompt('homepage'),
    init.prompt('bugs'),
    init.prompt('licenses'),
    init.prompt('author_name'),
    init.prompt('author_email'),
    init.prompt('author_url'),
    init.prompt('node_version', '>= 0.8.0'),
    init.prompt('main'),
    init.prompt('npm_test', 'mocha'),
    {
      name: 'keywords',
      message: 'What keywords relate to this plugin (comma separated)?'
    }
    // {
    //   name: 'travis',
    //   message: 'Will this project be tested with Travis CI?',
    //   default: 'Y/n',
    //   warning: 'If selected, you must enable Travis support for this project in https://travis-ci.org/profile'
    // }
  ], function(err, props) {
    // Set up dependencies
    props.dependencies = {};
    props.devDependencies = {
      'grunt-contrib-jshint': '~0.6.0',
      'grunt-contrib-watch': '~0.4.0'
    };
    // // TODO: compute dynamically?
    // props.travis = /y/i.test(props.travis);
    // props.travis_node_version = '0.10';

    // Break up the keywords by commas<commit_msg>Correcting missing mocha dependency<commit_after>/*
 * grunt-init-node
 * https://gruntjs.com/
 *
 * Copyright (c) 2013 "Cowboy" <NAME>, contributors
 * Licensed under the MIT license.
 */

// Basic template description.
exports.description = 'Create a Node.js module, including mocha unit tests.';

// Template-specific notes to be displayed before question prompts.
exports.notes = '_Project name_ shouldn\'t contain \'node\' or \'js\' and should ' +
  'be a unique ID not already in use at search.npmjs.org.';

// Template-specific notes to be displayed after question prompts.
exports.after = 'You should now install project dependencies with _npm ' +
  'install_. After that, you may execute project tasks with _grunt_. For ' +
  'more information about installing and configuring Grunt, please see ' +
  'the Getting Started guide:' +
  '\n\n' +
  'http://gruntjs.com/getting-started';

// Any existing file or directory matching this wildcard will cause a warning.
exports.warnOn = '*';

// The actual init template.
exports.template = function(grunt, init, done) {

  init.process({type: 'node'}, [
    // Prompt for these values.
    init.prompt('name'),
    init.prompt('description'),
    init.prompt('version'),
    init.prompt('repository'),
    init.prompt('homepage'),
    init.prompt('bugs'),
    init.prompt('licenses'),
    init.prompt('author_name'),
    init.prompt('author_email'),
    init.prompt('author_url'),
    init.prompt('node_version', '>= 0.8.0'),
    init.prompt('main'),
    init.prompt('npm_test', 'mocha'),
    {
      name: 'keywords',
      message: 'What keywords relate to this plugin (comma separated)?'
    }
    // {
    //   name: 'travis',
    //   message: 'Will this project be tested with Travis CI?',
    //   default: 'Y/n',
    //   warning: 'If selected, you must enable Travis support for this project in https://travis-ci.org/profile'
    // }
  ], function(err, props) {
    // Set up dependencies
    props.dependencies = {};
    props.devDependencies = {
      'mocha': '~1.11.0',
      'grunt-contrib-jshint': '~0.6.0',
      'grunt-contrib-watch': '~0.4.0'
    };
    // // TODO: compute dynamically?
    // props.travis = /y/i.test(props.travis);
    // props.travis_node_version = '0.10';

    // Break up the keywords by commas
{'fraction_non_alphanumeric': 0.14937210839391937, 'fraction_numerical': 0.007931262392597489, 'mean_word_length': 3.064458370635631, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '7367762', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1376, 'n_words': 406}