<commit_before>UI.once('init', function(){
	var colors = [
			  'CC3300'
			, '0033CC'
			, '33CC00'
	];
		
	function colorDispensor(colors){
		var map = {}
		  , index = 0;
		
		return {
			/* Returns a color in form of '#xxxxxx' where x is a hex digit for the
			provided string.  The color returned for each string is memoed and won't
			change*/
			colorFor: function(str){
				if(map[str] == undefined){
					map[str] = index;
					index = (index + 1) % colors.length;
				}
				return "#" + colors[map[str]];
			}
		}
	}

	var colorDispensors = {};	
	function getDispensor(context){
		if(!colorDispensors[context]){
			colorDispensors[context] = new colorDispensor(colors);
		}
		return colorDispensors[context];
	}
	

	this.Colors = {
		getDispensor: getDispensor,
		
		forUser: function(str){
			return getDispensor('user').colorFor(str);
		}
	};
});

<commit_msg>Added many colors to client-side colorDispensor and made it randomized.<commit_after>UI.once('init', function(){
	var colors = [
		'7D2252'
		, '800517'
		, '7E3817'
		, 'C36241'
		, 'AF7817'
		, 'A0C544'
		, '827839'
		, '348017'
		, '254117'
		, '736AFF'
		, '717D7D'
		, '566D7E'
		, '461B7E'
		, 'D16587'
		, 'B048B5'
		, '8D38C9'
		, '153E7E'
		, '151B8D'
		, '25383C'
		, 'F62817'
		, 'F87431'
		, 'F76541'
	];
		
	function colorDispensor(colors){
		var map = {}
		  , index = 0;
		
		return {
			/* Returns a color in form of '#xxxxxx' where x is a hex digit for the
			provided string.  The color returned for each string is memoed and won't
			change*/
			colorFor: function(str){
				if(map[str] == undefined){
					map[str] = index;
					index = (index + 1) % colors.length;
				}
				return "#" + colors[map[str]];
			}
		}
	}

	var colorDispensors = {};	
	function getDispensor(context){
		if(!colorDispensors[context]){
			var randomized = colors.sort(function() {return 0.5 - Math.random()});
			colorDispensors[context] = new colorDispensor(randomized);
		}
		return colorDispensors[context];
	}
	

	this.Colors = {
		getDispensor: getDispensor,
		
		forUser: function(str){
			return getDispensor('user').colorFor(str);
		}
	};
});


{'fraction_non_alphanumeric': 0.15127238454288408, 'fraction_numerical': 0.05702167766258247, 'mean_word_length': 3.082692307692308, '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': '4494611', 'n_tokens_mistral': 1024, 'n_tokens_neox': 812, 'n_words': 176}