<commit_before>'use strict';

var concat = require('gulp-concat'),
	uglify = require('gulp-uglify'),
	less = require('gulp-less'),
	gulpif = require('gulp-if'),
	gutil = require('gulp-util'),
	path = require('path'),
	config = require('./package.json'),
	gulp = require('gulp');

exports.gulpTaskFactory = function(gulpTask, options) {
	return gulp.task(gulpTask, function () {
		var isJs = gulpTask.endsWith('.js'),
			isCss = !isJs;

		if (isJs) {
			try {
				return gulp.src(options.files[gulpTask])
					.pipe(
						gulpif(
							options.concat !== undefined && options.concat.active && isJs,
							concat(gulpTask)
						)
					)
					.pipe(
						gulpif(
							options.uglify !== undefined && options.uglify.active && isJs,
							uglify(options.uglify.config)
						)
					)<commit_msg>Fixing formatting and syntax issues bithound found.<commit_after>'use strict';

var concat = require('gulp-concat'),
	uglify = require('gulp-uglify'),
	less = require('gulp-less'),
	gulpif = require('gulp-if'),
	gutil = require('gulp-util'),
	path = require('path'),
	config = require('./package.json'),
	gulp = require('gulp'),
	PluginError = gutil.PluginError;

exports.gulpTaskFactory = function(gulpTask, options) {
	return gulp.task(gulpTask, function () {
		var isJs = gulpTask.endsWith('.js'),
			isCss = !isJs;

		if (isJs) {
			try {
				return gulp.src(options.files[gulpTask])
					.pipe(
						gulpif(
							options.concat !== undefined && options.concat.active && isJs,
							concat(gulpTask)
						)
					)
					.pipe(
						gulpif(
							options.uglify !== undefined && options.uglify.active && isJs,
							uglify(options.uglify.config)
						)
					)
{'fraction_non_alphanumeric': 0.1618705035971223, 'fraction_numerical': 0.0, 'mean_word_length': 3.141439205955335, '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': '305785', 'n_tokens_mistral': 728, 'n_tokens_neox': 585, 'n_words': 106}