<commit_before>import coveralls from 'gulp-coveralls';
import eslint from 'gulp-eslint';
import glob from 'glob';
import gulp from 'gulp';
import istanbul from 'gulp-istanbul';
import mkdirp from 'mkdirp';
import mocha from 'gulp-mocha';
import path from 'path';

const isparta = require('isparta');

gulp.task('lint', () => {
	return gulp
		.src(['service/**/*.js', 'tests/**/*.js', 'gulpfile.babel.js'])
		.pipe(eslint())
		.pipe(eslint.format())
		.pipe(eslint.failAfterError());
});

gulp.task('cover', () => {
	return gulp
		.src(['service/**/*.js'])
		.pipe(istanbul({
			instrumenter: isparta.Instrumenter
			includeUntested: true
		}))
		.pipe(istanbul.hookRequire());
});

gulp.task('ensure-dist-directory', done => {
	mkdirp(path.join(__dirname, 'web/dist'), done);
});

gulp.task('ensure-log-directory', done => {
	mkdirp(path.join(__dirname, 'logs'), done);
});

gulp.task('ensure-dynamo-tables', done => {
	if (process.env.NODE_ENV === 'system-test') {
		return done();
	}
<commit_msg>Fixing syntax error in gulpfile.babel.js.<commit_after>import coveralls from 'gulp-coveralls';
import eslint from 'gulp-eslint';
import glob from 'glob';
import gulp from 'gulp';
import istanbul from 'gulp-istanbul';
import mkdirp from 'mkdirp';
import mocha from 'gulp-mocha';
import path from 'path';

const isparta = require('isparta');

gulp.task('lint', () => {
	return gulp
		.src(['service/**/*.js', 'tests/**/*.js', 'gulpfile.babel.js'])
		.pipe(eslint())
		.pipe(eslint.format())
		.pipe(eslint.failAfterError());
});

gulp.task('cover', () => {
	return gulp
		.src(['service/**/*.js'])
		.pipe(istanbul({
			instrumenter: isparta.Instrumenter,
			includeUntested: true
		}))
		.pipe(istanbul.hookRequire());
});

gulp.task('ensure-dist-directory', done => {
	mkdirp(path.join(__dirname, 'web/dist'), done);
});

gulp.task('ensure-log-directory', done => {
	mkdirp(path.join(__dirname, 'logs'), done);
});

gulp.task('ensure-dynamo-tables', done => {
	if (process.env.NODE_ENV === 'system-test') {
		return done();
	}

{'fraction_non_alphanumeric': 0.20938271604938272, 'fraction_numerical': 0.0, 'mean_word_length': 4.788571428571428, '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': '869870', 'n_tokens_mistral': 782, 'n_tokens_neox': 742, 'n_words': 146}