<commit_before>var swig = require('swig');
var r = new swig.Swig({
	locals: {
		src: 'src',
		dest: 'dist',
		test: 'test',
		views: 'views',
		base: process.env.PWD,
		pagename: '{{ pagename }}',
	}
}).render;

var config = {
	render: r,
	port: 8080,
	dest: r('{{ dest }}'),
	pages: ['rooms', 'login', 'reg-room', 'join', 'index'],
	scripts: {
		src: r('{{ src }}/scripts/**/*.js'),
		tpl: r('{{ src }}/{{ views }}/**/*.html'),
		dest: r('{{ dest }}/js'),
	},
	stylus: {
		paths: [r('{{ base }}/{{ src }}/stylus'), r('{{ base }}/bower_components')],
		src: r('{{ src }}/stylus/*.styl'),
		dest: r('{{ dest }}/css'),
	},
	styles: {
		src: r('{{ src }}/styles/*.css'),
		dest: r('{{ dest }}/css'),
		name: 'app.css',
	},
	misc: {
		src: r('{{ src }}/static/**'),
		dest: r('{{ dest }}'),
	},
	test: {
		fixtures: r('{{ test }}/fixtures/**/*.json'),
		unit: [r('{{ test }}/unit/helper.js'), r('{{ test }}/unit/**/*.js')],
		e2e: r('{{ test }}/e2e/**/*.scenario.js'),
	},
	jsdelivr: {
		cssReg: /<!--\s*jsdelivr-css\s*-->/g,
		jsReg: /<!--\s*jsdelivr-js\s*-->/g,
	},

	sass: {
		src: r('{{ src }}/sass/*.{sass,scss}'),
		dest: r('{{ dest }}'),
		settings: {
			// Required if you want to use SASS syntax
			// See https://github.com/dlmanning/gulp-sass/issues/81
			sourceComments: 'map',
			imagePath: '/images', // Used by the image-url helper
		},
	},
	images: {
		src: r("{{ src }}/images/**"),
		dest: r("{{ dest }}/images"),
	},
	browserify: {
		// Enable source maps
		debug: true,
		// Additional file extentions to make optional
		extensions: ['.coffee', '.hbs'],
		// A separate bundle will be generated for each
		// bundle config in the list below
		bundleConfigs: [{
			entries: r('{{ src }}/javascript/app.coffee'),
			dest: r('{{ dest }}'),
			outputName: 'app.js',
		}, {
			entries: r('{{ src }}/javascript/head.coffee'),
			dest: r('{{ dest }}'),
			outputName: 'head.js',
		}],
	}
};

module.exports = config;
<commit_msg>remove browserfy<commit_after>var swig = require('swig');
var r = new swig.Swig({
	locals: {
		src: 'src',
		dest: 'dist',
		test: 'test',
		views: 'views',
		base: process.env.PWD,
		pagename: '{{ pagename }}',
	}
}).render;

var config = {
	render: r,
	port: 8080,
	dest: r('{{ dest }}'),
	pages: ['rooms', 'login', 'reg-room', 'join', 'index'],
	scripts: {
		src: r('{{ src }}/scripts/**/*.js'),
		tpl: r('{{ src }}/{{ views }}/**/*.html'),
		dest: r('{{ dest }}/js'),
	},
	stylus: {
		paths: [r('{{ base }}/{{ src }}/stylus'), r('{{ base }}/bower_components')],
		src: r('{{ src }}/stylus/*.styl'),
		dest: r('{{ dest }}/css'),
	},
	styles: {
		src: r('{{ src }}/styles/*.css'),
		dest: r('{{ dest }}/css'),
		name: 'app.css',
	},
	misc: {
		src: r('{{ src }}/static/**'),
		dest: r('{{ dest }}'),
	},
	test: {
		fixtures: r('{{ test }}/fixtures/**/*.json'),
		unit: [r('{{ test }}/unit/helper.js'), r('{{ test }}/unit/**/*.js')],
		e2e: r('{{ test }}/e2e/**/*.scenario.js'),
	},
	jsdelivr: {
		cssReg: /<!--\s*jsdelivr-css\s*-->/g,
		jsReg: /<!--\s*jsdelivr-js\s*-->/g,
	},

	sass: {
		src: r('{{ src }}/sass/*.{sass,scss}'),
		dest: r('{{ dest }}'),
		settings: {
			// Required if you want to use SASS syntax
			// See https://github.com/dlmanning/gulp-sass/issues/81
			sourceComments: 'map',
			imagePath: '/images', // Used by the image-url helper
		},
	},
	images: {
		src: r("{{ src }}/images/**"),
		dest: r("{{ dest }}/images"),
	},
};

module.exports = config;

{'fraction_non_alphanumeric': 0.29261862917398945, 'fraction_numerical': 0.0046865846514352666, 'mean_word_length': 3.075178997613365, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7410716', 'n_tokens_mistral': 1524, 'n_tokens_neox': 1415, 'n_words': 341}