<commit_before>// Karma configuration
// Generated on Tue Sep 01 2015 13:54:51 GMT+0200 (CEST)

var webpackConfig = require('./js/webpack.dev.config.js');

webpackConfig.entry = './js/tests/noop_init.js';
webpackConfig.module.rules.push({
	test: /\.js$/,
	exclude: /init\.js/
});

module.exports = function (config) {
	config.set({
		// frameworks to use
		// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
		frameworks: ['jasmine-ajax', 'jasmine', 'sinon'],

		files: [
			{pattern: 'node_modules/jquery/dist/jquery.js', included: true},
			{pattern: 'node_modules/underscore/underscore.js', included: true},
			{pattern: 'js/tests/test-main.js', included: true},
			// all files ending in "_test"
			{pattern: 'js/tests/*_spec.js', watched: false},
			{pattern: 'js/tests/**/*_spec.js', watched: false},
			{pattern: 'js/build/build.js', included: true}
		],

		// list of files to exclude
		exclude: [
			'js/webpack.*.js',
			'js/init.js'
		],
		// preprocess matching files before serving them to the browser
		// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
		preprocessors: {
			'js/**[!vendor]/*[!spec].js': ['coverage'],
			// add webpack as preprocessor
			'js/tests/*_spec.js': ['webpack'],
			'js/tests/**/*_spec.js': ['webpack']
		},<commit_msg>Fix js tests by excluding build artefacts<commit_after>// Karma configuration
// Generated on Tue Sep 01 2015 13:54:51 GMT+0200 (CEST)

var webpackConfig = require('./js/webpack.dev.config.js');

webpackConfig.entry = './js/tests/noop_init.js';
webpackConfig.module.rules.push({
	test: /\.js$/,
	exclude: /init\.js/
});

module.exports = function (config) {
	config.set({
		// frameworks to use
		// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
		frameworks: ['jasmine-ajax', 'jasmine', 'sinon'],

		files: [
			{pattern: 'node_modules/jquery/dist/jquery.js', included: true},
			{pattern: 'node_modules/underscore/underscore.js', included: true},
			{pattern: 'js/tests/test-main.js', included: true},
			// all files ending in "_test"
			{pattern: 'js/tests/*_spec.js', watched: false},
			{pattern: 'js/tests/**/*_spec.js', watched: false},
			{pattern: 'js/build/build.js', included: false}
		],

		// list of files to exclude
		exclude: [
			'js/webpack.*.js',
			'js/init.js'
		],
		// preprocess matching files before serving them to the browser
		// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
		preprocessors: {
			'js/**[!vendor]/*[!spec].js': ['coverage'],
			// add webpack as preprocessor
			'js/tests/*_spec.js': ['webpack'],
			'js/tests/**/*_spec.js': ['webpack']
		},
{'fraction_non_alphanumeric': 0.18846588767433095, 'fraction_numerical': 0.01206181681115718, 'mean_word_length': 3.6807760141093473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4762174', 'n_tokens_mistral': 1042, 'n_tokens_neox': 893, 'n_words': 200}