Program: 152605
Project: 152605
Buggy source:
private static void setMoveNonVolatileEffect(ResultSet rs,Move move){
  int effectId=0;
  try {
    effectId=rs.getInt("String_Node_Str");
  }
 catch (  SQLException e) {
    e.printStackTrace();
  }
switch (effectId) {
case 2:
    move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.SLEEPS);
  break;
case 3:
case 67:
case 78:
case 210:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.POISONS);
break;
case 34:
case 203:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.BADLY_POISONS);
break;
case 5:
case 126:
case 168:
case 201:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.BURNS);
break;
case 6:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.FREEZES);
break;
case 7:
case 68:
case 153:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.PARALYZES);
break;
case 37:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.TRI_ATTACK);
break;
case 11:
case 140:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,1);
break;
case 12:
case 139:
case 146:
case 157:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,1);
break;
case 14:
case 167:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,1);
break;
case 17:
move.setMoveStatChanges(ModdableBattleStats.EVASION,1);
break;
case 51:
case 119:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,2);
break;
case 52:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,2);
break;
case 53:
move.setMoveStatChanges(ModdableBattleStats.SPEED,2);
break;
case 54:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,2);
break;
case 55:
case 175:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,2);
break;
case 109:
move.setMoveStatChanges(ModdableBattleStats.EVASION,2);
break;
case 141:
int[] ancientPower={1,1,1,1,1,0,0};
move.setMoveStatChangesArray(ancientPower);
break;
case 143:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,6);
break;
case 207:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,1);
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,1);
break;
case 209:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,1);
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,1);
break;
case 212:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,1);
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,1);
break;
case 213:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,1);
move.setMoveStatChanges(ModdableBattleStats.SPEED,1);
break;
case 19:
case 69:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,-1);
break;
case 20:
case 70:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,-1);
break;
case 72:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,-1);
break;
case 73:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,-1);
break;
case 21:
case 71:
move.setMoveStatChanges(ModdableBattleStats.SPEED,-1);
break;
case 24:
case 74:
move.setMoveStatChanges(ModdableBattleStats.ACCURACY,-1);
break;
case 25:
move.setMoveStatChanges(ModdableBattleStats.EVASION,-1);
break;
case 59:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,-2);
break;
case 60:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,-2);
break;
case 61:
move.setMoveStatChanges(ModdableBattleStats.SPEED,-2);
break;
case 63:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,-2);
break;
case 169:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,-2);
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,-2);
break;
case 206:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,-1);
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,-1);
break;
case 32:
case 76:
case 93:
case 147:
case 151:
case 159:
move.setVolatileEffect(MoveSecondaryVolatileEffect.FLINCHES);
break;
case 50:
case 77:
case 119:
case 200:
move.setVolatileEffect(MoveSecondaryVolatileEffect.CONFUSES);
break;
case 85:
move.setVolatileEffect(MoveSecondaryVolatileEffect.LEECH_SEEDS);
case 108:
move.setVolatileEffect(MoveSecondaryVolatileEffect.NIGHTMARES);
break;
case 110:
move.setVolatileEffect(MoveSecondaryVolatileEffect.CURSES);
break;
case 114:
move.setVolatileEffect(MoveSecondaryVolatileEffect.IDENTIFIES);
break;
case 115:
move.setVolatileEffect(MoveSecondaryVolatileEffect.PERISH_SONG);
break;
case 121:
move.setVolatileEffect(MoveSecondaryVolatileEffect.ATTRACTS);
break;
case 176:
move.setVolatileEffect(MoveSecondaryVolatileEffect.TAUNTS);
break;
case 188:
move.setVolatileEffect(MoveSecondaryVolatileEffect.YAWNS);
}
}

Fixed version (ground truth):
private static void setMoveNonVolatileEffect(ResultSet rs,Move move){
  int effectId=0;
  try {
    effectId=rs.getInt("String_Node_Str");
  }
 catch (  SQLException e) {
    e.printStackTrace();
  }
switch (effectId) {
case 2:
    move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.SLEEPS);
  break;
case 3:
case 67:
case 78:
case 210:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.POISONS);
break;
case 34:
case 203:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.BADLY_POISONS);
break;
case 5:
case 126:
case 168:
case 201:
case 254:
case 274:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.BURNS);
break;
case 6:
case 261:
case 275:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.FREEZES);
break;
case 7:
case 68:
case 153:
case 263:
case 276:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.PARALYZES);
break;
case 37:
move.setNonVolatileEffect(MoveSecondaryNonVolatileEffect.TRI_ATTACK);
break;
case 11:
case 140:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,1);
break;
case 12:
case 139:
case 146:
case 157:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,1);
break;
case 14:
case 167:
case 277:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,1);
break;
case 175:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,1);
case 17:
move.setMoveStatChanges(ModdableBattleStats.EVASION,1);
break;
case 51:
case 119:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,2);
break;
case 52:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,2);
break;
case 53:
case 285:
move.setMoveStatChanges(ModdableBattleStats.SPEED,2);
break;
case 54:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,2);
break;
case 55:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,2);
break;
case 109:
move.setMoveStatChanges(ModdableBattleStats.EVASION,2);
break;
case 141:
int[] ancientPower={1,1,1,1,1,0,0};
move.setMoveStatChangesArray(ancientPower);
break;
case 143:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,6);
break;
case 207:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,1);
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,1);
break;
case 209:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,1);
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,1);
break;
case 212:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,1);
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,1);
break;
case 213:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,1);
move.setMoveStatChanges(ModdableBattleStats.SPEED,1);
break;
case 227:
Random generator=new Random();
int i=generator.nextInt(7);
ModdableBattleStats stat=ModdableBattleStats.getStat(i);
move.setMoveStatChanges(stat,2);
break;
case 278:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,1);
move.setMoveStatChanges(ModdableBattleStats.ACCURACY,1);
break;
case 291:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,1);
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,1);
move.setMoveStatChanges(ModdableBattleStats.SPEED,1);
break;
case 296:
move.setMoveStatChanges(ModdableBattleStats.SPEED,1);
case 19:
case 69:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,-1);
break;
case 20:
case 70:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,-1);
break;
case 72:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,-1);
break;
case 73:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,-1);
break;
case 21:
case 71:
case 219:
move.setMoveStatChanges(ModdableBattleStats.SPEED,-1);
break;
case 24:
case 74:
move.setMoveStatChanges(ModdableBattleStats.ACCURACY,-1);
break;
case 25:
move.setMoveStatChanges(ModdableBattleStats.EVASION,-1);
break;
case 59:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,-2);
break;
case 60:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,-2);
break;
case 61:
move.setMoveStatChanges(ModdableBattleStats.SPEED,-2);
break;
case 63:
case 272:
case 297:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,-2);
break;
case 169:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,-2);
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,-2);
break;
case 206:
move.setMoveStatChanges(ModdableBattleStats.ATTACK,-1);
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,-1);
break;
case 217:
move.setMoveStatChanges(ModdableBattleStats.EVASION,-6);
break;
case 230:
move.setMoveStatChanges(ModdableBattleStats.DEFENSE,-1);
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_DEFENSE,-1);
break;
case 259:
move.setMoveStatChanges(ModdableBattleStats.EVASION,-1);
break;
case 266:
move.setMoveStatChanges(ModdableBattleStats.SPECIAL_ATTACK,-2);
break;
case 32:
case 76:
case 93:
case 147:
case 151:
case 159:
case 274:
case 275:
case 276:
move.setVolatileEffect(MoveSecondaryVolatileEffect.FLINCHES);
break;
case 50:
case 77:
case 119:
case 200:
move.setVolatileEffect(MoveSecondaryVolatileEffect.CONFUSES);
break;
case 85:
move.setVolatileEffect(MoveSecondaryVolatileEffect.LEECH_SEEDS);
case 108:
move.setVolatileEffect(MoveSecondaryVolatileEffect.NIGHTMARES);
break;
case 110:
move.setVolatileEffect(MoveSecondaryVolatileEffect.CURSES);
break;
case 114:
move.setVolatileEffect(MoveSecondaryVolatileEffect.IDENTIFIES);
break;
case 115:
move.setVolatileEffect(MoveSecondaryVolatileEffect.PERISH_SONG);
break;
case 121:
move.setVolatileEffect(MoveSecondaryVolatileEffect.ATTRACTS);
break;
case 176:
move.setVolatileEffect(MoveSecondaryVolatileEffect.TAUNTS);
break;
case 188:
move.setVolatileEffect(MoveSecondaryVolatileEffect.YAWNS);
break;
case 262:
move.setVolatileEffect(MoveSecondaryVolatileEffect.PARTIALLY_TRAPS);
break;
case 286:
move.setVolatileEffect(MoveSecondaryVolatileEffect.TELEKINESIS);
break;
case 288:
move.setVolatileEffect(MoveSecondaryVolatileEffect.KNOCKED_DOWN);
}
}