<commit_before>/* ================================================== */
/* Require
/* ================================================== */
var gulp       = require('gulp'),
	watch      = require('gulp-watch'),
	lr         = require('tiny-lr'),
	server     = lr();

/* ================================================== */
/* Task
/* ================================================== */
gulp.task('watch', function(){
	server.listen(35729, function(err){
		if(err){
			return console.log(err);
		}

		watch({glob: GLOBAL.dist_dir + 'css/scss/**/*.scss'}, function(){
			gulp.start('compass');
		});

		watch({glob: GLOBAL.dist_dir + 'images/icons/sprite/*.png'}, function(){
			gulp.start('sprite');
		});

		watch({glob: GLOBAL.dist_dir + 'js/app/*.js'}, function(){
			gulp.start('browserify');
		});
	});
});<commit_msg>Updated watch to use var<commit_after>/* ================================================== */
/* Require
/* ================================================== */
var gulp       = require('gulp'),
	watch      = require('gulp-watch'),
	lr         = require('tiny-lr'),
	server     = lr();

/* ================================================== */
/* Task
/* ================================================== */
gulp.task('watch', function(){

	var compass    = function(){gulp.start('compass')},
	    browserify = function(){gulp.start('browserify')},
	    sprite     = function(){gulp.start('sprite')};

	server.listen(35729, function(err){
		if(err){
			return console.log(err);
		}

		// Run Compass on SCSS file changes
		watch({
			glob: GLOBAL.dist_dir + 'css/scss/**/*.scss'
		}, compass);

		// Run Browserify on JS file changes
		watch({
			glob: GLOBAL.dist_dir + 'js/**/*.js'
		}, browserify);

		// Run Sprites on image updates
		watch({
			glob: GLOBAL.dist_dir + 'images/icons/sprite/*.png'
		}, sprite);
	});
});
{'fraction_non_alphanumeric': 0.38843868179362506, 'fraction_numerical': 0.005402485143165856, 'mean_word_length': 4.018970189701897, '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': '5788985', 'n_tokens_mistral': 610, 'n_tokens_neox': 545, 'n_words': 96}