<commit_before>function nodeColor() {
    var attr = 'status';
    var color_scale;
    var extent;

    var color_status = guiHive.config.Graph.Node.AnalysisStatus;

    var node_range = function(index) {
	if (attr === "status") {
	    console.log("INDEX: " + index);
	    return color_status[guiHive.analysis_board[index].status[0]].Colour;
	}
	node_range.range();
	return color_scale(guiHive.analysis_board[index][attr]);
    };

    node_range.attr = function(new_attr) {
	if (!arguments.length) {
	    return attr;
	}
	attr = new_attr;
	extent = node_range.range();
    }

    node_range.range = function() {
	if (attr === 'total_job_count' || attr === 'avg_msec_per_job') {
	    var extent = d3.extent(guiHive.analysis_board, function(d,i){ return parseInt(d[attr]) });

	    color_scale = d3.scale.linear()
		.domain(extent)
		.range(["#FFEDAO","#F03B20"])
	}<commit_msg>removed extra debugging messages<commit_after>function nodeColor() {
    var attr = 'status';
    var color_scale;
    var extent;

    var color_status = guiHive.config.Graph.Node.AnalysisStatus;

    var node_range = function(index) {
	if (attr === "status") {
	    return color_status[guiHive.analysis_board[index].status[0]].Colour;
	}
	node_range.range();
	return color_scale(guiHive.analysis_board[index][attr]);
    };

    node_range.attr = function(new_attr) {
	if (!arguments.length) {
	    return attr;
	}
	attr = new_attr;
	extent = node_range.range();
    }

    node_range.range = function() {
	if (attr === 'total_job_count' || attr === 'avg_msec_per_job') {
	    var extent = d3.extent(guiHive.analysis_board, function(d,i){ return parseInt(d[attr]) });

	    color_scale = d3.scale.linear()
		.domain(extent)
		.range(["#FFEDAO","#F03B20"])
	}
{'fraction_non_alphanumeric': 0.1565017261219793, 'fraction_numerical': 0.00805523590333717, 'mean_word_length': 3.940340909090909, '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': '4789414', 'n_tokens_mistral': 646, 'n_tokens_neox': 617, 'n_words': 105}