<commit_before>var
	env        	= require('minimist')(process.argv.slice(2)),
	gulp       	= require('gulp'),
	uglify     	= require('gulp-uglify'),
	concat     	= require('gulp-concat'),
	gulpif     	= require('gulp-if'),
	connect    	= require('gulp-connect'),
	modRewrite 	= require('connect-modrewrite'),
	imagemin   	= require('gulp-imagemin'),
	include     = require("gulp-include"),
	del 				= require('del'),
	less				= require('gulp-less'),
	LessPluginCleanCSS = require('less-plugin-clean-css'),
  LessPluginAutoPrefix = require('less-plugin-autoprefix');


var
	srcDir 		= 'src/',
	buildDir	= 'build/',
	assetsDir = buildDir + 'assets/',
	cleancss = new LessPluginCleanCSS({
		advanced: true
	}),
	autoprefix = new LessPluginAutoPrefix({
		browsers: ["last 2 versions"]
	});

gulp.task('less', function(){
		return gulp.src(srcDir + 'less/main.less')
			.pipe(less({
			    plugins: [autoprefix, cleancss]
			  }))
		  .pipe(gulp.dest(assetsDir + 'css'))
			.pipe(connect.reload());
	});

gulp.task('js', function(){
	return gulp.src(srcDir + 'js/**/*.js')
		.pipe(concat('main.js'))
		.pipe(include())
			.on('error', console.log)
		.pipe(gulpif(env.p, uglify()))
		.pipe(gulp.dest(assetsDir + 'js/'))
		.pipe(connect.reload());<commit_msg>fixed less compiling gulp halt on less error<commit_after>var
	env        	= require('minimist')(process.argv.slice(2)),
	gulp       	= require('gulp'),
	uglify     	= require('gulp-uglify'),
	concat     	= require('gulp-concat'),
	gulpif     	= require('gulp-if'),
	connect    	= require('gulp-connect'),
	modRewrite 	= require('connect-modrewrite'),
	imagemin   	= require('gulp-imagemin'),
	include     = require("gulp-include"),
	del 				= require('del'),
	less				= require('gulp-less'),
	LessPluginCleanCSS = require('less-plugin-clean-css'),
  LessPluginAutoPrefix = require('less-plugin-autoprefix');


var
	srcDir 		= 'src/',
	buildDir	= 'build/',
	assetsDir = buildDir + 'assets/',
	cleancss = new LessPluginCleanCSS({
		advanced: true
	}),
	autoprefix = new LessPluginAutoPrefix({
		browsers: ["last 2 versions"]
	});

gulp.task('less', function(){
		return gulp.src(srcDir + 'less/main.less')
			.pipe(less({
			    plugins: [autoprefix, cleancss]
			  }))
			.on('error', function(error){
			  console.log(error.toString());
			  this.emit('end');
			})
		  .pipe(gulp.dest(assetsDir + 'css'))
			.pipe(connect.reload());
	});

gulp.task('js', function(){
	return gulp.src(srcDir + 'js/**/*.js')
		.pipe(concat('main.js'))
		.pipe(include())
			.on('error', console.log)
		.pipe(gulpif(env.p, uglify()))
		.pipe(gulp.dest(assetsDir + 'js/'))
		.pipe(connect.reload());
{'fraction_non_alphanumeric': 0.19559437903532093, 'fraction_numerical': 0.0015191796429927839, 'mean_word_length': 3.7289048473967683, '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': '4278496', 'n_tokens_mistral': 1048, 'n_tokens_neox': 972, 'n_words': 156}