<commit_before>package crazypants.enderio.capability;

import java.util.ArrayList;
import java.util.List;

import net.minecraft.item.ItemStack;
import net.minecraftforge.items.SlotItemHandler;

public class EnderSlot extends SlotItemHandler {

  public EnderSlot(InventorySlot itemHandler, int xPosition, int yPosition) {
    super(itemHandler, 0, xPosition, yPosition);
  }

  public EnderSlot(EnderInventory enderInventory, String ident, int xPosition, int yPosition) {
    super(enderInventory.getSlot(ident), 0, xPosition, yPosition);
  }

  public EnderSlot(EnderInventory enderInventory, Enum<?> ident, int xPosition, int yPosition) {
    super(enderInventory.getSlot(ident), 0, xPosition, yPosition);
  }

  public static List<EnderSlot> create(EnderInventory enderInventory, EnderInventory.Type type, int xPosition, int yPosition, int cols, int rows) {
    return create(enderInventory, type, xPosition, yPosition, 18, 18, cols, rows);
  }

  public static List<EnderSlot> create(EnderInventory enderInventory, EnderInventory.Type type, int xPosition, int yPosition, int xOffset, int yOffset,
      int cols, int rows) {
    List<EnderSlot> result = new ArrayList<EnderSlot>();
    int x = 0, y = 0;
    EnderInventory.View view = enderInventory.getView(type);
    for (int i = 0; i < view.getSlots(); i++) {
      InventorySlot slot = view.getSlot(i);
      if (slot != null) {
        result.add(new EnderSlot(slot, xPosition + x * xOffset, yPosition + y * yOffset));
        x++;
        if (x >= cols) {
          y++;
          if (y >= rows) {
            return result;<commit_msg>Small fix in yet unused class<commit_after>package crazypants.enderio.capability;

import java.util.ArrayList;
import java.util.List;

import net.minecraft.item.ItemStack;
import net.minecraftforge.items.SlotItemHandler;

public class EnderSlot extends SlotItemHandler {

  public EnderSlot(InventorySlot itemHandler, int xPosition, int yPosition) {
    super(itemHandler, 0, xPosition, yPosition);
  }

  public EnderSlot(EnderInventory enderInventory, String ident, int xPosition, int yPosition) {
    super(enderInventory.getSlot(ident), 0, xPosition, yPosition);
  }

  public EnderSlot(EnderInventory enderInventory, Enum<?> ident, int xPosition, int yPosition) {
    super(enderInventory.getSlot(ident), 0, xPosition, yPosition);
  }

  public static List<EnderSlot> create(EnderInventory enderInventory, EnderInventory.Type type, int xPosition, int yPosition, int cols, int rows) {
    return create(enderInventory, type, xPosition, yPosition, 18, 18, cols, rows);
  }

  public static List<EnderSlot> create(EnderInventory enderInventory, EnderInventory.Type type, int xPosition, int yPosition, int xOffset, int yOffset,
      int cols, int rows) {
    List<EnderSlot> result = new ArrayList<EnderSlot>();
    int x = 0, y = 0;
    EnderInventory.View view = enderInventory.getView(type);
    for (int i = 0; i < view.getSlots(); i++) {
      InventorySlot slot = view.getSlot(i);
      if (slot != null) {
        result.add(new EnderSlot(slot, xPosition + x * xOffset, yPosition + y * yOffset));
        x++;
        if (x >= cols) {
          y++;
          x = 0;
          if (y >= rows) {
            return result;
{'fraction_non_alphanumeric': 0.10728682170542636, 'fraction_numerical': 0.0065116279069767444, 'mean_word_length': 3.9251908396946567, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '4635612', 'n_tokens_mistral': 1047, 'n_tokens_neox': 1018, 'n_words': 282}