<commit_before>package com.untamedears.CivPets;

import java.util.List;
import java.util.Random;

import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Ocelot;
import org.bukkit.entity.Player;
import org.bukkit.entity.Wolf;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.player.PlayerInteractEntityEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.material.MaterialData;
import org.bukkit.material.Skull;
import org.bukkit.metadata.FixedMetadataValue;

public class EventListener implements Listener {
	
	protected CivPetsPlugin plugin;
	protected static Random rand;

	public EventListener(CivPetsPlugin plugin) {
		this.plugin = plugin;
		rand = new Random();
	}
	
	@EventHandler(priority=EventPriority.NORMAL)
	protected void onPlayerInteractEntityEvent(PlayerInteractEntityEvent event) {
		Player p = event.getPlayer();
		Entity e = event.getRightClicked();
		if (p != null && e != null) {
			if (e instanceof Wolf || e instanceof Ocelot) {
				ItemStack i = p.getItemInHand();
				if (i != null) {
					if (i.getType() == plugin.getUntameMaterial()) {
						event.setCancelled(true);
						if (attemptUntame(e, p.getName())) {<commit_msg>Remove unused imports<commit_after>package com.untamedears.CivPets;

import java.util.Random;

import org.bukkit.entity.Entity;
import org.bukkit.entity.Ocelot;
import org.bukkit.entity.Player;
import org.bukkit.entity.Wolf;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractEntityEvent;
import org.bukkit.inventory.ItemStack;

public class EventListener implements Listener {
	
	protected CivPetsPlugin plugin;
	protected static Random rand;

	public EventListener(CivPetsPlugin plugin) {
		this.plugin = plugin;
		rand = new Random();
	}
	
	@EventHandler(priority=EventPriority.NORMAL)
	protected void onPlayerInteractEntityEvent(PlayerInteractEntityEvent event) {
		Player p = event.getPlayer();
		Entity e = event.getRightClicked();
		if (p != null && e != null) {
			if (e instanceof Wolf || e instanceof Ocelot) {
				ItemStack i = p.getItemInHand();
				if (i != null) {
					if (i.getType() == plugin.getUntameMaterial()) {
						event.setCancelled(true);
						if (attemptUntame(e, p.getName())) {
{'fraction_non_alphanumeric': 0.11193447737909516, 'fraction_numerical': 0.0, 'mean_word_length': 5.007025761124122, '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': '5208773', 'n_tokens_mistral': 900, 'n_tokens_neox': 807, 'n_words': 176}