Program: 16852
Project: 16852
Buggy source:
private boolean alignNucleotideGroups(List<Group> seqRes,List<Group> atomRes){
  Map<Integer,Integer> seqresIndexPosition=new HashMap<Integer,Integer>();
  Map<Integer,Integer> atomIndexPosition=new HashMap<Integer,Integer>();
  String seq1=getFullAtomSequence(seqRes,seqresIndexPosition);
  String seq2=getFullAtomSequence(atomRes,atomIndexPosition);
  logger.debug("String_Node_Str" + seq1.length() + "String_Node_Str"+ seq1);
  logger.debug("String_Node_Str" + seq2.length() + "String_Node_Str"+ seq2);
  @SuppressWarnings("String_Node_Str") Sequence s1;
  @SuppressWarnings("String_Node_Str") Sequence s2;
  try {
    s1=new DNASequence(seq1,AmbiguityDNACompoundSet.getDNACompoundSet());
  }
 catch (  CompoundNotFoundException e) {
    try {
      s1=new RNASequence(seq1,AmbiguityRNACompoundSet.getRNACompoundSet());
    }
 catch (    CompoundNotFoundException ex) {
      logger.warn("String_Node_Str" + seq1);
      return true;
    }
  }
  try {
    s2=new DNASequence(seq2,AmbiguityDNACompoundSet.getDNACompoundSet());
  }
 catch (  CompoundNotFoundException e) {
    try {
      s2=new RNASequence(seq2,AmbiguityRNACompoundSet.getRNACompoundSet());
    }
 catch (    CompoundNotFoundException ex) {
      logger.warn("String_Node_Str" + seq2);
      return true;
    }
  }
  if (!s1.getCompoundSet().equals(s2.getCompoundSet())) {
    if (!s1.getCompoundSet().equals(AmbiguityRNACompoundSet.getRNACompoundSet())) {
      try {
        s1=new RNASequence(seq1,AmbiguityRNACompoundSet.getRNACompoundSet());
      }
 catch (      CompoundNotFoundException ex) {
        logger.warn("String_Node_Str" + seq1);
        return true;
      }
    }
    if (!s2.getCompoundSet().equals(AmbiguityRNACompoundSet.getRNACompoundSet())) {
      try {
        s2=new RNASequence(seq2,AmbiguityRNACompoundSet.getRNACompoundSet());
      }
 catch (      CompoundNotFoundException ex) {
        logger.warn("String_Node_Str" + seq2);
        return true;
      }
    }
  }
  SubstitutionMatrix<NucleotideCompound> matrix=SubstitutionMatrixHelper.getNuc4_2();
  GapPenalty penalty=new SimpleGapPenalty();
  short gop=8;
  short extend=1;
  penalty.setOpenPenalty(gop);
  penalty.setExtensionPenalty(extend);
  @SuppressWarnings({"String_Node_Str"}) PairwiseSequenceAligner<?,NucleotideCompound> smithWaterman=Alignments.getPairwiseAligner(s1,s2,PairwiseSequenceAlignerType.LOCAL,penalty,matrix);
  @SuppressWarnings("String_Node_Str") SequencePair pair=smithWaterman.getPair();
  if (pair == null) {
    logger.warn("String_Node_Str");
    logger.warn("String_Node_Str");
    logger.warn(seq1);
    logger.warn(seq2);
    return true;
  }
  logger.debug("String_Node_Str" + pair.toString(100));
  @SuppressWarnings("String_Node_Str") boolean noMatchFound=mapDNAChains(seqRes,atomRes,pair,seqresIndexPosition,atomIndexPosition);
  return noMatchFound;
}

Fixed version (ground truth):
private boolean alignNucleotideGroups(List<Group> seqRes,List<Group> atomRes){
  Map<Integer,Integer> seqresIndexPosition=new HashMap<Integer,Integer>();
  Map<Integer,Integer> atomIndexPosition=new HashMap<Integer,Integer>();
  String seq1=getFullAtomSequence(seqRes,seqresIndexPosition);
  String seq2=getFullAtomSequence(atomRes,atomIndexPosition);
  logger.debug("String_Node_Str" + seq1.length() + "String_Node_Str"+ seq1);
  logger.debug("String_Node_Str" + seq2.length() + "String_Node_Str"+ seq2);
  Sequence<NucleotideCompound> s1;
  Sequence<NucleotideCompound> s2;
  try {
    s1=new DNASequence(seq1,AmbiguityDNACompoundSet.getDNACompoundSet());
  }
 catch (  CompoundNotFoundException e) {
    try {
      s1=new RNASequence(seq1,AmbiguityRNACompoundSet.getRNACompoundSet());
    }
 catch (    CompoundNotFoundException ex) {
      logger.warn("String_Node_Str" + seq1);
      return true;
    }
  }
  try {
    s2=new DNASequence(seq2,AmbiguityDNACompoundSet.getDNACompoundSet());
  }
 catch (  CompoundNotFoundException e) {
    try {
      s2=new RNASequence(seq2,AmbiguityRNACompoundSet.getRNACompoundSet());
    }
 catch (    CompoundNotFoundException ex) {
      logger.warn("String_Node_Str" + seq2);
      return true;
    }
  }
  if (!s1.getCompoundSet().equals(s2.getCompoundSet())) {
    if (!s1.getCompoundSet().equals(AmbiguityRNACompoundSet.getRNACompoundSet())) {
      try {
        s1=new RNASequence(seq1,AmbiguityRNACompoundSet.getRNACompoundSet());
      }
 catch (      CompoundNotFoundException ex) {
        logger.warn("String_Node_Str" + seq1);
        return true;
      }
    }
    if (!s2.getCompoundSet().equals(AmbiguityRNACompoundSet.getRNACompoundSet())) {
      try {
        s2=new RNASequence(seq2,AmbiguityRNACompoundSet.getRNACompoundSet());
      }
 catch (      CompoundNotFoundException ex) {
        logger.warn("String_Node_Str" + seq2);
        return true;
      }
    }
  }
  SubstitutionMatrix<NucleotideCompound> matrix=SubstitutionMatrixHelper.getNuc4_4();
  GapPenalty penalty=new SimpleGapPenalty(8,1);
  PairwiseSequenceAligner<Sequence<NucleotideCompound>,NucleotideCompound> smithWaterman=Alignments.getPairwiseAligner(s1,s2,PairwiseSequenceAlignerType.LOCAL,penalty,matrix);
  SequencePair<Sequence<NucleotideCompound>,NucleotideCompound> pair=smithWaterman.getPair();
  if (pair == null) {
    logger.warn("String_Node_Str");
    logger.warn("String_Node_Str");
    logger.warn(seq1);
    logger.warn(seq2);
    return true;
  }
  logger.debug("String_Node_Str" + pair.toString(100));
  boolean noMatchFound=mapDNAChains(seqRes,atomRes,pair,seqresIndexPosition,atomIndexPosition);
  return noMatchFound;
}