<commit_before>package kabbage.zarena;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

import kabbage.customentitylibrary.CustomEntityLibrary;
import kabbage.zarena.commands.DSpawnCommands;
import kabbage.zarena.commands.ISpawnCommands;
import kabbage.zarena.commands.ZACommands;
import kabbage.zarena.commands.ZSignCommands;
import kabbage.zarena.commands.ZSpawnCommands;
import kabbage.zarena.customentities.CustomGiant;
import kabbage.zarena.customentities.CustomSkeleton;
import kabbage.zarena.customentities.CustomWither;
import kabbage.zarena.customentities.CustomWolf;
import kabbage.zarena.customentities.CustomZombie;
import kabbage.zarena.customentities.EntityTypeConfiguration;
import kabbage.zarena.customentities.SkeletonTypeConfiguration;
import kabbage.zarena.events.GameStopCause;
import kabbage.zarena.events.GameStopEvent;
import kabbage.zarena.listeners.*;
import kabbage.zarena.signs.ZSignCustomItem;
import kabbage.zarena.spout.PlayerOptionsHandler;
import kabbage.zarena.spout.SpoutHandler;
import kabbage.zarena.utils.Constants;
import kabbage.zarena.utils.Permissions;
import kabbage.zarena.utils.Utils;

import net.minecraft.server.v1_4_6.EntityGiantZombie;
import net.minecraft.server.v1_4_6.EntitySkeleton;
import net.minecraft.server.v1_4_6.EntityTypes;
import net.minecraft.server.v1_4_6.EntityWither;
import net.minecraft.server.v1_4_6.EntityWolf;
import net.minecraft.server.v1_4_6.EntityZombie;

import org.bukkit.Bukkit;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

public class ZArena extends JavaPlugin
{
	private static ZArena instance;
	public static Logger logger;
	
	private GameHandler gameHandler; //Game handler
	private PlayerOptionsHandler playerOptionsHandler;
	
	//Command executors
	private final ZACommands zaCommands = new ZACommands();
	private final ZSpawnCommands zSpawnCommands = new ZSpawnCommands();
	private final DSpawnCommands dSpawnCommands = new DSpawnCommands();
	private final ISpawnCommands iSpawnCommands = new ISpawnCommands();
	private final ZSignCommands zSignCommands = new ZSignCommands();
	
	//Listeners
	private EntityListener eListener;
	private PlayerListener pListener;
	private WorldListener wListener;
	private BlockListener bListener;
	
	private boolean spoutEnabled;
	
	public void onEnable()
	{
		instance = this;
		logger = Bukkit.getServer().getLogger();
		
		CustomEntityLibrary.load(this);
		
		PluginManager pm = Bukkit.getServer().getPluginManager();
		Plugin p = pm.getPlugin("Spout");
		if(p != null)
			SpoutHandler.onEnable();
		
		loadConfiguration();	//Lots of stuff relies on the config, so load it early
		//Load some stuff the game handler relies on
		loadDefaults();
		if(getConfig().getBoolean(Constants.FIRST_TIME))
			loadPluginFirstTime();
		saveConfig();
		loadDonatorInfo();
		loadZSignCustomItems();
		
		gameHandler = new GameHandler(); //Create the Game Handler...needs to be done so early because stuff below rely on it
		
		//Load more stuff
		loadCustomZombie();
		loadGamemodeTypes();
		loadEntityTypes();
		loadFiles();
		<commit_msg>Fix how the boolean 'spoutEnabled' is never actually set anywhere<commit_after>package kabbage.zarena;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

import kabbage.customentitylibrary.CustomEntityLibrary;
import kabbage.zarena.commands.DSpawnCommands;
import kabbage.zarena.commands.ISpawnCommands;
import kabbage.zarena.commands.ZACommands;
import kabbage.zarena.commands.ZSignCommands;
import kabbage.zarena.commands.ZSpawnCommands;
import kabbage.zarena.customentities.CustomGiant;
import kabbage.zarena.customentities.CustomSkeleton;
import kabbage.zarena.customentities.CustomWither;
import kabbage.zarena.customentities.CustomWolf;
import kabbage.zarena.customentities.CustomZombie;
import kabbage.zarena.customentities.EntityTypeConfiguration;
import kabbage.zarena.customentities.SkeletonTypeConfiguration;
import kabbage.zarena.events.GameStopCause;
import kabbage.zarena.events.GameStopEvent;
import kabbage.zarena.listeners.*;
import kabbage.zarena.signs.ZSignCustomItem;
import kabbage.zarena.spout.PlayerOptionsHandler;
import kabbage.zarena.spout.SpoutHandler;
import kabbage.zarena.utils.Constants;
import kabbage.zarena.utils.Permissions;
import kabbage.zarena.utils.Utils;

import net.minecraft.server.v1_4_6.EntityGiantZombie;
import net.minecraft.server.v1_4_6.EntitySkeleton;
import net.minecraft.server.v1_4_6.EntityTypes;
import net.minecraft.server.v1_4_6.EntityWither;
import net.minecraft.server.v1_4_6.EntityWolf;
import net.minecraft.server.v1_4_6.EntityZombie;

import org.bukkit.Bukkit;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

public class ZArena extends JavaPlugin
{
	private static ZArena instance;
	public static Logger logger;
	
	private GameHandler gameHandler; //Game handler
	private PlayerOptionsHandler playerOptionsHandler;
	
	//Command executors
	private final ZACommands zaCommands = new ZACommands();
	private final ZSpawnCommands zSpawnCommands = new ZSpawnCommands();
	private final DSpawnCommands dSpawnCommands = new DSpawnCommands();
	private final ISpawnCommands iSpawnCommands = new ISpawnCommands();
	private final ZSignCommands zSignCommands = new ZSignCommands();
	
	//Listeners
	private EntityListener eListener;
	private PlayerListener pListener;
	private WorldListener wListener;
	private BlockListener bListener;
	
	private boolean spoutEnabled = false;
	
	public void onEnable()
	{
		instance = this;
		logger = Bukkit.getServer().getLogger();
		
		CustomEntityLibrary.load(this);
		
		PluginManager pm = Bukkit.getServer().getPluginManager();
		Plugin p = pm.getPlugin("Spout");
		if(p != null)
		{
			spoutEnabled = true;
			SpoutHandler.onEnable();
		}
		
		loadConfiguration();	//Lots of stuff relies on the config, so load it early
		//Load some stuff the game handler relies on
		loadDefaults();
		if(getConfig().getBoolean(Constants.FIRST_TIME))
			loadPluginFirstTime();
		saveConfig();
		loadDonatorInfo();
		loadZSignCustomItems();
		
		gameHandler = new GameHandler(); //Create the Game Handler...needs to be done so early because stuff below rely on it
		
		//Load more stuff
		loadCustomZombie();
		loadGamemodeTypes();
		loadEntityTypes();
		loadFiles();
		
{'fraction_non_alphanumeric': 0.08958998935037274, 'fraction_numerical': 0.004792332268370607, 'mean_word_length': 6.06109022556391, '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': '6414188', 'n_tokens_mistral': 2440, 'n_tokens_neox': 2354, 'n_words': 490}