nus-yam/ex-repair huggingface dataset:
Buggy code:
@ Service public class DefaultCloudbreakEventService implements CloudbreakEventService { private static final Logger LOGGER = LoggerFactory . getLogger ( DefaultCloudbreakEventService . class ) ; @ Inject private StackRepository stackRepository ; @ Inject private CloudbreakEventRepository eventRepository ; @ Inject private EventBus reactor ; @ Override public void fireCloudbreakEvent ( Long stackId , String eventType , String eventMessage ) { } @ Override public void fireCloudbreakInstanceGroupEvent ( Long stackId , String eventType , String eventMessage , String instanceGroupName ) { } @ Override public CloudbreakEvent createStackEvent ( CloudbreakEventData eventData ) { } private String getInstanceGroupNameFromEvent ( CloudbreakEventData eventData ) { } @ Override public List < CloudbreakEvent > cloudbreakEvents ( String owner , Long since ) { } private CloudbreakEvent createStackEvent ( Stack stack , String eventType , String eventMessage , String instanceGroupName ) { CloudbreakEvent stackEvent = new CloudbreakEvent ( ) ; stackEvent . setEventTimestamp ( Calendar . getInstance ( ) . getTime ( ) ) ; stackEvent . setEventMessage ( eventMessage ) ; stackEvent . setEventType ( eventType ) ; stackEvent . setOwner ( stack . getOwner ( ) ) ; stackEvent . setAccount ( stack . getAccount ( ) ) ; stackEvent . setStackId ( stack . getId ( ) ) ; stackEvent . setStackStatus ( stack . getStatus ( ) ) ; stackEvent . setStackName ( stack . getName ( ) ) ; stackEvent . setNodeCount ( stack . getRunningInstanceMetaData ( ) . size ( ) ) ; stackEvent . setRegion ( stack . getRegion ( ) ) ; <START_BUG> stackEvent . setCloud ( stack . cloudPlatform ( ) . name ( ) ) ; <END_BUG> populateClusterData ( stackEvent , stack ) ; if ( instanceGroupName != null ) { stackEvent . setInstanceGroup ( instanceGroupName ) ; } return stackEvent ; } private void populateClusterData ( CloudbreakEvent stackEvent , Stack stack ) { } }

Fix:
stackEvent . setCloud ( ( ( stack . getCredential ( ) ) == null ? "" : stack . cloudPlatform ( ) . name ( ) ) ) ;
Buggy code:
final class ClobAsciiStream extends OutputStream { private final Writer writer ; private final char [ ] buffer = new char [ 1024 ] ; ClobAsciiStream ( Writer writer ) { } public void write ( int b ) throws IOException { } public void write ( byte [ ] b , int off , int len ) throws IOException { while ( len > 0 ) { int clen = Math . min ( len , buffer . length ) ; for ( int i = 0 ; i < clen ; i ++ ) { <START_BUG> buffer [ i ] = ( ( char ) ( b [ ( off + i ) ] ) ) ; <END_BUG> } writer . write ( buffer , 0 , clen ) ; off += clen ; len -= clen ; } } }

Fix:
buffer [ i ] = ( ( char ) ( ( b [ ( off + i ) ] ) & 255 ) ) ;
Buggy code:
public class LambdaContainer extends BorderPane implements ComponentLoader , WrappedContainer { @ FXML private Pane argSpace ; @ FXML private Pane resSpace ; private DefinitionBlock wrapper ; private List < BinderAnchor > args ; private ResultAnchor res ; private boolean freshAnchorTypes ; private boolean updateInProgress ; protected Set < Block > attachedBlocks ; public LambdaContainer ( DefinitionBlock wrapper , int arity ) { } public LambdaContainer ( DefinitionBlock wrapper , String name , Type signature ) { } @ Override public void refreshAnchorTypes ( ) { } protected Type getLambdaType ( ) { } @ Override public final void handleConnectionChanges ( boolean finalPhase ) { } public Pair < Expression , Set < OutputAnchor > > getLocalExpr ( ) { } public void invalidateVisualState ( ) { } @ Override public void attachBlock ( Block block ) { } @ Override public void removeBlock ( Block block ) { } @ Override public Stream < Block > getAttachedBlocks ( ) { } @ Override public BlockContainer getParentContainer ( ) { } @ Override public void deleteAllLinks ( ) { this . args . forEach ( OutputAnchor :: removeConnections ) ; this . res . removeConnections ( ) ; <START_BUG> this . attachedBlocks . forEach ( ( block ) -> block . moveIntoContainer ( this . getParentContainer ( ) ) ) ; <END_BUG> } @ Override public Bounds getBoundsInScene ( ) { } }

Fix:
new java . util . ArrayList ( this . attachedBlocks ) . forEach ( ( block ) -> block . moveIntoContainer ( this . getParentContainer ( ) ) ) ;
Buggy code:
public class UpdateHandler { FileManager fm = new FileManager ( ) ; public String getMd5 ( ) { } public String getmd5ofFile ( String file ) { } public boolean checkforUpdate ( ) { } public void doUpdate ( ) { <START_BUG> if ( ! ( checkforUpdate ( ) ) ) { <END_BUG> JFrame updateFrame = new JFrame ( "Update" ) ; updateFrame . setLayout ( new FlowLayout ( ) ) ; JLabel updatetext = new JLabel ( "There's<seq2seq4repair_space>an<seq2seq4repair_space>update<seq2seq4repair_space>available.<seq2seq4repair_space>Please<seq2seq4repair_space>download<seq2seq4repair_space>it<seq2seq4repair_space>from<seq2seq4repair_space>http:////files.tuximail.de//software" ) ; updateFrame . setSize ( new Dimension ( 700 , 100 ) ) ; updateFrame . add ( updatetext ) ; updateFrame . setVisible ( true ) ; fm . deleteFile ( "passer.md5" ) ; } } No newline ; at end ; of file ; }

Fix:
if ( checkforUpdate ( ) ) {
Buggy code:
public final class ScreenSwitcherState { private final List < Screen > screens ; private final Map < Screen , ScreenPopListener > popListenerMap ; public ScreenSwitcherState ( @ NonNull List < Screen > screens ) { } public void registerPopListener ( @ NonNull Screen screen , @ NonNull ScreenPopListener popListener ) { } public int indexOf ( @ NonNull Screen screen ) { } public int screenCount ( ) { } List < Screen > getScreens ( ) { } void addScreen ( Screen screen ) { } boolean handlesPop ( Screen screen ) { ScreenPopListener popListener = popListenerMap . get ( screen ) ; boolean handlesPop = ( popListener != null ) && ( popListener . onScreenPop ( screen ) ) ; <START_BUG> if ( handlesPop ) { <END_BUG> popListenerMap . remove ( screen ) ; } return handlesPop ; } }

Fix:
if ( ! handlesPop ) {
Buggy code:
public class RemoveFolderAction extends FrameAction implements SelectionListener { public RemoveFolderAction ( AbstractFrameController frameController ) { } public void actionPerformed ( ActionEvent evt ) { <START_BUG> FolderCommandReference [ ] r = ( ( FolderCommandReference [ ] ) ( frameController . getSelectionManager ( ) . getSelection ( "mail.tree" ) ) ) ; <END_BUG> FolderTreeNode folder = r [ 0 ] . getFolder ( ) ; if ( ! ( folder . isLeaf ( ) ) ) { JOptionPane . showMessageDialog ( null , "Your<seq2seq4repair_space>can<seq2seq4repair_space>only<seq2seq4repair_space>remove<seq2seq4repair_space>leaf<seq2seq4repair_space>folders!" ) ; return ; } else { int n = JOptionPane . showConfirmDialog ( null , MailResourceLoader . getString ( "tree" , "tree" , "folder_warning" ) , MailResourceLoader . getString ( "tree" , "tree" , "folder_warning_title" ) , JOptionPane . YES_NO_OPTION ) ; if ( n == ( JOptionPane . NO_OPTION ) ) { return ; } } processor . addOp ( new org . columba . mail . folder . command . RemoveFolderCommand ( r ) ) ; } public void selectionChanged ( SelectionChangedEvent e ) { } }

Fix:
FolderCommandReference [ ] r = ( ( FolderCommandReference [ ] ) ( frameMediator . getSelectionManager ( ) . getSelection ( "mail.tree" ) ) ) ;
Buggy code:
public class TableItem extends Item { Table parent ; String [ ] strings ; Image [ ] images ; boolean checked ; boolean grayed ; boolean cached ; Color foreground ; Color background ; Color [ ] cellForeground ; Color [ ] cellBackground ; Font font ; Font [ ] cellFont ; int width = - 1 ; public TableItem ( Table parent , int style ) { } public TableItem ( Table parent , int style , int index ) { } TableItem ( Table parent , int style , int index , boolean create ) { } static Table checkNull ( Table control ) { } int calculateWidth ( int index , GC gc ) { } protected void checkSubclass ( ) { } void clear ( ) { } void destroyWidget ( ) { } public Color getBackground ( ) { } public Color getBackground ( int index ) { } public Rectangle getBounds ( ) { } public Rectangle getBounds ( int index ) { } public boolean getChecked ( ) { } public Font getFont ( ) { } public Font getFont ( int index ) { } public Color getForeground ( ) { } public Color getForeground ( int index ) { } public boolean getGrayed ( ) { } public Image getImage ( ) { } public Image getImage ( int index ) { } public Rectangle getImageBounds ( int index ) { } public int getImageIndent ( ) { } String getNameText ( ) { } public Table getParent ( ) { } public String getText ( ) { } public String getText ( int index ) { } public Rectangle getTextBounds ( int index ) { } void redraw ( int propertyID ) { } void releaseHandle ( ) { } void releaseParent ( ) { } void releaseWidget ( ) { } public void setBackground ( Color color ) { } public void setBackground ( int index , Color color ) { } public void setChecked ( boolean checked ) { } void setChecked ( boolean checked , boolean notify ) { this . checked = checked ; cached = true ; redraw ( CHECK_COLUMN_ID ) ; if ( notify ) { Event event = new Event ( ) ; event . item = this ; event . detail = SWT . CHECK ; <START_BUG> parent . postEvent ( Selection , event ) ; <END_BUG> } } public void setFont ( Font font ) { } public void setFont ( int index , Font font ) { } public void setForeground ( Color color ) { } public void setForeground ( int index , Color color ) { } public void setGrayed ( boolean grayed ) { } public void setImage ( Image [ ] images ) { } public void setImage ( int index , Image image ) { } public void setImage ( Image image ) { } public void setImageIndent ( int indent ) { } public void setText ( String [ ] strings ) { } public void setText ( int index , String string ) { } public void setText ( String string ) { } }

Fix:
parent . sendSelectionEvent ( Selection , event , false ) ;
Buggy code:
public class PerlInternalParser { public static final double PROBLEMATIC_FILE_TIME_THRESHOLD = 0.5 ; private static int sum ; private static FileFilter fileFilter = new FileFilter ( ) ; private static double totalFileCount = 0 ; private static Project project ; public static void start ( Project project ) { } public static void parseAllSources ( ProgressIndicator progressIndicator ) { } private static void firstPass ( ProgressIndicator progressIndicator ) { } private static void secondPass ( ProgressIndicator progressIndicator ) { } private static void parseFiles ( File [ ] files , ProgressIndicator progressIndicator ) { } public static void parse ( String filePath ) { } public static void parse ( String filePath , String fileContent ) { } private static void addPendingPackageParent ( Package packageObj , String packageParent ) { } private static void addImportedPackagesFromContent ( Package packageObj , String content ) { } private static void addImportedSubsFromContent ( Package packageObj , String content ) { ArrayList < ImportedSub > importedSubs = new ArrayList < ImportedSub > ( ) ; <START_BUG> Matcher packageNameRegex = Utils . applyRegex ( "(use\\s+((\\w|::)+)\\s*qw\\s*[(//]((\\s*([\\:\\$\\@\\%A-Za-z0-9_-]+)+\\s{0,256}(#.*)?)+)[)//]\\s{0,256};)+" , content ) ; <END_BUG> while ( ( packageNameRegex . find ( ) ) && ( ! ( packageNameRegex . group ( 2 ) . isEmpty ( ) ) ) ) { String subContainingPackage = packageNameRegex . group ( 2 ) ; String [ ] subNames = packageNameRegex . group ( 4 ) . trim ( ) . split ( "\\s+" ) ; for ( int i = 0 ; i < ( subNames . length ) ; i ++ ) { if ( Utils . verbose ) { Utils . print ( ( "imported<seq2seq4repair_space>sub:<seq2seq4repair_space>" + ( subNames [ i ] ) ) ) ; } importedSubs . add ( new ImportedSub ( subNames [ i ] , subContainingPackage ) ) ; } } packageObj . setImportedSubs ( importedSubs ) ; } private static void addSubsFromContent ( Package packageObj , String content ) { } private static ArrayList < Argument > getArgumentsFromContent ( String content ) { } private static String getPackageNameFromContent ( String content ) { } private static String getPackageParentFromContent ( String content ) { } public static void clear ( ) { } }

Fix:
Matcher packageNameRegex = Utils . applyRegex ( "(use\\s+((\\w|::)+)\\s*qw\\s*[(//]((\\s*([\\:\\$\\@\\%A-Za-z0-9_-]+)+\\s{0,256}(#.*)?)+)[)//])+" , content ) ;
Buggy code:
public class QualifiedSuperReference extends QualifiedThisReference { public QualifiedSuperReference ( TypeReference name , int pos , int sourceEnd ) { } public boolean isSuper ( ) { } public boolean isThis ( ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public TypeBinding resolveType ( BlockScope scope ) { if ( ( ( this . bits ) & ( ASTNode . ParenthesizedMASK ) ) != 0 ) { scope . problemReporter ( ) . invalidParenthesizedExpression ( this ) ; return null ; } super . resolveType ( scope ) ; if ( ( currentCompatibleType ) == null ) return null ; <START_BUG> if ( ( currentCompatibleType . id ) == ( T_Object ) ) { <END_BUG> scope . problemReporter ( ) . cannotUseSuperInJavaLangObject ( this ) ; return null ; } return this . resolvedType = currentCompatibleType . superclass ( ) ; } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } }

Fix:
if ( ( currentCompatibleType . id ) == ( TypeIds . T_JavaLangObject ) ) {
Buggy code:
final class SimpleStreamingAsyncClientHttpRequest extends AbstractAsyncClientHttpRequest { private final HttpURLConnection connection ; private final int chunkSize ; private OutputStream body ; private final boolean outputStreaming ; private final AsyncListenableTaskExecutor taskExecutor ; SimpleStreamingAsyncClientHttpRequest ( HttpURLConnection connection , int chunkSize , boolean outputStreaming , AsyncListenableTaskExecutor taskExecutor ) { } @ Override public HttpMethod getMethod ( ) { } @ Override public URI getURI ( ) { } @ Override protected OutputStream getBodyInternal ( HttpHeaders headers ) throws IOException { } private void writeHeaders ( HttpHeaders headers ) { } @ Override protected ListenableFuture < ClientHttpResponse > executeInternal ( final HttpHeaders headers ) throws IOException { <START_BUG> return taskExecutor . submitListenable ( new Callable < ClientHttpResponse > ( ) { <END_BUG> @ Override public ClientHttpResponse call ( ) throws Exception { try { if ( ( body ) != null ) { body . close ( ) ; } else { writeHeaders ( headers ) ; connection . connect ( ) ; } } catch ( IOException ex ) { } return new SimpleClientHttpResponse ( connection ) ; } } ) ; } }

Fix:
return this . taskExecutor . submitListenable ( new Callable < ClientHttpResponse > ( ) {
Buggy code:
public class NativeManagementServices { private static final int heartbeatInterval = 15000 ; private static final int WINDOW_SIZE = Configuration . WINDOW_SIZE ; private static final OptionMap SERVICE_OPTIONS = OptionMap . create ( TRANSMIT_WINDOW_SIZE , NativeManagementServices . WINDOW_SIZE , RECEIVE_WINDOW_SIZE , NativeManagementServices . WINDOW_SIZE ) ; public static final OptionMap CONNECTION_OPTIONS = OptionMap . create ( HEARTBEAT_INTERVAL , NativeManagementServices . heartbeatInterval , READ_TIMEOUT , 45000 ) ; static synchronized void installRemotingServicesIfNotInstalled ( final ServiceTarget serviceTarget , final String hostName , final ServiceVerificationHandler verificationHandler , final List < ServiceController < ? > > newControllers , final ServiceRegistry serviceContainer , boolean onDemand ) { if ( ( serviceContainer . getService ( MANAGEMENT_ENDPOINT ) ) == null ) { ManagementChannelRegistryService . addService ( serviceTarget , MANAGEMENT_ENDPOINT ) ; <START_BUG> ManagementRemotingServices . installRemotingEndpoint ( serviceTarget , MANAGEMENT_ENDPOINT , hostName , MANAGEMENT , NativeManagementServices . CONNECTION_OPTIONS , verificationHandler , newControllers ) ; <END_BUG> ManagementRemotingServices . installManagementChannelOpenListenerService ( serviceTarget , MANAGEMENT_ENDPOINT , SERVER_CHANNEL , SERVICE_NAME , NativeManagementServices . SERVICE_OPTIONS , verificationHandler , newControllers , onDemand ) ; ManagementRemotingServices . installManagementChannelServices ( serviceTarget , MANAGEMENT_ENDPOINT , new ModelControllerClientOperationHandlerFactoryService ( ) , DomainModelControllerService . SERVICE_NAME , MANAGEMENT_CHANNEL , verificationHandler , newControllers ) ; RemotingConnectorService . addService ( serviceTarget , verificationHandler ) ; } } }

Fix:
ManagementRemotingServices . installRemotingManagementEndpoint ( serviceTarget , MANAGEMENT_ENDPOINT , hostName , MANAGEMENT , NativeManagementServices . CONNECTION_OPTIONS , verificationHandler , newControllers ) ;
Buggy code:
public class DocumentMatch { private final String documentId ; private Double score = - 1.0 ; private List < FieldMatch > fieldMatches = new ArrayList < > ( ) ; public DocumentMatch ( String documentId ) { } public String getDocumentId ( ) { } public Double getScore ( ) { } <START_BUG> public void setScore ( double score ) { <END_BUG> this . score = score ; } public void addFieldMatch ( final FieldMatch fieldMatch ) { } public List < FieldMatch > getFieldMatches ( ) { } }

Fix:
public void setScore ( Double score ) {
Buggy code:
public class ApplicationSettingsTest extends TestCase { @ After public void detachThreadContext ( ) { } public void testFrameworkVersion ( ) { } public void testExceptionOnMissingResourceDefaultValue ( ) throws Exception { } public void testExceptionOnMissingResourceSetsCorrectly ( ) throws Exception { } public void testUseDefaultOnMissingResourceDefaultValue ( ) throws Exception { } public void testUseDefaultOnMissingResourceSetsCorrectly ( ) throws Exception { } public void testDefaultStringResourceLoaderSetup ( ) { } public void testOverrideStringResourceLoaderSetup ( ) { } public void testLocalizer ( ) { MockApplication dummy = new MockApplication ( ) ; dummy . setName ( "test-app" ) ; dummy . setServletContext ( new org . apache . wicket . protocol . http . mock . MockServletContext ( dummy , "" ) ) ; <START_BUG> dummy . set ( ) ; <END_BUG> dummy . initApplication ( ) ; Localizer localizer = dummy . getResourceSettings ( ) . getLocalizer ( ) ; Assert . assertNotNull ( "Localizer<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>available" , localizer ) ; } }

Fix:
ThreadContext . setApplication ( dummy ) ;
Buggy code:
public class BuildArgParserTestCase extends TestCase { private BuildArgParser parser = new BuildArgParser ( ) ; private static final String TEST_DIR = ( ( "testdata" + ( File . separator ) ) + "ajc" ) + ( File . separator ) ; private MessageWriter messageWriter = new MessageWriter ( new PrintWriter ( System . out ) , false ) ; public BuildArgParserTestCase ( String name ) { } public void testDefaultClasspathAndTargetCombo ( ) throws InvalidInputException { } public void testAjOptions ( ) throws InvalidInputException { } public void testAspectpath ( ) throws InvalidInputException { } public void testInJars ( ) throws InvalidInputException { } public void testBadInJars ( ) throws InvalidInputException { } public void testMultipleSourceRoots ( ) throws InvalidInputException { } public void testSourceRootDir ( ) throws InvalidInputException { } public void testBadSourceRootDir ( ) throws InvalidInputException { } public void testSourceRootDirWithFiles ( ) throws InvalidInputException { } public void testExtDirs ( ) throws InvalidInputException { } public void testBootclasspath ( ) throws InvalidInputException { } public void testOutputJar ( ) throws InvalidInputException { } public void testCombinedOptions ( ) throws InvalidInputException { } public void testOutputDirectorySetting ( ) throws InvalidInputException { } public void testClasspathSetting ( ) throws InvalidInputException { } public void testArgInConfigFile ( ) throws InvalidInputException { } public void testXlint ( ) throws InvalidInputException { AjdtCommand command = new AjdtCommand ( ) ; AjBuildConfig config = parser . genBuildConfig ( new String [ ] { "-Xlint" } , messageWriter ) ; assertTrue ( "" , config . getLintMode ( ) . equals ( AJLINT_DEFAULT ) ) ; config = parser . genBuildConfig ( new String [ ] { "-Xlint:warn" } , messageWriter ) ; assertTrue ( "" , config . getLintMode ( ) . equals ( AJLINT_WARN ) ) ; config = parser . genBuildConfig ( new String [ ] { "-Xlint:error" } , messageWriter ) ; assertTrue ( "" , config . getLintMode ( ) . equals ( AJLINT_ERROR ) ) ; config = parser . genBuildConfig ( new String [ ] { "-Xlint:ignore" } , messageWriter ) ; <START_BUG> assertTrue ( "" , config . getLintMode ( ) . equals ( AJLINT_INGORE ) ) ; <END_BUG> } public void testXlintfile ( ) throws InvalidInputException { } public void testOptions ( ) throws InvalidInputException { } public void testLstFileExpansion ( ) throws FileNotFoundException , IOException , InvalidInputException { } public void testAjFileInclusion ( ) throws InvalidInputException { } protected void setUp ( ) throws Exception { } protected void tearDown ( ) throws Exception { } }

Fix:
assertTrue ( "" , config . getLintMode ( ) . equals ( AJLINT_IGNORE ) ) ;
Buggy code:
public class HierarchyDynamicMBean extends AbstractDynamicMBean implements NotificationBroadcaster , HierarchyEventListener { static final String ADD_APPENDER = "addAppender." ; static final String THRESHOLD = "threshold" ; private MBeanConstructorInfo [ ] dConstructors = new MBeanConstructorInfo [ 1 ] ; private MBeanOperationInfo [ ] dOperations = new MBeanOperationInfo [ 1 ] ; private Vector vAttributes = new Vector ( ) ; private String dClassName = this . getClass ( ) . getName ( ) ; private String dDescription = "This<seq2seq4repair_space>MBean<seq2seq4repair_space>acts<seq2seq4repair_space>as<seq2seq4repair_space>a<seq2seq4repair_space>management<seq2seq4repair_space>facade<seq2seq4repair_space>for<seq2seq4repair_space>org.apache.log4j.Hierarchy." ; private NotificationBroadcasterSupport nbs = new NotificationBroadcasterSupport ( ) ; private LoggerRepository hierarchy ; private static Logger log = Logger . getLogger ( HierarchyDynamicMBean . class ) ; public HierarchyDynamicMBean ( ) { } private void buildDynamicMBeanInfo ( ) { } public ObjectName addLoggerMBean ( String name ) { <START_BUG> Logger cat = Logger . exists ( name ) ; <END_BUG> if ( cat != null ) { return addLoggerMBean ( cat ) ; } else { return null ; } } ObjectName addLoggerMBean ( Logger logger ) { } public void addNotificationListener ( NotificationListener listener , NotificationFilter filter , Object handback ) { } protected Logger getLogger ( ) { } public MBeanInfo getMBeanInfo ( ) { } public MBeanNotificationInfo [ ] getNotificationInfo ( ) { } public Object invoke ( String operationName , Object [ ] params , String [ ] signature ) throws MBeanException , ReflectionException { } public Object getAttribute ( String attributeName ) throws AttributeNotFoundException , MBeanException , ReflectionException { } public void addAppenderEvent ( Category logger , Appender appender ) { } public void removeAppenderEvent ( Category cat , Appender appender ) { } public void postRegister ( Boolean registrationDone ) { } public void removeNotificationListener ( NotificationListener listener ) throws ListenerNotFoundException { } public void setAttribute ( Attribute attribute ) throws AttributeNotFoundException , InvalidAttributeValueException , MBeanException , ReflectionException { } }

Fix:
Logger cat = LogManager . exists ( name ) ;
Buggy code:
public abstract class AbstractAddJndiHandler implements OperationStepHandler { public static final String ADD_JNDI = "add-jndi" ; protected static final SimpleAttributeDefinition JNDI_BINDING = new org . jboss . as . controller . SimpleAttributeDefinitionBuilder ( org . jboss . as . messaging . CommonAttributes . JNDI_BINDING , org . jboss . dmr . ModelType . STRING ) . setAllowNull ( false ) . setValidator ( new StringLengthValidator ( 1 ) ) . build ( ) ; @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { AbstractAddJndiHandler . JNDI_BINDING . validateOperation ( operation ) ; String jndiName = AbstractAddJndiHandler . JNDI_BINDING . resolveModelAttribute ( context , operation ) . asString ( ) ; <START_BUG> final ModelNode entries = context . readResourceForUpdate ( EMPTY_ADDRESS ) . getModel ( ) . get ( DESTINATION . getName ( ) ) ; <END_BUG> for ( ModelNode entry : entries . asList ( ) ) { if ( jndiName . equals ( entry . asString ( ) ) ) { throw new OperationFailedException ( new ModelNode ( ) . set ( MessagingMessages . MESSAGES . jndiNameAlreadyRegistered ( jndiName ) ) ) ; } } entries . add ( jndiName ) ; if ( context . isNormalServer ( ) ) { context . addStep ( new OperationStepHandler ( ) { @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { final ServiceName hqServiceName = MessagingServices . getHornetQServiceName ( PathAddress . pathAddress ( operation . get ( OP_ADDR ) ) ) ; ServiceController < ? > hqService = context . getServiceRegistry ( false ) . getService ( hqServiceName ) ; if ( hqService != null ) { HornetQServer hqServer = HornetQServer . class . cast ( hqService . getValue ( ) ) ; String resourceName = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) . getLastElement ( ) . getValue ( ) ; String jndiName = AbstractAddJndiHandler . JNDI_BINDING . resolveModelAttribute ( context , operation ) . asString ( ) ; addJndiNameToControl ( jndiName , resourceName , hqServer , context ) ; } if ( ! ( context . hasFailureDescription ( ) ) ) { context . getResult ( ) ; } if ( ( context . completeStep ( ) ) != ( ResultAction . KEEP ) ) { } } } , RUNTIME ) ; } context . completeStep ( ) ; } protected abstract void addJndiNameToControl ( String toAdd , String resourceName , HornetQServer server , OperationContext context ) { } }

Fix:
final ModelNode entries = context . readResourceForUpdate ( EMPTY_ADDRESS ) . getModel ( ) . get ( DESTINATION_ENTRIES . getName ( ) ) ;
Buggy code:
public class EndpointConnectionManager extends ConnectionManagerSupport implements BeanFactoryAware { private final Endpoint endpoint ; private final BeanCreatingHandlerProvider < Endpoint > endpointProvider ; private final Builder configBuilder = Builder . create ( ) ; private WebSocketContainer webSocketContainer = ContainerProvider . getWebSocketContainer ( ) ; private Session session ; private TaskExecutor taskExecutor = new SimpleAsyncTaskExecutor ( "EndpointConnectionManager-" ) ; public EndpointConnectionManager ( Endpoint endpoint , String uriTemplate , Object ... uriVariables ) { } public EndpointConnectionManager ( Class < ? extends Endpoint > endpointClass , String uriTemplate , Object ... uriVars ) { } public void setSupportedProtocols ( String ... protocols ) { } public void setExtensions ( Extension ... extensions ) { } public void setEncoders ( List < Class < ? extends Encoder > > encoders ) { } public void setDecoders ( List < Class < ? extends Decoder > > decoders ) { } public void setConfigurator ( Configurator configurator ) { } public void setWebSocketContainer ( WebSocketContainer webSocketContainer ) { } public WebSocketContainer getWebSocketContainer ( ) { } @ Override public void setBeanFactory ( BeanFactory beanFactory ) throws BeansException { } public void setTaskExecutor ( TaskExecutor taskExecutor ) { <START_BUG> Assert . notNull ( taskExecutor , "taskExecutor<seq2seq4repair_space>is<seq2seq4repair_space>required" ) ; <END_BUG> this . taskExecutor = taskExecutor ; } public TaskExecutor getTaskExecutor ( ) { } @ Override protected void openConnection ( ) { } @ Override protected void closeConnection ( ) throws Exception { } @ Override protected boolean isConnected ( ) { } }

Fix:
Assert . notNull ( taskExecutor , "TaskExecutor<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ;
Buggy code:
public class UserTester { private User u ; private User r ; private Library lib ; @ Before public void setUp ( ) { } @ Test public void checkName ( ) { } @ Test public void checkID ( ) { } @ Test public void registerLibrary ( ) { } @ Test public void getBooksBorrowed ( ) { Library lib = new LibraryImpl ( "Birkbeck" ) ; u . register ( lib ) ; lib . addBook ( "Java<seq2seq4repair_space>is<seq2seq4repair_space>awesome" , "Mayer" ) ; lib . addBook ( "Programming<seq2seq4repair_space>rocks" , "Miller" ) ; assertEquals ( u . getBooksBorrowed ( ) . toString ( ) , "[]" ) ; u . borrowBook ( "Java<seq2seq4repair_space>is<seq2seq4repair_space>awesome" ) ; u . borrowBook ( "Programming<seq2seq4repair_space>rocks" ) ; <START_BUG> assertEquals ( u . getBooksBorrowed ( ) . toString ( ) , "[Java<seq2seq4repair_space>is<seq2seq4repair_space>awesome,<seq2seq4repair_space>Programming<seq2seq4repair_space>rocks,<seq2seq4repair_space>]" ) ; <END_BUG> } }

Fix:
assertEquals ( u . getBooksBorrowed ( ) . toString ( ) , "[Java<seq2seq4repair_space>is<seq2seq4repair_space>awesome,<seq2seq4repair_space>Programming<seq2seq4repair_space>rocks]" ) ;
Buggy code:
public class ElasticSearchAutoScaleStatsCollector extends AutoScaleStatsCollector implements Configurable { protected TransportClient elasticSearchClient ; private static final ConfigKey < String > ElasticSearchHost = new ConfigKey ( "Advanced" , String . class , "autoscale.elasticsearch.host" , null , "Elastic<seq2seq4repair_space>search<seq2seq4repair_space>server<seq2seq4repair_space>host<seq2seq4repair_space>name" , true , Scope . Global ) ; private static final ConfigKey < Integer > ElasticSearchPort = new ConfigKey ( "Advanced" , Integer . class , "autoscale.elasticsearch.port" , null , "Elastic<seq2seq4repair_space>search<seq2seq4repair_space>server<seq2seq4repair_space>transport<seq2seq4repair_space>module<seq2seq4repair_space>port" , true , Scope . Global ) ; private static final ConfigKey < String > ElasticSearchClusterName = new ConfigKey ( "Advanced" , String . class , "autoscale.elasticsearch.cluster" , null , "Elastic<seq2seq4repair_space>search<seq2seq4repair_space>server<seq2seq4repair_space>cluster<seq2seq4repair_space>name" , true , Scope . Global ) ; private static final ConfigKey < String > ElasticSearchIndexName = new ConfigKey ( "Advanced" , String . class , "autoscale.elasticsearch.index" , null , "Elastic<seq2seq4repair_space>search<seq2seq4repair_space>index<seq2seq4repair_space>name" , true , Scope . Global ) ; public static final Logger s_logger = Logger . getLogger ( ElasticSearchAutoScaleStatsCollector . class . getName ( ) ) ; public ElasticSearchAutoScaleStatsCollector ( ) { } @ Override public Map < String , Double > retrieveMetrics ( AutoScaleVmGroup asGroup , List < VMInstanceVO > vmList ) { } <START_BUG> private double getStatAverage ( SearchResponse response ) { <END_BUG> double average = ( ( org . elasticsearch . search . aggregations . metrics . avg . InternalAvg ) ( response . getAggregations ( ) . asMap ( ) . get ( "counter_average" ) ) ) . value ( ) ; return average >= 0.0 ? average : null ; } private List < String > getHostNames ( List < VMInstanceVO > vmList ) { } private SearchResponse queryForStats ( List < String > hostNames , String counterName , Integer duration ) { } private boolean connectionIsSet ( ) { } private void buildConnection ( ) { } @ Override public String getConfigComponentName ( ) { } @ Override public ConfigKey < ? > [ ] getConfigKeys ( ) { } }

Fix:
private Double getStatAverage ( SearchResponse response ) {
Buggy code:
public class Game { private int colorRandom = 4 ; private int letterRandom = 4 ; private int gameodeRandom ; private long millis ; private long time ; private long averageScore ; private boolean notFailed = true ; private Input input ; private Player player ; public void startGame ( Player newPlayer ) { } public void resetGame ( ) { } public void changeGameMode ( ) { } public int createRandomNumber ( int oldRandom ) { } private void checkIfLost ( ) { } private void continueGame ( ) { } private void gameIsOver ( ) { } public void startMillis ( ) { } public void stopMillis ( ) { } public int getCurrentPlayerScore ( ) { } public String getNameOfCurrentPlayer ( ) { } public void setFinalScore ( int finalScore ) { <START_BUG> player . setScoreProperty ( finalScore ) ; <END_BUG> } public int getColorRandom ( ) { } public void setColorRandom ( int colorRandom ) { } public int getLetterRandom ( ) { } public void setLetterRandom ( int letterRandom ) { } public int getGameodeRandom ( ) { } public void setGameodeRandom ( int gameodeRandom ) { } public long getMillis ( ) { } public void setMillis ( long millis ) { } public long getTime ( ) { } public void setTime ( long time ) { } public long getAverageScore ( ) { } public void setAverageScore ( long time , int counter ) { } public boolean isNotFailed ( ) { } public void setNotFailed ( boolean notFailed ) { } public void setPlayer ( Player player ) { } public Input getInput ( ) { } public void setInput ( Input input ) { } No newline ; at end ; of file ; }

Fix:
player . setScore ( finalScore ) ;
Buggy code:
public class CorrectionEngine implements ProblemReasons { protected int correctionStart ; protected int correctionEnd ; protected int prefixLength ; protected ICompilationUnit compilationUnit ; protected ICorrectionRequestor correctionRequestor ; protected static final int CLASSES = 1 ; protected static final int INTERFACES = 2 ; protected static final int IMPORT = 4 ; protected static final int METHOD = 8 ; protected static final int FIELD = 16 ; protected static final int LOCAL = 32 ; protected int filter ; public CorrectionEngine ( Map setting ) { } public void computeCorrections ( IMarker marker , ICompilationUnit targetUnit , int positionOffset , ICorrectionRequestor requestor ) throws JavaModelException { } public void computeCorrections ( IProblem problem , ICompilationUnit targetUnit , ICorrectionRequestor requestor ) throws JavaModelException { } private void computeCorrections ( ICompilationUnit unit , int id , int start , int end , String [ ] arguments , ICorrectionRequestor requestor ) { } private void correct ( char [ ] argument ) { } protected CompletionRequestor completionRequestor = new CompletionRequestor ( ) { public void accept ( CompletionProposal proposal ) { } } ; public static String [ ] getAllWarningTokens ( ) { } public static String [ ] getProblemArguments ( IMarker problemMarker ) { } public static String getWarningToken ( int problemID ) { <START_BUG> long irritant = ProblemReporter . getIrritant ( problemID ) ; <END_BUG> if ( irritant != 0 ) { return CompilerOptions . warningTokenFromIrritant ( irritant ) ; } return null ; } }

Fix:
int irritant = ProblemReporter . getIrritant ( problemID ) ;
Buggy code:
public class XMPPRoomNamespace extends Namespace { private static final long serialVersionUID = 4348545761410397583L ; private static final String XMPP_ROOM_PROTOCOL = "xmpp.muc" ; <START_BUG> public ID createInstance ( Class [ ] argTypes , Object [ ] args ) throws IDCreateException { <END_BUG> try { if ( ( args . length ) == 5 ) { return new XMPPRoomID ( this , ( ( String ) ( args [ 0 ] ) ) , ( ( String ) ( args [ 1 ] ) ) , ( ( String ) ( args [ 2 ] ) ) , ( ( String ) ( args [ 3 ] ) ) , ( ( String ) ( args [ 4 ] ) ) ) ; } throw new IllegalArgumentException ( "XMPPRoomID<seq2seq4repair_space>constructor<seq2seq4repair_space>arguments<seq2seq4repair_space>invalid" ) ; } catch ( Exception e ) { throw new IDCreateException ( "XMPP<seq2seq4repair_space>ID<seq2seq4repair_space>creation<seq2seq4repair_space>exception" , e ) ; } } public String getScheme ( ) { } }

Fix:
public ID createInstance ( Object [ ] args ) throws IDCreateException {
Buggy code:
public class NetXAConnectionReply extends NetResultSetReply { NetXAConnectionReply ( NetAgent netAgent , int bufferSize ) { } public void readLocalXAStart ( ConnectionCallbackInterface connection ) throws DisconnectException { } public void readLocalXACommit ( ConnectionCallbackInterface connection ) throws DisconnectException { } public void readLocalXARollback ( ConnectionCallbackInterface connection ) throws DisconnectException { } protected void readXaStartUnitOfWork ( NetConnection conn ) throws DisconnectException { } protected int readXaEndUnitOfWork ( NetConnection conn ) throws DisconnectException { } protected int readXaPrepare ( NetConnection conn ) throws DisconnectException { startSameIdChainParse ( ) ; int synctype = parseSYNCCTLreply ( conn ) ; endOfSameIdChainData ( ) ; NetXACallInfo callInfo = conn . xares_ . callInfoArray_ [ conn . currXACallInfoOffset_ ] ; <START_BUG> if ( synctype == ( NetXAResource . XARETVAL_XARDONLY ) ) { <END_BUG> callInfo . setReadOnlyTransactionFlag ( true ) ; } else { callInfo . setReadOnlyTransactionFlag ( false ) ; } return synctype ; } protected void readXaCommit ( NetConnection conn ) throws DisconnectException { } protected int readXaRollback ( NetConnection conn ) throws DisconnectException { } protected void readXaRecover ( NetConnection conn ) throws DisconnectException { } protected void readXaForget ( NetConnection conn ) throws DisconnectException { } int parseSYNCCRD ( ConnectionCallbackInterface connection ) throws DisconnectException { } protected int parseXARETVAL ( ) throws DisconnectException { } protected byte parseSYNCTYPE ( ) throws DisconnectException { } protected int parseSYNCCTLreply ( ConnectionCallbackInterface connection ) throws DisconnectException { } private String parseSQLSTT ( ) throws DisconnectException { } private String parseSQLSTTGRPNOCMorNOCS ( ) throws DisconnectException { } protected int parseXIDCNT ( ) throws DisconnectException { } protected Xid parseXID ( ) throws DisconnectException { } protected Hashtable parseIndoubtList ( ) throws DisconnectException { } }

Fix:
if ( synctype == ( XAResource . XA_RDONLY ) ) {
Buggy code:
@ Entity public class WebURL implements Serializable { private static final long serialVersionUID = 1L ; @ PrimaryKey private String url ; private int docid ; private int parentDocid ; private String parentUrl ; private short depth ; private String domain ; private String subDomain ; private String path ; private String anchor ; private byte priority ; public int getDocid ( ) { } public void setDocid ( int docid ) { } @ Override public int hashCode ( ) { } @ Override public boolean equals ( Object o ) { } @ Override public String toString ( ) { } public String getURL ( ) { } public void setURL ( String url ) { this . url = url ; int domainStartIdx = ( url . indexOf ( "////" ) ) + 2 ; int domainEndIdx = url . indexOf ( '//' , domainStartIdx ) ; domain = url . substring ( domainStartIdx , domainEndIdx ) ; subDomain = "" ; String [ ] parts = domain . split ( "\\." ) ; if ( ( parts . length ) > 2 ) { domain = ( ( parts [ ( ( parts . length ) - 2 ) ] ) + "." ) + ( parts [ ( ( parts . length ) - 1 ) ] ) ; int limit = 2 ; <START_BUG> if ( TLDList . contains ( domain ) ) { <END_BUG> domain = ( ( parts [ ( ( parts . length ) - 3 ) ] ) + "." ) + ( domain ) ; limit = 3 ; } for ( int i = 0 ; i < ( ( parts . length ) - limit ) ; i ++ ) { if ( ( subDomain . length ( ) ) > 0 ) { subDomain += "." ; } subDomain += parts [ i ] ; } } path = url . substring ( domainEndIdx ) ; int pathEndIdx = path . indexOf ( '?' ) ; if ( pathEndIdx >= 0 ) { path = path . substring ( 0 , pathEndIdx ) ; } } public int getParentDocid ( ) { } public void setParentDocid ( int parentDocid ) { } public String getParentUrl ( ) { } public void setParentUrl ( String parentUrl ) { } public short getDepth ( ) { } public void setDepth ( short depth ) { } public String getDomain ( ) { } public String getSubDomain ( ) { } public String getPath ( ) { } public void setPath ( String path ) { } public String getAnchor ( ) { } public void setAnchor ( String anchor ) { } public byte getPriority ( ) { } public void setPriority ( byte priority ) { } }

Fix:
if ( TLDList . getInstance ( ) . contains ( domain ) ) {
Buggy code:
public final class Main { public static final void main ( final String [ ] args ) throws Exception { try { final File installDirectory = Main . findInstallDir ( ) ; System . setProperty ( "myrmidon.home" , installDirectory . toString ( ) ) ; final File libDir = new File ( installDirectory , "lib" ) ; final URL [ ] urls = Main . buildURLList ( libDir ) ; final URLClassLoader classLoader = new URLClassLoader ( urls ) ; <START_BUG> final Class clazz = classLoader . loadClass ( "org.apache.myrmidon.Main" ) ; <END_BUG> final Method method = clazz . getMethod ( "main" , new Class [ ] { args . getClass ( ) } ) ; Thread . currentThread ( ) . setContextClassLoader ( classLoader ) ; method . invoke ( null , new Object [ ] { args } ) ; } catch ( final InvocationTargetException ite ) { System . err . println ( ( "Error:<seq2seq4repair_space>" + ( ite . getTargetException ( ) . getMessage ( ) ) ) ) ; ite . getTargetException ( ) . printStackTrace ( ) ; } catch ( final Throwable throwable ) { System . err . println ( ( "Error:<seq2seq4repair_space>" + ( throwable . getMessage ( ) ) ) ) ; throwable . printStackTrace ( ) ; } } private static final URL [ ] buildURLList ( final File dir ) throws Exception { } private static final File findInstallDir ( ) throws Exception { } }

Fix:
final Class clazz = classLoader . loadClass ( "org.apache.myrmidon.frontends.CLIMain" ) ;
Buggy code:
public class BenchmarkReport { private Collection < BenchmarkReportPage > pages ; public BenchmarkReport ( Collection < ? extends BenchmarkReportPage > pages ) { } public void write ( String path ) throws IOException { Path reportPath = Paths . get ( path ) ; if ( Files . exists ( reportPath ) ) { if ( ! ( Files . isDirectory ( reportPath ) ) ) throw new IOException ( ( ( "Output<seq2seq4repair_space>path<seq2seq4repair_space>of<seq2seq4repair_space>report<seq2seq4repair_space>already<seq2seq4repair_space>exists:<seq2seq4repair_space>\"" + path ) + "\"." ) ) ; <START_BUG> if ( ( Files . list ( reportPath ) . count ( ) ) > 0 ) <END_BUG> throw new IOException ( ( ( "Output<seq2seq4repair_space>directory<seq2seq4repair_space>of<seq2seq4repair_space>report<seq2seq4repair_space>is<seq2seq4repair_space>non-empty:<seq2seq4repair_space>\"" + path ) + "\"." ) ) ; } else { Files . createDirectory ( reportPath ) ; } for ( BenchmarkReportPage benchmarkReportPage : pages ) { benchmarkReportPage . write ( path ) ; } } }

Fix:
if ( ( reportPath . toFile ( ) . list ( ) . length ) > 0 )
Buggy code:
public class Test001_LoginTest { @ BeforeClass public static void setUpStat ( ) throws Exception { String URL = ( Property_Loader . loadProperty ( "site.url" ) ) + "//targetObject.jsf" ; <START_BUG> Configuration . browser = "chrome" ; <END_BUG> open ( URL ) ; } @ Features ( "User<seq2seq4repair_space>management" ) @ Test @ Title ( "Try<seq2seq4repair_space>to<seq2seq4repair_space>login<seq2seq4repair_space>without<seq2seq4repair_space>password" ) public void failedLogin1 ( ) throws Exception { } @ Features ( "User<seq2seq4repair_space>management" ) @ Test @ Title ( "Try<seq2seq4repair_space>to<seq2seq4repair_space>login<seq2seq4repair_space>with<seq2seq4repair_space>wrong<seq2seq4repair_space>credentials" ) public void failedLogin2 ( ) throws Exception { } }

Fix:
Configuration . browser = Property_Loader . loadProperty ( "browser.name" ) ;
Buggy code:
public class PackageResource extends WebResource { private static final long serialVersionUID = 1L ; private static final Log log = LogFactory . getLog ( PackageResource . class ) ; public static final Pattern EXTENSION_JS = Pattern . compile ( ".*\\.js" ) ; public static final Pattern EXTENSION_CSS = Pattern . compile ( ".*\\.css" ) ; private final String absolutePath ; private Locale locale ; private final String style ; private final Class scope ; private final String path ; public static void bind ( Application application , Class scope , String name ) { } public static void bind ( Application application , Class scope , String name , Locale locale ) { } public static void bind ( Application application , Class scope , String name , Locale locale , String style ) { } public static void bind ( Application application , Class scope , Pattern pattern ) { } public static void bind ( Application application , Class scope , Pattern pattern , boolean recurse ) { } public static PackageResource get ( final Class scope , final String path ) { } public static PackageResource get ( final Class scope , final String path , final Locale locale , final String style ) { } public static PackageResource [ ] get ( Class scope , Pattern pattern ) { } public static PackageResource [ ] get ( Class scope , Pattern pattern , boolean recurse ) { } public static boolean exists ( final Class scope , final String path , final Locale locale , final String style ) { } private static final void addResources ( final Class scope , final Pattern pattern , final List resources , final StringBuffer relativePath , final File dir , boolean recurse ) { File [ ] files = dir . listFiles ( ) ; for ( int i = 0 ; i < ( files . length ) ; i ++ ) { File file = files [ i ] ; if ( file . isDirectory ( ) ) { if ( recurse ) { <START_BUG> PackageResource . addResources ( scope , pattern , resources , new StringBuffer ( relativePath ) . append ( file . getName ( ) ) . append ( '//' ) , file , recurse ) ; <END_BUG> } } else { String fileName = file . getName ( ) ; if ( pattern . matcher ( fileName ) . matches ( ) ) { resources . add ( PackageResource . get ( scope , ( relativePath + fileName ) , null , null ) ) ; } } } } private PackageResource ( final Class scope , final String path , final Locale locale , final String style ) { } public IResourceStream getResourceStream ( ) { } public final Locale getLocale ( ) { } public final String getAbsolutePath ( ) { } public final String getPath ( ) { } public final Class getScope ( ) { } public final String getStyle ( ) { } }

Fix:
PackageResource . addResources ( scope , pattern , resources , new StringBuffer ( relativePath . toString ( ) ) . append ( file . getName ( ) ) . append ( '//' ) , file , recurse ) ;
Buggy code:
public class PayloadRootSmartSoapEndpointInterceptor extends DelegatingSmartSoapEndpointInterceptor { private TransformerHelper transformerHelper = new TransformerHelper ( ) ; private final String namespaceUri ; private final String localPart ; public PayloadRootSmartSoapEndpointInterceptor ( EndpointInterceptor delegate , String namespaceUri , String localPart ) { } public void setTransformerHelper ( TransformerHelper transformerHelper ) { } @ Override protected boolean shouldIntercept ( WebServiceMessage request , Object endpoint ) { try { QName payloadRootName = PayloadRootUtils . getPayloadRootQName ( request . getPayloadSource ( ) , transformerHelper ) ; <START_BUG> if ( ! ( namespaceUri . equals ( payloadRootName . getNamespaceURI ( ) ) ) ) { <END_BUG> return false ; } return ( ! ( StringUtils . hasLength ( localPart ) ) ) || ( localPart . equals ( payloadRootName . getLocalPart ( ) ) ) ; } catch ( TransformerException e ) { return false ; } } }

Fix:
if ( ( payloadRootName == null ) || ( ! ( namespaceUri . equals ( payloadRootName . getNamespaceURI ( ) ) ) ) ) {