<commit_before>'use strict';

const gulp = require('gulp');
const $ = require('gulp-load-plugins')();

const buildPath = 'dist/';

gulp.task('minify', ['babel'], function () {
	return gulp.src(['dist/sjs.js'])
		.pipe($.uglifyjs('sjs.min.js'))
		.pipe(gulp.dest(buildPath));
});

gulp.task('babel', function () {
	return gulp.src(['src/sjs.js'])
		.pipe($.babel({
			presets: ['es2015']
		}))
		.pipe(gulp.dest(buildPath));
});

gulp.task('default', ['watch']);

gulp.task('watch', function () {
	gulp.watch(['src/sjs.js'], ['minify']);
});<commit_msg>added promise preset<commit_after>'use strict';

const gulp = require('gulp');
const $ = require('gulp-load-plugins')();

const buildPath = 'dist/';

gulp.task('minify', ['babel'], function () {
	return gulp.src(['dist/sjs.js'])
		.pipe($.uglifyjs('sjs.min.js'))
		.pipe(gulp.dest(buildPath));
});

gulp.task('babel', function () {
	return gulp.src(['src/sjs.js'])
		.pipe($.babel({
			presets: ['es2015'],
			plugins: ['es6-promise']
		}))
		.pipe(gulp.dest(buildPath));
});

gulp.task('default', ['watch']);

gulp.task('watch', function () {
	gulp.watch(['src/sjs.js'], ['minify']);
});
{'fraction_non_alphanumeric': 0.2675438596491228, 'fraction_numerical': 0.007894736842105263, 'mean_word_length': 4.9119170984455955, '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': '3890311', 'n_tokens_mistral': 475, 'n_tokens_neox': 446, 'n_words': 66}