<commit_before>/**
 * 
 */
package interfaceGraphique;

import individu.Element;
import individu.Equipement;
import individu.Personne;

import java.awt.Shape;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.rmi.RemoteException;
import java.util.HashMap;
import java.util.Map;

import javax.swing.JPanel;
import javax.swing.ToolTipManager;

/**
 * @author <NAME>
 *
 */
public class OnMouseOverTooltipElementMouseMotionListener implements MouseMotionListener {

	private JPanel panel;
	
	private Map<VueElement, Shape> registeredMouseMotionListener = new HashMap<VueElement, Shape>();
	
	public OnMouseOverTooltipElementMouseMotionListener(JPanel panel) {
		this.panel = panel;
		ToolTipManager.sharedInstance().setInitialDelay(0);
	}
	
	public void putNewShape(VueElement e, Shape s) {
		this.registeredMouseMotionListener.put(e, s);
	}
	
	/* (non-Javadoc)
	 * @see java.awt.event.MouseMotionListener#mouseDragged(java.awt.event.MouseEvent)
	 */
	public void mouseDragged(MouseEvent e) {
	}

	/* (non-Javadoc)
	 * @see java.awt.event.MouseMotionListener#mouseMoved(java.awt.event.MouseEvent)
	 */
	public void mouseMoved(MouseEvent e) {
		
		boolean noTooltip = true;<commit_msg>Correction de la Tooltip qui affichait brièvement les statistiques de la dernière Tooltip<commit_after>/**
 * 
 */
package interfaceGraphique;

import individu.Element;
import individu.Equipement;
import individu.Personne;

import java.awt.Shape;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.rmi.RemoteException;
import java.util.HashMap;
import java.util.Map;

import javax.swing.JPanel;
import javax.swing.ToolTipManager;

/**
 * @author <NAME>
 *
 */
public class OnMouseOverTooltipElementMouseMotionListener implements MouseMotionListener {

	private JPanel panel;
	
	private Map<VueElement, Shape> registeredMouseMotionListener = new HashMap<VueElement, Shape>();
	
	public OnMouseOverTooltipElementMouseMotionListener(JPanel panel) {
		this.panel = panel;
		ToolTipManager.sharedInstance().setInitialDelay(10);
	}
	
	public void putNewShape(VueElement e, Shape s) {
		this.registeredMouseMotionListener.put(e, s);
	}
	
	/* (non-Javadoc)
	 * @see java.awt.event.MouseMotionListener#mouseDragged(java.awt.event.MouseEvent)
	 */
	public void mouseDragged(MouseEvent e) {
	}

	/* (non-Javadoc)
	 * @see java.awt.event.MouseMotionListener#mouseMoved(java.awt.event.MouseEvent)
	 */
	public void mouseMoved(MouseEvent e) {
		
		boolean noTooltip = true;
{'fraction_non_alphanumeric': 0.10718539102818579, 'fraction_numerical': 0.0011909487892020642, 'mean_word_length': 5.315789473684211, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5565077', 'n_tokens_mistral': 852, 'n_tokens_neox': 783, 'n_words': 157}