Program: 187543
Project: 187543
Buggy source:
public boolean activate(boolean primary,int effectId){
  if (level > 0) {
    if (primary) {
      if (primaryActive.get(effectId)) {
        setPrimaryEffectId(effectId);
        return true;
      }
 else {
        myPet.sendMessageToOwner(MyPetBukkitUtil.setColors(MyPetLocales.getString("String_Node_Str",myPet.getOwner().getLanguage())).replace("String_Node_Str",MyPetLocales.getString("String_Node_Str" + buffNames.get(effectId),myPet.getOwner().getLanguage())));
        return false;
      }
    }
 else {
      if (secundaryActive.get(effectId)) {
        setSecondaryEffectId(effectId);
        return true;
      }
 else {
        if (effectId != 10) {
          myPet.sendMessageToOwner(MyPetBukkitUtil.setColors(MyPetLocales.getString("String_Node_Str",myPet.getOwner().getLanguage())).replace("String_Node_Str",MyPetLocales.getString("String_Node_Str" + buffNames.get(effectId),myPet.getOwner().getLanguage())));
        }
 else {
          myPet.sendMessageToOwner(MyPetBukkitUtil.setColors(MyPetLocales.getString("String_Node_Str",myPet.getOwner().getLanguage())).replace("String_Node_Str",MyPetLocales.getString("String_Node_Str" + buffNames.get(effectId),myPet.getOwner().getLanguage())));
        }
        return false;
      }
    }
  }
 else {
    myPet.sendMessageToOwner(MyPetBukkitUtil.setColors(MyPetLocales.getString("String_Node_Str",myPet.getOwner().getLanguage())).replace("String_Node_Str",myPet.petName).replace("String_Node_Str",this.getName()));
  }
  return false;
}

Fixed version (ground truth):
public boolean activate(boolean primary,int effectId){
  if (level > 0) {
    if (primary) {
      if (!primaryActive.containsKey(effectId)) {
        return false;
      }
 else       if (primaryActive.get(effectId)) {
        setPrimaryEffectId(effectId);
        return true;
      }
 else {
        myPet.sendMessageToOwner(MyPetBukkitUtil.setColors(MyPetLocales.getString("String_Node_Str",myPet.getOwner().getLanguage())).replace("String_Node_Str",MyPetLocales.getString("String_Node_Str" + buffNames.get(effectId),myPet.getOwner().getLanguage())));
        return false;
      }
    }
 else {
      if (!secundaryActive.containsKey(effectId)) {
        return false;
      }
 else       if (secundaryActive.get(effectId)) {
        setSecondaryEffectId(effectId);
        return true;
      }
 else {
        if (effectId != 10) {
          myPet.sendMessageToOwner(MyPetBukkitUtil.setColors(MyPetLocales.getString("String_Node_Str",myPet.getOwner().getLanguage())).replace("String_Node_Str",MyPetLocales.getString("String_Node_Str" + buffNames.get(effectId),myPet.getOwner().getLanguage())));
        }
 else {
          myPet.sendMessageToOwner(MyPetBukkitUtil.setColors(MyPetLocales.getString("String_Node_Str",myPet.getOwner().getLanguage())).replace("String_Node_Str",MyPetLocales.getString("String_Node_Str" + buffNames.get(effectId),myPet.getOwner().getLanguage())));
        }
        return false;
      }
    }
  }
 else {
    myPet.sendMessageToOwner(MyPetBukkitUtil.setColors(MyPetLocales.getString("String_Node_Str",myPet.getOwner().getLanguage())).replace("String_Node_Str",myPet.petName).replace("String_Node_Str",this.getName()));
  }
  return false;
}