nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Test_RsvsnDetails { private Test_Webdriver wd = new Test_Webdriver ( ) ; private String environment = new String ( ) ; @ BeforeClass public void open ( ITestContext context ) throws InterruptedException , MalformedURLException { } @ Test public void public_confirmed_dwh ( ) throws AWTException , InterruptedException , MalformedURLException { } @ Test public void private_confirmed_dwh ( ) throws AWTException , InterruptedException , MalformedURLException { } @ Test public void public_cancelled_dwh ( ) throws AWTException , InterruptedException , MalformedURLException { } @ Test public void public_modified_dwh ( ) throws AWTException , InterruptedException , MalformedURLException { Locator_RatePlan rateplan = new Locator_RatePlan ( environment ) ; Reservation rsvsn = new Reservation ( wd . getWebBrowser ( ) ) ; <START_BUG> rsvsn . do_reservation ( environment , "modified" , "DWH" , rateplan . Partial_LT ( ) , "" , "partial_LT" , "" , false , false , false , false , false , false , false , false , "" , true , false , false , false ) ; <END_BUG> verify_rsvsnDetails ( wd , environment , rateplan . Full ( ) , "modified" , false ) ; } @ Test public void public_noshow_hpp ( ) throws AWTException , InterruptedException , MalformedURLException { } private void verify_rsvsnDetails ( Test_Webdriver wd , String environment , String rpID , String reservationType , boolean isPrivate ) throws InterruptedException { } private void changeHotelTime ( String environment , String paymentProcessor , boolean isBefore , Test_Webdriver wd ) throws AWTException , InterruptedException { } private void mark_noShow ( String environment , String paymentProcessor , String rpID , String confirmationNo , String confirmationURL , Test_Webdriver wd ) throws AWTException , InterruptedException { } private void logoutHE ( String paymentProcessor ) throws AWTException , InterruptedException { } @ AfterClass public void close ( ) { } }

Fix:
rsvsn . do_reservation ( environment , "modified" , "DWH" , rateplan . Partial_LT ( ) , rateplan . Full ( ) , "partial_LT" , "full" , false , false , false , false , false , false , false , true , "" , false , false , false , false ) ;
Buggy code:
public class Slider extends Control { boolean dragging ; boolean tracking ; int increment = 1 ; int pageIncrement = 10 ; public Slider ( Composite parent , int style ) { } public void addSelectionListener ( SelectionListener listener ) { } static int checkStyle ( int style ) { } int actionProc ( int theControl , int partCode ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { } void drawBackground ( int control , int context ) { <START_BUG> drawBackground ( control , context , background ) ; <END_BUG> } public int getIncrement ( ) { } public int getMaximum ( ) { } public int getMinimum ( ) { } public int getPageIncrement ( ) { } public int getSelection ( ) { } public int getThumb ( ) { } int kEventControlTrack ( int nextHandler , int theEvent , int userData ) { } int kEventMouseDown ( int nextHandler , int theEvent , int userData ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void setIncrement ( int value ) { } public void setMaximum ( int value ) { } public void setMinimum ( int value ) { } public void setPageIncrement ( int value ) { } public void setSelection ( int value ) { } public void setThumb ( int value ) { } public void setValues ( int selection , int minimum , int maximum , int thumb , int increment , int pageIncrement ) { } }

Fix:
fillBackground ( control , context , null ) ;
Buggy code:
public class AbstractSockJsServiceTests extends AbstractHttpRequestTests { private AbstractSockJsServiceTests . TestSockJsService service ; private WebSocketHandler handler ; @ Override @ Before public void setUp ( ) { } @ Test public void getSockJsPathForGreetingRequest ( ) throws Exception { } @ Test public void getSockJsPathForInfoRequest ( ) throws Exception { } @ Test public void getSockJsPathForTransportRequest ( ) throws Exception { } @ Test public void getSockJsPathForTransportRequestWithConfiguredPrefix ( ) throws Exception { } @ Test public void validateRequest ( ) throws Exception { } @ Test public void handleInfoGet ( ) throws Exception { } @ Test public void handleInfoOptions ( ) throws Exception { } @ Test public void handleIframeRequest ( ) throws Exception { this . service . setValidSockJsPrefixes ( "//a" ) ; handleRequest ( "GET" , "//a//iframe.html" , OK ) ; assertEquals ( "text//html;charset=UTF-8" , this . servletResponse . getContentType ( ) ) ; assertTrue ( this . servletResponse . getContentAsString ( ) . startsWith ( "<!DOCTYPE<seq2seq4repair_space>html>\n" ) ) ; assertEquals ( 496 , this . servletResponse . getContentLength ( ) ) ; assertEquals ( "public,<seq2seq4repair_space>max-age=31536000" , this . response . getHeaders ( ) . getCacheControl ( ) ) ; <START_BUG> assertEquals ( "\"0da1ed070012f304e47b83c81c48ad620\"" , this . response . getHeaders ( ) . getETag ( ) ) ; <END_BUG> } @ Test public void handleIframeRequestNotModified ( ) throws Exception { } @ Test public void handleRawWebSocketRequest ( ) throws Exception { } private void handleRequest ( String httpMethod , String uri , HttpStatus httpStatus ) throws IOException { } private static class TestSockJsService extends AbstractSockJsService { private String sessionId ; private TransportType transportType ; private WebSocketHandler handler ; public TestSockJsService ( TaskScheduler scheduler ) { } @ Override protected void handleRawWebSocketRequest ( ServerHttpRequest request , ServerHttpResponse response , WebSocketHandler handler ) throws IOException { } @ Override protected void handleTransportRequest ( ServerHttpRequest request , ServerHttpResponse response , String sessionId , TransportType transportType , WebSocketHandler handler ) throws IOException , TransportErrorException { } } }

Fix:
assertEquals ( "\"0da1ed070012f304e47b83c81c48ad620\"" , response . getHeaders ( ) . getETag ( ) ) ;
Buggy code:
public class ExecuteJava { private Commandline javaCommand = null ; private Path classpath = null ; private SysProperties sysProperties = null ; public void setJavaCommand ( Commandline javaCommand ) { } public void setClasspath ( Path p ) { } public void setSystemProperties ( CommandlineJava . SysProperties s ) { } public void setOutput ( PrintStream out ) { } public void execute ( Project project ) throws BuildException { final String classname = javaCommand . getExecutable ( ) ; final Object [ ] argument = new Object [ ] { javaCommand . getArguments ( ) } ; AntClassLoader loader = null ; try { if ( ( sysProperties ) != null ) { sysProperties . setSystem ( ) ; } final Class [ ] param = new Class [ ] { Class . forName ( "[Ljava.lang.String;" ) } ; Class target = null ; if ( ( classpath ) == null ) { target = Class . forName ( classname ) ; } else { <START_BUG> loader = new AntClassLoader ( project . getSystemLoader ( ) , project , classpath , false ) ; <END_BUG> loader . setIsolated ( true ) ; loader . setThreadContextLoader ( ) ; target = loader . forceLoadClass ( classname ) ; AntClassLoader . initializeClass ( target ) ; } final Method main = target . getMethod ( "main" , param ) ; main . invoke ( null , argument ) ; } catch ( NullPointerException e ) { throw new BuildException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>main()<seq2seq4repair_space>method<seq2seq4repair_space>in<seq2seq4repair_space>" + classname ) ) ; } catch ( ClassNotFoundException e ) { throw new BuildException ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>" + classname ) + ".<seq2seq4repair_space>Make<seq2seq4repair_space>sure<seq2seq4repair_space>you<seq2seq4repair_space>have<seq2seq4repair_space>it<seq2seq4repair_space>in<seq2seq4repair_space>your<seq2seq4repair_space>classpath" ) ) ; } catch ( InvocationTargetException e ) { Throwable t = e . getTargetException ( ) ; if ( ! ( t instanceof SecurityException ) ) { throw new BuildException ( t ) ; } else { throw ( ( SecurityException ) ( t ) ) ; } } catch ( Exception e ) { throw new BuildException ( e ) ; } finally { if ( loader != null ) { loader . resetThreadContextLoader ( ) ; loader . cleanup ( ) ; } if ( ( sysProperties ) != null ) { sysProperties . restoreSystem ( ) ; } } } }

Fix:
loader = new AntClassLoader ( project . getCoreLoader ( ) , project , classpath , false ) ;
Buggy code:
public class nuByte { private int _value = 0 ; private int _count = 0 ; public float GetValue ( ) { } public static String convertBits ( List < Integer > bits ) { int _count = 0 ; int _value = 0 ; for ( Integer i : bits ) { if ( _count > 0 ) _value <<= 1 ; _value += i ; _count ++ ; } float res = ( ( ( float ) ( _value ) ) + 750 ) // 10 ; <START_BUG> return String . valueOf ( res ) ; <END_BUG> } public float intVal ( ) { } public boolean push ( int bit ) { } public boolean IsByteComplete ( ) { } public void Reset ( ) { } }

Fix:
return String . format ( "%.1f" , res ) ;
Buggy code:
@ RunWith ( Theories . class ) public class WhenNoParametersMatch { @ DataPoints public static int [ ] ints = new int [ ] { 0 , 1 , 3 , 5 , 1776 } ; @ DataPoints public static Matcher < ? > [ ] matchers = new Matcher < ? > [ ] { not ( 0 ) , is ( 1 ) } ; @ RunWith ( Theories . class ) public static class AssumptionsFail { public static int DATA = 0 ; public static Matcher < Integer > MATCHER = null ; @ Theory public void nonZeroIntsAreFun ( int x ) { } } @ Theory public void showFailedAssumptionsWhenNoParametersFound ( int data , Matcher < Integer > matcher ) throws Exception { Assume . assumeThat ( data , not ( matcher ) ) ; WhenNoParametersMatch . AssumptionsFail . DATA = data ; WhenNoParametersMatch . AssumptionsFail . MATCHER = matcher ; String result = testResult ( WhenNoParametersMatch . AssumptionsFail . class ) . toString ( ) ; Assert . assertThat ( result , containsString ( matcher . toString ( ) ) ) ; Assert . assertThat ( result , containsString ( ( "" + data ) ) ) ; <START_BUG> Assert . assertThat ( result , containsString ( "ignored<seq2seq4repair_space>test:" ) ) ; <END_BUG> } }

Fix:
Assert . assertThat ( result , containsString ( "invalid<seq2seq4repair_space>assumption:" ) ) ;
Buggy code:
public class LogEvents extends BaseInterceptor { boolean enabled = false ; public LogEvents ( ) { } public void setEnabled ( boolean b ) { } public int registerHooks ( Hooks hooks , ContextManager cm , Context ctx ) { if ( ( enabled ) || ( ( cm . getDebug ( ) ) > 5 ) ) { enabled = true ; log ( ( ( ( "Adding<seq2seq4repair_space>LogEvents,<seq2seq4repair_space>cm.debug=" + ( cm . getDebug ( ) ) ) + "<seq2seq4repair_space>" ) + ( enabled ) ) ) ; hooks . addModule ( this ) ; } <START_BUG> return DECLINED ; <END_BUG> } public int requestMap ( Request request ) { } public int contextMap ( Request request ) { } public int preService ( Request request , Response response ) { } public int authenticate ( Request request , Response response ) { } public int authorize ( Request request , Response response , String [ ] reqRoles ) { } public int beforeBody ( Request request , Response response ) { } public int beforeCommit ( Request request , Response response ) { } public int afterBody ( Request request , Response response ) { } public int postRequest ( Request request , Response response ) { } public int handleError ( Request request , Response response , Throwable t ) { } public int postService ( Request request , Response response ) { } public int newSessionRequest ( Request req , Response res ) { } public void contextInit ( Context ctx ) throws TomcatException { } public void contextShutdown ( Context ctx ) throws TomcatException { } public void addServlet ( Context ctx , Handler sw ) throws TomcatException { } public void removeServlet ( Context ctx , Handler sw ) throws TomcatException { } public void addMapping ( Context ctx , String path , Handler servlet ) throws TomcatException { } public void removeMapping ( Context ctx , String path ) throws TomcatException { } private void appendSA ( StringBuffer sb , String [ ] s , String sep ) { } public void addSecurityConstraint ( Context ctx , String [ ] path , String [ ] methods , String transport , String [ ] roles ) throws TomcatException { } public void addInterceptor ( ContextManager cm , Context ctx , BaseInterceptor i ) throws TomcatException { } public void engineInit ( ContextManager cm ) throws TomcatException { } public void engineShutdown ( ContextManager cm ) throws TomcatException { } public void addContext ( ContextManager cm , Context ctx ) throws TomcatException { } public void addContainer ( Container ct ) throws TomcatException { } public void engineState ( ContextManager cm , int state ) throws TomcatException { } public void engineStart ( ContextManager cm ) throws TomcatException { } public void removeContext ( ContextManager cm , Context ctx ) throws TomcatException { } public void preServletInit ( Context ctx , Handler sw ) throws TomcatException { } public void postServletInit ( Context ctx , Handler sw ) throws TomcatException { } public void preServletDestroy ( Context ctx , Handler sw ) throws TomcatException { } public void postServletDestroy ( Context ctx , Handler sw ) throws TomcatException { } }

Fix:
return OK ;
Buggy code:
public class BundleAccessesModuleServiceTestCase extends AbstractOSGiSubsystemTest { private OSGiSubsystemSupport support ; @ Before public void setUp ( ) throws Exception { } @ After public void tearDown ( ) { } @ Override protected OSGiSubsystemSupport getSubsystemSupport ( ) { } @ Test public void testTargetModuleService ( ) throws Exception { } @ Test public void testBundleInvokesTargetModuleService ( ) throws Exception { } private void registerTargetService ( final ModuleIdentifier moduleId ) throws Exception { BatchedWork work = new BatchedWork ( ) { @ Override public void execute ( BatchBuilder batchBuilder ) throws Exception { Object service = loadClass ( moduleId , EchoTargetService . class . getName ( ) ) . newInstance ( ) ; BatchServiceBuilder < ? > serviceBuilder = batchBuilder . addService ( SERVICE_NAME , ( ( Service < ? > ) ( service ) ) ) ; serviceBuilder . addAliases ( ServiceName . of ( JBOSGI_PREFIX , Echo . class . getName ( ) ) ) ; <START_BUG> serviceBuilder . setInitialMode ( IMMEDIATE ) ; <END_BUG> } } ; runWithLatchedBatch ( work ) ; } private String invokeTargetService ( final ModuleIdentifier moduleId , final String message ) throws Exception { } private String invokeTargetService ( final Bundle bundle , final String message ) throws Exception { } private JavaArchive getBundleArchive ( ) throws Exception { } private JavaArchive getTargetModuleArchive ( ) throws Exception { } }

Fix:
serviceBuilder . setInitialMode ( ACTIVE ) ;
Buggy code:
public class CoreRuntimePlugin extends Plugin { public static final String PLUGIN_ID = "org.talend.core.runtime" ; protected static final String DATA_PROFILING_PERSPECTIVE_ID = "org.talend.dataprofiler.DataProfilingPerspective" ; public static final String EMPTY_STRING = "" ; private final Context context ; private static CoreRuntimePlugin plugin = null ; private static IRepositoryContextService repositoryContextService = null ; public CoreRuntimePlugin ( ) { } public static CoreRuntimePlugin getInstance ( ) { } @ Override public void start ( BundleContext context ) throws Exception { } @ Override public void stop ( BundleContext context ) throws Exception { } public Context getContext ( ) { } public IProxyRepositoryFactory getProxyRepositoryFactory ( ) { } public IRepositoryService getRepositoryService ( ) { } public IRepositoryContextService getRepositoryContextService ( ) { if ( ( CoreRuntimePlugin . repositoryContextService ) == null ) { if ( Platform . isRunning ( ) ) { if ( GlobalServiceRegister . getDefault ( ) . isServiceRegistered ( IRepositoryContextService . class ) ) { IService service = GlobalServiceRegister . getDefault ( ) . getService ( IRepositoryContextService . class ) ; CoreRuntimePlugin . repositoryContextService = ( ( IRepositoryContextService ) ( service ) ) ; } } else { try { <START_BUG> final String serviceClassName = "org.talend.repository.StandaloneRepositoryContextService" ; <END_BUG> CoreRuntimePlugin . repositoryContextService = ( ( IRepositoryContextService ) ( Class . forName ( serviceClassName ) . newInstance ( ) ) ) ; } catch ( InstantiationException e ) { ExceptionHandler . process ( e ) ; } catch ( IllegalAccessException e ) { ExceptionHandler . process ( e ) ; } catch ( ClassNotFoundException e ) { ExceptionHandler . process ( e ) ; } } } return CoreRuntimePlugin . repositoryContextService ; } public IMetadataService getMetadataService ( ) { } public AbstractDQModelService getDQModelService ( ) { } public IDesignerCoreService getDesignerCoreService ( ) { } public ICoreService getCoreService ( ) { } public ILibrariesService getLibrariesService ( ) { } public IStatusPreferenceInitService getStatusPreferenceInitService ( ) { } public IWebService getWebService ( ) { } public IWebServiceTos getWebServiceTos ( ) { } public boolean isDataProfilePerspectiveSelected ( ) { } public String getActivedPerspectiveId ( ) { } }

Fix:
final String serviceClassName = "org.talend.core.repository.services.StandaloneRepositoryContextService" ;
Buggy code:
public class TTSServiceImpl extends CoreObjectBehavior implements CoreObjectSpec , CoreTTSService , TTSItemsListener { public static final String TTS_IMPLEM_NAME = "TTSServiceImpl" ; Map < Integer , SpeechTextItem > ttsItems = new HashMap < Integer , SpeechTextItem > ( ) ; Map < Integer , SpeechTextItem > ttsItemsRunning = new HashMap < Integer , SpeechTextItem > ( ) ; YakitomeAPI apiClient ; int coreObjectStatus = 0 ; DAOSpeechTextItems dao ; String defaultVoice = YakitomeAPIClient . DEFAULT_VOICE ; int defaultSpeed = YakitomeAPIClient . DEFAULT_SPEED ; JSONObject currentVoices = null ; public void configure ( YakitomeAPI apiClient , DAOSpeechTextItems dao ) { } private boolean testStatus ( ) { <START_BUG> if ( ( ( ( ( apiClient ) != null ) && ( apiClient . testService ( ) ) ) && ( ( dao ) != null ) ) && ( dao . testService ( ) ) ) { <END_BUG> coreObjectStatus = 2 ; return true ; } else { coreObjectStatus = 0 ; return false ; } } private static Logger logger = LoggerFactory . getLogger ( TTSServiceImpl . class ) ; @ Override public int getTTSItemMatchingText ( String text , String voice , int speed ) { } @ Override public int asynchronousTTSGeneration ( String text ) { } @ Override public int waitForTTSGeneration ( String text ) { } @ Override public JSONObject deleteSpeechText ( int book_id ) { } @ Override public JSONObject getSpeechTextStatus ( int book_id ) { } @ Override public String getAudioURL ( int book_id , int track ) { } public static final String userType = "104" ; @ Override public void onTTSItemAdded ( SpeechTextItem item ) { } String serviceId ; @ Override public JSONObject getDescription ( ) throws JSONException { } @ Override public JSONObject getBehaviorDescription ( ) { } @ Override public String getAbstractObjectId ( ) { } @ Override public CORE_TYPE getCoreType ( ) { } @ Override public String getUserType ( ) { } @ Override public int getObjectStatus ( ) { } @ Override public String getPictureId ( ) { } @ Override public void setPictureId ( String pictureId ) { } @ Override public JSONObject getSpeechTextItem ( int book_id ) { } @ Override public JSONArray getSpeechTextItems ( ) { } @ Override public int asynchronousTTSGeneration ( String text , String voice , int speed ) { } @ Override public int waitForTTSGeneration ( String text , String voice , int speed ) { } @ Override public int countAudioURLs ( int book_id ) { } @ Override public String getDefaultVoice ( ) { } @ Override public void setDefaultVoice ( String voice ) { } @ Override public int getDefaultSpeed ( ) { } @ Override public void setDefaultSpeed ( int speed ) { } @ Override public JSONObject getAvailableVoices ( ) { } private NotificationMsg stateChanged ( String varName , String oldValue , String newValue ) { } }

Fix:
if ( ( ( ( ( apiClient ) != null ) && ( ( apiClient . getVoices ( ) ) != null ) ) && ( ( dao ) != null ) ) && ( dao . testService ( ) ) ) {
Buggy code:
class SliceColumnLabelProvider extends ColumnLabelProvider implements IStyledLabelProvider { private static final Logger logger = LoggerFactory . getLogger ( SliceColumnLabelProvider . class ) ; private int col ; private TableViewer viewer ; private SliceSystemImpl system ; private NumberFormat format ; public SliceColumnLabelProvider ( SliceSystemImpl system , TableViewer viewer , int i ) { } @ Override public StyledString getStyledText ( Object element ) { if ( ( viewer . getTable ( ) . getColumn ( col ) . getWidth ( ) ) < 1 ) return new StyledString ( ) ; final DimsData data = ( ( DimsData ) ( element ) ) ; final StyledString ret = new StyledString ( ) ; switch ( col ) { case 0 : ret . append ( ( ( ( data . getDimension ( ) ) + 1 ) + "" ) ) ; break ; case 1 : ret . append ( getAxisLabel ( data ) ) ; break ; case 2 : if ( data . isTextRange ( ) ) { ret . append ( ( ( data . getSliceRange ( true ) ) != null ? new StyledString ( data . getSliceRange ( true ) ) : new StyledString ( "all" ) ) ) ; } else { final int slice = data . getSlice ( ) ; String formatValue = String . valueOf ( slice ) ; try { formatValue = getFormatValue ( data , slice ) ; if ( data . getPlotAxis ( ) . isAdvanced ( ) ) { final StringBuilder buf = new StringBuilder ( ) ; buf . append ( "[<seq2seq4repair_space>" ) ; buf . append ( formatValue ) ; buf . append ( "<seq2seq4repair_space>:<seq2seq4repair_space>" ) ; buf . append ( getFormatValue ( data , ( slice + ( data . getSliceSpan ( ) ) ) ) ) ; buf . append ( "<seq2seq4repair_space>]" ) ; formatValue = buf . toString ( ) ; } } catch ( Throwable ne ) { formatValue = String . valueOf ( slice ) ; } ret . append ( ( slice > ( - 1 ) ? formatValue : "" ) ) ; } ILazyDataset lazy = system . getLazyDataset ( ) ; if ( lazy != null ) { try { final int [ ] shape = lazy . getShape ( ) ; if ( ( ( ( data . isSlice ( ) ) || ( data . isTextRange ( ) ) ) && ( ! ( system . isErrorVisible ( ) ) ) ) && ( ( shape [ data . getDimension ( ) ] ) > 1 ) ) { <START_BUG> ret . append ( new StyledString ( "<seq2seq4repair_space>(click<seq2seq4repair_space>to<seq2seq4repair_space>change)" , StyledString . QUALIFIER_STYLER ) ) ; <END_BUG> } } catch ( Throwable largelyIgnored ) { SliceColumnLabelProvider . logger . error ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>determine<seq2seq4repair_space>if<seq2seq4repair_space>editable." ) ; } } break ; case 3 : if ( ( system . getCurrentSlice ( ) ) != null ) { final String axisName = SliceUtils . getAxisLabel ( system . getCurrentSlice ( ) , data ) ; if ( axisName != null ) ret . append ( axisName ) ; } break ; case 4 : if ( data . getPlotAxis ( ) . isAdvanced ( ) ) { ret . append ( String . valueOf ( data . getSliceSpan ( ) ) ) ; } break ; default : ret . append ( "" ) ; break ; } return ret ; } private String getFormatValue ( DimsData data , int index ) { } protected String getAxisLabel ( DimsData data ) { } }

Fix:
ret . append ( new StyledString ( "<seq2seq4repair_space>*" , StyledString . DECORATIONS_STYLER ) ) ;
Buggy code:
final class JcaConfigService implements Service < JcaSubsystemConfiguration > { private final JcaSubsystemConfiguration value ; private final InjectedValue < CloneableBootstrapContext > defaultBootstrapContext = new InjectedValue < CloneableBootstrapContext > ( ) ; public JcaConfigService ( JcaSubsystemConfiguration value ) { } @ Override public JcaSubsystemConfiguration getValue ( ) throws IllegalStateException { } @ Override public void start ( StartContext context ) throws StartException { this . value . setDefaultBootstrapContext ( defaultBootstrapContext . getValue ( ) ) ; <START_BUG> ConnectorLogger . ROOT_LOGGER . startingSubsystem ( "JCS" , FULL_VERSION ) ; <END_BUG> ConnectorLogger . ROOT_LOGGER . tracef ( "config=%s" , value ) ; } @ Override public void stop ( StopContext context ) { } public Injector < CloneableBootstrapContext > getDefaultBootstrapContextInjector ( ) { } }

Fix:
ConnectorLogger . ROOT_LOGGER . startingSubsystem ( "JCA" , FULL_VERSION ) ;
Buggy code:
@ BafBinding @ Priority ( 1000 ) @ Interceptor public class BafAroundConstructInterceptor { private static boolean aroundConstructCalled = false ; @ AroundConstruct public void intercept ( InvocationContext ctx ) { BafAroundConstructInterceptor . aroundConstructCalled = true ; <START_BUG> throw new Error ( "Do<seq2seq4repair_space>not<seq2seq4repair_space>supress<seq2seq4repair_space>me." ) ; <END_BUG> } public static void reset ( ) { } public static boolean isAroundConstructCalled ( ) { } }

Fix:
throw new Error ( "Do<seq2seq4repair_space>not<seq2seq4repair_space>suppress<seq2seq4repair_space>me." ) ;
Buggy code:
class ProgressFloatingWindow extends AssociatedWindow { TableViewer viewer ; WorkbenchWindow window ; ProgressFloatingWindow ( WorkbenchWindow workbenchWindow , Control associatedControl ) { } protected Layout getLayout ( ) { } protected void configureShell ( Shell newShell ) { } protected Control createContents ( Composite root ) { } private LabelProvider viewerLabelProvider ( ) { } private void adjustSize ( ) { Point size = getShell ( ) . computeSize ( DEFAULT , DEFAULT ) ; size . x += 5 ; size . y += 5 ; int maxSize = getMaximumSize ( viewer . getTable ( ) . getDisplay ( ) ) ; <START_BUG> if ( ( size . x ) > maxSize ) ; <END_BUG> size . x = maxSize ; getShell ( ) . setSize ( size ) ; moveShell ( getShell ( ) ) ; setRegion ( ) ; } private void setRegion ( ) { } protected void initContentProvider ( ) { } protected int getTransparencyValue ( ) { } public boolean close ( ) { } public int open ( ) { } private int getMaximumSize ( Display display ) { } private void setBackground ( Control control ) { } private Control createButtons ( Composite parent ) { } }

Fix:
if ( ( size . x ) > maxSize )
Buggy code:
public abstract class SpatialHelper { private static final double LOG2 = Math . log ( 2 ) ; private SpatialHelper ( ) { } public static int getCellIndex ( double coordinate , double range , int spatialHashLevel ) { } public static String getSpatialHashCellId ( Point point , int spatialHashLevel ) { } public static List < String > getSpatialHashCellsIds ( Point lowerLeft , Point upperRight , int spatialHashLevel ) { } public static List < String > getSpatialHashCellsIds ( Coordinates center , double radius , int spatialHashLevel ) { Rectangle boundingBox = Rectangle . fromBoundingCircle ( center , radius ) ; double lowerLeftLatitude = boundingBox . getLowerLeft ( ) . getLatitude ( ) ; double lowerLeftLongitude = boundingBox . getLowerLeft ( ) . getLongitude ( ) ; double upperRightLatitude = boundingBox . getUpperRight ( ) . getLatitude ( ) ; double upperRightLongitude = boundingBox . getUpperRight ( ) . getLongitude ( ) ; if ( upperRightLongitude < lowerLeftLongitude ) { final List < String > spatialHashCellsIds ; spatialHashCellsIds = SpatialHelper . getSpatialHashCellsIds ( Point . fromDegreesInclusive ( lowerLeftLatitude , lowerLeftLongitude ) , Point . fromDegreesInclusive ( upperRightLatitude , ( ( GeometricConstants . LONGITUDE_DEGREE_RANGE ) // 2 ) ) , spatialHashLevel ) ; <START_BUG> spatialHashCellsIds . addAll ( SpatialHelper . getSpatialHashCellsIds ( Point . fromDegreesInclusive ( lowerLeftLatitude , ( ( GeometricConstants . LONGITUDE_DEGREE_RANGE ) // 2 ) ) , Point . fromDegreesInclusive ( upperRightLatitude , upperRightLongitude ) , spatialHashLevel ) ) ; <END_BUG> return spatialHashCellsIds ; } else { return SpatialHelper . getSpatialHashCellsIds ( Point . fromDegreesInclusive ( lowerLeftLatitude , lowerLeftLongitude ) , Point . fromDegreesInclusive ( upperRightLatitude , upperRightLongitude ) , spatialHashLevel ) ; } } public static int findBestSpatialHashLevelForSearchRange ( double searchRange ) { } public static double [ ] projectToIndexSpace ( Point point ) { } public static String formatFieldName ( final int spatialHashLevel , final String fieldName ) { } public static String formatLatitude ( final String fieldName ) { } public static String formatLongitude ( final String fieldName ) { } public static String formatSpatialHashCellId ( final int xIndex , final int yIndex ) { } }

Fix:
spatialHashCellsIds . addAll ( SpatialHelper . getSpatialHashCellsIds ( Point . fromDegreesInclusive ( lowerLeftLatitude , ( ( - ( GeometricConstants . LONGITUDE_DEGREE_RANGE ) ) // 2 ) ) , Point . fromDegreesInclusive ( upperRightLatitude , upperRightLongitude ) , spatialHashLevel ) ) ;
Buggy code:
@ RunWith ( SpringJUnit4ClassRunner . class ) @ SpringApplicationConfiguration ( classes = SpringTemplateApplication . class ) @ Sql ( scripts = { "//mysql//delete-data.sql" , "//mysql//sample-product.sql" } ) @ WebIntegrationTest public class ProductControllerTests { private static final String BASE_URL = "http:////localhost:8080//api//product//" ; private final RestTemplate restTemplate = new TestRestTemplate ( ) ; @ Test public void testSave ( ) { Product p = new Product ( ) ; p . setCode ( "PT-001" ) ; p . setName ( "Product<seq2seq4repair_space>Test<seq2seq4repair_space>001" ) ; p . setPrice ( BigDecimal . valueOf ( 102000.02 ) ) ; Product responseObj = restTemplate . postForObject ( ProductControllerTests . BASE_URL , p , Product . class ) ; Assert . assertNotNull ( responseObj . getId ( ) ) ; Product px = new Product ( ) ; p . setCode ( "PT-002" ) ; Product responseObjx = restTemplate . postForObject ( ProductControllerTests . BASE_URL , px , Product . class ) ; <START_BUG> Assert . assertNotNull ( responseObjx . getId ( ) ) ; <END_BUG> } @ Test public void testDelete ( ) { } }

Fix:
Assert . assertNull ( responseObjx . getId ( ) ) ;
Buggy code:
@ Repository public class BookDaoImpl implements BookDao { private static final Logger logger = LoggerFactory . getLogger ( BookDaoImpl . class ) ; @ Autowired private BookMapper bookMapper ; @ Override public boolean delete ( String bookCode ) { } @ Override public boolean insert ( String bookCode , String entity , boolean isValid , String savedByUser ) { } @ Override public boolean update ( String bookCode , String entity , boolean isValid , String savedByUser ) { } @ Override public boolean updateValidity ( String bookCode , boolean isValid , String updatedByUser ) { } @ Override public List < BookDetailImpl > getAll ( ) { } @ Override public BookDetailImpl get ( String bookCode ) { } @ Override public boolean bookExistsWithBookCode ( String bookCode ) { if ( BookDaoImpl . logger . isDebugEnabled ( ) ) BookDaoImpl . logger . debug ( ( "Request<seq2seq4repair_space>to<seq2seq4repair_space>check<seq2seq4repair_space>if<seq2seq4repair_space>book<seq2seq4repair_space>exists<seq2seq4repair_space>with<seq2seq4repair_space>bookCode:<seq2seq4repair_space>" + bookCode ) ) ; <START_BUG> return ( this . bookMapper . bookExistsWithBookcode ( bookCode ) ) != null ; <END_BUG> } }

Fix:
return ( this . bookMapper . bookExistsWithBookCode ( bookCode ) ) != null ;
Buggy code:
class XmlRoleEnvironmentDataDeserializer implements RoleEnvironmentDataDeserializer { public XmlRoleEnvironmentDataDeserializer ( ) { } @ Override public RoleEnvironmentData deserialize ( InputStream stream ) { } private Map < String , String > translateConfigurationSettings ( RoleEnvironmentInfo environmentInfo ) { } private Map < String , LocalResource > translateLocalResources ( RoleEnvironmentInfo environmentInfo ) { } private Map < String , Role > translateRoles ( RoleEnvironmentInfo environmentInfo , RoleInstance currentInstance , String currentRole ) { Map < String , Role > roles = new HashMap < String , Role > ( ) ; for ( RoleInfo roleInfo : environmentInfo . getRoles ( ) . getRole ( ) ) { Map < String , RoleInstance > instances = translateRoleInstances ( roleInfo . getInstances ( ) ) ; <START_BUG> if ( ( roleInfo . getName ( ) ) == currentRole ) { <END_BUG> instances . put ( currentInstance . getId ( ) , currentInstance ) ; } Role role = new Role ( roleInfo . getName ( ) , instances ) ; for ( RoleInstance instance : role . getInstances ( ) . values ( ) ) { instance . setRole ( role ) ; } roles . put ( roleInfo . getName ( ) , role ) ; } if ( ! ( roles . containsKey ( currentRole ) ) ) { Map < String , RoleInstance > instances = new HashMap < String , RoleInstance > ( ) ; instances . put ( currentInstance . getId ( ) , currentInstance ) ; Role singleRole = new Role ( currentRole , instances ) ; currentInstance . setRole ( singleRole ) ; roles . put ( currentRole , singleRole ) ; } return roles ; } private Map < String , RoleInstance > translateRoleInstances ( RoleInstancesInfo instancesInfo ) { } private Map < String , RoleInstanceEndpoint > translateRoleInstanceEndpoints ( EndpointsInfo endpointsInfo ) { } private RoleInstance translateCurrentInstance ( RoleEnvironmentInfo environmentInfo ) { } }

Fix:
if ( roleInfo . getName ( ) . equals ( currentRole ) ) {
Buggy code:
public class LRUCache < K , V > extends SolrCacheBase implements SolrCache < K , V > { private static class CumulativeStats { AtomicLong lookups = new AtomicLong ( ) ; AtomicLong hits = new AtomicLong ( ) ; AtomicLong inserts = new AtomicLong ( ) ; AtomicLong evictions = new AtomicLong ( ) ; } private LRUCache . CumulativeStats stats ; private long lookups ; private long hits ; private long inserts ; private long evictions ; private long warmupTime = 0 ; private Map < K , V > map ; private String description = "LRU<seq2seq4repair_space>Cache" ; @ Override public Object init ( Map args , Object persistence , CacheRegenerator regenerator ) { } private String generateDescription ( int limit , int initialSize ) { } @ Override public int size ( ) { } @ Override public V put ( K key , V value ) { } @ Override public V get ( K key ) { } @ Override public void clear ( ) { } @ Override public void warm ( SolrIndexSearcher searcher , SolrCache < K , V > old ) { if ( ( regenerator ) == null ) return ; long warmingStartTime = System . currentTimeMillis ( ) ; LRUCache < K , V > other = ( ( LRUCache < K , V > ) ( old ) ) ; if ( LRUCache . isAutowarmingOn ( ) ) { Object [ ] keys ; Object [ ] vals = null ; synchronized ( other . map ) { int sz = autowarm . getWarmCount ( other . map . size ( ) ) ; keys = new Object [ sz ] ; vals = new Object [ sz ] ; Iterator < Map . Entry < K , V > > iter = other . map . entrySet ( ) . iterator ( ) ; int skip = ( other . map . size ( ) ) - sz ; for ( int i = 0 ; i < skip ; i ++ ) iter . next ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { Map . Entry < K , V > entry = iter . next ( ) ; keys [ i ] = entry . getKey ( ) ; vals [ i ] = entry . getValue ( ) ; } } for ( int i = 0 ; i < ( keys . length ) ; i ++ ) { try { boolean continueRegen = regenerator . regenerateItem ( searcher , this , old , keys [ i ] , vals [ i ] ) ; if ( ! continueRegen ) break ; <START_BUG> } catch ( Throwable e ) { <END_BUG> SolrException . log ( log , ( "Error<seq2seq4repair_space>during<seq2seq4repair_space>auto-warming<seq2seq4repair_space>of<seq2seq4repair_space>key:" + ( keys [ i ] ) ) , e ) ; } } } warmupTime = ( System . currentTimeMillis ( ) ) - warmingStartTime ; } @ Override public void close ( ) { } @ Override public String getName ( ) { } @ Override public String getDescription ( ) { } @ Override public String getSource ( ) { } @ Override public NamedList getStatistics ( ) { } @ Override public String toString ( ) { } }

Fix:
} catch ( Exception e ) {
Buggy code:
public class MarkupCache { private static final Logger log = LoggerFactory . getLogger ( MarkupCache . class ) ; private final Map markupCache = new ConcurrentHashMap ( ) ; private final Watcher afterLoadListeners = new Watcher ( ) ; private final Application application ; public MarkupCache ( final Application application ) { } public void clear ( ) { } public final MarkupStream getMarkupStream ( final MarkupContainer container ) { } public final MarkupStream getMarkupStream ( final MarkupContainer container , final boolean throwException ) { } public final boolean hasAssociatedMarkup ( final MarkupContainer container ) { } public int size ( ) { } private Markup checkForMarkupInheritance ( final MarkupContainer container , final Markup markup ) { } private final Markup getMarkup ( final MarkupContainer container , final Class clazz ) { } private final Markup loadMarkup ( final MarkupContainer container , final MarkupResourceStream markupResourceStream ) { CharSequence cacheKey = markupResourceStream . getCacheKey ( ) ; try { <START_BUG> Markup markup = application . getMarkupSettings ( ) . getMarkupParserFactory ( ) . newMarkupParser ( ) . readAndParse ( markupResourceStream ) ; <END_BUG> markup = checkForMarkupInheritance ( container , markup ) ; if ( cacheKey != null ) { markupCache . put ( cacheKey , markup ) ; } afterLoadListeners . notifyListeners ( markupResourceStream ) ; return markup ; } catch ( ResourceStreamNotFoundException e ) { MarkupCache . log . error ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space>markup<seq2seq4repair_space>from<seq2seq4repair_space>" + markupResourceStream ) , e ) ; } catch ( IOException e ) { MarkupCache . log . error ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>markup<seq2seq4repair_space>from<seq2seq4repair_space>" + markupResourceStream ) , e ) ; } synchronized ( markupCache ) { if ( cacheKey != null ) { markupCache . remove ( cacheKey ) ; afterLoadListeners . remove ( markupResourceStream ) ; } } return Markup . NO_MARKUP ; } private final Markup loadMarkupAndWatchForChanges ( final MarkupContainer container , final MarkupResourceStream markupResourceStream ) { } private void removeMarkup ( final MarkupResourceStream markupResourceStream ) { } private int requiresBaseMarkup ( final Markup markup ) { } protected IMarkupCacheKeyProvider getMarkupCacheKeyProvider ( final MarkupContainer container ) { } protected IMarkupResourceStreamProvider getMarkupResourceStreamProvider ( final MarkupContainer container ) { } }

Fix:
Markup markup = application . getMarkupSettings ( ) . getMarkupParserFactory ( ) . newMarkupParser ( markupResourceStream ) . parse ( ) ;
Buggy code:
public class LocalVariableBinding extends VariableBinding { public boolean isArgument ; public int resolvedPosition ; public static final int UNUSED = 0 ; public static final int USED = 1 ; public static final int FAKE_USED = 2 ; public int useFlag ; public BlockScope declaringScope ; public LocalDeclaration declaration ; public int [ ] initializationPCs ; public int initializationCount = 0 ; public LocalVariableBinding ( char [ ] name , TypeBinding type , int modifiers , boolean isArgument ) { } public LocalVariableBinding ( LocalDeclaration declaration , TypeBinding type , int modifiers , boolean isArgument ) { } public final int bindingType ( ) { } public char [ ] computeUniqueKey ( ) { StringBuffer buffer = new StringBuffer ( ) ; BlockScope scope = this . declaringScope ; MethodScope methodScope = ( scope instanceof MethodScope ) ? ( ( MethodScope ) ( scope ) ) : scope . enclosingMethodScope ( ) ; ReferenceContext referenceContext = methodScope . referenceContext ; if ( referenceContext instanceof AbstractMethodDeclaration ) { MethodBinding methodBinding = ( ( AbstractMethodDeclaration ) ( referenceContext ) ) . binding ; if ( methodBinding != null ) { buffer . append ( methodBinding . computeUniqueKey ( ) ) ; } } else if ( referenceContext instanceof TypeDeclaration ) { TypeBinding typeBinding = ( ( TypeDeclaration ) ( referenceContext ) ) . binding ; if ( typeBinding != null ) { buffer . append ( typeBinding . computeUniqueKey ( ) ) ; } } getScopeKey ( scope , buffer ) ; <START_BUG> buffer . append ( '//' ) ; <END_BUG> buffer . append ( this . name ) ; int length = buffer . length ( ) ; char [ ] uniqueKey = new char [ length ] ; buffer . getChars ( 0 , length , uniqueKey , 0 ) ; return uniqueKey ; } private void getScopeKey ( BlockScope scope , StringBuffer buffer ) { } public boolean isSecret ( ) { } public void recordInitializationEndPC ( int pc ) { } public void recordInitializationStartPC ( int pc ) { } public String toString ( ) { } }

Fix:
buffer . append ( '#' ) ;
Buggy code:
public class StrBuilderAppendInsertTest extends TestCase { private static final String SEP = SystemUtils . LINE_SEPARATOR ; private static final Object FOO = new Object ( ) { @ Override public String toString ( ) { } } ; public StrBuilderAppendInsertTest ( String name ) { } public void testAppendNewLine ( ) { } public void testAppendWithNullText ( ) { } public void testAppend_Object ( ) { } public void testAppend_String ( ) { } public void testAppend_String_int_int ( ) { } public void testAppend_StringBuffer ( ) { } public void testAppend_StringBuffer_int_int ( ) { } public void testAppend_StrBuilder ( ) { } public void testAppend_StrBuilder_int_int ( ) { } public void testAppend_CharArray ( ) { } public void testAppend_CharArray_int_int ( ) { } public void testAppend_Boolean ( ) { } public void testAppend_PrimitiveNumber ( ) { } public void testAppendln_Object ( ) { StrBuilder sb = new StrBuilder ( ) ; sb . appendln ( ( ( Object ) ( null ) ) ) ; assertEquals ( ( "" + ( StrBuilderAppendInsertTest . SEP ) ) , sb . toString ( ) ) ; sb . appendln ( StrBuilderAppendInsertTest . FOO ) ; assertEquals ( ( ( ( StrBuilderAppendInsertTest . SEP ) + "foo" ) + ( StrBuilderAppendInsertTest . SEP ) ) , sb . toString ( ) ) ; <START_BUG> sb . appendln ( new Integer ( 6 ) ) ; <END_BUG> assertEquals ( ( ( ( ( ( StrBuilderAppendInsertTest . SEP ) + "foo" ) + ( StrBuilderAppendInsertTest . SEP ) ) + "6" ) + ( StrBuilderAppendInsertTest . SEP ) ) , sb . toString ( ) ) ; } public void testAppendln_String ( ) { } public void testAppendln_String_int_int ( ) { } public void testAppendln_StringBuffer ( ) { } public void testAppendln_StringBuffer_int_int ( ) { } public void testAppendln_StrBuilder ( ) { } public void testAppendln_StrBuilder_int_int ( ) { } public void testAppendln_CharArray ( ) { } public void testAppendln_CharArray_int_int ( ) { } public void testAppendln_Boolean ( ) { } public void testAppendln_PrimitiveNumber ( ) { } public void testAppendPadding ( ) { } public void testAppendFixedWidthPadLeft ( ) { } public void testAppendFixedWidthPadLeft_int ( ) { } public void testAppendFixedWidthPadRight ( ) { } public void testLang299 ( ) { } public void testAppendFixedWidthPadRight_int ( ) { } public void testAppendAll_Array ( ) { } public void testAppendAll_Collection ( ) { } public void testAppendAll_Iterator ( ) { } public void testAppendWithSeparators_Array ( ) { } public void testAppendWithSeparators_Collection ( ) { } public void testAppendWithSeparators_Iterator ( ) { } public void testAppendWithSeparatorsWithNullText ( ) { } public void testAppendSeparator_String ( ) { } public void testAppendSeparator_String_String ( ) { } public void testAppendSeparator_char ( ) { } public void testAppendSeparator_char_char ( ) { } public void testAppendSeparator_String_int ( ) { } public void testAppendSeparator_char_int ( ) { } public void testInsert ( ) { } public void testInsertWithNullText ( ) { } }

Fix:
sb . appendln ( Integer . valueOf ( 6 ) ) ;
Buggy code:
public class MethodVerifier implements TagBits , TypeConstants { SourceTypeBinding type ; HashtableOfObject inheritedMethods ; HashtableOfObject currentMethods ; ReferenceBinding runtimeException ; ReferenceBinding errorException ; LookupEnvironment environment ; MethodVerifier ( LookupEnvironment environment ) { } boolean areMethodsEqual ( MethodBinding one , MethodBinding two ) { } boolean areParametersEqual ( MethodBinding one , MethodBinding two ) { } boolean areReturnTypesEqual ( MethodBinding one , MethodBinding two ) { } boolean areTypesEqual ( TypeBinding one , TypeBinding two ) { } boolean canSkipInheritedMethods ( ) { } boolean canSkipInheritedMethods ( MethodBinding one , MethodBinding two ) { } void checkAbstractMethod ( MethodBinding abstractMethod ) { } void checkAgainstInheritedMethods ( MethodBinding currentMethod , MethodBinding [ ] methods , int length , MethodBinding [ ] allInheritedMethods ) { } void checkConcreteInheritedMethod ( MethodBinding concreteMethod , MethodBinding [ ] abstractMethods ) { } void checkExceptions ( MethodBinding newMethod , MethodBinding inheritedMethod ) { } void checkForBridgeMethod ( MethodBinding currentMethod , MethodBinding inheritedMethod , MethodBinding [ ] allInheritedMethods ) { } void checkInheritedMethods ( MethodBinding [ ] methods , int length ) { } void checkMethods ( ) { } void checkPackagePrivateAbstractMethod ( MethodBinding abstractMethod ) { } void computeInheritedMethods ( ) { } void computeInheritedMethods ( ReferenceBinding superclass , ReferenceBinding [ ] superInterfaces ) { } void computeMethods ( ) { } MethodBinding computeSubstituteMethod ( MethodBinding inheritedMethod , MethodBinding currentMethod ) { } public boolean doesMethodOverride ( MethodBinding method , MethodBinding inheritedMethod ) { } boolean isAsVisible ( MethodBinding newMethod , MethodBinding inheritedMethod ) { } boolean isInterfaceMethodImplemented ( MethodBinding inheritedMethod , MethodBinding existingMethod , ReferenceBinding superType ) { } boolean isSameClassOrSubclassOf ( ReferenceBinding testClass , ReferenceBinding superclass ) { } boolean mustImplementAbstractMethod ( ReferenceBinding declaringClass ) { } boolean mustImplementAbstractMethods ( ) { } ProblemReporter problemReporter ( ) { } ProblemReporter problemReporter ( MethodBinding currentMethod ) { ProblemReporter reporter = problemReporter ( ) ; <START_BUG> if ( ( currentMethod . declaringClass ) == ( type ) ) <END_BUG> reporter . referenceContext = currentMethod . sourceMethod ( ) ; return reporter ; } ReferenceBinding [ ] resolvedExceptionTypesFor ( MethodBinding method ) { } void verify ( SourceTypeBinding someType ) { } public String toString ( ) { } }

Fix:
if ( ( ( currentMethod . declaringClass ) == ( type ) ) && ( ( currentMethod . sourceMethod ( ) ) != null ) )
Buggy code:
public class OperationCoordinatorStepHandler { private final LocalHostControllerInfo localHostControllerInfo ; private final ContentRepository contentRepository ; private final Map < String , ProxyController > hostProxies ; private final Map < String , ProxyController > serverProxies ; private final OperationSlaveStepHandler localSlaveHandler ; private volatile ExecutorService executorService ; OperationCoordinatorStepHandler ( final LocalHostControllerInfo localHostControllerInfo , ContentRepository contentRepository , final Map < String , ProxyController > hostProxies , final Map < String , ProxyController > serverProxies , final OperationSlaveStepHandler localSlaveHandler ) { } void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { ImmutableManagementResourceRegistration opRegistry = context . getResourceRegistration ( ) ; OperationRouting routing = OperationRouting . determineRouting ( operation , localHostControllerInfo , opRegistry ) ; <START_BUG> if ( ( ! ( localHostControllerInfo . isMasterDomainController ( ) ) ) && ( ( routing . isRouteToMaster ( ) ) || ( ! ( routing . isLocalOnly ( localHostControllerInfo . getLocalHostName ( ) ) ) ) ) ) { <END_BUG> routetoMasterDomainController ( context , operation ) ; } else if ( ( ( routing . getSingleHost ( ) ) != null ) && ( ! ( localHostControllerInfo . getLocalHostName ( ) . equals ( routing . getSingleHost ( ) ) ) ) ) { if ( DomainControllerLogger . HOST_CONTROLLER_LOGGER . isTraceEnabled ( ) ) { DomainControllerLogger . HOST_CONTROLLER_LOGGER . trace ( "Remote<seq2seq4repair_space>single<seq2seq4repair_space>host" ) ; } executeDirect ( context , operation ) ; } else if ( ! ( routing . isTwoStep ( ) ) ) { executeDirect ( context , operation ) ; } else { executeTwoPhaseOperation ( context , operation , routing ) ; } } public void setExecutorService ( ExecutorService executorService ) { } private ExecutorService getExecutorService ( ) { } private void routetoMasterDomainController ( OperationContext context , ModelNode operation ) { } private void executeDirect ( OperationContext context , ModelNode operation ) throws OperationFailedException { } private void executeTwoPhaseOperation ( OperationContext context , ModelNode operation , OperationRouting routing ) throws OperationFailedException { } private void storeDeploymentContent ( ModelNode opNode , OperationContext context ) throws OperationFailedException { } private boolean hasStorableContent ( ModelNode operation ) { } private static final List < String > CONTENT_ADDITION_PARAMETERS = Arrays . asList ( INPUT_STREAM_INDEX , BYTES , URL ) ; private static boolean hasValidContentAdditionParameterDefined ( ModelNode item ) { } }

Fix:
if ( ( ! ( localHostControllerInfo . isMasterDomainController ( ) ) ) && ( ! ( routing . isLocalOnly ( localHostControllerInfo . getLocalHostName ( ) ) ) ) ) {