<commit_before>var A = require('yui').use('yui-base', 'oop', 'array-extras');
var colors = require('colors');

var argv = require('./argv');

var theme = {
	bgError: 'bgRed',
	bgHelp: 'bgCyan',
	bgSubtle: 'bgGrey',
	bgWarn: 'bgYellow',
	error: 'red',
	help: 'cyan',
	subtle: 'grey',
	warn: 'yellow'
};

colors.setTheme(theme);

if (!argv.color) {
	colors.mode = 'none';
}

var REGEX_SUB = /\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g;

var sub = function(str, obj) {
	var objType = typeof obj;

	if (objType !== 'object' && objType !== 'function') {
		obj = Array.prototype.slice.call(arguments, 1);
	}

	if (str.replace) {
		str = str.replace(<commit_msg>Removing colors.mode, doesn't apply after upgrade<commit_after>var A = require('yui').use('yui-base', 'oop', 'array-extras');
var colors = require('colors');

var theme = {
	bgError: 'bgRed',
	bgHelp: 'bgCyan',
	bgSubtle: 'bgGrey',
	bgWarn: 'bgYellow',
	error: 'red',
	help: 'cyan',
	subtle: 'grey',
	warn: 'yellow'
};

colors.setTheme(theme);

var REGEX_SUB = /\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g;

var sub = function(str, obj) {
	var objType = typeof obj;

	if (objType !== 'object' && objType !== 'function') {
		obj = Array.prototype.slice.call(arguments, 1);
	}

	if (str.replace) {
		str = str.replace(
{'fraction_non_alphanumeric': 0.24247226624405704, 'fraction_numerical': 0.001584786053882726, 'mean_word_length': 4.374468085106383, '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': '6131438', 'n_tokens_mistral': 529, 'n_tokens_neox': 510, 'n_words': 111}