<commit_before>var gulp = require('gulp');
var del = require('del');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var reactify = require('reactify');

gulp.task('del:dist', function (callback) {
  del(['./dist'], callback);
});

gulp.task('copy:index', function() {
	gulp.src('./src/index.html')
		.pipe(gulp.dest('./dist'));
});

gulp.task('copy:css', function() {
	gulp.src('./src/css/*.*')
		.pipe(gulp.dest('./dist/css'));
});

gulp.task('browserify', function() {
	var bundler = browserify('./src/js/main.js');
	bundler.transform(reactify);

	return bundler.bundle()
		.pipe(source('pogues.js'))
		.pipe(gulp.dest('./dist/js'));
});

gulp.task('build', ['del:dist', 'browserify', 'copy:index', 'copy:css']);

gulp.task('default', ['browserify', 'copy:index']);

gulp.task('watch', function() {<commit_msg>Simple refactor of the del:dist gulp task that was unstable<commit_after>var gulp = require('gulp');
var del = require('del');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var reactify = require('reactify');

gulp.task('del:dist', function (callback) {
  del([
    './dist/index.html',
    './dist/css/**',
    './dist/js/**'
    ],
     callback);
});

gulp.task('copy:index', function() {
	gulp.src('./src/index.html')
		.pipe(gulp.dest('./dist'));
});

gulp.task('copy:css', function() {
	gulp.src('./src/css/*.*')
		.pipe(gulp.dest('./dist/css'));
});

gulp.task('browserify', function() {
	var bundler = browserify('./src/js/main.js');
	bundler.transform(reactify);

	return bundler.bundle()
		.pipe(source('pogues.js'))
		.pipe(gulp.dest('./dist/js'));
});

gulp.task('build', ['del:dist', 'browserify', 'copy:index', 'copy:css']);

gulp.task('default', ['browserify', 'copy:index']);

gulp.task('watch', function() {
{'fraction_non_alphanumeric': 0.25427468284611143, 'fraction_numerical': 0.0, 'mean_word_length': 4.947540983606557, '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': '5278551', 'n_tokens_mistral': 660, 'n_tokens_neox': 649, 'n_words': 108}