<commit_before>'use strict';

const foregroundColor = '#A1B0B8';
const borderColor = '#252525';
const oceanicColors = require('./colorschemes/oceanic.js');
const defaultColors = require('./colorschemes/regular.js');

exports.decorateConfig = config => {
	let colors;
	if (config.materialshell && config.materialshell.theme === 'oceanic') {
		colors = oceanicColors;
	} else {
		colors = defaultColors;
	}
	const backgroundColor = colors.background;
	return Object.assign({}, config, {
		cursorColor: colors.red,
		cursorShape: 'UNDERLINE',
		foregroundColor,
		backgroundColor,
		borderColor,
		css: `${config.css || ''}
		.tab_tab:before {border-left: 1px solid;}
		.tab_active {background: rgba(255,255,255,0.05);}
		.tab_active:before {border-color: ${colors.red};}
		`,
		colors: colors.palette
	});
};<commit_msg>:hammer: Refactor index.js<commit_after>'use strict';

const foregroundColor = '#A1B0B8';
const borderColor = '#252525';
const oceanicColors = require('./colorschemes/oceanic.js');
const defaultColors = require('./colorschemes/regular.js');

const getColorScheme = cfg => {
	if (cfg.materialshell) {
		switch (cfg.materialshell.theme) {
			case 'oceanic': return oceanicColors;
			case 'dark': return defaultColors;
			default: return defaultColors;
		}
	}
};

exports.decorateConfig = config => {
	const colors = getColorScheme(config);
	const backgroundColor = colors.background;
	return Object.assign({}, config, {
		cursorColor: colors.palette.red,
		cursorShape: 'UNDERLINE',
		foregroundColor,
		backgroundColor,
		borderColor,
		css: `${config.css || ''}
		.tab_tab:before {border-left: 1px solid;}
		.tab_active {background: rgba(255,255,255,0.05);}
		.tab_active:before {border-color: ${colors.palette.red};}
		`,
		colors: colors.palette
	});
};
{'fraction_non_alphanumeric': 0.1551043429216018, 'fraction_numerical': 0.024816694867456288, 'mean_word_length': 5.034013605442177, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4831362', 'n_tokens_mistral': 646, 'n_tokens_neox': 595, 'n_words': 120}