<commit_before>package hu.eltesoft.modelexecution.runtime;

import hu.eltesoft.modelexecution.runtime.log.Logger;
import hu.eltesoft.modelexecution.runtime.log.MinimalLogger;
import hu.eltesoft.modelexecution.runtime.log.NoLogger;
import hu.eltesoft.modelexecution.runtime.trace.NoTraceReader;
import hu.eltesoft.modelexecution.runtime.trace.NoTracer;
import hu.eltesoft.modelexecution.runtime.trace.TraceReader;
import hu.eltesoft.modelexecution.runtime.trace.TraceReplayer;
import hu.eltesoft.modelexecution.runtime.trace.TraceWriter;
import hu.eltesoft.modelexecution.runtime.trace.Tracer;

/**
 * BaseRuntime with main. Parses tracing and logging flags.
 * 
 * @author nboldi
 */
public class TestRuntime extends BaseRuntime {

	private static final String USAGE = "java Q1Runtime class-name feed-function-name "
			+ "[-write-trace output-folder] [-read-trace input-folder] [-log]";

	public TestRuntime(Tracer tracer, TraceReader traceReader, Logger logger) {
		super(tracer, traceReader, logger);
	}

	public static void main(String[] args) throws Exception {

		if (args.length < 2) {
			System.err.println("Not enough parameters. Usage: \n" + USAGE);
		}
		String clsName = args[0];
		String feedName = args[1];
		Tracer tracer = new NoTracer();
		TraceReader traceReader = new NoTraceReader();
		Logger logger = new NoLogger();

		for (int i = 2; i < args.length; ++i) {
			switch (args[i]) {
			case "-write-trace":
				tracer = new TraceWriter(args[++i]);
				break;

			case "-read-trace":
				traceReader = new TraceReplayer(args[++i]);
				break;
			case "-log":
				logger = new MinimalLogger();
				break;
			default:
				System.err.println("Could not parse argument " + args[i]
						+ ". Usage: \n" + USAGE);
				break;
			}
		}

		new TestRuntime(tracer, traceReader, logger).run(clsName, feedName);
	}
}<commit_msg>launch configuration is kind of working<commit_after>package hu.eltesoft.modelexecution.runtime;

import hu.eltesoft.modelexecution.runtime.log.Logger;
import hu.eltesoft.modelexecution.runtime.log.MinimalLogger;
import hu.eltesoft.modelexecution.runtime.log.NoLogger;
import hu.eltesoft.modelexecution.runtime.trace.NoTraceReader;
import hu.eltesoft.modelexecution.runtime.trace.NoTracer;
import hu.eltesoft.modelexecution.runtime.trace.TraceReader;
import hu.eltesoft.modelexecution.runtime.trace.TraceReplayer;
import hu.eltesoft.modelexecution.runtime.trace.TraceWriter;
import hu.eltesoft.modelexecution.runtime.trace.Tracer;

/**
 * BaseRuntime with main. Parses tracing and logging flags.
 * 
 * @author nboldi
 */
public class TestRuntime extends BaseRuntime {

	public static final String OPTION_LOG = "-log";
	public static final String OPTION_READ_TRACE = "-read-trace";
	public static final String OPTION_WRITE_TRACE = "-write-trace";
	private static final String USAGE = "java Q1Runtime class-name feed-function-name "
			+ "[-write-trace output-folder] [-read-trace input-folder] [-log]";

	public TestRuntime(Tracer tracer, TraceReader traceReader, Logger logger) {
		super(tracer, traceReader, logger);
	}

	public static void main(String[] args) throws Exception {

		if (args.length < 2) {
			System.err.println("Not enough parameters. Usage: \n" + USAGE);
		}
		String clsName = args[0];
		String feedName = args[1];
		Tracer tracer = new NoTracer();
		TraceReader traceReader = new NoTraceReader();
		Logger logger = new NoLogger();

		for (int i = 2; i < args.length; ++i) {
			switch (args[i]) {
			case OPTION_WRITE_TRACE:
				tracer = new TraceWriter(args[++i]);
				break;

			case OPTION_READ_TRACE:
				traceReader = new TraceReplayer(args[++i]);
				break;
			case OPTION_LOG:
				logger = new MinimalLogger();
				break;
			default:
				System.err.println("Could not parse argument " + args[i]
						+ ". Usage: \n" + USAGE);
				break;
			}
		}

		new TestRuntime(tracer, traceReader, logger).run(clsName, feedName);
	}
}
{'fraction_non_alphanumeric': 0.12143040905582711, 'fraction_numerical': 0.002572678157962439, 'mean_word_length': 4.29700272479564, 'pattern_counts': {'":': 3, '<': 7, '<?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': '6965662', 'n_tokens_mistral': 1417, 'n_tokens_neox': 1256, 'n_words': 293}