<commit_before>'use strict';

var g = require('gulp');
var r = require('gulp-rename');
var t = require('gulp-typescript');
var u = require('gulp-uglify');

var dist_dir = 'dist';
var dist_min_ext = '.min.js';
var dist_name = 'mist.js';
var name = 'modules/mist.ts';

g.task('declare',

    function() {

        // initialize.

        var m = g.dest(dist_dir);

        g.src(name).pipe(t({

            declaration: true,
            out: dist_name

        })).dts.pipe(m);
    });

g.task('default',

    function() {

        // initialize.

        var m = g.dest(dist_dir);
        var n = g.dest(dist_dir);

        g.src(name).pipe(t({

            noImplicitAny: true,
            out: dist_name,
            target: 'ES5'

        })).pipe(n).pipe(u({

            // uglify response.
            preserveComments: 'license'

        })).pipe(r({

            // rename response.
            extname: dist_min_ext

        })).pipe(m);
    });
<commit_msg>refactor<commit_after>'use strict';

var g = require('gulp');
var r = require('gulp-rename');
var t = require('gulp-typescript');
var u = require('gulp-uglify');

//

var dist_dir = 'dist';
var dist_min_ext = '.min.js';
var dist_name = 'mist.js';
var name = 'modules/mist.ts';

//

g.task('declare',

    function() {

        var m = g.dest(dist_dir);

        // generate.

        g.src(name).pipe(t({

            declaration: true,
            out: dist_name

        })).dts.pipe(m);
    });

g.task('default',

    function() {

        var m = g.dest(dist_dir);
        var n = g.dest(dist_dir);

        // generate.

        g.src(name).pipe(t({

            noImplicitAny: true,
            out: dist_name,
            target: 'ES5'

        })).pipe(n).pipe(u({

            // uglify response.

            preserveComments: 'license'

        })).pipe(r({

            // rename response.

            extname: dist_min_ext

        })).pipe(m);
    });

{'fraction_non_alphanumeric': 0.17054263565891473, 'fraction_numerical': 0.0010335917312661498, 'mean_word_length': 1.7152875175315567, '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': '6361557', 'n_tokens_mistral': 686, 'n_tokens_neox': 645, 'n_words': 130}