auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.api.model.DiskProfile update ( org.ovirt.engine.api.model.DiskProfile resource ) { return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetDiskProfileById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateDiskProfile , new org.ovirt.engine.api.restapi.resource.BackendDiskProfileResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.DiskProfile update ( org.ovirt.engine.api.model.DiskProfile resource ) { return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetDiskProfileById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateDiskProfile , new org.ovirt.engine.api.restapi.resource.BackendDiskProfileResource.UpdateParametersProvider ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null , false , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , null , networkName , true , null , false , null ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getName ( ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VmTemplateStatus value ) { if ( ( status ) != value ) { status = value ; } }

Target:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VmTemplateStatus value ) { status = value ; }
Source:
private com.google.gwt.resources.client.ImageResource getNicIcon ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel ) ( item ) ) . isSriovEnabled ( ) ? org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NicPanel.resources.nicSriov ( ) : org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NicPanel.resources.nicIcon ( ) ; }

Target:
private com.google.gwt.resources.client.ImageResource getNicIcon ( ) { return item.isSriovEnabled ( ) ? org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NicPanel.resources.nicSriov ( ) : org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NicPanel.resources.nicIcon ( ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getstorage_pool_id ( ) { return getStoragePoolIsoMapData ( ) . getstorage_pool_id ( ) ; }

Target:
public org.ovirt.engine.core.compat.NGuid getStoragePoolId ( ) { return getStoragePoolIsoMapData ( ) . getstorage_pool_id ( ) ; }
Source:
private org.ovirt.engine.core.bll.gluster.StartRemoveGlusterVolumeBricksCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId , int replicaCount ) { return new org.ovirt.engine.core.bll.gluster.StartRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeId , getBricks ( volumeId , 1 ) , replicaCount ) ) ; }

Target:
private org.ovirt.engine.core.bll.gluster.StartRemoveGlusterVolumeBricksCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId , int replicaCount ) { return new org.ovirt.engine.core.bll.gluster.StartRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeId , getBricks ( volumeId , 1 ) , replicaCount ) , null ) ; }
Source:
public java.lang.Boolean getValue ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { if ( ( networkClusterModel.getIsChangable ( ) ) && ( ! ( networkClusterModel.isRequired ( ) ) ) ) { return false ; } } return true ; }

Target:
public java.lang.Boolean getValue ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { if ( ! ( networkClusterModel.isRequired ( ) ) ) { return false ; } } return true ; }
Source:
public void onSuccess ( java.lang.Object model1 , java.lang.Object result1 ) { ApplySearchPageSize ( ( ( java.lang.Integer ) ( result1 ) ) ) ; }

Target:
public void onSuccess ( java.lang.Integer result ) { ApplySearchPageSize ( result ) ; }
Source:
public java.lang.String getAllowOverbookingInfoMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . schedulerAllowOverbookingInfo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getSchedulerAllowOverbookingPendingRequestsThreshold ( ) ) ; }

Target:
public java.lang.String getAllowOverbookingInfoMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . schedulerAllowOverbookingInfo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getSchedulerAllowOverbookingPendingRequestsThreshold ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages ) { return new org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator ( params.getStoragePoolId ( ) , org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( diskImages ) ) ; }

Target:
public org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages ) { return new org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator ( params.getStoragePoolId ( ) , org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( diskImages ) ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runMultipleActionsImpl ( actionType , parameters , true , executionContext ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , executionContext ) ; }
Source:
private void createCommand ( ) { cmd.init ( ) ; org.mockito.Mockito.doReturn ( storagePoolDao ) . when ( cmd ) . getStoragePoolDao ( ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( cmd ) . getVdsDao ( ) ; }

Target:
private void createCommand ( ) { cmd.init ( ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( cmd ) . getVdsDao ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( bond.getName ( ) , i.getBondName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( bond , i.getBondName ( ) ) ; }
Source:
public void testQueryWithoutFilter ( ) throws java.lang.Exception { resource.setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false , true ) ; control.replay ( ) ; resource.get ( ) ; }

Target:
public void testQueryWithoutFilter ( ) throws java.lang.Exception { resource.setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false ) ; control.replay ( ) ; resource.get ( ) ; }
Source:
public void constructorInvariants_capacityLowerBound ( ) { new org.ovirt.engine.ui.common.utils.AddOnlyRingBuffer < java.lang.String > ( 0 , new org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.StringArrayBuffer ( ) ) ; }

Target:
public void constructorInvariants_capacityLowerBound ( ) { new org.ovirt.engine.ui.common.utils.AddOnlyRingBuffer ( 0 , new org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.StringArrayBuffer ( ) ) ; }
Source:
private void propagateLabeledNetworksChanges ( ) { runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , cloneParams ( ) ) ; }

Target:
private void propagateLabeledNetworksChanges ( ) { runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , getParameters ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { stepDao.update ( existingStep ) ; stepDao.save ( newStep ) ; jobDao.updateJobLastUpdateTime ( existingStep.getJobId ( ) , new java.util.Date ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { jobDao.updateJobLastUpdateTime ( existingStep.getJobId ( ) , new java.util.Date ( ) ) ; stepDao.update ( existingStep ) ; stepDao.save ( newStep ) ; return null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hostWasInstalled ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.CANNOT_UPGRADE_HOST_WITHOUT_OS ) . when ( ( ( getHost ( ) . getHostOs ( ) ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostWasInstalled ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.CANNOT_UPGRADE_HOST_WITHOUT_OS ) . when ( ( ( host.getHostOs ( ) ) == null ) ) ; }
Source:
public void testCompleteParametersAlternativesSecond ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm vm = new org.ovirt.engine.api.model.Vm ( ) ; vm.setName ( "foo" ) ; vm.setStatus ( org.ovirt.engine.api.common.util.StatusUtils.create ( VmStatus.UP ) ) ; org.ovirt.engine.api.common.util.CompletenessAssertor.validateParameters ( vm , "name" , "host|status" ) ; }

Target:
public void testCompleteParametersAlternativesSecond ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm vm = new org.ovirt.engine.api.model.Vm ( ) ; vm.setName ( "foo" ) ; vm.setStatus ( VmStatus.UP ) ; org.ovirt.engine.api.common.util.CompletenessAssertor.validateParameters ( vm , "name" , "host|status" ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network network ) { return network.getname ( ) . equals ( getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getname ( ) . equals ( getNetworkName ( ) ) ; }
Source:
private void mockSameNameQuery ( boolean result ) { org.mockito.Mockito.doReturn ( result ) . when ( command ) . isVmWithSameNameExists ( org.mockito.ArgumentMatchers.anyString ( ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }

Target:
private void mockSameNameQuery ( boolean result ) { org.mockito.Mockito.doReturn ( result ) . when ( command ) . isVmWithSameNameExists ( org.mockito.ArgumentMatchers.anyString ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { super . edit ( iface ) ; portMirroringEditor.setVisible ( false ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { super . edit ( iface ) ; }
Source:
public void setElementId ( java.lang.String elementId ) { this . elementId = elementId ; for ( int i = 0 ; i < ( org.ovirt.engine.ui.common.widget.table.ElementIdCellTable.getColumnCount ( ) ) ; i ++ ) { configureElementId ( org.ovirt.engine.ui.common.widget.table.ElementIdCellTable.getColumn ( i ) ) ; } }

Target:
public void setElementId ( java.lang.String elementId ) { this . elementId = elementId ; }
Source:
private void canDetachDomain ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isDetachAllowed ( org.mockito.ArgumentMatchers.anyBoolean ( ) ) ; }

Target:
private void canDetachDomain ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isDetachAllowed ( ) ; }
Source:
protected void updateDataProvider ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel > items ) { if ( ! ( items.isEmpty ( ) ) ) { super . updateDataProvider ( items ) ; selectionModel.setSelected ( items.get ( 0 ) , true ) ; } }

Target:
protected void updateDataProvider ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel > items ) { if ( ! ( items.isEmpty ( ) ) ) { super . updateDataProvider ( items ) ; selectionModel.setSelected ( getModel ( ) . getSelectedItem ( ) , true ) ; } }
Source:
private void setUpParentMock ( org.ovirt.engine.api.restapi.resource.BackendHostsResource parent ) { parent.setBackend ( backend ) ; parent.setMappingLocator ( mapperLocator ) ; parent.setMessageBundle ( messageBundle ) ; parent.setHttpHeaders ( httpHeaders ) ; }

Target:
private void setUpParentMock ( org.ovirt.engine.api.restapi.resource.BackendHostsResource parent ) { parent.setMappingLocator ( mapperLocator ) ; parent.setMessageBundle ( messageBundle ) ; parent.setHttpHeaders ( httpHeaders ) ; }
Source:
public void tJDBCConnection_2_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.osenumupdate_3_6.OsEnumUpdate.TalendException { end_Hash.put ( "tJDBCConnection_2" , java.lang.System.currentTimeMillis ( ) ) ; status = "failure" ; tJDBCConnection_2_onSubJobError ( exception , errorComponent , globalMap ) ; }

Target:
public void tJDBCConnection_2_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.osenumupdate_3_6.OsEnumUpdate.TalendException { end_Hash.put ( errorComponent , java.lang.System.currentTimeMillis ( ) ) ; status = "failure" ; tJDBCConnection_2_onSubJobError ( exception , errorComponent , globalMap ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getMonitoredTaskIDsInDB ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > externalIds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStepDao ( ) . getExternalIdsForRunningSteps ( ExternalSystemType.GLUSTER ) ; return externalIds ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getMonitoredTaskIDsInDB ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStepDao ( ) . getExternalIdsForRunningSteps ( ExternalSystemType.GLUSTER ) ; }
Source:
public void setupCommand ( ) { initSpyCommand ( ) ; mockBackend ( ) ; mockDaos ( ) ; mockSnapshotValidator ( ) ; mockVm ( ) ; }

Target:
public void setupCommand ( ) { initSpyCommand ( ) ; mockDaos ( ) ; mockSnapshotValidator ( ) ; mockVm ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > filterClusters ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.filterByArchitecture ( clusters , pool.getClusterArch ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > filterClusters ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . filterByArchitecture ( clusters , pool.getClusterArch ( ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 , false , false ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 , false , false , false ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { return getAffinityGroup ( ) . getClusterId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getClusterId ( ) { return getAffinityGroup ( ) . getClusterId ( ) ; }
Source:
public void getNonexistentVariable ( ) { org.junit.Assert.assertNull ( dbFacade.getDwhHistoryTimekeepingDao ( ) . get ( DwhHistoryTimekeepingVariable.UNDEFINED ) ) ; }

Target:
public void getNonexistentVariable ( ) { org.junit.Assert.assertNull ( dao.get ( DwhHistoryTimekeepingVariable.UNDEFINED ) ) ; }
Source:
public static java.util.List < java.lang.String > runAndAssertSetActionMessageParameters ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.errors.VdcBllMessages ... messages ) { return org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertSetActionMessageParameters ( "" , command , messages ) ; }

Target:
public static java.util.List < java.lang.String > runAndAssertSetActionMessageParameters ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.errors.EngineMessage ... messages ) { return org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertSetActionMessageParameters ( "" , command , messages ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml image ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml image ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String title , java.lang.String id ) ;
Source:
public java.lang.String render ( java.lang.Object object ) { return object == null ? "" : ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return vds == null ? "" : vds.getName ( ) ; }
Source:
protected void executeVmCommand ( ) { initVdss ( ) ; perform ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }

Target:
protected void executeVmCommand ( ) { org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( ( ( initVdss ( ) ) && ( perform ( ) ) ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.StorageDomain sp ) { java.lang.String tooltipContent = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( sp.getStorageDomainSharedStatus ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.StorageDomain sp ) { java.lang.String tooltipContent = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( sp.getStorageDomainSharedStatus ( ) ) ; return tooltipContent ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { java.lang.String status = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( diskImage.getImageStatus ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( status ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { java.lang.String status = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( diskImage.getImageStatus ( ) ) ; return status ; }
Source:
public void setPhysicalTotal ( double physicalTotal ) { this . physicalTotal = physicalTotal ; if ( ( this . physicalTotal ) <= 0 ) { this . physicalTotal = 1 ; } }

Target:
public void setPhysicalTotal ( double physicalTotal ) { this . physicalTotal = physicalTotal ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.validator.NetworkValidator validatorNew = new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , getNetwork ( ) ) ; return validate ( validatorNew.networkIsSet ( ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.bll.validator.NetworkValidator validatorNew = new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , getNetwork ( ) ) ; return validate ( validatorNew.networkIsSet ( ) ) ; }
Source:
private static org.ovirt.engine.core.compat.Guid getDeviceId ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct device ) { java.lang.String deviceId = ( ( java.lang.String ) ( device.getItem ( VdsProperties.DeviceId ) ) ) ; return deviceId == null ? null : new org.ovirt.engine.core.compat.Guid ( deviceId ) ; }

Target:
private static org.ovirt.engine.core.compat.Guid getDeviceId ( java.util.Map device ) { java.lang.String deviceId = ( ( java.lang.String ) ( device.get ( VdsProperties.DeviceId ) ) ) ; return deviceId == null ? null : new org.ovirt.engine.core.compat.Guid ( deviceId ) ; }
Source:
public void testList ( ) throws java.lang.Exception { setUpHooksQueryExpectations ( null ) ; javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; collection.setUriInfo ( uriInfo ) ; control.replay ( ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { setUpHooksQueryExpectations ( null ) ; javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { getModel ( ) . getEditConsoleCommand ( ) . Execute ( ) ; }

Target:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { getModel ( ) . getEditConsoleCommand ( ) . execute ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( domainId , vmTemplate.getstorage_pool_id ( ) . getValue ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( domainId , vmTemplate.getStoragePoolId ( ) . getValue ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DisplayType getDefaultDisplayType ( ) { return vmStatic.getdefault_display_type ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DisplayType getDefaultDisplayType ( ) { return vmStatic.getDefaultDisplayType ( ) ; }
Source:
protected void onMouseOut ( ) { dragImage.setVisible ( false ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.infoPopup.hide ( true ) ; if ( ( parentPanel ) != null ) { parentPanel.onMouseOver ( ) ; } }

Target:
protected void onMouseOut ( ) { dragImage.setVisible ( false ) ; if ( ( parentPanel ) != null ) { parentPanel.onMouseOver ( ) ; } }
Source:
public java.lang.Void runInTransaction ( ) { commandsCache.updateCallBackNotified ( commandId ) ; return null ; }

Target:
public void updateCallBackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsCache.updateCallBackNotified ( commandId ) ; }
Source:
public void removeMemoryVolumes ( java.util.Set < java.lang.String > memoryVolumes ) { for ( java.lang.String memoryVols : memoryVolumes ) { removeMemoryVolume ( memoryVols ) ; } }

Target:
protected void removeMemoryVolumes ( java.util.Set < java.lang.String > memoryVolumes ) { for ( java.lang.String memoryVols : memoryVolumes ) { removeMemoryVolume ( memoryVols ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getEntity ( int index , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VM.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) , status , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getEntity ( int index , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.setUpEntityExpectations ( status ) ; }
Source:
public void updateWithCpuLowerThanHost ( ) { createSimpleCommand ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuExists ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuManufacturersMatch ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.clusterVersionIsSupported ( ) ; clusterHasVds ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuFlagsMissing ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }

Target:
public void updateWithCpuLowerThanHost ( ) { createSimpleCommand ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; clusterHasVds ( ) ; cpuFlagsMissing ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters ) ; command.setContext ( context ) ; return command.endAction ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) . endAction ( ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { if ( ( object.getNumberOfVms ( ) ) < 2 ) { return null ; } return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( org.ovirt.engine.ui.uicompat.external.StringUtils.join ( object.getVmNames ( ) , ", " ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { if ( ( object.getNumberOfVms ( ) ) < 2 ) { return null ; } return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( java.lang.String.join ( ", " , object.getVmNames ( ) ) ) ; }
Source:
protected void configure ( ) { install ( new org.ovirt.engine.ui.webadmin.gin.SystemModule ( ) ) ; install ( new org.ovirt.engine.ui.webadmin.gin.PresenterModule ( ) ) ; install ( new org.ovirt.engine.ui.webadmin.gin.UiCommonModule ( ) ) ; install ( new org.ovirt.engine.ui.webadmin.gin.PluginModule ( ) ) ; install ( new org.ovirt.engine.ui.webadmin.gin.UtilsModule ( ) ) ; }

Target:
protected void configure ( ) { install ( new org.ovirt.engine.ui.webadmin.gin.SystemModule ( ) ) ; install ( new org.ovirt.engine.ui.webadmin.gin.UiCommonModule ( ) ) ; install ( new org.ovirt.engine.ui.webadmin.gin.PresenterModule ( ) ) ; install ( new org.ovirt.engine.ui.webadmin.gin.PluginModule ( ) ) ; install ( new org.ovirt.engine.ui.webadmin.gin.UtilsModule ( ) ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = org.ovirt.engine.api.restapi.resource.AbstractBackendVnicProfilesResourceTest.setUpUriExpectations ( null ) ; setUpVnicProfilesQueryExpectations ( null ) ; control.replay ( ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( org.ovirt.engine.api.restapi.resource.AbstractBackendVnicProfilesResourceTest.getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = org.ovirt.engine.api.restapi.resource.AbstractBackendVnicProfilesResourceTest.setUpUriExpectations ( null ) ; setUpVnicProfilesQueryExpectations ( null ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( org.ovirt.engine.api.restapi.resource.AbstractBackendVnicProfilesResourceTest.getCollection ( ) ) ; }
Source:
protected void updateDetailsAvailability ( ) { super . updateDetailsAvailability ( ) ; org.ovirt.engine.core.common.businessentities.network.NetworkView network = ( ( org.ovirt.engine.core.common.businessentities.network.NetworkView ) ( getSelectedItem ( ) ) ) ; networkExternalSubnetListModel.setIsAvailable ( ( ( network != null ) && ( network.isExternal ( ) ) ) ) ; }

Target:
protected void updateDetailsAvailability ( ) { super . updateDetailsAvailability ( ) ; org.ovirt.engine.core.common.businessentities.network.NetworkView network = getSelectedItem ( ) ; networkExternalSubnetListModel.setIsAvailable ( ( ( network != null ) && ( network.isExternal ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getStoragePoolId ( ) { return ( getSourceVmFromDb ( ) ) != null ? getSourceVmFromDb ( ) . getstorage_pool_id ( ) : null ; }

Target:
public org.ovirt.engine.core.compat.NGuid getStoragePoolId ( ) { return ( getSourceVmFromDb ( ) ) != null ? getSourceVmFromDb ( ) . getStoragePoolId ( ) : null ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > repoImages = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) ( model ) ) . invokeClient ( repoImages ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > repoImages = returnValue.getReturnValue ( ) ; invokeClient ( repoImages ) ; }
Source:
public void testGetWithPermissionsUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.storage_domains result = dao.get ( existingDomain.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithPermissionsUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.get ( existingDomain.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.IVdsEventListener getEventListener ( ) { org.ovirt.engine.core.common.businessentities.IVdsEventListener eventListener = org.ovirt.engine.core.utils.ejb.EjbUtils.findBean ( BeanType.VDS_EVENT_LISTENER , BeanProxyType.LOCAL ) ; if ( eventListener != null ) { return eventListener ; } else { return this ; } }

Target:
public org.ovirt.engine.core.common.businessentities.IVdsEventListener getEventListener ( ) { return org.ovirt.engine.core.utils.ejb.EjbUtils.findBean ( BeanType.VDS_EVENT_LISTENER , BeanProxyType.LOCAL ) ; }
Source:
public void testLGetWithCustomGlobalHeader ( ) { clusterService.get ( ) . send ( ) ; org.junit.Assert.assertEquals ( getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) , "value" ) ; }

Target:
public void testLGetWithCustomGlobalHeader ( ) { clusterService.get ( ) . send ( ) ; org.junit.Assert.assertEquals ( "value" , getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) ) ; }
Source:
public void canExecute ( ) { org.junit.Assert.assertEquals ( result , org.ovirt.engine.core.common.VdcActionUtils.CanExecute ( java.util.Collections.singletonList ( toTest ) , toTest.getClass ( ) , action ) ) ; }

Target:
public void canExecute ( ) { org.junit.Assert.assertEquals ( result , org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Collections.singletonList ( toTest ) , toTest.getClass ( ) , action ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( model ) ) ; java.util.Collection < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; storageModel.postUpdateHost ( hosts ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts ) { postUpdateHost ( hosts ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.dataCenterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.StoragePool > ) ( returnValue ) ) ) ; prepare2 ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > returnValue ) { context.dataCenterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( returnValue ) ; prepare2 ( ) ; }
Source:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.String > mapRow ( java.sql.ResultSet rs , int arg1 ) throws java.sql.SQLException { return new org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.String > ( getGuid ( rs , "vds_id" ) , rs.getString ( "network_name" ) ) ; }

Target:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.String > mapRow ( java.sql.ResultSet rs , int arg1 ) throws java.sql.SQLException { return new org.ovirt.engine.core.common.utils.Pair ( getGuid ( rs , "vds_id" ) , rs.getString ( "network_name" ) ) ; }
Source:
public void testGetAllForStoragePoolAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePoolAndStatus ( existingVds.getstorage_pool_id ( ) , existingVds.getstatus ( ) ) ; assertCorrectGetAllResult ( result ) ; }

Target:
public void testGetAllForStoragePoolAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePoolAndStatus ( existingVds.getStoragePoolId ( ) , existingVds.getstatus ( ) ) ; assertCorrectGetAllResult ( result ) ; }
Source:
boolean isSetParentName ( org.ovirt.engine.api.model.Tag tag ) { return ( ( tag.isSetParent ( ) ) && ( tag.getParent ( ) . isSetTag ( ) ) ) && ( tag.getParent ( ) . getTag ( ) . isSetName ( ) ) ; }

Target:
boolean isSetParentName ( org.ovirt.engine.api.model.Tag tag ) { return ( tag.isSetParent ( ) ) && ( tag.getParent ( ) . isSetName ( ) ) ; }
Source:
private void mockStorageDomainValidatorWithoutSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForDiskWithSnapshots ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; }

Target:
private void mockStorageDomainValidatorWithoutSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForDiskWithSnapshots ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getMacPoolListModel ( ) . setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.MacPool > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; stopProgress ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { getMacPoolListModel ( ) . setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.MacPool > ) ( returnValue.getReturnValue ( ) ) ) ) ; stopProgress ( ) ; }
Source:
public void setbuild_name ( java.lang.String value ) { this . buildName = value ; this . getVersion ( ) . setBuildName ( value ) ; }

Target:
public void setbuild_name ( java.lang.String value ) { this . buildName = value ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { super . ExecuteVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getVds ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { super . ExecuteVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getVds ( ) , false ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.ProceedProxyReturnValue ( ) ; }
Source:
public static void getVmTemplatesWithPermittedAction ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters getEntitiesWithPermittedActionParameters = new org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters ( ) ; getEntitiesWithPermittedActionParameters.setActionGroup ( actionGroup ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetVmTemplatesWithPermittedAction , getEntitiesWithPermittedActionParameters , aQuery ) ; }

Target:
public static void getVmTemplatesWithPermittedAction ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters getEntitiesWithPermittedActionParameters = new org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters ( ) ; getEntitiesWithPermittedActionParameters.setActionGroup ( actionGroup ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplatesWithPermittedAction , getEntitiesWithPermittedActionParameters , aQuery ) ; }
Source:
private static java.lang.String buildUrl ( java.lang.String service , java.lang.String params ) { return ( ( "/" + ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getInstance ( ) . getRelativePath ( ) ) ) + service ) + ( params != null ? params : "" ) ; }

Target:
private static java.lang.String buildUrl ( java.lang.String service , java.lang.String params ) { return ( ( "/" + ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getRelativePath ( ) ) ) + service ) + ( params != null ? params : "" ) ; }
Source:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; updateWanColorDepthOptions ( spice ) ; updateWANDisableEffects ( spice ) ; spice.setSpiceProxyEnabled ( isSpiceProxyDefined ( ) ) ; }

Target:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; updateWanColorDepthOptions ( spice ) ; updateWANDisableEffects ( spice ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain dom ) { return ( ( dom.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) || ( ( dom.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Locked ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain dom ) { return ( ( dom.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) || ( ( dom.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Locked ) ) ; }
Source:
public void onMouseOver ( com.google.gwt.event.dom.client.MouseOverEvent event ) { if ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( title ) ) { tooltip.setHTML ( title ) ; tooltipPanel.showRelativeTo ( this ) ; } }

Target:
public void onMouseOver ( com.google.gwt.event.dom.client.MouseOverEvent event ) { if ( ! ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( title ) ) ) { tooltip.setHTML ( title ) ; tooltipPanel.showRelativeTo ( this ) ; } }
Source:
public int getWarningLowSpaceSize ( ) { return ( getWarningLowSpaceIndicator ( ) ) == null ? 0 : ( ( getTotalDiskSize ( ) ) * ( getWarningLowSpaceIndicator ( ) ) ) / 100 ; }

Target:
public int getWarningLowSpaceSize ( ) { return ( ( getWarningLowSpaceIndicator ( ) ) == null ) || ( ( getTotalDiskSize ( ) ) == null ) ? 0 : ( ( getTotalDiskSize ( ) ) * ( getWarningLowSpaceIndicator ( ) ) ) / 100 ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , "Active VM" , snapshotStatus , SnapshotType.ACTIVE , vm , false , memoryVolume , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , snapshotStatus , memoryVolume , null , compensationContext ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addSoundDevice ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addSoundDevice ( vmBase.getId ( ) , vmBase.getOsId ( ) , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vmBase ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addSoundDevice ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return addSoundDevice ( vmBase.getId ( ) , vmBase.getOsId ( ) , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vmBase ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { if ( ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( VdsmEnv.OVIRT_NODE ) ) ) ) { _messages.post ( InstallerMessages.Severity.INFO , "Host is hypervisor" ) ; _setNode ( ) ; } return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { if ( ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( VdsmEnv.OVIRT_NODE ) ) ) ) { _messages.post ( InstallerMessages.Severity.INFO , "Host is hypervisor" ) ; _setNode ( ) ; } return true ; }
Source:
public void testDefaultConfigurationValues ( ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getDefaultTimeZoneConfigurationKey ( ) , ConfigurationValues.DefaultWindowsTimeZone ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.common.TimeZoneTypeTest.general.getDefaultTimeZoneConfigurationKey ( ) , ConfigurationValues.DefaultGeneralTimeZone ) ; }

Target:
public void testDefaultConfigurationValues ( ) { org.junit.Assert.assertEquals ( ConfigurationValues.DefaultWindowsTimeZone , org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getDefaultTimeZoneConfigurationKey ( ) ) ; org.junit.Assert.assertEquals ( ConfigurationValues.DefaultGeneralTimeZone , org.ovirt.engine.core.common.TimeZoneTypeTest.general.getDefaultTimeZoneConfigurationKey ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.VDS localStorageHost = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; clusterGuideModel.localStorageHost = localStorageHost ; clusterGuideModel.updateOptionsLocalFS ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; clusterGuideModel.localStorageHost = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; clusterGuideModel.updateOptionsLocalFS ( ) ; }
Source:
public void setEntity ( java.lang.Object value ) { updateIsMemorySnapshotSupported ( value ) ; updateIsLiveMergeSupported ( value ) ; super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; updateVmActiveDisks ( ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.VM value ) { updateIsMemorySnapshotSupported ( value ) ; updateIsLiveMergeSupported ( value ) ; super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; updateVmActiveDisks ( ) ; }
Source:
public void setRetryPolicy ( org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy ) { this . policy = policy ; }

Target:
public void setRetryPolicy ( org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy ) { this . client.setRetryPolicy ( policy ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.lang.String content = ( ( java.lang.String ) ( returnValue ) ) ; getContentModel ( ) . getContent ( ) . setEntity ( content ) ; stopProgress ( ) ; }

Target:
public void onSuccess ( java.lang.String content ) { getContentModel ( ) . getContent ( ) . setEntity ( content ) ; stopProgress ( ) ; }
Source:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ) ; }

Target:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
public void onSuccess ( java.lang.Object model1 , java.lang.Object returnValue ) { this . setItems ( ( ( java.util.List < P > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object returnValue ) { this . setItems ( ( ( java.util.List < P > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }