Buggy code:
public class MacGenerator { String [ ] xmls ; Document [ ] documents ; String outputDir ; String mainClassName ; String delimiter = System . getProperty ( "line.separator" ) ; PrintStream out ; public MacGenerator ( String [ ] xmlPaths ) { } static void list ( File path , ArrayList list ) { } int getLevel ( Node node ) { } void merge ( Document document , Document extraDocument ) { } public void generateAll ( ) { } String fixDelimiter ( String str ) { } void generateMethods ( String className , ArrayList methods ) { } void generateExtraMethods ( String className ) { } TreeMap getGeneratedClasses ( ) { } void copyClassMethodsDown ( final Map classes ) { } String getSuperclassName ( Node node ) { } void generateClasses ( ) { } void generateExtraAttributes ( ) { } void generateMainClass ( ) { } void generateMetadata ( ) { } public Document [ ] getDocuments ( ) { } public String [ ] getXmls ( ) { } private void saveExtraAttributes ( String xmlPath , Document document ) { } public void setOutputDir ( String dir ) { } public void setMainClass ( String mainClassName ) { } private Document getDocument ( String xmlPath ) { } public String [ ] getExtraAttributeNames ( Node node ) { } public String getFileName ( String xmlPath ) { } private String getKey ( Node node ) { } public Node getIDAttribute ( Node node ) { } public String [ ] getIDAttributeNames ( ) { } void merge ( Node node , HashMap extras , HashMap docLookup ) { } private void out ( String str ) { } private void outln ( ) { } void generateConstants ( ) { } void generateConstantsMetaData ( ) { } void generateEnums ( ) { } boolean getGen ( Node node ) { } boolean isStatic ( Node node ) { } boolean isStruct ( Node node ) { } boolean isFloatingPoint ( Node node ) { } boolean isObject ( Node node ) { } boolean isBoolean ( Node node ) { } String getExtraAttributesDir ( ) { } void buildLookup ( Node node , HashMap table ) { } boolean isUnique ( Node method , ArrayList methods ) { } void generateSelectorsConst ( ) { TreeSet set = new TreeSet ( ) ; for ( int x = 0 ; x < ( xmls . length ) ; x ++ ) { Document document = documents [ x ] ; if ( document == null ) continue ; NodeList list = document . getDocumentElement ( ) . getChildNodes ( ) ; for ( int i = 0 ; i < ( list . getLength ( ) ) ; i ++ ) { Node node = list . item ( i ) ; if ( ( "class" . equals ( node . getNodeName ( ) ) ) || ( "informal_protocol" . equals ( node . getNodeName ( ) ) ) ) { if ( getGen ( node ) ) { NodeList methods = node . getChildNodes ( ) ; for ( int j = 0 ; j < ( methods . getLength ( ) ) ; j ++ ) { Node method = methods . item ( j ) ; if ( getGen ( method ) ) { NamedNodeMap mthAttributes = method . getAttributes ( ) ; String sel = mthAttributes . getNamedItem ( "selector" ) . getNodeValue ( ) ; set . add ( sel ) ; } } } } } } set . add ( "alloc" ) ; for ( Iterator iterator = set . iterator ( ) ; iterator . hasNext ( ) ; ) { String sel = ( ( String ) ( iterator . next ( ) ) ) ; String selConst = getSelConst ( sel ) ; <START_BUG> out ( "public<seq2seq4repair_space>static<seq2seq4repair_space>final<seq2seq4repair_space>int<seq2seq4repair_space>" ) ; <END_BUG> out ( selConst ) ; out ( "<seq2seq4repair_space>=<seq2seq4repair_space>" ) ; out ( "sel_registerName(\"" ) ; out ( sel ) ; out ( "\");" ) ; outln ( ) ; } } void generateStructsMetaData ( ) { } void generateStructNatives ( ) { } void generateSends ( ) { } void generateSendsMetaData ( ) { } String getSelConst ( String sel ) { } void generateClassesConst ( ) { } void generateProtocolsConst ( ) { } String getMetaDataDir ( ) { } String getPackageName ( String className ) { } String getClassName ( String className ) { } Node getReturnNode ( NodeList list ) { } String getType ( Node node ) { } String getJNIType ( Node node ) { } String getJavaType ( Node node ) { } void generateFunctions ( ) { } boolean compare ( InputStream is1 , InputStream is2 ) throws IOException { } void output ( byte [ ] bytes , String fileName ) throws IOException { } public static void main ( String [ ] args ) { } }

Fix:
out ( "public<seq2seq4repair_space>static<seq2seq4repair_space>final<seq2seq4repair_space>int<seq2seq4repair_space>//*long*//<seq2seq4repair_space>" ) ;