<commit_before>package net.darkmorford.btweagles.entity;

import net.darkmorford.btweagles.BetterThanWeagles;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAISwimming;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializers;
import net.minecraft.network.datasync.EntityDataManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class EntitySteveBeej extends EntityMob
{
	private static final DataParameter<Boolean> ARMS_RAISED = EntityDataManager.createKey(EntitySteveBeej.class, DataSerializers.BOOLEAN);
	public static final ResourceLocation LOOT_TABLE = new ResourceLocation(BetterThanWeagles.MODID, "entities/steve_beej");

	public EntitySteveBeej(World worldIn)
	{
		super(worldIn);
		setSize(0.6F, 1.95F);
	}

	@Override
	protected void entityInit()
	{
		super.entityInit();
		this.getDataManager().register(ARMS_RAISED, false);
	}

	public void setArmsRaised(boolean raised)
	{
		this.getDataManager().set(ARMS_RAISED, raised);
	}

	@SideOnly(Side.CLIENT)
	public boolean areArmsRaised()
	{
		return this.getDataManager().get(ARMS_RAISED);
	}

	@Override
	protected void applyEntityAttributes()
	{
		super.applyEntityAttributes();

		this.getEntityAttribute(SharedMonsterAttributes.FOLLOW_RANGE).setBaseValue(35.0);
		this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.13);
		this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(3.0);
		this.getEntityAttribute(SharedMonsterAttributes.ARMOR).setBaseValue(2.0);
	}

	@Override
	protected void initEntityAI()
	{
		this.tasks.addTask(0, new EntityAISwimming(this));
		this.tasks.addTask(7, new EntityAIWander(this, 1.0));
		this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
		this.tasks.addTask(8, new EntityAILookIdle(this));
		this.applyEntityAI();
	}

	private void applyEntityAI()
	{
	}

	@Override
	protected boolean isValidLightLevel()
	{
		return true;
	}

	@Override
	protected ResourceLocation getLootTable()
	{
		return LOOT_TABLE;
	}
}
<commit_msg>Play beejdrop sound on death.<commit_after>package net.darkmorford.btweagles.entity;

import net.darkmorford.btweagles.BetterThanWeagles;
import net.darkmorford.btweagles.sound.ModSounds;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.*;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializers;
import net.minecraft.network.datasync.EntityDataManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundEvent;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class EntitySteveBeej extends EntityMob
{
	private static final DataParameter<Boolean> ARMS_RAISED = EntityDataManager.createKey(EntitySteveBeej.class, DataSerializers.BOOLEAN);
	public static final ResourceLocation LOOT_TABLE = new ResourceLocation(BetterThanWeagles.MODID, "entities/steve_beej");

	public EntitySteveBeej(World worldIn)
	{
		super(worldIn);
		setSize(0.6F, 1.95F);
	}

	@Override
	protected void entityInit()
	{
		super.entityInit();
		this.getDataManager().register(ARMS_RAISED, false);
	}

	@Override
	protected SoundEvent getDeathSound()
	{
		return ModSounds.beejdrop;
	}

	public void setArmsRaised(boolean raised)
	{
		this.getDataManager().set(ARMS_RAISED, raised);
	}

	@SideOnly(Side.CLIENT)
	public boolean areArmsRaised()
	{
		return this.getDataManager().get(ARMS_RAISED);
	}

	@Override
	protected void applyEntityAttributes()
	{
		super.applyEntityAttributes();

		this.getEntityAttribute(SharedMonsterAttributes.FOLLOW_RANGE).setBaseValue(35.0);
		this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.13);
		this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(3.0);
		this.getEntityAttribute(SharedMonsterAttributes.ARMOR).setBaseValue(2.0);
	}

	@Override
	protected void initEntityAI()
	{
		this.tasks.addTask(0, new EntityAISwimming(this));
		this.tasks.addTask(5, new EntityAIMoveTowardsTarget(this, 1.0, 8.0F));
		this.tasks.addTask(7, new EntityAIWander(this, 1.0));
		this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 16.0F));
		this.tasks.addTask(8, new EntityAILookIdle(this));
		this.applyEntityAI();
	}

	private void applyEntityAI()
	{
		this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
		this.targetTasks.addTask(2, new EntityAINearestAttackableTarget<>(this, EntityPlayer.class, true));
	}

	@Override
	protected boolean isValidLightLevel()
	{
		return true;
	}

	@Override
	protected ResourceLocation getLootTable()
	{
		return LOOT_TABLE;
	}
}

{'fraction_non_alphanumeric': 0.10829978915085298, 'fraction_numerical': 0.010350776308223116, 'mean_word_length': 6.433048433048433, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '829539', 'n_tokens_mistral': 1827, 'n_tokens_neox': 1763, 'n_words': 264}