<commit_before>var gulp = require('gulp');
var minifyCSS = require('gulp-csso');
var compileSass = require('gulp-sass');
var minifyJS = require('gulp-minify');
var minifyHTML = require('gulp-htmlmin');
var webServer = require('gulp-server-livereload');
const watch = require("gulp-watch");


/////////////////////////////
// SOURCES
/////////////////////////////

gulp.task('sass', function () {
    return gulp.src('./app/source/scss/**/*.scss')
        .pipe(compileSass.sync().on('error', compileSass.logError))
        .pipe(minifyCSS())
        .pipe(gulp.dest('./app/build/css'));
});

gulp.task('compressJS', function() {
    return gulp.src('./app/source/js/**/*.js')
        .pipe(minifyJS())
        .pipe(gulp.dest('./app/build/js'))
});

gulp.task('minifyHTML', function() {
    return gulp.src('./app/source/**/*.html')
        .pipe(minifyHTML({collapseWhitespace: true}))
        .pipe(gulp.dest('./app/build/'));
});
gulp.task('static', function() {
    return gulp.src('./app/source/static/**/*')
        .pipe(gulp.dest('./app/build/static'));
});


/////////////////////////////
// WATCHES
/////////////////////////////

gulp.task('compressJSWatch', function() {
    return watch('./app/source/js/**/*.js')
        .pipe(minifyJS())
        .pipe(gulp.dest('./app/build/js'))
});

gulp.task('minifyHTMLWatch', function() {
    return watch('./app/source/**/*.html')
        .pipe(minifyHTML({collapseWhitespace: true}))
        .pipe(gulp.dest('./app/build/'));
});
gulp.task('sassWatch', function () {
    gulp.watch('./source/scss/**/*.scss', ['sass']);
});
gulp.task('static', function() {
    return watch('./app/source/static/**/*')
        .pipe(gulp.dest('./app/build/static'));
});
/////////////////////////////
// SERVER
/////////////////////////////

gulp.task('createServer', function() {
    gulp.src('./app/build')
        .pipe(webServer({
            livereload: true,
            open: true,
            port: 8000,
            log: 'debug'
        }));
});

gulp.task('default', ['sassWatch', 'sass', 'static',
    'compressJSWatch', 'minifyHTMLWatch',
    'compressJS', 'minifyHTML',
    'createServer']);
<commit_msg>ReadyLast<commit_after>var gulp = require('gulp');
var minifyCSS = require('gulp-csso');
var compileSass = require('gulp-sass');
var minifyJS = require('gulp-minify');
var minifyHTML = require('gulp-htmlmin');
var webServer = require('gulp-server-livereload');
const watch = require("gulp-watch");


/////////////////////////////
// SOURCES
/////////////////////////////

gulp.task('sass', function () {
    return gulp.src('./app/source/**/*.scss')
        .pipe(compileSass.sync().on('error', compileSass.logError))
        .pipe(minifyCSS())
        .pipe(gulp.dest('./app/build/'));
});

gulp.task('compressJS', function() {
    return gulp.src('./app/source/**/*.js')
        .pipe(minifyJS())
        .pipe(gulp.dest('./app/build/'))
});

gulp.task('minifyHTML', function() {
    return gulp.src('./app/source/**/*.html')
        .pipe(minifyHTML({collapseWhitespace: true}))
        .pipe(gulp.dest('./app/build/'));
});
gulp.task('static', function() {
    return gulp.src('./app/source/static/**/*')
        .pipe(gulp.dest('./app/build/static'));
});


/////////////////////////////
// WATCHES
/////////////////////////////

gulp.task('compressJSWatch', function() {
    return watch('./app/source/**/*.js')
        .pipe(minifyJS())
        .pipe(gulp.dest('./app/build/'))
});

gulp.task('minifyHTMLWatch', function() {
    return watch('./app/source/**/*.html')
        .pipe(minifyHTML({collapseWhitespace: true}))
        .pipe(gulp.dest('./app/build/'));
});
gulp.task('sassWatch', function () {
    gulp.watch('./source/**/*.scss', ['sass']);
});
gulp.task('static', function() {
    return watch('./app/source/static/**/*')
        .pipe(gulp.dest('./app/build/static'));
});
/////////////////////////////
// SERVER
/////////////////////////////

gulp.task('createServer', function() {
    gulp.src('./app/build')
        .pipe(webServer({
            livereload: true,
            open: true,
            port: 8000,
            log: 'debug'
        }));
});

gulp.task('default', ['sassWatch', 'sass', 'static',
    'compressJSWatch', 'minifyHTMLWatch',
    'compressJS', 'minifyHTML',
    'createServer']);

{'fraction_non_alphanumeric': 0.2974550548680831, 'fraction_numerical': 0.0018678496381041327, 'mean_word_length': 2.2234762979683973, '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': '1293582', 'n_tokens_mistral': 1385, 'n_tokens_neox': 1362, 'n_words': 186}