nus-yam/ex-repair huggingface dataset:
Buggy code:
public final class ArrayBinding extends TypeBinding { public static final FieldBinding ArrayLength = new FieldBinding ( LENGTH , IntBinding , ( ( AccPublic ) | ( AccFinal ) ) , null , Constant . NotAConstant ) ; public TypeBinding leafComponentType ; public int dimensions ; LookupEnvironment environment ; char [ ] constantPoolName ; char [ ] genericTypeSignature ; public ArrayBinding ( TypeBinding type , int dimensions , LookupEnvironment environment ) { } public int bindingType ( ) { } public void collectSubstitutes ( TypeBinding otherType , Map substitutes ) { } public char [ ] constantPoolName ( ) { } public String debugName ( ) { } public int dimensions ( ) { } public TypeBinding elementsType ( ) { } public TypeBinding erasure ( ) { } public LookupEnvironment environment ( ) { } public char [ ] genericTypeSignature ( ) { } public PackageBinding getPackage ( ) { } public int hashCode ( ) { } public boolean isCompatibleWith ( TypeBinding right ) { } public boolean isEquivalentTo ( TypeBinding otherType ) { } public TypeBinding leafComponentType ( ) { } public int problemId ( ) { } public char [ ] qualifiedSourceName ( ) { } public char [ ] readableName ( ) { } public char [ ] shortReadableName ( ) { } public char [ ] sourceName ( ) { } public void swapUnresolved ( UnresolvedReferenceBinding unresolvedType , ReferenceBinding resolvedType , LookupEnvironment env ) { if ( ( this . leafComponentType ) == unresolvedType ) { <START_BUG> this . leafComponentType = ( resolvedType . isGenericType ( ) ) ? env . createRawType ( resolvedType , null ) : resolvedType ; <END_BUG> this . tagBits |= ( this . leafComponentType . tagBits ) & ( ( HasTypeVariable ) | ( HasWildcard ) ) ; } } public String toString ( ) { } }

Fix:
this . leafComponentType = ( resolvedType . isGenericType ( ) ) ? env . createRawType ( resolvedType , resolvedType . enclosingType ( ) ) : resolvedType ;
Buggy code:
public class CacheServiceTest extends LocalFileMetadataTestCase { private Server server ; private KylinConfig configA ; private KylinConfig configB ; private static final Logger logger = LoggerFactory . getLogger ( CacheServiceTest . class ) ; @ Before public void setUp ( ) throws Exception { this . createTestMetadata ( ) ; <START_BUG> server = new Server ( 8080 ) ; <END_BUG> ServletContextHandler context = new ServletContextHandler ( ServletContextHandler . SESSIONS ) ; context . setContextPath ( "//" ) ; server . setHandler ( context ) ; configA = KylinConfig . getInstanceFromEnv ( ) ; configB = KylinConfig . getKylinConfigFromInputStream ( KylinConfig . getKylinPropertiesAsInputSteam ( ) ) ; configB . setMetadataUrl ( tempTestMetadataUrl ) ; context . addServlet ( new org . eclipse . jetty . servlet . ServletHolder ( new BroadcasterReceiveServlet ( new BroadcasterReceiveServlet . BroadcasterHandler ( ) { @ Override public void handle ( String type , String name , String event ) { final CacheService cacheService = new CacheService ( ) { @ Override public KylinConfig getConfig ( ) { return configB ; } } ; Broadcaster . TYPE wipeType = TYPE . getType ( type ) ; Broadcaster . EVENT wipeEvent = EVENT . getEvent ( event ) ; final String log = ( ( ( ( "wipe<seq2seq4repair_space>cache<seq2seq4repair_space>type:<seq2seq4repair_space>" + wipeType ) + "<seq2seq4repair_space>event:" ) + wipeEvent ) + "<seq2seq4repair_space>name:" ) + name ; CacheServiceTest . logger . info ( log ) ; switch ( wipeEvent ) { case CREATE : case UPDATE : cacheService . rebuildCache ( wipeType , name ) ; break ; case DROP : cacheService . removeCache ( wipeType , name ) ; break ; default : throw new RuntimeException ( ( "invalid<seq2seq4repair_space>type:" + wipeEvent ) ) ; } } } ) ) , "//" ) ; server . start ( ) ; } @ After public void after ( ) throws Exception { } @ BeforeClass public static void startServer ( ) throws Exception { } @ AfterClass public static void stopServer ( ) throws Exception { } private CubeManager getCubeManager ( KylinConfig config ) throws Exception { } private ProjectManager getProjectManager ( KylinConfig config ) throws Exception { } private CubeDescManager getCubeDescManager ( KylinConfig config ) throws Exception { } private MetadataManager getMetadataManager ( KylinConfig config ) throws Exception { } @ Test public void testBasic ( ) throws Exception { } @ Test public void testCubeCRUD ( ) throws Exception { } private TableDesc createTestTableDesc ( ) { } @ Test public void testMetaCRUD ( ) throws Exception { } private boolean containsRealization ( Set < IRealization > realizations , RealizationType type , String name ) { } }

Fix:
server = new Server ( 7070 ) ;
Buggy code:
public abstract class License implements Serializable { private static final long serialVersionUID = 3100331505738956523L ; public abstract String getName ( ) { } public abstract String getSummaryText ( final Context context ) { } public abstract String getFullText ( final Context context ) { } public abstract String getVersion ( ) { } public abstract String getUrl ( ) { } protected String getContent ( final Context context , final int contentResourceId ) { } private String toString ( final BufferedReader reader ) throws IOException { final StringBuilder builder = new StringBuilder ( ) ; String line = null ; while ( ( line = reader . readLine ( ) ) != null ) { <START_BUG> builder . append ( line ) ; <END_BUG> } return builder . toString ( ) ; } }

Fix:
builder . append ( line ) . append ( '\n' ) ;
Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient @ ServerSetup ( WebTestsSecurityDomainSetup . class ) public class WebSecurityFORMTestCase extends WebSecurityPasswordBasedBase { @ Deployment public static WebArchive deployment ( ) throws Exception { } @ ArquillianResource private URL url ; protected void makeCall ( String user , String pass , int expectedStatusCode ) throws Exception { DefaultHttpClient httpclient = new DefaultHttpClient ( ) ; try { String req = ( url . toExternalForm ( ) ) + "secured//" ; HttpGet httpget = new HttpGet ( req ) ; HttpResponse response = httpclient . execute ( httpget ) ; HttpEntity entity = response . getEntity ( ) ; if ( entity != null ) EntityUtils . consume ( entity ) ; StatusLine statusLine = response . getStatusLine ( ) ; System . out . println ( ( "Login<seq2seq4repair_space>form<seq2seq4repair_space>get:<seq2seq4repair_space>" + statusLine ) ) ; assertEquals ( 200 , statusLine . getStatusCode ( ) ) ; System . out . println ( "Initial<seq2seq4repair_space>set<seq2seq4repair_space>of<seq2seq4repair_space>cookies:" ) ; List < Cookie > cookies = httpclient . getCookieStore ( ) . getCookies ( ) ; if ( cookies . isEmpty ( ) ) { System . out . println ( "None" ) ; } else { for ( int i = 0 ; i < ( cookies . size ( ) ) ; i ++ ) { System . out . println ( ( "-<seq2seq4repair_space>" + ( cookies . get ( i ) . toString ( ) ) ) ) ; } } <START_BUG> req = ( url . toExternalForm ( ) ) + "secured//j_security_check//" ; <END_BUG> HttpPost httpPost = new HttpPost ( req ) ; List < NameValuePair > nvps = new ArrayList < NameValuePair > ( ) ; nvps . add ( new BasicNameValuePair ( "j_username" , user ) ) ; nvps . add ( new BasicNameValuePair ( "j_password" , pass ) ) ; httpPost . setEntity ( new org . apache . http . client . entity . UrlEncodedFormEntity ( nvps , HTTP . UTF_8 ) ) ; response = httpclient . execute ( httpPost ) ; entity = response . getEntity ( ) ; if ( entity != null ) EntityUtils . consume ( entity ) ; statusLine = response . getStatusLine ( ) ; assertEquals ( 302 , statusLine . getStatusCode ( ) ) ; Header locationHeader = response . getFirstHeader ( "Location" ) ; String location = locationHeader . getValue ( ) ; HttpGet httpGet = new HttpGet ( location ) ; response = httpclient . execute ( httpGet ) ; entity = response . getEntity ( ) ; if ( entity != null ) EntityUtils . consume ( entity ) ; System . out . println ( "Post<seq2seq4repair_space>logon<seq2seq4repair_space>cookies:" ) ; cookies = httpclient . getCookieStore ( ) . getCookies ( ) ; if ( cookies . isEmpty ( ) ) { System . out . println ( "None" ) ; } else { for ( int i = 0 ; i < ( cookies . size ( ) ) ; i ++ ) { System . out . println ( ( "-<seq2seq4repair_space>" + ( cookies . get ( i ) . toString ( ) ) ) ) ; } } statusLine = response . getStatusLine ( ) ; assertEquals ( expectedStatusCode , statusLine . getStatusCode ( ) ) ; } finally { httpclient . getConnectionManager ( ) . shutdown ( ) ; } } @ Override public String getContextPath ( ) { } }

Fix:
req = ( url . toExternalForm ( ) ) + "secured//j_security_check" ;
Buggy code:
public class DB_Trigger { public static void doTriggers ( Connection conn ) throws SQLException { Statement stmt = conn . createStatement ( ) ; ResultSet rs = stmt . executeQuery ( ( "SELECT<seq2seq4repair_space>TRIGGERNAME,<seq2seq4repair_space>SCHEMAID,<seq2seq4repair_space>" + ( ( "EVENT,<seq2seq4repair_space>FIRINGTIME,<seq2seq4repair_space>TYPE,<seq2seq4repair_space>TABLEID,<seq2seq4repair_space>REFERENCEDCOLUMNS,<seq2seq4repair_space>" + "TRIGGERDEFINITION,<seq2seq4repair_space>REFERENCINGOLD,<seq2seq4repair_space>REFERENCINGNEW,<seq2seq4repair_space>OLDREFERENCINGNAME,<seq2seq4repair_space>" ) + "NEWREFERENCINGNAME<seq2seq4repair_space>FROM<seq2seq4repair_space>SYS.SYSTRIGGERS<seq2seq4repair_space>WHERE<seq2seq4repair_space>STATE<seq2seq4repair_space>!=<seq2seq4repair_space>'D'" ) ) ) ; boolean firstTime = true ; while ( rs . next ( ) ) { String trigName = dblook . addQuotes ( dblook . expandDoubleQuotes ( rs . getString ( 1 ) ) ) ; String trigSchema = dblook . lookupSchemaId ( rs . getString ( 2 ) ) ; if ( dblook . isIgnorableSchema ( trigSchema ) ) continue ; trigName = ( trigSchema + "." ) + trigName ; String tableName = dblook . lookupTableId ( rs . getString ( 6 ) ) ; if ( ( ! ( dblook . stringContainsTargetTable ( rs . getString ( 8 ) ) ) ) && ( dblook . isExcludedTable ( tableName ) ) ) continue ; if ( firstTime ) { Logs . reportString ( "----------------------------------------------" ) ; <START_BUG> Logs . reportMessage ( "CSLOOK_TriggersHeader" ) ; <END_BUG> Logs . reportString ( "----------------------------------------------\n" ) ; } String createTrigString = DB_Trigger . createTrigger ( trigName , tableName , rs ) ; Logs . writeToNewDDL ( createTrigString ) ; Logs . writeStmtEndToNewDDL ( ) ; Logs . writeNewlineToNewDDL ( ) ; firstTime = false ; } rs . close ( ) ; stmt . close ( ) ; } private static String createTrigger ( String trigName , String tableName , ResultSet aTrig ) throws SQLException { } }

Fix:
Logs . reportMessage ( "DBLOOK_TriggersHeader" ) ;
Buggy code:
public class CorpusGenerator { private static transient Logger log = LoggerFactory . getLogger ( CorpusGenerator . class ) ; private Path input ; private Path output ; private Reporter reporter ; public enum Counters { DOC_COUNT ; } public CorpusGenerator ( Path input , Path output ) { } public CorpusGenerator ( Path input , Path output , Reporter reporter ) { } public long generate ( boolean recurse ) throws IOException { } public static void main ( String [ ] argv ) throws Exception { } private static long processFiles ( Configuration conf , Path input , boolean recurse , CorpusGenerator . PerformanceFileFilter pff ) throws IOException { } static class PerformanceFileFilter implements PathFilter { long counter = 0 ; PathFilter defaultIgnores = new PathFilter ( ) { public boolean accept ( Path file ) { String name = file . getName ( ) ; return ( name . startsWith ( "." ) ) == false ; } } ; private Writer writer ; private Text key ; private BehemothDocument value ; private Configuration conf ; private Reporter reporter ; public PerformanceFileFilter ( SequenceFile . Writer writer , Text key , BehemothDocument value , Configuration conf , Reporter reporter ) { } public boolean accept ( Path file ) { try { FileSystem fs = file . getFileSystem ( conf ) ; if ( ( defaultIgnores . accept ( file ) ) && ( ( fs . getFileStatus ( file ) . isDir ( ) ) == false ) ) { String URI = file . toUri ( ) . toString ( ) ; byte [ ] fileBArray = new byte [ ( ( int ) ( fs . getFileStatus ( file ) . getLen ( ) ) ) ] ; FSDataInputStream fis = null ; try { fis = fs . open ( file ) ; fis . readFully ( 0 , fileBArray ) ; fis . close ( ) ; key . set ( URI ) ; value . setUrl ( URI ) ; value . setContent ( fileBArray ) ; writer . append ( key , value ) ; ( counter ) ++ ; if ( ( reporter ) != null ) { <START_BUG> reporter . incrCounter ( CorpusGenerator . Counters . DOC_COUNT , counter ) ; <END_BUG> } } catch ( FileNotFoundException e ) { throw new RuntimeException ( e ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } } return fs . getFileStatus ( file ) . isDir ( ) ; } catch ( IOException e ) { CorpusGenerator . log . error ( "Exception" , e ) ; } return false ; } } }

Fix:
reporter . incrCounter ( CorpusGenerator . Counters . DOC_COUNT , 1 ) ;
Buggy code:
public class Chat implements KeyListener { private static final int MAX_MESSAGES = 10 ; private static final int MAX_MESSAGE_LENGTH = 35 ; private static final int TICKS_PER_MESSAGE = 60 * 4 ; private ArrayList < String > messages = new ArrayList < String > ( ) ; private int displayedMessage = - 1 ; private int displayTicks = 0 ; private boolean open = false ; private String currentMessage = "" ; private String waitingMessage = null ; public void clear ( ) { } public boolean isOpen ( ) { } public void open ( ) { } public void addMessage ( String message ) { } public String getWaitingMessage ( ) { } public void tick ( ) { } public void render ( Screen screen ) { } @ Override public void keyTyped ( KeyEvent e ) { } @ Override public void keyPressed ( KeyEvent e ) { } @ Override public void keyReleased ( KeyEvent e ) { if ( open ) { if ( ( e . getKeyCode ( ) ) == ( KeyEvent . VK_ESCAPE ) ) { open = false ; currentMessage = "" ; } else <START_BUG> if ( ( e . getKeyCode ( ) ) == ( KeyEvent . VK_ENTER ) ) { <END_BUG> open = false ; if ( ! ( currentMessage . equals ( "" ) ) ) { waitingMessage = currentMessage ; } currentMessage = "" ; } } } }

Fix:
if ( ( e . getKeyCode ( ) ) == ( KeyEvent . VK_T ) ) {
Buggy code:
public abstract class Statement extends ASTNode { private String optionalLeadingComment = null ; Statement ( AST ast ) { } public String getLeadingComment ( ) { <START_BUG> return optionalLeadingComment ; <END_BUG> } public void setLeadingComment ( String comment ) { } void copyLeadingComment ( Statement source ) { } int memSize ( ) { } }

Fix:
return this . optionalLeadingComment ;
Buggy code:
public class HeatmapTest { @ Test public void testHeatmapStringArray ( ) { String [ ] plot = Heatmap . heatmapString ( IRIS_SEPAL_LENGTH , IRIS_SEPAL_WIDTH , 50 , 20 , null , null , null , null , true ) ; assertEquals ( 20 , plot . length ) ; <START_BUG> assertEquals ( "<seq2seq4repair_space>·<seq2seq4repair_space>+<seq2seq4repair_space>" , plot [ 0 ] ) ; <END_BUG> assertEquals ( "<seq2seq4repair_space>+<seq2seq4repair_space>#<seq2seq4repair_space>·<seq2seq4repair_space>" , plot [ 18 ] ) ; assertEquals ( "<seq2seq4repair_space>·<seq2seq4repair_space>" , plot [ 19 ] ) ; } }

Fix:
assertEquals ( "<seq2seq4repair_space>·<seq2seq4repair_space>··<seq2seq4repair_space>" , plot [ 0 ] ) ;
Buggy code:
public class RecoveredUnit extends RecoveredElement { public CompilationUnitDeclaration unitDeclaration ; public RecoveredImport [ ] imports ; public int importCount ; public RecoveredType [ ] types ; public int typeCount ; public RecoveredUnit ( CompilationUnitDeclaration unitDeclaration , int bracketBalance , Parser parser ) { } public RecoveredElement add ( AbstractMethodDeclaration methodDeclaration , int bracketBalanceValue ) { } public RecoveredElement add ( FieldDeclaration fieldDeclaration , int bracketBalanceValue ) { } public RecoveredElement add ( ImportReference importReference , int bracketBalanceValue ) { } public RecoveredElement add ( TypeDeclaration typeDeclaration , int bracketBalanceValue ) { } public ASTNode parseTree ( ) { } public int sourceEnd ( ) { } public String toString ( int tab ) { StringBuffer result = new StringBuffer ( tabString ( tab ) ) ; result . append ( "Recovered<seq2seq4repair_space>unit:<seq2seq4repair_space>[\n" ) ; <START_BUG> result . append ( this . unitDeclaration . print ( ( tab + 1 ) , result ) ) ; <END_BUG> result . append ( tabString ( ( tab + 1 ) ) ) ; result . append ( "]" ) ; if ( ( this . imports ) != null ) { for ( int i = 0 ; i < ( this . importCount ) ; i ++ ) { result . append ( "\n" ) ; result . append ( this . imports [ i ] . toString ( ( tab + 1 ) ) ) ; } } if ( ( this . types ) != null ) { for ( int i = 0 ; i < ( this . typeCount ) ; i ++ ) { result . append ( "\n" ) ; result . append ( this . types [ i ] . toString ( ( tab + 1 ) ) ) ; } } return result . toString ( ) ; } public CompilationUnitDeclaration updatedCompilationUnitDeclaration ( ) { } public void updateParseTree ( ) { } public void updateSourceEndIfNecessary ( int bodyStart , int bodyEnd ) { } }

Fix:
this . unitDeclaration . print ( ( tab + 1 ) , result ) ;
Buggy code:
public class ToolBar extends Composite { int itemCount ; ToolItem [ ] items ; public ToolBar ( Composite parent , int style ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { <START_BUG> SWTView widget = ( ( SWTView ) ( new SWTView ( ) . alloc ( ) ) ) ; <END_BUG> widget . initWithFrame ( new NSRect ( ) ) ; view = widget ; } void createItem ( ToolItem item , int index ) { } void createWidget ( ) { } void destroyItem ( ToolItem item ) { } void enableWidget ( boolean enabled ) { } public Rectangle getClientArea ( ) { } public ToolItem getItem ( int index ) { } public ToolItem getItem ( Point pt ) { } public int getItemCount ( ) { } public ToolItem [ ] getItems ( ) { } public int getRowCount ( ) { } public int indexOf ( ToolItem item ) { } int [ ] layoutHorizontal ( int width , int height , boolean resize ) { } int [ ] layoutVertical ( int width , int height , boolean resize ) { } int [ ] layout ( int nWidth , int nHeight , boolean resize ) { } void relayout ( ) { } void releaseChildren ( boolean destroy ) { } void removeControl ( Control control ) { } void resized ( ) { } void setFont ( NSFont font ) { } public void setRedraw ( boolean redraw ) { } }

Fix:
NSView widget = ( ( NSView ) ( new SWTView ( ) . alloc ( ) ) ) ;
Buggy code:
public class DayDV extends AbstractDateTimeDV { private static final int DAY_SIZE = 5 ; public Object getActualValue ( String content , ValidationContext context ) throws InvalidDatatypeValueException { try { <START_BUG> return parse ( content ) ; <END_BUG> } catch ( Exception ex ) { throw new InvalidDatatypeValueException ( "cvc-datatype-valid.1.2.1" , new Object [ ] { content , "gDay" } ) ; } } protected int [ ] parse ( String str ) throws SchemaDateTimeException { } protected String dateToString ( int [ ] date ) { } }

Fix:
return new DateTimeData ( parse ( content ) , this ) ;
Buggy code:
public class SubAnt extends Task { private Path buildpath ; private Ant ant = null ; private String subTarget = null ; private String antfile = Main . DEFAULT_BUILD_FILENAME ; private File genericantfile = null ; private boolean verbose = false ; private boolean inheritAll = false ; private boolean inheritRefs = false ; private boolean failOnError = true ; private String output = null ; private Vector properties = new Vector ( ) ; private Vector references = new Vector ( ) ; private Vector propertySets = new Vector ( ) ; private Vector targets = new Vector ( ) ; public void handleOutput ( String output ) { } public int handleInput ( byte [ ] buffer , int offset , int length ) throws IOException { } public void handleFlush ( String output ) { } public void handleErrorOutput ( String output ) { } public void handleErrorFlush ( String output ) { } public void execute ( ) { } private void execute ( File file , File directory ) throws BuildException { } public void setAntfile ( String antfile ) { } public void setGenericAntfile ( File afile ) { } public void setFailonerror ( boolean failOnError ) { } public void setTarget ( String target ) { } public void addConfiguredTarget ( TargetElement t ) { } public void setVerbose ( boolean on ) { } public void setOutput ( String s ) { } public void setInheritall ( boolean b ) { } public void setInheritrefs ( boolean b ) { } public void addProperty ( Property p ) { } public void addReference ( Ant . Reference r ) { } public void addPropertyset ( PropertySet ps ) { } public void addDirset ( DirSet set ) { } public void addFileset ( FileSet set ) { } public void addFilelist ( FileList list ) { } public void add ( ResourceCollection rc ) { } public void setBuildpath ( Path s ) { } public Path createBuildpath ( ) { } public PathElement createBuildpathElement ( ) { } private Path getBuildpath ( ) { } public void setBuildpathRef ( Reference r ) { } private Ant createAntTask ( File directory ) { Ant antTask = new Ant ( this ) ; antTask . init ( ) ; if ( ( ( subTarget ) != null ) && ( ( subTarget . length ( ) ) > 0 ) ) { antTask . setTarget ( subTarget ) ; } if ( ( output ) != null ) { antTask . setOutput ( output ) ; } if ( directory != null ) { antTask . setDir ( directory ) ; } else { <START_BUG> antTask . setAllowNativeBasedir ( true ) ; <END_BUG> } antTask . setInheritAll ( inheritAll ) ; for ( Enumeration i = properties . elements ( ) ; i . hasMoreElements ( ) ; ) { SubAnt . copyProperty ( antTask . createProperty ( ) , ( ( Property ) ( i . nextElement ( ) ) ) ) ; } for ( Enumeration i = propertySets . elements ( ) ; i . hasMoreElements ( ) ; ) { antTask . addPropertyset ( ( ( PropertySet ) ( i . nextElement ( ) ) ) ) ; } antTask . setInheritRefs ( inheritRefs ) ; for ( Enumeration i = references . elements ( ) ; i . hasMoreElements ( ) ; ) { antTask . addReference ( ( ( Ant . Reference ) ( i . nextElement ( ) ) ) ) ; } return antTask ; } private static void copyProperty ( Property to , Property from ) { } }

Fix:
antTask . setUseNativeBasedir ( true ) ;
Buggy code:
public class Rover { private List < Projectile > projectiles ; public Rover ( Mars mars ) throws CrashException { } public Rover ( final Mars mars , final Point landingPoint ) throws CrashException { } private void landOnMars ( Point landingPoint ) throws CrashException { } public boolean fireProjectile ( final Class < ? extends Projectile > type ) { Projectile projectileToFire = Iterables . get ( Collections2 . filter ( projectiles , new Predicate < Projectile > ( ) { @ Override public boolean apply ( Projectile input ) { return input . getClass ( ) . isAssignableFrom ( type ) ; } <START_BUG> } ) , 1 , null ) ; <END_BUG> if ( projectileToFire == null ) { return false ; } projectileToFire . launch ( getFacing ( ) , getLocation ( ) ) ; projectiles . remove ( projectileToFire ) ; return true ; } private Point location ; private Direction facing ; private Mars mars ; public Direction getFacing ( ) { } public void setFacing ( Direction facing ) { } public Point getLocation ( ) { } public void setLocation ( Point location ) { } public Mars getMars ( ) { } private static final Map < Direction , Point > positionalAdjustments = new HashMap < Direction , Point > ( ) { } ; public boolean moveBackward ( ) { } public boolean moveForward ( ) { } private boolean move ( int adjustmentFactor ) { } private Point createDesiredPosition ( int adjustmentFactor ) { } public boolean turnRight ( ) { } public boolean turnLeft ( ) { } }

Fix:
} ) , 0 , null ) ;
Buggy code:
@ Component public class EntitySchemaHandler { public EntityList getEntityList ( ApiContext apiContext , String entityName ) throws Exception { } public EntityList getEntityList ( ApiContext apiContext , String entityName , String namespace ) throws Exception { } public EntityList installSchema ( ApiContext apiContext , EntityList entityList , EntityScope scope , List < IndexedProperty > indexedProperties ) throws Exception { } public EntityList installSchema ( ApiContext apiContext , EntityList entityList , EntityScope scope , IndexedProperty idProperty , List < IndexedProperty > indexedProperties ) throws Exception { if ( ( indexedProperties != null ) && ( ( indexedProperties . size ( ) ) > 4 ) ) throw new Exception ( "Only<seq2seq4repair_space>4<seq2seq4repair_space>indexed<seq2seq4repair_space>properties<seq2seq4repair_space>are<seq2seq4repair_space>supported" ) ; if ( StringUtils . isEmpty ( entityList . getName ( ) ) ) throw new Exception ( "Entity<seq2seq4repair_space>Name<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null<seq2seq4repair_space>or<seq2seq4repair_space>empty" ) ; AppInfo appInfo = ApplicationUtils . getAppInfo ( ) ; entityList . setContextLevel ( scope . toString ( ) ) ; if ( StringUtils . isEmpty ( entityList . getNameSpace ( ) ) ) entityList . setNameSpace ( appInfo . getNameSpace ( ) ) ; String entityFqn = getEntityListNameFQN ( entityList . getName ( ) , entityList . getNameSpace ( ) ) ; if ( idProperty == null ) { entityList . setUseSystemAssignedId ( true ) ; } else { entityList . setIdProperty ( idProperty ) ; } if ( indexedProperties != null ) { entityList . setIndexA ( ( ( indexedProperties . size ( ) ) >= 1 ? indexedProperties . get ( 0 ) : null ) ) ; entityList . setIndexB ( ( ( indexedProperties . size ( ) ) >= 2 ? indexedProperties . get ( 1 ) : null ) ) ; entityList . setIndexC ( ( ( indexedProperties . size ( ) ) >= 3 ? indexedProperties . get ( 2 ) : null ) ) ; <START_BUG> entityList . setIndexB ( ( ( indexedProperties . size ( ) ) >= 4 ? indexedProperties . get ( 3 ) : null ) ) ; <END_BUG> } EntityList existing = getEntityList ( apiContext , entityList . getName ( ) ) ; EntityListResource entityListResource = new EntityListResource ( apiContext ) ; entityList = ( existing == null ) ? entityListResource . createEntityList ( entityList ) : entityListResource . updateEntityList ( entityList , entityFqn ) ; return entityList ; } public IndexedProperty getIndexedProperty ( String name , EntityDataTypes type ) { } private String getEntityListNameFQN ( String listName , String namespace ) { } }

Fix:
entityList . setIndexD ( ( ( indexedProperties . size ( ) ) >= 4 ? indexedProperties . get ( 3 ) : null ) ) ;
Buggy code:
public class TestPredicatedCollection < E > extends AbstractTestCollection < E > { public TestPredicatedCollection ( String name ) { } protected Predicate < E > truePredicate = org . apache . commons . collections . functors . TruePredicate . < E > truePredicate ( ) ; protected Collection < E > decorateCollection ( Collection < E > collection , Predicate < E > predicate ) { <START_BUG> return PredicatedCollection . decorate ( collection , predicate ) ; <END_BUG> } @ Override public Collection < E > makeObject ( ) { } @ Override public Collection < E > makeConfirmedCollection ( ) { } @ Override @ SuppressWarnings ( "unchecked" ) public E [ ] getFullElements ( ) { } @ Override public Collection < E > makeFullCollection ( ) { } @ Override public Collection < E > makeConfirmedFullCollection ( ) { } protected Predicate < E > testPredicate = new Predicate < E > ( ) { public boolean evaluate ( E o ) { } } ; public Collection < E > makeTestCollection ( ) { } @ SuppressWarnings ( "unchecked" ) public void testIllegalAdd ( ) { } @ SuppressWarnings ( "unchecked" ) public void testIllegalAddAll ( ) { } @ Override public String getCompatibilityVersion ( ) { } }

Fix:
return PredicatedCollection . predicatedCollection ( collection , predicate ) ;
Buggy code:
public class WebCrawlerTest { public static void main ( String [ ] args ) throws IOException { WebCrawler crawler = new WebCrawler ( new CachingDownloader ( new File ( ".//downloaded//" ) ) , 20 , 20 , 20 ) ; <START_BUG> System . out . println ( crawler . download ( "http:////supercreativ.narod.ru//" , 3 ) ) ; <END_BUG> crawler . close ( ) ; } }

Fix:
System . out . println ( crawler . download ( "http:////wikipedia.org" , 2 ) ) ;
Buggy code:
public class User { private String name ; private String surname ; private String town ; private String email_address ; private int count ; private static int countID ; public User ( ) { } public User ( String name , String surname , String town , String email_address ) { } public boolean loanCounter_check ( ) { <START_BUG> return ( count ) <= 3 ; <END_BUG> } public void loanCounter_inc ( ) { } public void loanCounter_dec ( ) { } public int getUserID ( ) { } public String getUserName ( ) { } public String getUserSurname ( ) { } public String getUserTown ( ) { } public String getUserEmail ( ) { } }

Fix:
return ( count ) <= 2 ;
Buggy code:
public class Main { public static final String DEFAULT_BUILD_FILENAME = "build.xml" ; private int msgOutputLevel = Project . MSG_INFO ; private File buildFile ; private static PrintStream out = System . out ; private static PrintStream err = System . err ; private Vector targets = new Vector ( 5 ) ; private Properties definedProps = new Properties ( ) ; private Vector listeners = new Vector ( 5 ) ; private Vector propertyFiles = new Vector ( 5 ) ; private String loggerClassname = null ; private String inputHandlerClassname = null ; private boolean emacsMode = false ; private boolean readyToRun = false ; private boolean projectHelp = false ; private static boolean isLogFileUsed = false ; private static void printMessage ( Throwable t ) { } public static void start ( String [ ] args , Properties additionalUserProperties , ClassLoader coreLoader ) { } public static void main ( String [ ] args ) { } protected Main ( String [ ] args ) throws BuildException { } private File getParentFile ( File file ) { } private File findBuildFile ( String start , String suffix ) throws BuildException { } private void runBuild ( ClassLoader coreLoader ) throws BuildException { } protected void addBuildListeners ( Project project ) { } private void addInputHandler ( Project project ) { } private BuildLogger createLogger ( ) { } private static void printUsage ( ) { } private static void printVersion ( ) throws BuildException { } private static String antVersion = null ; public static synchronized String getAntVersion ( ) throws BuildException { } private static void printDescription ( Project project ) { } private static void printTargets ( Project project , boolean printSubTargets ) { } private static int findTargetPosition ( Vector names , String name ) { } private static void printTargets ( Project project , Vector names , Vector descriptions , String heading , int maxlen ) { String lSep = System . getProperty ( "line.separator" ) ; String spaces = "<seq2seq4repair_space>" ; <START_BUG> while ( ( spaces . length ( ) ) < maxlen ) { <END_BUG> spaces += spaces ; } StringBuffer msg = new StringBuffer ( ) ; msg . append ( ( ( heading + lSep ) + lSep ) ) ; for ( int i = 0 ; i < ( names . size ( ) ) ; i ++ ) { msg . append ( "<seq2seq4repair_space>" ) ; msg . append ( names . elementAt ( i ) ) ; if ( descriptions != null ) { msg . append ( spaces . substring ( 0 , ( ( maxlen - ( ( ( String ) ( names . elementAt ( i ) ) ) . length ( ) ) ) + 2 ) ) ) ; msg . append ( descriptions . elementAt ( i ) ) ; } msg . append ( lSep ) ; } project . log ( msg . toString ( ) ) ; } }

Fix:
while ( ( spaces . length ( ) ) <= maxlen ) {
Buggy code:
public class TestVectorDistanceSimilarityJob extends MahoutTestCase { private FileSystem fs ; private static final double [ ] [ ] REFERENCE = new double [ ] [ ] { new double [ ] { 1 , 1 } , new double [ ] { 2 , 1 } , new double [ ] { 1 , 2 } , new double [ ] { 2 , 2 } , new double [ ] { 3 , 3 } , new double [ ] { 4 , 4 } , new double [ ] { 5 , 4 } , new double [ ] { 4 , 5 } , new double [ ] { 5 , 5 } } ; private static final double [ ] [ ] SEEDS = new double [ ] [ ] { new double [ ] { 1 , 1 } , new double [ ] { 10 , 10 } } ; @ Override @ Before public void setUp ( ) throws Exception { } @ Test public void testVectorDistanceMapper ( ) throws Exception { } @ Test public void testVectorDistanceInvertedMapper ( ) throws Exception { } @ Test public void testRun ( ) throws Exception { } @ Test public void testMaxDistance ( ) throws Exception { Path input = getTestTempDirPath ( "input" ) ; Path output = getTestTempDirPath ( "output" ) ; Path seedsPath = getTestTempDirPath ( "seeds" ) ; List < VectorWritable > points = TestVectorDistanceSimilarityJob . getPointsWritable ( TestVectorDistanceSimilarityJob . REFERENCE ) ; List < VectorWritable > seeds = TestVectorDistanceSimilarityJob . getPointsWritable ( TestVectorDistanceSimilarityJob . SEEDS ) ; <START_BUG> Configuration conf = new Configuration ( ) ; <END_BUG> ClusteringTestUtils . writePointsToFile ( points , true , new Path ( input , "file1" ) , fs , conf ) ; ClusteringTestUtils . writePointsToFile ( seeds , true , new Path ( seedsPath , "part-seeds" ) , fs , conf ) ; double maxDistance = 10 ; String [ ] args = new String [ ] { optKey ( INPUT_OPTION ) , input . toString ( ) , optKey ( VectorDistanceSimilarityJob . SEEDS ) , seedsPath . toString ( ) , optKey ( OUTPUT_OPTION ) , output . toString ( ) , optKey ( DISTANCE_MEASURE_OPTION ) , EuclideanDistanceMeasure . class . getName ( ) , optKey ( MAX_DISTANCE ) , String . valueOf ( maxDistance ) } ; ToolRunner . run ( getConfiguration ( ) , new VectorDistanceSimilarityJob ( ) , args ) ; int outputSize = 0 ; for ( Pair < StringTuple , DoubleWritable > record : new org . apache . mahout . common . iterator . sequencefile . SequenceFileIterable < StringTuple , DoubleWritable > ( new Path ( output , "part-m-00000" ) , conf ) ) { outputSize ++ ; assertTrue ( ( ( record . getSecond ( ) . get ( ) ) <= maxDistance ) ) ; } assertEquals ( 14 , outputSize ) ; } @ Test public void testRunInverted ( ) throws Exception { } private static List < VectorWritable > getPointsWritable ( double [ ] [ ] raw ) { } }

Fix:
Configuration conf = getConfiguration ( ) ;
Buggy code:
public class WebRequestCycle extends RequestCycle { public static final String resourceReferencePrefix = "//resources//" ; private static final Log log = LogFactory . getLog ( WebRequestCycle . class ) ; public WebRequestCycle ( final WebSession session , final WebRequest request , final Response response ) { } public WebRequest getWebRequest ( ) { } public WebResponse getWebResponse ( ) { } protected final boolean parseRequest ( ) { } protected void redirectTo ( final Page page ) throws ServletException { } protected StringBuffer urlPrefix ( ) { } final void setFormComponentValuesFromCookies ( final Page page ) { } private boolean bookmarkablePage ( ) { final String bookmarkableName = request . getParameter ( "bookmarkablePage" ) ; if ( bookmarkableName != null ) { <START_BUG> Class pageClass = application . getPages ( ) . pageClassForAlias ( bookmarkableName ) ; <END_BUG> if ( pageClass == null ) { try { pageClass = session . getClassResolver ( ) . resolveClass ( bookmarkableName ) ; } catch ( RuntimeException e ) { try { getWebResponse ( ) . getHttpServletResponse ( ) . sendError ( SC_NOT_FOUND , ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>Page<seq2seq4repair_space>class:<seq2seq4repair_space>" + bookmarkableName ) ) ; return false ; } catch ( IOException ex ) { WebRequestCycle . log . error ( ( ( ( "unable<seq2seq4repair_space>to<seq2seq4repair_space>send<seq2seq4repair_space>404<seq2seq4repair_space>for<seq2seq4repair_space>" + ( getRequest ( ) ) ) + ",<seq2seq4repair_space>cause:<seq2seq4repair_space>" ) + ( ex . getMessage ( ) ) ) , ex ) ; return false ; } } } try { Page newPage = session . getPageFactory ( ) . newPage ( pageClass , new wicket . PageParameters ( getRequest ( ) . getParameterMap ( ) ) ) ; setResponsePage ( newPage ) ; setUpdateCluster ( true ) ; return true ; } catch ( RuntimeException e ) { throw new WicketRuntimeException ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>instantiate<seq2seq4repair_space>Page<seq2seq4repair_space>class:<seq2seq4repair_space>" + bookmarkableName ) + ".<seq2seq4repair_space>See<seq2seq4repair_space>below<seq2seq4repair_space>for<seq2seq4repair_space>details." ) , e ) ; } } return false ; } private boolean callDispatchedComponentListener ( ) { } private boolean callComponentListener ( ) { } private boolean homePage ( ) { } private void invokeInterface ( final Component component , final Method method ) { } private void invokeInterface ( final Page page , final String path , final String interfaceName ) { } private final Page newPage ( final Class pageClass ) { } private void onExpiredPage ( ) { } private boolean resourceReference ( ) { } private boolean staticContent ( ) { } }

Fix:
Class pageClass = application . getPages ( ) . classForAlias ( bookmarkableName ) ;
Buggy code:
public abstract class LocalFolder extends Folder { protected int nextMessageUid ; protected AbstractMessage aktMessage ; protected DataStorageInterface dataStorage ; protected AbstractSearchEngine searchEngine ; public LocalFolder ( FolderItem item ) { } public LocalFolder ( String name ) { } public void removeFolder ( ) throws Exception { } protected Object generateNextMessageUid ( ) { } public void setNextMessageUid ( int next ) { } public abstract DataStorageInterface getDataStorageInstance ( ) { } public boolean exists ( Object uid , WorkerStatusController worker ) throws Exception { } public Object addMessage ( AbstractMessage message , WorkerStatusController worker ) throws Exception { } public Object addMessage ( String source , WorkerStatusController worker ) throws Exception { } public void removeMessage ( Object uid , WorkerStatusController worker ) throws Exception { } public AbstractMessage getMessage ( Object uid , WorkerStatusController worker ) throws Exception { } public MimePart getMimePart ( Object uid , Integer [ ] address , WorkerStatusController worker ) throws Exception { } public ColumbaHeader getMessageHeader ( Object uid , WorkerStatusController worker ) throws Exception { } public String getMessageSource ( Object uid , WorkerStatusController worker ) throws Exception { } public MimePartTree getMimePartTree ( Object uid , WorkerStatusController worker ) throws Exception { } public HeaderList getHeaderList ( WorkerStatusController worker ) throws Exception { } public AbstractSearchEngine getSearchEngineInstance ( ) { } public Object [ ] searchMessages ( Filter filter , Object [ ] uids , WorkerStatusController worker ) throws Exception { } public Object [ ] searchMessages ( Filter filter , WorkerStatusController worker ) throws Exception { } <START_BUG> public void expungeFolder ( Object [ ] uids , WorkerStatusController worker ) throws Exception { <END_BUG> } public void markMessage ( Object [ ] uids , int variant , WorkerStatusController worker ) throws Exception { } public int size ( ) { } public String getDefaultChild ( ) { } }

Fix:
public void expungeFolder ( WorkerStatusController worker ) throws Exception {
Buggy code:
public class PureTLSSocketFactory extends org . apache . tomcat . util . net . ServerSocketFactory { static String defaultProtocol = "TLS" ; static boolean defaultClientAuth = false ; static String defaultKeyStoreFile = "server.pem" ; static String defaultKeyPass = "password" ; static String defaultRootFile = "root.pem" ; static String defaultRandomFile = "random.pem" ; private SSLContext context = null ; public PureTLSSocketFactory ( ) { } public ServerSocket createSocket ( int port ) throws IOException { } public ServerSocket createSocket ( int port , int backlog ) throws IOException { } public ServerSocket createSocket ( int port , int backlog , InetAddress ifAddress ) throws IOException { } private void init ( ) throws IOException { if ( ( context ) != null ) return ; boolean clientAuth = PureTLSSocketFactory . defaultClientAuth ; try { String keyStoreFile = ( ( String ) ( attributes . get ( "keystore" ) ) ) ; if ( keyStoreFile == null ) keyStoreFile = PureTLSSocketFactory . defaultKeyStoreFile ; String keyPass = ( ( String ) ( attributes . get ( "keypass" ) ) ) ; if ( keyPass == null ) keyPass = PureTLSSocketFactory . defaultKeyPass ; <START_BUG> String rootFile = ( ( String ) ( attributes . get ( "randomfile" ) ) ) ; <END_BUG> if ( rootFile == null ) rootFile = PureTLSSocketFactory . defaultRootFile ; String randomFile = ( ( String ) ( attributes . get ( "randomfile" ) ) ) ; if ( randomFile == null ) randomFile = PureTLSSocketFactory . defaultRandomFile ; String protocol = ( ( String ) ( attributes . get ( "protocol" ) ) ) ; if ( protocol == null ) protocol = PureTLSSocketFactory . defaultProtocol ; String clientAuthStr = ( ( String ) ( attributes . get ( "clientauth" ) ) ) ; if ( clientAuthStr != null ) { if ( clientAuthStr . equals ( "true" ) ) { clientAuth = true ; } else if ( clientAuthStr . equals ( "false" ) ) { clientAuth = false ; } else { throw new IOException ( ( ( "Invalid<seq2seq4repair_space>value<seq2seq4repair_space>'" + clientAuthStr ) + "'<seq2seq4repair_space>for<seq2seq4repair_space>'clientauth'<seq2seq4repair_space>parameter:" ) ) ; } } SSLContext tmpContext = new SSLContext ( ) ; if ( clientAuth ) { tmpContext . loadRootCertificates ( rootFile ) ; } tmpContext . loadEAYKeyFile ( keyStoreFile , keyPass ) ; tmpContext . useRandomnessFile ( randomFile , keyPass ) ; SSLPolicyInt policy = new SSLPolicyInt ( ) ; policy . requireClientAuth ( clientAuth ) ; policy . handshakeOnConnect ( false ) ; policy . waitOnClose ( false ) ; tmpContext . setPolicy ( policy ) ; context = tmpContext ; } catch ( Exception e ) { throw new IOException ( e . getMessage ( ) ) ; } } public Socket acceptSocket ( ServerSocket socket ) throws IOException { } public void handshake ( Socket sock ) throws IOException { } }

Fix:
String rootFile = ( ( String ) ( attributes . get ( "rootfile" ) ) ) ;
Buggy code:
class SliderTab extends RangeTab { Scale scale1 ; Slider slider1 ; Group sliderGroup ; Group scaleGroup ; Spinner incrementSpinner ; Spinner pageIncrementSpinner ; Spinner thumbSpinner ; SliderTab ( ControlExample instance ) { } void createControlWidgets ( ) { } void createExampleGroup ( ) { } void createExampleWidgets ( ) { } void createIncrementGroup ( ) { } void createPageIncrementGroup ( ) { } void createThumbGroup ( ) { } Control [ ] getExampleWidgets ( ) { } String [ ] getMethodNames ( ) { <START_BUG> return new String [ ] { "ToolTipText" } ; <END_BUG> } public String getShortTabText ( ) { } String getTabText ( ) { } void setExampleWidgetState ( ) { } void setWidgetIncrement ( ) { } void setWidgetMaximum ( ) { } void setWidgetMinimum ( ) { } void setWidgetPageIncrement ( ) { } void setWidgetSelection ( ) { } void setWidgetThumb ( ) { } }

Fix:
return new String [ ] { "Selection" , "ToolTipText" } ;
Buggy code:
public final class SystemMenuNewEditor extends Action implements ISelfUpdatingAction { private IStackPresentationSite site ; private IPresentablePart part ; public SystemMenuNewEditor ( IStackPresentationSite site ) { } public void dispose ( ) { } public void run ( ) { if ( ( part ) != null ) { IWorkbenchWindow window = PlatformUI . getWorkbench ( ) . getActiveWorkbenchWindow ( ) ; if ( window != null ) { IWorkbenchPage page = window . getActivePage ( ) ; if ( page != null ) { IEditorPart editor = ( page == null ) ? null : page . getActiveEditor ( ) ; if ( editor != null ) { String editorId = editor . getSite ( ) . getId ( ) ; if ( editorId != null ) { try { <START_BUG> ( ( WorkbenchPage ) ( page ) ) . openEditor ( editor . getEditorInput ( ) , editorId , true , false ) ; <END_BUG> } catch ( PartInitException e ) { DialogUtil . openError ( page . getWorkbenchWindow ( ) . getShell ( ) , Error , e . getMessage ( ) , e ) ; } } } } } } } public void setTarget ( IPresentablePart presentablePart ) { } public void update ( ) { } public boolean shouldBeVisible ( ) { } }

Fix:
( ( WorkbenchPage ) ( page ) ) . openEditor ( editor . getEditorInput ( ) , editorId , true , MATCH_NONE ) ;
Buggy code:
public final class RequestUtils { public static final long MAX_CACHE_DURATION = ( ( 60 * 60 ) * 24 ) * 365 ; public static void decodeParameters ( String queryString , PageParameters params ) { } public static String removeDoubleDots ( String path ) { } private RequestUtils ( ) { } public static String toAbsolutePath ( final String requestPath , String relativePagePath ) { } private static Charset getDefaultCharset ( ) { } private static Charset getCurrentCharset ( ) { } public static Charset getCharset ( HttpServletRequest request ) { } public static void disableCaching ( WebResponse response ) { } <START_BUG> public static void enableCaching ( WebResponse response , long duration , boolean cachePublic ) { <END_BUG> Args . notNull ( response , "response" ) ; if ( duration < 0 ) throw new IllegalArgumentException ( "duration<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>positive<seq2seq4repair_space>value" ) ; long now = System . currentTimeMillis ( ) ; response . setDateHeader ( "Date" , now ) ; response . setDateHeader ( "Expires" , ( now + ( duration * 1000L ) ) ) ; String scope = ( cachePublic ) ? "public" : "private" ; response . setHeader ( "Cache-Control" , ( ( scope + ",<seq2seq4repair_space>max-age=" ) + duration ) ) ; response . setHeader ( "Vary" , "Accept-Encoding" ) ; } }

Fix:
public static void enableCaching ( WebResponse response , int duration , boolean cachePublic ) {
Buggy code:
public class WordFormParserPrimitiveTest extends TestCase { public void test01 ( ) { <START_BUG> checkForErrors ( "вести<seq2seq4repair_space>борьбу" ) ; <END_BUG> } public void test02 ( ) { } private void checkForErrors ( String str ) { } private List < IToken > getWordFormTokens ( String str ) { } }

Fix:
checkForErrors ( "синтаксический<seq2seq4repair_space>анализ<seq2seq4repair_space>текста" ) ;
Buggy code:
public class BeanShellPreProcessor extends AbstractTestElement implements Serializable , PreProcessor , TestBean , TestListener , ThreadListener { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final long serialVersionUID = 3 ; private String script ; private transient BeanShellInterpreter bshInterpreter = null ; private static final String INIT_FILE = "beanshell.preprocessor.init" ; public BeanShellPreProcessor ( ) { } private void init ( ) { try { bshInterpreter = new BeanShellInterpreter ( JMeterUtils . getProperty ( BeanShellPreProcessor . INIT_FILE ) , BeanShellPreProcessor . log ) ; } catch ( ClassNotFoundException e ) { <START_BUG> BeanShellPreProcessor . log . error ( ( "Cannot<seq2seq4repair_space>find<seq2seq4repair_space>BeanShell:<seq2seq4repair_space>" + ( e . getLocalizedMessage ( ) ) ) ) ; <END_BUG> } } private Object readResolve ( ) { } public void process ( ) { } public Object clone ( ) { } public String getScript ( ) { } public void setScript ( String s ) { } public void threadStarted ( ) { } public void threadFinished ( ) { } public void testEnded ( ) { } public void testEnded ( String host ) { } public void testIterationStart ( LoopIterationEvent event ) { } public void testStarted ( ) { } public void testStarted ( String host ) { } }

Fix:
BeanShellPreProcessor . log . error ( ( "Cannot<seq2seq4repair_space>find<seq2seq4repair_space>BeanShell:<seq2seq4repair_space>" + ( e . toString ( ) ) ) ) ;