auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setOrder ( org.ovirt.engine.core.common.businessentities.FenceAgentOrder order ) { this . order = order ; }

Target:
public void setPmProxyPreferences ( java.lang.String pmProxyPreferences ) { this . pmProxyPreferences = pmProxyPreferences ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.action.ProcessOvfUpdateForStoragePoolParameters parameters = new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStoragePoolParameters ( storagePoolId ) ; return backend.runInternalAction ( VdcActionType.ProcessOvfUpdateForStoragePool , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.action.StoragePoolParametersBase parameters = new org.ovirt.engine.core.common.action.StoragePoolParametersBase ( storagePoolId ) ; return backend.runInternalAction ( VdcActionType.ProcessOvfUpdateForStoragePool , parameters ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getStorageDomainIdForPoolByType ( org.ovirt.engine.core.compat.Guid pool , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { org.ovirt.engine.core.compat.Guid returnValue = org.ovirt.engine.core.compat.Guid.Empty ; org.ovirt.engine.core.common.businessentities.StorageDomain domain = getStorageDomainByTypeAndPool ( pool , type ) ; if ( domain != null ) { returnValue = domain.getId ( ) ; } return returnValue ; }

Target:
private org.ovirt.engine.core.compat.Guid getStorageDomainIdForPoolByType ( org.ovirt.engine.core.compat.Guid pool , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { org.ovirt.engine.core.compat.Guid returnValue = org.ovirt.engine.core.compat.Guid.Empty ; org.ovirt.engine.core.common.businessentities.StorageDomain domain = getStorageDomain ( pool , type ) ; if ( domain != null ) { returnValue = domain.getId ( ) ; } return returnValue ; }
Source:
public static org.ovirt.engine.core.common.errors.VdcBllErrors forValue ( int value ) { return org.ovirt.engine.core.common.errors.VdcBllErrors.mappings.get ( value ) ; }

Target:
public static org.ovirt.engine.core.common.errors.EngineError forValue ( int value ) { return org.ovirt.engine.core.common.errors.EngineError.mappings.get ( value ) ; }
Source:
protected void EndRemoveTemplate ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateFromImportExportCommand.setCommandShouldBeLogged ( false ) ; org.ovirt.engine.core.bll.RemoveVmTemplateFromImportExportCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateFromImportExportCommand.setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNotDuringSnapshot ( org.ovirt.engine.core.compat.Guid vmId ) { if ( getSnapshotDao ( ) . exists ( vmId , SnapshotStatus.LOCKED ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT ) ; } return new org.ovirt.engine.core.bll.ValidationResult ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmNotDuringSnapshot ( org.ovirt.engine.core.compat.Guid vmId ) { if ( getSnapshotDao ( ) . exists ( vmId , SnapshotStatus.LOCKED ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void passthroughNotChangedUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( true , true , true ) ; org.junit.Assert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughChangedNotUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( false , true , false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.Snapshot prepareSnapshotConfigWithoutImageSingleImage ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot , org.ovirt.engine.core.compat.Guid imageId ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.prepareSnapshotConfigWithAlternateImage ( snapshot , imageId , null ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.Snapshot prepareSnapshotConfigWithoutImageSingleImage ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot , org.ovirt.engine.core.compat.Guid imageId ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.prepareSnapshotConfigWithAlternateImage ( snapshot , imageId , null , new org.ovirt.engine.core.utils.ovf.OvfManager ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.AttachedStorageDomainResource getAttachedStorageDomainResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResource ( id , dataCenterId , org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResource.SUB_COLLECTIONS ) ) ; }

Target:
public org.ovirt.engine.api.resource.AttachedStorageDomainResource getStorageDomainResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResource ( id , dataCenterId , org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResource.SUB_COLLECTIONS ) ) ; }
Source:
public void networkNotInCluster ( ) throws java.lang.Exception { vnicProfileValidationTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) , true , false ) ; }

Target:
public void networkNotInCluster ( ) throws java.lang.Exception { vnicProfileValidationTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) , true , false ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.ExternalSubnet lookupSubnetByName ( java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet subnet : getSubnets ( ) ) { if ( org.apache.commons.lang.ObjectUtils.equals ( subnet.getName ( ) , name ) ) { return subnet ; } } return null ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.ExternalSubnet lookupSubnetByName ( java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet subnet : getSubnets ( ) ) { if ( java.util.Objects.equals ( subnet.getName ( ) , name ) ) { return subnet ; } } return null ; }
Source:
public static boolean hasVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVirtioScsiControllers ( vmId ) . isEmpty ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId ) { return getVirtioScsiControllers ( vmId , null , false ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.FileStatsReturnForXmlRpc getIsoList ( java.lang.String spUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.VolumeInfoReturnForXmlRpc getVolumeInfo ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
protected org.ovirt.engine.core.dao.BusinessEntitySnapshotDAO getBusinessEntitySnapshotDAO ( ) { return null ; }

Target:
protected boolean validateUsbPolicy ( ) { return true ; }
Source:
public void updateStatusOfImagesByImageGroupId ( org.ovirt.engine.core.compat.Guid imageGroupId , org.ovirt.engine.core.common.businessentities.ImageStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "image_group_id" , imageGroupId ) . addValue ( "status" , status ) ; getCallsHandler ( ) . executeModification ( "UpdateStatusOfImagesByImageGroupId" , parameterSource ) ; }

Target:
public void updateStatusOfImagesByImageGroupId ( org.ovirt.engine.core.compat.Guid imageGroupId , org.ovirt.engine.core.common.businessentities.storage.ImageStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "image_group_id" , imageGroupId ) . addValue ( "status" , status ) ; getCallsHandler ( ) . executeModification ( "UpdateStatusOfImagesByImageGroupId" , parameterSource ) ; }
Source:
public void setUp ( ) { disk1 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk2 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk3 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; }

Target:
public void setUp ( ) { disk1 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk2 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk3 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; org.mockito.Mockito.when ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) ) . thenReturn ( storageDomainDaoMock ) ; }
Source:
public org.ovirt.engine.api.model.VmPool doPopulate ( org.ovirt.engine.api.model.VmPool pool , org.ovirt.engine.api.model.VmPool entity ) { return pool ; }

Target:
public org.ovirt.engine.api.model.VmPool doPopulate ( org.ovirt.engine.api.model.VmPool pool , org.ovirt.engine.api.model.VmPool entity ) { setRngDevice ( pool ) ; return pool ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . quotaTemplateSubTabLabel ( ) , 3 , ginjector.getSubTabQuotaTemplateModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.quotaTemplateSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionType getActionType ( ) { return super . getActionType ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionType getActionType ( ) { return ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? super . getActionType ( ) : org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getParentCommand ( ) ; }
Source:
private boolean isDummyLun ( org.ovirt.engine.core.common.businessentities.LUNs lun ) { return lun.getLUN_id ( ) . startsWith ( BusinessEntitiesDefinitions.DUMMY_LUN_ID_PREFIX ) ; }

Target:
private boolean isDummyLun ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { return lun.getLUN_id ( ) . startsWith ( BusinessEntitiesDefinitions.DUMMY_LUN_ID_PREFIX ) ; }
Source:
protected com.gwtplatform.mvp.client.proxy.PlaceRequest getMainTabRequest ( ) { return new com.gwtplatform.mvp.client.proxy.PlaceRequest ( org.ovirt.engine.ui.webadmin.place.ApplicationPlaces.providerMainTabPlace ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.network.NetworkView network , java.lang.String value ) { systemTreeModelProvider.setSelectedItem ( network.getId ( ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; }
Source:
public void setSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol selectedProtocol ) { setSelectedProtocol ( selectedProtocol , this ) ; }

Target:
public void setSelectedHasConsoleModels ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel > selectedHasConsoleModels ) { this . selectedHasConsoleModels = selectedHasConsoleModels ; }
Source:
public void passthroughChangedUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( true , false , true ) ; org.junit.Assert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , failsWithVnicProfileInUse ( ) ) ; }

Target:
public void passthroughChangedUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( true , false , true ) ; org.junit.Assert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.failsWithVnicProfileInUse ( ) ) ; }
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 vdsGroup ) { return vdsGroup.getName ( ) ; }
Source:
public void onKeyUp ( com.google.gwt.event.dom.client.KeyUpEvent event ) { if ( ( org.ovirt.engine.ui.common.widget.dialog.tab.DialogTabPanel.SPACE_KEY_CODE ) == ( event.getNativeKeyCode ( ) ) ) { switchTab ( tab ) ; } }

Target:
public void setContentStyle ( java.lang.String styleName ) { tabContent.addStyleName ( styleName ) ; }
Source:
public void doPolling ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { }

Target:
default void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { }
Source:
private java.util.Map < java.lang.String , java.lang.Object > getVgaVideoDeviceSpecParams ( ) { return java.util.Collections.singletonMap ( VdsProperties.VIDEO_VRAM , java.lang.String.valueOf ( org.ovirt.engine.core.bll.utils.VideoDeviceSettings.VgamemVideoRAMSettings.BASE_RAM_SIZE ) ) ; }

Target:
private java.util.Map < java.lang.String , java.lang.Integer > getVgaVideoDeviceSettings ( ) { return java.util.Collections.singletonMap ( VdsProperties.VIDEO_VRAM , org.ovirt.engine.core.bll.utils.VideoDeviceSettings.VgamemVideoSettings.BASE_RAM_SIZE ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionType getAddStorageDomainVdcAction ( ) { return org.ovirt.engine.core.common.action.VdcActionType.AddPosixFsStorageDomain ; }

Target:
public org.ovirt.engine.core.common.action.ActionType getAddStorageDomainVdcAction ( ) { return org.ovirt.engine.core.common.action.ActionType.AddPosixFsStorageDomain ; }
Source:
public void OnSaveInternalNotFromApprove ( ) { OnSaveInternal ( false ) ; }

Target:
public void onSaveInternalNotFromApprove ( ) { onSaveInternal ( false ) ; }
Source:
protected void commandFinished ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command.getIsCancel ( ) ) { hideAndUnbind ( ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { getView ( ) . removeButtons ( ) ; addFooterButtons ( model ) ; }
Source:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver ) { return performCreate ( task , taskParams , entityResolver , expectBlocking ( ) ) ; }

Target:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.ActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver ) { return performCreate ( task , taskParams , entityResolver , expectBlocking ( ) ) ; }
Source:
protected boolean canPerformHotPlug ( ) { return ( isHotPlugSupported ( ) ) && ( isOsSupportingHotPlug ( ) ) ; }

Target:
protected boolean canPerformDiskHotPlug ( ) { return ( isHotPlugSupported ( ) ) && ( isOsSupportingHotPlug ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > setVolumeLegality ( java.lang.String spID , java.lang.String sdID , java.lang.String imageID , java.lang.String volumeID , java.lang.String legality ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > verifyUntrustedVolume ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID ) ;
Source:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { this . setSystemTreeSelectedItem ( systemTreeSelectedItem ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { this . setSystemTreeSelectedItem ( systemTreeSelectedItem ) ; commonInitialize ( ) ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class , new java.lang.String [ ] { "ServerConnectionId" } , new java.lang.Object [ ] { GUIDS [ 3 ] . toString ( ) } , getEntity ( 3 ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class , new java.lang.String [ ] { "ServerConnectionId" } , new java.lang.Object [ ] { GUIDS [ 3 ] . toString ( ) } , getEntity ( 3 ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { int master_domain_version = getStoragePoolDAO ( ) . increaseStoragePoolMasterVersion ( getStoragePool ( ) . getId ( ) ) ; getStoragePool ( ) . setMasterDomainVersion ( master_domain_version ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { int master_domain_version = getStoragePoolDao ( ) . increaseStoragePoolMasterVersion ( getStoragePool ( ) . getId ( ) ) ; getStoragePool ( ) . setMasterDomainVersion ( master_domain_version ) ; return null ; }
Source:
public static org.ovirt.engine.core.common.businessentities.ServerCpu FindMaxServerCpu ( java.lang.String clusterCpuName , java.lang.String serverFlags , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.FindMaxServerCpu ( clusterCpuName , serverFlags ) ; } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureByCpuName ( java.lang.String name , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.getArchitectureByCpuName ( name ) ; } return null ; }
Source:
public void validateNotEnoughSpace ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmForSpace ( ) ; initVmDiskImage ( false ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; mockStorageDomainValidatorWithoutSpace ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ; }

Target:
public void validateNotEnoughSpace ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; initVmForSpace ( ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; mockStorageDomainValidatorWithoutSpace ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getOs ( ) { return this . getVmOs ( ) ; }

Target:
public java.lang.Boolean getTunnelMigration ( ) { return vmStatic.getTunnelMigration ( ) ; }
Source:
protected void ProceedProxyReturnValue ( ) { org.ovirt.engine.core.common.errors.VdcBllErrors returnStatus = GetReturnValueFromStatus ( getReturnStatus ( ) ) ; switch ( returnStatus ) { case StoragePoolUnknown : break ; default : super . ProceedProxyReturnValue ( ) ; initializeVdsError ( returnStatus ) ; break ; } }

Target:
protected void proceedProxyReturnValue ( ) { org.ovirt.engine.core.common.errors.VdcBllErrors returnStatus = GetReturnValueFromStatus ( getReturnStatus ( ) ) ; switch ( returnStatus ) { case StoragePoolUnknown : break ; default : super . proceedProxyReturnValue ( ) ; initializeVdsError ( returnStatus ) ; break ; } }
Source:
protected org.ovirt.engine.core.compat.Guid getStorageDomainIdForQuery ( ) { if ( doesUserHavePermissionsOnStoragePool ( ) ) { return org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getIsoStorageDomainIdForPool ( getStoragePoolId ( ) ) ; } return null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStorageDomainIdForQuery ( ) { if ( doesUserHavePermissionsOnStoragePool ( ) ) { return org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getIsoStorageDomainIdForPool ( getStoragePoolId ( ) , StorageDomainStatus.Active ) ; } return null ; }
Source:
public void setVncAvailable ( boolean visible ) { vncRadioButton.setEnabled ( visible ) ; vncRadioButton.setTitle ( ( visible ? "" : constants.vncNotAvailable ( ) ) ) ; }

Target:
public void setVncAvailable ( boolean visible ) { vncRadioButton.setEnabled ( visible ) ; vncRadioButton.setTitle ( ( visible ? "" : org.ovirt.engine.ui.common.view.popup.ConsolePopupView.constants.vncNotAvailable ( ) ) ) ; }
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 , false , false , 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.context.CommandContext commandContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , commandContext ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.aaa.AuthzGroup > Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( java.util.List < org.ovirt.engine.core.common.businessentities.aaa.AuthzGroup > ) ( source ) ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ; } return source ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.FileStatsReturnForXmlRpc getIsoList ( java.lang.String spUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturnForXmlRpc verifyUntrustedVolume ( java.lang.String spId , java.lang.String sdId , java.lang.String imgGroupId , java.lang.String imgId ) ;
Source:
public void rollbackQuotaByVmId ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . get ( vmId ) ; if ( vm != null ) { removeQuotaFromCache ( vm.getStoragePoolId ( ) , vm.getQuotaId ( ) ) ; } }

Target:
public void rollbackQuotaByVmId ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.quota.VM vm = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . get ( vmId ) ; if ( vm != null ) { removeQuotaFromCache ( vm.getStoragePoolId ( ) , vm.getQuotaId ( ) ) ; } }
Source:
public void testCleanNotExpiredUsersSessionsNoUsers ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNotNull ( "Get should return the value since the session was not removed" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testCleanNotExpiredUsersSessionsNoUsers ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNotNull ( "Get should return the value since the session was not removed" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
org.ovirt.engine.ui.webadmin.widget.host.VLanPanel createVLanPanel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel lineModel ) { org.ovirt.engine.ui.webadmin.widget.host.VLanPanel panel = new org.ovirt.engine.ui.webadmin.widget.host.VLanPanel ( ) ; panel.setWidth ( "100%" ) ; panel.setHeight ( "100%" ) ; panel.addVLans ( lineModel ) ; return panel ; }

Target:
org.ovirt.engine.ui.webadmin.widget.host.VLanPanel createVLanPanel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel lineModel ) { org.ovirt.engine.ui.webadmin.widget.host.VLanPanel panel = new org.ovirt.engine.ui.webadmin.widget.host.VLanPanel ( isSelectionAvailable ) ; panel.setWidth ( "100%" ) ; panel.setHeight ( "100%" ) ; panel.addVLans ( lineModel ) ; return panel ; }
Source:
public void testGetTreeForEntityWithRoleTypeFilteredWithPermissions ( ) { baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , org.ovirt.engine.core.dao.PRIVILEGED_USER_SESSION_ID , true ) ; }

Target:
public void testGetTreeForEntityWithRoleTypeFilteredWithNoPermissions ( ) { org.junit.Assert.assertNotNull ( unprivilegedUserSession ) ; java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getTreeForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , unprivilegedUserSession.getId ( ) , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }
Source:
public void testNonValidNonPatternName ( ) { org.junit.Assert.assertFalse ( poolNameValidation.validate ( "pool-T453&4f" ) . getSuccess ( ) ) ; }

Target:
public void testNonValidNonPatternName ( ) { org.junit.jupiter.api.Assertions.assertFalse ( poolNameValidation.validate ( "pool-T453&4f" ) . getSuccess ( ) ) ; }
Source:
public static java.lang.Object [ ] comparisonParameters ( ) { return new java.lang.Object [ ] { "www.redhat.com" , "www.redhat.com/" , "www.redhat.com/main" , "www.redhat.com/main/" , "www.redhat.com/main/index.html" , "http://www.redhat.com" , "http://www.redhat.com/" , "http://www.redhat.com/main" , "http://www.redhat.com/main/" , "http://www.redhat.com/main/index.html" , "www.redhat.com:80" , "www.redhat.com:80/" , "www.redhat.com:80/main" , "www.redhat.com:80/main/" , "www.redhat.com:80/main/index.html" , "http://www.redhat.com:80" , "http://www.redhat.com:80/" , "http://www.redhat.com:80/main" , "http://www.redhat.com:80/main/" , "http://www.redhat.com:80/main/index.html" } ; }

Target:
public void runTest ( java.lang.String uriCandidate ) { org.ovirt.engine.ui.uicommonweb.Uri uri = new org.ovirt.engine.ui.uicommonweb.Uri ( uriCandidate ) ; org.junit.jupiter.api.Assertions.assertTrue ( uri.isValid ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( uriCandidate.toLowerCase ( ) , uri.getStringRepresentation ( ) ) ; }
Source:
public void testIsConnectionDoesNotExistForHostAndTargetSucceeds ( ) { org.junit.Assert.assertTrue ( validator.isConnectionDoesNotExistForHostAndTarget ( conn ) . isValid ( ) ) ; }

Target:
public void testIsConnectionDoesNotExistForHostAndTargetSucceeds ( ) { org.junit.jupiter.api.Assertions.assertTrue ( validator.isConnectionDoesNotExistForHostAndTarget ( conn ) . isValid ( ) ) ; }
Source:
public void macAddressTooShortForUpdate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( createShortMacAddress ( ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , true ) ; }

Target:
public void macAddressEmptyForUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( "" , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , true ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.CommandsCache getCommandsCache ( ) { return commandsCache ; }

Target:
public void persistCommandAssociatedEntities ( java.util.Collection < org.ovirt.engine.core.common.businessentities.CommandAssociatedEntity > cmdAssociatedEntities ) { commandsCache.persistCommandAssociatedEntities ( cmdAssociatedEntities ) ; }
Source:
public void testDatacenter ( ) { testValidSql ( "DataCenter: sortby name" , "SELECT * FROM ((SELECT storage_pool.* FROM storage_pool ) ORDER BY name,name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "DataCenter: Clusters.name =Default" , "SELECT * FROM ((SELECT storage_pool.* FROM storage_pool LEFT OUTER JOIN vds_groups_storage_domain ON storage_pool.id=vds_groups_storage_domain.storage_pool_id WHERE vds_groups_storage_domain.name LIKE Default ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testClusters ( ) { testValidSql ( "Clusters: " , "SELECT * FROM ((SELECT distinct vds_groups_view.* FROM vds_groups_view ) ORDER BY name ASC) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void saveAsyncTaskToDb ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . save ( asyncTask ) ; persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.AsyncTasks createAsyncTask ( org.ovirt.engine.core.bll.CommandBase command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return coCoAsyncTaskHelper.createAsyncTask ( command , asyncTaskCreationInfo , parentCommand ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.StorageType getLUNStorageType ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { return lun.getLunConnections ( ) . isEmpty ( ) ? org.ovirt.engine.core.common.businessentities.storage.StorageType.FCP : lun.getLunConnections ( ) . get ( 0 ) . getstorage_type ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.StorageType getLUNStorageType ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { return lun.getLunConnections ( ) . isEmpty ( ) ? org.ovirt.engine.core.common.businessentities.storage.StorageType.FCP : lun.getLunConnections ( ) . get ( 0 ) . getStorageType ( ) ; }
Source:
public void testBooleanElement ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( ( "<vm>" + ( ( "<delete_protected>true</delete_protected>" + "<run_once>false</run_once>" ) + "</vm>" ) ) ) ; org.junit.Assert.assertTrue ( object.getDeleteProtected ( ) ) ; org.junit.Assert.assertFalse ( object.getRunOnce ( ) ) ; }

Target:
public void testBooleanElement ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromXml ( ( "<vm>" + ( ( "<delete_protected>true</delete_protected>" + "<run_once>false</run_once>" ) + "</vm>" ) ) ) ; org.junit.Assert.assertTrue ( object.deleteProtected ( ) ) ; org.junit.Assert.assertFalse ( object.runOnce ( ) ) ; }
Source:
public void testIsNotLocalFsWithDefaultCluster ( ) { storagePool.setstorage_pool_type ( StorageType.LOCALFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertTrue ( validator.isNotLocalfsWithDefaultCluster ( ) ) ; }

Target:
public void testIsNotLocalFsWithDefaultCluster ( ) { storagePool.setstorage_pool_type ( StorageType.LOCALFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertTrue ( validator.isNotLocalfsWithDefaultCluster ( ) . isValid ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol getSelectedProtocol ( ) { return userSelectedDisplayProtocolManager.resolveSelectedProtocol ( this ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol getUserSelectedProtocol ( ) { return userSelectedDisplayProtocolManager.resolveSelectedProtocol ( this ) ; }
Source:
public void canDoActionSucceedsInitFormatDataDomain30 ( ) { sd.setStorageFormat ( null ) ; sp.setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; org.junit.Assert.assertEquals ( "Format not initialized correctly" , StorageFormatType.V1 , sd.getStorageFormat ( ) ) ; }

Target:
public void validateSucceedsInitFormatDataDomain30 ( ) { sd.setStorageFormat ( null ) ; sp.setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; org.junit.Assert.assertEquals ( "Format not initialized correctly" , StorageFormatType.V1 , sd.getStorageFormat ( ) ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.TagDaoTest.TAG_COUNT , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAll ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.TagDaoTest.TAG_COUNT , result.size ( ) ) ; }
Source:
private int NumberOfTasksToPoll ( ) { int retValue = 0 ; for ( org.ovirt.engine.core.bll.SPMAsyncTask task : _tasks.values ( ) ) { if ( task.getShouldPoll ( ) ) { retValue ++ ; } } return retValue ; }

Target:
private int numberOfTasksToPoll ( ) { int retValue = 0 ; for ( org.ovirt.engine.core.bll.SPMAsyncTask task : _tasks.values ( ) ) { if ( task.getShouldPoll ( ) ) { retValue ++ ; } } return retValue ; }
Source:
public void externalNetworkVlanIdChanged ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = mockExternalNetwork ( ) ; org.mockito.Mockito.when ( externalNetwork.getVlanId ( ) ) . thenReturn ( 0 ) ; org.mockito.Mockito.when ( network.getVlanId ( ) ) . thenReturn ( 1 ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }

Target:
public void internalNetworkProvidedByChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; network.setProvidedBy ( null ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }
Source:
public void setUp ( ) { disk1 = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk2 = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk3 = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; }

Target:
public void setUp ( ) { disk1 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk2 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk3 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getVmNICs ( ) { if ( ( vmNICs ) == null ) { vmNICs = getVmNetworkInterfaceDAO ( ) . getAllForVm ( getVm ( ) . getId ( ) ) ; } return vmNICs ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getVmNICs ( ) { if ( ( vmNICs ) == null ) { vmNICs = getVmNetworkInterfaceDao ( ) . getAllForVm ( getVm ( ) . getId ( ) ) ; } return vmNICs ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( disk ) ) . getImageId ( ) . toString ( ) : null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( disk ) ) . getImageId ( ) . toString ( ) : null ; }
Source:
public void poolHasDefaultCluster ( ) { org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.DEFAULT_VDS_GROUP_ID ) ; addDefaultClusterToPool ( ) ; storagePoolWithLocalFS ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; }

Target:
public void poolHasDefaultCluster ( ) { org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.DEFAULT_VDS_GROUP_ID ) ; addDefaultClusterToPool ( ) ; storagePoolWithLocalFS ( ) ; canDoActionFailed ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getDiskImageDynamicDao ( ) ; imageDao = dbFacade.getImageDao ( ) ; diskDao = dbFacade.getBaseDiskDao ( ) ; existingDynamic = dao.get ( org.ovirt.engine.core.dao.DiskImageDynamicDaoTest.EXISTING_IMAGE_ID ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getDiskImageDynamicDao ( ) ; imageDao = dbFacade.getImageDao ( ) ; diskDao = dbFacade.getBaseDiskDao ( ) ; existingDynamic = dao.get ( FixturesTool.IMAGE_ID ) ; }
Source:
protected void orderListOfRunningVmsOnVds ( org.ovirt.engine.core.compat.Guid vdsId ) { vms = org.ovirt.engine.core.bll.MaintenanceVdsCommand.getVmDao ( ) . getAllRunningForVds ( vdsId ) ; java.util.Collections.sort ( vms , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.common.businessentities.comparators.VmsComparer ( ) ) ) ; }

Target:
protected void orderListOfRunningVmsOnVds ( org.ovirt.engine.core.compat.Guid vdsId ) { vms = vmDao.getAllRunningForVds ( vdsId ) ; java.util.Collections.sort ( vms , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.common.businessentities.comparators.VmsComparer ( ) ) ) ; }
Source:
void saveOrUpdate ( org.ovirt.engine.core.common.businessentities.AsyncTasks task , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) ;

Target:
void insertAsyncTaskEntities ( java.util.Collection < org.ovirt.engine.core.common.businessentities.AsyncTaskEntity > asyncTaskEntities ) ;
Source:
public long getTotalMemorySizeInBytes ( ) { return ( ( ( long ) ( ( ( getVmMemSizeMb ( ) ) + 200 ) + ( 64 * ( getNumOfMonitors ( ) ) ) ) ) * 1024 ) * 1024 ; }

Target:
public void setMigrationPolicyId ( org.ovirt.engine.core.compat.Guid migrationPolicyId ) { vmStatic.setMigrationPolicyId ( migrationPolicyId ) ; }
Source:
public void cpuTuneToString ( ) { for ( java.lang.String sample : new java.lang.String [ ] { "0#0" , "0#0_1#1" , "0#0_1#1,2,3,6" } ) { assertEquals ( sample , org.ovirt.engine.api.restapi.types.VmMapper.cpuTuneToString ( org.ovirt.engine.api.restapi.types.VmMapper.stringToCpuTune ( sample ) ) ) ; } }

Target:
public void cpuTuneToString ( ) { for ( java.lang.String sample : new java.lang.String [ ] { "0#0" , "0#0_1#1" , "0#0_1#1,2,3,6" } ) { org.junit.Assert.assertEquals ( sample , org.ovirt.engine.api.restapi.types.VmMapper.cpuTuneToString ( org.ovirt.engine.api.restapi.types.VmMapper.stringToCpuTune ( sample ) ) ) ; } }
Source:
private void applyStyles ( ) { contentEditor.setLabelStyleName ( style.labelStyle ( ) ) ; contentEditor.setContentWidgetStyleName ( style.content ( ) ) ; }

Target:
private void applyStyles ( ) { contentEditor.setLabelStyleName ( style.labelStyle ( ) ) ; contentEditor.setContentWidgetContainerStyleName ( style.content ( ) ) ; }
Source:
public void setCommandType ( org.ovirt.engine.core.common.action.VdcActionType cmdType ) { childCmdEntity.setCommandType ( cmdType ) ; }

Target:
public void setCommandType ( org.ovirt.engine.core.common.action.ActionType cmdType ) { childCmdEntity.setCommandType ( cmdType ) ; }
Source:
private void processVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmCommand.getVds ( ) . getId ( ) ) ; } }

Target:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { decreasePendingVms ( getVdsDestinationId ( ) ) ; org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig get ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig vfsConfig = super . get ( id ) ; return vfsConfig ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > getAllVfsConfigByHostId ( org.ovirt.engine.core.compat.Guid hostId ) { return getCallsHandler ( ) . executeReadList ( "GetAllVfsConfigByHostId" , createEntityRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "host_id" , hostId ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType fromValue ( java.lang.String v ) { try { return org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType.valueOf ( v.toUpperCase ( ) ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }

Target:
public static org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType fromValue ( java.lang.String v ) { try { return org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType.valueOf ( v.toUpperCase ( ) ) ; } catch ( java.lang.IllegalArgumentException e ) { return org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType.UNKNOWN ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.VmIconDefault generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.VmIconDefault ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.NEW_ID , 2 , org.ovirt.engine.core.dao.VmIconDefaultDaoTest.SMALL_ICON_ID , org.ovirt.engine.core.dao.VmIconDefaultDaoTest.LARGE_ICON_ID ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmIconDefault generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.VmIconDefault ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.NEW_ID , 2 , FixturesTool.SMALL_ICON_ID , org.ovirt.engine.core.dao.VmIconDefaultDaoTest.LARGE_ICON_ID ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap loadStoragePoolIsoMap ( ) { return org.ovirt.engine.core.bll.storage.DeactivateStorageDomainWithOvfUpdateCommand.getStoragePoolIsoMapDAO ( ) . get ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( org.ovirt.engine.core.bll.storage.DeactivateStorageDomainWithOvfUpdateCommand.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.DeactivateStorageDomainWithOvfUpdateCommand.getParameters ( ) . getStoragePoolId ( ) ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap loadStoragePoolIsoMap ( ) { return org.ovirt.engine.core.bll.storage.DeactivateStorageDomainWithOvfUpdateCommand.getStoragePoolIsoMapDao ( ) . get ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( org.ovirt.engine.core.bll.storage.DeactivateStorageDomainWithOvfUpdateCommand.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.DeactivateStorageDomainWithOvfUpdateCommand.getParameters ( ) . getStoragePoolId ( ) ) ) ; }
Source:
public static java.lang.String map ( org.ovirt.engine.api.model.VmType type , java.lang.String incoming ) { switch ( type ) { case Desktop : return VmType.DESKTOP.value ( ) ; case Server : return VmType.SERVER.value ( ) ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.VmType map ( org.ovirt.engine.api.model.VmType type , org.ovirt.engine.api.model.VmType incoming ) { switch ( type ) { case Desktop : return org.ovirt.engine.api.model.VmType.DESKTOP ; case Server : return org.ovirt.engine.api.model.VmType.SERVER ; default : return null ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateSysprepVisibility ( object ) ; }

Target:
public java.lang.String getDisplayStringNullSafe ( java.lang.String data ) { return typeAheadNameTemplateNullSafe ( data ) ; }
Source:
private org.ovirt.engine.core.utils.lock.EngineLock createLockForRunVmCommand ( org.ovirt.engine.core.compat.Guid vmId ) { return new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( vmId.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ) ) , null ) ; }

Target:
private void logFailureToRestartHighlyAvailableVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase event = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; event.setVmId ( vmId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( event , AuditLogType.EXCEEDED_MAXIMUM_NUM_OF_RESTART_HA_VM_ATTEMPTS ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.DISABLED ) ; }