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 ) { out ( "public<seq2seq4repair_space>" ) ; out ( className ) ; out ( "()<seq2seq4repair_space>{" ) ; outln ( ) ; out ( "\tsuper();" ) ; outln ( ) ; out ( "}" ) ; outln ( ) ; outln ( ) ; out ( "public<seq2seq4repair_space>" ) ; out ( className ) ; out ( "(int<seq2seq4repair_space>//*long*//<seq2seq4repair_space>id)<seq2seq4repair_space>{" ) ; outln ( ) ; out ( "\tsuper(id);" ) ; outln ( ) ; out ( "}" ) ; outln ( ) ; outln ( ) ; out ( "public<seq2seq4repair_space>" ) ; out ( className ) ; out ( "(id<seq2seq4repair_space>id)<seq2seq4repair_space>{" ) ; outln ( ) ; out ( "\tsuper(id);" ) ; outln ( ) ; out ( "}" ) ; outln ( ) ; outln ( ) ; if ( className . equals ( "NSObject" ) ) { out ( "public<seq2seq4repair_space>NSObject<seq2seq4repair_space>alloc()<seq2seq4repair_space>{" ) ; outln ( ) ; out ( "\tthis.id<seq2seq4repair_space>=<seq2seq4repair_space>OS.objc_msgSend(objc_getClass(),<seq2seq4repair_space>OS.sel_alloc);" ) ; outln ( ) ; out ( "\treturn<seq2seq4repair_space>this;" ) ; outln ( ) ; out ( "}" ) ; outln ( ) ; outln ( ) ; } if ( className . equals ( "NSString" ) ) { out ( "public<seq2seq4repair_space>String<seq2seq4repair_space>getString()<seq2seq4repair_space>{" ) ; outln ( ) ; <START_BUG> out ( "\tchar[]<seq2seq4repair_space>buffer<seq2seq4repair_space>=<seq2seq4repair_space>new<seq2seq4repair_space>char[length()];" ) ; <END_BUG> outln ( ) ; out ( "\tgetCharacters(buffer);" ) ; outln ( ) ; out ( "\treturn<seq2seq4repair_space>new<seq2seq4repair_space>String(buffer);" ) ; outln ( ) ; out ( "}" ) ; outln ( ) ; outln ( ) ; out ( "public<seq2seq4repair_space>static<seq2seq4repair_space>NSString<seq2seq4repair_space>stringWith(String<seq2seq4repair_space>str)<seq2seq4repair_space>{" ) ; outln ( ) ; out ( "\tchar[]<seq2seq4repair_space>buffer<seq2seq4repair_space>=<seq2seq4repair_space>new<seq2seq4repair_space>char[str.length()];" ) ; outln ( ) ; out ( "\tstr.getChars(0,<seq2seq4repair_space>buffer.length,<seq2seq4repair_space>buffer,<seq2seq4repair_space>0);" ) ; outln ( ) ; out ( "\treturn<seq2seq4repair_space>stringWithCharacters(buffer,<seq2seq4repair_space>buffer.length);" ) ; outln ( ) ; out ( "}" ) ; outln ( ) ; outln ( ) ; } } 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 ( ) { } void saveExtraAttributes ( String xmlPath , Document document ) { } public void setOutputDir ( String dir ) { } public void setMainClass ( String mainClassName ) { } Document getDocument ( String xmlPath ) { } public String [ ] getExtraAttributeNames ( Node node ) { } public String getFileName ( String xmlPath ) { } String getKey ( Node node ) { } public Node getIDAttribute ( Node node ) { } public String [ ] getIDAttributeNames ( ) { } void merge ( Node node , HashMap extras , HashMap docLookup ) { } void out ( String str ) { } 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 ( ) { } void generateStructsMetaData ( ) { } void generateStructNatives ( ) { } String buildSend ( Node method , boolean tags , boolean only64 ) { } 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 getType64 ( Node node ) { } String getType ( String code , NamedNodeMap attributes , boolean is64 ) { } String getJNIType ( Node node ) { } String getJavaType ( Node node ) { } String getJavaType64 ( Node node ) { } String getJavaType ( String code , NamedNodeMap attributes , boolean is64 ) { } 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 ( "\tchar[]<seq2seq4repair_space>buffer<seq2seq4repair_space>=<seq2seq4repair_space>new<seq2seq4repair_space>char[(int)//*64*//length()];" ) ;