<commit_before>package com.jenjinstudios.world.client;

import com.jenjinstudios.client.net.AuthClient;
import com.jenjinstudios.client.net.ClientUser;
import com.jenjinstudios.core.MessageIO;
import com.jenjinstudios.world.World;
import com.jenjinstudios.world.client.message.WorldClientMessageFactory;
import com.jenjinstudios.world.io.WorldDocumentException;

import java.io.File;

/**
 * The WorldClient class is used to connect to a WorldServer and stores information about the environment immediately
 * surrounding the player.
 * @author <NAME>
 */
public class WorldClient extends AuthClient
{
	private final WorldClientMessageFactory messageFactory;
	private ServerWorldFileTracker serverWorldFileTracker;
	private World world;
	private ClientPlayer player;

	public WorldClient(MessageIO messageIO, ClientUser clientUser, File worldFile) throws WorldDocumentException {
		super(messageIO, clientUser);
		this.messageFactory = new WorldClientMessageFactory(getMessageRegistry());
		serverWorldFileTracker = new ServerWorldFileTracker(this, worldFile);
		world = serverWorldFileTracker.readWorldFromFile();
	}

	@Override
	public WorldClientMessageFactory getMessageFactory() {return messageFactory; }

	public ServerWorldFileTracker getServerWorldFileTracker() { return serverWorldFileTracker; }

	public ClientPlayer getPlayer() { return player; }

	public void setPlayer(ClientPlayer player) { this.player = player; }

	public World getWorld() { return world; }

	public void readWorldFile() throws WorldDocumentException { world = serverWorldFileTracker.readWorldFromFile(); }

}<commit_msg>Made serverWorldFileTracker final<commit_after>package com.jenjinstudios.world.client;

import com.jenjinstudios.client.net.AuthClient;
import com.jenjinstudios.client.net.ClientUser;
import com.jenjinstudios.core.MessageIO;
import com.jenjinstudios.world.World;
import com.jenjinstudios.world.client.message.WorldClientMessageFactory;
import com.jenjinstudios.world.io.WorldDocumentException;

import java.io.File;

/**
 * The WorldClient class is used to connect to a WorldServer and stores information about the environment immediately
 * surrounding the player.
 * @author <NAME>
 */
public class WorldClient extends AuthClient
{
	private final WorldClientMessageFactory messageFactory;
	private final ServerWorldFileTracker serverWorldFileTracker;
	private World world;
	private ClientPlayer player;

	public WorldClient(MessageIO messageIO, ClientUser clientUser, File worldFile) throws WorldDocumentException {
		super(messageIO, clientUser);
		this.messageFactory = new WorldClientMessageFactory(getMessageRegistry());
		serverWorldFileTracker = new ServerWorldFileTracker(this, worldFile);
		world = serverWorldFileTracker.readWorldFromFile();
	}

	@Override
	public WorldClientMessageFactory getMessageFactory() {return messageFactory; }

	public ServerWorldFileTracker getServerWorldFileTracker() { return serverWorldFileTracker; }

	public ClientPlayer getPlayer() { return player; }

	public void setPlayer(ClientPlayer player) { this.player = player; }

	public World getWorld() { return world; }

	public void readWorldFile() throws WorldDocumentException { world = serverWorldFileTracker.readWorldFromFile(); }

}
{'fraction_non_alphanumeric': 0.07487623762376237, 'fraction_numerical': 0.0, 'mean_word_length': 6.809178743961352, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1698024', 'n_tokens_mistral': 868, 'n_tokens_neox': 845, 'n_words': 223}