<commit_before>var batch = require('gulp-batch');
var browsersync = require('browser-sync');
var cleanCSS = require('gulp-clean-css');
var gulp = require('gulp');
var less = require('gulp-less');
var lessplugin_autoprefix = require('less-plugin-autoprefix');
var plumber = require('gulp-plumber');
var sourcemaps = require('gulp-sourcemaps');
var watch = require('gulp-watch');
var yargs = require('yargs');

var argv = yargs.argv;
var autoprefix = new lessplugin_autoprefix({ browsers: ['last 1 version', '> 0.5%'] });
var browsersync_instance = browsersync.create();

gulp.task('less', function(done) {
	return gulp.src('./less/*.less')
		.pipe(plumber({
			errorHandler: function (err) {
				done(err);
			}
		}))
		.pipe(sourcemaps.init())
		.pipe(less({
			plugins: [autoprefix]
		}))
		//.pipe(cleanCSS())
		.pipe(sourcemaps.write())
		.pipe(gulp.dest('./public/css'));
});

gulp.task('browser-sync', function() {
	browsersync_instance.init({
		server: './',
		ui: false,
		open: argv.open,
		files: './public/**/*',
		startPath: '/public'
	});
});

gulp.task('watch', function() {
	watch('./less/**/*.less', batch(function (events, done) {
		gulp.start('less', done);
	}));
});

gulp.task('build', ['less']);

gulp.task('dev', ['build', 'browser-sync', 'watch']);

gulp.task('default', ['dev']);<commit_msg>Add "import-bootstrap" gulp task.<commit_after>var batch = require('gulp-batch');
var browsersync = require('browser-sync');
var cleanCSS = require('gulp-clean-css');
var gulp = require('gulp');
var less = require('gulp-less');
var lessplugin_autoprefix = require('less-plugin-autoprefix');
var plumber = require('gulp-plumber');
var sourcemaps = require('gulp-sourcemaps');
var watch = require('gulp-watch');
var yargs = require('yargs');

var argv = yargs.argv;
var autoprefix = new lessplugin_autoprefix({ browsers: ['last 1 version', '> 0.5%'] });
var browsersync_instance = browsersync.create();

gulp.task('less', function(done) {
	return gulp.src('./less/*.less')
		.pipe(plumber({
			errorHandler: function (err) {
				done(err);
			}
		}))
		.pipe(sourcemaps.init())
		.pipe(less({
			plugins: [autoprefix]
		}))
		//.pipe(cleanCSS())
		.pipe(sourcemaps.write())
		.pipe(gulp.dest('./public/css'));
});

gulp.task('browser-sync', function() {
	browsersync_instance.init({
		server: './',
		ui: false,
		open: argv.open,
		files: './public/**/*',
		startPath: '/public'
	});
});

gulp.task('watch', function() {
	watch('./less/**/*.less', batch(function (events, done) {
		gulp.start('less', done);
	}));
});
gulp.task('import-bootstrap', function() {
	return gulp.src('./node_modules/bootstrap/less/**/*.less')
		.pipe(gulp.dest('./less/imports/bootstrap'));
});

gulp.task('build', ['less']);

gulp.task('dev', ['build', 'browser-sync', 'watch']);

gulp.task('default', ['dev']);
{'fraction_non_alphanumeric': 0.22832679272208348, 'fraction_numerical': 0.0021405636817695326, 'mean_word_length': 4.817427385892116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2424522', 'n_tokens_mistral': 1042, 'n_tokens_neox': 992, 'n_words': 185}