<commit_before>(function() {

    'use strict';

    var yeoman = require('yeoman-generator'),
        chalk = require('chalk');

    module.exports = yeoman.generators.Base.extend({

        constructor: function () {
            yeoman.generators.Base.apply(this, arguments);
        },

        initTask: function() {
            this.log(chalk.cyan('\t \t  ___           __  __     _    _ '));
            this.log(chalk.cyan('\t \t / __| __ __ _ / _|/ _|___| |__| |'));
            this.log(chalk.cyan('\t \t \\__ \\/ _/ _` |  _|  _/ _ \\ / _` |'));
            this.log(chalk.cyan('\t \t |___/\\__\\__,_|_| |_| \\___/_\\__,_| \n'));
            this.log(chalk.cyan('\t \t [        Generating Build       ] \n \n'));
            this.log(chalk.green('Wait until build finish. I will create a zip file with all contents of your project.\n'));
            this.log(chalk.green('At the end of the process choose which type of version you are generating. \n \n'));
        },

        buildTask: function() {
            this.spawnCommand('grunt', ['build']);
        }

    });

})();<commit_msg>Include a beautiful bump version<commit_after>(function() {

    'use strict';

    var yeoman = require('yeoman-generator'),
        chalk = require('chalk');

    module.exports = yeoman.generators.Base.extend({

        constructor: function () {
            yeoman.generators.Base.apply(this, arguments);
        },

        initializing: function() {
            var done = this.async();

            this.log(chalk.cyan('\t \t  ___           __  __     _    _ '));
            this.log(chalk.cyan('\t \t / __| __ __ _ / _|/ _|___| |__| |'));
            this.log(chalk.cyan('\t \t \\__ \\/ _/ _` |  _|  _/ _ \\ / _` |'));
            this.log(chalk.cyan('\t \t |___/\\__\\__,_|_| |_| \\___/_\\__,_| \n'));
            this.log(chalk.cyan('\t \t [        Generating Build       ] \n \n'));
            this.log(chalk.green('Wait until build finish. I will create a zip file with all contents of your project.\n'));
            this.log(chalk.green('At the end of the process choose which type of version you are generating. \n \n'));

            this.spawnCommand('grunt', ['build']).on('exit', done);
        },

        prompting: function() {
            var cb = this.async(),
                prompts = [{
                    type: 'confirm',
                    name: 'hasVersion',
                    message: 'This will increase a version of your project?',
                    default: 0
                }, {
                    type: 'list',
                    name: 'versionType',
                    message: 'What kind of version?',
                    choices: ['Just a fix (Ex: 0.0.1)', 'Minor Version (Ex: 0.1.0)', 'Major Version (Ex: 1.0.0)', 'Pre-release (Ex: 1.0.0-1)'],
                    default: 0,
                    when: function (answers) {
                        return answers.hasVersion;
                    }
                }];

            this.log('\n \n');

            this.prompt(prompts, function(props) {
                for(var item in props) {
                    this[item] = props[item];
                }

                this.log(chalk.yellow(' \n Perfect! \n \n'));

                cb();
            }.bind(this));
        },

        writing: function() {
            if (this.hasVersion) {
                var done = this.async(),
                    version = 'patch';

                if (this.versionType === 'Minor Version (Ex: 0.1.0)') {
                    version = 'minor';
                } else if (this.versionType === 'Major Version (Ex: 1.0.0)') {
                    version = 'major';
                } else if (this.versionType === 'Pre-release (Ex: 1.0.0-1)') {
                    version = 'prerelease';
                }

                this.spawnCommand('grunt', ['bump:' + version]).on('exit', done);
            }
        },

        end: function() {
            this.log(chalk.yellow('\n \n All done! Everything looks fine. Good job! \n \n'));
        }

    });

})();
{'fraction_non_alphanumeric': 0.1639506172839506, 'fraction_numerical': 0.006172839506172839, 'mean_word_length': 1.3871538008249853, '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': '890736', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1187, 'n_words': 262}