<commit_before>import gulp from "gulp";
import runSequence from "run-sequence";
import del from "del";
import babel from "gulp-babel";
import ngAnnotate from "gulp-ng-annotate";
import uglify from "gulp-uglify";
import eslint from "gulp-eslint";
import imagemin from "gulp-imagemin";
import pngquant from "imagemin-pngquant";
import mainBowerFiles from "main-bower-files";
import browserSync from "browser-sync";
import gutil from "gulp-util";

const server = browserSync.create("dev-workflow-skeleton");

const dirs = {
    src: "src",
    dest: "dist"
};

const paths = {
    vendor: `${dirs.dest}/vendor`,
    html: "src/**/*.html",
    js: "src/**/*.js",
    css: "src/assets/css/*",
    img: "src/assets/img/*",
    ngNewRouter: `node_modules/angular-new-router/dist/router.es5.js`,
    babelPolyfill: `node_modules/babel-polyfill/dist/polyfill.js`,
    bower: "bower.json"
};

gulp.task("default", callback =>
    runSequence("clean", "build", callback)
);

gulp.task("clean", () =>
    del(`${dirs.dest}/`)
);

gulp.task("dev", ["build", "watch", "serve"]);

gulp.task("build", ["build:app", "build:assets", "build:vendor", "lint"]);

gulp.task("build:app", ["build:app:js", "build:app:html"]);

gulp.task("build:assets", ["build:assets:css", "build:assets:img"]);

gulp.task("build:vendor", ["build:vendor:npm", "build:vendor:bower"]);

gulp.task("watch", () => {
    gulp.watch(paths.html, ["build:app:html"]);
    gulp.watch(paths.js, ["build:app:js"]);
    gulp.watch(paths.css, ["build:assets:css"]);
    gulp.watch(paths.img, ["build:assets:img"]);
    gulp.watch(paths.bower, ["build:vendor:bower"]);
});

gulp.task("build:app:js", () =>
    gulp
    .src(paths.js)
    .pipe(babel({
        presets: ["es2015"]
    }))
    .on("error", handleError)
    .pipe(ngAnnotate())
    .pipe(uglify())
    .pipe(gulp.dest(dirs.dest))
);

gulp.task("build:app:html", () =>
    gulp<commit_msg>gulp dev sequencial + added clean<commit_after>import gulp from "gulp";
import runSequence from "run-sequence";
import del from "del";
import babel from "gulp-babel";
import ngAnnotate from "gulp-ng-annotate";
import uglify from "gulp-uglify";
import eslint from "gulp-eslint";
import imagemin from "gulp-imagemin";
import pngquant from "imagemin-pngquant";
import mainBowerFiles from "main-bower-files";
import browserSync from "browser-sync";
import gutil from "gulp-util";

const server = browserSync.create("dev-workflow-skeleton");

const dirs = {
    src: "src",
    dest: "dist"
};

const paths = {
    vendor: `${dirs.dest}/vendor`,
    html: "src/**/*.html",
    js: "src/**/*.js",
    css: "src/assets/css/*",
    img: "src/assets/img/*",
    ngNewRouter: `node_modules/angular-new-router/dist/router.es5.js`,
    babelPolyfill: `node_modules/babel-polyfill/dist/polyfill.js`,
    bower: "bower.json"
};

gulp.task("default", callback =>
    runSequence("clean", "build", callback)
);

gulp.task("clean", () =>
    del(`${dirs.dest}/`)
);

gulp.task("dev", callback =>
    runSequence("clean","build", "watch", "serve", callback)
);

gulp.task("build", ["build:app", "build:assets", "build:vendor", "lint"]);

gulp.task("build:app", ["build:app:js", "build:app:html"]);

gulp.task("build:assets", ["build:assets:css", "build:assets:img"]);

gulp.task("build:vendor", ["build:vendor:npm", "build:vendor:bower"]);

gulp.task("watch", () => {
    gulp.watch(paths.html, ["build:app:html"]);
    gulp.watch(paths.js, ["build:app:js"]);
    gulp.watch(paths.css, ["build:assets:css"]);
    gulp.watch(paths.img, ["build:assets:img"]);
    gulp.watch(paths.bower, ["build:vendor:bower"]);
});

gulp.task("build:app:js", () =>
    gulp
    .src(paths.js)
    .pipe(babel({
        presets: ["es2015"]
    }))
    .on("error", handleError)
    .pipe(ngAnnotate())
    .pipe(uglify())
    .pipe(gulp.dest(dirs.dest))
);

gulp.task("build:app:html", () =>
    gulp
{'fraction_non_alphanumeric': 0.2162092180217504, 'fraction_numerical': 0.002589331952356292, 'mean_word_length': 4.518571428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '3779771', 'n_tokens_mistral': 1467, 'n_tokens_neox': 1442, 'n_words': 253}