<commit_before>'use strict'
const babel = require('gulp-babel')
const babelCompiler = require('babel-core')
const del = require('del')
const gulp = require('gulp')
const eslint = require('gulp-eslint')
const istanbul = require('gulp-istanbul')
const mocha = require('gulp-mocha')

const configFiles = './gulpfile.js'
    , srcFiles = 'src/*.js'
    , testFiles = 'test/*.js'

    , destDir = './lib/'

gulp.task('clean', () => del(destDir))

gulp.task('lint', ['clean'], () => gulp.src([configFiles, srcFiles, testFiles])
  .pipe(eslint())
  .pipe(eslint.failOnError()))

gulp.task('compile', ['lint'], () => gulp.src(srcFiles)
  .pipe(babel())
  .pipe(gulp.dest(destDir)))

gulp.task('build', ['compile'])

gulp.task('test', ['build'], cb => {
  gulp.src([`${destDir}*.js`])
    .pipe(istanbul())
    .pipe(istanbul.hookRequire())
    .on('finish', () => {<commit_msg>chore(gulpfile): remove useless compile task<commit_after>'use strict'
const babel = require('gulp-babel')
const babelCompiler = require('babel-core')
const del = require('del')
const gulp = require('gulp')
const eslint = require('gulp-eslint')
const istanbul = require('gulp-istanbul')
const mocha = require('gulp-mocha')

const configFiles = './gulpfile.js'
    , srcFiles = 'src/*.js'
    , testFiles = 'test/*.js'

    , destDir = './lib/'

gulp.task('clean', () => del(destDir))

gulp.task('lint', ['clean'], () => gulp.src([configFiles, srcFiles, testFiles])
  .pipe(eslint())
  .pipe(eslint.failOnError()))

gulp.task('build', ['lint'], () => gulp.src(srcFiles)
  .pipe(babel())
  .pipe(gulp.dest(destDir)))

gulp.task('test', ['build'], cb => {
  gulp.src([`${destDir}*.js`])
    .pipe(istanbul())
    .pipe(istanbul.hookRequire())
    .on('finish', () => {
{'fraction_non_alphanumeric': 0.22895040369088812, 'fraction_numerical': 0.0, 'mean_word_length': 4.614886731391586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '4385002', 'n_tokens_mistral': 643, 'n_tokens_neox': 632, 'n_words': 112}