<commit_before>package thesbros.bukkit.CFBanner;
//Imports
import java.io.IOException;
import java.util.logging.Logger;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
//End imports
/**
 * The CFBanner plugin. You can find more information <a href="http://dev.bukkit.org/server-mods/cfbanner">here</a>.
 * @author opspwns, CainFool
 */
//Start class
public class CFBanner extends JavaPlugin implements Listener
{
	//Start setting variables
	Logger log = Logger.getLogger("Minecraft");
	//End setting variables
	//Start enable code
	public void onEnable()
	{
		if(getConfig().getBoolean("enabled") == true)
		{
			getConfig().options().copyDefaults(true);
			if(this.getConfig().getBoolean("autoUpdate") == true)
			{
				Updater updater = new Updater(this, getName().toLowerCase(), getFile(), Updater.UpdateType.DEFAULT, true);
			}
			saveConfig();
			//Register the Listener
			getServer().getPluginManager().registerEvents(this, this);
			try
			{
				Metrics metrics = new Metrics(this);
				metrics.start();
			}
			catch (IOException e)
			{
				log.severe("CFBanner: Could not load Metrics!");
			}
				//TODO: On enable
			}
			else
			{
				//PluginManager
				PluginManager pluginManager = Bukkit.getServer().getPluginManager();
				//Oh no!
				log.info("CFBanner: Plugin not enabled! Check config.yml to enable!");
				//Disable me
				pluginManager.disablePlugin(this);
			}
	}
	//End enable code
	
	//Start disable code
	public void onDisable()
	{
		//TODO: On disable
	}
	//End disable code
	//Listener code
	String ZOMBE_FLY_CODE = "f f 1 0 2 4 3 9 2 0 0 1";
	String ZOMBE_CHEAT_CODE = "f f 2 0 4 8 3 9 2 0 0 2";
	String CJB_CODE = "3 9 2 0 0 0";
	String REI_CODE = "001234567ef";
	
	@EventHandler(priority=EventPriority.HIGH)
	public void onPlayerJoin(final PlayerJoinEvent event)
	{
		Player thePlayer = event.getPlayer();
		if (!thePlayer.hasPermission("cfbanner.fly"))
		{
			thePlayer.sendMessage(this.ZOMBE_FLY_CODE);;
		} 
		if (!thePlayer.hasPermission("cfbanner.xray"))
		{
			thePlayer.sendMessage(this.ZOMBE_CHEAT_CODE);
		}
		if (!thePlayer.hasPermission("cfbanner.cjb"))
		{
			thePlayer.sendMessage(this.CJB_CODE);
		}
		if (thePlayer.hasPermission("cfbanner.minimap"))
		{
			thePlayer.sendMessage(this.REI_CODE);
		}
		if(getConfig().getBoolean("enabled") == true && getConfig().getBoolean("showRunningCFBanner") == true)
		{
			thePlayer.sendMessage(getConfig().getString("runningCFBannerMessage"));<commit_msg>Try fixing ?1?2 in chat when a player joins<commit_after>package thesbros.bukkit.CFBanner;
//Imports
import java.io.IOException;
import java.util.logging.Logger;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
//End imports
/**
 * The CFBanner plugin. You can find more information <a href="http://dev.bukkit.org/server-mods/cfbanner">here</a>.
 * @author opspwns, CainFool
 */
//Start class
public class CFBanner extends JavaPlugin implements Listener
{
	//Start setting variables
	Logger log = Logger.getLogger("Minecraft");
	//End setting variables
	//Start enable code
	public void onEnable()
	{
		if(getConfig().getBoolean("enabled") == true)
		{
			getConfig().options().copyDefaults(true);
			if(this.getConfig().getBoolean("autoUpdate") == true)
			{
				Updater updater = new Updater(this, getName().toLowerCase(), getFile(), Updater.UpdateType.DEFAULT, true);
			}
			saveConfig();
			//Register the Listener
			getServer().getPluginManager().registerEvents(this, this);
			try
			{
				Metrics metrics = new Metrics(this);
				metrics.start();
			}
			catch (IOException e)
			{
				log.severe("CFBanner: Could not load Metrics!");
			}
				//TODO: On enable
			}
			else
			{
				//PluginManager
				PluginManager pluginManager = Bukkit.getServer().getPluginManager();
				//Oh no!
				log.info("CFBanner: Plugin not enabled! Check config.yml to enable!");
				//Disable me
				pluginManager.disablePlugin(this);
			}
	}
	//End enable code
	
	//Start disable code
	public void onDisable()
	{
		//TODO: On disable
	}
	//End disable code
	//Listener code
	String ZOMBE_FLY_CODE = "f f 1 0 2 4 3 9 2 0 0 1";
	String ZOMBE_CHEAT_CODE = "f f 2 0 4 8 3 9 2 0 0 2";
	String CJB_CODE = "3 9 2 0 0 0";
	String REI_CODE = "0 0 1 2 3 4 5 6 7 e f";
	
	@EventHandler(priority=EventPriority.HIGH)
	public void onPlayerJoin(final PlayerJoinEvent event)
	{
		Player thePlayer = event.getPlayer();
		if (!thePlayer.hasPermission("cfbanner.fly"))
		{
			thePlayer.sendMessage(this.ZOMBE_FLY_CODE);;
		} 
		if (!thePlayer.hasPermission("cfbanner.xray"))
		{
			thePlayer.sendMessage(this.ZOMBE_CHEAT_CODE);
		}
		if (!thePlayer.hasPermission("cfbanner.cjb"))
		{
			thePlayer.sendMessage(this.CJB_CODE);
		}
		if (thePlayer.hasPermission("cfbanner.minimap"))
		{
			thePlayer.sendMessage(this.REI_CODE);
		}
		if(getConfig().getBoolean("enabled") == true && getConfig().getBoolean("showRunningCFBanner") == true)
		{
			thePlayer.sendMessage(getConfig().getString("runningCFBannerMessage"));
{'fraction_non_alphanumeric': 0.13402061855670103, 'fraction_numerical': 0.013254786450662739, 'mean_word_length': 4.025901942645699, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7047948', 'n_tokens_mistral': 2110, 'n_tokens_neox': 1820, 'n_words': 413}