<commit_before>/**
 * for local development/debugging
 */
var bs = require('browser-sync').create();
var gulp = require('gulp');
require('./gulpfile');

bs.init({
	open: false,
	server: {
		baseDir: "./www",
		middleware: [
			function(req, res, next) {
				res.setHeader('Access-Control-Expose-Headers', 'Accept-Ranges, Content-Encoding, Content-Length, Content-Range');
				next();
			},
			function(req, res, next) {
				res.setHeader('Access-Control-Allow-Origin', 'example.com');
				res.setHeader('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
				res.setHeader('Access-Control-Allow-Headers', 'Content-Type');

				next();
			}]
	}
});

var from = 'www/**/';

bs.watch(from + '*.html').on('change', bs.reload);
bs.watch(from + '*.less').on('change', function() {
	gulp.start('less'); //not a public gulp API, but works, be aware of when updating gulp
});
bs.watch(from + '*.css').on('change', bs.reload);
bs.watch(from + '*.js').on('change', bs.reload);<commit_msg>ignore jspm packages(saves ton of performance) and really, we don't want to do that anyway<commit_after>/**
 * for local development/debugging
 */
var bs = require('browser-sync').create();
var gulp = require('gulp');
require('./gulpfile');

var watchOptions = {
    ignored: 'www/jspm_packages/**/*.*',
    ignoreInitial: true
};
bs.init({
	open: false,
    watchOptions: watchOptions,
	server: {
		baseDir: "./www",
		middleware: [
			function(req, res, next) {
				res.setHeader('Access-Control-Expose-Headers', 'Accept-Ranges, Content-Encoding, Content-Length, Content-Range');
				next();
			},
			function(req, res, next) {
				res.setHeader('Access-Control-Allow-Origin', 'example.com');
				res.setHeader('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
				res.setHeader('Access-Control-Allow-Headers', 'Content-Type');

				next();
			}]
	}
});

var from = 'www/**/';

bs.watch(from + '*.html', watchOptions).on('change', bs.reload);
bs.watch(from + '*.less', watchOptions).on('change', function() {
	gulp.start('less'); //not a public gulp API, but works, be aware of when updating gulp
});
bs.watch(from + '*.css', watchOptions).on('change', bs.reload);
bs.watch(from + '*.js', watchOptions).on('change', bs.reload);
{'fraction_non_alphanumeric': 0.20803249097472923, 'fraction_numerical': 0.0, 'mean_word_length': 4.303827751196172, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, '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': '7333785', 'n_tokens_mistral': 805, 'n_tokens_neox': 738, 'n_words': 157}