nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Utils { private static Logger LOGGER = LoggerFactory . getLogger ( Utils . class ) ; private static String iioFailsPath = PropertyManager . getProperty ( "iio.fails" ) ; public static Optional < String > emptyStringOptional ( String str ) { } public static JsonNode parseJson ( File file ) throws IOException { } public static FootPrint readFootPrint ( String filePath ) { } public static void writeFootPrint ( String filePath , FootPrint footPrint ) throws IOException { } public static void doIIOQuery ( String connectorId , String userId , String apiKey , String queryUrl , Consumer < JsonNode > consumer ) { } public static String postIIOAndReadContent ( String connectorId , String userId , String apiKey , String queryUrl ) throws UnirestException , UnsupportedEncodingException { } public static void sureFolder ( String ... dirPaths ) { } public static void writeToFile ( JsonNode root , String filePath ) throws IOException { } public static JsonNode readIIOResult ( String iioContent ) throws IOException { } public static JsonNode parseJson ( String json ) throws IOException { } public static Client esClient ( ) { } public static int postAndGetStatus ( String url , String json ) throws UnirestException , IOException { <START_BUG> int rsp = Unirest . post ( url ) . body ( json ) . asString ( ) . getStatus ( ) ; <END_BUG> Utils . LOGGER . debug ( "Response<seq2seq4repair_space>code<seq2seq4repair_space>of<seq2seq4repair_space>url<seq2seq4repair_space>{}<seq2seq4repair_space>" , rsp ) ; return rsp ; } public static int postAndGetStatus ( String url , JsonNode jsonNode ) throws UnirestException , IOException { } public static void sureFile ( String failListPath ) throws IOException { } public static < T > Optional < String > toJSON ( T object ) { } }

Fix:
int rsp = Unirest . post ( url ) . header ( "Content-Type" , "application//json" ) . body ( json ) . asString ( ) . getStatus ( ) ;
Buggy code:
public final class PageMap implements Serializable { private static final long serialVersionUID = 1L ; private String interceptContinuationURL ; private final String name ; private int pageId = 0 ; private transient Session session ; private int size = 0 ; static interface IVisitor { public void entry ( final IPageMapEntry entry ) { } } public PageMap ( final String name , final Session session ) { } public final List getEntries ( ) { } public final String getName ( ) { } public final Session getSession ( ) { } public int getSize ( ) { } public final boolean isDefault ( ) { } public final void remove ( ) { } public final IPageMapEntry remove ( final IPageMapEntry entry ) { } public final int size ( ) { } String attributeForId ( final int id ) { } String attributePrefix ( ) { } final boolean continueToOriginalDestination ( ) { } final Page get ( final int id ) { } final int nextId ( ) { } final synchronized void put ( final IPageMapEntry entry ) { if ( ! ( ( entry instanceof Page ) && ( ( ( Page ) ( entry ) ) . isStateless ( ) ) ) ) { session . access ( entry ) ; final String attribute = attributeForId ( entry . getNumericId ( ) ) ; if ( ( session . getAttribute ( attribute ) ) == null ) { ( size ) ++ ; } session . setAttribute ( attribute , entry ) ; <START_BUG> session . getApplication ( ) . getSettings ( ) . getPageMapEvictionStrategy ( ) . evict ( this ) ; <END_BUG> } } final void redirectToInterceptPage ( final Page page ) { } final void removeAll ( ) { } final void setSession ( final Session session ) { } final void visitEntries ( final PageMap . IVisitor visitor ) { } }

Fix:
session . getApplication ( ) . getSessionSettings ( ) . getPageMapEvictionStrategy ( ) . evict ( this ) ;
Buggy code:
public class RemoteChannelProxyControllerTestCase extends AbstractProxyControllerTest { static RemoteChannelPairSetup channels ; @ After public void stopChannels ( ) throws Exception { } @ Override protected ProxyController createProxyController ( final ModelController proxiedController , final PathAddress proxyNodeAddress ) { TransactionalModelControllerOperationHandler operationHandler = new TransactionalModelControllerOperationHandler ( proxiedController , Executors . newCachedThreadPool ( ) ) ; try { RemoteChannelProxyControllerTestCase . channels = new RemoteChannelPairSetup ( ) ; RemoteChannelProxyControllerTestCase . channels . setupRemoting ( operationHandler ) ; <START_BUG> RemoteChannelProxyControllerTestCase . channels . startChannels ( ) ; <END_BUG> } catch ( Exception e ) { throw new RuntimeException ( e ) ; } final Channel clientChannel = RemoteChannelProxyControllerTestCase . channels . getClientChannel ( ) ; final RemoteProxyController proxyController = RemoteProxyController . create ( RemoteChannelProxyControllerTestCase . channels . getExecutorService ( ) , proxyNodeAddress , SERVER , RemoteChannelProxyControllerTestCase . channels . getClientChannel ( ) ) ; clientChannel . addCloseHandler ( new org . jboss . remoting3 . CloseHandler < Channel > ( ) { @ Override public void handleClose ( Channel closed , IOException exception ) { proxyController . shutdownNow ( ) ; } } ) ; clientChannel . receiveMessage ( ManagementChannelReceiver . createDelegating ( proxyController ) ) ; return proxyController ; } }

Fix:
RemoteChannelProxyControllerTestCase . channels . startClientConnetion ( ) ;
Buggy code:
public class AuthenticatedUser { public final String username ; public final Set < String > groups ; public final boolean isSuper ; public AuthenticatedUser ( String username , boolean isSuper ) { } public AuthenticatedUser ( String username , Set < String > groups , boolean isSuper ) { } public AccessLevel levelFor ( Map < String , AccessLevel > usersAccess , Map < String , AccessLevel > groupsAccess ) { } @ Override public String toString ( ) { <START_BUG> return "#<User<seq2seq4repair_space>%s<seq2seq4repair_space>groups=%s>" . format ( username , groups ) ; <END_BUG> } }

Fix:
return String . format ( "#<User<seq2seq4repair_space>%s<seq2seq4repair_space>groups=%s>" , username , groups ) ;
Buggy code:
public class HtmlDocumentParser { public static final int UNKNOWN = - 1 ; public static final int END = 0 ; public static final int COMMENT = 1 ; public static final int OPEN_TAG = 2 ; public static final int OPENCLOSE_TAG = 3 ; public static final int CLOSE_TAG = 4 ; public static final int TEXT = 5 ; private String document ; private int pos ; private String comment ; private String tag ; private Map attributes ; private String text ; public HtmlDocumentParser ( final String document ) { } public String getComment ( ) { } public String getTag ( ) { } public Map getAttributes ( ) { } public String getText ( ) { } public int getNextToken ( ) { } private int processText ( ) { } private int processDirective ( ) { String part = document . substring ( pos ) ; if ( part . matches ( "<!--.*-->.*" ) ) { comment = part . substring ( 4 , part . indexOf ( "-->" ) ) . trim ( ) ; pos += ( part . indexOf ( "-->" ) ) + 3 ; return HtmlDocumentParser . COMMENT ; } else if ( part . matches ( "<[^//].*>.*" ) ) { <START_BUG> if ( part . matches ( "<[a-zA-Z]*>.*" ) ) { <END_BUG> tag = part . substring ( 1 , part . indexOf ( '>' ) ) . toLowerCase ( ) ; attributes = new HashMap ( ) ; } else { tag = part . substring ( 1 , part . indexOf ( '<seq2seq4repair_space>' ) ) . toLowerCase ( ) ; String attributeString = part . substring ( part . indexOf ( '<seq2seq4repair_space>' ) , part . indexOf ( '>' ) ) ; attributes = extractAttributes ( attributeString ) ; } pos += ( part . indexOf ( ">" ) ) + 1 ; return HtmlDocumentParser . OPEN_TAG ; } else if ( part . matches ( "<.*//>.*" ) ) { if ( part . matches ( "<[a-zA-Z]*//>.*" ) ) { tag = part . substring ( 1 , part . indexOf ( "//>" ) ) . toLowerCase ( ) ; attributes = new HashMap ( ) ; } else { tag = part . substring ( 1 , part . indexOf ( '<seq2seq4repair_space>' ) ) . toLowerCase ( ) ; String attributeString = part . substring ( part . indexOf ( '<seq2seq4repair_space>' ) , part . indexOf ( "//>" ) ) ; attributes = extractAttributes ( attributeString ) ; } pos += ( part . indexOf ( "//>" ) ) + 2 ; return HtmlDocumentParser . OPENCLOSE_TAG ; } else if ( part . matches ( "<//.*>.*" ) ) { tag = part . substring ( 2 , part . indexOf ( '>' ) ) . trim ( ) . toLowerCase ( ) ; pos += ( part . indexOf ( ">" ) ) + 1 ; return HtmlDocumentParser . CLOSE_TAG ; } else { int size = ( ( part . length ( ) ) > 30 ) ? 30 : part . length ( ) ; System . err . println ( ( ( "Unexpected<seq2seq4repair_space>markup<seq2seq4repair_space>found:<seq2seq4repair_space>" + ( part . substring ( 0 , size ) ) ) + "..." ) ) ; return HtmlDocumentParser . UNKNOWN ; } } private Map extractAttributes ( String attributeString ) { } }

Fix:
if ( part . matches ( "<([a-zA-Z]+:)?[a-zA-Z]*>.*" ) ) {
Buggy code:
public class Convert { public static void main ( String [ ] args ) throws Exception { } public void run ( String [ ] args ) throws Exception { OWLOntologyManager manager = OWLManager . createOWLOntologyManager ( ) ; OWLOntologyLoaderConfiguration config = new OWLOntologyLoaderConfiguration ( ) ; config . setMissingOntologyHeaderStrategy ( IMPORT_GRAPH ) ; File kbfile ; OWLOntology ont ; if ( ( args . length ) != 1 ) { System . err . println ( "Syntax:<seq2seq4repair_space>java<seq2seq4repair_space>Convert<seq2seq4repair_space>(owlfile)<seq2seq4repair_space>>(outputfile)" ) ; System . err . println ( "..." ) ; System . err . println ( "For<seq2seq4repair_space>example:<seq2seq4repair_space>java<seq2seq4repair_space>Convert<seq2seq4repair_space>//home//ricordo//ontology//ricordo.owl<seq2seq4repair_space>>ricordo.nt" ) ; return ; } try { kbfile = new File ( args [ 0 ] ) ; ont = manager . loadOntologyFromOntologyDocument ( new FileDocumentSource ( kbfile ) , config ) ; } catch ( Exception e ) { System . out . println ( "Load<seq2seq4repair_space>failure" ) ; return ; } IRI iri = manager . getOntologyDocumentIRI ( ont ) ; OWLDataFactory df = OWLManager . getOWLDataFactory ( ) ; Set < OWLOntology > onts = ont . getImportsClosure ( ) ; for ( OWLOntology o : onts ) { Set < OWLClass > classes = o . getClassesInSignature ( ) ; for ( OWLClass c : classes ) { String cID = c . toString ( ) . trim ( ) ; Set < OWLAnnotation > annots = c . getAnnotations ( o , df . getRDFSLabel ( ) ) ; for ( OWLAnnotation a : annots ) { if ( ( a . getValue ( ) ) instanceof OWLLiteral ) <START_BUG> System . out . print ( ( ( ( ( "<" + cID ) + "><seq2seq4repair_space><http:////www.w3.org//2000//01//rdf-schema#label><seq2seq4repair_space>\"" ) + ( ( ( OWLLiteral ) ( a . getValue ( ) ) ) . getLiteral ( ) . trim ( ) ) ) + "\"<seq2seq4repair_space>.\n" ) ) ; <END_BUG> } } } return ; } }

Fix:
System . out . print ( ( ( ( cID + "<seq2seq4repair_space><http:////www.w3.org//2000//01//rdf-schema#label><seq2seq4repair_space>\"" ) + ( ( ( OWLLiteral ) ( a . getValue ( ) ) ) . getLiteral ( ) . trim ( ) ) ) + "\"<seq2seq4repair_space>.\n" ) ) ;
Buggy code:
public class UserDestinationMessageHandler implements MessageHandler { private static final Log logger = LogFactory . getLog ( UserDestinationMessageHandler . class ) ; private final MessageSendingOperations < String > messagingTemplate ; private String prefix = "//user//" ; private UserSessionResolver userSessionResolver = new SimpleUserSessionResolver ( ) ; public UserDestinationMessageHandler ( MessageSendingOperations < String > messagingTemplate ) { } public void setPrefix ( String prefix ) { } public String getPrefix ( ) { } public void setUserSessionResolver ( UserSessionResolver userSessionResolver ) { } public UserSessionResolver getUserSessionResolver ( ) { } public MessageSendingOperations < String > getMessagingTemplate ( ) { } @ Override public void handleMessage ( Message < ? > message ) throws MessagingException { if ( ! ( shouldHandle ( message ) ) ) { return ; } SimpMessageHeaderAccessor headers = SimpMessageHeaderAccessor . wrap ( message ) ; String destination = headers . getDestination ( ) ; if ( UserDestinationMessageHandler . logger . isTraceEnabled ( ) ) { UserDestinationMessageHandler . logger . trace ( ( "Processing<seq2seq4repair_space>message<seq2seq4repair_space>to<seq2seq4repair_space>destination<seq2seq4repair_space>" + destination ) ) ; } UserDestinationMessageHandler . UserDestinationParser destinationParser = new UserDestinationMessageHandler . UserDestinationParser ( destination ) ; String user = destinationParser . getUser ( ) ; if ( user == null ) { if ( UserDestinationMessageHandler . logger . isErrorEnabled ( ) ) { UserDestinationMessageHandler . logger . error ( ( ( ( "Ignoring<seq2seq4repair_space>message,<seq2seq4repair_space>expected<seq2seq4repair_space>destination<seq2seq4repair_space>\"" + ( this . prefix ) ) + "{userId}//**\":<seq2seq4repair_space>" ) + destination ) ) ; } return ; } for ( String sessionId : this . userSessionResolver . resolveUserSessionIds ( user ) ) { String targetDestination = destinationParser . getTargetDestination ( sessionId ) ; headers . setDestination ( targetDestination ) ; <START_BUG> message = MessageBuilder . fromMessage ( message ) . copyHeaders ( headers . toMap ( ) ) . build ( ) ; <END_BUG> if ( UserDestinationMessageHandler . logger . isTraceEnabled ( ) ) { UserDestinationMessageHandler . logger . trace ( ( "Sending<seq2seq4repair_space>message<seq2seq4repair_space>to<seq2seq4repair_space>resolved<seq2seq4repair_space>target<seq2seq4repair_space>destination<seq2seq4repair_space>" + targetDestination ) ) ; } this . messagingTemplate . send ( targetDestination , message ) ; } } protected boolean shouldHandle ( Message < ? > message ) { } private class UserDestinationParser { private final String user ; private final String targetDestination ; public UserDestinationParser ( String destination ) { } public String getUser ( ) { } public String getTargetDestination ( String sessionId ) { } } }

Fix:
message = MessageBuilder . withPayloadAndHeaders ( message . getPayload ( ) , headers ) . build ( ) ;
Buggy code:
public class Version { private Version ( ) { } public static String id ( ) { <START_BUG> return "4.5-SNAPSHOT-20080125-0912" ; <END_BUG> } public static void main ( String [ ] args ) { } }

Fix:
return "4.5-SNAPSHOT-20080319-0812" ;
Buggy code:
public final class ShortId extends OpenJPAId { private final short key ; public ShortId ( Class cls , Short key ) { } public ShortId ( Class cls , String key ) { } public ShortId ( Class cls , short key ) { } public ShortId ( Class cls , short key , boolean subs ) { } public short getId ( ) { } public Object getIdObject ( ) { <START_BUG> return new Short ( key ) ; <END_BUG> } public String toString ( ) { } protected int idHash ( ) { } protected boolean idEquals ( OpenJPAId o ) { } }

Fix:
return Short . valueOf ( key ) ;
Buggy code:
public class AI implements Solver { private final Player player ; private final int depth ; public AI ( Player p , int d ) { } @ Override public Move [ ] getMoves ( Board b ) { } public static void createGameTree ( State s , int d ) { } public static void minimax ( AI ai , State s ) { } public void minimax ( State s ) { State [ ] children = s . getChildren ( ) ; <START_BUG> if ( children == ( State . length0 ) ) { <END_BUG> s . setValue ( evaluateBoard ( s . getBoard ( ) ) ) ; return ; } int value ; if ( ( s . getPlayer ( ) ) == ( player ) ) { value = Integer . MIN_VALUE ; for ( State child : children ) { minimax ( child ) ; if ( ( child . getValue ( ) ) > value ) value = child . getValue ( ) ; } } else { value = Integer . MAX_VALUE ; for ( State child : children ) { minimax ( child ) ; if ( ( child . getValue ( ) ) < value ) value = child . getValue ( ) ; } } s . setValue ( value ) ; } public int evaluateBoard ( Board b ) { } }

Fix:
if ( ( children . length ) == 0 ) {
Buggy code:
public class LongID extends BaseID { Long value = null ; public static class Creator implements IDInstantiator { public ID makeInstance ( Namespace ns , Class [ ] argTypes , Object [ ] args ) throws IDInstantiationException { } } public static final String LONGID_INSTANTIATOR_CLASS = LongID . Creator . class . getName ( ) ; public static final String LONGID_NAME = LongID . class . getName ( ) ; protected LongID ( Namespace n , Long v ) { } protected LongID ( Namespace n , long v ) { } protected int namespaceCompareTo ( BaseID o ) { } protected boolean namespaceEquals ( BaseID o ) { if ( ! ( o instanceof LongID ) ) return false ; LongID obj = ( ( LongID ) ( o ) ) ; <START_BUG> return value . equals ( obj ) ; <END_BUG> } protected String namespaceGetName ( ) { } protected int namespaceHashCode ( ) { } protected URI namespaceToURI ( ) throws URISyntaxException { } public long longValue ( ) { } }

Fix:
return value . equals ( obj . value ) ;
Buggy code:
public final class ServletDeploymentItem implements Serializable , DeploymentItem { private static final long serialVersionUID = - 1448326750887634809L ; <START_BUG> public void install ( final DeploymentItemContext context ) { <END_BUG> } }

Fix:
public void install ( final BatchBuilder builder ) {
Buggy code:
public class VisitsManager extends BaseManager { private static final String VISIT_QUERY = "visit?patient=" ; private static final String SENDING_REQUEST = "Sending<seq2seq4repair_space>request<seq2seq4repair_space>to<seq2seq4repair_space>:<seq2seq4repair_space>" ; private int mExpectedResponses ; private boolean mErrorOccurred ; public VisitsManager ( Context context ) { } public void getLastVitals ( final String patientUUID ) { } public void findVisitsByPatientUUID ( final String patientUUID , final long patientID ) { } public void findVisitByUUID ( final String visitUUID , final long patientID ) { } public void getVisitDiagnosesByUUID ( final String diagnosesUUID , final long patientID ) { } public void inactivateVisitByUUID ( final String visitUUID , final long patientID ) { } public void createVisit ( final Patient patient ) { } public void getVisitType ( ) { } public void subtractExpectedResponses ( boolean errorOccurred ) { ( mExpectedResponses ) -- ; if ( errorOccurred ) { mErrorOccurred = errorOccurred ; } if ( ( mExpectedResponses ) <= 0 ) { if ( ( mContext ) instanceof PatientDashboardActivity ) { <START_BUG> ( ( PatientDashboardActivity ) ( mContext ) ) . updatePatientVisitsData ( mErrorOccurred ) ; <END_BUG> } else if ( ( ( mContext ) instanceof FindPatientsSearchActivity ) || ( ( mContext ) instanceof FindPatientsActivity ) ) { ( ( ACBaseActivity ) ( mContext ) ) . dismissProgressDialog ( errorOccurred , find_patients_row_toast_patient_saved , find_patients_row_toast_patient_save_error ) ; } } } }

Fix:
( ( PatientDashboardActivity ) ( org . openmrs . mobile . application . OpenMRS . getInstance ( ) . getCurrentActivity ( ) ) ) . updatePatientVisitsData ( mErrorOccurred ) ;
Buggy code:
@ DPU . AsTransformer public class UnZipper7Zip extends DpuAdvancedBase < UnZipper7ZipConfig_V1 > { private static final Logger LOG = LoggerFactory . getLogger ( UnZipper7Zip . class ) ; @ AsInput ( name = "input" ) public FilesDataUnit inFilesData ; @ AsOutput ( name = "output" ) public WritableFilesDataUnit outFilesData ; public UnZipper7Zip ( ) { } @ Override protected void innerExecute ( ) throws DPUException { } private void scanDirectory ( File directory ) throws DataUnitException { UnZipper7Zip . LOG . debug ( "><seq2seq4repair_space>scanDirectory" ) ; <START_BUG> final Path directoryPath = directory . toPath ( ) ; <END_BUG> final Iterator < File > iter = FileUtils . iterateFiles ( directory , null , true ) ; while ( iter . hasNext ( ) ) { final File newFile = iter . next ( ) ; final String relativePath = directoryPath . relativize ( newFile . toPath ( ) ) . toString ( ) ; final String newSymbolicName = relativePath ; outFilesData . addExistingFile ( newSymbolicName , newFile . toURI ( ) . toString ( ) ) ; Manipulator . add ( outFilesData , newSymbolicName , PREDICATE_VIRTUAL_PATH , relativePath ) ; } UnZipper7Zip . LOG . debug ( "<<seq2seq4repair_space>scanDirectory" ) ; } private boolean unzip7Zip ( File zipFile , File targetDirectory , byte [ ] buffer ) { } private boolean unzip ( File zipFile , File targetDirectory ) { } @ Override public AbstractConfigDialog < MasterConfigObject > getConfigurationDialog ( ) { } }

Fix:
final Path directoryPath = directory . getParentFile ( ) . toPath ( ) ;
Buggy code:
@ RunWith ( SpringJUnit4ClassRunner . class ) @ ContextConfiguration ( { "classpath:test-spring-context.xml" } ) public class BugSeverityDaoTest { @ Test public void testGetAllBugSeverity ( ) { List < BugSeverity > bugSeverityList = bugSeverityDao . getAllBugSeverity ( ) ; Assert . assertNotNull ( bugSeverityList ) ; <START_BUG> Assert . assertEquals ( 9 , bugSeverityList . size ( ) ) ; <END_BUG> BugSeverity bugSeverity = bugSeverityList . get ( 0 ) ; String bugSeveritySlug = bugSeverity . getBugSeveritySlug ( ) ; Assert . assertEquals ( "critical" , bugSeveritySlug ) ; } @ Test public void testGetBugSeverityUsingIdExists ( ) { } @ Test public void testGetBugSeverityUsingIdNotExists ( ) { } @ Test public void testGetBugSeverityUsingSlugExists ( ) { } @ Test public void testGetBugSeverityUsingSlugNotExists ( ) { } @ Autowired private BugSeverityDao bugSeverityDao ; }

Fix:
Assert . assertEquals ( 4 , bugSeverityList . size ( ) ) ;
Buggy code:
public class GenericClientContainerConnectWizardPage extends AbstractConnectWizardPage { public boolean shouldRequestUsername ( ) { } public boolean shouldRequestPassword ( ) { } public String getExampleID ( ) { <START_BUG> return "<protocol>:////<machinename>:<port>//<servicename>" ; <END_BUG> } protected String getProviderTitle ( ) { } protected String getProviderDescription ( ) { } }

Fix:
return "ecftcp:////<server>:<port>//<groupname>" ;
Buggy code:
public class ArrayList implements List { public Object [ ] myarray ; public ArrayList ( ) { } @ Override public boolean isEmpty ( ) { } @ Override public int size ( ) { } @ Override public ReturnObject get ( int index ) { } @ Override public ReturnObject remove ( int index ) { } @ Override public ReturnObject add ( int index , Object item ) { if ( item == null ) { return new ReturnObjectImpl ( ErrorMessage . INVALID_ARGUMENT ) ; } else if ( ( index < 0 ) || ( index >= ( this . size ( ) ) ) ) { return new ReturnObjectImpl ( ErrorMessage . INDEX_OUT_OF_BOUNDS ) ; } else { <START_BUG> for ( int i = this . size ( ) ; i >= index ; i ++ ) { <END_BUG> if ( i == index ) { myarray [ index ] = item ; } else { myarray [ ( i + 1 ) ] = myarray [ i ] ; } } this . CheckArraySize ( ) ; return new ReturnObjectImpl ( null ) ; } } @ Override public ReturnObject add ( Object item ) { } private void CheckArraySize ( ) { } }

Fix:
for ( int i = 0 ; i >= index ; i ++ ) {
Buggy code:
public class SOAPBindingDocumentBareRules extends AbstractAnnotationProcessor { @ Override public void process ( ) { AnnotationTypeDeclaration annotationDeclaration = ( ( AnnotationTypeDeclaration ) ( environment . getTypeDeclaration ( SOAPBinding . class . getName ( ) ) ) ) ; Collection < Declaration > annotatedTypes = environment . getDeclarationsAnnotatedWith ( annotationDeclaration ) ; for ( Declaration declaration : annotatedTypes ) { if ( declaration instanceof TypeDeclaration ) { TypeDeclaration typeDeclaration = ( ( TypeDeclaration ) ( declaration ) ) ; Collection < AnnotationMirror > annotationMirrors = typeDeclaration . getAnnotationMirrors ( ) ; for ( AnnotationMirror mirror : annotationMirrors ) { if ( mirror . getAnnotationType ( ) . getDeclaration ( ) . equals ( annotationDeclaration ) ) { if ( JAXWSUtils . isDocumentBare ( mirror ) ) { Collection < ? extends MethodDeclaration > methodDeclarations = typeDeclaration . getMethods ( ) ; for ( MethodDeclaration methodDeclaration : methodDeclarations ) { processMethod ( methodDeclaration ) ; } } } } } if ( declaration instanceof MethodDeclaration ) { MethodDeclaration methodDeclaration = ( ( MethodDeclaration ) ( declaration ) ) ; Collection < AnnotationMirror > annotationMirrors = methodDeclaration . getAnnotationMirrors ( ) ; for ( AnnotationMirror mirror : annotationMirrors ) { if ( mirror . getAnnotationType ( ) . getDeclaration ( ) . equals ( annotationDeclaration ) ) { if ( JAXWSUtils . isDocumentBare ( mirror ) ) { <START_BUG> processMethod ( ( ( MethodDeclaration ) ( declaration ) ) ) ; <END_BUG> } } } } } } public void processMethod ( MethodDeclaration methodDeclaration ) { } private boolean isOneway ( MethodDeclaration methodDeclaration ) { } private boolean isVoidReturnType ( MethodDeclaration methodDeclaration ) { } private boolean isSingleNonHeaderINParameter ( Collection < ParameterDeclaration > parameters ) { } private int countNonHeaderINParameters ( Collection < ParameterDeclaration > parameters ) { } private boolean isNonHeaderINParameter ( ParameterDeclaration parameterDeclaration ) { } private int countINParameters ( Collection < ParameterDeclaration > parameters ) { } private boolean isINParameter ( ParameterDeclaration parameterDeclaration ) { } private int countOUTParameters ( Collection < ParameterDeclaration > parameters ) { } private boolean isOUTParameter ( ParameterDeclaration parameterDeclaration ) { } private boolean isHeader ( AnnotationMirror annotationMirror ) { } private String getWebParamMode ( AnnotationMirror annotationMirror , ParameterDeclaration parameterDeclaration ) { } private String getDefaultWebParamMode ( ParameterDeclaration parameterDeclaration ) { } }

Fix:
processMethod ( methodDeclaration ) ;
Buggy code:
public abstract class DefaultRmicAdapter implements RmicAdapter { private static final Random rand = new Random ( ) ; private Rmic attributes ; private FileNameMapper mapper ; private TaskContext m_taskContext ; public void setTaskContext ( final TaskContext context ) { } protected final TaskContext getTaskContext ( ) { } public void setRmic ( Rmic attributes ) { } public Path getClasspath ( ) throws TaskException { } public FileNameMapper getMapper ( ) { } public Rmic getRmic ( ) { } protected Commandline setupRmicCommand ( ) throws TaskException { } protected Commandline setupRmicCommand ( String [ ] options ) throws TaskException { } protected Path getCompileClasspath ( ) throws TaskException { Path classpath = new Path ( ) ; classpath . addLocation ( attributes . getBase ( ) ) ; if ( ( attributes . getClasspath ( ) ) != null ) { <START_BUG> classpath . addPath ( attributes . getClasspath ( ) ) ; <END_BUG> } return classpath ; } protected String getSkelClassSuffix ( ) { } protected String getStubClassSuffix ( ) { } protected String getTieClassSuffix ( ) { } protected void logAndAddFilesToCompile ( Commandline cmd ) { } private class RmicFileNameMapper implements FileNameMapper { RmicFileNameMapper ( ) { } public void setFrom ( String s ) { } public void setTo ( String s ) { } public String [ ] mapFileName ( String name , TaskContext context ) { } } }

Fix:
classpath . add ( attributes . getClasspath ( ) ) ;
Buggy code:
public final class FeedbackMessage implements Serializable { public static final int DEBUG = 1 ; public static final int ERROR = 4 ; public static final int FATAL = 5 ; public static final int INFO = 2 ; public static final int UNDEFINED = 0 ; public static final int WARNING = 3 ; private static final String [ ] levelStrings = new String [ ] { "UNDEFINED" , "DEBUG" , "INFO" , "WARNING" , "ERROR" , "FATAL" } ; private final int level ; private String message ; private Component reporter ; FeedbackMessage ( final Component reporter , final String message , final int level ) { } public final int getLevel ( ) { } public final String getLevelAsString ( ) { } public final String getMessage ( ) { } public final Component getReporter ( ) { } public final boolean isDebug ( ) { } public final boolean isError ( ) { } public final boolean isFatal ( ) { } public final boolean isInfo ( ) { } public final boolean isLevel ( int level ) { } public final boolean isUndefined ( ) { } public final boolean isWarning ( ) { } public String toString ( ) { <START_BUG> return ( ( ( ( ( "[FeedbackMessage<seq2seq4repair_space>message<seq2seq4repair_space>=<seq2seq4repair_space>\"" + ( getMessage ( ) ) ) + "\",<seq2seq4repair_space>reporter<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( getReporter ( ) . getName ( ) ) ) + ",<seq2seq4repair_space>level<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( getLevelAsString ( ) ) ) + "]" ; <END_BUG> } }

Fix:
return ( ( ( ( ( "[FeedbackMessage<seq2seq4repair_space>message<seq2seq4repair_space>=<seq2seq4repair_space>\"" + ( getMessage ( ) ) ) + "\",<seq2seq4repair_space>reporter<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( getReporter ( ) . getId ( ) ) ) + ",<seq2seq4repair_space>level<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( getLevelAsString ( ) ) ) + "]" ;
Buggy code:
public class ANTLR extends Task { private CommandlineJava commandline = new CommandlineJava ( ) ; private boolean fork = false ; private File workingdir = null ; private File outputDirectory ; private File target ; public ANTLR ( ) { } public void setDir ( File d ) { } public void setFork ( boolean s ) { } public void setOutputdirectory ( File outputDirectory ) { } public void setTarget ( File target ) { } public Path createClasspath ( ) { } public Argument createJvmarg ( ) { } public void execute ( ) throws TaskException { addClasspathEntry ( "//antlr//Tool.class" ) ; validateAttributes ( ) ; if ( ( target . lastModified ( ) ) > ( getGeneratedFile ( ) . lastModified ( ) ) ) { commandline . createArgument ( ) . setValue ( "-o" ) ; commandline . createArgument ( ) . setValue ( outputDirectory . toString ( ) ) ; commandline . createArgument ( ) . setValue ( target . toString ( ) ) ; if ( fork ) { getLogger ( ) . debug ( ( "Forking<seq2seq4repair_space>" + ( commandline . toString ( ) ) ) ) ; int err = run ( commandline . getCommandline ( ) ) ; if ( err == 1 ) { throw new TaskException ( ( "ANTLR<seq2seq4repair_space>returned:<seq2seq4repair_space>" + err ) ) ; } } else { ExecuteJava exe = new ExecuteJava ( ) ; exe . setJavaCommand ( commandline . getJavaCommand ( ) ) ; exe . setClasspath ( commandline . getClasspath ( ) ) ; <START_BUG> exe . execute ( getProject ( ) ) ; <END_BUG> } } } protected void addClasspathEntry ( String resource ) { } private File getGeneratedFile ( ) throws TaskException { } private int run ( String [ ] command ) throws TaskException { } private void validateAttributes ( ) throws TaskException { } }

Fix:
exe . execute ( ) ;
Buggy code:
public class ResourceUtils { private static final String TAG = ResourceUtils . class . getSimpleName ( ) ; private static final Map < String , Integer > DIMENSION_LOOKUP = ResourceUtils . initDimens ( ) ; private static Map < String , Integer > initDimens ( ) { } private static final Pattern DIMENSION_PATTERN = Pattern . compile ( "^\\s*(\\d+(\\.\\d+)*)\\s*([a-zA-Z]+)\\s*$" ) ; private static final Map < String , Integer > STATE_LOOKUP = ResourceUtils . initStates ( ) ; private static Map < String , Integer > initStates ( ) { } public static final int [ ] getResourceDeclareStyleableIntArray ( Context context , String name ) { } public static final int getResourceDeclareStyleableInt ( Context context , String name ) { } public static int getStateFromString ( String state ) { } public static int getUnitFromString ( String unit ) { } public static ResourceUtils . ResourceDimension stringToDimension ( String dimension ) { } public static class ResourceDimension { private float value ; private int unit ; public ResourceDimension ( float value , int unit ) { } public float getValue ( ) { } public int getUnit ( ) { } } public static boolean isValidState ( int state ) { <START_BUG> return ResourceUtils . STATE_LOOKUP . containsValue ( state ) ; <END_BUG> } public static boolean isValidUnitType ( int units ) { } }

Fix:
return ResourceUtils . STATE_LOOKUP . containsValue ( Math . abs ( state ) ) ;
Buggy code:
@ Component public class AccessInterceptor extends HandlerInterceptorAdapter { @ Override public boolean preHandle ( HttpServletRequest request , HttpServletResponse response , Object handler ) throws Exception { if ( ! ( handler . getClass ( ) . equals ( HandlerMethod . class ) ) ) return super . preHandle ( request , response , handler ) ; HandlerMethod method = ( ( HandlerMethod ) ( handler ) ) ; Class < ? > cls = method . getBeanType ( ) ; Anonymous anonymous = method . getMethodAnnotation ( Anonymous . class ) ; if ( ApplicationConfig . isDevMod ( ) ) { response . setHeader ( "Access-Control-Allow-Origin" , "*" ) ; <START_BUG> response . setHeader ( "Access-Control-Allow-Methods" , "POST,<seq2seq4repair_space>GET,<seq2seq4repair_space>OPTIONS,<seq2seq4repair_space>DELETE,<seq2seq4repair_space>PUT" ) ; <END_BUG> } if ( anonymous != null ) return super . preHandle ( request , response , handler ) ; SecUser user = checkAuthorization ( response ) ; if ( ( user == null ) || ( ! ( checkAccesses ( cls , request , response , method , user ) ) ) ) { return false ; } return super . preHandle ( request , response , handler ) ; } private SecUser checkAuthorization ( HttpServletResponse response ) throws IOException { } private boolean checkAccesses ( Class < ? > cls , HttpServletRequest request , HttpServletResponse response , HandlerMethod method , SecUser user ) throws IOException { } private boolean checkAnyAccess ( Access [ ] accesses , SecUser user ) throws IOException { } private boolean checkAccess ( Access access , SecUser user ) throws IOException { } private boolean checkRole ( SecUser user , String [ ] permissionNames ) { } No newline ; at end ; of file ; }

Fix:
response . setHeader ( "Access-Control-Allow-Methods" , "POST,<seq2seq4repair_space>GET,<seq2seq4repair_space>OPTIONS,<seq2seq4repair_space>DELETE,<seq2seq4repair_space>PUT,<seq2seq4repair_space>HEAD" ) ;
Buggy code:
public class ArrayList implements List { public Object [ ] myarray ; public ArrayList ( ) { } @ Override public boolean isEmpty ( ) { } @ Override public int size ( ) { int arraysize = 0 ; for ( int i = 0 ; i < ( myarray . length ) ; i ++ ) { <START_BUG> if ( ! ( myarray [ i ] . equals ( null ) ) ) { <END_BUG> arraysize ++ ; } } return arraysize ; } @ Override public ReturnObject get ( int index ) { } @ Override public ReturnObject remove ( int index ) { } @ Override public ReturnObject add ( int index , Object item ) { } @ Override public ReturnObject add ( Object item ) { } private void CheckArraySize ( ) { } }

Fix:
if ( ! ( ( myarray [ i ] ) == null ) ) {
Buggy code:
public class KDBXReader { private static final long SIGNATURE_ONE = 2594363651L ; private static final long KEEPASS2_SIG = 3041655655L ; private static final long KEEPASS2_BETA_SIG = 3041655654L ; private static final int END_HEADER = 0 ; private static final int CIPHER_ID = 2 ; public void parse ( String filePath ) throws IOException { RandomAccessFile file = new RandomAccessFile ( filePath , "r" ) ; if ( ( KDBXReader . parseSignature ( file ) ) != ( KDBXReader . SIGNATURE_ONE ) ) throw new IOException ( "sig<seq2seq4repair_space>one<seq2seq4repair_space>wrong" ) ; long sigTwo = KDBXReader . parseSignature ( file ) ; if ( ( sigTwo != ( KDBXReader . KEEPASS2_SIG ) ) && ( sigTwo != ( KDBXReader . KEEPASS2_BETA_SIG ) ) ) throw new IOException ( "sig<seq2seq4repair_space>two<seq2seq4repair_space>wrong" ) ; <START_BUG> Map < String , Object > headerMapabbywinbters = parseHeader ( file ) ; <END_BUG> } private static long parseSignature ( RandomAccessFile file ) throws IOException { } private Map < String , Object > parseHeader ( RandomAccessFile file ) throws IOException { } private void parseCipher ( byte [ ] bytes ) { } private byte [ ] readBytes ( int length , RandomAccessFile file ) throws IOException { } public static void main ( String [ ] args ) throws IOException { } }

Fix:
Map < String , Object > headerMap = parseHeader ( file ) ;
Buggy code:
public class LstBuildConfigManagerTest extends AjdeTestCase { private BuildConfigManager buildConfigManager = new LstBuildConfigManager ( ) ; public LstBuildConfigManagerTest ( String name ) { } public static void main ( String [ ] args ) { } public static TestSuite suite ( ) { } public void testConfigParserErrorMessages ( ) { doSynchronousBuild ( "dir-entry.lst" ) ; List messages = NullIdeManager . getIdeManager ( ) . getCompilationSourceLineTasks ( ) ; NullIdeTaskListManager . SourceLineTask message = ( ( NullIdeTaskListManager . SourceLineTask ) ( messages . get ( 0 ) ) ) ; assertEquals ( message . getContainedMessage ( ) . getSourceLocation ( ) . getSourceFile ( ) . getAbsolutePath ( ) , openFile ( "dir-entry.lst" ) . getAbsolutePath ( ) ) ; doSynchronousBuild ( "bad-injar.lst" ) ; messages = NullIdeManager . getIdeManager ( ) . getCompilationSourceLineTasks ( ) ; message = ( ( NullIdeTaskListManager . SourceLineTask ) ( messages . get ( 0 ) ) ) ; <START_BUG> assertTrue ( ( ( message . getContainedMessage ( ) . getMessage ( ) . indexOf ( "bad<seq2seq4repair_space>inpath" ) ) != ( - 1 ) ) ) ; <END_BUG> } public void testErrorMessages ( ) throws IOException { } public void testNonExistentConfigFile ( ) throws IOException { } public void testFileRelativePathSameDir ( ) throws IOException { } protected void setUp ( ) throws Exception { } protected void tearDown ( ) throws Exception { } }

Fix:
assertTrue ( ( ( message . getContainedMessage ( ) . getMessage ( ) . indexOf ( "skipping<seq2seq4repair_space>missing,<seq2seq4repair_space>empty<seq2seq4repair_space>or<seq2seq4repair_space>corrupt<seq2seq4repair_space>inpath<seq2seq4repair_space>entry" ) ) != ( - 1 ) ) ) ;
Buggy code:
public class TextArea extends AbstractTextComponent { private static final long serialVersionUID = - 1323747673401786242L ; public TextArea ( final String name , final Serializable object ) { } public TextArea ( final String name , final Serializable object , final String expression ) { } protected final void onComponentTagBody ( final MarkupStream markupStream , final ComponentTag openTag ) { final String bodyContent ; if ( ( getInvalidInput ( ) ) == null ) { bodyContent = getModelObjectAsString ( ) ; } else { bodyContent = getInvalidInput ( ) ; } <START_BUG> replaceComponentTagBody ( markupStream , openTag , getModelObjectAsString ( ) ) ; <END_BUG> } }

Fix:
replaceComponentTagBody ( markupStream , openTag , bodyContent ) ;
Buggy code:
public final class RelativePathPrefixHandler extends AbstractMarkupFilter implements IComponentResolver { private static final long serialVersionUID = 1L ; private static final Logger log = LoggerFactory . getLogger ( RelativePathPrefixHandler . class ) ; public static final String WICKET_RELATIVE_PATH_PREFIX_CONTAINER_ID = "-relative_path_prefix" ; private static final String [ ] attributeNames = new String [ ] { "href" , "src" , "background" } ; public static final IBehavior RELATIVE_PATH_BEHAVIOR = new AbstractBehavior ( ) { private static final long serialVersionUID = 1L ; public void onComponentTag ( Component component , ComponentTag tag ) { } } ; public MarkupElement nextTag ( ) throws ParseException { } public boolean resolve ( MarkupContainer container , MarkupStream markupStream , ComponentTag tag ) { if ( RelativePathPrefixHandler . WICKET_RELATIVE_PATH_PREFIX_CONTAINER_ID . equals ( tag . getId ( ) ) ) { final Component wc ; String id = ( RelativePathPrefixHandler . WICKET_RELATIVE_PATH_PREFIX_CONTAINER_ID ) + ( container . getPage ( ) . getAutoIndex ( ) ) ; if ( tag . isOpenClose ( ) ) { wc = new WebComponent ( id ) ; } else { wc = new WebMarkupContainer ( id ) ; } <START_BUG> container . autoAdd ( wc ) ; <END_BUG> return true ; } return false ; } }

Fix:
container . autoAdd ( wc , markupStream ) ;
Buggy code:
public class ServerGroupDeploymentRemove extends AbstractModelUpdate < ServerGroupElement , ServerDeploymentActionResult > { private static final long serialVersionUID = 5773083013951607950L ; private final String uniqueName ; public ServerGroupDeploymentRemove ( final String uniqueName ) { } public String getUniqueName ( ) { } @ Override public ServerGroupDeploymentAdd getCompensatingUpdate ( ServerGroupElement original ) { } @ Override protected ServerModelDeploymentRemove getServerModelUpdate ( ) { <START_BUG> return new ServerModelDeploymentRemove ( uniqueName , true ) ; <END_BUG> } @ Override protected void applyUpdate ( ServerGroupElement element ) throws UpdateFailedException { } @ Override public Class < ServerGroupElement > getModelElementType ( ) { } }

Fix:
return new ServerModelDeploymentRemove ( uniqueName ) ;
Buggy code:
public class ExpungeFolderAction extends AbstractColumbaAction implements SelectionListener { public ExpungeFolderAction ( FrameMediator frameMediator ) { } public void actionPerformed ( ActionEvent evt ) { } public void selectionChanged ( SelectionChangedEvent e ) { if ( ( ( ( org . columba . mail . gui . tree . selection . TreeSelectionChangedEvent ) ( e ) ) . getSelected ( ) . length ) > 0 ) { AbstractFolder folder = ( ( org . columba . mail . gui . tree . selection . TreeSelectionChangedEvent ) ( e ) ) . getSelected ( ) [ 0 ] ; if ( folder != null ) { <START_BUG> FolderItem item = folder . getFolderItem ( ) ; <END_BUG> if ( folder instanceof VirtualFolder ) { setEnabled ( false ) ; } else { setEnabled ( true ) ; } } } else { setEnabled ( false ) ; } } }

Fix:
FolderItem item = folder . getConfiguration ( ) ;
Buggy code:
public class PubkeyListActivity extends ListActivity implements EventListener , FileChooserCallback { public static final String TAG = "ConnectBot.PubkeyListActivity" ; private static final int MAX_KEYFILE_SIZE = 8192 ; private static final int KEYTYPE_PUBLIC = 0 ; private static final int KEYTYPE_PRIVATE = 1 ; protected PubkeyDatabase pubkeydb ; private List < PubkeyBean > pubkeys ; protected ClipboardManager clipboard ; protected LayoutInflater inflater = null ; protected TerminalManager bound = null ; private MenuItem onstartToggle = null ; private MenuItem confirmUse = null ; private ServiceConnection connection = new ServiceConnection ( ) { public void onServiceConnected ( ComponentName className , IBinder service ) { } public void onServiceDisconnected ( ComponentName className ) { } } ; @ Override public void onStart ( ) { } @ Override public void onStop ( ) { } @ Override public void onCreate ( Bundle icicle ) { } protected static byte [ ] readRaw ( File file ) throws Exception { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { super . onCreateOptionsMenu ( menu ) ; MenuItem generatekey = menu . add ( pubkey_generate ) ; generatekey . setIcon ( ic_menu_manage ) ; generatekey . setIntent ( new Intent ( this , GeneratePubkeyActivity . class ) ) ; MenuItem importkey = menu . add ( pubkey_import ) ; importkey . setIcon ( ic_menu_upload ) ; importkey . setOnMenuItemClickListener ( new OnMenuItemClickListener ( ) { public boolean onMenuItemClick ( MenuItem item ) { <START_BUG> FileChooser . selectFile ( PubkeyListActivity . this , PubkeyListActivity . this , REQUEST_CODE_SELECT_FILE , getString ( file_chooser_select_file , getString ( for_key_import ) ) ) ; <END_BUG> return true ; } } ) ; return true ; } protected void handleAddKey ( final PubkeyBean pubkey ) { } protected void handleAddKey ( PubkeyBean pubkey , String password ) { } @ Override public void onCreateContextMenu ( ContextMenu menu , View v , ContextMenu . ContextMenuInfo menuInfo ) { } protected Handler updateHandler = new Handler ( ) { @ Override public void handleMessage ( Message msg ) { } } ; protected void updateList ( ) { } @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent intent ) { } private void readKeyFromFile ( File file ) { } private void saveKeyToFile ( final String keyString , final String nickName , int keyType ) { } public void fileSelected ( File f ) { } class PubkeyAdapter extends ArrayAdapter < PubkeyBean > { private List < PubkeyBean > pubkeys ; class ViewHolder { public TextView nickname ; public TextView caption ; public ImageView icon ; } public PubkeyAdapter ( Context context , List < PubkeyBean > pubkeys ) { } @ Override public View getView ( int position , View convertView , ViewGroup parent ) { } } }

Fix:
FileChooser . selectFile ( PubkeyListActivity . this , PubkeyListActivity . this , REQUEST_CODE_SELECT_FILE , getString ( file_chooser_select_file , getString ( select_for_key_import ) ) ) ;
Buggy code:
public class AssertTest extends TestCase { public void testAssertEqualsNaNFails ( ) { } public void testAssertNaNEqualsFails ( ) { } public void testAssertNaNEqualsNaNFails ( ) { } public void testAssertPosInfinityNotEqualsNegInfinity ( ) { } public void testAssertPosInfinityNotEquals ( ) { } public void testAssertPosInfinityEqualsInfinity ( ) { } public void testAssertNegInfinityEqualsInfinity ( ) { } public void testAssertEquals ( ) { } public void testAssertEqualsNull ( ) { } public void testAssertNull ( ) { } public void testAssertStringEquals ( ) { } public void testAssertNullNotEqualsString ( ) { } public void testAssertStringNotEqualsNull ( ) { } public void testAssertNullNotEqualsNull ( ) { } public void testAssertSame ( ) { } public void testAssertSameFails ( ) { } public void testFail ( ) { } public void testFailAssertNotNull ( ) { } public void testSucceedAssertNotNull ( ) { } public void testAssertFalse ( ) { } public void testAssertNotSame ( ) { } public void testAssertNotSameFails ( ) { } public void testAssertNotSameFailsNull ( ) { } public void testComparisonErrorMessage ( ) { ComparisonFailure failure = new ComparisonFailure ( "a" , "b" , "c" ) ; <START_BUG> assertEquals ( "a:<seq2seq4repair_space>expected:<b><seq2seq4repair_space>but<seq2seq4repair_space>was:<c>" , failure . getMessage ( ) ) ; <END_BUG> } public void testComparisonErrorStartSame ( ) { } public void testComparisonErrorEndSame ( ) { } public void testComparisonErrorSame ( ) { } public void testComparisonErrorStartAndEndSame ( ) { } public void testComparisonErrorStartSameComplete ( ) { } public void testComparisonErrorEndSameComplete ( ) { } public void testComparisonErrorOverlapingMatches ( ) { } public void testComparisonErrorOverlapingMatches2 ( ) { } public void testComparisonErrorWithActualNull ( ) { } public void testComparisonErrorWithExpectedNull ( ) { } }

Fix:
assertEquals ( "a<seq2seq4repair_space>expected:<b><seq2seq4repair_space>but<seq2seq4repair_space>was:<c>" , failure . getMessage ( ) ) ;