<commit_before>package gov.nih.nci.cagrid.gridgrouper.ui;

import java.awt.Component;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.Icon;
import javax.swing.JTabbedPane;

public class ContentManagerTabCloseIcon implements Icon {
	private final Icon mIcon;

	private ContentManager mTabbedPane = null;

	private transient Rectangle mPosition = null;

	/**
	 * Creates a new instance of TabCloseIcon.
	 */
	public ContentManagerTabCloseIcon(Icon icon) {
		mIcon = icon;
	}

	/**
	 * Creates a new instance of TabCloseIcon.
	 */
	public ContentManagerTabCloseIcon() {
		this(GridGrouperLookAndFeel.getCloseTab());
	}

	/**
	 * when painting, remember last position painted.
	 */
	public void paintIcon(Component c, Graphics g, int x, int y) {
		if (null == mTabbedPane) {
			mTabbedPane = (ContentManager) c;
			mTabbedPane.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseReleased(MouseEvent e) {
					// asking for isConsumed is *very* important, otherwise more
					// than one tab might get closed!
					if (!e.isConsumed()
							&& mPosition.contains(e.getX(), e.getY())) {
						mTabbedPane.removeSelectedNode();
						mTabbedPane.removeMouseListener(this);
					}
				}
			});
		}

		mPosition = new Rectangle(x, y, getIconWidth(), getIconHeight());
		mIcon.paintIcon(c, g, x, y);
	}

	/**
	 * just delegate
	 */
	public int getIconWidth() {
		return mIcon.getIconWidth();
	}

	/**
	 * just delegate
	 */
	public int getIconHeight() {
		return mIcon.getIconHeight();
	}

}
<commit_msg>no, no, no!<commit_after>package gov.nih.nci.cagrid.gridgrouper.ui;

import java.awt.Component;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.Icon;

public class ContentManagerTabCloseIcon implements Icon {
	private final Icon mIcon;

	private ContentManager mTabbedPane = null;

	private transient Rectangle mPosition = null;

	/**
	 * Creates a new instance of TabCloseIcon.
	 */
	public ContentManagerTabCloseIcon(Icon icon) {
		mIcon = icon;
	}

	/**
	 * Creates a new instance of TabCloseIcon.
	 */
	public ContentManagerTabCloseIcon() {
		this(GridGrouperLookAndFeel.getCloseTab());
	}

	/**
	 * when painting, remember last position painted.
	 */
	public void paintIcon(Component c, Graphics g, int x, int y) {
		if (null == mTabbedPane) {
			mTabbedPane = (ContentManager) c;
			mTabbedPane.addMouseListener(new MouseAdapter() {
				public void mouseReleased(MouseEvent e) {
					// asking for isConsumed is *very* important, otherwise more
					// than one tab might get closed!
					if (!e.isConsumed()
							&& mPosition.contains(e.getX(), e.getY())) {
						mTabbedPane.removeSelectedNode();
						mTabbedPane.removeMouseListener(this);
					}
				}
			});
		}

		mPosition = new Rectangle(x, y, getIconWidth(), getIconHeight());
		mIcon.paintIcon(c, g, x, y);
	}

	/**
	 * just delegate
	 */
	public int getIconWidth() {
		return mIcon.getIconWidth();
	}

	/**
	 * just delegate
	 */
	public int getIconHeight() {
		return mIcon.getIconHeight();
	}

}

{'fraction_non_alphanumeric': 0.11881500157579578, 'fraction_numerical': 0.0, 'mean_word_length': 3.6335766423357665, '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': '5837436', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1019, 'n_words': 253}