Buggy code:
public class GenClassModel { public static final String UTILPATH = ".util" ; private ClassModel model ; private LinkedHashMap < String , Clazz > handledClazzes = new LinkedHashMap < String , Clazz > ( ) ; private AssociationSet associations = null ; private HashMap < Object , Generator < ? > > generators = new HashMap < Object , Generator < ? > > ( ) ; private Parser creatorCreatorParser ; private GenClassModel . DIFF showDiff = GenClassModel . DIFF . NONE ; private List < String > ignoreDiff ; public enum DIFF { NONE , DIFF , FULL ; } public boolean addToAssociations ( Association value ) { } public boolean removeFromAssociations ( Association value ) { } public AssociationSet getAssociations ( ) { } public GenEnumeration getOrCreate ( Enumeration enumeration ) { } public GenClass getOrCreate ( Clazz clazz ) { } public GenMethod getOrCreate ( Method method ) { } public GenAttribute getOrCreate ( Attribute attribute ) { } public GenAnnotation getOrCreate ( Annotation annotation ) { } public GenAssociation getOrCreate ( Association association ) { } public GenRole getOrCreate ( Role role ) { } public boolean generate ( String rootDir ) { } private void fixClassModel ( ) { } private void fixClassModel ( Clazz item , HashSet < Clazz > visited ) { } public Parser getOrCreateCreatorCreatorParser ( String rootDir ) { } public void insertCreatorClassInCreatorCreator ( Parser ccParser , Clazz clazz ) { } public void addHelperClassesForUnknownAttributeTypes ( ) { for ( DataType item : this . model . getClasses ( ) . getAttributes ( ) . getType ( ) ) { String typeName = item . getValue ( ) ; int pos = typeName . indexOf ( '<' ) ; if ( pos >= 0 ) { typeName = typeName . substring ( 0 , pos ) ; } pos = typeName . indexOf ( '[' ) ; if ( pos >= 0 ) { typeName = typeName . substring ( 0 , pos ) ; } <START_BUG> pos = "int<seq2seq4repair_space>float<seq2seq4repair_space>double<seq2seq4repair_space>long<seq2seq4repair_space>String<seq2seq4repair_space>boolean<seq2seq4repair_space>Object<seq2seq4repair_space>java.util.Date" . indexOf ( typeName ) ; <END_BUG> if ( pos < 0 ) { Clazz clazz = this . model . getClazz ( typeName ) ; if ( clazz == null ) { if ( ( typeName . indexOf ( "." ) ) >= 0 ) { model . createClazz ( typeName ) . withExternal ( true ) ; } else { model . createClazz ( typeName ) ; } } } } } private void attributNameConsistenceCheck ( Exception e , String rootDir ) { } private String defPositionAsString ( Parser parser , LinkedHashMap < String , LocalVarTableEntry > localVarTable , String name , DataType attrType , String clazzType ) { } private long defPosition ( Parser parser , LinkedHashMap < String , LocalVarTableEntry > localVarTable , String name , DataType attrType , String clazzType ) { } private void writeToFile ( Clazz modelCreationClass ) { } private void resetParsers ( ) { } public void setModel ( ClassModel value ) { } protected Clazz getOrCreateClazz ( String className ) { } public ClassModel getModel ( ) { } public void insertModelCreationCodeHere ( String rootDir , String newMethod ) { } public void insertModelCreationCodeHere ( String rootDir , String className , String newMethod ) { } public void insertModelCreationCodeHere ( String rootDir ) { } private void completeImports ( ) { } private int completeCreationClasses ( String callMethodName , Clazz modelCreationClass , String signature , int currentInsertPos , String rootDir ) { } private SymTabEntry refreshMethodScan ( String signature , Clazz clazz , String rootDir ) { } private void rescanCode ( Clazz clazz , String rootDir ) { } private int checkCodeForClazz ( LocalVarTableEntry entry , String signature , String callMethodName , Clazz modelCreationClass , SymTabEntry symTabEntry , Clazz clazz , LinkedHashMap < String , Clazz > handledClazzes , int currentInsertPos , String rootDir ) { } private LocalVarTableEntry findInLocalVarTable ( LinkedHashMap < String , LocalVarTableEntry > localVarTable , String name ) { } private int positionOfClazzDecl ( String sourceClassName , Clazz clazz ) { } private int tryToInsertAssoc ( SymTabEntry symTabEntry , Role role , int currentInsertPos , Clazz modelCreationClass ) { } private boolean stringsPairwiseEquals ( String string1 , String string2 , String string3 , String string4 ) { } private boolean compareAssocDecl ( Association assoc , ArrayList < String > subSequence , String className , LinkedHashMap < String , LocalVarTableEntry > localVarTable ) { } private boolean compareAssocDecl ( Association assoc , LocalVarTableEntry localVarTableEntry ) { } private boolean compareAssocs ( Association assoc , ArrayList < ArrayList < String > > initSequence ) { } private String cutCardinality ( String sourceInitSequence ) { } private String getInitSequenceAsString ( String string , Association assoc ) { } private String findInitSequenceAsString ( String searchString , ArrayList < ArrayList < String > > initSequence ) { } private int tryToInsertMethod ( SymTabEntry symTabEntry , Method method , int currentInsertPos , Clazz modelCreationClass ) { } private boolean isSDMLibMethod ( Method method ) { } private boolean compareMethodDecl ( Method method , LocalVarTableEntry localVarTableEntry , Clazz modelCreationClass ) { } protected String parseDataType ( String typeString , Clazz modelCreationClass ) { } private int createAndInsertCodeForNewClazz ( Clazz modelCreationClass , SymTabEntry symTabEntry , Clazz clazz , LinkedHashMap < String , Clazz > handledClazzes , int currentInsertPos ) { } private int handleAssocs ( TreeSet < Role > roles , int currentInsertPos , Clazz modelCreationClass , SymTabEntry symTabEntry , LinkedHashMap < String , Clazz > handledClazzes ) { } private int insertNewCreationClasses ( String callMethodName , Clazz modelCreationClass , String signature , int currentInsertPos , String rootDir ) { } private int insertNewCreationClasses ( Clazz modelCreationClass , String signature , int currentInsertPos , String rootDir , Set < Clazz > clazzQueue ) { } private boolean checkDependencies ( Clazz clazz ) { } private boolean assocHasHandled ( Association assoc , ArrayList < Association > handledAssocs ) { }

Fix:
pos = "int<seq2seq4repair_space>float<seq2seq4repair_space>double<seq2seq4repair_space>long<seq2seq4repair_space>char<seq2seq4repair_space>String<seq2seq4repair_space>boolean<seq2seq4repair_space>Object<seq2seq4repair_space>java.util.Date" . indexOf ( typeName ) ;