<commit_before>// ThreadPool.java

package ed.util;

import java.util.*;
import java.util.concurrent.*;

public abstract class ThreadPool<T> {
    
    public ThreadPool( String name , int numThreads ){
        this( name , numThreads , Integer.MAX_VALUE );
    }
    
    public ThreadPool( String name , int numThreads , int maxQueueSize ){
        _name = name;
        _maxThreads = numThreads;
        _threads.add( new MyThread() );
        _queue = new LinkedBlockingQueue<T>( maxQueueSize );
    }<commit_msg>ThreadPool.java : *first* create the pool, *then* use it :)<commit_after>// ThreadPool.java

package ed.util;

import java.util.*;
import java.util.concurrent.*;

public abstract class ThreadPool<T> {
    
    public ThreadPool( String name , int numThreads ){
        this( name , numThreads , Integer.MAX_VALUE );
    }
    
    public ThreadPool( String name , int numThreads , int maxQueueSize ){
        _name = name;
        _maxThreads = numThreads;
        _queue = new LinkedBlockingQueue<T>( maxQueueSize );
        _threads.add( new MyThread() );
    }
{'fraction_non_alphanumeric': 0.10648148148148148, 'fraction_numerical': 0.0, 'mean_word_length': 2.8197879858657244, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6323158', 'n_tokens_mistral': 322, 'n_tokens_neox': 320, 'n_words': 90}