Program: 178152
Project: 178152
Buggy source:
private void move(boolean separateStacks,boolean drop) throws Exception {
  int toIndex=-1, newIndex;
synchronized (this) {
    if (shortcutType == ShortcutType.MOVE_TO_SPECIFIC_HOTBAR_SLOT) {
      InvTweaksShortcutMapping hotbarShortcut=isActive(ShortcutType.MOVE_TO_SPECIFIC_HOTBAR_SLOT);
      if (hotbarShortcut != null && !hotbarShortcut.getKeyCodes().isEmpty()) {
        String keyName=Keyboard.getKeyName(hotbarShortcut.getKeyCodes().get(0));
        int destIndex=-1 + Integer.parseInt(keyName.replace("String_Node_Str","String_Node_Str"));
        container.move(fromSection,fromIndex,InvTweaksContainerSection.INVENTORY_HOTBAR,destIndex);
      }
    }
 else {
      toIndex=getNextIndex(separateStacks,drop);
      if (toIndex != -1) {
switch (shortcutType) {
case MOVE_ONE_STACK:
{
            yu slot=container.getSlot(fromSection,fromIndex);
            if (fromSection != InvTweaksContainerSection.CRAFTING_OUT && toSection != InvTweaksContainerSection.ENCHANTMENT) {
              while (hasStack(slot) && toIndex != -1) {
                container.move(fromSection,fromIndex,toSection,toIndex);
                newIndex=getNextIndex(separateStacks,drop);
                toIndex=(newIndex != toIndex) ? newIndex : -1;
              }
            }
 else {
              container.move(fromSection,fromIndex,toSection,toIndex);
            }
            break;
          }
case MOVE_ONE_ITEM:
{
          container.moveSome(fromSection,fromIndex,toSection,toIndex,1);
          break;
        }
case MOVE_ALL_ITEMS:
{
        aan stackToMatch=copy(fromStack);
        moveAll(fromSection,toSection,separateStacks,drop,stackToMatch);
        if (fromSection == InvTweaksContainerSection.INVENTORY_NOT_HOTBAR && toSection == InvTweaksContainerSection.CHEST) {
          moveAll(InvTweaksContainerSection.INVENTORY_HOTBAR,toSection,separateStacks,drop,stackToMatch);
        }
        break;
      }
case MOVE_EVERYTHING:
{
      moveAll(fromSection,toSection,separateStacks,drop,null);
      if (fromSection == InvTweaksContainerSection.INVENTORY_HOTBAR && toSection == InvTweaksContainerSection.CHEST) {
        moveAll(InvTweaksContainerSection.INVENTORY_NOT_HOTBAR,toSection,separateStacks,drop,null);
      }
      break;
    }
}
}
}
}
}

Fixed version (ground truth):
private void move(boolean separateStacks,boolean drop) throws Exception {
  int toIndex=-1, newIndex;
  boolean success;
synchronized (this) {
    if (shortcutType == ShortcutType.MOVE_TO_SPECIFIC_HOTBAR_SLOT) {
      InvTweaksShortcutMapping hotbarShortcut=isActive(ShortcutType.MOVE_TO_SPECIFIC_HOTBAR_SLOT);
      if (hotbarShortcut != null && !hotbarShortcut.getKeyCodes().isEmpty()) {
        String keyName=Keyboard.getKeyName(hotbarShortcut.getKeyCodes().get(0));
        int destIndex=-1 + Integer.parseInt(keyName.replace("String_Node_Str","String_Node_Str"));
        container.move(fromSection,fromIndex,InvTweaksContainerSection.INVENTORY_HOTBAR,destIndex);
      }
    }
 else {
      toIndex=getNextIndex(separateStacks,drop);
      if (toIndex != -1) {
switch (shortcutType) {
case MOVE_ONE_STACK:
{
            yu slot=container.getSlot(fromSection,fromIndex);
            if (fromSection != InvTweaksContainerSection.CRAFTING_OUT && toSection != InvTweaksContainerSection.ENCHANTMENT) {
              while (hasStack(slot) && toIndex != -1) {
                success=container.move(fromSection,fromIndex,toSection,toIndex);
                newIndex=getNextIndex(separateStacks,drop);
                toIndex=(success || newIndex != toIndex) ? newIndex : -1;
              }
            }
 else {
              container.move(fromSection,fromIndex,toSection,toIndex);
            }
            break;
          }
case MOVE_ONE_ITEM:
{
          container.moveSome(fromSection,fromIndex,toSection,toIndex,1);
          break;
        }
case MOVE_ALL_ITEMS:
{
        aan stackToMatch=copy(fromStack);
        moveAll(fromSection,toSection,separateStacks,drop,stackToMatch);
        if (fromSection == InvTweaksContainerSection.INVENTORY_NOT_HOTBAR && toSection == InvTweaksContainerSection.CHEST) {
          moveAll(InvTweaksContainerSection.INVENTORY_HOTBAR,toSection,separateStacks,drop,stackToMatch);
        }
        break;
      }
case MOVE_EVERYTHING:
{
      moveAll(fromSection,toSection,separateStacks,drop,null);
      if (fromSection == InvTweaksContainerSection.INVENTORY_HOTBAR && toSection == InvTweaksContainerSection.CHEST) {
        moveAll(InvTweaksContainerSection.INVENTORY_NOT_HOTBAR,toSection,separateStacks,drop,null);
      }
      break;
    }
}
}
}
}
}