<commit_before>'use strict'

// ===================================================================

var gulp = require('gulp')

var babel = require('gulp-babel')
var coffee = require('gulp-coffee')
var plumber = require('gulp-plumber')
var sourceMaps = require('gulp-sourcemaps')
var watch = require('gulp-watch')

// ===================================================================

var SRC_DIR = __dirname + '/src'
var DIST_DIR = __dirname + '/dist'

var PRODUCTION = process.argv.indexOf('--production') !== -1

// ===================================================================

function src (patterns) {
  return PRODUCTION ?
    gulp.src(patterns, {
      base: SRC_DIR,
      cwd: SRC_DIR
    }) :
    watch(patterns, {
      base: SRC_DIR,
      cwd: SRC_DIR,
      ignoreInitial: false,
      verbose: true
    })
      .pipe(plumber())
}

// ===================================================================

gulp.task(function buildCoffee () {
  return src('**/*.coffee')
    .pipe(sourceMaps.init())
    .pipe(coffee({
      bare: true
    }))
    .pipe(sourceMaps.write('.'))
    .pipe(gulp.dest(DIST_DIR))
})

gulp.task(function buildEs6 () {
  return src('**/*.js')
    .pipe(sourceMaps.init())
    .pipe(babel({
      compact: true,
      comments: false,
      optional: [
        'runtime'
      ]
    }))
    .pipe(sourceMaps.write('.'))
    .pipe(gulp.dest(DIST_DIR))
})<commit_msg>Do not compact the dev build.<commit_after>'use strict'

// ===================================================================

var gulp = require('gulp')

var babel = require('gulp-babel')
var coffee = require('gulp-coffee')
var plumber = require('gulp-plumber')
var sourceMaps = require('gulp-sourcemaps')
var watch = require('gulp-watch')

// ===================================================================

var SRC_DIR = __dirname + '/src'
var DIST_DIR = __dirname + '/dist'

var PRODUCTION = process.argv.indexOf('--production') !== -1

// ===================================================================

function src (patterns) {
  return PRODUCTION ?
    gulp.src(patterns, {
      base: SRC_DIR,
      cwd: SRC_DIR
    }) :
    watch(patterns, {
      base: SRC_DIR,
      cwd: SRC_DIR,
      ignoreInitial: false,
      verbose: true
    })
      .pipe(plumber())
}

// ===================================================================

gulp.task(function buildCoffee () {
  return src('**/*.coffee')
    .pipe(sourceMaps.init())
    .pipe(coffee({
      bare: true
    }))
    .pipe(sourceMaps.write('.'))
    .pipe(gulp.dest(DIST_DIR))
})

gulp.task(function buildEs6 () {
  return src('**/*.js')
    .pipe(sourceMaps.init())
    .pipe(babel({
      compact: PRODUCTION,
      comments: false,
      optional: [
        'runtime'
      ]
    }))
    .pipe(sourceMaps.write('.'))
    .pipe(gulp.dest(DIST_DIR))
})
{'fraction_non_alphanumeric': 0.32993675333801825, 'fraction_numerical': 0.0014054813773717498, 'mean_word_length': 3.54066985645933, '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': '7165330', 'n_tokens_mistral': 922, 'n_tokens_neox': 860, 'n_words': 157}