<commit_before>package de.invation.code.toval.event;

import java.io.Serializable;
import java.util.HashSet;

import de.invation.code.toval.validate.Validate;

public abstract class AbstractListenerSupport<L extends Object> implements Serializable {

	protected HashSet<L> listeners = new HashSet<L>();
	
	public void addListener(L l) {
		Validate.notNull(l);
		listeners.add(l);
	}
	
	public void removeListener(L l) {
		Validate.notNull(l);
		listeners.remove(l);
	}

}
<commit_msg>return value for adding listeners in AbstractListenerSupport<commit_after>package de.invation.code.toval.event;

import java.io.Serializable;
import java.util.HashSet;

import de.invation.code.toval.validate.Validate;

public abstract class AbstractListenerSupport<L extends Object> implements Serializable {

	private static final long serialVersionUID = -7522608459092207941L;
	
	protected HashSet<L> listeners = new HashSet<L>();
	
	public boolean addListener(L l) {
		Validate.notNull(l);
		return listeners.add(l);
	}
	
	public boolean removeListener(L l) {
		Validate.notNull(l);
		return listeners.remove(l);
	}

}

{'fraction_non_alphanumeric': 0.10397830018083183, 'fraction_numerical': 0.017179023508137433, 'mean_word_length': 5.219101123595506, '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': '6270785', 'n_tokens_mistral': 377, 'n_tokens_neox': 352, 'n_words': 80}