auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RemoveStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , new org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback ( ) { @ java.lang.Override public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { } } , this ) ; }

Target:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , new org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback ( ) { @ java.lang.Override public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { } } , this ) ; }
Source:
public void setIsResiliencePolicyTabAvailable ( boolean value ) { if ( ( getisResiliencePolicyTabAvailable ( ) ) != value ) { setisResiliencePolicyTabAvailable ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsResiliencePolicyTabAvailable" ) ) ; } }

Target:
public void setIsResiliencePolicyTabAvailable ( boolean value ) { if ( ( getisResiliencePolicyTabAvailable ( ) ) != value ) { setisResiliencePolicyTabAvailable ( value ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsResiliencePolicyTabAvailable" ) ) ; } }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isShareable ( ) ? getDefaultTitle ( ) : null ) ) ; return object.isShareable ( ) ? getDefaultImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return object.isShareable ( ) ? getDefaultImage ( ) : null ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.uicommon.model.UserPortalDetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmSessionsModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.extended.vm.SubTabExtendedVmSessionsPresenter.constants.extendedVirtualMachineSessionsSubTabLabel ( ) , 11 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.uicommon.model.UserPortalDetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmGuestInfoModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.extended.vm.SubTabExtendedVmGuestInfoPresenter.constants.extendedVirtualMachineGuestInfoSubTabLabel ( ) , 11 , modelProvider ) ; }
Source:
protected void EndVmCommand ( ) { org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.setCommandShouldBeLogged ( false ) ; org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.setSucceeded ( true ) ; }

Target:
protected void endVmCommand ( ) { org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.setCommandShouldBeLogged ( false ) ; org.ovirt.engine.core.bll.RemoveVmFromImportExportCommand.setSucceeded ( true ) ; }
Source:
public static org.ovirt.engine.api.model.DiskStatus map ( org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { switch ( imageStatus ) { case ILLEGAL : return org.ovirt.engine.api.model.DiskStatus.ILLEGAL ; case LOCKED : return org.ovirt.engine.api.model.DiskStatus.LOCKED ; case OK : return org.ovirt.engine.api.model.DiskStatus.OK ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.DiskStatus map ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus imageStatus ) { switch ( imageStatus ) { case ILLEGAL : return org.ovirt.engine.api.model.DiskStatus.ILLEGAL ; case LOCKED : return org.ovirt.engine.api.model.DiskStatus.LOCKED ; case OK : return org.ovirt.engine.api.model.DiskStatus.OK ; default : return null ; } }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3HostNIC nic ) { return adaptAdd ( delegate :: add , nic ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3HostNIC nic ) { return adaptAdd ( getDelegate ( ) :: add , nic ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getIdsOfHostsWithStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return multipleResults ( entityManager.createNamedQuery ( "VdsDynamic.idByStatus" ) . setParameter ( "status" , status.getValue ( ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsDynamic get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetVdsDynamicByVdsId" , org.ovirt.engine.core.dao.VdsDynamicDAODbFacadeImpl.VdcDynamicRowMapper.instance , parameterSource ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }

Target:
public void getConfigurationValueBoolean ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Boolean > aQuery , org.ovirt.engine.core.common.queries.ConfigurationValues configVal ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( java.lang.Boolean.TRUE ) ; getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( configVal , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
Source:
void setFeedbackText ( java.lang.String feedbackText ) ;

Target:
void setFeedbackText ( java.lang.String feedbackText , java.lang.String feedbackTitle ) ;
Source:
public void validateFailureOnCopyingCinderDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; command.init ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnCopyingLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) , null ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; command.init ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
protected void setActionMessageParameters ( ) { switch ( getParameters ( ) . getAction ( ) ) { case START : addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; break ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME_BRICK ) ; }

Target:
protected void setActionMessageParameters ( ) { switch ( getParameters ( ) . getAction ( ) ) { case START : addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; break ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_BRICK ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.VnicProfile getProfile ( ) { return null ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( ) { org.ovirt.engine.core.common.action.VnicProfileParameters parameters = new org.ovirt.engine.core.common.action.VnicProfileParameters ( getProfile ( ) ) ; parameters.setPublicUse ( ( ( java.lang.Boolean ) ( getPublicUse ( ) . getEntity ( ) ) ) ) ; return parameters ; }
Source:
public void smallerThan ( ) { org.junit.Assert.assertTrue ( Version.v3_6.less ( Version.v4_0 ) ) ; org.junit.Assert.assertFalse ( Version.v4_0.less ( Version.v3_6 ) ) ; }

Target:
public void smallerThan ( ) { org.junit.jupiter.api.Assertions.assertTrue ( Version.v3_6.less ( Version.v4_0 ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( Version.v4_0.less ( Version.v3_6 ) ) ; }
Source:
private org.ovirt.engine.api.model.Network getNetwork ( ) { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , id ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveParameters ( org.ovirt.engine.api.model.Network entity ) { return new org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter ( cluster.getCluster ( ) , entity ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getStopCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel defaultConsoleModel = getMainModel ( ) . getDefaultConsoleModel ( ) ; return defaultConsoleModel != null ? defaultConsoleModel.getConnectCommand ( ) : null ; }
Source:
public void setlibvirt_version ( org.ovirt.engine.core.compat.RpmVersion value ) { this . libvirt_version = value ; }

Target:
public void setGlusterVersion ( org.ovirt.engine.core.compat.RpmVersion value ) { glusterVersion = value ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator getDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk , org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVmDeviceUtils ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidator getDiskVmElementValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk , org.ovirt.engine.core.common.businessentities.storage.DiskVmElement diskVmElement ) { return new org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidator ( disk , diskVmElement ) ; }
Source:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterHostListModel > getClusterHostListProvider ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterHostListModel > ( ginjector , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel.class , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterHostListModel.class ) ; }

Target:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterHostListModel > getClusterHostListProvider ( com.google.gwt.event.shared.EventBus eventBus , com.google.inject.Provider < org.ovirt.engine.ui.common.presenter.popup.DefaultConfirmationPopupPresenterWidget > defaultConfirmPopupProvider ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterHostListModel > ( eventBus , defaultConfirmPopupProvider , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel.class , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterHostListModel.class ) ; }
Source:
public java.lang.String getGlusterVolumeName ( ) { if ( ( ( glusterVolumeName ) == null ) && ( ( getGlusterVolume ( ) ) != null ) ) { glusterVolumeName = getGlusterVolume ( ) . getName ( ) ; } return glusterVolumeName ; }

Target:
public java.lang.String getGlusterVolumeName ( ) { if ( ( org.apache.commons.lang.StringUtils.isEmpty ( glusterVolumeName ) ) && ( ( getGlusterVolume ( ) ) != null ) ) { glusterVolumeName = getGlusterVolume ( ) . getName ( ) ; } return glusterVolumeName ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getDiskDescription ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getDiskDescription ( ) ; }
Source:
public java.util.Date getExportDate ( ) { return this . mVmStatic.getExportDate ( ) ; }

Target:
public java.util.Date getExportDate ( ) { return this . vmStatic.getExportDate ( ) ; }
Source:
public void clearVdsFromCache ( org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.infoFormat ( "Clearing cache of pool: {0} for problematic entities of VDS: {1}." , _storagePoolId , vdsName ) ; clearDomainFromCache ( null , java.util.Arrays.asList ( vdsId ) ) ; }

Target:
public void clearCache ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.info ( "clearing cache for problematic entities in pool '{}'." , _storagePoolId ) ; _timers.clear ( ) ; _domainsInProblem.clear ( ) ; }
Source:
public org.ovirt.engine.api.model.Templates list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVmTemplates , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.VmTemplate ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VmTemplate ) ) ; } }

Target:
public org.ovirt.engine.api.model.Templates list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllVmTemplates , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.VmTemplate ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VmTemplate ) ) ; } }
Source:
public void validateVmMemoryCantStartOnVdsVmTooBig ( ) { vm.setMinAllocatedMem ( 8865 ) ; vm.setVmMemSizeMb ( 8865 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCantStartOnVdsVmTooBig ( ) { vm.setMinAllocatedMem ( 8865 ) ; vm.setVmMemSizeMb ( 8865 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.jupiter.api.Assertions.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvds_id ( ) { return this . vdsId ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsId ( ) { return vdsId ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notExternalNetwork ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.EXTERNAL_NETWORK_CANNOT_BE_PROVISIONED ) . when ( getNetwork ( ) . isExternal ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notExternalNetwork ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.EXTERNAL_NETWORK_HAVING_NAME_CANNOT_BE_PROVISIONED ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , getNetwork ( ) . getName ( ) ) ) . when ( getNetwork ( ) . isExternal ( ) ) ; }
Source:
private void setNewMap ( java.util.concurrent.ConcurrentMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.tasks.interfaces.SPMTask > asyncTaskMap ) { _tasks = asyncTaskMap ; logChangedMap = true ; org.ovirt.engine.core.bll.tasks.AsyncTaskManager.log.infoFormat ( "Setting new tasks map. The map contains now {0} tasks" , _tasks.size ( ) ) ; }

Target:
private void setNewMap ( java.util.concurrent.ConcurrentMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.tasks.interfaces.SPMTask > asyncTaskMap ) { _tasks = asyncTaskMap ; logChangedMap = true ; org.ovirt.engine.core.bll.tasks.AsyncTaskManager.log.info ( "Setting new tasks map. The map contains now tasks" , _tasks.size ( ) ) ; }
Source:
public void canDetectMissingRequiredHostNumaNodes ( ) { existingNumaNodes.set ( 0 , org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 , vdsNumaNodes ) ) ; vdsNumaNodes.remove ( 0 ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromParams ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_NODE_HOST_NODE_INVALID_INDEX ) ; }

Target:
public void canDetectMissingRequiredHostNumaNodes ( ) { existingNumaNodes.set ( 0 , org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 0 , vdsNumaNodes ) ) ; vdsNumaNodes.remove ( 0 ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromParams ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VM_NUMA_NODE_HOST_NODE_INVALID_INDEX ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = notAllowToRunAction ( actionType ) ; if ( returnValue != null ) { return returnValue ; } return runActionImpl ( actionType , parameters , false , null ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = notAllowToRunAction ( actionType ) ; if ( returnValue != null ) { return returnValue ; } return runActionImpl ( actionType , parameters , false , null ) ; }
Source:
private static org.ovirt.engine.core.dao.DiskImageDao getDiskImageDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskImageDao ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.Disk loadActiveDisk ( org.ovirt.engine.core.compat.Guid diskId ) { return diskDao.get ( diskId ) ; }
Source:
protected void checkMaxMemoryOverCommitValue ( ) { if ( ( getVdsGroup ( ) . getmax_vds_memory_over_commit ( ) ) <= 0 ) { getVdsGroup ( ) . setmax_vds_memory_over_commit ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.MaxVdsMemOverCommit ) ) ; } }

Target:
protected void checkMaxMemoryOverCommitValue ( ) { if ( ( getVdsGroup ( ) . getMaxVdsMemoryOverCommit ( ) ) <= 0 ) { getVdsGroup ( ) . setMaxVdsMemoryOverCommit ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.MaxVdsMemOverCommit ) ) ; } }
Source:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmPoolId ( ) ) != null ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDAO ( ) . removeVmFromVmPool ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.setSucceeded ( true ) ; } }

Target:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmPoolId ( ) ) != null ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . removeVmFromVmPool ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.setSucceeded ( true ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomainByTypeAndPool ( org.ovirt.engine.core.compat.Guid pool , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { return getCallsHandler ( ) . executeRead ( "Getstorage_domain_by_type_and_storagePoolId" , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "storage_pool_id" , pool ) . addValue ( "storage_domain_type" , type.getValue ( ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { return getCallsHandler ( ) . executeRead ( "Getstorage_domain_by_type_and_storagePoolId" , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "storage_pool_id" , poolId ) . addValue ( "storage_domain_type" , type.getValue ( ) ) ) ; }
Source:
public void setVmPauseStatus ( org.ovirt.engine.core.common.businessentities.VmPauseStatus aPauseStatus ) { this . mVmDynamic.setPauseStatus ( aPauseStatus ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmPauseStatus getVmPauseStatus ( ) { return this . vmDynamic.getPauseStatus ( ) ; }
Source:
private void cancelTasks ( ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.cancelTasks ( this ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.AsyncTask createAsyncTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.createAsyncTask ( this , asyncTaskCreationInfo , parentCommand ) ; }
Source:
public void testGetHasNoPermission ( ) { org.ovirt.engine.core.common.businessentities.network.VnicProfile result = dao.get ( FixturesTool.VM_NETWORK_INTERFACE_PROFILE , org.ovirt.engine.core.dao.network.VnicProfileDaoTest.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetAllForNetwork ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfile > result = dao.getAllForNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }
Source:
java.lang.String percentWithValueInGB ( int percent , int value ) ;

Target:
java.lang.String percentWithValueInGiB ( int percent , int value ) ;
Source:
public void unlinkedWhenUnlinkingNotSupported ( ) throws java.lang.Exception { unlinkingTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED ) , false , false ) ; }

Target:
public void unlinkedWhenUnlinkingNotSupported ( ) throws java.lang.Exception { unlinkingTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) , false , false ) ; }
Source:
public void getUserProfile ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetUserProfile , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void getUserProfile ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetUserProfile , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) . withoutRefresh ( ) , aQuery ) ; }
Source:
public void remove ( final org.ovirt.engine.core.compat.Guid commandId ) { commandMap.remove ( commandId ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . remove ( commandId ) ; }

Target:
public void remove ( final org.ovirt.engine.core.compat.Guid commandId ) { commandMap.remove ( commandId ) ; commandEntityDao.remove ( commandId ) ; }
Source:
public void testGetWithInvalidExternalId ( ) { org.ovirt.engine.core.common.utils.ExternalId externalId = new org.ovirt.engine.core.common.utils.ExternalId ( 0 ) ; org.ovirt.engine.core.common.businessentities.DbGroup result = dao.getByExternalId ( "rhel" , externalId ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidExternalId ( ) { org.ovirt.engine.core.common.businessentities.DbGroup result = dao.getByExternalId ( "rhel" , "0" ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private static void assertCorrectGetAllResult ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
private static void assertCorrectGetAllResult ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public static void init ( ) { java.nio.file.Path directoryPath = new java.io.File ( org.ovirt.engine.core.utils.osinfo.OsInfoPreferencesLoader.class . getResource ( "/osinfo.conf.d" ) . getPath ( ) ) . toPath ( ) ; OsInfoPreferencesLoader.INSTANCE.init ( directoryPath ) ; }

Target:
public static void init ( ) throws java.net.URISyntaxException { java.nio.file.Path directoryPath = new java.io.File ( org.ovirt.engine.core.utils.osinfo.OsInfoPreferencesLoader.class . getResource ( "/osinfo.conf.d" ) . toURI ( ) . getPath ( ) ) . toPath ( ) ; OsInfoPreferencesLoader.INSTANCE.init ( directoryPath ) ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.getIsPool ( ) ? constants.takeVmLabel ( ) : constants.runVmLabel ( ) ; }

Target:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? constants.takeVmLabel ( ) : constants.runVmLabel ( ) ; }
Source:
protected void setPostZero ( boolean value ) { privatePostZero = value ; }

Target:
public void setPostZero ( boolean postZero ) { privatePostZero = postZero ; }
Source:
protected void SyncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VDS ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . SyncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VDS ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public org.ovirt.engine.api.resource.DeviceResource < org.ovirt.engine.api.model.Nic > getNicResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateNicResource ( parentId , id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }

Target:
public org.ovirt.engine.api.resource.TemplateNicResource getNicResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateNicResource ( id , templateId ) ) ; }
Source:
public void setText ( com.google.gwt.safehtml.shared.SafeHtml text ) { infoPanel.setWidget ( new com.google.gwt.user.client.ui.HTML ( text ) ) ; }

Target:
public void onMouseOver ( com.google.gwt.event.dom.client.MouseOverEvent event ) { setWidget ( infoImageHover ) ; infoPanel.showRelativeTo ( this ) ; }
Source:
protected org.ovirt.engine.api.resteasy.json.CustomObjectMapper setSerializer ( org.codehaus.jackson.map.ser.CustomSerializerFactory ser ) { setSerializerFactory ( ser ) ; getSerializationConfig ( ) . setSerializationView ( java.lang.String.class ) ; return this ; }

Target:
protected org.ovirt.engine.api.json.CustomObjectMapper setSerializer ( org.codehaus.jackson.map.ser.CustomSerializerFactory ser ) { setSerializerFactory ( ser ) ; getSerializationConfig ( ) . setSerializationView ( java.lang.String.class ) ; return this ; }
Source:
public void parametersWithSecureDeletionAreFixedOnFileDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true ) , true ) ; assertPostZeroValue ( parameters , false ) ; }

Target:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixPostZeroField ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false , false ) , false ) ; assertPostZeroValue ( parameters , false ) ; }
Source:
protected abstract boolean matchEntity ( Q entity , org.ovirt.engine.core.compat.Guid id ) ;

Target:
protected abstract < T > boolean matchEntity ( Q entity , T id ) ;
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc fenceSpmStorage ( java.lang.String spUUID , int prevID , java.lang.String prevLVER ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepConfigSet ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String configValue ) ;
Source:
public java.lang.String getTemplate ( java.lang.String type , java.lang.String name ) { org.ovirt.engine.sdk.codegen.utils.StringTemplateWrapper templateWrapper = new org.ovirt.engine.sdk.codegen.utils.StringTemplateWrapper ( getTemplate ( ) ) ; templateWrapper.set ( "type" , type ) ; templateWrapper.set ( "name" , name ) ; return templateWrapper.toString ( ) ; }

Target:
public java.lang.String evaluate ( java.lang.String type , java.lang.String name ) { set ( "type" , type ) ; set ( "name" , name ) ; return evaluate ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setName ( "BadName" ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setName ( "BadName" ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; return group ; }
Source:
private void Cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }

Target:
private void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }
Source:
public static java.lang.String GetVDSVerbDataByCpuName ( 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.GetVDSVerbDataByCpuName ( name ) ; } return null ; }

Target:
public static java.lang.String getCpuId ( 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.GetVDSVerbDataByCpuName ( name ) ; } return null ; }
Source:
private java.lang.String getFingerprint ( java.lang.String hostName ) { org.ovirt.engine.core.utils.ssh.SSHClient client = null ; try { client = connect ( hostName ) ; return getFingerprint ( client ) ; } finally { if ( client != null ) { client.disconnect ( ) ; } } }

Target:
protected org.ovirt.engine.core.utils.gluster.GlusterUtil getGlusterUtil ( ) { return org.ovirt.engine.core.utils.gluster.GlusterUtil.getInstance ( ) ; }
Source:
public org.ovirt.engine.api.resource.ClusterNetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( clusterId , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedNetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( id , this ) ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setExistingAttachments ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > existingAttachments ) { this . existingAttachments = existingAttachments ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addExistingAttachments ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > existingAttachments ) { if ( existingAttachments == null ) { return this ; } this . existingAttachments.addAll ( existingAttachments ) ; return this ; }
Source:
public void testGetVdsSpmIdMapForStoragePoolAndVdsId ( ) { org.ovirt.engine.core.common.businessentities.vds_spm_id_map result = dao.get ( existingVdsSpmIdMap.getstorage_pool_id ( ) , existingVdsSpmIdMap.getvds_spm_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVdsSpmIdMap , result ) ; }

Target:
public void testGetVdsSpmIdMapForStoragePoolAndVdsId ( ) { org.ovirt.engine.core.common.businessentities.VdsSpmIdMap result = dao.get ( existingVdsSpmIdMap.getStoragePoolId ( ) , existingVdsSpmIdMap.getVdsSpmId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVdsSpmIdMap , result ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml progressBar ( int progress , java.lang.String text , java.lang.String color ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml progressBar ( int progress , java.lang.String text , java.lang.String color , java.lang.String style , java.lang.String id ) ;
Source:
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 , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.DISABLED ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsSpmIdMapDao ( ) ; existingVdsSpmIdMap = dao.get ( org.ovirt.engine.core.dao.VdsSpmIdMapDaoTest.EXISTING_VDS_ID ) ; newVdsSpmIdMap = new org.ovirt.engine.core.common.businessentities.VdsSpmIdMap ( org.ovirt.engine.core.dao.VdsSpmIdMapDaoTest.FREE_STORAGE_POOL_ID , FixturesTool.VDS_RHEL6_NFS_SPM , 1 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsSpmIdMapDao ( ) ; existingVdsSpmIdMap = dao.get ( FixturesTool.HOST_ID ) ; newVdsSpmIdMap = new org.ovirt.engine.core.common.businessentities.VdsSpmIdMap ( org.ovirt.engine.core.dao.VdsSpmIdMapDaoTest.FREE_STORAGE_POOL_ID , FixturesTool.VDS_RHEL6_NFS_SPM , 1 ) ; }
Source:
public void onUserLogin ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { setUserName ( loggedUser.getUserName ( ) ) ; setUserId ( loggedUser.getUserId ( ) . toString ( ) ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }

Target:
public void onUserLogin ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { setLoggedUser ( loggedUser ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public void onSuccess ( java.lang.Object nothing , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.VmTemplate baseTemplate = ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( returnValue ) ) ; org.ovirt.engine.ui.uicommonweb.models.templates.TemplateWithVersion templateCouple = new org.ovirt.engine.ui.uicommonweb.models.templates.TemplateWithVersion ( baseTemplate , template ) ; setReadOnlyTemplateWithVersion ( templateCouple ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > templatesChain = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( returnValue ) ) ) ; initTemplateWithVersion ( templatesChain , templateId , useLatest ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) ) == null ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_GLUSTER_VOLUME_INVALID ) ; return false ; } if ( ! ( super . canDoAction ( ) ) ) { return false ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_GLUSTER_VOLUME_INVALID ) ; return false ; } if ( ! ( super . canDoAction ( ) ) ) { return false ; } return true ; }
Source:
public java.util.concurrent.FutureTask < java.util.Map < java.lang.String , java.lang.Object > > poll ( ) { return vdsServer.futureGetCapabilities ( ) ; }

Target:
public java.util.concurrent.FutureTask < java.util.Map < java.lang.String , java.lang.Object > > poll ( ) { return vdsServer.futurePing ( ) ; }
Source:
private org.ovirt.engine.core.compat.Guid addMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage metadataDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMetadataDisk ( ) ; return addDisk ( metadataDisk ) ; }

Target:
private org.ovirt.engine.core.compat.Guid addMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage metadataDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMetadataDisk ( org.ovirt.engine.core.bll.memory.MemoryUtils.generateMemoryDiskDescription ( vm , snapshotDescription ) ) ; return addDisk ( metadataDisk ) ; }
Source:
public void getNoQosByVmId ( ) { org.ovirt.engine.core.common.businessentities.qos.CpuQos cpuQos = dao.getCpuQosByVmId ( FixturesTool.VM_RHEL5_POOL_57 ) ; org.junit.Assert.assertNull ( cpuQos ) ; }

Target:
public void getNoQosByVmId ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.qos.CpuQos > cpuQosMap = dao.getCpuQosByVmIds ( java.util.Collections.singleton ( FixturesTool.VM_RHEL5_POOL_57 ) ) ; org.junit.Assert.assertNotNull ( cpuQosMap ) ; org.junit.Assert.assertNull ( cpuQosMap.get ( FixturesTool.VM_RHEL5_POOL_57 ) ) ; }
Source:
public void networkQosNull ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkQosId ( ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.networkQosExistsOrNull ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkQosNull ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkQosId ( ) ) . thenReturn ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkQosExistsOrNull ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGetAllEntitiesForStorageDomainWithNoUnregisteredEntities ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_2 , null ) ; org.junit.Assert.assertTrue ( "No entities should be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }

Target:
public void testGetAllEntitiesForStorageDomainWithNoUnregisteredEntities ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_2 , null ) ; org.junit.jupiter.api.Assertions.assertTrue ( ovfEntityDataList.isEmpty ( ) , "No entities should be fetched for the specified storage domain" ) ; }
Source:
private org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters createActivateDeactivateParameters ( org.ovirt.engine.core.compat.Guid nicId , org.ovirt.engine.core.common.action.PlugAction plugAction , java.lang.String oldMacAddress ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters parameters = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( nicId , plugAction , oldMacAddress ) ; parameters.setVmId ( org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getParameters ( ) . getVmId ( ) ) ; return parameters ; }

Target:
private org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters createActivateDeactivateParameters ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface nic , org.ovirt.engine.core.common.action.PlugAction plugAction ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters parameters = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( nic , plugAction ) ; parameters.setVmId ( org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getParameters ( ) . getVmId ( ) ) ; return parameters ; }
Source:
public void canRunVmPassStatelessWhenVmHAandStatelessFalse ( ) { org.ovirt.engine.core.bll.RunVmCommandTest.canRunStatelessVmTest ( true , true , java.lang.Boolean.FALSE , true ) ; }

Target:
public void canRunVmPassStatelessWhenVmHAwithNegativeStatelessParam ( ) { canRunStatelessVmTest ( true , false , java.lang.Boolean.FALSE , true ) ; }
Source:
public void testGetForUserWithoutPermission ( ) { org.ovirt.engine.core.common.businessentities.network.VnicProfileView result = dao.get ( FixturesTool.VM_NETWORK_INTERFACE_PROFILE , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetForUserWithoutPermission ( ) { org.ovirt.engine.core.common.businessentities.network.VnicProfileView result = dao.get ( FixturesTool.VM_NETWORK_INTERFACE_PROFILE , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getVmIdRef ( ) { if ( ( ( mVmId ) == null ) && ( ( getVm ( ) ) != null ) ) { mVmId = getVm ( ) . getId ( ) ; } return mVmId ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmIdRef ( ) { if ( ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( mVmId ) ) && ( ( getVm ( ) ) != null ) ) { mVmId = getVm ( ) . getId ( ) ; } return mVmId ; }
Source:
public java.lang.String getdomain ( ) { return domain ; }

Target:
public java.lang.String getDomain ( ) { return domain ; }
Source:
private void registerListeners ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.InstanceTypeManager.ManagedFieldsManager managedFieldsManager = new org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.InstanceTypeManager.ManagedFieldsManager ( ) ; model.getInstanceTypes ( ) . getSelectedItemChangedEvent ( ) . addListener ( managedFieldsManager ) ; model.getTemplateWithVersion ( ) . getSelectedItemChangedEvent ( ) . addListener ( managedFieldsManager ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; updateVirtioScsiAvailability ( ) ; updateMigrationForLocalSD ( ) ; updateOSValues ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( cpuSys , cpuUser , elapsedTime , interfaceStatistics , roundedElapsedTime , usageCpuPercent , usageMemPercent , usageNetworkPercent , migrationProgressPercent , disksUsage , vmId , cpuUsageHistory , networkUsageHistory , memoryUsageHistory , vNumaNodeStatisticsList ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( cpuSys , cpuUser , elapsedTime , interfaceStatistics , roundedElapsedTime , usageCpuPercent , usageMemPercent , usageNetworkPercent , migrationProgressPercent , disksUsage , vmId , cpuUsageHistory , networkUsageHistory , memoryUsageHistory , vNumaNodeStatisticsList , guestMemoryFree , guestMemoryBuffered , guestMemoryCached ) ; }
Source:
public boolean IsOvfTemplate ( java.lang.String ovfstring ) throws org.ovirt.engine.core.utils.ovf.OvfReaderException { return new org.ovirt.engine.core.utils.ovf.OvfParser ( ovfstring ) . isTemplate ( ) ; }

Target:
public boolean isOvfTemplate ( java.lang.String ovfstring ) throws org.ovirt.engine.core.utils.ovf.OvfReaderException { return new org.ovirt.engine.core.utils.ovf.OvfParser ( ovfstring ) . isTemplate ( ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ; org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getVmPoolId ( ) ; }

Target:
protected void onNoVmsAdded ( ) { org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDao ( ) . remove ( org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) . getVmPoolId ( ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return object.isShareable ( ) ? resources.shareableDiskIcon ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isShareable ( ) ? constants.shareable ( ) : null ) ) ; return object.isShareable ( ) ? resources.shareableDiskIcon ( ) : null ; }