<commit_before>package net.estinet.gFeatures.Feature.gFactions;

import org.bukkit.Bukkit;
import org.bukkit.entity.EnderCrystal;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityExplodeEvent;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.event.player.PlayerInteractEntityEvent;
import org.bukkit.event.world.WorldLoadEvent;

import net.estinet.gFeatures.Feature.gFactions.Menus.GetMenu;
import net.estinet.gFeatures.Feature.gRanks.Basis;

public class EventHub {
	GetMenu gm = new GetMenu();
	public void onPlayerInteract(PlayerInteractEntityEvent event){
		if(event.getRightClicked().getType().equals(EntityType.ENDER_CRYSTAL)){
			event.setCancelled(true);
			gm.start(event);
		}
	}
	public void onWorldLoad(WorldLoadEvent event){
		if(event.getWorld().getName().equals("Factions1.8.3")){
			for(Entity ent : event.getWorld().getEntities()){
				if(ent.getType().equals(EntityType.ENDER_CRYSTAL)){
					ent.remove();
				}
			}
		Blaze.world.spawn(Blaze.sniper, EnderCrystal.class);
		Blaze.world.spawn(Blaze.shotgun, EnderCrystal.class);
		Blaze.world.spawn(Blaze.autorifle, EnderCrystal.class);
		for(Entity ent : event.getWorld().getEntities()){
			if(ent.getType().equals(EntityType.ENDER_CRYSTAL)){
				if(ent.getLocation().equals(Blaze.sniper)){
					Blaze.snipers = ent.getUniqueId();
				}
				else if(ent.getLocation().equals(Blaze.shotgun)){
					Blaze.shotguns = ent.getUniqueId();
				}
				else if(ent.getLocation().equals(Blaze.autorifle)){
					Blaze.autorifles = ent.getUniqueId();
				}
			}
		}
		}
	}
	public void onEntityDamage(EntityDamageEvent event){
		if(event.getEntityType().equals(EntityType.ENDER_CRYSTAL)){
			event.setCancelled(true);
			try{
				EntityDamageByEntityEvent ev = (EntityDamageByEntityEvent) event;
				if(ev.getDamager() instanceof Player){
					gm.start(ev);
				}
			}	
			catch(Exception e){
				e.printStackTrace();
			}
		}
	}
	public void onEntityExplode(EntityExplodeEvent event){
		if(event.getEntityType().equals(EntityType.ENDER_CRYSTAL)){
			event.setCancelled(false);
		}
	}
	public void onPlayerChat(AsyncPlayerChatEvent event){
		try{
		String prefix;
		if(){
			
		}
		String name = prefix.replace('&', '');
		event.getPlayer().setDisplayName(name + event.getPlayer().getName());
		}
		catch(Exception e){
			Basis.getRank("Default").addPerson(event.getPlayer().getUniqueId().toString());
		}
	}
}<commit_msg>Changes<commit_after>package net.estinet.gFeatures.Feature.gFactions;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.EnderCrystal;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityExplodeEvent;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.event.player.PlayerInteractEntityEvent;
import org.bukkit.event.world.WorldLoadEvent;

import net.estinet.gFeatures.Basic;
import net.estinet.gFeatures.API.Inventory.InventoryAPI;
import net.estinet.gFeatures.Feature.gFactions.Menus.GetMenu;
import net.estinet.gFeatures.Feature.gRanks.Basis;

public class EventHub {
	GetMenu gm = new GetMenu();
	public void onPlayerInteract(PlayerInteractEntityEvent event){
		if(event.getRightClicked().getType().equals(EntityType.ENDER_CRYSTAL)){
			event.setCancelled(true);
			gm.start(event);
		}
	}
	public void onWorldLoad(WorldLoadEvent event){
		if(event.getWorld().getName().equals("Factions1.8.3")){
			for(Entity ent : event.getWorld().getEntities()){
				if(ent.getType().equals(EntityType.ENDER_CRYSTAL)){
					ent.remove();
				}
			}
		Blaze.world.spawn(Blaze.sniper, EnderCrystal.class);
		Blaze.world.spawn(Blaze.shotgun, EnderCrystal.class);
		Blaze.world.spawn(Blaze.autorifle, EnderCrystal.class);
		for(Entity ent : event.getWorld().getEntities()){
			if(ent.getType().equals(EntityType.ENDER_CRYSTAL)){
				if(ent.getLocation().equals(Blaze.sniper)){
					Blaze.snipers = ent.getUniqueId();
				}
				else if(ent.getLocation().equals(Blaze.shotgun)){
					Blaze.shotguns = ent.getUniqueId();
				}
				else if(ent.getLocation().equals(Blaze.autorifle)){
					Blaze.autorifles = ent.getUniqueId();
				}
			}
		}
		}
	}
	public void onEntityDamage(EntityDamageEvent event){
		if(event.getEntityType().equals(EntityType.ENDER_CRYSTAL)){
			event.setCancelled(true);
			try{
				EntityDamageByEntityEvent ev = (EntityDamageByEntityEvent) event;
				if(ev.getDamager() instanceof Player){
					gm.start(ev);
				}
			}	
			catch(Exception e){
				e.printStackTrace();
			}
		}
	}
	public void onEntityExplode(EntityExplodeEvent event){
		if(event.getEntityType().equals(EntityType.ENDER_CRYSTAL)){
			event.setCancelled(false);
		}
	}
	public void onPlayerChat(AsyncPlayerChatEvent event){
		Player pl = event.getPlayer();
		try{
		String prefix;
			if(!(Basic.getgPlayer(pl.getUniqueId().toString()).getValue("gFactionsTier").equals("autorifle"))){
				prefix = ChatColor.BOLD + "[" + ChatColor.DARK_AQUA + "Auto-Rifler" + ChatColor.RESET + "" + ChatColor.BOLD + "]";
			}
			else if(!(Basic.getgPlayer(pl.getUniqueId().toString()).getValue("gFactionsTier").equals("shotgun"))){
				prefix = ChatColor.BOLD + "[" + ChatColor.GRAY + "Shotgunner" + ChatColor.RESET + "" + ChatColor.BOLD + "]";
			}
			else if(!(Basic.getgPlayer(pl.getUniqueId().toString()).getValue("gFactionsTier").equals("sniper"))){
				prefix = ChatColor.BOLD + "[" + ChatColor.RED + "Sniper" + ChatColor.RESET + "" + ChatColor.BOLD + "]";
			}
			else{
				prefix = ChatColor.BOLD + "[" + ChatColor.GOLD + "Melee" + ChatColor.RESET + "" + ChatColor.BOLD + "]";
			}
		event.getPlayer().setDisplayName(prefix + event.getPlayer().getDisplayName());
		}
		catch(Exception e){
			Basis.getRank("Default").addPerson(event.getPlayer().getUniqueId().toString());
		}
	}
}
{'fraction_non_alphanumeric': 0.14952349654945776, 'fraction_numerical': 0.000985869208018403, 'mean_word_length': 4.830459770114943, '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': '7388959', 'n_tokens_mistral': 2410, 'n_tokens_neox': 2137, 'n_words': 261}