<commit_before>/* global d3 */
/* exported DDColorPicker*/
function DDColorPicker(method,value){
	'use strict';

	this.settings = {
		height: 420,
		width: 820,
		rows: 35,
		margin: 20,
	};

	this.extend = function(dst, src){
		for (var attrname in src) { dst[attrname] = src[attrname]; }
	};

	this.enterRect = function(rect){
		rect.enter().append("rect");
	};

	this.updateRect = function(rectangle){
		var $this = this;
		rectangle
			.style("fill", function(data){return d3.rgb(data.rgb[0],data.rgb[1],data.rgb[2]);})
		    .attr("x", function(d,index){return (Math.floor(index/$this.settings.rows) * $this.settings.colWidth) + $this.settings.margin; })<commit_msg>Added some fancy transitions. Now setRows is much more exciting!<commit_after>/* global d3 */
/* exported DDColorPicker*/
function DDColorPicker(method,value){
	'use strict';

	this.settings = {
		height: 420,
		width: 820,
		rows: 35,
		margin: 20,
	};

	this.extend = function(dst, src){
		for (var attrname in src) { dst[attrname] = src[attrname]; }
	};

	this.enterRect = function(rect){
		rect.enter().append("rect");
	};

	this.updateRect = function(rectangle){
		var $this = this;
		rectangle
			.transition()
			.style("fill", function(data){return d3.rgb(data.rgb[0],data.rgb[1],data.rgb[2]);})
		    .attr("x", function(d,index){return (Math.floor(index/$this.settings.rows) * $this.settings.colWidth) + $this.settings.margin; })
{'fraction_non_alphanumeric': 0.18368794326241134, 'fraction_numerical': 0.02127659574468085, 'mean_word_length': 4.426923076923077, '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': '727452', 'n_tokens_mistral': 552, 'n_tokens_neox': 491, 'n_words': 100}