<commit_before>package com.builtbroken.industry.content;

import com.builtbroken.industry.BasicIndustry;
import com.builtbroken.mc.core.network.packet.PacketTile;
import com.builtbroken.mc.core.network.packet.PacketType;
import com.builtbroken.mc.lib.transform.vector.Vector3;
import io.netty.buffer.ByteBuf;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;

import java.util.Iterator;

/** Machine that can process one( or more) items into an output recipe
 * Created by robert on 1/9/2015.
 */
public abstract class TileProcessor extends TileMachine
{
    /**
     * Is the machine currently processing
     */
    protected boolean isProcessing = false;

    /**
     * How many ticks towards processing time
     */
    protected int processing_ticks = 0;
    /**
     * How many ticks until processing is done
     */
    protected int max_processing_ticks = 0;

    public TileProcessor(Material material, int inventory_size)
    {
        super(material, inventory_size);
    }

    //==============================
    //======= Implements ===========
    //==============================

    /**
     * Gets the recipe for the current input slot(s)
     */
    protected abstract ItemStack getRecipe();

    //==============================
    //======= Update Logic =========
    //==============================

    @Override
    protected boolean onPlayerRightClick(EntityPlayer player, int side, Vector3 hit)
    {
        if (isServer())
        {
            openGui(player, BasicIndustry.INSTANCE);
        }
        return true;
    }

    @Override
    public void update()<commit_msg>Refractor changes in VE<commit_after>package com.builtbroken.industry.content;

import com.builtbroken.industry.BasicIndustry;
import com.builtbroken.mc.core.network.packet.PacketTile;
import com.builtbroken.mc.core.network.packet.PacketType;
import com.builtbroken.mc.lib.transform.vector.Pos;
import io.netty.buffer.ByteBuf;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;

import java.util.Iterator;

/** Machine that can process one( or more) items into an output recipe
 * Created by robert on 1/9/2015.
 */
public abstract class TileProcessor extends TileMachine
{
    /**
     * Is the machine currently processing
     */
    protected boolean isProcessing = false;

    /**
     * How many ticks towards processing time
     */
    protected int processing_ticks = 0;
    /**
     * How many ticks until processing is done
     */
    protected int max_processing_ticks = 0;

    public TileProcessor(Material material, int inventory_size)
    {
        super(material, inventory_size);
    }

    //==============================
    //======= Implements ===========
    //==============================

    /**
     * Gets the recipe for the current input slot(s)
     */
    protected abstract ItemStack getRecipe();

    //==============================
    //======= Update Logic =========
    //==============================

    @Override
    protected boolean onPlayerRightClick(EntityPlayer player, int side, Pos hit)
    {
        if (isServer())
        {
            openGui(player, BasicIndustry.INSTANCE);
        }
        return true;
    }

    @Override
    public void update()
{'fraction_non_alphanumeric': 0.17388792605430387, 'fraction_numerical': 0.005199306759098787, 'mean_word_length': 3.172289156626506, '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': '6125778', 'n_tokens_mistral': 967, 'n_tokens_neox': 906, 'n_words': 234}