<commit_before>var	gulp = require('gulp'),
	plugins = require("gulp-load-plugins")(),
	paths = {}

/* Error Handler -------------------------------- */

var catchError = function(err) {

	console.log(err.toString());
	this.emit('end');

}

/* View ----------------------------------------- */

paths.view = {
	js: [
		'bower_components/jQuery/dist/jquery.min.js',
		'bower_components/js-md5/js/md5.min.js',
		'bower_components/mousetrap/mousetrap.min.js',
		'bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.min.js',
		'../src/scripts/_frameworks.js',
		'../src/scripts/view/main.js'
	],
	coffee: [
		'../src/scripts/build.coffee'
	],
	scripts: [
		'../dist/_view--javascript.js',
		'../dist/_view--coffee.js'
	]
}

gulp.task('view--js', function() {

	return	gulp.src(paths.view.js)
				.pipe(plugins.concat('_view--javascript.js', {newLine: "\n"}))
				.pipe(gulp.dest('../dist/'));

});

gulp.task('view--coffee', function() {

	return	gulp.src(paths.view.coffee)
				.pipe(plugins.coffee({bare: true}))
				.on('error', catchError)
				.pipe(plugins.concat('_view--coffee.js', {newLine: "\n"}))
				.pipe(gulp.dest('../dist/'));

});

gulp.task('view--scripts', ['view--js', 'view--coffee'], function() {

	return	gulp.src(paths.view.scripts)
				.pipe(plugins.concat('view.js', {newLine: "\n"}))
				.pipe(plugins.uglify())
				.on('error', catchError)
				.pipe(gulp.dest('../dist/'));

});

/* Main ----------------------------------------- */

paths.main = {
	js: [
		'bower_components/jQuery/dist/jquery.min.js',
		'bower_components/js-md5/js/md5.min.js',
		'bower_components/mousetrap/mousetrap.min.js',
		'bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.min.js',
		'../src/scripts/*.js'
	],
	coffee: [
		'../src/scripts/*.coffee'
	],
	scripts: [
		'../dist/_main--javascript.js',
		'../dist/_main--coffee.js'
	],
	styles: [
		'../src/styles/main.scss'
	]
}

gulp.task('main--js', function() {

	return	gulp.src(paths.main.js)
				.pipe(plugins.concat('_main--javascript.js', {newLine: "\n"}))
				.pipe(gulp.dest('../dist/'));

});

gulp.task('main--coffee', function() {

	return	gulp.src(paths.main.coffee)
				.pipe(plugins.coffee({bare: true}))
				.on('error', catchError)
				.pipe(plugins.concat('_main--coffee.js', {newLine: "\n"}))
				.pipe(gulp.dest('../dist/'));

});

gulp.task('main--scripts', ['main--js', 'main--coffee'], function() {

	return	gulp.src(paths.main.scripts)
				.pipe(plugins.concat('main.js', {newLine: "\n"}))
				.pipe(plugins.uglify())
				.on('error', catchError)
				.pipe(gulp.dest('../dist/'));

});

gulp.task('main--styles', function() {

	return	gulp.src(paths.main.styles)
				.pipe(plugins.sass())
				.on('error', catchError)
				.pipe(plugins.concat('main.css', {newLine: "\n"}))
				.pipe(plugins.autoprefixer('last 4 versions', '> 5%'))
				.pipe(plugins.minifyCss())
				.pipe(gulp.dest('../dist/'));

});

/* Clean ----------------------------------------- */

gulp.task('clean', function() {

	return	gulp.src('../dist/_*.*', { read: false })
				.pipe(plugins.rimraf({ force: true }))
				.on('error', catchError);

});

/* Tasks ----------------------------------------- */

gulp.task('default', ['view--scripts', 'main--scripts', 'main--styles', 'clean']);

gulp.task('watch', ['default'], function() {

	gulp.watch(paths.view.js,		['view--scripts', 'clean']);
	gulp.watch(paths.view.coffee,	['view--scripts', 'clean']);

	gulp.watch(paths.main.js,		['main--scripts', 'clean']);
	gulp.watch(paths.main.coffee,	['main--scripts', 'clean']);
	gulp.watch(paths.main.styles,	['main--styles', 'clean']);<commit_msg>Fixed scss watch<commit_after>var	gulp = require('gulp'),
	plugins = require("gulp-load-plugins")(),
	paths = {}

/* Error Handler -------------------------------- */

var catchError = function(err) {

	console.log(err.toString());
	this.emit('end');

}

/* View ----------------------------------------- */

paths.view = {
	js: [
		'bower_components/jQuery/dist/jquery.min.js',
		'bower_components/js-md5/js/md5.min.js',
		'bower_components/mousetrap/mousetrap.min.js',
		'bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.min.js',
		'../src/scripts/_frameworks.js',
		'../src/scripts/view/main.js'
	],
	coffee: [
		'../src/scripts/build.coffee'
	],
	scripts: [
		'../dist/_view--javascript.js',
		'../dist/_view--coffee.js'
	]
}

gulp.task('view--js', function() {

	return	gulp.src(paths.view.js)
				.pipe(plugins.concat('_view--javascript.js', {newLine: "\n"}))
				.pipe(gulp.dest('../dist/'));

});

gulp.task('view--coffee', function() {

	return	gulp.src(paths.view.coffee)
				.pipe(plugins.coffee({bare: true}))
				.on('error', catchError)
				.pipe(plugins.concat('_view--coffee.js', {newLine: "\n"}))
				.pipe(gulp.dest('../dist/'));

});

gulp.task('view--scripts', ['view--js', 'view--coffee'], function() {

	return	gulp.src(paths.view.scripts)
				.pipe(plugins.concat('view.js', {newLine: "\n"}))
				.pipe(plugins.uglify())
				.on('error', catchError)
				.pipe(gulp.dest('../dist/'));

});

/* Main ----------------------------------------- */

paths.main = {
	js: [
		'bower_components/jQuery/dist/jquery.min.js',
		'bower_components/js-md5/js/md5.min.js',
		'bower_components/mousetrap/mousetrap.min.js',
		'bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.min.js',
		'../src/scripts/*.js'
	],
	coffee: [
		'../src/scripts/*.coffee'
	],
	scripts: [
		'../dist/_main--javascript.js',
		'../dist/_main--coffee.js'
	],
	scss: [
		'../src/styles/*.scss'
	],
	styles: [
		'../src/styles/main.scss'
	]
}

gulp.task('main--js', function() {

	return	gulp.src(paths.main.js)
				.pipe(plugins.concat('_main--javascript.js', {newLine: "\n"}))
				.pipe(gulp.dest('../dist/'));

});

gulp.task('main--coffee', function() {

	return	gulp.src(paths.main.coffee)
				.pipe(plugins.coffee({bare: true}))
				.on('error', catchError)
				.pipe(plugins.concat('_main--coffee.js', {newLine: "\n"}))
				.pipe(gulp.dest('../dist/'));

});

gulp.task('main--scripts', ['main--js', 'main--coffee'], function() {

	return	gulp.src(paths.main.scripts)
				.pipe(plugins.concat('main.js', {newLine: "\n"}))
				.pipe(plugins.uglify())
				.on('error', catchError)
				.pipe(gulp.dest('../dist/'));

});

gulp.task('main--styles', function() {

	return	gulp.src(paths.main.styles)
				.pipe(plugins.sass())
				.on('error', catchError)
				.pipe(plugins.concat('main.css', {newLine: "\n"}))
				.pipe(plugins.autoprefixer('last 4 versions', '> 5%'))
				.pipe(plugins.minifyCss())
				.pipe(gulp.dest('../dist/'));

});

/* Clean ----------------------------------------- */

gulp.task('clean', function() {

	return	gulp.src('../dist/_*.*', { read: false })
				.pipe(plugins.rimraf({ force: true }))
				.on('error', catchError);

});

/* Tasks ----------------------------------------- */

gulp.task('default', ['view--scripts', 'main--scripts', 'main--styles', 'clean']);

gulp.task('watch', ['default'], function() {

	gulp.watch(paths.view.js,		['view--scripts', 'clean']);
	gulp.watch(paths.view.coffee,	['view--scripts', 'clean']);

	gulp.watch(paths.main.js,		['main--scripts', 'clean']);
	gulp.watch(paths.main.coffee,	['main--scripts', 'clean']);
	gulp.watch(paths.main.scss,		['main--styles', 'clean']);
{'fraction_non_alphanumeric': 0.2933975240715268, 'fraction_numerical': 0.0016506189821182944, 'mean_word_length': 2.7634575569358177, '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': '6151559', 'n_tokens_mistral': 3018, 'n_tokens_neox': 2746, 'n_words': 323}