auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { confirmationModel.stopProgress ( ) ; setWindow ( null ) ; }
Source:
protected void OnTaskDoesNotExist ( ) { LogTaskDoesntExist ( ) ; ClearAsyncTask ( ) ; }

Target:
protected void OnTaskDoesNotExist ( ) { LogTaskDoesntExist ( ) ; clearAsyncTask ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.LUNs get ( java.lang.String id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "LUN_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetLUNByLUNId" , org.ovirt.engine.core.dao.LunDAODbFacadeImpl.MAPPER , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.LUNs get ( java.lang.String id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lun_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetLUNByLUNId" , org.ovirt.engine.core.dao.LunDAODbFacadeImpl.MAPPER , parameterSource ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult hostExist ( ) { if ( ( host ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_HOST_NOT_EXIST , host.getName ( ) ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult hostExist ( ) { if ( ( host ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected org.ovirt.engine.core.dao.InterfaceDAO getInterfaceDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getInterfaceDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.InterfaceDAO getInterfaceDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getInterfaceDao ( ) ; }
Source:
public boolean isApplicable ( org.ovirt.engine.core.common.businessentities.VDSGroup oldCluster , org.ovirt.engine.core.common.businessentities.VDSGroup newCluster ) { return ( ! ( oldCluster.getRequiredRngSources ( ) . contains ( source ) ) ) && ( newCluster.getRequiredRngSources ( ) . contains ( source ) ) ; }

Target:
public boolean isApplicable ( org.ovirt.engine.core.common.businessentities.Cluster oldCluster , org.ovirt.engine.core.common.businessentities.Cluster newCluster ) { return ( ! ( oldCluster.getRequiredRngSources ( ) . contains ( source ) ) ) && ( newCluster.getRequiredRngSources ( ) . contains ( source ) ) ; }
Source:
private org.ovirt.engine.core.common.scheduling.AffinityGroup createAffinityGroup ( ) { affinityGroup = new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ; affinityGroup.setEntityIds ( new java.util.ArrayList < > ( ) ) ; affinityGroup.getEntityIds ( ) . add ( vmId ) ; affinityGroup.setClusterId ( clusterId ) ; return affinityGroup ; }

Target:
private org.ovirt.engine.core.common.scheduling.AffinityGroup createAffinityGroup ( ) { affinityGroup = new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ; affinityGroup.setVmIds ( new java.util.ArrayList < > ( ) ) ; affinityGroup.getVmIds ( ) . add ( vmId ) ; affinityGroup.setClusterId ( clusterId ) ; return affinityGroup ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; cancel ( ) ; }
Source:
public java.lang.String getVmsCount ( ) { return java.lang.Integer.toString ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmsCount ( ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ) ; }
Source:
protected boolean isUserAuthorizedToRunAction ( ) { if ( isSystemSuperUserPredicate.eval ( org.ovirt.engine.core.bll.aaa.TerminateSessionCommand.getCurrentUser ( ) . getId ( ) ) ) { return true ; } else { addCanDoActionMessage ( EngineMessage.USER_NOT_AUTHORIZED_TO_PERFORM_ACTION ) ; return false ; } }

Target:
protected boolean isUserAuthorizedToRunAction ( ) { if ( isSystemSuperUserPredicate.test ( org.ovirt.engine.core.bll.aaa.TerminateSessionCommand.getCurrentUser ( ) . getId ( ) ) ) { return true ; } else { addCanDoActionMessage ( EngineMessage.USER_NOT_AUTHORIZED_TO_PERFORM_ACTION ) ; return false ; } }
Source:
public static java.lang.String renderVmNamesList ( java.util.List < java.lang.String > names ) { return java.lang.String.join ( ", " , names ) ; }

Target:
public static java.lang.String renderVmNamesList ( java.util.List < java.lang.String > names ) { if ( names != null ) { return java.lang.String.join ( ", " , names ) ; } return "" ; }
Source:
public void testRemoveVolumeOption ( ) { org.junit.Assert.assertNotNull ( dao.getById ( org.ovirt.engine.core.dao.gluster.GlusterOptionDaoTest.EXISTING_OPTION_ID ) ) ; dao.removeVolumeOption ( org.ovirt.engine.core.dao.gluster.GlusterOptionDaoTest.EXISTING_OPTION_ID ) ; org.junit.Assert.assertNull ( dao.getById ( org.ovirt.engine.core.dao.gluster.GlusterOptionDaoTest.EXISTING_OPTION_ID ) ) ; }

Target:
public void testRemoveVolumeOption ( ) { org.junit.jupiter.api.Assertions.assertNotNull ( dao.getById ( org.ovirt.engine.core.dao.gluster.GlusterOptionDaoTest.EXISTING_OPTION_ID ) ) ; dao.removeVolumeOption ( org.ovirt.engine.core.dao.gluster.GlusterOptionDaoTest.EXISTING_OPTION_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( dao.getById ( org.ovirt.engine.core.dao.gluster.GlusterOptionDaoTest.EXISTING_OPTION_ID ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NETWORK_NOT_EXISTS ) . when ( ( ( network ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkIsSet ( org.ovirt.engine.core.compat.Guid networkId ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_HAVING_ID_NOT_EXISTS ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , java.lang.String.valueOf ( networkId ) ) ) . when ( ( ( network ) == null ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult storageDomainNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( diskProfile.getStorageDomainId ( ) , getDiskProfileFromDb ( ) . getStorageDomainId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult storageDomainNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( getDiskProfile ( ) . getStorageDomainId ( ) , getDiskProfileFromDb ( ) . getStorageDomainId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult parentEntityExists ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . get ( getProfile ( ) . getClusterId ( ) ) ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult parentEntityExists ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getClusterDao ( ) . get ( getProfile ( ) . getClusterId ( ) ) ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy poolForDataCenter ( org.ovirt.engine.core.compat.Guid dataCenterId ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { checkInitialized ( ) ; return getPoolWithoutLocking ( getMacPoolId ( dataCenterId ) ) ; } }

Target:
public org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getPoolById ( org.ovirt.engine.core.compat.Guid macPoolId ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { return getPoolWithoutLocking ( macPoolId ) ; } }
Source:
public void testDerivedVersionedValue ( ) { org.junit.Assert.assertEquals ( 512 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 888 , Version.v3_1 ) ) ; }

Target:
public void testDerivedVersionedValue ( ) { org.junit.Assert.assertEquals ( 512 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 888 , Version.v3_5 ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > getInterfaces ( ) { if ( ( interfaces ) == null ) { interfaces = vmNicDao.getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; } return interfaces ; }

Target:
protected void removeVmStatic ( boolean removePermissions ) { vmStaticDao.remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) , removePermissions ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > siblingVlanInterfaces = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ) ( source ) ) ; return ! ( siblingVlanInterfaces.isEmpty ( ) ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > siblingVlanInterfaces = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ) ( source ) ) ; return ! ( siblingVlanInterfaces.isEmpty ( ) ) ; }
Source:
public void initialize ( ) { super . initialize ( ) ; if ( ( getVm ( ) ) != null ) { updateSuggestedDiskAlias ( ) ; } }

Target:
public void initialize ( ) { super . initialize ( ) ; if ( ( getVm ( ) ) != null ) { updateSuggestedDiskAlias ( ) ; } getSizeExtend ( ) . setIsAvailable ( false ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ExternalVm vm ) { return vm.getName ( ) ; }

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 ) { updatePanelsVisibility ( model ) ; }
Source:
void addStyles ( ) { localPathEditor.addContentWidgetStyleName ( style.localPathContentWidget ( ) ) ; }

Target:
void addStyles ( ) { localPathEditor.addContentWidgetContainerStyleName ( style.localPathContentWidget ( ) ) ; }
Source:
public boolean isManagemet ( ) { return org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkModel.ENGINE_NETWORK.equals ( getNetwork ( ) . getName ( ) ) ; }

Target:
protected abstract boolean isManagement ( ) ;
Source:
void readAllConfigurations ( @ javax.enterprise.event.Observes final javax.enterprise.inject.spi.BeforeBeanDiscovery bdd , javax.enterprise.inject.spi.BeanManager bm ) { org.ovirt.engine.core.bll.utils.ModuleConfigurationExtension.log.info ( "Starting to load beans from modules" ) ; addBeansFromPackage ( bdd , bm , "org.ovirt.engine.core.dal" ) ; addBeansFromPackage ( bdd , bm , "org.ovirt.engine.core.dao" ) ; }

Target:
void readAllConfigurations ( @ javax.enterprise.event.Observes final javax.enterprise.inject.spi.BeforeBeanDiscovery bdd , javax.enterprise.inject.spi.BeanManager bm ) { org.ovirt.engine.core.bll.utils.ModuleConfigurationExtension.log.info ( "Starting to load beans from modules" ) ; addBeansFromPackage ( bdd , bm , "org.ovirt.engine.core.utils.transaction" ) ; addBeansFromPackage ( bdd , bm , "org.ovirt.engine.core.dal" ) ; addBeansFromPackage ( bdd , bm , "org.ovirt.engine.core.dao" ) ; }
Source:
public void testValidModifiedBonds_failsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT , false , false ) ; }

Target:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDS runInTransaction ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . get ( getVdsId ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDS runInTransaction ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( getVdsId ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "vdsId = %s" , getVdsId ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "HostId = %s" , getVdsId ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapGroup getExpectedResult ( ) { return new org.ovirt.engine.core.common.businessentities.LdapGroup ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , NAME_TO_SEARCH , DOMAIN ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.LdapGroup getExpectedResult ( ) { return new org.ovirt.engine.core.common.businessentities.LdapGroup ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , NAME_TO_SEARCH , DOMAIN ) ; }
Source:
public org.ovirt.engine.api.resource.DeviceResource < org.ovirt.engine.api.model.NIC > getDeviceSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateNicResource ( id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }

Target:
public org.ovirt.engine.api.resource.DeviceResource < org.ovirt.engine.api.model.NIC > getDeviceSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateNicResource ( parentId , id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , committedDiskSize , dynamicData , staticData , storageDomainSharedStatus , storageDomainOverCommitPercent , storagePoolIsoMapData , totalDiskSize , supportsDiscard , supportsDiscardZeroesData ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , committedDiskSize , dynamicData , staticData , storageDomainSharedStatus , storageDomainOverCommitPercent , storagePoolIsoMapData , totalDiskSize , supportsDiscard , supportsDiscardZeroesData , hostedEngineStorage ) ; }
Source:
java.lang.String recurrenceType ( @ com.google.gwt.i18n.client.Messages.Select org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotScheduleRecurrence recurrence ) ;

Target:
java.lang.String sizeUnitString ( java.lang.String size , java.lang.String sizeUnit ) ;
Source:
public void setAvailableDiskSize ( java.lang.Integer availableDiskSize ) { getStorageDynamicData ( ) . setAvailableDiskSize ( availableDiskSize ) ; UpdateTotalDiskSize ( ) ; updateOverCommitPercent ( ) ; }

Target:
public void setAvailableDiskSize ( java.lang.Integer availableDiskSize ) { getStorageDynamicData ( ) . setAvailableDiskSize ( availableDiskSize ) ; updateTotalDiskSize ( ) ; updateOverCommitPercent ( ) ; }
Source:
public void testValidNetworkAttachmentIpConfiguration ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = initValidator ( ) ; org.ovirt.engine.core.bll.ValidationResult actual = validator.validNewOrModifiedNetworkAttachments ( ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , actual ) ; }

Target:
public void testValidNetworkAttachmentIpConfiguration ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = initValidator ( ) ; org.ovirt.engine.core.bll.ValidationResult actual = validator.validNewOrModifiedNetworkAttachments ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( ValidationResult.VALID , actual ) ; }
Source:
public void onDrop ( com.google.gwt.event.dom.client.DropEvent event ) { doDrag ( event , true ) ; table.getElement ( ) . removeClassName ( style.networkGroupDragOver ( ) ) ; }

Target:
public void onDrop ( com.google.gwt.event.dom.client.DropEvent event ) { event.preventDefault ( ) ; doDrag ( event , true ) ; table.getElement ( ) . removeClassName ( style.networkGroupDragOver ( ) ) ; }
Source:
public void testNetworkLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Network network = new org.ovirt.engine.api.model.Network ( ) ; network.setId ( org.ovirt.engine.api.common.util.LinkHelperTest.NETWORK_ID ) ; org.ovirt.engine.api.common.util.LinkHelper.addLinks ( setUpUriExpectations ( ) , network ) ; assertEquals ( org.ovirt.engine.api.common.util.LinkHelperTest.NETWORK_HREF , network.getHref ( ) ) ; }

Target:
public void testNetworkLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Network network = new org.ovirt.engine.api.model.Network ( ) ; network.setId ( org.ovirt.engine.api.common.util.LinkHelperTest.NETWORK_ID ) ; org.ovirt.engine.api.utils.LinkHelper.addLinks ( setUpUriExpectations ( ) , network ) ; assertEquals ( org.ovirt.engine.api.common.util.LinkHelperTest.NETWORK_HREF , network.getHref ( ) ) ; }
Source:
public org.ovirt.engine.core.dao.network.InterfaceDao getInterfaceDAO ( ) { return getDbFacade ( ) . getInterfaceDao ( ) ; }

Target:
private org.ovirt.engine.core.bll.utils.GlusterUtil getGlusterUtil ( ) { return org.ovirt.engine.core.bll.utils.GlusterUtil.getInstance ( ) ; }
Source:
public void testIpConfiguredForStaticBootProtocol_WhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndNetmaskIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "" , null ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ) ; }

Target:
private void doTestIpConfiguredForStaticBootProtocol ( java.lang.String address , java.lang.String netmask ) { org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher = org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ; doTestIpConfiguredForStaticBootProtocol ( address , netmask , matcher ) ; }
Source:
private void mockValidateCustomProperties ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateCustomProperties ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) , org.mockito.ArgumentMatchers.any ( java.util.ArrayList.class ) ) ; }

Target:
private void mockValidatePciAndIdeLimit ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . isValidPciAndIdeLimit ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > copyData ( java.util.Map srcImage , java.util.Map dstImage , boolean collapse ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > copyData ( java.lang.String jobId , java.util.Map srcImage , java.util.Map dstImage ) ;
Source:
public void vmNotRunningOnHost ( org.ovirt.engine.core.vdsbroker.VmTestPairs data ) { initMocks ( data , false ) ; org.junit.Assume.assumeTrue ( ( ( data.vdsmVm ( ) ) == null ) ) ; vmAnalyzer.analyze ( ) ; junit.framework.Assert.assertTrue ( vmAnalyzer.isMovedToDown ( ) ) ; }

Target:
public void vmNotRunningOnHost ( org.ovirt.engine.core.vdsbroker.VmTestPairs data ) { initMocks ( data , false ) ; org.junit.Assume.assumeTrue ( ( ( data.vdsmVm ( ) ) == null ) ) ; vmAnalyzer.analyze ( ) ; org.junit.Assert.assertTrue ( vmAnalyzer.isMovedToDown ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { return RunAction ( VdcActionType.LogoutUser , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { return runAction ( VdcActionType.LogoutUser , parameters ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getVds ( ) { if ( ( _vds ) == null ) { _vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . get ( getVdsId ( ) ) ; } return _vds ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getVds ( ) { if ( ( _vds ) == null ) { _vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( getVdsId ( ) ) ; } return _vds ; }
Source:
public java.math.BigDecimal readDecimal ( ) { java.lang.String image = readString ( ) ; try { return new java.math.BigDecimal ( image ) . stripTrailingZeros ( ) ; } catch ( java.lang.NumberFormatException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "The text \"" + image ) + "\" isn\'t a valid decimal value" ) ) ; } }

Target:
public java.util.Date readDate ( ) { return parseDate ( readString ( ) ) ; }
Source:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testAddInvalidSDStatusMessagePreparingForMaintenance ( ) { testAddInvalidSDStatusMessage ( StorageDomainStatus.PreparingForMaintenance ) ; }

Target:
public void testCanDoActionMasterPreparingForMaintenance ( ) { validateCanDoActionDomainInProcess ( StorageDomainStatus.PreparingForMaintenance , StorageDomainStatus.Active , StorageDomainStatus.PreparingForMaintenance ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionType getCommandType ( ) { return cmdEntity.getCommandType ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionType getCommandType ( ) { return childCmdEntity.getCommandType ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Role > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromRole" , RolesRowMapper.instance , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Role getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "name" , name ) ; return getCallsHandler ( ) . executeRead ( "GetRoleByName" , org.ovirt.engine.core.dao.RoleDAODbFacadeImpl.RolesRowMapper.instance , parameterSource ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.vm.VnicProfileCommandBase.getNetworkDao ( ) . get ( getVnicProfile ( ) . getNetworkId ( ) ) ; } return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = networkDao.get ( getVnicProfile ( ) . getNetworkId ( ) ) ; } return network ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { if ( ( i.getNetworkName ( ) ) != null ) { return i.getNetworkName ( ) . equals ( getParameters ( ) . getNetwork ( ) . getname ( ) ) ; } return false ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { if ( ( i.getNetworkName ( ) ) != null ) { return i.getNetworkName ( ) . equals ( getParameters ( ) . getOldNetworkName ( ) ) ; } return false ; }
Source:
private void logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to AfterRefreshTreatment VDS error = '{0}', continuing." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warn ( "Failed to refresh VDS , vds = '{}' : '{}', error = '{}', continuing." , cachedVds.getName ( ) , cachedVds.getId ( ) , ex.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "Exception" , ex ) ; }
Source:
protected int getNeededDiskSize ( org.ovirt.engine.core.compat.Guid domainId ) { return ( org.ovirt.engine.core.bll.AddVmCommand.getBlockSparseInitSizeInGb ( ) ) * ( storageToDisksMap.get ( domainId ) . size ( ) ) ; }

Target:
protected boolean validateFreeSpace ( org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return validate ( storageDomainValidator.hasSpaceForNewDisks ( disksList ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return getDbFacade ( ) . getVmDao ( ) . getAllForCpuProfiles ( java.util.Collections.singletonList ( getProfile ( ) . getId ( ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return vmDao.getAllForCpuProfiles ( java.util.Collections.singletonList ( getProfile ( ) . getId ( ) ) ) ; }
Source:
public void validateOkSucceeds ( ) throws java.lang.Exception { setupMock ( ) ; org.junit.Assert.assertTrue ( commandMock.validate ( ) ) ; }

Target:
public void validateOkSucceeds ( ) throws java.lang.Exception { setupMock ( ) ; org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( makeExternalTestJob ( ) ) ; org.junit.Assert.assertTrue ( commandMock.validate ( ) ) ; }
Source:
public boolean isNewerThan ( final org.ovirt.engine.core.bll.scheduling.OS os ) { return ( getVersion ( ) . compareTo ( os.getVersion ( ) ) ) > 0 ; }

Target:
public boolean isSameOsFamily ( final org.ovirt.engine.core.bll.scheduling.OS os ) { return ( isSameOs ( os ) ) || ( ( org.ovirt.engine.core.bll.scheduling.OS.OS_IDENTIFIER.contains ( os.getName ( ) ) ) && ( org.ovirt.engine.core.bll.scheduling.OS.OS_IDENTIFIER.contains ( this . getName ( ) ) ) ) ; }
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 ( ) ) : false ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 100 ; }
Source:
public void setRdpAvailable ( boolean visible ) { remoteDesktopRadioButton.setVisible ( visible ) ; }

Target:
public void setSpiceAvailable ( boolean visible ) { spiceRadioButton.setEnabled ( visible ) ; spiceRadioButton.setTitle ( ( visible ? "" : constants.spiceNotAvailable ( ) ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel1 = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( result.getState ( ) ) ) ; vmListModel1.getWindow ( ) . StopProgress ( ) ; vmListModel1.Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public void setGuestLastLogoutTime ( java.util.Date value ) { this . vmDynamic.setguest_last_logout_time ( value ) ; }

Target:
public java.lang.String getConsoleCurentUserName ( ) { return this . vmDynamic.getConsoleCurrentUserName ( ) ; }
Source:
public java.lang.String getdomain ( ) { return this . domain ; }

Target:
public java.lang.String getDomain ( ) { return domain ; }
Source:
public void removeByName ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String glusterCommand , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStage stage , java.lang.String hookName ) ;

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook getGlusterServerHook ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid serverId ) ;
Source:
public void discardAfterDeleteLegalForExistingStorageDomainPredicateFalse ( ) { domain.setSupportsDiscard ( false ) ; org.junit.Assert.assertFalse ( validator.discardAfterDeleteLegalForExistingStorageDomainPredicate ( ) ) ; }

Target:
public void discardAfterDeleteLegalForExistingStorageDomainPredicateFalse ( ) { domain.setSupportsDiscard ( false ) ; org.junit.jupiter.api.Assertions.assertFalse ( validator.discardAfterDeleteLegalForExistingStorageDomainPredicate ( ) ) ; }
Source:
public void testGetAllForVdsGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForVdsGroup ( org.ovirt.engine.core.dao.VmDAOTest.VDS_GROUP_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVmPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForVmPool ( FixturesTool.STORAGE_POOL_FEDORA ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( "wrong number of VMs attached to pool" , 2 , result.size ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VM evalVm ) { return evalVm.getId ( ) . equals ( getParameters ( ) . getVm ( ) . getId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VM evalVm ) { return evalVm.getId ( ) . equals ( getParameters ( ) . getVmId ( ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( ( ( org.ovirt.engine.core.bll.storage.disk.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Copy ) ? org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__COPY : org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__MOVE ) ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM_DISK ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( ( ( org.ovirt.engine.core.bll.storage.disk.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Copy ) ? org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__COPY : org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__MOVE ) ) ; addValidationMessage ( EngineMessage.VAR__TYPE__VM_DISK ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomainStatic ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.disk.image.CloneImageGroupVolumesStructureCommand.getStorageDomainStaticDao ( ) . get ( domainId ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomainStatic ( org.ovirt.engine.core.compat.Guid domainId ) { return storageDomainStaticDao.get ( domainId ) ; }
Source:
public void setelapsed_time ( java.lang.Double value ) { this . elapsed_timeField = value ; setRoundedElapsedTime ( value ) ; }

Target:
public void setElapsedTime ( java.lang.Double value ) { this . elapsed_timeField = value ; setRoundedElapsedTime ( value ) ; }
Source:
public void setvm_description ( java.lang.String value ) { this . mVmStatic.setdescription ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_description" ) ) ; }

Target:
public void setQuotaName ( java.lang.String value ) { this . vmStatic.setQuotaName ( value ) ; }
Source:
protected boolean MigrateAllVms ( ) { return MigrateAllVms ( false ) ; }

Target:
protected boolean MigrateAllVms ( org.ovirt.engine.core.bll.job.ExecutionContext parentContext ) { return MigrateAllVms ( parentContext , false ) ; }
Source:
public void nonZeroMtuWhenSupported ( ) throws java.lang.Exception { mtuValidTest ( ValidationResult.VALID , 1 , true ) ; }

Target:
public void nonZeroMtuWhenSupported ( ) throws java.lang.Exception { mtuValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , 1 , true ) ; }
Source:
public void testIsUsingScsiReservationValidWhenSgioIsFiltered ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.FILTERED ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) , org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createDiskVmElementUsingScsiReserevation ( ) , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_SGIO_IS_FILTERED ) ) ; }

Target:
public void testIsUsingScsiReservationValidWhenSgioIsFiltered ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.FILTERED ) ; org.hamcrest.MatcherAssert.assertThat ( lunValidator.isUsingScsiReservationValid ( org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) , org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createDiskVmElementUsingScsiReserevation ( ) , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_SGIO_IS_FILTERED ) ) ; }
Source:
public void runMultipleActions ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback successCallback ) { runMultipleActions ( actionType , parameters , successCallback , null ) ; }

Target:
public void runMultipleActions ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback successCallback , final java.lang.Object state ) { runMultipleActions ( actionType , parameters , successCallback , state , true ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getMemSizeMb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getMemSizeMb ( ) ) ) + " MB" ; }
Source:
public java.lang.Integer getavailable_disk_size ( ) { return getStorageDynamicData ( ) . getavailable_disk_size ( ) ; }

Target:
public java.lang.Integer getAvailableDiskSize ( ) { return getStorageDynamicData ( ) . getavailable_disk_size ( ) ; }
Source:
private boolean isVmContainsWipeAfterDeleteDisk ( ) { for ( org.ovirt.engine.core.common.businessentities.Disk disk : vm.getDiskMap ( ) . values ( ) ) { if ( disk.isWipeAfterDelete ( ) ) { return true ; } } return false ; }

Target:
protected boolean isPostZero ( ) { if ( ( cachedPostZero ) == null ) { cachedPostZero = isDiskWithWipeAfterDeleteExist ( vm.getDiskMap ( ) . values ( ) ) ; } return cachedPostZero ; }
Source:
private void initSorting ( ) { nameColumn.makeSortable ( ) ; clusterColumn.makeSortable ( ) ; ipColumn.makeSortable ( ) ; fqdnColumn.makeSortable ( ) ; nicActivateStatusColumn.makeSortable ( ) ; vnicNameColumn.makeSortable ( ) ; descriptionColumn.makeSortable ( ) ; }

Target:
private void initSorting ( ) { vmStatusColumn.makeSortable ( ) ; nameColumn.makeSortable ( ) ; clusterColumn.makeSortable ( ) ; ipColumn.makeSortable ( ) ; fqdnColumn.makeSortable ( ) ; vnicNameColumn.makeSortable ( ) ; descriptionColumn.makeSortable ( ) ; }
Source:
public java.lang.Integer getDisplay ( ) { return this . vmDynamic.getdisplay ( ) ; }

Target:
public void setGuestLastLogoutTime ( java.util.Date value ) { this . vmDynamic.setGuestLastLogoutTime ( value ) ; }
Source:
public org.ovirt.engine.api.model.AffinityLabel get ( ) { return addLinks ( performGet ( VdcQueryType.GetLabelById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }

Target:
public org.ovirt.engine.api.model.AffinityLabel get ( ) { return addLinks ( performGet ( QueryType.GetLabelById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }
Source:
private void initStorageDomains ( ) { validStorageDomain = initStorageDomain ( ) ; invalidStorageDomain1 = initStorageDomain ( ) ; invalidStorageDomain2 = initStorageDomain ( ) ; }

Target:
public void verifyMiddleDomainForMemory ( ) { verifyDomainForMemory ( java.util.Arrays.asList ( invalidStorageDomain1 , validStorageDomain , invalidStorageDomain2 ) ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { Test ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { test ( ) ; }
Source:
public final void AddField ( java.lang.Iterable < java.lang.Enum < ? > > statuses , java.lang.String fieldName ) { for ( java.lang.Enum < ? > status : statuses ) { AddField ( status , fieldName ) ; } }

Target:
public final < T extends java.lang.Enum < T > > void AddField ( java.lang.Iterable < T > statuses , java.lang.String fieldName ) { for ( T status : statuses ) { AddField ( status , fieldName ) ; } }
Source:
public void setDisks ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disks ) { this . disks = disks ; }

Target:
public void setDiskInfoDestinationMap ( java.util.Map < org.ovirt.engine.core.common.businessentities.storage.DiskImage , org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskInfoDestinationMap ) { this . diskInfoDestinationMap = diskInfoDestinationMap ; }
Source:
public void testSave ( ) { dao.save ( newAdGroup ) ; org.ovirt.engine.core.common.businessentities.LdapGroup result = dao.getByName ( newAdGroup.getname ( ) ) ; assertEquals ( newAdGroup , result ) ; }

Target:
public void testSave ( ) { dao.save ( newAdGroup ) ; org.ovirt.engine.core.common.businessentities.LdapGroup result = dao.getByName ( newAdGroup.getname ( ) ) ; org.junit.Assert.assertEquals ( newAdGroup , result ) ; }
Source:
protected java.lang.Boolean getRawValue ( org.ovirt.engine.core.common.scheduling.AffinityGroup object ) { return object.isEnforcing ( ) ; }

Target:
protected java.lang.Boolean getRawValue ( org.ovirt.engine.core.common.scheduling.AffinityGroup object ) { return object.isVmEnforcing ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { assignVnicProfiles ( behavior , nics , ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( returnValue ) ; }
Source:
public void execute ( ) { restApiSessionManager.reuseCurrentSession ( ) ; }

Target:
public void execute ( ) { restApiSessionManager.reuseSession ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturn pause ( java.lang.String vmId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn glusterVolumeResetBrickStart ( java.lang.String volumeName , java.lang.String existingBrickDir ) ;
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVdsGroupByNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetVdsGroupByNameQuery.getDbFacade ( ) . getVdsGroupDAO ( ) . getByName ( org.ovirt.engine.core.bll.GetVdsGroupByNameQuery.getParameters ( ) . getName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVdsGroupByNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetVdsGroupByNameQuery.getDbFacade ( ) . getVdsGroupDao ( ) . getByName ( org.ovirt.engine.core.bll.GetVdsGroupByNameQuery.getParameters ( ) . getName ( ) ) ) ; }
Source:
public void getOneSnapshotsByMemoryDump ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = new org.ovirt.engine.core.common.businessentities.Snapshot ( ) ; snapshot.setMemoryDiskId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_MEMORY_DUMP_DISK_ID ) ; snapshot.setMetadataDiskId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( 1 , dao.getNumOfSnapshotsByDisks ( snapshot ) ) ; }

Target:
public void getOneSnapshotsByMemoryDump ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = new org.ovirt.engine.core.common.businessentities.Snapshot ( ) ; snapshot.setMemoryDiskId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_MEMORY_DUMP_DISK_ID ) ; snapshot.setMetadataDiskId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , dao.getNumOfSnapshotsByDisks ( snapshot ) ) ; }
Source:
public javax.ws.rs.core.Response allocateVm ( org.ovirt.engine.api.model.Action action ) { return doAction ( ActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.AttachUserToVmFromPoolAndRunParameters ( guid , getCurrent ( ) . getUser ( ) . getId ( ) ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response allocateVm ( org.ovirt.engine.api.model.Action action ) { return doAction ( ActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.AttachUserToVmFromPoolAndRunParameters ( guid , getCurrent ( ) . getUser ( ) . getId ( ) ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.QueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
private static void cpuManufacturersMatch ( ) { org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CheckIfCpusSameManufacture ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Version.class ) ) ) . thenReturn ( true ) ; }

Target:
private void cpuManufacturersMatch ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . checkIfCpusSameManufacture ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VDSGroup.class ) ) ; }
Source:
public static org.ovirt.engine.core.bll.CommandBase < ? > retrieveCommand ( org.ovirt.engine.core.compat.Guid commandId ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.retrieveCommand ( commandId ) ; }

Target:
public static org.ovirt.engine.core.bll.CommandBase < ? > retrieveCommand ( org.ovirt.engine.core.compat.Guid commandId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.retrieveCommand ( commandId ) ; }
Source:
public void validateVmMemoryCantStartOnVdsHostTooSmall ( ) { vds.setMemFree ( 8835L ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCantStartOnVdsHostTooSmall ( ) { vds.setMemFree ( 8835L ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.jupiter.api.Assertions.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public java.lang.Void call ( ) { disconnect ( message ) ; return null ; }

Target:
public java.nio.channels.SocketChannel call ( ) throws java.rmi.ConnectException { if ( ( java.lang.System.currentTimeMillis ( ) ) >= timeout ) { throw new java.rmi.ConnectException ( "Connection timeout" ) ; } return null ; }
Source:
public org.ovirt.engine.core.aaa.Authenticator create ( org.ovirt.engine.core.extensions.mgr.Configuration config ) throws org.ovirt.engine.core.extensions.mgr.ConfigurationException { return new org.ovirt.engine.core.aaa.nop.NopAuthenticator ( ) ; }

Target:
public org.ovirt.engine.core.aaa.Authenticator createImpl ( java.lang.String profileName , org.ovirt.engine.core.extensions.mgr.Configuration config ) throws org.ovirt.engine.core.extensions.mgr.ConfigurationException { return new org.ovirt.engine.core.aaa.nop.NopAuthenticator ( profileName ) ; }
Source:
public void SetDefaultNames ( org.ovirt.engine.core.common.businessentities.VDS host ) { context.host = host ; setCommonName ( ( ( host.getName ( ) . replace ( '.' , '-' ) ) + "-Local" ) ) ; SetDefaultNames1 ( ) ; }

Target:
public void setDefaultNames ( org.ovirt.engine.core.common.businessentities.VDS host ) { context.host = host ; setCommonName ( ( ( host.getName ( ) . replace ( '.' , '-' ) ) + "-Local" ) ) ; setDefaultNames1 ( ) ; }
Source:
public static org.ovirt.engine.api.model.GlusterState map ( org.ovirt.engine.api.restapi.types.GlusterStatus glusterVolumeStatus , java.lang.String template ) { switch ( glusterVolumeStatus ) { case UP : return org.ovirt.engine.api.model.GlusterState.UP ; case DOWN : return org.ovirt.engine.api.model.GlusterState.DOWN ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.GlusterState map ( org.ovirt.engine.api.restapi.types.GlusterStatus glusterBrickStatus , java.lang.String template ) { switch ( glusterBrickStatus ) { case UP : return org.ovirt.engine.api.model.GlusterState.UP ; case DOWN : return org.ovirt.engine.api.model.GlusterState.DOWN ; case UNKNOWN : return org.ovirt.engine.api.model.GlusterState.UNKNOWN ; default : return null ; } }
Source:
protected int getRerties ( ) { return 0 ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) ; }