<commit_before>var graphs = []

function draw_graph(e, dataset) {
	var w = parseInt(d3.select(e).style('width'), 10);
	var h = 70;
	var padding = 22;

	var scaleY = d3.scale.linear()
		.domain([0, d3.max(dataset)])
		.range([0, h]);

	var scaleX = d3.scale.linear()
		.domain([48, 0]).range([padding/2, w-(padding)]);

	d3.select(e).select("svg").remove();
	var svg = d3.select(e)
		.append("svg")
		.attr("width", w)
		.attr("height", h);

	var axis = d3.svg
		.axis()
		.scale(scaleX);

	var axisY = d3.svg
		.axis()
		.scale(d3.scale.linear().domain([0, d3.max(dataset)]).range([h, 0]))
		.ticks(3)<commit_msg>Fix bar chart height padding<commit_after>var graphs = []

function draw_graph(e, dataset) {
	var w = parseInt(d3.select(e).style('width'), 10);
	var h = 70;
	var padding = 22;

	var scaleY = d3.scale.linear()
		.domain([0, d3.max(dataset)])
		.range([0, h-padding]);

	var scaleX = d3.scale.linear()
		.domain([48, 0]).range([padding/2, w-(padding)]);

	d3.select(e).select("svg").remove();
	var svg = d3.select(e)
		.append("svg")
		.attr("width", w)
		.attr("height", h);

	var axis = d3.svg
		.axis()
		.scale(scaleX);

	var axisY = d3.svg
		.axis()
		.scale(d3.scale.linear().domain([0, d3.max(dataset)]).range([h, 0]))
		.ticks(3)
{'fraction_non_alphanumeric': 0.22978382706164932, 'fraction_numerical': 0.040032025620496396, 'mean_word_length': 3.734848484848485, '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': '3468787', 'n_tokens_mistral': 569, 'n_tokens_neox': 519, 'n_words': 103}