Buggy code:
public class TransitionProbabilityViewer extends Viewer implements JavaAwtRenderer { public static final String PROPERTY_LOAD = "Load" ; public static final String PROPERTY_LOAD_RELEVANCE_DATA = "Load<seq2seq4repair_space>Relevance" ; public static final String TAG_HOVER = "HOV" ; public static final String TAG_VIEW = "VIEW" ; public static final int TOTAL_TYPES = 6 ; public static final int TOTAL_CONNECTION_TYPE = 6 ; public static final int CONNECTION_NOT_CONNECTED_NO_HOVER = 0 ; public static final int CONNECTION_NOT_CONNECTED_SOURCE_HOVER = 1 ; public static final int CONNECTION_NOT_CONNECTED_DESTINATION_HOVER = 2 ; public static final int CONNECTION_CONNECTED_NO_HOVER = 3 ; public static final int CONNECTION_CONNECTED_SOURCE_HOVER = 4 ; public static final int CONNECTION_CONNECTED_DESTINATION_HOVER = 5 ; public static final String [ ] TYPE_NAME = new String [ ] { "INIT" , "ACTOR" , "MOVIE" , "DIRECTOR" , "GENRE" , "STAR" } ; public static final String [ ] CONNECTION_NAME = new String [ ] { "NOT<seq2seq4repair_space>CONNECTED<seq2seq4repair_space>NO<seq2seq4repair_space>HOVER" , "NOT<seq2seq4repair_space>CONNECTED<seq2seq4repair_space>SOURCE<seq2seq4repair_space>HOVER" , "NOT<seq2seq4repair_space>CONNECTED<seq2seq4repair_space>DESTINATION<seq2seq4repair_space>HOVER" , "CONNECTED<seq2seq4repair_space>NO<seq2seq4repair_space>HOVER<seq2seq4repair_space>" , "CONNECTED<seq2seq4repair_space>SOURCE<seq2seq4repair_space>HOVER" , "CONNECTED<seq2seq4repair_space>DESTINATION<seq2seq4repair_space>HOVER" } ; public static final int COLUMNS_PER_ELEMENT = 4 ; private int [ ] [ ] [ ] countMatrix = new int [ TransitionProbabilityViewer . TOTAL_TYPES ] [ TransitionProbabilityViewer . TOTAL_TYPES ] [ TransitionProbabilityViewer . TOTAL_CONNECTION_TYPE ] ; private int [ ] [ ] [ ] possibilityMatrix = new int [ TransitionProbabilityViewer . TOTAL_TYPES ] [ TransitionProbabilityViewer . TOTAL_TYPES ] [ TransitionProbabilityViewer . TOTAL_CONNECTION_TYPE ] ; private ArrayList < StatElement > elementNames = new ArrayList < StatElement > ( ) ; private IMDBDataSource data = null ; private TransitionProbabilityViewer . Element currentHover = null ; private StatElement currentView = null ; public TransitionProbabilityViewer ( String name , IMDBDataSource data ) { } private void loadSavedData ( String filePath ) { } private class Element { public boolean isHovered ; public String name ; public String id ; public int type ; public double score ; public Element ( boolean isHovered , String name , String id , int type , double score ) { } @ Override public boolean equals ( Object obj ) { } @ Override public String toString ( ) { } } private void printResult ( ) { for ( int i = 1 ; i < ( countMatrix . length ) ; i ++ ) { for ( int j = 1 ; j < ( countMatrix [ i ] . length ) ; j ++ ) { for ( int k = 0 ; k < ( countMatrix [ i ] [ j ] . length ) ; k ++ ) { <START_BUG> if ( ( ( ( i != ( EyeTrackerItem . TYPE_MOVIE_STAR_RATING ) ) && ( j != ( EyeTrackerItem . TYPE_MOVIE_STAR_RATING ) ) ) && ( ( countMatrix [ i ] [ j ] [ k ] ) > 0 ) ) && ( ( possibilityMatrix [ i ] [ j ] [ k ] ) > 0 ) ) { <END_BUG> String msg = ( ( ( ( ( ( ( ( TransitionProbabilityViewer . TYPE_NAME [ i ] ) + "\t" ) + ( TransitionProbabilityViewer . TYPE_NAME [ j ] ) ) + "\t" ) + ( TransitionProbabilityViewer . CONNECTION_NAME [ k ] ) ) + "\t" ) + ( countMatrix [ i ] [ j ] [ k ] ) ) + "\t" ) + ( this . possibilityMatrix [ i ] [ j ] [ k ] ) ; System . out . println ( msg ) ; } } } } } private void readTransProbDirectory ( String filePath ) { } private void readTransProbFile ( String filePath ) { } private void calculate ( ArrayList < TransitionProbabilityViewer . Element > lastElementList , ArrayList < TransitionProbabilityViewer . Element > currentElementList ) { } private void populatePossibility ( TransitionProbabilityViewer . Element source ) { } private ViewItem getViewItem ( TransitionProbabilityViewer . Element elem , StatElement view ) { } private boolean isConnected ( TransitionProbabilityViewer . Element source , TransitionProbabilityViewer . Element dest ) { } @ Override public Color getBackgroundColor ( ) { } @ Override public void keyPressed ( String arg0 , String arg1 ) { } @ Override public void keyReleased ( String arg0 , String arg1 ) { } @ Override public boolean mousedragged ( int arg0 , int arg1 , int arg2 , int arg3 ) { } @ Override public boolean mousemoved ( int arg0 , int arg1 ) { } @ Override public boolean mousepressed ( int arg0 , int arg1 , int arg2 ) { } @ Override public boolean mousereleased ( int arg0 , int arg1 , int arg2 ) { } @ Override public void render ( Graphics2D arg0 ) { } }

Fix:
if ( ( ( i != ( EyeTrackerItem . TYPE_MOVIE_STAR_RATING ) ) && ( j != ( EyeTrackerItem . TYPE_MOVIE_STAR_RATING ) ) ) && ( ! ( ( ( countMatrix [ i ] [ j ] [ k ] ) == 0 ) && ( ( possibilityMatrix [ i ] [ j ] [ k ] ) == 0 ) ) ) ) {