<commit_before>package xyz.brassgoggledcoders.steamagerevolution.utils.inventory;

import com.teamacronymcoders.base.containers.ContainerBase;
import com.teamacronymcoders.base.util.inventory.SlotHandlerOutput;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.items.SlotItemHandler;

public class ContainerInventory extends ContainerBase {
	public ContainerInventory(EntityPlayer player, IHasInventory holder) {
		if(holder.getInventory().itemInput != null) {
			for(int i = 0; i < holder.getInventory().itemInput.getHandler().getSlots(); i++) {
				addSlotToContainer(new SlotItemHandler(holder.getInventory().itemInput.getHandler(), i,
						holder.getInventory().itemInput.getX(i), holder.getInventory().itemInput.getY(i)));
			}
		}
		if(holder.getInventory().itemOutput != null) {
			for(int i = 0; i < holder.getInventory().itemOutput.getHandler().getSlots(); i++) {
				addSlotToContainer(new SlotHandlerOutput(holder.getInventory().itemOutput.getHandler(), i,
						holder.getInventory().itemOutput.getX(i), holder.getInventory().itemOutput.getY(i)));
			}
		}
		createPlayerSlots(player.inventory);
	}

	@Override
	public boolean canInteractWith(EntityPlayer playerIn) {
		return true;
	}

}<commit_msg>Prevent crash on shift click. #26<commit_after>package xyz.brassgoggledcoders.steamagerevolution.utils.inventory;

import com.teamacronymcoders.base.containers.ContainerBase;
import com.teamacronymcoders.base.util.inventory.SlotHandlerOutput;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraftforge.items.SlotItemHandler;

public class ContainerInventory extends ContainerBase {
	public ContainerInventory(EntityPlayer player, IHasInventory holder) {
		if(holder.getInventory().itemInput != null) {
			for(int i = 0; i < holder.getInventory().itemInput.getHandler().getSlots(); i++) {
				addSlotToContainer(new SlotItemHandler(holder.getInventory().itemInput.getHandler(), i,
						holder.getInventory().itemInput.getX(i), holder.getInventory().itemInput.getY(i)));
			}
		}
		if(holder.getInventory().itemOutput != null) {
			for(int i = 0; i < holder.getInventory().itemOutput.getHandler().getSlots(); i++) {
				addSlotToContainer(new SlotHandlerOutput(holder.getInventory().itemOutput.getHandler(), i,
						holder.getInventory().itemOutput.getX(i), holder.getInventory().itemOutput.getY(i)));
			}
		}
		createPlayerSlots(player.inventory);
	}

	@Override
	public boolean canInteractWith(EntityPlayer playerIn) {
		return true;
	}

	// TODO
	@Override
	public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {
		return ItemStack.EMPTY;
	}

}
{'fraction_non_alphanumeric': 0.12861978187288453, 'fraction_numerical': 0.0022564874012786762, 'mean_word_length': 5.80306905370844, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3756276', 'n_tokens_mistral': 915, 'n_tokens_neox': 846, 'n_words': 125}