<commit_before>function draw(data) {

	/* Use dimple.js to make the chart */
	var svg = dimple.newSvg("#chart", '100%', '100%')
	var myChart = new dimple.chart(svg, data);
	myChart.setMargins("200px", "110px", "40px", "40px");

	/* Chart is long, so duplicate x-axis top and bottom */
	var xAxisBottom = myChart.addMeasureAxis("x", "Math");
	var xAxisTop = myChart.addMeasureAxis("x", "Math");
	xAxisBottom.title = 'Average Math Score'
	xAxisTop.title = xAxisBottom.title
	var yAxis = myChart.addCategoryAxis('y', ['Country', 'Father']);
	yAxis.title = null;
	yAxis.fontSize = '14px';

	yAxis.addOrderRule('Math', false); /* put top scoring countries first */
	yAxis.addGroupOrderRule('Father', false) /*order bars to match legend */
	var mySeries = myChart.addSeries(['Country', 'Math', 'Difference', 'Father'], dimple.plot.bar);
	mySeries.getTooltipText = function (e) {
		return [
		e.aggField[0], 
		' (' + e.aggField[3] + ") Math Score: " + e.aggField[1],
		"Father makes a difference of " + e.aggField[2] + " points."
		];
	};<commit_msg>Rounded tooltip numbers to nearest int<commit_after>function draw(data) {

	/* Use dimple.js to make the chart */
	var svg = dimple.newSvg("#chart", '100%', '100%')
	var myChart = new dimple.chart(svg, data);
	myChart.setMargins("200px", "110px", "40px", "40px");

	/* Chart is long, so duplicate x-axis top and bottom */
	var xAxisBottom = myChart.addMeasureAxis("x", "Math");
	var xAxisTop = myChart.addMeasureAxis("x", "Math");
	xAxisBottom.title = 'Average Math Score'
	xAxisTop.title = xAxisBottom.title
	var yAxis = myChart.addCategoryAxis('y', ['Country', 'Father']);
	yAxis.title = null;
	yAxis.fontSize = '14px';

	yAxis.addOrderRule('Math', false); /* put top scoring countries first */
	yAxis.addGroupOrderRule('Father', false) /*order bars to match legend */
	var mySeries = myChart.addSeries(['Country', 'Math', 'Difference', 'Father'], dimple.plot.bar);
	mySeries.getTooltipText = function (e) {
		return [
		e.aggField[0], 
		' (' + e.aggField[3] + ") Math Score: " + Math.round(e.aggField[1]),
		"Father makes a difference of " + Math.round(e.aggField[2]) + " points."
		];
	};
{'fraction_non_alphanumeric': 0.17688348151614414, 'fraction_numerical': 0.020589611605053813, 'mean_word_length': 4.596858638743456, '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': '3656853', 'n_tokens_mistral': 796, 'n_tokens_neox': 745, 'n_words': 187}