<commit_before>function update(data) {

var sales_data=data;

var width = 1100, height = 610, margin ={b:90, t:40, l:180, r:50};

var svg = d3.select("body")
	.append("svg").attr('width',width).attr('height',(height+margin.b+margin.t))
	.append("g").attr("transform","translate("+ margin.l+","+margin.t+")");

var data = [ 
	{data:bP.partData(sales_data,2), id:'SalesAttempts', header:["通信属性","時間帯", "小金井市トラ連DC"]},
];

bP.draw(data, svg);


}

!function(){
	var bP={};	
	var b=30, bb=150, height=600, buffMargin=1, minHeight=14;
	var c1=[-150, 40], c2=[-50, 170], c3=[-10, 240]; //Column positions of labels.
	var colors =["#3366CC", "#DC3912",  "#FF9900","#109618", "#990099", "#0099C6"];
	
	bP.partData = function(data,p){
		var sData={};
		
		sData.keys=[
			d3.set(data.map(function(d){ return d[0];})).values().sort(function(a,b){ return ( a<b? -1 : a>b ? 1 : 0);}),
			d3.set(data.map(function(d){ return d[1];})).values().sort(function(a,b){ return ( a<b? -1 : a>b ? 1 : 0);})		
		];
		
		sData.data = [	sData.keys[0].map( function(d){ return sData.keys[1].map( function(v){ return 0; }); }),
						sData.keys[1].map( function(d){ return sData.keys[0].map( function(v){ return 0; }); }) 
		];
		
		data.forEach(function(d){ 
			sData.data[0][sData.keys[0].indexOf(d[0])][sData.keys[1].indexOf(d[1])]=d[p];<commit_msg>Update main.js<commit_after>//# require=d3

var main = d3.select(root)
        .append("svg");

function update(data) {

    var sales_data = data;

    var width = 1100,
        height = 610,
        margin = {
            b: 90,
            t: 40,
            l: 180,
            r: 50
        };

    var svg = main.attr('width', width).attr('height', (height + margin.b + margin.t))
        .append("g").attr("transform", "translate(" + margin.l + "," + margin.t + ")");

    var data = [{
        data: bP.partData(sales_data, 2),
        id: 'SalesAttempts',
        header: ["通信属性", "時間帯", "小金井市トラ連DC"]
    }, ];

    bP.draw(data, svg);



}


!function(){
	var bP={};	
	var b=30, bb=150, height=600, buffMargin=1, minHeight=14;
	var c1=[-150, 40], c2=[-50, 170], c3=[-10, 240]; //Column positions of labels.
	var colors =["#3366CC", "#DC3912",  "#FF9900","#109618", "#990099", "#0099C6"];
	
	bP.partData = function(data,p){
		var sData={};
		
		sData.keys=[
			d3.set(data.map(function(d){ return d[0];})).values().sort(function(a,b){ return ( a<b? -1 : a>b ? 1 : 0);}),
			d3.set(data.map(function(d){ return d[1];})).values().sort(function(a,b){ return ( a<b? -1 : a>b ? 1 : 0);})		
		];
		
		sData.data = [	sData.keys[0].map( function(d){ return sData.keys[1].map( function(v){ return 0; }); }),
						sData.keys[1].map( function(d){ return sData.keys[0].map( function(v){ return 0; }); }) 
		];
		
		data.forEach(function(d){ 
			sData.data[0][sData.keys[0].indexOf(d[0])][sData.keys[1].indexOf(d[1])]=d[p];
{'fraction_non_alphanumeric': 0.24437412095639943, 'fraction_numerical': 0.06856540084388185, 'mean_word_length': 3.5447284345047922, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '238882', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1173, 'n_words': 211}