<commit_before>package net.dlogic.kryonet.server;

import java.io.IOException;

import net.dlogic.kryonet.common.utility.KryonetUtility;

import com.esotericsoftware.kryonet.Listener;
import com.esotericsoftware.kryonet.Server;

public class KryonetServer {
	private Server server;
	private KryonetServerListener listener;
	public KryonetServer(int writeBufferSize, int objectBufferSize) {
		server = new Server(writeBufferSize, objectBufferSize);
		KryonetUtility.registerClasses(server);
		server.addListener(listener = new KryonetServerListener(server));
	}
	public void start(int tcpPort, int udpPort) throws IOException {
		server.start();
		server.bind(tcpPort, udpPort);
	}
	public KryonetServerListener getKryonetServerListener() {
		return listener;
	}
	public void addListener(Listener listener) {
		server.addListener(listener);
	}
	public void registerClass(Class type) {
		server.getKryo().register(type);
	}
}<commit_msg>added logging<commit_after>package net.dlogic.kryonet.server;

import java.io.IOException;

import net.dlogic.kryonet.common.utility.KryonetUtility;

import com.esotericsoftware.kryonet.Listener;
import com.esotericsoftware.kryonet.Server;
import com.esotericsoftware.minlog.Log;

public class KryonetServer {
	private Server server;
	private KryonetServerListener listener;
	public KryonetServer(int writeBufferSize, int objectBufferSize) {
		Log.info("KryonetServer(" + writeBufferSize +  ", " + objectBufferSize + ")");
		server = new Server(writeBufferSize, objectBufferSize);
		KryonetUtility.registerClasses(server);
		server.addListener(listener = new KryonetServerListener(server));
	}
	public void start(int tcpPort, int udpPort) throws IOException {
		Log.info("KryonetServer.start(" + tcpPort +  ", " + udpPort + ")");
		server.start();
		server.bind(tcpPort, udpPort);
	}
	public KryonetServerListener getKryonetServerListener() {
		return listener;
	}
	public void addListener(Listener listener) {
		server.addListener(listener);
	}
	public void registerClass(Class type) {
		server.getKryo().register(type);
	}
}
{'fraction_non_alphanumeric': 0.10334788937409024, 'fraction_numerical': 0.0, 'mean_word_length': 6.159722222222222, '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': '3947802', 'n_tokens_mistral': 702, 'n_tokens_neox': 651, 'n_words': 125}