<commit_before>/**
 * Run predefined tasks whenever watched file patterns are added, changed or deleted.
 *
 * ---------------------------------------------------------------
 *
 * Watch for changes on
 * - files in the `assets` folder
 * - the `tasks/pipeline.js` file
 * and re-run the appropriate tasks.
 *
 * For usage docs see:
 * 		https://github.com/gruntjs/grunt-contrib-watch
 *
 */
module.exports = function(gulp, plugins) {
	gulp.task('watch', function() {
		// Watch Style files
		gulp.watch(['assets/styles/**/*.less', 'assets/styles/**/*.css'], ['styles', 'linker']);
		// Watch JS files
		gulp.watch('assets/js/**/*.js', ['scripts']);
		// Watch image files
		gulp.watch('assets/images/**/*', ['images']);
		// Create LiveReload server
		var server = plugins.livereload();
		// Watch any files in dist/, reload on change
		gulp.watch(['assets/**/**']).on('change', function(file) {
			server.changed(file.path);
		});

	});
};<commit_msg>Update watch.js<commit_after>/**
 * Run predefined tasks whenever watched file patterns are added, changed or deleted.
 *
 * ---------------------------------------------------------------
 *
 * Watch for changes on
 * - files in the `assets` folder
 * - the `tasks/pipeline.js` file
 * and re-run the appropriate tasks.
 *
 * For usage docs see:
 * 		https://github.com/gruntjs/grunt-contrib-watch
 *
 */
module.exports = function(gulp, plugins) {
	var server = plugins.livereload();
	gulp.task('watch:api', function() {
		// Watch Style files
		return gulp.watch('api/**/*', ['compileAssets', 'images', 'linkAssets'])
				.on('change', function(file) {
					server.changed(file.path);
				});
	});
	
	gulp.task('watch:assets', function() {
		// Watch assets
		return gulp.watch(['assets/**/*', 'tasks/pipeline.js'], ['compileAssets', 'images', 'linkAssets'])
				.on('change', function(file) {
					server.changed(file.path);
				});
	});

};
{'fraction_non_alphanumeric': 0.24459673168160254, 'fraction_numerical': 0.0, 'mean_word_length': 2.6570327552986512, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5085887', 'n_tokens_mistral': 614, 'n_tokens_neox': 567, 'n_words': 142}