auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String id , java.lang.String status ) ;
Source:
public static void RunMultipleQueries ( final java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > queryParamsList , final org.ovirt.engine.ui.uicompat.IFrontendMultipleQueryAsyncCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleQueries ( queryTypeList , queryParamsList , callback , null ) ; }

Target:
public static void RunMultipleQueries ( final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > queryParamsList , final org.ovirt.engine.ui.uicompat.IFrontendMultipleQueryAsyncCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleQueries ( queryTypeList , queryParamsList , callback , null ) ; }
Source:
public void setLoggedInUser ( final org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedInUser ) { this . currentUser = loggedInUser ; if ( ( currentUser ) != null ) { getOperationManager ( ) . setLoggedIn ( true ) ; } else { getOperationManager ( ) . setLoggedIn ( false ) ; } }

Target:
public void setLoggedInUser ( final org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedInUser ) { this . currentUser = loggedInUser ; }
Source:
protected org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap createWidgetConfiguration ( ) { return super . createWidgetConfiguration ( ) . update ( hostTab , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) . update ( foremanTab , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap createWidgetConfiguration ( ) { return super . createWidgetConfiguration ( ) . update ( hostTab , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > disks = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( returnValue ) ) ; updateCanSetBoot ( disks ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { updateCanSetBoot ( disks ) ; }
Source:
public void testEmpty ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm></vm>" ) ; org.junit.Assert.assertNotNull ( object ) ; org.junit.Assert.assertNull ( object.getId ( ) ) ; org.junit.Assert.assertNull ( object.getName ( ) ) ; }

Target:
public void testEmpty ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( "<vm></vm>" ) ; org.junit.Assert.assertNotNull ( object ) ; org.junit.Assert.assertNull ( object.id ( ) ) ; org.junit.Assert.assertNull ( object.name ( ) ) ; }
Source:
public void setupMock ( ) { org.mockito.Mockito.doReturn ( geoRepUtil ) . when ( getQuery ( ) ) . getGeoRepUtilInstance ( ) ; baseTest.setupMock ( geoRepUtil , geoRepDao , clusterDao ) ; }

Target:
public void setupMock ( ) { org.mockito.Mockito.doReturn ( geoRepUtil ) . when ( getQuery ( ) ) . getGeoRepUtilInstance ( ) ; baseTest.setupMock ( geoRepDao , clusterDao ) ; }
Source:
public void validateNonExistingJobFails ( ) throws java.lang.Exception { setupMock ( ) ; command.getParameters ( ) . setJobId ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.nonExistingJobId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateNonExistingJobFails ( ) throws java.lang.Exception { command.getParameters ( ) . setJobId ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.nonExistingJobId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > arg0 , org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > arg1 ) { return arg0.getFirst ( ) . getname ( ) . compareTo ( arg1.getFirst ( ) . getname ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > arg0 , org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > arg1 ) { return arg0.getFirst ( ) . getName ( ) . compareTo ( arg1.getFirst ( ) . getName ( ) ) ; }
Source:
protected void testGet ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType ) throws java.lang.Exception { setUpGetStorageDomainExpectations ( domainType ) ; setUpGetEntityExpectations ( domainType , org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplateResourceTest.STORAGE_DOMAIN_ID ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }

Target:
protected void testGet ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType ) throws java.lang.Exception { setUpGetStorageDomainExpectations ( domainType ) ; setUpGetEntityExpectations ( domainType , org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplateResourceTest.STORAGE_DOMAIN_ID ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; verifyModel ( resource.get ( ) , 1 ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.scheduling.ClusterPolicy ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.scheduling.ClusterPolicy object ) { return object.getName ( ) ; }
Source:
public org.ovirt.engine.core.dao.network.InterfaceDao getInterfaceDAO ( ) { return org.ovirt.engine.core.bll.InitVdsOnUpCommand.getDbFacade ( ) . getInterfaceDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.network.InterfaceDao getInterfaceDAO ( ) { return getDbFacade ( ) . getInterfaceDao ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomainType getStorageDomainType ( ) { return getStorageDomain ( ) . getstorage_domain_type ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomainType getStorageDomainType ( ) { return getStorageDomain ( ) . getStorageDomainType ( ) ; }
Source:
public void run ( ) { checkVdsActivateSucceeded ( guideModel , searchStr ) ; }

Target:
public void run ( ) { checkVdsActivateSucceeded ( searchStr ) ; }
Source:
public static java.lang.String getDisplayStringForPluginName ( java.lang.String pluginName ) { try { return org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType.valueOf ( pluginName ) ) ; } catch ( java.lang.IllegalArgumentException e ) { return pluginName ; } }

Target:
public static java.lang.String getDisplayStringForPluginName ( java.lang.String pluginName ) { try { return org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType.valueOf ( pluginName ) ) ; } catch ( java.lang.Exception e ) { return pluginName == null ? new java.lang.String ( ) : pluginName ; } }
Source:
public void networksNotUsedByVmsNorTemplates ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network net = mockNetwork ( ) ; networksUsedTest ( net , true , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networksNotUsedByVmsNorTemplates ( ) throws java.lang.Exception { mockNetwork ( ) ; networksUsedTest ( true , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allNetworks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; queryQoss ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > returnValue ) { allNetworks = returnValue ; queryQoss ( ) ; }
Source:
public void onSystemTreeSelectionChange ( org.ovirt.engine.ui.webadmin.uicommon.model.SystemTreeSelectionChangeEvent event ) { manager.invokePluginsNow ( "SystemTreeSelectionChange" , org.ovirt.engine.ui.webadmin.plugin.jsni.JsArrayHelper.createMixedArray ( org.ovirt.engine.ui.webadmin.plugin.entity.SystemTreeItemObject.from ( event.getSelectedItem ( ) ) ) ) ; }

Target:
public void onSystemTreeSelectionChange ( org.ovirt.engine.ui.webadmin.uicommon.model.SystemTreeSelectionChangeEvent event ) { if ( ( event.getSelectedItem ( ) ) != null ) { manager.invokePluginsNow ( "SystemTreeSelectionChange" , org.ovirt.engine.ui.webadmin.plugin.jsni.JsArrayHelper.createMixedArray ( org.ovirt.engine.ui.webadmin.plugin.entity.SystemTreeItemObject.from ( event.getSelectedItem ( ) ) ) ) ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagById ( org.ovirt.engine.core.bll.GetTagByTagIdQuery.getParameters ( ) . getTagId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagById ( org.ovirt.engine.core.bll.GetTagByTagIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
public abstract com.google.gwt.safehtml.shared.SafeHtml getValue ( T networkView ) ;

Target:
public abstract com.google.gwt.safehtml.shared.SafeHtml getValue ( T object ) ;
Source:
private void createCommand ( ) { cmd.init ( ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( cmd ) . getVdsDao ( ) ; }

Target:
private void createCommand ( ) { cmd.init ( ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ) ; control.replay ( ) ; org.ovirt.engine.api.model.Quota model = resource.get ( ) ; verifyModel ( model , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ) ; org.ovirt.engine.api.model.Quota model = resource.get ( ) ; verifyModel ( model , 0 ) ; }
Source:
protected void updateIteration ( ) { refreshIteration = ( ( refreshIteration ) ++ ) % ( org.ovirt.engine.core.vdsbroker.VMStatsRefresher.NUMBER_VMS_REFRESHES_BEFORE_SAVE ) ; }

Target:
protected void updateIteration ( ) { refreshIteration = ( ++ ( refreshIteration ) ) % ( org.ovirt.engine.core.vdsbroker.VMStatsRefresher.NUMBER_VMS_REFRESHES_BEFORE_SAVE ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockVmNetworks ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
public void testGetRoleByName ( ) { org.ovirt.engine.core.common.businessentities.Role result = dao.getByName ( existingRole.getname ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingRole , result ) ; }

Target:
public void testGetRoleByName ( ) { org.ovirt.engine.core.common.businessentities.Role result = dao.getByName ( existingRole.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingRole , result ) ; }
Source:
public void prepareCommand ( ) { params = new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( ) ; command = new org.ovirt.engine.core.bll.storage.connection.ConnectStorageToVdsCommand ( params ) ; }

Target:
public void prepareCommand ( ) { params = new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( ) ; command = new org.ovirt.engine.core.bll.storage.connection.ConnectStorageToVdsCommand ( params , null ) ; }
Source:
private void setStorageDomainStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { org.ovirt.engine.core.common.businessentities.storage_domains domain = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; domain.setstatus ( status ) ; org.mockito.Mockito.when ( cmd.getStorageDomain ( ) ) . thenReturn ( domain ) ; }

Target:
private void setStorageDomainStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { org.ovirt.engine.core.common.businessentities.StorageDomain domain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; domain.setstatus ( status ) ; org.mockito.Mockito.when ( cmd.getStorageDomain ( ) ) . thenReturn ( domain ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnection ( int idx ) { return new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.ADDRESS , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.GUIDS [ idx ] . toString ( ) , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.IQNS [ idx ] , null , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , null , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.PORT , null ) ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnection ( int idx ) { return new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.ADDRESS , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.GUIDS [ idx ] , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.IQNS [ idx ] , null , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , null , org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.PORT , null ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase executeChildCopyingCommand ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase result = org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( getChildActionType ( ) , parameters , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getExecutionContext ( ) ) ) ; return result ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase executeChildCopyingCommand ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase result = runInternalAction ( getChildActionType ( ) , parameters , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getExecutionContext ( ) ) ) ; return result ; }
Source:
private static void handleNotLoggedInEvent ( java.lang.String errorMessage ) { if ( ( errorMessage != null ) && ( errorMessage.equals ( "USER_IS_NOT_LOGGED_IN" ) ) ) { org.ovirt.engine.ui.frontend.Frontend.frontendNotLoggedInEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , EventArgs.Empty ) ; } }

Target:
private static void handleNotLoggedInEvent ( java.lang.String errorMessage ) { if ( "USER_IS_NOT_LOGGED_IN" . equals ( errorMessage ) ) { org.ovirt.engine.ui.frontend.Frontend.frontendNotLoggedInEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , EventArgs.Empty ) ; } }
Source:
public void setData ( java.lang.Object [ ] data ) { this . Data = data ; }

Target:
public void setData ( java.lang.Object [ ] data ) { this . data = data ; }
Source:
protected void initQueryParams ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String sessionId ) { queryParams.setSessionId ( sessionId ) ; queryParams.setHttpSessionId ( sessionId ) ; queryParams.setFiltered ( filterQueries ( ) ) ; }

Target:
protected void initQueryParams ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String sessionId ) { queryParams.setSessionId ( sessionId ) ; queryParams.setFiltered ( filterQueries ( ) ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StorageDomain value ) { super . setEntity ( value ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StorageDomain value ) { if ( ( value == null ) || ( ! ( value.equals ( getEntity ( ) ) ) ) ) { super . setEntity ( value ) ; } }
Source:
public void updateTabIndexes ( ) { int nextTabIndex = setTabIndexes ( 0 ) ; for ( org.ovirt.engine.ui.common.view.popup.FocusableComponentsContainer button : focusableButtons ) { nextTabIndex = button.setTabIndexes ( nextTabIndex ) ; } }

Target:
public void updateTabIndexes ( ) { int nextTabIndex = setTabIndexes ( 1 ) ; for ( org.ovirt.engine.ui.common.view.popup.FocusableComponentsContainer button : focusableButtons ) { nextTabIndex = button.setTabIndexes ( nextTabIndex ) ; } }
Source:
private static org.ovirt.engine.core.common.businessentities.storage_pool createStoragePool ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = new org.ovirt.engine.core.common.businessentities.storage_pool ( ) ; pool.setname ( "DefaultStoragePool" ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setname ( "DefaultStoragePool" ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; return pool ; }
Source:
public void cleanup ( ) { super . cleanup ( ) ; driver.cleanup ( ) ; }

Target:
public void cleanup ( ) { driver.cleanup ( ) ; }
Source:
public void setIsBrickProvisioningSupported ( boolean isBrickProvisioningSupported ) { getShowBricksList ( ) . setIsAvailable ( isBrickProvisioningSupported ) ; getShowBricksList ( ) . setEntity ( isBrickProvisioningSupported ) ; }

Target:
public void setIsBrickProvisioningSupported ( ) { getShowBricksList ( ) . setIsAvailable ( true ) ; getShowBricksList ( ) . setEntity ( true ) ; }
Source:
private void setupExpectations ( org.ovirt.engine.core.common.mode.ApplicationMode appMode , java.lang.String [ ] relationships ) { current.setApplicationMode ( appMode ) ; resource.setUriInfo ( setUpUriInfo ( ( ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) + "/" ) , relationships ) ) ; setUpGetSystemVersionExpectations ( ) ; setUpGetSystemStatisticsExpectations ( ) ; }

Target:
private void setupExpectations ( org.ovirt.engine.core.common.mode.ApplicationMode appMode ) { current.setApplicationMode ( appMode ) ; resource.setUriInfo ( setUpUriInfo ( ) ) ; setUpGetSystemVersionExpectations ( ) ; setUpGetSystemStatisticsExpectations ( ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml imageContainer ( java.lang.String title , java.lang.String style , com.google.gwt.safehtml.shared.SafeHtml imageHtml ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml imageContainer ( java.lang.String style , com.google.gwt.safehtml.shared.SafeHtml imageHtml ) ;
Source:
public void markAsValid ( ) { getValidatedWidgetStyle ( ) . clearBorderColor ( ) ; tabContainer.getElement ( ) . addClassName ( ( isActive ? style.obrand_active ( ) : style.inactive ( ) ) ) ; }

Target:
public void markAsValid ( ) { super . markAsValid ( ) ; getValidatedWidgetStyle ( ) . clearBorderColor ( ) ; tabContainer.getElement ( ) . addClassName ( ( isActive ? style.obrand_active ( ) : style.inactive ( ) ) ) ; }
Source:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( storageDomain.getId ( ) ) ; parameters.setVdsId ( vdsId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }

Target:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( storageDomain.getId ( ) , vdsId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.LdapGroup > getAll ( ) { return getCallsHandler ( ) . executeReadList ( "GetAllFromad_groups" , new org.ovirt.engine.core.dao.AdGroupDAODbFacadeImpl.ADGroupRowMapper ( ) , getCustomMapSqlParameterSource ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.LdapGroup > getAll ( ) { return getCallsHandler ( ) . executeReadList ( "GetAllFromad_groups" , org.ovirt.engine.core.dao.AdGroupDAODbFacadeImpl.ADGroupRowMapper.instance , getCustomMapSqlParameterSource ( ) ) ; }
Source:
private void dbFacadeThrowOnNetworkClusterSave ( ) { org.mockito.Mockito.doThrow ( new org.springframework.dao.DataIntegrityViolationException ( "test violations" ) ) . when ( mockNetworkClusterDao ) . save ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster.class ) ) ; }

Target:
private void dbFacadeThrowOnNetworkClusterSave ( ) { org.mockito.Mockito.doThrow ( new org.springframework.dao.DataIntegrityViolationException ( "test violations" ) ) . when ( mockNetworkClusterDao ) . save ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public void setvds_type ( org.ovirt.engine.core.common.businessentities.VDSType value ) { this . mVdsStatic.setvds_type ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_type" ) ) ; }

Target:
public void setvds_type ( org.ovirt.engine.core.common.businessentities.VDSType value ) { this . mVdsStatic.setvds_type ( value ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VDS o1 , org.ovirt.engine.core.common.businessentities.VDS o2 ) { return java.lang.Integer.valueOf ( calculateCpuUsage ( o1 ) ) . compareTo ( calculateCpuUsage ( o2 ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VDS o1 , org.ovirt.engine.core.common.businessentities.VDS o2 ) { return java.lang.Integer.compare ( calculateCpuUsage ( o1 ) , calculateCpuUsage ( o2 ) ) ; }
Source:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic ) ) ; }

Target:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic , null ) ) ; }
Source:
private void prepareInterfaceMocks ( ) { org.mockito.Mockito.doReturn ( getNetworks ( ) ) . when ( networkDao ) . getAllForCluster ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.mockito.Mockito.doReturn ( getNetworkInterfaces ( ) ) . when ( interfaceDao ) . getAllInterfacesForVds ( serverId ) ; }

Target:
private void prepareInterfaceMocks ( ) { org.mockito.Mockito.doReturn ( getNetworks ( ) ) . when ( networkDao ) . getAllForCluster ( org.mockito.ArgumentMatchers.any ( ) ) ; org.mockito.Mockito.doReturn ( getNetworkInterfaces ( ) ) . when ( interfaceDao ) . getAllInterfacesForVds ( serverId ) ; }
Source:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.core.common.action.RemoveVmFromImportExportParameters params = new org.ovirt.engine.core.common.action.RemoveVmFromImportExportParameters ( org.ovirt.engine.api.restapi.utils.GuidUtils.asGuid ( id ) , storageDomainId , getDataCenterId ( storageDomainId ) ) ; return performAction ( VdcActionType.RemoveVmFromImportExport , params ) ; }

Target:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.core.common.action.RemoveVmFromImportExportParameters params = new org.ovirt.engine.core.common.action.RemoveVmFromImportExportParameters ( asGuid ( id ) , storageDomainId , getDataCenterId ( storageDomainId ) ) ; return performAction ( VdcActionType.RemoveVmFromImportExport , params ) ; }
Source:
protected T getOldQos ( ) { if ( ( ( oldQos ) == null ) && ( ( qos ) != null ) ) { oldQos = getQosDao ( ) . get ( qos.getId ( ) ) ; } return oldQos ; }

Target:
protected T getOldQos ( ) { if ( ( oldQos ) == null ) { oldQos = getQosDao ( ) . get ( qos.getId ( ) ) ; } return oldQos ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > getImagesParameters ( ) { if ( ( imagesParameters ) == null ) { imagesParameters = new java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > ( ) ; } return imagesParameters ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > getImagesParameters ( ) { return imagesParameters ; }
Source:
public void onSuccess ( java.lang.Object result ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > computeResources = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > ) ( result ) ) ; org.ovirt.engine.ui.uicommonweb.models.ListModel externalComputeResourceListModel = getExternalComputeResource ( ) ; externalComputeResourceListModel.setItems ( computeResources ) ; externalComputeResourceListModel.setIsChangeable ( true ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > computeResources ) { org.ovirt.engine.ui.uicommonweb.models.ListModel externalComputeResourceListModel = getExternalComputeResource ( ) ; externalComputeResourceListModel.setItems ( computeResources ) ; externalComputeResourceListModel.setIsChangeable ( true ) ; }
Source:
void initListBoxEditors ( ) { vncKeyboardLayoutEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.editor.VncKeyMapRenderer ( messages ) ) ; }

Target:
void initListBoxEditors ( ) { vncKeyboardLayoutEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.editor.VncKeyMapRenderer ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.Disk getDisk ( ) { return performGet ( VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.GetDiskByDiskIdParameters ( guid ) ) ; }

Target:
protected org.ovirt.engine.api.model.Disk getDisk ( ) { return performGet ( VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public void setvm_name ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( this . mVmStatic.getvm_name ( ) , value ) ) ) { this . mVmStatic.setvm_name ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_name" ) ) ; } }

Target:
public void setvm_name ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( this . mVmStatic.getvm_name ( ) , value ) ) ) { this . mVmStatic.setvm_name ( value ) ; } }
Source:
public static < T > T GetValue ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version ) { return org.ovirt.engine.core.common.config.Config.getConfigUtils ( ) . < T > GetValue ( value , version ) ; }

Target:
public static < T > T GetValue ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version ) { return org.ovirt.engine.core.common.config.Config.getConfigUtils ( ) . < T > getValue ( value , version ) ; }
Source:
protected org.ovirt.engine.core.common.action.UpdateVmDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.DiskImage diskInfo = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; return new org.ovirt.engine.core.common.action.UpdateVmDiskParameters ( vmId , diskImageGuid , diskInfo ) ; }

Target:
protected org.ovirt.engine.core.common.action.UpdateVmDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.DiskImage diskInfo = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; diskInfo.setId ( diskImageGuid ) ; return new org.ovirt.engine.core.common.action.UpdateVmDiskParameters ( vmId , diskImageGuid , diskInfo ) ; }
Source:
public void enableSinglePCI ( boolean enabled ) { getModel ( ) . getIsSingleQxlEnabled ( ) . setIsChangable ( enabled ) ; getModel ( ) . getIsSingleQxlEnabled ( ) . setEntity ( enabled ) ; }

Target:
public void enableSinglePCI ( boolean enabled ) { getModel ( ) . getIsSingleQxlEnabled ( ) . setIsChangable ( enabled ) ; if ( ! enabled ) { getModel ( ) . getIsSingleQxlEnabled ( ) . setEntity ( false ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { return org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getParameters ( ) . getNetwork ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { return org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getParameters ( ) . getNetwork ( ) ; }
Source:
public void setupEnvironment ( java.util.Hashtable env , java.lang.String userDn , java.lang.String password ) throws javax.naming.NamingException { env.put ( javax.naming.Context.SECURITY_AUTHENTICATION , org.ovirt.engine.core.bll.adbroker.GSSAPIDirContextAuthenticationStrategy.GSS_API_AUTHENTICATION ) ; java.lang.String qopValue = org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.SASL_QOP ) ; env.put ( "javax.security.sasl.qop" , qopValue ) ; }

Target:
public void setupEnvironment ( java.util.Hashtable env , java.lang.String userDn , java.lang.String password ) throws javax.naming.NamingException { env.put ( javax.naming.Context.SECURITY_AUTHENTICATION , org.ovirt.engine.core.bll.adbroker.GSSAPIDirContextAuthenticationStrategy.GSS_API_AUTHENTICATION ) ; java.lang.String qopValue = org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.SASL_QOP ) ; env.put ( "javax.security.sasl.qop" , qopValue ) ; }
Source:
public void emptyStringMakesEmptyMap ( ) { final java.lang.String empty = "" ; org.ovirt.engine.core.common.queries.ValueObjectMap map = org.ovirt.engine.core.common.businessentities.VdsStatic.PmOptionsStringToMap ( empty ) ; mapIsEmpty ( map ) ; }

Target:
public void emptyStringMakesEmptyMap ( ) { final java.lang.String empty = "" ; java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.common.businessentities.VdsStatic.PmOptionsStringToMap ( empty ) ; mapIsEmpty ( map ) ; }
Source:
public < T > java.util.Set < org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > > getExtraConfigDescriptors ( ) { return java.util.Collections.emptySet ( ) ; }

Target:
protected < T > java.util.Set < org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > > getExtraConfigDescriptors ( ) { return java.util.Collections.emptySet ( ) ; }
Source:
public boolean isSuccessful ( ) { return detailedInfo ; }

Target:
public boolean isSuccessful ( ) { return value ; }
Source:
public void setInitialized ( boolean value ) { this . vmStatic.setis_initialized ( value ) ; }

Target:
public void setInitialized ( boolean value ) { this . vmStatic.setInitialized ( value ) ; }
Source:
org.ovirt.engine.core.aaa.NegotiationResult negotiate ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response ) ;

Target:
public abstract org.ovirt.engine.core.aaa.NegotiationResult negotiate ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response ) ;
Source:
public void setmem_commited ( java.lang.Integer value ) { this . mVdsDynamic.setmem_commited ( value ) ; calculateFreeVirtualMemory ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_commited" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_commited_percent" ) ) ; }

Target:
public void setmem_commited ( java.lang.Integer value ) { this . mVdsDynamic.setmem_commited ( value ) ; calculateFreeVirtualMemory ( ) ; }
Source:
protected void ActiveDetailModelChanged ( ) { super . ActiveDetailModelChanged ( ) ; OnCollapseSnapshotsChanged ( ) ; }

Target:
protected void ActiveDetailModelChanged ( ) { super . ActiveDetailModelChanged ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; setUpMockUser ( ) ; setUpMockQueryParameters ( ) ; setUpSpyQuery ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; setUpMockQueryParameters ( ) ; }
Source:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.CreateQueryCommand ( actionType , parameters ) ; }

Target:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spmMaxPriorityValue = ( ( java.lang.Integer ) ( returnValue ) ) ; retrieveDefaultSpmPriority ( ) ; }

Target:
public void onSuccess ( java.lang.Integer returnValue ) { spmMaxPriorityValue = returnValue ; retrieveDefaultSpmPriority ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createHibernationMetadataDisk ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.generateHibernationMetadataDiskAlias ( vm.getName ( ) ) ) ; image.setDescription ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_HIBERNATION_METADATA_DISK_DESCRIPTION ) ; return image ; }

Target:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createHibernationMetadataDisk ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( null ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.generateHibernationMetadataDiskAlias ( vm.getName ( ) ) ) ; image.setDescription ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_HIBERNATION_METADATA_DISK_DESCRIPTION ) ; return image ; }
Source:
public void testValidateSuccess ( ) { org.mockito.Mockito.doReturn ( ValidationResult.VALID ) . when ( diskImagesValidator ) . isQcowVersionSupportedForDcVersion ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void testValidateSuccess ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , new org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback ( ) { @ java.lang.Override public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { } } , this ) ; }

Target:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , null , this ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.tab.host.SubTabHostVmView.constants.suspendVm ( ) ) ; }

Target:
public java.lang.String getTooltip ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.host.SubTabHostVmView.constants.suspendVm ( ) ; }
Source:
public void setCommandExecuted ( ) { javax.transaction.Transaction transaction = org.ovirt.engine.core.utils.transaction.TransactionSupport.suspend ( ) ; try { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.updateCommandExecuted ( getCommandId ( ) ) ; } finally { org.ovirt.engine.core.utils.transaction.TransactionSupport.resume ( transaction ) ; } }

Target:
public void setCommandExecuted ( ) { javax.transaction.Transaction transaction = org.ovirt.engine.core.utils.transaction.TransactionSupport.suspend ( ) ; try { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.updateCommandExecuted ( getCommandId ( ) ) ; } finally { if ( transaction != null ) { org.ovirt.engine.core.utils.transaction.TransactionSupport.resume ( transaction ) ; } } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Provider > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.provider.ProviderDaoDbFacadeImpl.ProviderRowMapper.INSTANCE ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.provider.ProviderDaoDbFacadeImpl.ProviderRowMapper.INSTANCE ) ; }
Source:
javax.ws.rs.core.Response remove ( org.ovirt.engine.api.model.StorageDomain storageDomain ) ;

Target:
javax.ws.rs.core.Response remove ( ) ;
Source:
public void setsize ( long value ) { getImage ( ) . setSize ( value ) ; }

Target:
public void setSize ( long size ) { getImage ( ) . setSize ( size ) ; }
Source:
public void setNonOperationalReason ( org.ovirt.engine.core.common.businessentities.NonOperationalReason nonOperationalReason ) { this . nonOperationalReason = ( nonOperationalReason == null ) ? NonOperationalReason.NONE.getValue ( ) : nonOperationalReason.getValue ( ) ; }

Target:
public void setNonOperationalReason ( org.ovirt.engine.core.common.businessentities.NonOperationalReason nonOperationalReason ) { this . nonOperationalReason = ( nonOperationalReason == null ) ? NonOperationalReason.NONE : nonOperationalReason ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfileForUser ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }
Source:
protected void failedToMigrate ( ) { try { determineMigrationFailureForAuditLog ( ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmCommand.log ( ) ; failedToRunVm ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected void failedToMigrate ( ) { try { determineMigrationFailureForAuditLog ( ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( false ) ; failedToRunVm ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }
Source:
public java.lang.Integer getUsageCpuPercent ( ) { return this . usageCpuPercent ; }

Target:
public java.lang.Integer getUsageCpuPercent ( ) { return usageCpuPercent ; }
Source:
public static void removeUsbSlots ( org.ovirt.engine.core.compat.Guid vmId , int numberOfSlotsToRemove ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeVmDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getUsbSlots ( vmId ) , numberOfSlotsToRemove ) ; }

Target:
public void removeUsbSlots ( org.ovirt.engine.core.compat.Guid vmId , int numberOfSlotsToRemove ) { removeVmDevices ( getUsbSlots ( vmId ) , numberOfSlotsToRemove ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVnicProfileViewDao ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network object ) { return object.getis_display ( ) ? constants.displayNetwork ( ) : constants.empty ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Network object ) { return object.getis_display ( ) ? constants.displayNetwork ( ) : constants.empty ( ) ; }
Source:
private org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator createNetworkAttachmentValidator ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , host , managementNetworkUtilMock , vmInterfaceManager , networkClusterDaoMock , networkDaoMock , vdsDaoMock , vmDao ) ; }

Target:
private org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator createNetworkAttachmentValidator ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , host , vmInterfaceManager , networkClusterDaoMock , networkDaoMock , vdsDaoMock , vmDao ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.UpdateNetworkOnClusterCommand.getNetworkDAO ( ) . get ( org.ovirt.engine.core.bll.UpdateNetworkOnClusterCommand.getParameters ( ) . getNetworkCluster ( ) . getnetwork_id ( ) ) ; } return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.UpdateNetworkOnClusterCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getnetwork_id ( ) ) ; } return network ; }
Source:
private org.ovirt.engine.ui.uicommonweb.UICommand getOnSaveCommand ( ) { org.ovirt.engine.ui.uicommonweb.UICommand onSaveCommand = org.ovirt.engine.ui.uicommonweb.UICommand.createDefaultOkUiCommand ( "OnSave" , this ) ; return onSaveCommand ; }

Target:
private org.ovirt.engine.ui.uicommonweb.UICommand getOnSaveCommand ( ) { return org.ovirt.engine.ui.uicommonweb.UICommand.createDefaultOkUiCommand ( "OnSave" , this ) ; }
Source:
public void replace_callReplaceTwoTimes ( ) { java.lang.String text = "AdminName=$AdminName$ AdminPassword=$AdminPassword$" ; java.lang.StringBuilder firstPart = runAndCheck ( sb ( text ) , "$AdminPassword$" , "$A$AA$" , "AdminName=$AdminName$ AdminPassword=$A$AA$" ) ; runAndCheck ( firstPart , "$AdminName$" , "$B$BB$" , "AdminName=$B$BB$ AdminPassword=$A$AA$" ) ; }

Target:
public void replace_callReplaceTwoTimes ( ) { java.lang.String text = "AdminName=$AdminName$ AdminPassword=$AdminPassword$" ; java.lang.String firstPart = runAndCheck ( text , "$AdminPassword$" , "$A$AA$" , "AdminName=$AdminName$ AdminPassword=$A$AA$" ) ; runAndCheck ( firstPart , "$AdminName$" , "$B$BB$" , "AdminName=$B$BB$ AdminPassword=$A$AA$" ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) , diskImage.getImageTemplateId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { setGuestAgentData ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ) ( result ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel.super . SyncSearch ( VdcQueryType.GetVmInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { setGuestAgentData ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ) ( result ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel.super . SyncSearch ( VdcQueryType.GetVmInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }
Source:
public void serializeNetwork ( ) { org.ovirt.engine.core.common.businessentities.network net = new org.ovirt.engine.core.common.businessentities.network ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; junit.framework.Assert.assertTrue ( ( ( serialezer.serialize ( net ) . length ( ) ) > 0 ) ) ; }

Target:
public void serializeNetwork ( ) { org.ovirt.engine.core.common.businessentities.Network net = new org.ovirt.engine.core.common.businessentities.Network ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; junit.framework.Assert.assertTrue ( ( ( serialezer.serialize ( net ) . length ( ) ) > 0 ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.restapi.resource.StorageDomain > getVolumeGroups ( ) { return getBackendCollection ( org.ovirt.engine.core.common.businessentities.StorageDomain.class , VdcQueryType.GetVgList , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( asGuid ( hostId ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.restapi.resource.StorageDomain > getVolumeGroups ( ) { return getBackendCollection ( org.ovirt.engine.core.common.businessentities.StorageDomain.class , VdcQueryType.GetVgList , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( hostId ) ) ) ; }