<commit_before>var path = require('path');
module.exports = function (config) {
	config.set({
		basePath: '',
		frameworks: ['jasmine'],
		files: ['test/*_test.js'],
		exclude: ['karma.conf.js'],
		port: 9876,
		colors: true,
		logLevel: config.LOG_INFO,
		autoWatch: true,
		browsers: ['Chrome'],
		captureTimeout: 60000,
		singleRun: false,
		reporters: ['progress', 'coverage'],
		preprocessors: {
			'test/*_test.js': ['webpack']
		},
		webpack: {
			devtool: 'eval',
			output: {
				pathinfo: true
			},
			eslint: {
				configFile: '.eslintrc',
				emitWarning: true,
				emitError: true,
				formatter: require('eslint-friendly-formatter')
			},
			module: {
				loaders:[{
					test:/\.js$/,
					loader:'babel',
					query:{
						presets:['es2015']
					},
					exclude:[
						path.resolve( __dirname, '/test' ), path.resolve( __dirname, '/node_modules' )
					]
				}]
			}

		},
		// optionally, configure the reporter
		coverageReporter: {
			reporters: [
				// generates ./coverage/lcov.info
				{type: 'lcovonly', subdir: '.'},
				// generates ./coverage/coverage-final.json
				{type: 'json', subdir: '.'}
			]
		},
		singleRun: true,
		concurrency: Infinity
	});
};
<commit_msg>修改karma borowsers<commit_after>var path = require('path');
module.exports = function (config) {
	config.set({
		basePath: '',
		frameworks: ['jasmine'],
		files: ['test/*_test.js'],
		exclude: ['karma.conf.js'],
		port: 9876,
		colors: true,
		logLevel: config.LOG_INFO,
		autoWatch: true,
		browsers: ['PhantomJS'],
		captureTimeout: 60000,
		singleRun: false,
		reporters: ['progress', 'coverage'],
		preprocessors: {
			'test/*_test.js': ['webpack']
		},
		webpack: {
			devtool: 'eval',
			output: {
				pathinfo: true
			},
			eslint: {
				configFile: '.eslintrc',
				emitWarning: true,
				emitError: true,
				formatter: require('eslint-friendly-formatter')
			},
			module: {
				loaders:[{
					test:/\.js$/,
					loader:'babel',
					query:{
						presets:['es2015']
					},
					exclude:[
						path.resolve( __dirname, '/test' ), path.resolve( __dirname, '/node_modules' )
					]
				}]
			}

		},
		// optionally, configure the reporter
		coverageReporter: {
			reporters: [
				// generates ./coverage/lcov.info
				{type: 'lcovonly', subdir: '.'},
				// generates ./coverage/coverage-final.json
				{type: 'json', subdir: '.'}
			]
		},
		singleRun: true,
		concurrency: Infinity
	});
};

{'fraction_non_alphanumeric': 0.18045738045738047, 'fraction_numerical': 0.010810810810810811, 'mean_word_length': 2.8681672025723475, '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': '5234992', 'n_tokens_mistral': 1115, 'n_tokens_neox': 852, 'n_words': 165}