<commit_before>package gui.property;

import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

import javax.swing.JButton;
import javax.swing.JColorChooser;

public class ColorPropertyCompound extends JButton implements PropertyCompound
{
	ColorProperty property;
	boolean update;

	public ColorPropertyCompound(ColorProperty property)
	{
		this.property = property;
		setText("     ");
		setBackground(property.getValue());
		addActionListener(new ActionListener()
		{
			@Override
			public void actionPerformed(ActionEvent e)
			{
				if (update)
					return;
				update = true;
				Color c = JColorChooser.showDialog(ColorPropertyCompound.this.getTopLevelAncestor(), "Select Color",
						getBackground());
				if (c != null)<commit_msg>adjust size of color-prop button to color-sequence color button<commit_after>package gui.property;

import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

import javax.swing.JButton;
import javax.swing.JColorChooser;

public class ColorPropertyCompound extends JButton implements PropertyCompound
{
	ColorProperty property;
	boolean update;

	public ColorPropertyCompound(ColorProperty property)
	{
		this.property = property;
		setText("          ");
		setBackground(property.getValue());
		addActionListener(new ActionListener()
		{
			@Override
			public void actionPerformed(ActionEvent e)
			{
				if (update)
					return;
				update = true;
				Color c = JColorChooser.showDialog(ColorPropertyCompound.this.getTopLevelAncestor(), "Select Color",
						getBackground());
				if (c != null)
{'fraction_non_alphanumeric': 0.09106239460370995, 'fraction_numerical': 0.0, 'mean_word_length': 4.894039735099338, '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': '3007022', 'n_tokens_mistral': 573, 'n_tokens_neox': 501, 'n_words': 117}