<commit_before>$(function() {
	var heatmap = [
		{
			"date": "2014-02-11",
			"start": "1",
			"duration": "2",
			"level": 1
		},
		{
			"date": "2014-02-11",
			"start": "3",
			"duration": "2",
			"level": 3
		},
		{
			"date": "2014-02-11",
			"start": "10",
			"duration": "4",
			"level": 5
		},
		{
			"date": "2014-02-12",
			"start": "3",
			"duration": "2",
			"level": 2
		},
		{
			"date": "2014-02-12",
			"start": "5",
			"duration": "2",
			"level": 4
		}
	];

	var drawHeatmap = function(map) {
		$.each(map, function(i, slot) {
			var $day = $("#" + slot.date);
			$day.prepend('<p class="slot gridtop-' + parseInt(slot.start)+ ' gridheight-'
				+ parseInt(slot.duration) + ' heatmap-' + parseInt(slot.level) + '"></p>');
		})
	};

	var drawGrid = function(date) {
		var $holder = $("#grid-stretch"),
		    $column = $('<div class="grid-column" id="' + date + '"></div>');
		for (var i = 0; i < 26; ++i) {
			$column.append('<div class="grid hour">&nbsp;</div>');<commit_msg>overlay<commit_after>$(function() {
	var heatmap = [
		{
			"date": "2014-02-11",
			"start": "1",
			"duration": "2",
			"level": 1,
			"count": 2
		},
		{
			"date": "2014-02-11",
			"start": "3",
			"duration": "2",
			"level": 3,
			"count": 6
		},
		{
			"date": "2014-02-11",
			"start": "10",
			"duration": "4",
			"level": 5,
			"count": 10
		},
		{
			"date": "2014-02-12",
			"start": "3",
			"duration": "2",
			"level": 2,
			"count": 4
		},
		{
			"date": "2014-02-12",
			"start": "5",
			"duration": "2",
			"level": 4,
			"count": 8
		}
	];


	$("#overlay-toggle").click(function(){
		var $slot = $(".data");
		$.each($slot, function(i, s){
			if($(s).hasClass("clicked")){
				$(s).removeClass("clicked");
				$(s).find(".count").remove();
			}
			else{
				$(s).addClass("clicked");
				var level = $(s).attr("count");
				$(s).append("<p class='count'>"+level+"</p>");
			}		
		})
		
	});
	

	var drawHeatmap = function(map) {
		$.each(map, function(i, slot) {
			var $day = $("#" + slot.date);
			$day.prepend('<p class="slot data gridtop-' + parseInt(slot.start)+ ' gridheight-'
				+ parseInt(slot.duration) + ' heatmap-' + parseInt(slot.level) + '" count="'
				+ parseInt(slot.count) + '"></p>');
		})
	};

	var drawGrid = function(date) {
		var $holder = $("#grid-stretch"),
		    $column = $('<div class="grid-column" id="' + date + '"></div>');
		for (var i = 0; i < 26; ++i) {
			$column.append('<div class="grid hour">&nbsp;</div>');
{'fraction_non_alphanumeric': 0.277981277981278, 'fraction_numerical': 0.05046805046805047, 'mean_word_length': 2.840625, 'pattern_counts': {'":': 45, '<': 19, '<?xml version=': 0, '>': 17, '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': '2810362', 'n_tokens_mistral': 1248, 'n_tokens_neox': 991, 'n_words': 195}