<commit_before>function displayPopupEvent (id) {
        var html = $(id);
        var cellhtml = $("div"+id);
        var cellPos = cellhtml.cumulativeOffset();

        var popup = $('popupEvent2');
        var popupParent = popup.getOffsetParent();
        var popupParentPos = popupParent.cumulativeOffset();
        x = cellPos[0]-popupParentPos[0];
        y = cellPos[1]-popupParentPos[1];
        var w = popup.offsetWidth; // largeur
        var windowWidth = getWindowWidth()-10;
        if(x+w>windowWidth) x = windowWidth-w-7;
        popup.style.left=(x+32)+"px";
        popup.style.top=(y+22)+"px";
        popup.style.zIndex = 999;
        popup.innerHTML = html.innerHTML;
        popup.style.visibility = "visible";
}

function hidePopupEvent (force) {
        if (overPopup && !force) return false;
        var obj = $('popupEvent2');
        //obj = gProfilElm;
        //obj.style.top="0px";
        //obj.innerHTML = 'XXX';
        obj.style.visibility = "hidden";
}

function mouseOverPopupEvent () {
//      overPopup = true;
}

function mouseOutPopupEvent () {
        //hidePopupEvent (1);
        //overPopup = false;
}

/* Ancienne version
function displayPopupEvent(id) {
   document.getElementById(id).style.visibility = 'visible';
}
function hidePopupEvent(id) {
   document.getElementById(id).style.visibility = 'hidden';
}
function toggleDisplayPopupEvent(id) {
   if (document.getElementById(id).style.visibility=='hidden') {
      document.getElementById(id).style.visibility='visible';
   }else{
      document.getElementById(id).style.visibility='hidden';
   }
   if (document.getElementById(id).style.display=='none') {
      document.getElementById(id).style.display='';
   }else{
      document.getElementById(id).style.display='none';
   }
   return false;
}

var overPopup = false;

function displayPopupEvent (id, decalage, margeHaut, lieu) {
	//if (overPopup) return false;
	var obj = $('popupEvent2');	
	var html = $(id);	
  x = lastMouseX;
	y = lastMouseY;	
	/*x = decalage;
	y = margeHaut;
	*/
	var w = obj.offsetWidth; // largeur
	var windowWidth = getWindowWidth()-10;
	//alert ("x="+x+" / y="+y+" / wW="+windowWidth);
	if(x+w>windowWidth) x = windowWidth-w-7;
	obj.style.left=(x-5)+"px";
	obj.style.top=(y-10)+"px";
	obj.style.zIndex = 999;
	obj.innerHTML = html.innerHTML;
	obj.style.visibility = "visible";
}

function hidePopupEvent (force) {
	if (overPopup && !force) return false;
	var obj = $('popupEvent2');
	//obj = gProfilElm;
	//obj.style.top="0px";
	//obj.innerHTML = 'XXX';
	obj.style.visibility = "hidden";
}

function mouseOverPopupEvent () {
	overPopup = true;
}
function mouseOutPopupEvent () {
	//hidePopupEvent (1);
	//overPopup = false;
}

*/<commit_msg>Ticket 4 : Bug sur le module agenda Complete<commit_after>function displayPopupEvent (id) {
        var html = $(id);
        var cellhtml = $("div"+id);
        var cellPos = cellhtml.cumulativeOffset();

        var popup = $('popupEvent2');
        var popupParent = popup.getOffsetParent();
        var popupParentPos = popupParent.cumulativeOffset();
        x = cellPos[0]-popupParentPos[0];
        y = cellPos[1]-popupParentPos[1];
        var w = popup.offsetWidth; // largeur
        var windowWidth = getWindowWidth()-10;
        if(x+w>windowWidth) x = windowWidth-w-7;
        popup.style.left=(x+32)+"px";
        popup.style.top=(y+22)+"px";
        popup.style.zIndex = 999;
        popup.innerHTML = html.innerHTML;
        popup.style.visibility = "visible";
}

function hidePopupEvent (force) {
        if (overPopup && !force) return false;
        var obj = $('popupEvent2');
        //obj = gProfilElm;
        //obj.style.top="0px";
        //obj.innerHTML = 'XXX';
        obj.style.visibility = "hidden";
}

function mouseOverPopupEvent () {
//      overPopup = true;
}

function mouseOutPopupEvent () {
        //hidePopupEvent (1);
        //overPopup = false;
}
{'fraction_non_alphanumeric': 0.1574642126789366, 'fraction_numerical': 0.01278118609406953, 'mean_word_length': 2.928714859437751, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1984991', 'n_tokens_mistral': 1321, 'n_tokens_neox': 1279, 'n_words': 250}