<commit_before>var pkg = require('./package.json');

var gulp = require('gulp');

var clean = require('gulp-clean');
var concat = require('gulp-concat');
var preprocess = require('gulp-preprocess');
var jshint = require('gulp-jshint');
var uglify = require('gulp-uglify');

gulp.task('clean-development', function () {
	gulp.src(pkg.buildFile)
		.pipe(clean({ force: true }));
});

gulp.task('clean-production', function () {
	gulp.src(pkg.buildFileMin)
		.pipe(clean({ force: true }));
});

gulp.task('clean', ['clean-development', 'clean-production']);

var preprocessContext = {
	REVISION: pkg.revision,
	DEBUG: pkg.debug,
	AUTHOR: pkg.author,
	LICENSE: pkg.license,
};

gulp.task('build-development', ['clean-development'], function () {
	gulp.src(pkg.mainModule)
		.pipe(concat( pkg.buildFile ))
		.pipe(preprocess({ context: preprocessContext }))
		.pipe(jshint())
		.pipe(gulp.dest('./'));
});

gulp.task('build-production', ['clean-production'], function () {
	gulp.src(pkg.mainModule)
		.pipe(concat( pkg.buildFileMin ))
		.pipe(preprocess({ context: preprocessContext }))
		.pipe(jshint())
		.pipe(uglify({ preserveComments: 'some' }))
		.pipe(gulp.dest('./'));
});

gulp.task('default', ['build-development', 'build-production']);
<commit_msg>"dragndrop_file_upload": "distclean" task for gulp<commit_after>var pkg = require('./package.json');

var gulp = require('gulp');

var clean = require('gulp-clean');
var concat = require('gulp-concat');
var preprocess = require('gulp-preprocess');
var jshint = require('gulp-jshint');
var uglify = require('gulp-uglify');

gulp.task('clean-development', function () {
	gulp.src(pkg.buildFile).pipe(clean({ force: true }));
});

gulp.task('clean-production', function () {
	gulp.src(pkg.buildFileMin).pipe(clean({ force: true }));
});

gulp.task('clean', ['clean-development', 'clean-production']);

gulp.task('distclean', function () {
	gulp.src('./gulp').pipe(clean({ force: true }));
	gulp.src('./node_modules').pipe(clean({ force: true }));
});

var preprocessContext = {
	REVISION: pkg.revision,
	DEBUG: pkg.debug,
	AUTHOR: pkg.author,
	LICENSE: pkg.license,
};

gulp.task('build-development', ['clean-development'], function () {
	gulp.src(pkg.mainModule)
		.pipe(concat( pkg.buildFile ))
		.pipe(preprocess({ context: preprocessContext }))
		.pipe(jshint())
		.pipe(gulp.dest('./'));
});

gulp.task('build-production', ['clean-production'], function () {
	gulp.src(pkg.mainModule)
		.pipe(concat( pkg.buildFileMin ))
		.pipe(preprocess({ context: preprocessContext }))
		.pipe(jshint())
		.pipe(uglify({ preserveComments: 'some' }))
		.pipe(gulp.dest('./'));
});

gulp.task('default', ['build-development', 'build-production']);

{'fraction_non_alphanumeric': 0.2149497954629974, 'fraction_numerical': 0.0, 'mean_word_length': 5.435406698564593, 'pattern_counts': {'":': 1, '<': 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': '2742687', 'n_tokens_mistral': 982, 'n_tokens_neox': 941, 'n_words': 158}