<commit_before><!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
 <script src="{{ url_for('static', filename='socket.io-1.2.0.js') }}"></script>
 <style type="text/css">
			
	body {
	  position: relative;
	  width: 960px;
	}

	svg {
	  font: 10px sans-serif;
	  shape-rendering: crispEdges;
	}

	rect {
	  fill: #ddd;
	}

	.axis path,
	.axis line {
	  fill: none;
	  stroke: #fff;
	}

	button {
	  position: absolute;
	  right: 30px;
	  top: 30px;
	}

</style>		
</head>

<body>
<button>Reset</button>
<script>
var socket = io();
var mx,my;
socket.on('s2cS',function(Rdata)
{
	console.log(Rdata);
	//mx=x.invert(d3.mouse(this)[0]);
	//my=y.invert(d3.mouse(this)[1]);
	//data.push([mx,my]); //add last
	mx=Rdata.t;
	my=Rdata.h;
	console.log(mx,Rdata.t,my,Rdata.h)
	data.unshift([mx,my]); //add first
	//draw();
	data.pop(); //remove last
	//data.shift(); //remove first
	draw();
	//console.log("click: "+JSON.stringify(data))
});
//socket.on('s2cT',function(temp){
//	console.log(temp);
// 	mx=temp
// });
// socket.on('s2cH',function(humi){
// 	console.log(humi);
// 	my=humi
// });
var data=[];
for(var i=0;i<500;i++){
	data.push([0,0]);
}


//var x = d3.scale.linear()
//    .domain([13, 30])
//    .range([0, width]);
//var y = d3.scale.linear()
//    .domain([15, 70])
//    .range([0, height]);

var margin = {top: 20, right: 20, bottom: 30, left: 40},
    width = 960 - margin.left - margin.right,
    height = 500 - margin.top - margin.bottom,
    min_temp=10,max_temp=40,
    min_hum=20,max_hum=90;<commit_msg>minor change<commit_after><!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
 <script src="{{ url_for('static', filename='socket.io-1.2.0.js') }}"></script>
 <style type="text/css">
			
	body {
	  position: relative;
	  width: 960px;
	}

	svg {
	  font: 10px sans-serif;
	  shape-rendering: crispEdges;
	}

	rect {
	  fill: #ddd;
	}

	.axis path,
	.axis line {
	  fill: none;
	  stroke: #fff;
	}

	button {
	  position: absolute;
	  right: 30px;
	  top: 30px;
	}

</style>		
</head>

<body>
<button>Reset</button>
<script>
var socket = io();
var mx,my;
socket.on('s2cS',function(Rdata)
{
	console.log(Rdata);
	//mx=x.invert(d3.mouse(this)[0]);
	//my=y.invert(d3.mouse(this)[1]);
	//data.push([mx,my]); //add last
	mx=Rdata.t;
	my=Rdata.h;
	console.log(mx,Rdata.t,my,Rdata.h)
	data.unshift([mx,my]); //add first
	//draw();
	data.pop(); //remove last
	//data.shift(); //remove first
	draw();
	//console.log("click: "+JSON.stringify(data))
});
//socket.on('s2cT',function(temp){
//	console.log(temp);
// 	mx=temp
// });
// socket.on('s2cH',function(humi){
// 	console.log(humi);
// 	my=humi
// });
var data=[];
for(var i=0;i<500;i++){
	data.push([0,0]);
}


//var x = d3.scale.linear()
//    .domain([13, 30])
//    .range([0, width]);
//var y = d3.scale.linear()
//    .domain([15, 70])
//    .range([0, height]);

var margin = {top: 20, right: 20, bottom: 30, left: 40},
    width = 960 - margin.left - margin.right,
    height = 500 - margin.top - margin.bottom,
    min_temp=15,max_temp=25,
    min_hum=20,max_hum=90;
{'fraction_non_alphanumeric': 0.23863269912931312, 'fraction_numerical': 0.0399871009351822, 'mean_word_length': 3.226158038147139, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 31, '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': '5677650', 'n_tokens_mistral': 1445, 'n_tokens_neox': 1332, 'n_words': 240}