Buggy code:
public class OCCT extends Classifier implements Drawable , OptionHandler , TechnicalInformationHandler { private static final long serialVersionUID = 3850592762853236707L ; public static String FAKE_MATCH_FIELD_ATTRIBUTE_NAME = "IsMatch" ; public static String FAKE_MATCH_FIELD_VALUE_MATCH_NAME = "Match" ; public static String FAKE_MATCH_FIELD_VALUE_UNMATCH_NAME = "UnMatch" ; private OCCTInternalClassifierNode m_root ; private boolean m_shouldAddClassAttribute ; private OCCTCardinalityHandler m_cardinalityHandler ; public static final int SPLIT_CGJ = 0 ; public static final int SPLIT_FGJ = 1 ; public static final int SPLIT_LPI = 2 ; public static final int SPLIT_MLE = 3 ; public static final Tag [ ] TAGS_SPLIT_CRITERIA = new Tag [ ] { new Tag ( OCCT . SPLIT_CGJ , "cgj" , "Coarse-Grained<seq2seq4repair_space>Jaccard" ) , new Tag ( OCCT . SPLIT_FGJ , "fgj" , "Fine-Grained<seq2seq4repair_space>Jaccard" ) , new Tag ( OCCT . SPLIT_LPI , "lpi" , "Least-Probable<seq2seq4repair_space>Intersections" ) , new Tag ( OCCT . SPLIT_MLE , "mle" , "Maximum-Likelihood<seq2seq4repair_space>Estimation" ) } ; public static final int PRUNING_NO_PRUNING = 0 ; public static final int PRUNING_LPI = 1 ; public static final int PRUNING_MLE = 2 ; public static final Tag [ ] TAGS_PRUNING_METHOD = new Tag [ ] { new Tag ( OCCT . PRUNING_NO_PRUNING , "noprune" , "No<seq2seq4repair_space>pruning" ) , new Tag ( OCCT . PRUNING_LPI , "lpi" , "Least-Probable<seq2seq4repair_space>Intersections" ) , new Tag ( OCCT . PRUNING_MLE , "mle" , "Maximum-Likelihood<seq2seq4repair_space>Estimation" ) } ; private int m_SplitCriteria = OCCT . SPLIT_MLE ; private int m_PruningMethod = OCCT . PRUNING_NO_PRUNING ; private double m_pruningThreshold = 0.0 ; private SingleIndex m_FirstAttributeIndexOfB = new SingleIndex ( "last" ) ; public double m_linkageThreshold = 0.0 ; public OCCT ( boolean m_shouldAddClassAttribute ) { } public OCCT ( ) { } public String getFirstAttributeIndexOfB ( ) { } public void setFirstAttributeIndexOfB ( String attIndex ) { } public String setFirstAttributeIndexOfBTipText ( ) { } public SelectedTag getSplitCriteria ( ) { } public void setSplitCriteria ( SelectedTag value ) { } public String splitCriteriaTipText ( ) { } public SelectedTag getPruningMethod ( ) { } public void setPruningMethod ( SelectedTag value ) { } public String pruningMethodTipText ( ) { } public double getPruningThreshold ( ) { } public void setPruningThreshold ( double pruningThreshold ) { } public String pruningThresholdTipText ( ) { } public double getLinkageThreshold ( ) { } public void setLinkageThreshold ( double linkageThreshold ) { } public String linkageThresholdTipText ( ) { } @ Override public Enumeration < Option > listOptions ( ) { } public String [ ] getOptions ( ) { } @ Override public void setOptions ( String [ ] options ) throws Exception { } public String globalInfo ( ) { } public TechnicalInformation getTechnicalInformation ( ) { } @ Override public Capabilities getCapabilities ( ) { } private Add createMatchUnmatchAddingFilter ( Instances instances ) throws Exception { } private Instances addClassAttribute ( Instances instances ) throws Exception { } private List < Attribute > checkAndGetAttributesOfB ( Instances instances ) throws Exception { } private OCCTSplitModelSelection getSplitMethod ( Instances allData , List < Attribute > attributesOfB ) { } private OCCTGeneralPruningMethod getPruner ( Instances allData , List < Attribute > attributesOfB ) throws NoSuchMethodException { } @ Override public void buildClassifier ( Instances instances ) throws Exception { } private void buildCardinalityHandler ( Instances instances ) { } public final double classifyInstance ( Instance instance ) throws Exception { double linkageThreshold = this . getLinkageThreshold ( ) ; Instances dataset = instance . dataset ( ) ; if ( this . m_shouldAddClassAttribute ) { Instances updatedDataset = this . addClassAttribute ( dataset ) ; if ( updatedDataset != dataset ) { instance . setDataset ( null ) ; instance . insertAttributeAt ( instance . numAttributes ( ) ) ; instance . setDataset ( updatedDataset ) ; } } System . out . println ( ( "Called<seq2seq4repair_space>classifier<seq2seq4repair_space>...<seq2seq4repair_space>with<seq2seq4repair_space>" + ( instance . classIndex ( ) ) ) ) ; System . out . println ( ( "Called<seq2seq4repair_space>classifier<seq2seq4repair_space>...<seq2seq4repair_space>with<seq2seq4repair_space>" + instance ) ) ; double cardinalityValue = this . m_cardinalityHandler . getCardinalityValue ( instance ) ; double clearValue = this . m_root . classifyInstance ( instance ) ; <START_BUG> double resultValue = clearValue * cardinalityValue ; <END_BUG> Attribute isMatchAttr = instance . classAttribute ( ) ; if ( this . m_Debug ) { System . out . println ( ( "1.<seq2seq4repair_space>Cardinality<seq2seq4repair_space>:<seq2seq4repair_space>" + cardinalityValue ) ) ; System . out . println ( ( "2.<seq2seq4repair_space>Value<seq2seq4repair_space>(no<seq2seq4repair_space>Cardinality)<seq2seq4repair_space>:<seq2seq4repair_space>" + clearValue ) ) ; System . out . println ( ( "3.<seq2seq4repair_space>Value<seq2seq4repair_space>(Total)<seq2seq4repair_space>:<seq2seq4repair_space>" + resultValue ) ) ; Attribute classAttr = instance . classAttribute ( ) ; String isMatch = classAttr . value ( ( resultValue >= linkageThreshold ? isMatchAttr . indexOfValue ( OCCT . FAKE_MATCH_FIELD_VALUE_MATCH_NAME ) : isMatchAttr . indexOfValue ( OCCT . FAKE_MATCH_FIELD_VALUE_UNMATCH_NAME ) ) ) ; System . out . println ( ( "4.<seq2seq4repair_space>Threshold<seq2seq4repair_space>is<seq2seq4repair_space>:<seq2seq4repair_space>" + linkageThreshold ) ) ; System . out . println ( ( "5.<seq2seq4repair_space>Match//UnMatch<seq2seq4repair_space>:<seq2seq4repair_space>" + isMatch ) ) ; } return resultValue >= linkageThreshold ? isMatchAttr . indexOfValue ( OCCT . FAKE_MATCH_FIELD_VALUE_MATCH_NAME ) : isMatchAttr . indexOfValue ( OCCT . FAKE_MATCH_FIELD_VALUE_UNMATCH_NAME ) ; } public final double [ ] distributionForInstance ( Instance instance ) throws Exception { } @ Override public String toString ( ) { } @ Override public String getRevision ( ) { } @ Override public int graphType ( ) { } @ Override public String graph ( ) throws Exception { } public static void main ( String [ ] argv ) throws IOException { } }

Fix:
double resultValue = Math . abs ( ( clearValue * cardinalityValue ) ) ;