<commit_before>package me.stefvanschie.buildinggame.managers.plots;

import org.bukkit.Bukkit;
import org.bukkit.configuration.file.YamlConfiguration;

import me.stefvanschie.buildinggame.managers.arenas.ArenaManager;
import me.stefvanschie.buildinggame.managers.files.SettingsManager;
import me.stefvanschie.buildinggame.utils.Arena;
import me.stefvanschie.buildinggame.utils.Boundary;
import me.stefvanschie.buildinggame.utils.Plot;

public class BoundaryManager {

	private BoundaryManager() {}
	
	private static BoundaryManager instance = new BoundaryManager();
	
	public static BoundaryManager getInstance() {
		return instance;
	}
	
	public void setup() {
		for (Arena arena : ArenaManager.getInstance().getArenas()) {
			for (Plot plot : arena.getPlots()) {
				try {
					YamlConfiguration arenas = SettingsManager.getInstance().getArenas();
					plot.setBoundary(new Boundary(Bukkit.getWorld(arenas.getString(arena.getName() + "." + plot.getID() + ".high.world")),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".high.x"),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".high.y"),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".high.z"),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".low.x"),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".low.y"),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".low.z")));
				} catch (NullPointerException e) {
					plot.setBoundary(null);
				} catch (IllegalArgumentException iae) {
					plot.setBoundary(null);
				}
			}
		}
	}
}
<commit_msg>Update BoundaryManager.java<commit_after>package me.stefvanschie.buildinggame.managers.plots;

import org.bukkit.Bukkit;
import org.bukkit.configuration.file.YamlConfiguration;

import me.stefvanschie.buildinggame.managers.arenas.ArenaManager;
import me.stefvanschie.buildinggame.managers.files.SettingsManager;
import me.stefvanschie.buildinggame.utils.Arena;
import me.stefvanschie.buildinggame.utils.plot.Boundary;
import me.stefvanschie.buildinggame.utils.plot.Plot;

public class BoundaryManager {

	private BoundaryManager() {}
	
	private static BoundaryManager instance = new BoundaryManager();
	
	public static BoundaryManager getInstance() {
		return instance;
	}
	
	public void setup() {
		for (Arena arena : ArenaManager.getInstance().getArenas()) {
			for (Plot plot : arena.getPlots()) {
				try {
					YamlConfiguration arenas = SettingsManager.getInstance().getArenas();
					plot.setBoundary(new Boundary(Bukkit.getWorld(arenas.getString(arena.getName() + "." + plot.getID() + ".high.world")),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".high.x"),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".high.y"),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".high.z"),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".low.x"),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".low.y"),
							arenas.getInt(arena.getName() + "." + plot.getID() + ".low.z")));
				} catch (NullPointerException e) {
					plot.setBoundary(null);
				} catch (IllegalArgumentException iae) {
					plot.setBoundary(null);
				}
			}
		}
	}
}

{'fraction_non_alphanumeric': 0.1612193588937775, 'fraction_numerical': 0.0, 'mean_word_length': 3.9968602825745685, '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': '2496218', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1061, 'n_words': 157}