<commit_before>#!/usr/bin/env node


/**
 * Module dependencies
 */

var package = require('../package.json')
	, reportback = require('reportback')()
	, rc = require('rc')
	, _ = require('lodash')
	, sailsgen = require('sails-generate');




/**
 * `sails generate`
 *
 * Generate module(s) for the app in our working directory.
 * Internally, uses ejs for rendering the various module templates.
 */

module.exports = function () {

	// Get CLI configuration
	var config = rc('sails');

	// Build initial scope
	var scope = {
		rootPath: process.cwd(),
		sailsPackageJSON: package,
		options: {
			maxDepth: 5
		}
	};

	// Mix-in rc config
	_.merge(scope, config.generators);

	var cliArguments = Array.prototype.slice.call(arguments);
	
	// Remove commander's extra argument
	cliArguments.pop();
	
	// Peel off the generatorType and the rest of the args
	scope.generatorType = cliArguments.shift();
	scope.args = cliArguments;

	return sailsgen( scope, reportback.extend() );
};
<commit_msg>Fixed default callback for sails-generate<commit_after>#!/usr/bin/env node


/**
 * Module dependencies
 */

var package = require('../package.json')
	, reportback = require('reportback')()
	, rc = require('rc')
	, _ = require('lodash')
	, sailsgen = require('sails-generate');




/**
 * `sails generate`
 *
 * Generate module(s) for the app in our working directory.
 * Internally, uses ejs for rendering the various module templates.
 */

module.exports = function ( ) {

	// Get CLI configuration
	var config = rc('sails');

	// Build initial scope
	var scope = {
		rootPath: process.cwd(),
		sailsPackageJSON: package,
		options: {
			maxDepth: 5
		},
		modules: {}
	};

	// Mix-in rc config
	_.merge(scope, config.generators);

	var cliArguments = Array.prototype.slice.call(arguments);
	
	// Remove commander's extra argument
	cliArguments.pop();
	
	// Peel off the generatorType and the rest of the args
	scope.generatorType = cliArguments.shift();
	scope.args = cliArguments;

	return sailsgen( scope );
};

{'fraction_non_alphanumeric': 0.13987058237929317, 'fraction_numerical': 0.0009955201592832255, 'mean_word_length': 3.6206896551724137, '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': '1266054', 'n_tokens_mistral': 671, 'n_tokens_neox': 616, 'n_words': 174}