Buggy code:
System . out . println ( dictionary . asList ( ) ) ; continue ; } if ( command . equals ( Main . DICTIONARY_DISPLAY_SIZE ) ) { System . out . println ( ( ( "dictionarul<seq2seq4repair_space>are<seq2seq4repair_space>" + ( dictionary . asList ( ) . size ( ) ) ) + "<seq2seq4repair_space>cuvinte" ) ) ; continue ; } if ( command . equals ( Main . DICTIONARY_DISPLAY_WEIGHTED ) ) { System . out . println ( ( ( "dictionarul<seq2seq4repair_space>are<seq2seq4repair_space>" + ( dictionary . asList ( ) . size ( ) ) ) + "<seq2seq4repair_space>cuvinte" ) ) ; System . out . println ( dictionary . getWordsSortedByWeight ( ) ) ; continue ; } if ( command . equals ( Main . TST_BUILD ) ) { tst = TernarySearchTreeFactory . buildTst ( dictionary . asList ( ) ) ; continue ; } if ( command . equals ( Main . TST_WEIGHTED_BUILD ) ) { tst = TernarySearchTreeFactory . buildWeightedTst ( dictionary ) ; continue ; } if ( command . equals ( Main . TST_PRINT ) ) { FilePrinter . printTstToFile ( TST_FILE , tst . print ( ) ) ; continue ; } if ( command . startsWith ( Main . TST_SET_K ) ) { command = command . replace ( ( ( Main . TST_SET_K ) + "<seq2seq4repair_space>" ) , "" ) ; try { int k = Integer . parseInt ( command ) ; tst . setNumberOfSuggestions ( k ) ; tst . resetCompletion ( ) ; } catch ( NumberFormatException e ) { System . out . println ( "no<seq2seq4repair_space>integer<seq2seq4repair_space>provided" ) ; } continue ; } if ( command . startsWith ( Main . TST_GET_K ) ) { command = command . replace ( ( ( Main . TST_GET_K ) + "<seq2seq4repair_space>" ) , "" ) ; tst . resetCompletion ( ) ; System . out . println ( tst . getSuggestions ( command ) ) ; continue ; } if ( command . startsWith ( Main . TST_GET_NEXT_K ) ) { command = command . replace ( ( ( Main . TST_GET_NEXT_K ) + "<seq2seq4repair_space>" ) , "" ) ; System . out . println ( tst . getSuggestions ( command ) ) ; continue ; } if ( command . equals ( Main . TREE_BUILD ) ) { tree = SegmentTstTreeBuilder . buildSegmentTst ( dictionary ) ; continue ; } if ( command . equals ( Main . TREE_WEIGHTED_BUILD ) ) { tree = SegmentTstTreeBuilder . buildWeightedSegmentTst ( dictionary ) ; tree . setNumberOfSuggestions ( AUTOCOMPLETION_SUGGESTION_SIZE ) ; continue ; } if ( command . equals ( Main . TREE_PRINT ) ) { PrettyPrinter printer = new NestedTstPrettyPrinter ( ( ( SegmentTreeLinear ) ( tree ) ) ) ; FilePrinter . printTstToFile ( COMPLETION_TREE_FILE , printer . prettyPrint ( ) ) ; continue ; } if ( command . equals ( Main . TEST_SYSTEM_ROTATION ) ) { SystemRotationTester rotationTester = new SystemRotationTester ( ) ; try { rotationTester . testSystemByRotation ( ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } continue ; } if ( command . equals ( Main . TEST_SYSTEM_ROTATION_IN_MEMORY ) ) { SystemRotationTester rotationTester = new SystemRotationTester ( ) ; try { rotationTester . testSystemByRotationInMemory ( ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } continue ; } if ( command . equals ( Main . TEST_SYSTEM_TEN_FOLD ) ) { SystemTenFoldingTesting tester = new SystemTenFoldingTesting ( ) ; try { tester . testSystem ( ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } continue ; } if ( command . equals ( Main . TEST_SYSTEM_TEN_FOLD_SYSTEM ) ) { RepeatedCompletionTenFoldingTesting tester = new RepeatedCompletionTenFoldingTesting ( ) ; try { tester . testSystemWithRotation ( ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } continue ; } if ( command . equals ( Main . TEST_SYSTEM_TEN_FOLD_SYSTEM_UPDATE ) ) { RepeatedCompletionTenFoldingTesting tester = new RepeatedCompletionTenFoldingTesting ( ) ; try { tester . testSystemWithUpdate ( ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } continue ; } if ( command . equals ( Main . TEST_SYSTEM_PERCENTAGES ) ) { SystemTester tester = new SystemTester ( tree ) ; try { tester . testSystem ( ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } continue ; } <START_BUG> if ( command . equals ( Main . TEST_SYSTEM_PERCENTAGES ) ) { <END_BUG> SystemBigTester tester = new SystemBigTester ( ) ; try { tester . testSystem ( dictionary ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } continue ; } if ( command . startsWith ( Main . TREE_SET_K ) ) { String number = command . replace ( ( ( Main . TREE_SET_K ) + "<seq2seq4repair_space>" ) , "" ) ; try { int k = Integer . parseInt ( number ) ; tree . setNumberOfSuggestions ( k ) ; tree . resetCompletion ( ) ; } catch ( NumberFormatException e ) { System . out . println ( "no<seq2seq4repair_space>integer<seq2seq4repair_space>provided" ) ; } continue ; } if ( command . startsWith ( Main . TREE_GET_K ) ) { String word = command . replace ( ( ( Main . TREE_GET_K ) + "<seq2seq4repair_space>" ) , "" ) ; tree . resetCompletion ( ) ; System . out . println ( tree . getSuggestions ( word ) ) ; continue ; } if ( command . startsWith ( Main . TREE_GET_NEXT_K ) ) { String word = command . replace ( ( ( Main . TREE_GET_NEXT_K ) + "<seq2seq4repair_space>" ) , "" ) ; System . out . println ( tree . getSuggestions ( word ) ) ; continue ; } System . out . println ( "wrong<seq2seq4repair_space>use:" ) ; } System . out . println ( "bye<seq2seq4repair_space>bye" ) ; } }

Fix:
if ( command . equals ( Main . TEST_SYSTEM_FINAL ) ) {