<commit_before>'use strict';

var fs = require( 'fs' );

var getConfig = function( recordPath, isRecording ) {
	var config = {
		directivesPreprocess: {
			"flags" : {
				"js" : {
					"RECORDING" : isRecording
				}
			}
		},
		files : [
			{ pattern: __dirname + '/differs.js', served: true,	included: true,	watched: false },
			{ pattern: __dirname + '/matchers.js', served: true, included: true, watched: false },
			{ pattern: __dirname + '/records.js', served: true, included: true, watched: false },
			{ pattern: recordPath + '**/*.json', served: true, included: true, watched: false }
		],
		jsonFixturesPreprocessor : {
			variableName: "__RECORDS__",
			stripPrefix: recordPath
		},
		jsonLogReporter : {
			"outputPath" : recordPath
		},
		reporters: [ ],
		plugins: [
			"karma-json-fixtures-preprocessor",
			"karma-directives-preprocessor",
			"vui-karma-json-log-reporter"
		],
		preprocessors: { }
	};

	config.preprocessors[__dirname + "/matchers.js"] = ['directives'];
	config.preprocessors[recordPath + "**/*.json"] = ['json_fixtures'];
	if( isRecording == true ) {
		config.reporters.concat('json-log');
	}<commit_msg>Include dependant modules for depending modules.<commit_after>'use strict';

var fs = require( 'fs' );

var getConfig = function( recordPath, isRecording ) {
	var config = {
		directivesPreprocess: {
			"flags" : {
				"js" : {
					"RECORDING" : isRecording
				}
			}
		},
		files : [
			{ pattern: __dirname + '/differs.js', served: true,	included: true,	watched: false },
			{ pattern: __dirname + '/matchers.js', served: true, included: true, watched: false },
			{ pattern: __dirname + '/records.js', served: true, included: true, watched: false },
			{ pattern: recordPath + '**/*.json', served: true, included: true, watched: false }
		],
		jsonFixturesPreprocessor : {
			variableName: "__RECORDS__",
			stripPrefix: recordPath
		},
		jsonLogReporter : {
			"outputPath" : recordPath
		},
		reporters: [ ],
		plugins: [
			require("karma-json-fixtures-preprocessor"),
			require("karma-directives-preprocessor"),
			require("vui-karma-json-log-reporter")
		],
		preprocessors: { }
	};

	config.preprocessors[__dirname + "/matchers.js"] = ['directives'];
	config.preprocessors[recordPath + "**/*.json"] = ['json_fixtures'];
	if( isRecording == true ) {
		config.reporters.concat('json-log');
	}
{'fraction_non_alphanumeric': 0.16780529461998292, 'fraction_numerical': 0.0, 'mean_word_length': 3.791411042944785, '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': '1125667', 'n_tokens_mistral': 894, 'n_tokens_neox': 792, 'n_words': 163}