<commit_before>package org.subethamail.smtp.server;

import java.io.IOException;
import java.net.ServerSocket;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.subethamail.smtp.command.CommandDispatcher;
import org.subethamail.smtp.command.CommandLogger;
import org.subethamail.smtp.command.DataCommand;
import org.subethamail.smtp.command.EhloCommand;
import org.subethamail.smtp.command.ExpnCommand;
import org.subethamail.smtp.command.HelloCommand;
import org.subethamail.smtp.command.HelpCommand;
import org.subethamail.smtp.command.MailCommand;
import org.subethamail.smtp.command.NoopCommand;
import org.subethamail.smtp.command.QuitCommand;
import org.subethamail.smtp.command.ReceiptCommand;
import org.subethamail.smtp.command.ResetCommand;
import org.subethamail.smtp.command.VerboseCommand;
import org.subethamail.smtp.command.VerifyCommand;

/**
 * @author <NAME> &lt;<EMAIL>&gt;
 */
public class SMTPServiceCore implements Runnable
{
	private SMTPServerContext serverContext;

	private boolean go = false;

	ServerSocket serverSocket;

	private CommandDispatcher commandDispatcher;

	private static Log log = LogFactory.getLog(SMTPServiceCore.class);

	public SMTPServiceCore(SMTPServerContext context)
	{
		this.serverContext = context;
		initializeCommandDispatcher();
		serverContext.setCommandDispatcher(commandDispatcher);
	}

	private void initializeCommandDispatcher()
	{
		commandDispatcher = new CommandDispatcher(serverContext);
		new CommandLogger(new HelloCommand(commandDispatcher));
		new EhloCommand(commandDispatcher);
		new CommandLogger(new MailCommand(commandDispatcher));
		new CommandLogger(new ReceiptCommand(commandDispatcher));
		new DataCommand(commandDispatcher);
		new ResetCommand(commandDispatcher);
		new NoopCommand(commandDispatcher);
		new CommandLogger(new QuitCommand(commandDispatcher));
		new HelpCommand(commandDispatcher);
		new VerifyCommand(commandDispatcher);
		new ExpnCommand(commandDispatcher);
		new VerboseCommand(commandDispatcher);
		// new EtrnCommand(commandDispatcher);
		// new DsnCommand(commandDispatcher);
	}
<commit_msg>Commented out wrapping of commands with loggers. Left it commented out so we could easily turn the logging back on for debugging.<commit_after>package org.subethamail.smtp.server;

import java.io.IOException;
import java.net.ServerSocket;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.subethamail.smtp.command.CommandDispatcher;
import org.subethamail.smtp.command.CommandLogger;
import org.subethamail.smtp.command.DataCommand;
import org.subethamail.smtp.command.EhloCommand;
import org.subethamail.smtp.command.ExpnCommand;
import org.subethamail.smtp.command.HelloCommand;
import org.subethamail.smtp.command.HelpCommand;
import org.subethamail.smtp.command.MailCommand;
import org.subethamail.smtp.command.NoopCommand;
import org.subethamail.smtp.command.QuitCommand;
import org.subethamail.smtp.command.ReceiptCommand;
import org.subethamail.smtp.command.ResetCommand;
import org.subethamail.smtp.command.VerboseCommand;
import org.subethamail.smtp.command.VerifyCommand;

/**
 * @author <NAME> &lt;<EMAIL>&gt;
 */
public class SMTPServiceCore implements Runnable
{
	private SMTPServerContext serverContext;

	private boolean go = false;

	ServerSocket serverSocket;

	private CommandDispatcher commandDispatcher;

	private static Log log = LogFactory.getLog(SMTPServiceCore.class);

	public SMTPServiceCore(SMTPServerContext context)
	{
		this.serverContext = context;
		initializeCommandDispatcher();
		serverContext.setCommandDispatcher(commandDispatcher);
	}

	private void initializeCommandDispatcher()
	{
		commandDispatcher = new CommandDispatcher(serverContext);
//		new CommandLogger(new HelloCommand(commandDispatcher));
//		new CommandLogger(new EhloCommand(commandDispatcher));
//		new CommandLogger(new MailCommand(commandDispatcher));
//		new CommandLogger(new ReceiptCommand(commandDispatcher));
		new HelloCommand(commandDispatcher);
		new EhloCommand(commandDispatcher);
		new MailCommand(commandDispatcher);
		new ReceiptCommand(commandDispatcher);
		new DataCommand(commandDispatcher);
		new ResetCommand(commandDispatcher);
		new NoopCommand(commandDispatcher);
//		new CommandLogger(new QuitCommand(commandDispatcher));
		new QuitCommand(commandDispatcher);
		new HelpCommand(commandDispatcher);
		new VerifyCommand(commandDispatcher);
		new ExpnCommand(commandDispatcher);
		new VerboseCommand(commandDispatcher);
		// new EtrnCommand(commandDispatcher);
		// new DsnCommand(commandDispatcher);
	}

{'fraction_non_alphanumeric': 0.0912638196401474, 'fraction_numerical': 0.0, 'mean_word_length': 7.024347826086957, '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': '2011354', 'n_tokens_mistral': 1476, 'n_tokens_neox': 1344, 'n_words': 248}