<commit_before>package org.codehaus.plexus.util;

import java.util.Collection;
import java.util.Iterator;
import java.util.Vector;
import java.util.logging.Logger;
/**
 * Manages  a number of test threads, which notify this instance when they have 
 * completed. Allows TestCases to easily start and manage multiple test threads.  
 * 
 * <p>Created on 9/06/2003</p>
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @version $Revision$
 * 
 */
public class TestThreadManager
{
	//~ Instance fields ----------------------------------------------------------------------------

	/** Test threads which have completed running */
	private Collection runThreads = new Vector();
	/** Test threads still needing to be run, or are currently running*/
	private Collection toRunThreads = new Vector();
	private Logger logger = null;
	/** Any test threads which failed */
	private Vector failedThreads = new Vector();

	/**The object to notify when all the test threads have complleted. Clients use this<commit_msg>o Refactoring which encapsulates all component handling behaviour into a new   ComponentManager entity. I've rid plexus of instance managers and the   component housings and cleaned things up in the component managers.<commit_after>package org.codehaus.plexus.util;

import java.util.Collection;
import java.util.Iterator;
import java.util.Vector;
import java.util.logging.Logger;
/**
 * Manages  a number of test threads, which notify this manager when they have
 * completed. Allows TestCases to easily start and manage multiple test threads.  
 * 
 * <p>Created on 9/06/2003</p>
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @version $Revision$
 * 
 */
public class TestThreadManager
{
	//~ Instance fields ----------------------------------------------------------------------------

	/** Test threads which have completed running */
	private Collection runThreads = new Vector();
	/** Test threads still needing to be run, or are currently running*/
	private Collection toRunThreads = new Vector();
	private Logger logger = null;
	/** Any test threads which failed */
	private Vector failedThreads = new Vector();

	/**The object to notify when all the test threads have complleted. Clients use this
{'fraction_non_alphanumeric': 0.15817936007210456, 'fraction_numerical': 0.006309148264984227, 'mean_word_length': 3.051094890510949, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5999033', 'n_tokens_mistral': 575, 'n_tokens_neox': 552, 'n_words': 233}