<commit_before>var src = ['src/**', 'sw/**'];
var deployDir = 'docs';

var gulp = require('gulp');
var clean = require('gulp-clean');
var concat = require('gulp-concat');
var jshint = require('gulp-jshint');
var uglify = require('gulp-uglify');
var babel = require('gulp-babel');
var inject = require('gulp-inject');
var minifyHtml = require('gulp-minify-html');

gulp.task('default', ['clean', 'lint', 'index']);

gulp.task('clean', function () {
  return gulp.src(deployDir)
      .pipe(clean());
});

gulp.task('lint', function () {
  return gulp.src(src.map(function (path) {
    return path + '/*.js';
  }))
      .pipe(jshint({
        eqeqeq: true,
        esversion: 6,
        eqnull: true
      }))
      .pipe(jshint.reporter('jshint-stylish'))
      .pipe(jshint.reporter('fail'));
});

gulp.task('serve', function () {
  var browserSync = require('browser-sync');
  browserSync({
    server: {
      baseDir: './src/'
    },
    notify: false
  });
  gulp.watch(['./src/*'], browserSync.reload);
});

gulp.task('scripts', ['clean'], function () {
  return gulp.src(src.map(function (path) {
    return path + '/*.js';
  }))
      .pipe(babel({
        presets: ['es2015']
      }))
      .pipe(concat('all.min.js'))
      .pipe(uglify())
      .pipe(gulp.dest(deployDir));
});

gulp.task('index', function () {
  var target = gulp.src('src/index.html');
  var sources = gulp.src(['src/**/*.js', 'src/**/*.css']);

  return target.pipe(inject(sources))
      .pipe(gulp.dest('src'));
});

gulp.task('build-index', ['scripts'], function () {
  var target = gulp.src('src/index.html');
  var sources = gulp.src([deployDir + '/all.min.js']);

  return target.pipe(inject(sources))
      .pipe(minifyHtml())
      .pipe(gulp.dest(deployDir));
});<commit_msg>Organize order of tasks. Rename some for consistency<commit_after>var src = ['src/**', 'sw/**'];
var deployDir = 'docs';

var gulp = require('gulp');
var clean = require('gulp-clean');
var concat = require('gulp-concat');
var jshint = require('gulp-jshint');
var uglify = require('gulp-uglify');
var babel = require('gulp-babel');
var inject = require('gulp-inject');
var minifyHtml = require('gulp-minify-html');
var browserSync = require('browser-sync');

gulp.task('default', ['clean', 'lint', 'html']);

gulp.task('clean', function () {
  return gulp.src(deployDir)
      .pipe(clean());
});

gulp.task('lint', function () {
  return gulp.src(src.map(function (path) {
    return path + '/*.js';
  }))
      .pipe(jshint({
        eqeqeq: true,
        esversion: 6,
        eqnull: true
      }))
      .pipe(jshint.reporter('jshint-stylish'))
      .pipe(jshint.reporter('fail'));
});

gulp.task('html', function () {
  var target = gulp.src('src/index.html');
  var sources = gulp.src(['src/**/*.js', 'src/**/*.css']);

  return target.pipe(inject(sources))
      .pipe(gulp.dest('src'));
});

gulp.task('build-js', ['clean'], function () {
  return gulp.src(src.map(function (path) {
    return path + '/*.js';
  }))
      .pipe(babel({
        presets: ['es2015']
      }))
      .pipe(concat('all.min.js'))
      .pipe(uglify())
      .pipe(gulp.dest(deployDir));
});

gulp.task('build-html', ['build-js'], function () {
  var target = gulp.src('src/index.html');
  var sources = gulp.src([deployDir + '/all.min.js']);

  return target.pipe(inject(sources))
      .pipe(minifyHtml())
      .pipe(gulp.dest(deployDir));
});

gulp.task('serve', function () {
  browserSync({
    server: {
      baseDir: './src/'
    },
    notify: false
  });
  gulp.watch(['./src/*'], browserSync.reload);
});
{'fraction_non_alphanumeric': 0.22561659192825112, 'fraction_numerical': 0.002802690582959641, 'mean_word_length': 3.357753357753358, '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': '5657467', 'n_tokens_mistral': 1298, 'n_tokens_neox': 1267, 'n_words': 229}