<commit_before>package alma.contLogTest.TestLogLevelsCompImpl;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeUnit;

import com.cosylab.logging.engine.log.ILogEntry;

import alma.acs.logging.level.AcsLogLevelDefinition;
import alma.acs.logging.engine.LogReceiver;
import alma.acs.logging.engine.LogReceiver.DelayedLogEntry;
import alma.acs.logging.engine.LogReceiver.ReceivedLogRecord;


/**
 * Helper class for tests that must receive log records from the Log service.
 */
public class LogSeriesExpectant
{
	private LogReceiver logReceiver;

	/**
	 * @param logReceiver  an already initialized LogReceiver from which logs will be fetched.
	 *                     This class will not {@link LogReceiver#stop() stop} the logReceiver,
	 *                     which therefore remains the task of the calling class.
	 * @throws IllegalArgumentException if logReceiver is not initialized. 
	 */<commit_msg>Minor cleanup<commit_after>package alma.contLogTest.TestLogLevelsCompImpl;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeUnit;

import com.cosylab.logging.engine.log.ILogEntry; 

import alma.acs.logging.level.AcsLogLevelDefinition;
import alma.acs.logging.engine.LogReceiver;
import alma.acs.logging.engine.LogReceiver.DelayedLogEntry;
import alma.acs.logging.engine.LogReceiver.ReceivedLogRecord;


/**
 * Helper class for tests that must receive log records from the Log service.
 */
public class LogSeriesExpectant
{
	private LogReceiver logReceiver;

	/**
	 * @param logReceiver  an already initialized LogReceiver from which logs will be fetched.
	 *                     This class will not {@link LogReceiver#stop() stop} the logReceiver,
	 *                     which therefore remains the task of the calling class.
	 * @throws IllegalArgumentException if logReceiver is not initialized. 
	 */
{'fraction_non_alphanumeric': 0.08017492711370262, 'fraction_numerical': 0.0, 'mean_word_length': 4.2126582278481015, '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': '6278420', 'n_tokens_mistral': 572, 'n_tokens_neox': 550, 'n_words': 159}