<commit_before>
var gulp = require("gulp");
var del = require("del");
var sequence = require("gulp-sequence");
var typescript = require("gulp-typescript");
var json = require('gulp-json-editor');

gulp.task("clean:build", function() {
    return del(["build"]);
});

gulp.task("clean:package", function() {
    return del(["package"]);
});

gulp.task("clean", sequence("clean:build", "clean:package"));

gulp.task("build", function () {
    var config = typescript.createProject("./tsconfig.json");

    return gulp
        .src("src/**/*.ts")
        .pipe(config())
        .pipe(gulp.dest("build"));
});

gulp.task("watch", function () {
    gulp.watch("src/**/*.ts", ["build"]);
});

gulp.task("package:copy", function () {
    return gulp.src('build/**/*')
        .pipe(gulp.dest('package'));
});

gulp.task('package:license', function() {
    return gulp.src('./LICENSE')
        .pipe(gulp.dest('package'));
});

gulp.task("package:package.json", function () {
    return gulp.src('package.json')
        .pipe(json({ 'main': 'index.js', 'types': 'index.d.ts' }))
        .pipe(gulp.dest('package'));<commit_msg>Gulp build task performs clean<commit_after>
var gulp = require("gulp");
var del = require("del");
var sequence = require("gulp-sequence");
var typescript = require("gulp-typescript");
var json = require('gulp-json-editor');

gulp.task("clean:build", function() {
    return del(["build"]);
});

gulp.task("clean:package", function() {
    return del(["package"]);
});

gulp.task("clean", sequence("clean:build", "clean:package"));

gulp.task("build", ["clean:build"], function () {
    var config = typescript.createProject("./tsconfig.json");

    return gulp
        .src("src/**/*.ts")
        .pipe(config())
        .pipe(gulp.dest("build"));
});

gulp.task("watch", function () {
    gulp.watch("src/**/*.ts", ["build"]);
});

gulp.task("package:copy", function () {
    return gulp.src('build/**/*')
        .pipe(gulp.dest('package'));
});

gulp.task('package:license', function() {
    return gulp.src('./LICENSE')
        .pipe(gulp.dest('package'));
});

gulp.task("package:package.json", function () {
    return gulp.src('package.json')
        .pipe(json({ 'main': 'index.js', 'types': 'index.d.ts' }))
        .pipe(gulp.dest('package'));
{'fraction_non_alphanumeric': 0.24010554089709762, 'fraction_numerical': 0.0, 'mean_word_length': 3.9456521739130435, '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': '592950', 'n_tokens_mistral': 763, 'n_tokens_neox': 760, 'n_words': 126}