Buggy code:
public class TestDirection { private TestSystem [ ] systems ; private Stats noOutlierStats ; private Stats basicStats ; private Stats wcStats ; private int nearWcCount ; private int size ; private int minLaneNo ; private double [ ] meanEachLane ; private double minAllLane ; private double meanAllLane ; private double medianAllLane ; private String directionID ; private SummaryStatistics [ ] byLaneValues ; public TestDirection ( ) { } public TestDirection ( TestSystem [ ] systems ) { } public TestDirection ( TestSystem [ ] systems , String directionID ) { } public final void findStats ( boolean checkOutlier ) { } public void findOutlier ( double [ ] thresholds , boolean [ ] outliers , StringBuilder messages ) { TestRepeat tempRepeat ; TestSystem tempSystem ; StringBuilder sb = new StringBuilder ( ) ; StringBuilder tempMessages = new StringBuilder ( ) ; String message ; for ( int i = 0 ; i < ( size ) ; i ++ ) { tempSystem = getSystemByIndex ( i ) ; for ( int j = 0 ; j < ( tempSystem . getSize ( ) ) ; j ++ ) { tempRepeat = getRepeatByIndexes ( i , j ) ; outliers [ 1 ] = ( outliers [ 1 ] ) || ( tempRepeat . findSystemOutliers ( basicStats . getMean ( ) , thresholds [ 0 ] , sb ) ) ; outliers [ 2 ] = ( outliers [ 2 ] ) || ( tempRepeat . findSystemOutliers ( tempSystem . getBasicStats ( ) . getMean ( ) , thresholds [ 1 ] , sb ) ) ; outliers [ 3 ] = ( outliers [ 3 ] ) || ( tempRepeat . findLaneOutliers ( thresholds [ 2 ] , thresholds [ 3 ] , sb ) ) ; if ( ( sb . length ( ) ) != 0 ) { <START_BUG> message = ( ( ( "#Lane<seq2seq4repair_space>outlier<seq2seq4repair_space>found<seq2seq4repair_space>in<seq2seq4repair_space>" + ( tempSystem . getSystemID ( ) ) ) + "<seq2seq4repair_space>" ) + ( tempRepeat . getRepeatID ( ) ) ) + ";" ; <END_BUG> tempMessages . append ( message ) ; tempMessages . append ( sb ) ; sb = new StringBuilder ( ) ; } } } boolean meanOutlier ; boolean medianOutlier ; meanOutlier = ( ( meanAllLane ) - ( minAllLane ) ) > ( thresholds [ 4 ] ) ; medianOutlier = ( ( medianAllLane ) - ( minAllLane ) ) > ( thresholds [ 5 ] ) ; if ( meanOutlier || medianOutlier ) { outliers [ 4 ] = true ; message = ( "#" + ( getRepeatByIndexes ( 0 , 0 ) . getLaneIDByIndex ( minLaneNo ) ) ) + "<seq2seq4repair_space>Outlier<seq2seq4repair_space>in<seq2seq4repair_space>All<seq2seq4repair_space>Systems;" ; tempMessages . append ( message ) ; markOutlierByLane ( minLaneNo ) ; } if ( ( tempMessages . length ( ) ) != 0 ) { message = ( directionID ) + ":;" ; messages . append ( message ) ; messages . append ( tempMessages ) ; } } private void findByLaneMean ( ) { } public void findWorstCase ( double byLaneThreshold ) { } private void markOutlierByLane ( int laneIndex ) { } private TestRepeat getRepeatByIndexes ( int systemIndex , int repeatIndex ) { } public double [ ] getAllMarginMean ( ) { } public double getLane2LaneCorr ( ) { } private double [ ] [ ] getLane2LaneCorrceof ( ) { } public TestDirection add ( TestDirection direction ) { } public Stats getNoOutlierStats ( ) { } public Stats getBasicStats ( ) { } public Stats getWcStats ( ) { } public int getSize ( ) { } public TestSystem getSystemByIndex ( int index ) { } public int getNearWcCount ( ) { } public String getDirectionID ( ) { } public void setDirectionID ( String directionID ) { } public double getMinAllLane ( ) { } public double getMeanAllLane ( ) { } public double getMedianAllLane ( ) { } public int getMinLaneNo ( ) { } @ Override public String toString ( ) { } }

Fix:
message = ( ( ( "#Lane<seq2seq4repair_space>outlier<seq2seq4repair_space>found<seq2seq4repair_space>in<seq2seq4repair_space>System<seq2seq4repair_space>\"" + ( tempSystem . getSystemID ( ) ) ) + "\"<seq2seq4repair_space>Repeat<seq2seq4repair_space>\"" ) + ( tempRepeat . getRepeatID ( ) ) ) + "\";" ;