<commit_before>// $Header$
/*
 * Copyright 2001-2004 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */

package org.apache.jmeter.samplers;

import java.io.Serializable;
import java.rmi.RemoteException;

import org.apache.jmeter.engine.event.LoopIterationEvent;
import org.apache.jmeter.engine.util.NoThreadClone;
import org.apache.jmeter.testelement.AbstractTestElement;
import org.apache.jmeter.testelement.TestListener;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;

/**
 * @author unascribed
 * 
 * Lars-<NAME> provided the idea (and original implementation) for the
 * caching functionality (sampleStore).
 * 
 * @version $Revision$ Updated on: $Date$
 */
public class RemoteListenerWrapper extends AbstractTestElement implements SampleListener, TestListener, Serializable,
		NoThreadClone {
	transient private static Logger log = LoggingManager.getLoggerForClass();

	private RemoteSampleListener listener = null;

	SampleSender mode;

	public RemoteListenerWrapper(RemoteSampleListener l) {
		listener = l;
		// Get appropriate class governed by the behaviour set in the Jmeter
		// property mode.
		this.mode = SampleSenderFactory.getInstance(listener);
	}

	public RemoteListenerWrapper() // TODO: not used - make private?
	{
	}

	public void testStarted() {
		log.info("Test Started()");
		try {
			listener.testStarted();
		} catch (Throwable ex) {
			log.warn("testStarted()", ex);
		}

	}
<commit_msg>Tidy up<commit_after>/*
 * Copyright 2001-2004 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */

package org.apache.jmeter.samplers;

import java.io.Serializable;
import java.rmi.RemoteException;

import org.apache.jmeter.engine.event.LoopIterationEvent;
import org.apache.jmeter.engine.util.NoThreadClone;
import org.apache.jmeter.testelement.AbstractTestElement;
import org.apache.jmeter.testelement.TestListener;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;

/**
 * @author unascribed
 * 
 * Lars-<NAME> provided the idea (and original implementation) for the
 * caching functionality (sampleStore).
 * 
 * @version $Revision$ Updated on: $Date$
 */
public class RemoteListenerWrapper extends AbstractTestElement implements SampleListener, TestListener, Serializable,
		NoThreadClone {
	private static final Logger log = LoggingManager.getLoggerForClass();

	private RemoteSampleListener listener = null;

	private SampleSender mode;

	public RemoteListenerWrapper(RemoteSampleListener l) {
		listener = l;
		// Get appropriate class governed by the behaviour set in the Jmeter
		// property mode.
		this.mode = SampleSenderFactory.getInstance(listener);
	}

	public RemoteListenerWrapper() // TODO: not used - make private?
	{
	}

	public void testStarted() {
		log.info("Test Started()");
		try {
			listener.testStarted();
		} catch (Throwable ex) {
			log.warn("testStarted()", ex);
		}

	}

{'fraction_non_alphanumeric': 0.09310518369401108, 'fraction_numerical': 0.006039255158530448, 'mean_word_length': 4.437756497948016, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3138854', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1087, 'n_words': 369}