<commit_before>'use strict';

var chalk = require('chalk');
var LETS_GET_STARTED = 'npm start';
var doneMessage = function(generator) {
    var SPACE = ' ';
    function yes(str) {return chalk.green.bold('✔ ') + chalk.white.bold(str);}
    function no(str) {return chalk.gray.bold('✗ ' + str);}
    var cssPreprocessor;
    if (generator.useSass) {
        cssPreprocessor = chalk.magenta.bold('Sass');
    } else if (generator.useLess) {
        cssPreprocessor = chalk.blue.bold('Less');
    } else {
        cssPreprocessor = chalk.gray.bold('none');
    }
    var message = '' +
        '\nApplication Name:  ' + chalk.inverse.bold(SPACE + generator.projectName + SPACE) +
        '\nScript Bundler:    ' + chalk[generator.useBrowserify ? 'yellow' : 'red'].bold(generator.useBrowserify ? 'Browserify' : 'r.js') +
        '\nCSS pre-processor: ' + cssPreprocessor +
        '\nTemplate renderer: ' + chalk[generator.useHandlebars ? 'yellow' : 'blue'].bold(generator.useHandlebars ? 'Handlebars' : 'Underscore') +
        '\n' +
        '\n' + (generator.config.get('useBenchmark') ? yes : no)('Install benchmarks.js support') +
        '\n' + (generator.config.get('useCoveralls') ? yes : no)('Integrate Coveralls.io support') +
        '\n' + (generator.config.get('useJsinspect') ? yes : no)('Find duplicate code with JSInspect') +
        '\n' + (generator.useAria ? yes : no)('Perform accessibility audit on HTML code') +
        '\n' + (generator.useImagemin ? yes : no)('Compress production images with imagemin') +
        '\n' +
        '\n' + chalk.green.bold('All done!') +
        '\n' + chalk.white('Try out your shiny new app by running ') + chalk.bgBlack.white(SPACE + LETS_GET_STARTED + SPACE) +
        '\n';
    return message;
};

module.exports = doneMessage;
<commit_msg>Cleared complexity lint warnings in webapp done message<commit_after>'use strict';

var _     = require('lodash');
var chalk = require('chalk');

module.exports = function(generator) {
    var SPACE = ' ';
    var LETS_GET_STARTED = 'npm start';
    var config = generator.config;
    var cssPreprocessor = chalk.magenta.bold(_.capitalize(generator.cssPreprocessor));
    var message = '' +
        '\nApplication Name:  ' + chalk.inverse.bold(SPACE + generator.projectName + SPACE) +
        '\nScript Bundler:    ' + chalk[generator.useBrowserify ? 'yellow' : 'red'].bold(generator.useBrowserify ? 'Browserify' : 'r.js') +
        '\nCSS pre-processor: ' + cssPreprocessor +
        '\nTemplate renderer: ' + chalk[generator.useHandlebars ? 'yellow' : 'blue'].bold(generator.useHandlebars ? 'Handlebars' : 'Underscore') +
        '\n' +
        '\n' + convertToYesNoFunction(config.get('useBenchmark'))('Install benchmarks.js support') +
        '\n' + convertToYesNoFunction(config.get('useCoveralls'))('Integrate Coveralls.io support') +
        '\n' + convertToYesNoFunction(config.get('useJsinspect'))('Find duplicate code with JSInspect') +
        '\n' + convertToYesNoFunction(generator.useAria)('Perform accessibility audit on HTML code') +
        '\n' + convertToYesNoFunction(generator.useImagemin)('Compress production images with imagemin') +
        '\n' +
        '\n' + chalk.green.bold('All done!') +
        '\n' + chalk.white('Try out your shiny new app by running ') + chalk.bgBlack.white(SPACE + LETS_GET_STARTED + SPACE) +
        '\n';
    return message;
};

function yes(str) {return chalk.green.bold('✔ ') + chalk.white.bold(str);}
function no(str) {return chalk.gray.bold('✗ ' + str);}
function convertToYesNoFunction(val) {return (_.isBoolean(val) && val) ? yes : no;}

{'fraction_non_alphanumeric': 0.16170331199554688, 'fraction_numerical': 0.0, 'mean_word_length': 3.4206642066420665, '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': '2341263', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1130, 'n_words': 237}