<commit_before>'use strict';
var generator = require('yeoman-generator'),
    chalk = require('chalk'),
    shelljs = require('shelljs'),
    util = require('util'),
    scriptBase = require('../generator-base');

var ReportGenerator = generator.extend({});

util.inherits(ReportGenerator, scriptBase);

module.exports = ReportGenerator.extend({
    constructor: function () {
        generator.apply(this, arguments);
    },

    initializing: {
        sayHello: function() {
            this.log(chalk.white('Welcome to the JHipster Information Sub-Generator\n'));
        },

        checkJHipster: function () {
            var done = this.async();
            this.log('##### **JHipster Version(s)**');
            shelljs.exec('npm list generator-jhipster', {silent:true}, function (err, stdout, stderr) {
                if (stdout) {
                    this.log('\n```\n' + stdout + '```\n');
                }
                done();
            }.bind(this));
        },

        displayConfiguration: function () {
            var done = this.async();
            var result = shelljs.cat('.yo-rc.json');
            this.log('\n##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**\n' +
                '\n```yaml\n' + result + '\n```\n');
            done();
        },

        displayEntities: function () {
            var done = this.async();
            this.log('\n##### **Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**\n');
            shelljs.ls('.jhipster/*.json').forEach(function(file) {
                this.log(file.split('/')[1]);
                var result = shelljs.cat(file);
                this.log('\n```yaml\n' + result + '\n```\n');
            }.bind(this));
            done();
        },

        checkJava: function () {
            var done = this.async();
            this.log('\n##### **Browsers and Operating System**\n');
            shelljs.exec('java -version', {silent:true}, function (err, stdout, stderr) {
                if (!err) {
                    this.log(stderr);
                }
                done();
            }.bind(this));
        },

        checkGit: function () {
            var done = this.async();
            shelljs.exec('git version', {silent:true}, function (err, stdout, stderr) {
                if (!err) {
                    this.log(stdout);
                }
                done();
            }.bind(this));
        },

        checkNode: function () {
            var done = this.async();
            shelljs.exec('node -v', {silent:true}, function (err, stdout, stderr) {
                if (!err) {
                    this.log('node: ' + stdout);
                }
                done();
            }.bind(this));
        },

        checkNpm: function () {
            var done = this.async();
            shelljs.exec('npm -v', {silent:true}, function (err, stdout, stderr) {
                if (!err) {
                    this.log('npm: ' + stdout);
                }
                done();
            }.bind(this));
        },

        checkBower: function () {
            var done = this.async();
            shelljs.exec('bower -v', {silent:true}, function (err, stdout, stderr) {
                if (!err) {
                    this.log('bower: ' + stdout);
                }
                done();
            }.bind(this));
        },

        checkGulp: function () {
            var done = this.async();
            shelljs.exec('gulp -v', {silent:true}, function (err, stdout, stderr) {
                if (!err) {
                    this.log('gulp:');
                    this.log(stdout);
                }
                done();
            }.bind(this));
        },

        checkYeoman: function () {
            var done = this.async();
            shelljs.exec('yo --version', {silent:true}, function (err, stdout, stderr) {
                if (!err) {
                    this.log('yeoman: ' + stdout);
                }
                done();
            }.bind(this));
        },

        checkYarn: function () {
            var done = this.async();
            shelljs.exec('yarn --version', {silent:true}, function (err, stdout, stderr) {
                if (!err) {
                    this.log('yarn: ' + stdout);
                }
                done();
            }.bind(this));
        },

        checkDocker: function() {
            var done = this.async();
            shelljs.exec('docker -v', {silent:true}, function(err, stdout, stderr) {
                if (!err) {
                    this.log(stdout);
                }
                done();
            }.bind(this));
        },

        checkDockerCompose: function() {
            var done = this.async();
            shelljs.exec('docker-compose -v', {silent:true}, function(err, stdout, stderr) {
                if (!err) {
                    this.log(stdout);
                }
                done();
            }.bind(this));
        }
    }
});<commit_msg>es6 update info<commit_after>'use strict';
const generator = require('yeoman-generator');
const chalk = require('chalk');
const shelljs = require('shelljs');
const util = require('util');
const scriptBase = require('../generator-base');

const ReportGenerator = generator.extend({});

util.inherits(ReportGenerator, scriptBase);

module.exports = ReportGenerator.extend({
    constructor: function () {
        generator.apply(this, arguments);
    },

    initializing: {
        sayHello: function() {
            this.log(chalk.white('Welcome to the JHipster Information Sub-Generator\n'));
        },

        checkJHipster: function () {
            const done = this.async();
            this.log('##### **JHipster Version(s)**');
            shelljs.exec('npm list generator-jhipster', {silent:true}, (err, stdout, stderr) => {
                if (stdout) {
                    this.log('\n```\n' + stdout + '```\n');
                }
                done();
            });
        },

        displayConfiguration: function () {
            const done = this.async();
            const result = shelljs.cat('.yo-rc.json');
            this.log('\n##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**\n' +
                '\n```yaml\n' + result + '\n```\n');
            done();
        },

        displayEntities: function () {
            const done = this.async();
            this.log('\n##### **Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**\n');
            shelljs.ls('.jhipster/*.json').forEach((file) => {
                this.log(file.split('/')[1]);
                const result = shelljs.cat(file);
                this.log('\n```yaml\n' + result + '\n```\n');
            });
            done();
        },

        checkJava: function () {
            const done = this.async();
            this.log('\n##### **Browsers and Operating System**\n');
            shelljs.exec('java -version', {silent:true}, (err, stdout, stderr) => {
                if (!err) {
                    this.log(stderr);
                }
                done();
            });
        },

        checkGit: function () {
            const done = this.async();
            shelljs.exec('git version', {silent:true}, (err, stdout, stderr) => {
                if (!err) {
                    this.log(stdout);
                }
                done();
            });
        },

        checkNode: function () {
            const done = this.async();
            shelljs.exec('node -v', {silent:true}, (err, stdout, stderr) => {
                if (!err) {
                    this.log('node: ' + stdout);
                }
                done();
            });
        },

        checkNpm: function () {
            const done = this.async();
            shelljs.exec('npm -v', {silent:true}, (err, stdout, stderr) => {
                if (!err) {
                    this.log('npm: ' + stdout);
                }
                done();
            });
        },

        checkBower: function () {
            const done = this.async();
            shelljs.exec('bower -v', {silent:true}, (err, stdout, stderr) => {
                if (!err) {
                    this.log('bower: ' + stdout);
                }
                done();
            });
        },

        checkGulp: function () {
            const done = this.async();
            shelljs.exec('gulp -v', {silent:true}, (err, stdout, stderr) => {
                if (!err) {
                    this.log('gulp:');
                    this.log(stdout);
                }
                done();
            });
        },

        checkYeoman: function () {
            const done = this.async();
            shelljs.exec('yo --version', {silent:true}, (err, stdout, stderr) => {
                if (!err) {
                    this.log('yeoman: ' + stdout);
                }
                done();
            });
        },

        checkYarn: function () {
            const done = this.async();
            shelljs.exec('yarn --version', {silent:true}, (err, stdout, stderr) => {
                if (!err) {
                    this.log('yarn: ' + stdout);
                }
                done();
            });
        },

        checkDocker: function() {
            const done = this.async();
            shelljs.exec('docker -v', {silent:true}, (err, stdout, stderr) => {
                if (!err) {
                    this.log(stdout);
                }
                done();
            });
        },

        checkDockerCompose: function() {
            const done = this.async();
            shelljs.exec('docker-compose -v', {silent:true}, (err, stdout, stderr) => {
                if (!err) {
                    this.log(stdout);
                }
                done();
            });
        }
    }
});
{'fraction_non_alphanumeric': 0.16254915801149541, 'fraction_numerical': 0.0003025108399717657, 'mean_word_length': 1.2968967114404817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '5252371', 'n_tokens_mistral': 2821, 'n_tokens_neox': 2649, 'n_words': 551}