<commit_before>'use strict';

var gulp = require('gulp');
var gzip = require('gulp-gzip');
var html = require('gulp-htmlmin');
var jade = require('gulp-jade');

gulp.task('copy:css', function() {
  return gulp.src('./bower_components/Slate/dist/css/**/*.min.css')
            .pipe(gulp.dest('./css'));
});

gulp.task('gzip:css', ['copy:css'], function() {
  return gulp.src('./css/**/*.css')
            .pipe(gzip({ level: 9 }))
            .pipe(gulp.dest('./css'));
});

gulp.task('copy:js', function() {
  return gulp.src('./bower_components/Slate/dist/js/**/*.min.js')
            .pipe(gulp.dest('./js'));
});

gulp.task('gzip:js', ['copy:js'], function() {
  return gulp.src('./js/**/*.js')
            .pipe(gzip({ level: 9 }))
            .pipe(gulp.dest('./js'));
});

gulp.task('copy:fonts', function() {
  return gulp.src('./bower_components/Slate/dist/fonts/**/*.woff')
            .pipe(gulp.dest('./fonts'));
});

gulp.task('jade', function() {
  return gulp.src('./**/*.jade')
            .pipe(jade())
            .pipe(gulp.dest('./web'));
});

gulp.task('minify:html', function() {
  return gulp.src('./index.html')
            .pipe(html({
                 removeComments: true,
                 collapseWhitespace: true,
                 collapseBooleanAttributes: true,
                 // lint: true,
                 minifyCSS: {
                    keepSpecialComments: 0
                },
                minifyJS: true
            }))
            .pipe(gulp.dest('./'));
});

gulp.task('gzip:html', ['minify:html'], function() {
  return gulp.src('./index.html')
            .pipe(gzip({ level: 9 }))
            .pipe(gulp.dest('./'));
});

gulp.task('default', ['gzip:css', 'gzip:js', 'copy:fonts', 'gzip:html']);<commit_msg>Switch gulp output directory to web<commit_after>'use strict';

var gulp = require('gulp');
var gzip = require('gulp-gzip');
var html = require('gulp-htmlmin');
var jade = require('gulp-jade');

gulp.task('copy:css', function() {
  return gulp.src('./bower_components/Slate/dist/css/**/*.min.css')
            .pipe(gulp.dest('./web/css'));
});

gulp.task('gzip:css', ['copy:css'], function() {
  return gulp.src('./web/css/**/*.css')
            .pipe(gzip({ level: 9 }))
            .pipe(gulp.dest('./web/css'));
});

gulp.task('copy:js', function() {
  return gulp.src('./bower_components/Slate/dist/js/**/*.min.js')
            .pipe(gulp.dest('./web/js'));
});

gulp.task('gzip:js', ['copy:js'], function() {
  return gulp.src('./web/js/**/*.js')
            .pipe(gzip({ level: 9 }))
            .pipe(gulp.dest('./web/js'));
});

gulp.task('copy:fonts', function() {
  return gulp.src('./bower_components/Slate/dist/fonts/**/*.woff')
            .pipe(gulp.dest('./web/fonts'));
});

gulp.task('jade', function() {
  return gulp.src('./**/*.jade')
            .pipe(jade())
            .pipe(gulp.dest('./web'));
});

gulp.task('minify:html', ['jade'], function() {
  return gulp.src('./web/**/*.html')
            .pipe(html({
                 removeComments: true,
                 collapseWhitespace: true,
                 collapseBooleanAttributes: true,
                 // lint: true,
                 minifyCSS: {
                    keepSpecialComments: 0
                },
                minifyJS: true
            }))
            .pipe(gulp.dest('./web/'));
});

gulp.task('gzip:html', ['minify:html'], function() {
  return gulp.src('./web/**/*.html')
            .pipe(gzip({ level: 9 }))
            .pipe(gulp.dest('./web'));
});

gulp.task('default', ['gzip:css', 'gzip:js', 'copy:fonts', 'gzip:html']);
{'fraction_non_alphanumeric': 0.23737796373779638, 'fraction_numerical': 0.0022315202231520223, 'mean_word_length': 2.2161434977578476, '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': '2788795', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1209, 'n_words': 177}