nus-yam/ex-repair huggingface dataset:
Buggy code:
public class SprintViewObject { public HorizontalLayout button = new HorizontalLayout ( ) ; SprintViewObject ( String ViewName , String SprintName , Date start_date , Date end_date ) { } private void init_button ( final String ViewName , String SprintName , Date start_date , Date end_date ) { button . setSpacing ( true ) ; button . setStyleName ( "SprintButton" ) ; button . setWidth ( "100%" ) ; button . setHeight ( "41px" ) ; add_Labels ( SprintName , start_date , end_date ) ; button . addLayoutClickListener ( new LayoutEvents . LayoutClickListener ( ) { @ Override public void layoutClick ( LayoutEvents . LayoutClickEvent event ) { new TaskPage ( ) ; TaskPage . NAME = ViewName ; <START_BUG> final SprintViewType view = new SprintViewType ( TaskPage . NAME , TaskPage . class ) ; <END_BUG> UI . getCurrent ( ) . getNavigator ( ) . navigateTo ( view . getViewName ( ) ) ; } } ) ; } private void add_Labels ( String SprintName , Date start_date , Date end_date ) { } }

Fix:
final SprintViewType view = SprintViewType . TASKPAGE ;
Buggy code:
public class JdbcDriverRemove implements ModelRemoveOperationHandler { static final JdbcDriverRemove INSTANCE = new JdbcDriverRemove ( ) ; public OperationResult execute ( final OperationContext context , final ModelNode operation , final ResultHandler resultHandler ) throws OperationFailedException { final ModelNode opAddr = operation . require ( OP_ADDR ) ; final ModelNode model = context . getSubModel ( ) ; final ModelNode compensating = Util . getEmptyOperation ( ADD , opAddr ) ; final String moduleName = model . get ( DRIVER ) . asString ( ) ; compensating . get ( DRIVER ) . set ( model . get ( DRIVER ) ) ; if ( ( context . getRuntimeContext ( ) ) != null ) { context . getRuntimeContext ( ) . setRuntimeTask ( new RuntimeTask ( ) { public void execute ( final RuntimeTaskContext context ) throws OperationFailedException { final ServiceRegistry registry = context . getServiceRegistry ( ) ; final Module module ; try { module = Module . getCallerModuleLoader ( ) . loadModule ( ModuleIdentifier . create ( moduleName ) ) ; } catch ( ModuleLoadException e ) { throw new OperationFailedException ( e , new ModelNode ( ) . set ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>module<seq2seq4repair_space>for<seq2seq4repair_space>driver<seq2seq4repair_space>[" + moduleName ) + "]" ) ) ) ; } final ServiceLoader < Driver > serviceLoader = module . loadService ( Driver . class ) ; if ( serviceLoader != null ) for ( Driver driver : serviceLoader ) { final int majorVersion = driver . getMajorVersion ( ) ; final int minorVersion = driver . getMinorVersion ( ) ; final ServiceName serviceName = JBOSS . append ( "jdbc-driver" , driver . getClass ( ) . getName ( ) , Integer . toString ( majorVersion ) , Integer . toString ( minorVersion ) ) ; final ServiceController < ? > controller = registry . getService ( serviceName ) ; if ( controller != null ) { <START_BUG> controller . addListener ( new ResultHandler . ServiceRemoveListener ( resultHandler ) ) ; <END_BUG> } } resultHandler . handleResultComplete ( ) ; } } ) ; } else { resultHandler . handleResultComplete ( ) ; } return new org . jboss . as . controller . BasicOperationResult ( compensating ) ; } }

Fix:
controller . setMode ( REMOVE ) ;
Buggy code:
public class ScenarioRunner extends ProcessRunner { TreeMap < String , String > scenarioResults ; protected ScenarioRunner ( String templateFolder , String templateFile , String outputFolder , String outputFile , String testStringPath , String startingRule , int timeout , int builderID ) { } public Object runProcesses ( ) { int count = 1 ; int size = this . getPrograms ( ) . size ( ) ; scenarioResults = new TreeMap < > ( ) ; for ( String program : this . getPrograms ( ) ) { <START_BUG> processRunnerLogger . info ( ( ( ( "Currently<seq2seq4repair_space>running<seq2seq4repair_space>test<seq2seq4repair_space>" + count ) + "<seq2seq4repair_space>of<seq2seq4repair_space>" ) + size ) ) ; <END_BUG> this . buildProgram ( this . getStartingRule ( ) , program ) ; String processOutput = this . runProgram ( ) ; scenarioResults . put ( program , processOutput ) ; count ++ ; } this . setResults ( scenarioResults ) ; return this . getResults ( ) ; } public void outputScenarioResults ( TreeMap < String , String > resultsMap , String startingRule , String resultsHeader , String resultsFilePath ) { } public static String formatResultsForConsoleOutput ( TreeMap < String , String > resultsMap , String startingRule , String resultsHeader ) { } private static String generateHeader ( int width ) { } }

Fix:
processRunnerLogger . info ( ( ( ( "Currently<seq2seq4repair_space>running<seq2seq4repair_space>scenario<seq2seq4repair_space>" + count ) + "<seq2seq4repair_space>of<seq2seq4repair_space>" ) + size ) ) ;
Buggy code:
public class ModuleDeploymentProcessor implements DeploymentUnitProcessor { public static final AttachmentKey < Module > MODULE_ATTACHMENT_KEY = new AttachmentKey < Module > ( Module . class ) ; public void processDeployment ( DeploymentUnitContext context ) throws DeploymentUnitProcessingException { if ( ( context . getAttachment ( ModuleDeploymentProcessor . MODULE_ATTACHMENT_KEY ) ) != null ) return ; final ModuleConfig moduleConfig = context . getAttachment ( ATTACHMENT_KEY ) ; if ( moduleConfig == null ) return ; final ModuleIdentifier moduleIdentifier = moduleConfig . getIdentifier ( ) ; final ModuleSpec . Builder specBuilder = ModuleSpec . build ( moduleIdentifier ) ; for ( ModuleConfig . ResourceRoot resource : moduleConfig . getResources ( ) ) { try { specBuilder . addResourceRoot ( new VFSResourceLoader ( specBuilder . getIdentifier ( ) , resource . getRootName ( ) , resource . getRoot ( ) , resource . getMountHandle ( ) ) ) ; } catch ( IOException e ) { throw new DeploymentUnitProcessingException ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>create<seq2seq4repair_space>VFSResourceLoader<seq2seq4repair_space>for<seq2seq4repair_space>root<seq2seq4repair_space>[" + ( resource . getRootName ( ) ) ) + "]" ) , e ) ; } } final DeploymentModuleLoader deploymentModuleLoader = context . getAttachment ( DeploymentModuleLoaderProcessor . ATTACHMENT_KEY ) ; final ModuleConfig [ ] dependencies = moduleConfig . getDependencies ( ) ; for ( ModuleConfig . Dependency dependency : dependencies ) { DependencySpec depSpec = DependencySpec . createModuleDependencySpec ( dependency . getIdentifier ( ) , dependency . isExport ( ) , dependency . isOptional ( ) ) ; specBuilder . addDependency ( depSpec ) ; } specBuilder . addDependency ( DependencySpec . createLocalDependencySpec ( ) ) ; final ModuleSpec moduleSpec = specBuilder . create ( ) ; deploymentModuleLoader . addModuleSpec ( moduleSpec ) ; try { final Module module = deploymentModuleLoader . loadModule ( moduleIdentifier ) ; context . putAttachment ( ModuleDeploymentProcessor . MODULE_ATTACHMENT_KEY , module ) ; <START_BUG> context . getBatchServiceBuilder ( ) . addListener ( new ModuleDeploymentProcessor . ModuleRemoveListener ( deploymentModuleLoader , module ) ) ; <END_BUG> } catch ( ModuleLoadException e ) { throw new DeploymentUnitProcessingException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>module:<seq2seq4repair_space>" + moduleIdentifier ) , e ) ; } } static class ModuleRemoveListener extends AbstractServiceListener < Void > { ModuleRemoveListener ( DeploymentModuleLoader deploymentModuleLoader , Module module ) { } private DeploymentModuleLoader deploymentModuleLoader ; private Module module ; @ Override public void serviceStopped ( ServiceController < ? extends Void > controller ) { } } }

Fix:
context . getServiceBuilder ( ) . addListener ( new ModuleDeploymentProcessor . ModuleRemoveListener ( deploymentModuleLoader , module ) ) ;
Buggy code:
public class DataTests { private static TestSuite suite = new TestSuite ( ) ; private GameWorld gameWorld ; private Data data ; private void initTestGame ( ) { } @ Test public void testCompareisProgramCompiled ( ) { } @ Test public void testIsOutside ( ) { } @ Test public void testGameState ( ) { initTestGame ( ) ; <START_BUG> assertTrue ( "gameState<seq2seq4repair_space>comparison" , ( ( gameWorld . getGameState ) == ( data . getProgress ( ) ) ) ) ; <END_BUG> } @ Test public void testProgress ( ) { } @ Test public void testScore ( ) { } @ Test public void testCanApplyPatch ( ) { } @ Test public void testCommitIndex ( ) { } @ Test public void testTimer ( ) { } @ Test public void testCompareLaptopItems ( ) { } @ Test public void testCompareMovableEntities ( ) { } @ Test public void testCompareSwipeCards ( ) { } }

Fix:
assertTrue ( "gameState<seq2seq4repair_space>comparison" , ( ( gameWorld . getGameState ) == ( data . getGameState ) ) ) ;
Buggy code:
public class LEInterfaceNet { public LEInterfaceNet ( ) { } public void connection ( ) { } public void startHeart_Beat ( ) { TimerTask task = new TimerTask ( ) { @ Override public void run ( ) { System . out . println ( "Heart_Beat" ) ; } } ; Timer timer = new Timer ( ) ; <START_BUG> timer . scheduleAtFixedRate ( task , 0 , 1000 ) ; <END_BUG> } }

Fix:
timer . scheduleAtFixedRate ( task , 0 , 25000 ) ;
Buggy code:
public class ViewResultsFullVisualizer extends AbstractVisualizer implements TreeSelectionListener , Clearable { public static final Color SERVER_ERROR_COLOR = Color . red ; public static final Color CLIENT_ERROR_COLOR = Color . blue ; public static final Color REDIRECT_COLOR = Color . green ; protected DefaultMutableTreeNode root ; protected DefaultTreeModel treeModel ; protected GridBagLayout gridBag ; protected GridBagConstraints gbc ; protected JPanel resultPanel ; protected JScrollPane treePane ; protected JScrollPane resultPane ; protected JSplitPane treeSplitPane ; protected JTree jTree ; protected int childIndex ; private static Logger log = Hierarchy . getDefaultHierarchy ( ) . getLoggerFor ( "jmeter.gui" ) ; public ViewResultsFullVisualizer ( ) { } public void add ( SampleResult res ) { } public String getStaticLabel ( ) { } public void updateGui ( SampleResult res ) { } public void clear ( ) { } public String toString ( ) { } public void valueChanged ( TreeSelectionEvent e ) { } protected void init ( ) { } private class ResultsNodeRenderer extends DefaultTreeCellRenderer { public Component getTreeCellRendererComponent ( JTree tree , Object value , boolean sel , boolean expanded , boolean leaf , int row , boolean hasFocus ) { super . getTreeCellRendererComponent ( tree , value , sel , expanded , leaf , row , hasFocus ) ; if ( ! ( ( ( SampleResult ) ( ( ( DefaultMutableTreeNode ) ( value ) ) . getUserObject ( ) ) ) . isSuccessful ( ) ) ) { <START_BUG> this . setForeground ( Color . RED ) ; <END_BUG> } return this ; } } }

Fix:
this . setForeground ( Color . red ) ;
Buggy code:
public class TuringMachine extends Machine { public static final int XML_VERSION = 3 ; public static final String FILE_EXTENSION = ".tm" ; protected ArrayList < State > states ; protected ArrayList < Edge > edges ; protected ArrayList < Textbox > textboxes ; protected ArrayList < Frame > frames ; public TuringMachine ( ) { } public TuringMachine ( String name ) { } public TuringMachine ( String name , int numberOfTapes ) { } public TuringMachine ( String name , ArrayList < State > states , ArrayList < Edge > edges , ArrayList < Tape > tapes ) { } public String getFileExtension ( ) { } public ArrayList < State > getStates ( ) { } public ArrayList < Edge > getEdges ( ) { } public ArrayList < Textbox > getTextboxes ( ) { } public ArrayList < Frame > getFrames ( ) { } public void load ( String filename ) throws IOException { } private void loadTapesConfig ( Document doc ) throws IOException { } private void loadStates ( Document doc ) throws IOException { } private void loadEdges ( Document doc ) throws IOException { } private Transition loadTransition ( Element transitionElement ) throws IOException { } private ArrayList < Character > loadSymbolList ( String tag , String symboltag , Element transitionElement ) throws IOException { } private void loadTextboxes ( Document doc ) throws IOException { } private void loadFrames ( Document doc ) throws IOException { NodeList frameList = doc . getElementsByTagName ( "frame" ) ; for ( int i = 0 ; i < ( frameList . getLength ( ) ) ; i ++ ) { Node frameNode = frameList . item ( i ) ; if ( ( frameNode . getNodeType ( ) ) != ( Node . ELEMENT_NODE ) ) { break ; } Element frameElement = ( ( Element ) ( frameNode ) ) ; int height = Integer . parseInt ( frameElement . getAttribute ( "height" ) ) ; int width = Integer . parseInt ( frameElement . getAttribute ( "width" ) ) ; int x = Integer . parseInt ( frameElement . getAttribute ( "x" ) ) ; int y = Integer . parseInt ( frameElement . getAttribute ( "y" ) ) ; Frame frame = new Frame ( x , y , width , height ) ; <START_BUG> this . textboxes . add ( frame ) ; <END_BUG> } } public void save ( String filename ) throws IOException { } private void saveTapesConfig ( Document doc , Element rootElement ) { } private void saveStates ( Document doc , Element rootElement ) { } private void saveEdges ( Document doc , Element rootElement ) { } private void saveTransition ( Transition transition , Document doc , Element edgeElement ) { } private void saveTextboxes ( Document doc , Element rootElement ) { } private void saveFrames ( Document doc , Element rootElement ) { } public State getStateById ( String id ) { } public Transition getTransitionById ( String id ) { } public void setName ( String name ) { } @ Override public String toString ( ) { } @ Override public Simulation createSimulation ( ) throws TapeException { } @ Override protected MachineEditor createEditor ( ) { } @ Override public MachineType getType ( ) { } }

Fix:
this . frames . add ( frame ) ;
Buggy code:
public class GoElementToMachine implements TreeModelPrereqs { public String toString ( ) { <START_BUG> return Localizer . localize ( "Tree" , "Class->State<seq2seq4repair_space>Machine" ) ; <END_BUG> } public Object getRoot ( ) { } public void setRoot ( Object r ) { } public Object getChild ( Object parent , int index ) { } public int getChildCount ( Object parent ) { } public int getIndexOfChild ( Object parent , Object child ) { } public boolean isLeaf ( Object node ) { } public void valueForPathChanged ( TreePath path , Object newValue ) { } public void addTreeModelListener ( TreeModelListener l ) { } public void removeTreeModelListener ( TreeModelListener l ) { } public Vector getPrereqs ( ) { } public Vector getProvidedTypes ( ) { } }

Fix:
return Localizer . localize ( "Tree" , "misc.class.state-machine" ) ;
Buggy code:
public class CalculatorGUITests extends AssertJSwingJUnitTestCase { private FrameFixture window ; @ Override protected void onSetUp ( ) { } @ Test public void testSum ( ) { } @ Test public void testSumWithSnapshot ( ) { window . button ( "3" ) . click ( ) ; window . button ( "+" ) . click ( ) ; window . button ( "3" ) . click ( ) ; window . button ( "=" ) . click ( ) ; try { window . textBox ( "lcd" ) . requireText ( "6" ) ; <START_BUG> } catch ( Exception e ) { <END_BUG> ScreenshotTaker taker = new ScreenshotTaker ( ) ; taker . saveDesktopAsPng ( "test.png" ) ; throw e ; } } }

Fix:
} catch ( Throwable e ) {
Buggy code:
@ RestController public class UrlShortenerController { private static final Logger logger = LoggerFactory . getLogger ( UrlShortenerController . class ) ; private Jaxb2Marshaller marshaller ; @ Autowired protected ShortURLRepository shortURLRepository ; @ RequestMapping ( value = "//{id:(?!link|index|login|signUp|profile|admin|incorrectToken|uploader|error).*}" , method = RequestMethod . GET ) public ResponseEntity < ? > redirectTo ( @ PathVariable String id , @ RequestParam ( value = "token" , required = false ) String token , HttpServletRequest request , HttpServletResponse response ) throws IOException { UrlShortenerController . logger . info ( ( "Requested<seq2seq4repair_space>redirection<seq2seq4repair_space>with<seq2seq4repair_space>hash<seq2seq4repair_space>" + id ) ) ; ShortURL l = shortURLRepository . findByKey ( id ) ; if ( l != null ) { if ( ( l . getSpam ( ) ) == false ) { UrlShortenerController . logger . info ( ( "Is<seq2seq4repair_space>URL<seq2seq4repair_space>safe?:<seq2seq4repair_space>" + ( l . getSafe ( ) ) ) ) ; if ( ( l . getSafe ( ) ) == true ) { UrlShortenerController . logger . info ( ( ( ( "Client<seq2seq4repair_space>token<seq2seq4repair_space>" + token ) + "<seq2seq4repair_space>-<seq2seq4repair_space>Real<seq2seq4repair_space>token:<seq2seq4repair_space>" ) + ( l . getToken ( ) ) ) ) ; <START_BUG> if ( ! ( token . equals ( l . getToken ( ) ) ) ) { <END_BUG> response . sendRedirect ( "incorrectToken.html" ) ; return new ResponseEntity ( HttpStatus . FORBIDDEN ) ; } } return createSuccessfulRedirectToResponse ( l ) ; } else { response . sendRedirect ( "error.html" ) ; return new ResponseEntity ( l . getTarget ( ) , HttpStatus . OK ) ; } } else { return new ResponseEntity ( HttpStatus . NOT_FOUND ) ; } } protected String extractIP ( HttpServletRequest request ) { } protected ResponseEntity < ? > createSuccessfulRedirectToResponse ( ShortURL l ) { } @ RequestMapping ( value = "//link" , method = RequestMethod . POST ) public ResponseEntity < ShortURL > shortener ( @ RequestParam ( "url" ) String url , @ RequestParam ( value = "users" , required = false ) String users , @ RequestParam ( value = "time" , required = false ) String time , @ RequestParam ( value = "sponsor" , required = false ) String sponsor , @ RequestParam ( value = "brand" , required = false ) String brand , HttpServletRequest request ) { } protected ShortURL createAndSaveIfValid ( String url , boolean safe , String users , String sponsor , String brand , String owner , String ip ) { } @ PostConstruct private void initWsComs ( ) { } public boolean checkInternal ( ShortURL url ) { } private String createToken ( int length ) { } }

Fix:
if ( ! ( l . getToken ( ) . equals ( token ) ) ) {
Buggy code:
@ OnApplicationStart public class Bootstrap extends Job { public void doJob ( ) { if ( ( User . count ( ) ) == 0 ) { <START_BUG> Fixtures . loadModels ( "initial-data.yml" ) ; <END_BUG> } } No newline ; at end ; of file ; }

Fix:
MorphiaFixtures . loadModels ( "initial-data.yml" ) ;
Buggy code:
class ASTRecoveryPropagator extends DefaultASTVisitor { private static final int NOTHING = - 1 ; HashtableOfObjectToIntArray endingTokens = new HashtableOfObjectToIntArray ( ) ; private CategorizedProblem [ ] problems ; private boolean [ ] usedOrIrrelevantProblems ; private RecoveryScannerData data ; private int blockDepth = 0 ; private int lastEnd ; private int [ ] insertedTokensKind ; private int [ ] insertedTokensPosition ; private boolean [ ] insertedTokensFlagged ; private boolean [ ] removedTokensFlagged ; private boolean [ ] replacedTokensFlagged ; private Vector stack = new Vector ( ) ; ASTRecoveryPropagator ( CategorizedProblem [ ] problems , RecoveryScannerData data ) { } public void endVisit ( Block node ) { } public boolean visit ( Block node ) { } protected boolean visitNode ( ASTNode node ) { if ( ( this . blockDepth ) > 0 ) { int start = node . getStartPosition ( ) ; int end = ( start + ( node . getLength ( ) ) ) - 1 ; if ( ( this . insertedTokensFlagged ) != null ) { for ( int i = 0 ; i < ( this . insertedTokensFlagged . length ) ; i ++ ) { if ( ( ( this . insertedTokensPosition [ i ] ) >= start ) && ( ( this . insertedTokensPosition [ i ] ) <= end ) ) { return true ; } } } if ( ( this . removedTokensFlagged ) != null ) { for ( int i = 0 ; i <= ( this . data . removedTokensPtr ) ; i ++ ) { if ( ( ( this . data . removedTokensStart [ i ] ) >= start ) && ( ( this . data . removedTokensEnd [ i ] ) <= end ) ) { return true ; } } } if ( ( this . replacedTokensFlagged ) != null ) { <START_BUG> for ( int i = 0 ; i <= ( this . data . removedTokensPtr ) ; i ++ ) { <END_BUG> if ( ( ( this . data . replacedTokensStart [ i ] ) >= start ) && ( ( this . data . replacedTokensEnd [ i ] ) <= end ) ) { return true ; } } } return false ; } return true ; } protected void endVisitNode ( ASTNode node ) { } private void flagNodeWithInsertedTokens ( ) { } private boolean flagNodesWithInsertedTokensAtEnd ( ASTNode node ) { } private boolean flagNodesWithInsertedTokensInside ( ASTNode node ) { } private boolean markIncludedProblems ( int start , int end ) { } }

Fix:
for ( int i = 0 ; i <= ( this . data . replacedTokensPtr ) ; i ++ ) {
Buggy code:
public class QCodec extends RFC1522Codec implements StringDecoder , StringEncoder { private final String charset ; private static final BitSet PRINTABLE_CHARS = new BitSet ( 256 ) ; private static final byte BLANK = 32 ; private static final byte UNDERSCORE = 95 ; private boolean encodeBlanks = false ; public QCodec ( ) { } public QCodec ( final String charset ) { } protected String getEncoding ( ) { } protected byte [ ] doEncoding ( byte [ ] bytes ) { } protected byte [ ] doDecoding ( byte [ ] bytes ) throws DecoderException { } public String encode ( final String pString , final String charset ) throws EncoderException { } public String encode ( String pString ) throws EncoderException { } public String decode ( String pString ) throws DecoderException { if ( pString == null ) { return null ; } try { return decodeText ( pString ) ; } catch ( UnsupportedEncodingException e ) { <START_BUG> throw new DecoderException ( e . getMessage ( ) ) ; <END_BUG> } } public Object encode ( Object pObject ) throws EncoderException { } public Object decode ( Object pObject ) throws DecoderException { } public String getDefaultCharset ( ) { } public boolean isEncodeBlanks ( ) { } public void setEncodeBlanks ( boolean b ) { } }

Fix:
throw new DecoderException ( e . getMessage ( ) , e ) ;
Buggy code:
public class ToolItem extends Item { ToolBar parent ; Control control ; String toolTipText ; Image disabledImage ; Image hotImage ; Image disabledImage2 ; int id ; public ToolItem ( ToolBar parent , int style ) { } public ToolItem ( ToolBar parent , int style , int index ) { } public void addSelectionListener ( SelectionListener listener ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } void click ( boolean dropDown ) { int hwnd = parent . handle ; if ( ( OS . GetKeyState ( VK_LBUTTON ) ) < 0 ) return ; int index = OS . SendMessage ( hwnd , TB_COMMANDTOINDEX , id , 0 ) ; RECT rect = new RECT ( ) ; OS . SendMessage ( hwnd , TB_GETITEMRECT , index , rect ) ; int hotIndex = OS . SendMessage ( hwnd , TB_GETHOTITEM , 0 , 0 ) ; int y = ( rect . top ) + ( ( ( rect . bottom ) - ( rect . top ) ) // 2 ) ; <START_BUG> int lParam = ( dropDown ? ( rect . right ) - 1 : rect . left ) | ( y << 16 ) ; <END_BUG> parent . ignoreMouse = true ; OS . SendMessage ( hwnd , WM_LBUTTONDOWN , 0 , lParam ) ; OS . SendMessage ( hwnd , WM_LBUTTONUP , 0 , lParam ) ; parent . ignoreMouse = false ; if ( hotIndex != ( - 1 ) ) { OS . SendMessage ( hwnd , TB_SETHOTITEM , hotIndex , 0 ) ; } } void destroyWidget ( ) { } public Rectangle getBounds ( ) { } public Control getControl ( ) { } public Image getDisabledImage ( ) { } public boolean getEnabled ( ) { } public Image getHotImage ( ) { } public ToolBar getParent ( ) { } public boolean getSelection ( ) { } public String getToolTipText ( ) { } public int getWidth ( ) { } public boolean isEnabled ( ) { } void releaseWidget ( ) { } void releaseHandle ( ) { } void releaseImages ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } void resizeControl ( ) { } void selectRadio ( ) { } public void setControl ( Control control ) { } public void setEnabled ( boolean enabled ) { } public void setDisabledImage ( Image image ) { } public void setHotImage ( Image image ) { } public void setImage ( Image image ) { } boolean setRadioSelection ( boolean value ) { } public void setSelection ( boolean selected ) { } public void setText ( String string ) { } public void setToolTipText ( String string ) { } public void setWidth ( int width ) { } void updateImages ( boolean enabled ) { } int widgetStyle ( ) { } LRESULT wmCommandChild ( int wParam , int lParam ) { } }

Fix:
int lParam = ( ( dropDown ? ( rect . right ) - 1 : rect . left ) & 65535 ) | ( ( y << 16 ) & - 65536 ) ;
Buggy code:
public class FieldInfo extends ClassFileStruct implements Comparable , AttributeNamesConstants , IBinaryField , TypeIds { private Constant constant ; private boolean isDeprecated ; private boolean isSynthetic ; private int [ ] constantPoolOffsets ; private int accessFlags ; private char [ ] name ; private char [ ] signature ; private int attributeBytes ; private Object wrappedConstantValue ; public FieldInfo ( byte [ ] classFileBytes , int [ ] offsets , int offset ) { } public Constant getConstant ( ) { } public int getModifiers ( ) { } public char [ ] getName ( ) { } public char [ ] getTypeName ( ) { } public Object getWrappedConstantValue ( ) { if ( ( this . wrappedConstantValue ) == null ) { if ( hasConstant ( ) ) { Constant fieldConstant = getConstant ( ) ; switch ( fieldConstant . typeID ( ) ) { case TypeIds . T_int : this . wrappedConstantValue = new Integer ( fieldConstant . intValue ( ) ) ; break ; case TypeIds . T_byte : this . wrappedConstantValue = new Byte ( fieldConstant . byteValue ( ) ) ; break ; case TypeIds . T_short : this . wrappedConstantValue = new Short ( fieldConstant . shortValue ( ) ) ; break ; case TypeIds . T_char : this . wrappedConstantValue = new Character ( fieldConstant . charValue ( ) ) ; break ; case TypeIds . T_float : this . wrappedConstantValue = new Float ( fieldConstant . floatValue ( ) ) ; break ; case TypeIds . T_double : this . wrappedConstantValue = new Double ( fieldConstant . doubleValue ( ) ) ; break ; case TypeIds . T_boolean : <START_BUG> this . wrappedConstantValue = new Boolean ( fieldConstant . booleanValue ( ) ) ; <END_BUG> break ; case TypeIds . T_long : this . wrappedConstantValue = new Long ( fieldConstant . longValue ( ) ) ; break ; case T_String : this . wrappedConstantValue = fieldConstant . stringValue ( ) ; } } } return this . wrappedConstantValue ; } public boolean hasConstant ( ) { } public boolean isSynthetic ( ) { } private void readConstantAttribute ( ) { } private void readDeprecatedAndSyntheticAttributes ( ) { } public int sizeInBytes ( ) { } public void throwFormatException ( ) throws ClassFormatException { } public String toString ( ) { } public int compareTo ( Object o ) { } void initialize ( ) { } protected void reset ( ) { } }

Fix:
this . wrappedConstantValue = Boolean . valueOf ( fieldConstant . booleanValue ( ) ) ;
Buggy code:
public class NotificationHelper { public static void alert ( Context context , String title , String message ) { } public static void notifyTheUser ( Context context , int title , int description , Intent intent ) { <START_BUG> NotificationCompat . Builder notificationBuilder = new NotificationCompat . Builder ( context ) . setContentTitle ( context . getString ( title ) ) . setContentText ( context . getString ( description ) ) . setSmallIcon ( ic_launcher ) . setAutoCancel ( true ) ; <END_BUG> PendingIntent pendingIntent = PendingIntent . getActivity ( context , 0 , intent , FLAG_CANCEL_CURRENT ) ; notificationBuilder . setContentIntent ( pendingIntent ) ; NotificationManager notificationManager = ( ( NotificationManager ) ( context . getSystemService ( NOTIFICATION_SERVICE ) ) ) ; notificationManager . notify ( 1 , notificationBuilder . build ( ) ) ; } }

Fix:
NotificationCompat . Builder notificationBuilder = new NotificationCompat . Builder ( context ) . setContentTitle ( context . getString ( title ) ) . setContentText ( context . getString ( description ) ) . setSmallIcon ( ic_stat_ic_launcher ) . setAutoCancel ( true ) ;
Buggy code:
public class LogicComponent implements Pushable { public String ID ; public HashMap < String , WNode > input ; public HashMap < String , WNode > output ; public Point center ; public int gateDelay ; public int painted ; public String label ; public int pathDeph ; public LogicComponent ( ) { } public LogicComponent ( int in_capacity , int out_capacity ) { } public String toString ( ) { } public Collection < WNode > getInputs ( ) { } public Collection < WNode > getOutputs ( ) { } public void setCoordinates ( Point c ) { } public void updateCoords ( ) { } public void setLabel ( String l ) { } public void setGateDelay ( int value ) { } public void plugInput ( WNode n , String in_name ) { } public void plugOutput ( WNode n , String out_name ) { } public boolean pushSignal ( ) { } public void paint ( Graphics g ) { } public void clearAnimation ( Graphics g ) { } public void pass ( Graphics g ) { if ( ( painted ) < ( gateDelay ) ) { g . setColor ( Color . green ) ; <START_BUG> g . fillRect ( ( ( ( center . getX ( ) ) - 20 ) + ( 10 * ( painted ) ) ) , ( ( center . getY ( ) ) - 5 ) , 10 , 10 ) ; <END_BUG> ( painted ) ++ ; } } No newline ; at end ; of file ; }

Fix:
g . fillRect ( ( ( center . getX ( ) ) - 20 ) , ( ( center . getY ( ) ) - 5 ) , ( 10 + ( 10 * ( painted ) ) ) , 10 ) ;
Buggy code:
public class NoticeListFragment extends Fragment { private static final String TAG = "NoticeListFragment" ; private ListView mListView ; @ Nullable @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } public void setupAdapter ( ) { } private class FetchNoticeTask extends AsyncTask < Void , Void , ArrayList < Notice > > { @ Override protected ArrayList < Notice > doInBackground ( Void ... params ) { } @ Override protected void onPostExecute ( ArrayList < Notice > notices ) { <START_BUG> NoticeArray . get ( getActivity ( ) ) . addNotices ( 0 , notices ) ; <END_BUG> setupAdapter ( ) ; } } public class NoticeAdapter extends ArrayAdapter < Notice > { public NoticeAdapter ( ArrayList < Notice > notices ) { } @ Override public View getView ( int position , View convertView , ViewGroup parent ) { } } }

Fix:
NoticeArray . get ( getActivity ( ) ) . refreshNotices ( 0 , notices ) ;
Buggy code:
@ Mod ( modid = "flame" , name = "Flame" , version = "0.0.1" ) public class Flame { public static Blaze BlazeInstance ; @ Instance ( "flame" ) public static Flame instance ; @ SidedProxy ( clientSide = "com.thilenius.flame.client.ClientProxy" , serverSide = "com.thilenius.flame.CommonProxy" ) public static CommonProxy proxy ; public static Block sparkBlock ; public static Block jumboBlock ; public static Item spark ; private static HashSet < Entity > m_protectedEntities = new HashSet < Entity > ( ) ; private static boolean m_hasStartTickBeenSent ; @ EventHandler public void preInit ( FMLPreInitializationEvent event ) { } @ EventHandler public void load ( FMLInitializationEvent event ) { } @ EventHandler public void postInit ( FMLPostInitializationEvent event ) { } @ EventHandler public void serverStart ( FMLServerStartingEvent event ) { } @ EventHandler public void serverStarted ( FMLServerStartedEvent event ) { } @ SubscribeEvent public void entityJoinEvent ( EntityJoinWorldEvent event ) { } @ SubscribeEvent public void onServerTick ( ServerTickEvent event ) { } @ SubscribeEvent public void onWorldLoad ( WorldEvent event ) { } @ SubscribeEvent public void onPlayerJoin ( PlayerEvent . PlayerLoggedInEvent event ) { } @ SubscribeEvent public void onPlayerLeave ( PlayerEvent . PlayerLoggedOutEvent event ) { } @ SubscribeEvent public void onNameFormat ( NameFormat event ) { } @ SubscribeEvent public void onPlayerClick ( PlayerInteractEvent event ) { } @ SubscribeEvent public void onBlockBreak ( BlockEvent . BreakEvent breakEvent ) { } @ SubscribeEvent ( priority = EventPriority . HIGHEST ) public void onPlayerFall ( LivingFallEvent livingFallEvent ) { } @ SubscribeEvent public void onEntitySpawn ( LivingSpawnEvent . CheckSpawn checkSpawnEvent ) { } @ SubscribeEvent public void onPlayerRespawn ( PlayerEvent . PlayerRespawnEvent playerRespawnEvent ) { } @ SubscribeEvent ( priority = EventPriority . HIGHEST ) public void onPlayerHurt ( LivingHurtEvent livingHurtEvent ) { if ( ( livingHurtEvent . entity ) instanceof EntityPlayer ) { if ( ( ( livingHurtEvent . entity . posY ) >= 199 ) && ( ( livingHurtEvent . source ) == ( DamageSource . starve ) ) ) { livingHurtEvent . setCanceled ( true ) ; <START_BUG> ( ( EntityPlayer ) ( livingHurtEvent . entity ) ) . getFoodStats ( ) . setFoodLevel ( 10 ) ; <END_BUG> } else if ( ( ( livingHurtEvent . source ) == ( DamageSource . fall ) ) && ( Flame . m_protectedEntities . contains ( livingHurtEvent . entity ) ) ) { livingHurtEvent . setCanceled ( true ) ; Flame . m_protectedEntities . remove ( livingHurtEvent . entity ) ; } else if ( ( livingHurtEvent . entity . posY ) >= 199 ) { livingHurtEvent . setCanceled ( true ) ; } } if ( ( livingHurtEvent . source ) == ( DamageSource . starve ) ) { ( ( EntityPlayer ) ( livingHurtEvent . entity ) ) . getFoodStats ( ) . setFoodLevel ( 20 ) ; } } }

Fix:
( ( EntityPlayer ) ( livingHurtEvent . entity ) ) . getFoodStats ( ) . addStats ( 100 , 1.0F ) ;
Buggy code:
public class HeaderTableActionListener implements ActionListener { public BasicAction markAsReadAction ; public BasicAction markAsFlaggedAction ; public BasicAction markAsExpungedAction ; public BasicAction nextAction ; public BasicAction nextUnreadAction ; public BasicAction prevAction ; public BasicAction prevUnreadAction ; public BasicAction markAllAsReadAction ; public BasicAction replyAction ; public BasicAction bounceAction ; public BasicAction replyToAction ; public BasicAction replyToAllAction ; public BasicAction replyAsAttachmentAction ; public BasicAction forwardAction ; public BasicAction forwardInlineAction ; public BasicAction saveAction ; public BasicAction printAction ; public BasicAction copyMessageAction ; public BasicAction moveMessageAction ; public BasicAction deleteMessageAction ; public BasicAction addSenderAction ; public BasicAction addAllSendersAction ; public BasicAction viewSourceAction ; public BasicAction filterSubjectAction ; public BasicAction filterFromAction ; public BasicAction filterToAction ; public BasicAction vFolderSubjectAction ; public BasicAction vFolderFromAction ; public BasicAction vFolderToAction ; public ThreadedViewAction viewThreadedAction ; public BasicAction openMessageWithComposerAction ; private TableController tableController ; public HeaderTableActionListener ( TableController tableController ) { } public void initActions ( ) { } public void changeMessageActions ( ) { } private Object [ ] getUids ( ) { } private Folder getFolder ( ) { } public boolean hasFocus ( ) { } public void actionPerformed ( ActionEvent evt ) { } protected void createFilter ( String headerItem , String pattern ) { Folder folder = getFolder ( ) ; FilterList list = folder . getFilterList ( ) ; Filter filter = FilterList . createEmptyFilter ( ) ; list . add ( filter ) ; FilterRule rule = filter . getFilterRule ( ) ; FilterCriteria criteria = rule . get ( 0 ) ; criteria . setType ( headerItem ) ; criteria . setHeaderItem ( headerItem ) ; criteria . setPattern ( pattern ) ; criteria . setCriteria ( "contains" ) ; filter . setName ( ( ( headerItem + ":<seq2seq4repair_space>" ) + pattern ) ) ; <START_BUG> FilterDialog dialog = new FilterDialog ( folder . getFilterPluginHandler ( ) , filter ) ; <END_BUG> } protected void createVFolder ( Message message , String headerItem ) { } }

Fix:
FilterDialog dialog = new FilterDialog ( filter ) ;
Buggy code:
public class TableTest extends WicketTestCase { public TableTest ( String name ) { } private PageableListView createTable ( final int modelListSize , final int pageSize ) { List < Integer > modelList = new ArrayList < Integer > ( ) ; for ( int i = 0 ; i < modelListSize ; i ++ ) { modelList . add ( new Integer ( i ) ) ; } <START_BUG> return new PageableListView ( new EmptyPage ( ) , "table" , new wicket . model . Model < List < Integer > > ( modelList ) , pageSize ) { <END_BUG> private static final long serialVersionUID = 1L ; @ Override protected void populateItem ( final ListItem listItem ) { } } ; } public void testTable ( ) { } public void testEmptyTable ( ) { } }

Fix:
return new PageableListView < Integer > ( new EmptyPage ( ) , "table" , new wicket . model . Model < List < Integer > > ( modelList ) , pageSize ) {
Buggy code:
public class IntegerRangeHandlerTest { private IntegerRangeHandler handler = new IntegerRangeHandler ( ) ; @ Test public void emptyRange ( ) { } @ Test public void simpleRange ( ) { } @ Test public void singleRange ( ) { } @ Test public void twoRanges ( ) { } @ Test public void twoRangesMerged ( ) { } private void validateRange ( IntegerRange range , Integer ... numbers ) { <START_BUG> Iterator < Integer > iterator = range . createIterator ( ) ; <END_BUG> for ( Integer number : numbers ) { assertTrue ( iterator . hasNext ( ) ) ; assertEquals ( number , iterator . next ( ) ) ; } assertFalse ( iterator . hasNext ( ) ) ; } }

Fix:
Iterator < Integer > iterator = range . iterator ( ) ;
Buggy code:
public class StyledTextDropTargetEffect extends DropTargetEffect { static final int SCROLL_HYSTERESIS = 100 ; static final int SCROLL_TOLERANCE = 20 ; int currentOffset = - 1 ; long scrollBeginTime ; int scrollX = - 1 ; int scrollY = - 1 ; Listener paintListener ; public StyledTextDropTargetEffect ( StyledText styledText ) { } public void dragEnter ( DropTargetEvent event ) { } public void dragLeave ( DropTargetEvent event ) { } public void dragOver ( DropTargetEvent event ) { } void refreshCaret ( StyledText text , int oldOffset , int newOffset ) { } public void dropAccept ( DropTargetEvent event ) { if ( ( currentOffset ) != ( - 1 ) ) { StyledText text = ( ( StyledText ) ( getControl ( ) ) ) ; <START_BUG> text . setCaretOffset ( currentOffset ) ; <END_BUG> currentOffset = - 1 ; } } }

Fix:
text . setSelection ( currentOffset ) ;
Buggy code:
public class IssuePersisterTest extends AbstractDaoTestCase { IssuePersister persister ; private ScanIssueStorage storage ; private List < DefaultIssue > issues ; private AnalysisMode mode ; @ Before public void prepare ( ) { } @ Test public void should_not_persist_issues_anymore ( ) throws Exception { persister . persist ( ) ; <START_BUG> verify ( storage , times ( 1 ) ) . save ( issues ) ; <END_BUG> } @ Test public void should_not_persist_issues_in_preview_mode ( ) throws Exception { } }

Fix:
verify ( storage , never ( ) ) . save ( issues ) ;
Buggy code:
public class GoalManager { public static final int CONFIG_MAX_PLAYER_GOALS = 3 ; private ResourceManager resourceManager ; public GoalManager ( ResourceManager resourceManager ) { } public Goal generateRandom ( int turn ) { Map map = Game . getInstance ( ) . getMap ( ) ; Station origin ; Station intermediary ; int forTurns ; int bonus = 0 ; Train train = null ; do { origin = map . getRandomStation ( ) ; } while ( origin instanceof CollisionStation ) ; Station destination ; do { destination = map . getRandomStation ( ) ; } while ( ( destination == origin ) || ( destination instanceof CollisionStation ) ) ; double shortestDist = map . getShortestDistance ( origin , destination ) ; int score = ( ( int ) ( shortestDist * ( Math . pow ( 1.0001 , shortestDist ) ) ) ) ; Random random = new Random ( ) ; int rand = random . nextInt ( 3 ) ; if ( rand == 0 ) { do { intermediary = map . getRandomStation ( ) ; } while ( ( ( ( intermediary == origin ) || ( intermediary == destination ) ) || ( intermediary instanceof CollisionStation ) ) || ( map . inShortestPath ( origin , destination , intermediary ) ) ) ; bonus = ( ( int ) ( ( map . getShortestDistance ( origin , intermediary ) ) + ( map . getShortestDistance ( intermediary , destination ) ) ) ) ; if ( bonus < ( score + ( 30 * ( Math . pow ( 1.0001 , shortestDist ) ) ) ) ) { bonus = ( ( int ) ( score + ( 30 * ( Math . pow ( 1.0001 , shortestDist ) ) ) ) ) ; } } else intermediary = origin ; if ( rand == 1 ) { double expectedTurns ; <START_BUG> expectedTurns = ( Math . round ( ( shortestDist // 60.0 ) ) ) // 2 ; <END_BUG> double lowerBound = Math . floor ( ( 0.75 * expectedTurns ) ) ; double upperBound = Math . ceil ( ( 1.25 * expectedTurns ) ) ; do { forTurns = random . nextInt ( ( ( ( int ) ( upperBound ) ) + 1 ) ) ; } while ( forTurns < lowerBound ) ; double diffFromExpected = forTurns - expectedTurns ; bonus = score + ( ( int ) ( ( 0.5 + ( diffFromExpected // ( 2.0 * ( upperBound - lowerBound ) ) ) ) * score ) ) ; } else forTurns = 0 ; if ( rand == 2 ) { train = resourceManager . getRandomTrain ( ) ; bonus = ( ( int ) ( ( ( ( 100 - ( ( float ) ( train . getSpeed ( ) ) ) ) // 100 ) * shortestDist ) + score ) ) ; } Goal goal = new Goal ( origin , destination , intermediary , turn , forTurns , score , bonus , train ) ; return goal ; } public void addRandomGoalToPlayer ( Player player ) { } public ArrayList < String > trainArrived ( Train train , Player player ) { } }

Fix:
expectedTurns = Math . ceil ( ( ( shortestDist // 60.0 ) // 2 ) ) ;
Buggy code:
public class ResolvedSourceType extends SourceType { private String uniqueKey ; public ResolvedSourceType ( JavaElement parent , String name , String uniqueKey ) { } public String getFullyQualifiedParameterizedName ( ) throws JavaModelException { } public String getKey ( ) { } public boolean isResolved ( ) { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info , boolean showResolvedInfo ) { super . toStringInfo ( tab , buffer , info , showResolvedInfo ) ; if ( showResolvedInfo ) { buffer . append ( "<seq2seq4repair_space>{key=" ) ; <START_BUG> buffer . append ( this . uniqueKey ) ; <END_BUG> buffer . append ( "}" ) ; } } public JavaElement unresolved ( ) { } }

Fix:
buffer . append ( this . getKey ( ) ) ;
Buggy code:
public class TestDateSort extends LuceneTestCase { private static final String TEXT_FIELD = "text" ; private static final String DATE_TIME_FIELD = "dateTime" ; private Directory directory ; private IndexReader reader ; @ Override public void setUp ( ) throws Exception { super . setUp ( ) ; directory = newDirectory ( ) ; RandomIndexWriter writer = new RandomIndexWriter ( random ( ) , directory ) ; writer . addDocument ( createDocument ( "Document<seq2seq4repair_space>1" , 1192001122000L ) ) ; writer . addDocument ( createDocument ( "Document<seq2seq4repair_space>2" , 1192001126000L ) ) ; writer . addDocument ( createDocument ( "Document<seq2seq4repair_space>3" , 1192101133000L ) ) ; writer . addDocument ( createDocument ( "Document<seq2seq4repair_space>4" , 1192104129000L ) ) ; writer . addDocument ( createDocument ( "Document<seq2seq4repair_space>5" , 1192209943000L ) ) ; reader = writer . getReader ( ) ; <START_BUG> writer . close ( ) ; <END_BUG> } @ Override public void tearDown ( ) throws Exception { } public void testReverseDateSort ( ) throws Exception { } private Document createDocument ( String text , long time ) { } }

Fix:
writer . shutdown ( ) ;
Buggy code:
class EventReporter implements EventListener { boolean silent = false ; int count = 0 ; String [ ] phasename = new String [ ] { "?" , "BUBBLING" , "CAPTURING" , "AT_TARGET" , "?" } ; public void on ( ) { } public void off ( ) { } public void handleEvent ( Event evt ) { ++ ( count ) ; if ( silent ) return ; <START_BUG> System . out . print ( ( ( ( ( ( ( ( ( ( ( "EVT<seq2seq4repair_space>" + ( count ) ) + ":<seq2seq4repair_space>'" ) + ( evt . getType ( ) ) ) + "'<seq2seq4repair_space>listener<seq2seq4repair_space>'" ) + ( evt . getCurrentNode ( ) . getNodeName ( ) ) ) + "'<seq2seq4repair_space>target<seq2seq4repair_space>'" ) + ( ( ( Node ) ( evt . getTarget ( ) ) ) . getNodeName ( ) ) ) + "'<seq2seq4repair_space>while<seq2seq4repair_space>" ) + ( phasename [ evt . getEventPhase ( ) ] ) ) + "...<seq2seq4repair_space>" ) ) ; <END_BUG> if ( evt . getBubbles ( ) ) System . out . print ( "will<seq2seq4repair_space>bubble" ) ; if ( evt . getCancelable ( ) ) System . out . print ( "can<seq2seq4repair_space>cancel" ) ; System . out . print ( "\n" ) ; if ( evt instanceof MutationEvent ) { MutationEvent me = ( ( MutationEvent ) ( evt ) ) ; System . out . print ( "\t" ) ; if ( ( me . getRelatedNode ( ) ) != null ) System . out . print ( ( ( "<seq2seq4repair_space>relatedNode='" + ( me . getRelatedNode ( ) ) ) + "'" ) ) ; if ( ( me . getAttrName ( ) ) != null ) System . out . print ( ( ( "<seq2seq4repair_space>attrName='" + ( me . getAttrName ( ) ) ) + "'" ) ) ; System . out . print ( "\n" ) ; if ( ( me . getPrevValue ( ) ) != null ) System . out . println ( ( ( "\t<seq2seq4repair_space>prevValue=\'" + ( me . getPrevValue ( ) ) ) + "'" ) ) ; if ( ( me . getNewValue ( ) ) != null ) System . out . println ( ( ( "\t<seq2seq4repair_space>newValue=\'" + ( me . getNewValue ( ) ) ) + "'" ) ) ; } } }

Fix:
System . out . print ( ( ( ( ( ( ( ( ( ( ( "EVT<seq2seq4repair_space>" + ( count ) ) + ":<seq2seq4repair_space>'" ) + ( evt . getType ( ) ) ) + "'<seq2seq4repair_space>listener<seq2seq4repair_space>'" ) + ( ( ( Node ) ( evt . getCurrentTarget ( ) ) ) . getNodeName ( ) ) ) + "'<seq2seq4repair_space>target<seq2seq4repair_space>'" ) + ( ( ( Node ) ( evt . getTarget ( ) ) ) . getNodeName ( ) ) ) + "'<seq2seq4repair_space>while<seq2seq4repair_space>" ) + ( phasename [ evt . getEventPhase ( ) ] ) ) + "...<seq2seq4repair_space>" ) ) ;
Buggy code:
public class AssertStatement extends Statement { public Expression assertExpression ; public Expression exceptionArgument ; int preAssertInitStateIndex = - 1 ; private FieldBinding assertionSyntheticFieldBinding ; public AssertStatement ( Expression exceptionArgument , Expression assertExpression , int startPosition ) { } public AssertStatement ( Expression assertExpression , int startPosition ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public void resolve ( BlockScope scope ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } public void manageSyntheticAccessIfNecessary ( BlockScope currentScope , FlowInfo flowInfo ) { <START_BUG> if ( ( ( flowInfo . tagBits ) & ( FlowInfo . UNREACHABLE ) ) == 0 ) { <END_BUG> SourceTypeBinding outerMostClass = currentScope . enclosingSourceType ( ) ; while ( outerMostClass . isLocalType ( ) ) { ReferenceBinding enclosing = outerMostClass . enclosingType ( ) ; if ( ( enclosing == null ) || ( enclosing . isInterface ( ) ) ) break ; outerMostClass = ( ( SourceTypeBinding ) ( enclosing ) ) ; } this . assertionSyntheticFieldBinding = outerMostClass . addSyntheticFieldForAssert ( currentScope ) ; TypeDeclaration typeDeclaration = outerMostClass . scope . referenceType ( ) ; AbstractMethodDeclaration [ ] methods = typeDeclaration . methods ; for ( int i = 0 , max = methods . length ; i < max ; i ++ ) { AbstractMethodDeclaration method = methods [ i ] ; if ( method . isClinit ( ) ) { ( ( Clinit ) ( method ) ) . setAssertionSupport ( this . assertionSyntheticFieldBinding , ( ( currentScope . compilerOptions ( ) . sourceLevel ) < ( ClassFileConstants . JDK1_5 ) ) ) ; break ; } } } } public StringBuffer printStatement ( int tab , StringBuffer output ) { } }

Fix:
if ( ( ( flowInfo . tagBits ) & ( FlowInfo . UNREACHABLE_OR_DEAD ) ) == 0 ) {