<commit_before>var requireDir = require('require-dir');
var asciify = require('asciify');
var gulp = require('gulp');
var async = require('async');
var Table = require('cli-table');
var BuildTaskDoc = require('./build/BuildTaskDoc');

//Init colors
require('./build/COLORS');

//We retrieve the build-tasks
var buildTasksMap = requireDir('./build');

gulp.task('default', function (finishTask) {
    async.series([
            printWelcomeMessage,
            pringBanner,
            printTasksHelpTable
        ],
        finishTask
    );

    /*** Local functions ***/

    function printWelcomeMessage(done) {
        console.log("Welcome to MailOnline's new".info);
        done(null);
    }

    function pringBanner(done) {
        asciify('HTML5  Video Player', function (err, res) {
            console.log(res.help);
            done(null);
        });
    }

    function printTasksHelpTable(done) {
        var table = new Table({
            head: ['Name', 'Description'],
            colWidths: [25, 80],
            chars: { 'top': '═' , 'top-mid': '╤' , 'top-left': '╔' , 'top-right': '╗'
                , 'bottom': '═' , 'bottom-mid': '╧' , 'bottom-left': '╚' , 'bottom-right': '╝'
                , 'left': '║' , 'left-mid': '╟' , 'mid': '─' , 'mid-mid': '┼'
                , 'right': '║' , 'right-mid': '╢' , 'middle': '│' }
        });

        var buildTasks = getBuildTasks(buildTasksMap);

        buildTasks.forEach(function (task) {
            table.push([task.name, task.description]);
        });

        console.log('###### Below, you have the list of all the available build tasks ########');
        console.log(table.toString());
        //console.log('   ');
        //console.log("NOTE: if a task is run with '--env production' it will execute the build task for production. Minifying scritps and so on".blue);
        console.log('   ');
        done(null);
    }

    function getBuildTasks(tasksDir) {
        var tasks = [];
        Object.keys(tasksDir).forEach(function (taskName) {
            var task = tasksDir[taskName];
            if(task instanceof BuildTaskDoc){
                tasks.push(task);
            }
        });


        return tasks.sort(function compare(a, b) {
            if (a.order < b.order) {
                return -1;
            }
            if (a.order > b.order) {
                return 1;
            }
            // a must be equal to b
            return 0;
        });
    }

});<commit_msg>Fixed name of the project on gulp default task<commit_after>var requireDir = require('require-dir');
var asciify = require('asciify');
var gulp = require('gulp');
var async = require('async');
var Table = require('cli-table');
var BuildTaskDoc = require('./build/BuildTaskDoc');

//Init colors
require('./build/COLORS');

//We retrieve the build-tasks
var buildTasksMap = requireDir('./build');

gulp.task('default', function (finishTask) {
    async.series([
            printWelcomeMessage,
            pringBanner,
            printTasksHelpTable
        ],
        finishTask
    );

    /*** Local functions ***/

    function printWelcomeMessage(done) {
        console.log("Welcome to MailOnline's new".info);
        done(null);
    }

    function pringBanner(done) {
        asciify('Videojs Vast Vpaid', function (err, res) {
            console.log(res.help);
            done(null);
        });
    }

    function printTasksHelpTable(done) {
        var table = new Table({
            head: ['Name', 'Description'],
            colWidths: [25, 80],
            chars: { 'top': '═' , 'top-mid': '╤' , 'top-left': '╔' , 'top-right': '╗'
                , 'bottom': '═' , 'bottom-mid': '╧' , 'bottom-left': '╚' , 'bottom-right': '╝'
                , 'left': '║' , 'left-mid': '╟' , 'mid': '─' , 'mid-mid': '┼'
                , 'right': '║' , 'right-mid': '╢' , 'middle': '│' }
        });

        var buildTasks = getBuildTasks(buildTasksMap);

        buildTasks.forEach(function (task) {
            table.push([task.name, task.description]);
        });

        console.log('###### Below, you have the list of all the available build tasks ########');
        console.log(table.toString());
        //console.log('   ');
        //console.log("NOTE: if a task is run with '--env production' it will execute the build task for production. Minifying scritps and so on".blue);
        console.log('   ');
        done(null);
    }

    function getBuildTasks(tasksDir) {
        var tasks = [];
        Object.keys(tasksDir).forEach(function (taskName) {
            var task = tasksDir[taskName];
            if(task instanceof BuildTaskDoc){
                tasks.push(task);
            }
        });


        return tasks.sort(function compare(a, b) {
            if (a.order < b.order) {
                return -1;
            }
            if (a.order > b.order) {
                return 1;
            }
            // a must be equal to b
            return 0;
        });
    }

});
{'fraction_non_alphanumeric': 0.1653290529695024, 'fraction_numerical': 0.003009630818619583, 'mean_word_length': 1.9152046783625731, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5949776', 'n_tokens_mistral': 1527, 'n_tokens_neox': 1468, 'n_words': 364}