<commit_before>Lizard.Models.GraphItem = Backbone.Model.extend({
    defaults: {
        timeseries: null,
        color: '#ccc'
    },
    initialize: function() {
        this.set({
            'color': colorbrewer.Set3[9][Math.floor(Math.random()*8+1)]
        });
    }
});
<commit_msg>Pick colors from entirety of Colorbrewers spectrum<commit_after>Lizard.Models.GraphItem = Backbone.Model.extend({
    defaults: {
        timeseries: null,
        color: '#ccc' // Grey by default
    },
    initialize: function() {
		
		// Get a random color set from Colorbrewer.js
		var colorSet = colorbrewer[Object.keys(colorbrewer)[Math.floor(Object.keys(colorbrewer).length * Math.random())]];
		
		// Get a random array from colorSet
		var colorArray = colorSet[Object.keys(colorSet)[Math.floor(Object.keys(colorSet).length * Math.random())]];
		
		// Get a random color from colorArray
		var color = colorArray[(Math.floor(Math.random()*colorArray.length-1)+1)];

        this.set({
            'color': color
        });
    }
});

{'fraction_non_alphanumeric': 0.14742967992240544, 'fraction_numerical': 0.005819592628516004, 'mean_word_length': 2.8943396226415095, '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': '2633803', 'n_tokens_mistral': 334, 'n_tokens_neox': 310, 'n_words': 63}