<commit_before>package musician101.emergencywhitelist.lib;

import org.bukkit.ChatColor;
import org.bukkit.entity.Player;

/**
 * List of strings used throughout the plugin.
 * 
 * @author Musician101
 */
public class Constants
{
	/** Formatting */
	public static final String PREFIX = ChatColor.GOLD + "[EWL] ";
	
	/** Player messages. */
	public static final String[] HELP_TEXT = {ChatColor.WHITE + "---------" + ChatColor.GOLD + "EmergencyWhitelist" + ChatColor.WHITE + "---------",
		ChatColor.GOLD + "/ewl reload: " + ChatColor.WHITE + "Reload the plugin's config.",
		ChatColor.GOLD + "/ewl toggle: " + ChatColor.WHITE + "Toggles the server whitelist."};
	
	public static final String NO_PERMISSION = PREFIX + "You do not have permission for this command.";
	public static final String WHITELIST_ENABLED = "EmergencyWhitelist has been enabled";
	
	public static String getWhitelistAnnounce(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled. Kicking non-whitelist players";
		else
			isEnabled = "disabled";
		
		return PREFIX + "Whitelist " + isEnabled + ".";
	}
	
	public static String getVersionMessage(boolean enabled, String version)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "Enabled";
		else
			isEnabled = "Disabled";
		
		return PREFIX + "Version " + version + " compiled with Bukkit 1.5.2-R1.0. Whitlist: " + isEnabled + ".";
	}
	
	/** Command names */
	public static final String EWL = "ewl";
	public static final String HELP = "help";
	public static final String RELOAD = "reload";
	public static final String TOGGLE = "toggle";
	
	/** Permissions */
	public static final String PERMISSION_EWL = "ewl.";
	public static final String PERMISSION_HELP = PERMISSION_EWL + "help";
	public static final String PERMISSION_RELOAD = PERMISSION_EWL + "reload";
	public static final String PERMISSION_TOGGLE = PERMISSION_EWL + "toggle";
	public static final String PERMISSION_WHITELIST = PERMISSION_EWL + "whitelist";
	
	/** Console Messages */
	public static String getDisconnectedPlayer(Player player)
	{
		return player.getName() + " attempted to connect.";
	}
	
	public static final String getToggleMessage(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled";
		else
			isEnabled = "disabled";
		
		return "Use /ewl toggle to " + isEnabled + " the whitelist.";
	}
	
	public static String getWhitelistEnabled(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled";
		else
			isEnabled = "disabled";
		
		return "Whitelist is currently " + isEnabled + ".";
	}
}
<commit_msg>Fixed a spelling mistake in getVersionMessage().<commit_after>package musician101.emergencywhitelist.lib;

import org.bukkit.ChatColor;
import org.bukkit.entity.Player;

/**
 * List of strings used throughout the plugin.
 * 
 * @author Musician101
 */
public class Constants
{
	/** Formatting */
	public static final String PREFIX = ChatColor.GOLD + "[EWL] ";
	
	/** Player messages. */
	public static final String[] HELP_TEXT = {ChatColor.WHITE + "---------" + ChatColor.GOLD + "EmergencyWhitelist" + ChatColor.WHITE + "---------",
		ChatColor.GOLD + "/ewl reload: " + ChatColor.WHITE + "Reload the plugin's config.",
		ChatColor.GOLD + "/ewl toggle: " + ChatColor.WHITE + "Toggles the server whitelist."};
	
	public static final String NO_PERMISSION = PREFIX + "You do not have permission for this command.";
	public static final String WHITELIST_ENABLED = "EmergencyWhitelist has been enabled";
	
	public static String getWhitelistAnnounce(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled. Kicking non-whitelist players";
		else
			isEnabled = "disabled";
		
		return PREFIX + "Whitelist " + isEnabled + ".";
	}
	
	public static String getVersionMessage(boolean enabled, String version)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "Enabled";
		else
			isEnabled = "Disabled";
		
		return PREFIX + "Version " + version + " compiled with Bukkit 1.5.2-R1.0. Whitelist: " + isEnabled + ".";
	}
	
	/** Command names */
	public static final String EWL = "ewl";
	public static final String HELP = "help";
	public static final String RELOAD = "reload";
	public static final String TOGGLE = "toggle";
	
	/** Permissions */
	public static final String PERMISSION_EWL = "ewl.";
	public static final String PERMISSION_HELP = PERMISSION_EWL + "help";
	public static final String PERMISSION_RELOAD = PERMISSION_EWL + "reload";
	public static final String PERMISSION_TOGGLE = PERMISSION_EWL + "toggle";
	public static final String PERMISSION_WHITELIST = PERMISSION_EWL + "whitelist";
	
	/** Console Messages */
	public static String getDisconnectedPlayer(Player player)
	{
		return player.getName() + " attempted to connect.";
	}
	
	public static final String getToggleMessage(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled";
		else
			isEnabled = "disabled";
		
		return "Use /ewl toggle to " + isEnabled + " the whitelist.";
	}
	
	public static String getWhitelistEnabled(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled";
		else
			isEnabled = "disabled";
		
		return "Whitelist is currently " + isEnabled + ".";
	}
}

{'fraction_non_alphanumeric': 0.11810872894333843, 'fraction_numerical': 0.004211332312404288, 'mean_word_length': 3.815668202764977, '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': '6435408', 'n_tokens_mistral': 1759, 'n_tokens_neox': 1578, 'n_words': 481}