<commit_before>let env = process.env.NODE_ENV;

module.exports = function(config) {
	config.set({
		// base path that will be used to resolve all patterns (eg. files, exclude)
		basePath: '',

		// frameworks to use
		// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
		frameworks: ['mocha', 'chai'],

		// list of files / patterns to load in the browser
		files: [
			'./index.js'
		],

		// Process files before serving to browser
		// karma-coverage not registered here because of babel-plugin-istanbul
		preprocessors: {
			'./index.js': ['webpack']
		},
		webpackMiddleware: {
			stats: 'errors-only'
		},
		webpack: require('./webpack.config.js'),

		// Reporters
		reporters: ['mocha', 'coverage'],
		mochaReporter: {
			showDiff: true
		},
		coverageReporter: {
			reporters: [
				{
					type: 'lcovonly',
					dir: './coverage',
					subdir: '.'
				},
				{
					type: 'text'
				}
			]
		},

		// web server port
		protocol: 'http',
		port: 9876,
		httpsServerOptions: {
			// key: fs.readFileSync(resolve(__dirname, './https/server.key'), 'utf8'),
			// cert: fs.readFileSync(resolve(__dirname, './https/server.crt'), 'utf8')
		},

		// enable / disable colors in the output (reporters and logs)
		colors: true,

		// level of logging
		// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
		logLevel: config.LOG_ERROR,

		// enable / disable watching file and executing tests whenever any file changes
		autoWatch: env !== 'ci',

		// start these browsers
		// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
		browsers: ['Chrome'],<commit_msg>Run travis build in Firefox<commit_after>let env = process.env.NODE_ENV;

module.exports = function(config) {
	config.set({
		// base path that will be used to resolve all patterns (eg. files, exclude)
		basePath: '',

		// frameworks to use
		// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
		frameworks: ['mocha', 'chai'],

		// list of files / patterns to load in the browser
		files: [
			'./index.js'
		],

		// Process files before serving to browser
		// karma-coverage not registered here because of babel-plugin-istanbul
		preprocessors: {
			'./index.js': ['webpack']
		},
		webpackMiddleware: {
			stats: 'errors-only'
		},
		webpack: require('./webpack.config.js'),

		// Reporters
		reporters: ['mocha', 'coverage'],
		mochaReporter: {
			showDiff: true
		},
		coverageReporter: {
			reporters: [
				{
					type: 'lcovonly',
					dir: './coverage',
					subdir: '.'
				},
				{
					type: 'text'
				}
			]
		},

		// web server port
		protocol: 'http',
		port: 9876,
		httpsServerOptions: {
			// key: fs.readFileSync(resolve(__dirname, './https/server.key'), 'utf8'),
			// cert: fs.readFileSync(resolve(__dirname, './https/server.crt'), 'utf8')
		},

		// enable / disable colors in the output (reporters and logs)
		colors: true,

		// level of logging
		// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
		logLevel: config.LOG_ERROR,

		// enable / disable watching file and executing tests whenever any file changes
		autoWatch: env !== 'ci',

		// start these browsers
		// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
		browsers: env === 'ci' ? ['Firefox'] : ['Chrome'],
{'fraction_non_alphanumeric': 0.1501917969902626, 'fraction_numerical': 0.0035408675125405725, 'mean_word_length': 3.0309155766944116, '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': '725995', 'n_tokens_mistral': 1298, 'n_tokens_neox': 1084, 'n_words': 284}