<commit_before>package mcjty.rftools.blocks.shaper;

import mcjty.lib.container.GenericGuiContainer;
import mcjty.lib.gui.Window;
import mcjty.lib.gui.WindowManager;
import mcjty.lib.gui.layout.PositionalLayout;
import mcjty.lib.gui.widgets.*;
import mcjty.rftools.RFTools;
import mcjty.rftools.items.builder.ShapeCardItem;
import mcjty.rftools.network.RFToolsMessages;
import mcjty.rftools.shapes.*;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import org.lwjgl.input.Mouse;

import java.awt.Rectangle;
import java.io.IOException;

public class GuiComposer extends GenericGuiContainer<ComposerTileEntity> implements IShapeParentGui {
    public static final int SIDEWIDTH = 80;
    public static final int SHAPER_WIDTH = 256;
    public static final int SHAPER_HEIGHT = 238;

    private static final ResourceLocation sideBackground = new ResourceLocation(RFTools.MODID, "textures/gui/sidegui.png");
    private static final ResourceLocation iconLocation = new ResourceLocation(RFTools.MODID, "textures/gui/composer.png");
    private static final ResourceLocation guiElements = new ResourceLocation(RFTools.MODID, "textures/gui/guielements.png");

    private ChoiceLabel operationLabels[] = new ChoiceLabel[ComposerContainer.SLOT_COUNT];
    private ChoiceLabel rotationLabels[] = new ChoiceLabel[ComposerContainer.SLOT_COUNT];
    private ToggleButton flipButtons[] = new ToggleButton[ComposerContainer.SLOT_COUNT];
    private Button configButton[] = new Button[ComposerContainer.SLOT_COUNT];
    private Button outConfigButton;

    private ToggleButton showAxis;
    private ToggleButton showOuter;
    private ToggleButton showScan;

    // For GuiShapeCard: the current card to edit
    public static BlockPos shaperBlock = null;
    public static int shaperStackSlot = 0;

    private ShapeRenderer shapeRenderer = null;

    private Window sideWindow;


    public GuiComposer(ComposerTileEntity composerTileEntity, ComposerContainer container) {
        super(RFTools.instance, RFToolsMessages.INSTANCE, composerTileEntity, container, RFTools.GUI_MANUAL_SHAPE, "shaper");

        xSize = SHAPER_WIDTH;
        ySize = SHAPER_HEIGHT;
    }

    private ShapeRenderer getShapeRenderer() {
        if (shapeRenderer == null) {<commit_msg>Fix the composer opening to the wrong manual page<commit_after>package mcjty.rftools.blocks.shaper;

import mcjty.lib.container.GenericGuiContainer;
import mcjty.lib.gui.Window;
import mcjty.lib.gui.WindowManager;
import mcjty.lib.gui.layout.PositionalLayout;
import mcjty.lib.gui.widgets.*;
import mcjty.rftools.RFTools;
import mcjty.rftools.items.builder.ShapeCardItem;
import mcjty.rftools.network.RFToolsMessages;
import mcjty.rftools.shapes.*;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import org.lwjgl.input.Mouse;

import java.awt.Rectangle;
import java.io.IOException;

public class GuiComposer extends GenericGuiContainer<ComposerTileEntity> implements IShapeParentGui {
    public static final int SIDEWIDTH = 80;
    public static final int SHAPER_WIDTH = 256;
    public static final int SHAPER_HEIGHT = 238;

    private static final ResourceLocation sideBackground = new ResourceLocation(RFTools.MODID, "textures/gui/sidegui.png");
    private static final ResourceLocation iconLocation = new ResourceLocation(RFTools.MODID, "textures/gui/composer.png");
    private static final ResourceLocation guiElements = new ResourceLocation(RFTools.MODID, "textures/gui/guielements.png");

    private ChoiceLabel operationLabels[] = new ChoiceLabel[ComposerContainer.SLOT_COUNT];
    private ChoiceLabel rotationLabels[] = new ChoiceLabel[ComposerContainer.SLOT_COUNT];
    private ToggleButton flipButtons[] = new ToggleButton[ComposerContainer.SLOT_COUNT];
    private Button configButton[] = new Button[ComposerContainer.SLOT_COUNT];
    private Button outConfigButton;

    private ToggleButton showAxis;
    private ToggleButton showOuter;
    private ToggleButton showScan;

    // For GuiShapeCard: the current card to edit
    public static BlockPos shaperBlock = null;
    public static int shaperStackSlot = 0;

    private ShapeRenderer shapeRenderer = null;

    private Window sideWindow;


    public GuiComposer(ComposerTileEntity composerTileEntity, ComposerContainer container) {
        super(RFTools.instance, RFToolsMessages.INSTANCE, composerTileEntity, container, RFTools.GUI_MANUAL_SHAPE, "composer");

        xSize = SHAPER_WIDTH;
        ySize = SHAPER_HEIGHT;
    }

    private ShapeRenderer getShapeRenderer() {
        if (shapeRenderer == null) {
{'fraction_non_alphanumeric': 0.07972480777013355, 'fraction_numerical': 0.003642250101173614, 'mean_word_length': 5.140372670807453, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1789400', 'n_tokens_mistral': 1473, 'n_tokens_neox': 1432, 'n_words': 336}