<commit_before>function showTooltip(x, y, contents) {
        if(x>document.body.clientWidth*.6) {
            x=x-200;
        }
        if(y>document.body.clientHeight*.7) {
            y=y-40;
        }
        $('<div id="tooltip">' + contents + '</div>').css( {
             position: 'absolute',
             display: 'none',
             top: y + 5,
             left: x + 5,
             border: '2px solid #aaa',
             padding: '2px',
             'background-color': '#fff',
        }).appendTo("body").fadeIn(200);
}

wholePeriod=function () {
        var cw = document.body.clientWidth-30;
        var ch = document.body.clientHeight-50;
        document.getElementById('placeholder').style.width=cw+'px';
        document.getElementById('placeholder').style.height=ch+'px';
        $.plot($("#placeholder"), _series, _options);
};

options={
        points: { show: true },
        xaxis: {                timeformat: "%D/%O/%y<br/>%H:%M:%S",
                mode: "time"
        },
        selection: { mode: "xy" },
        grid: {
                hoverable: true,
                clickable: true,
                tickColor: "#C0C0C0",
                backgroundColor:"#FFFFFF"
        },
        legend: { show: false }
};

        var previousPoint = null;
	$("#placeholder").bind("plothover", function (event, pos, item) {
	    var leftPad = function(n) {
                n = "" + n;
	        return n.length == 1 ? "0" + n : n;
	    };
            if (item) {
                if (previousPoint != item.datapoint) {
                    previousPoint = item.datapoint;
               
                    $("#tooltip").remove();
                    var x = item.datapoint[0].toFixed(2),
                         y = item.stackValue.toFixed(2);
//item.datapoint[1].toFixed(2);
                    var dnow=new Date();
                    dnow.setTime(x);
	            var dita=leftPad(dnow.getUTCDate())+"/"+leftPad(dnow.getUTCMonth()+1)+"/"+dnow.getUTCFullYear()+" "+leftPad(dnow.getUTCHours())+":"+leftPad(dnow.getUTCMinutes())+":"+leftPad(dnow.getUTCSeconds());
 
                    showTooltip(item.pageX, item.pageY,
                                item.series.label + ": " + y + "<br>Time: " + dita);
                 }
            } else {
                 $("#tooltip").remove();
                 previousPoint = null;            
            }
         });
    $("#placeholder").bind("plotclick", function (event, pos, item) {
	    var leftPad = function(n) {
                n = "" + n;
	        return n.length == 1 ? "0" + n : n;
	    };
            if (item) {
                if (previousPoint != item.datapoint) {
                    previousPoint = item.datapoint;
               
                    $("#tooltip").remove();
                    var x = item.datapoint[0].toFixed(2),
                         y = item.datapoint[1].toFixed(2);
                    var dnow=new Date();
                    dnow.setTime(x);
	            var dita=leftPad(dnow.getUTCDate())+"/"+leftPad(dnow.getUTCMonth()+1)+"/"+dnow.getUTCFullYear()+" "+leftPad(dnow.getUTCHours())+":"+leftPad(dnow.getUTCMinutes())+":"+leftPad(dnow.getUTCSeconds());
 
                    showTooltip(item.pageX, item.pageY,
                                item.series.label + ": " + y + "<br>Time: " + dita);
                 }
            } else {
                 $("#tooltip").remove();
                 previousPoint = null;            
            }<commit_msg>HADOOP-4884. Make tool tip date format match standard HICC format. Contributed by <NAME>.<commit_after>function showTooltip(x, y, contents) {
        if(x>document.body.clientWidth*.6) {
            x=x-200;
        }
        if(y>document.body.clientHeight*.7) {
            y=y-40;
        }
        $('<div id="tooltip">' + contents + '</div>').css( {
             position: 'absolute',
             display: 'none',
             top: y + 5,
             left: x + 5,
             border: '2px solid #aaa',
             padding: '2px',
             'background-color': '#fff',
        }).appendTo("body").fadeIn(200);
}

wholePeriod=function () {
        var cw = document.body.clientWidth-30;
        var ch = document.body.clientHeight-50;
        document.getElementById('placeholder').style.width=cw+'px';
        document.getElementById('placeholder').style.height=ch+'px';
        $.plot($("#placeholder"), _series, _options);
};

options={
        points: { show: true },
        xaxis: {                timeformat: "%y/%O/%D<br/>%H:%M:%S",
                mode: "time"
        },
        selection: { mode: "xy" },
        grid: {
                hoverable: true,
                clickable: true,
                tickColor: "#C0C0C0",
                backgroundColor:"#FFFFFF"
        },
        legend: { show: false }
};

        var previousPoint = null;
	$("#placeholder").bind("plothover", function (event, pos, item) {
	    var leftPad = function(n) {
                n = "" + n;
	        return n.length == 1 ? "0" + n : n;
	    };
            if (item) {
                if (previousPoint != item.datapoint) {
                    previousPoint = item.datapoint;
               
                    $("#tooltip").remove();
                    var x = item.datapoint[0].toFixed(2),
                         y = item.stackValue.toFixed(2);
                    var dnow=new Date();
                    dnow.setTime(x);
	            var dita=leftPad(dnow.getUTCFullYear())+"/"+leftPad(dnow.getUTCMonth()+1)+"/"+dnow.getUTCDate()+" "+leftPad(dnow.getUTCHours())+":"+leftPad(dnow.getUTCMinutes())+":"+leftPad(dnow.getUTCSeconds());
 
                    showTooltip(item.pageX, item.pageY,
                                item.series.label + ": " + y + "<br>Time: " + dita);
                 }
            } else {
                 $("#tooltip").remove();
                 previousPoint = null;            
            }
         });
    $("#placeholder").bind("plotclick", function (event, pos, item) {
	    var leftPad = function(n) {
                n = "" + n;
	        return n.length == 1 ? "0" + n : n;
	    };
            if (item) {
                if (previousPoint != item.datapoint) {
                    previousPoint = item.datapoint;
               
                    $("#tooltip").remove();
                    var x = item.datapoint[0].toFixed(2),
                         y = item.datapoint[1].toFixed(2);
                    var dnow=new Date();
                    dnow.setTime(x);
	            var dita=leftPad(dnow.getUTCFullYear())+"/"+leftPad(dnow.getUTCMonth()+1)+"/"+dnow.getUTCDate()+" "+leftPad(dnow.getUTCHours())+":"+leftPad(dnow.getUTCMinutes())+":"+leftPad(dnow.getUTCSeconds());
 
                    showTooltip(item.pageX, item.pageY,
                                item.series.label + ": " + y + "<br>Time: " + dita);
                 }
            } else {
                 $("#tooltip").remove();
                 previousPoint = null;            
            }
{'fraction_non_alphanumeric': 0.1625143184421535, 'fraction_numerical': 0.010595647193585338, 'mean_word_length': 1.4457282913165266, 'pattern_counts': {'":': 12, '<': 14, '<?xml version=': 0, '>': 18, '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': '1759773', 'n_tokens_mistral': 2115, 'n_tokens_neox': 2038, 'n_words': 335}