[Demonstration 1]

[Buggy Method]
public void generate(ContinueStatement AST) {
    output.accept(AST.getLine() + ": generating code for ContinueStatement\n");
    AST.appendCode("goto -,-," + currentLoopStartLabels.peek());
}

[Buggy Hunk]
AST.appendCode("goto -,-," + currentLoopStartLabels.peek());

[Patch]
AST.appendCode("(goto,-,-," + currentLoopStartLabels.peek()+")");

[Demonstration 2]

[Buggy Method]
public boolean isVaultEnabled() {
    return getConfig().getBoolean("Economy.enable");
}

[Buggy Hunk]
return getConfig().getBoolean("Economy.enable");

[Patch]
return getConfig().getBoolean("Economy.enable") && getVault() != null;

[Demonstration 3]

[Buggy Method]
@Override
@Nonnull
public ItemStack insertItem(int slot, @Nonnull ItemStack stack, boolean simulate) {
    if (!ItemStackHelper.isStackValid(stack)) {
        return ItemStackHelper.NULL_STACK;
    }
    if (!canInsert(slot, stack) || !isStackValidForSlot(slot, stack)) {
        return stack;
    }
    validateSlotIndex(slot);
    ItemStack existing = this.stacks.get(slot);
    int limit = getStackLimit(slot, stack);
    if (ItemStackHelper.isStackValid(existing)) {
        if (!ItemHandlerHelper.canItemStacksStack(stack, existing)) {
            return stack;
        }
        limit -= existing.stackSize;
    }
    if (limit <= 0) {
        return stack;
    }
    boolean reachedLimit = stack.stackSize > limit;
    if (!simulate) {
        if (!ItemStackHelper.isStackValid(existing)) {
            this.stacks.set(slot, reachedLimit ? ItemHandlerHelper.copyStackWithSize(stack, limit) : stack);
        } else {
            existing.stackSize = (reachedLimit ? limit : stack.stackSize);
        }
        onContentsChanged(slot);
    }
    return reachedLimit ? ItemHandlerHelper.copyStackWithSize(stack, stack.stackSize - limit) : ItemStackHelper.NULL_STACK;
}

[Buggy Hunk]
existing.stackSize = (reachedLimit ? limit : stack.stackSize);

[Patch]
existing.stackSize += (reachedLimit ? limit : stack.stackSize);