auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
private void initHeaders ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { treeHeader = new com.google.gwt.user.client.ui.Label ( constants.treeMainSection ( ) ) ; bookmarksHeader = new com.google.gwt.user.client.ui.Label ( constants.bookmarksMainSection ( ) ) ; tagsHeader = new com.google.gwt.user.client.ui.Label ( constants.tagsMainSection ( ) ) ; }

Target:
private void initHeaders ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { treeHeader = new com.google.gwt.user.client.ui.Label ( constants.systemMainSection ( ) ) ; bookmarksHeader = new com.google.gwt.user.client.ui.Label ( constants.bookmarksMainSection ( ) ) ; tagsHeader = new com.google.gwt.user.client.ui.Label ( constants.tagsMainSection ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.NetworkLabel getEntity ( int index ) { org.ovirt.engine.api.model.NetworkLabel entity = control.createMock ( org.ovirt.engine.api.model.NetworkLabel.class ) ; org.easymock.EasyMock.expect ( entity.getId ( ) ) . andReturn ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelResourceTest.LABELS [ index ] ) . anyTimes ( ) ; return entity ; }

Target:
protected org.ovirt.engine.api.model.NetworkLabel getEntity ( int index ) { org.ovirt.engine.api.model.NetworkLabel entity = org.mockito.Mockito.mock ( org.ovirt.engine.api.model.NetworkLabel.class ) ; org.mockito.Mockito.when ( entity.getId ( ) ) . thenReturn ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelResourceTest.LABELS [ index ] ) ; return entity ; }
Source:
protected boolean canDoAction ( ) { if ( ! ( super . canDoAction ( ) ) ) { return false ; } if ( getRngDevices ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_RNG_NOT_FOUND ) ; } return true ; }

Target:
protected boolean validate ( ) { if ( ! ( super . validate ( ) ) ) { return false ; } if ( getRngDevices ( ) . isEmpty ( ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_RNG_NOT_FOUND ) ; } return true ; }
Source:
java.lang.String attachTo ( java.lang.String name ) ;

Target:
java.lang.String bondWith ( java.lang.String name ) ;
Source:
public boolean isSuccessful ( ) { return detailedInfo.isSuccessful ( ) ; }

Target:
public boolean isSuccessful ( ) { return authResult.isSuccessful ( ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . Execute ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult externalNetworkVlanValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_WITH_VLAN_MUST_BE_LABELED ) . when ( ( ( ( network.getVlanId ( ) ) != null ) && ( ( network.getLabel ( ) ) == null ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult externalNetworkVlanValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_WITH_VLAN_MUST_BE_LABELED ) . when ( ( ( ( network.getVlanId ( ) ) != null ) && ( ( network.getLabel ( ) ) == null ) ) ) ; }
Source:
private void vnicProfileNotUsedByVmsTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher , java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms ) { mockVmsUsingVnicProfile ( vms ) ; org.junit.Assert.assertThat ( validator.vnicProfileNotUsedByVms ( ) , matcher ) ; }

Target:
private void vnicProfileNotUsedByVmsTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher , java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms ) { mockVmsUsingVnicProfile ( vms ) ; org.hamcrest.MatcherAssert.assertThat ( validator.vnicProfileNotUsedByVms ( ) , matcher ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VdsStatic modifyEntity ( org.ovirt.engine.core.common.businessentities.VdsStatic entity ) { entity.setName ( "test" ) ; return entity ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( existingVds.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds.getId ( ) , result.getId ( ) ) ; }
Source:
public static void hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.HasSpiceSupport , osId , version ) , callback ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > getDisplayTypes ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.displayTypes.get ( osId ) . get ( version ) ; }
Source:
void buildVmProperties ( ) ;

Target:
void buildVmProperties ( java.lang.String hibernationVolHandle ) ;
Source:
private void localize ( ) { pfTab.setLabel ( constants.pfTab ( ) ) ; vfsConfigTab.setLabel ( constants.vfsConfigTab ( ) ) ; }

Target:
public void showOnlyPf ( ) { getTabPanel ( ) . switchTab ( pfTab ) ; tabPanel.setVisible ( false ) ; contentPanel.setWidget ( pfTab.getContent ( ) ) ; mainPanel.setWidth ( "400px" ) ; mainPanel.setHeight ( "215px" ) ; }
Source:
public void addRange ( long rangeStart , long rangeEnd ) { ranges.add ( new org.ovirt.engine.core.bll.network.macpool.Range ( rangeStart , rangeEnd ) ) ; }

Target:
org.ovirt.engine.core.bll.network.macpool.Range addRange ( org.ovirt.engine.core.bll.network.macpool.Range range ) { ranges.add ( range ) ; return range ; }
Source:
public void testIsUpdInvalid ( ) { storagePool.setStatus ( StoragePoolStatus.NonResponsive ) ; org.junit.Assert.assertThat ( validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ) ; }

Target:
public void testIsUpInvalid ( ) { storagePool.setStatus ( StoragePoolStatus.NonResponsive ) ; org.junit.Assert.assertThat ( validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getSlaveHost ( ) { return getVdsDao ( ) . get ( getParameters ( ) . getSlaveHostId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getSlaveHost ( ) { return vdsDao.get ( getParameters ( ) . getSlaveHostId ( ) ) ; }
Source:
public void validateFailsOnNull ( ) { setVolumeId ( null ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { setVolumeId ( null ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void generateDiskDescriptionWhenDescriptionIsCompletelyTruncated ( ) throws java.io.IOException { java.lang.String alias = org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateRandomString ( org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.DISK_ALIAS_MAX_LENGTH ) ; disk.setDiskAlias ( alias ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( alias ) ) ; }

Target:
public void encodeWhenDescriptionIsCompletelyTruncated ( ) throws java.io.IOException { java.lang.String alias = org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateRandomString ( org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.DISK_ALIAS_MAX_LENGTH ) ; disk.setDiskAlias ( alias ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( alias ) ) ; }
Source:
public void validateFailsOnNoHook ( ) { setUpMocksForRemove ( false ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_GLUSTER_HOOK_DOES_NOT_EXIST.toString ( ) ) ) ; }

Target:
public void validateFailsOnNoHook ( ) { setUpMocksForRemove ( false ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_GLUSTER_HOOK_DOES_NOT_EXIST.toString ( ) ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > getAttachedNotSubmittedDisks ( ) { return java.util.Collections.EMPTY_LIST ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > getAttachedNotSubmittedDisks ( ) { return java.util.Collections.emptyList ( ) ; }
Source:
public void getIpv6AddressOfNetwork ( ) { java.lang.String networkName = "networkName" ; testResolveHostNetworkAddress ( ( e ) -> e.getIpv6AddressOfNetwork ( networkName ) , networkName ) ; }

Target:
public void getIpv6AddressOfNetwork ( ) { nic.setIpv6Address ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.IPV6_ADDRESS ) ; org.junit.Assert.assertThat ( underTest.getIpv6AddressOfNetwork ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.NETWORK_NAME1 ) , org.hamcrest.Matchers.is ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.IPV6_ADDRESS ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.QuotaVdsGroup object ) { return ( ( object.getVdsGroupName ( ) ) == null ) || ( object.getVdsGroupName ( ) . equals ( "" ) ) ? org.ovirt.engine.ui.webadmin.section.main.view.tab.quota.SubTabQuotaClusterView.constants.ultQuotaForAllClustersQuotaPopup ( ) : object.getVdsGroupName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.QuotaCluster object ) { return ( ( object.getClusterName ( ) ) == null ) || ( object.getClusterName ( ) . equals ( "" ) ) ? org.ovirt.engine.ui.webadmin.section.main.view.tab.quota.SubTabQuotaClusterView.constants.ultQuotaForAllClustersQuotaPopup ( ) : object.getClusterName ( ) ; }
Source:
protected org.ovirt.engine.api.model.Domain addParents ( org.ovirt.engine.api.model.Domain domain ) { if ( ( parent ) != null ) { org.ovirt.engine.api.common.util.ReflectionHelper.assignChildModel ( domain , org.ovirt.engine.api.model.Domain.class ) . setId ( id ) ; } return domain ; }

Target:
protected org.ovirt.engine.api.model.Domain addParents ( org.ovirt.engine.api.model.Domain domain ) { if ( ( parent ) != null ) { org.ovirt.engine.api.utils.ReflectionHelper.assignChildModel ( domain , org.ovirt.engine.api.model.Domain.class ) . setId ( id ) ; } return domain ; }
Source:
public java.lang.Void runInTransaction ( ) { try { createJobToMonitor ( cluster , task ) ; } catch ( org.ovirt.engine.core.common.errors.VdcBLLException e ) { org.ovirt.engine.core.bll.gluster.GlusterTasksSyncJob.log.error ( "Error creating job for task from CLI" , e ) ; } return null ; }

Target:
public java.lang.Void runInTransaction ( ) { try { createJobToMonitor ( cluster , task ) ; } catch ( org.ovirt.engine.core.common.errors.EngineException e ) { org.ovirt.engine.core.bll.gluster.GlusterTasksSyncJob.log.error ( "Error creating job for task from CLI" , e ) ; } return null ; }
Source:
private org.ovirt.engine.api.restapi.resource.BackendHostHooksResource getCollectionResourceMock ( ) { control = org.easymock.EasyMock.createNiceControl ( ) ; org.ovirt.engine.api.restapi.resource.BackendHostHooksResource mock = control.createMock ( org.ovirt.engine.api.restapi.resource.BackendHostHooksResource.class ) ; org.easymock.EasyMock.expect ( mock.list ( ) ) . andReturn ( getHooks ( ) ) ; return mock ; }

Target:
private org.ovirt.engine.api.restapi.resource.BackendHostHooksResource getCollectionResourceMock ( ) { org.ovirt.engine.api.restapi.resource.BackendHostHooksResource resource = org.mockito.Mockito.mock ( org.ovirt.engine.api.restapi.resource.BackendHostHooksResource.class ) ; org.mockito.Mockito.when ( resource.list ( ) ) . thenReturn ( getHooks ( ) ) ; return resource ; }
Source:
protected int getMaxNameLength ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.IsWindowsOsType ( osType ) ? org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.WINDOWS_VM_NAME_MAX_LIMIT : org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NON_WINDOWS_VM_NAME_MAX_LIMIT ; }

Target:
protected int getMaxNameLength ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( osType ) ? org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.WINDOWS_VM_NAME_MAX_LIMIT : org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NON_WINDOWS_VM_NAME_MAX_LIMIT ; }
Source:
protected boolean executeRemoveVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid storageDomainId ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . runVdsCommand ( VDSCommandType.RemoveVM , new org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters ( storagePoolId , id , storageDomainId ) ) . getSucceeded ( ) ; }

Target:
protected boolean executeRemoveVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid storageDomainId ) { return resourceManager.runVdsCommand ( VDSCommandType.RemoveVM , new org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters ( storagePoolId , id , storageDomainId ) ) . getSucceeded ( ) ; }
Source:
private java.lang.String getBackupConfPath ( ) { return "/var/run/ovirt-hosted-engine-ha/vm.conf" ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return hostedEngineVm.getStoragePoolId ( ) ; }
Source:
public boolean getContainingHooks ( ) { java.lang.String hooksStr = getHooksStr ( ) ; return ( hooksStr != null ) && ( ( hooksStr.length ( ) ) > 2 ) ; }

Target:
public boolean isContainingHooks ( ) { java.lang.String hooksStr = getHooksStr ( ) ; return ( hooksStr != null ) && ( ( hooksStr.length ( ) ) > 2 ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }
Source:
private void logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "ResourceManager::refreshVdsRunTimeInfo::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.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getVdsName ( ) , ex ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.PostZeroHandler.fixParametersWithPostZero ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 4 ) , isPostZero ( ) , false ) ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.domain.PostZeroHandler.fixParametersWithPostZero ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 4 ) , isPostZero ( ) , false ) ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getmigrating_to_vds ( ) { return this . mVmDynamic.getmigrating_to_vds ( ) ; }

Target:
public void setRunOnVds ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setrun_on_vds ( value ) ; }
Source:
public java.lang.String getvds_group_description ( ) { return this . vds_group_descriptionField ; }

Target:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getVdsGroupCompatibilityVersion ( ) , value ) ) { this . vdsGroupCompatibilityVersion = value ; } }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllMigrationNetworkInterfacesInCluster ( org.ovirt.engine.core.compat.Guid clusterId ) ;

Target:
java.util.Optional < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getActiveMigrationNetworkInterfaceForHost ( org.ovirt.engine.core.compat.Guid hostId ) ;
Source:
protected boolean isVmExist ( ) { if ( ( org.ovirt.engine.core.bll.AbstractDiskVmCommand.getVm ( ) ) == null ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; return false ; } return true ; }

Target:
protected boolean isVmExist ( ) { if ( ( org.ovirt.engine.core.bll.AbstractDiskVmCommand.getVm ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; return false ; } return true ; }
Source:
public org.ovirt.engine.core.vdsbroker.VmManager getVmManager ( org.ovirt.engine.core.compat.Guid vmId ) { return vmManagers.putIfAbsent ( vmId , new org.ovirt.engine.core.vdsbroker.VmManager ( vmId ) ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.VmManager getVmManager ( org.ovirt.engine.core.compat.Guid vmId ) { if ( ! ( vmManagers.containsKey ( vmId ) ) ) { vmManagers.putIfAbsent ( vmId , new org.ovirt.engine.core.vdsbroker.VmManager ( vmId ) ) ; } return vmManagers.get ( vmId ) ; }
Source:
public void shouldElectActiveLocalDataDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain domain = prepareLocalStorageDomainForElection ( StorageDomainStatus.Active ) ; org.junit.Assert.assertEquals ( domain , cmd.electNewMaster ( ) ) ; }

Target:
public void shouldElectActiveLocalDataDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain domain = prepareLocalStorageDomainForElection ( StorageDomainStatus.Active ) ; org.junit.jupiter.api.Assertions.assertEquals ( domain , cmd.electNewMaster ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getSelectedCluster ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.DataCenterWithClusterEntityModel dataCenterWithClusterEntityModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DataCenterWithClusterEntityModel ) ( getDataCenterWithClustersList ( ) . getSelectedItem ( ) ) ) ; if ( dataCenterWithClusterEntityModel == null ) { return null ; } return dataCenterWithClusterEntityModel.getCluster ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool getSelectedDataCenter ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.DataCenterWithCluster dataCenterWithCluster = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DataCenterWithCluster ) ( getDataCenterWithClustersList ( ) . getSelectedItem ( ) ) ) ; if ( dataCenterWithCluster == null ) { return null ; } return dataCenterWithCluster.getDataCenter ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmInterfaceType getRawValue ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface object ) { return org.ovirt.engine.core.common.businessentities.VmInterfaceType.forValue ( object.getType ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmInterfaceType getRawValue ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { return org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.forValue ( object.getType ( ) ) ; }
Source:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel value ) { systemTreeSelectedItem = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SystemTreeSelectedItem" ) ) ; }

Target:
public void setQueryCounter ( int queryCounter ) { this . queryCounter = queryCounter ; }
Source:
public static org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dao.BaseDAOTestCase.dbFacade ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return dbFacade ; }
Source:
public java.lang.String getDueToMigrationError ( ) { if ( ( migrationErrorCode ) == null ) { return " " ; } return " due to Error: " + ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . getVdsErrorsTranslator ( ) . TranslateErrorTextSingle ( migrationErrorCode.name ( ) , true ) ) ; }

Target:
public java.lang.String getDueToMigrationError ( ) { if ( ( migrationErrorCode ) == null ) { return " " ; } return " due to Error: " + ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . getVdsErrorsTranslator ( ) . translateErrorTextSingle ( migrationErrorCode.name ( ) , true ) ) ; }
Source:
public int getMinAllocatedMem ( ) { if ( ( minAllocatedMemField ) > 0 ) { return minAllocatedMemField ; } return getmem_size_mb ( ) ; }

Target:
public void setInitialized ( boolean value ) { initialized = value ; }
Source:
public void testGetByGlusterServerUuid ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByGlusterServerUuid ( FixturesTool.GLUSTER_SERVER_UUID1 ) ; org.junit.Assert.assertNotNull ( entity ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_BRICK_SERVER1 , entity.getId ( ) ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_SERVER_UUID1 , entity.getGlusterServerUuid ( ) ) ; }

Target:
public void testGetByGlusterServerUuid ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByGlusterServerUuid ( FixturesTool.GLUSTER_SERVER_UUID1 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( entity ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.GLUSTER_BRICK_SERVER1 , entity.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.GLUSTER_SERVER_UUID1 , entity.getGlusterServerUuid ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > getBackendCollection ( ) { org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters parameters = new org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters ( ) ; parameters.setProviderId ( asGuid ( providerId ) ) ; parameters.setNetworkId ( networkId ) ; return getBackendCollection ( VdcQueryType.GetExternalSubnetsOnProviderByExternalNetwork , parameters ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > getBackendCollection ( ) { org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters parameters = new org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters ( ) ; parameters.setProviderId ( asGuid ( providerId ) ) ; parameters.setNetworkId ( networkId ) ; return getBackendCollection ( QueryType.GetExternalSubnetsOnProviderByExternalNetwork , parameters ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( requiringAuthentication , description , id , name , password , type , url , username , customProperties , additionalProperties , authUrl ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( requiringAuthentication , description , id , name , password , type , url , username , customProperties , additionalProperties , authUrl , isUnmanaged ) ; }
Source:
private void detachDisks ( ) { attachDetachDisks ( VdcActionType.DetachDiskFromVm ) ; }

Target:
private void detachDisks ( ) { attachDetachDisks ( ActionType.DetachDiskFromVm ) ; }
Source:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( e.propertyName.equals ( "status" ) ) { updateActionAvailability ( ) ; } }

Target:
protected void cancel ( ) { cancelConfirmation ( ) ; setWindow ( null ) ; updateActionsAvailability ( ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvmt_guid ( ) { return this . mVmStatic.getvmt_guid ( ) ; }

Target:
public void setUsageMemPercent ( java.lang.Integer value ) { this . vmStatistics.setusage_mem_percent ( value ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvmt_guid ( ) { return this . mVmStatic.getvmt_guid ( ) ; }

Target:
public java.lang.Integer getUsageCpuPercent ( ) { return this . vmStatistics.getusage_cpu_percent ( ) ; }
Source:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( LockProperties.Scope.Execution ) ; }
Source:
private void addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createMemoryDiskForVm ( org.ovirt.engine.core.bll.HibernateVmCommand.getVm ( ) , org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) ) ; addDisk ( memoryDisk ) ; }

Target:
private void addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createHibernationMemoryDisk ( org.ovirt.engine.core.bll.HibernateVmCommand.getVm ( ) , org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) ) ; addDisk ( memoryDisk ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > filter ( final java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > data ) { for ( org.ovirt.engine.core.common.businessentities.IVdcQueryable vmt_helper : data ) { org.ovirt.engine.core.common.businessentities.VmTemplate vmt = ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( vmt_helper ) ) ; org.ovirt.engine.core.bll.VmTemplateHandler.UpdateDisksFromDb ( vmt ) ; } return data ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchVMTemplates ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVmTemplateDao ( ) , true , null ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return CreateTask ( asyncTaskCreationInfo , parentCommand , null , null , org.ovirt.engine.core.bll.CommandBase.EMPTY_GUID_ARRAY ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( asyncTaskCreationInfo , parentCommand , null , null , org.ovirt.engine.core.bll.CommandBase.EMPTY_GUID_ARRAY ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileNotUsedByTemplates ( ) { return vnicProfileNotUsed ( getDbFacade ( ) . getVmTemplateDao ( ) . getAllForVnicProfile ( vnicProfile.getId ( ) ) , EngineMessage.VAR__ENTITIES__VM_TEMPLATES , EngineMessage.VAR__ENTITIES__VM_TEMPLATE ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileNotUsedByTemplates ( ) { return vnicProfileNotUsed ( org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.VmTemplateDao.class ) . getAllForVnicProfile ( vnicProfile.getId ( ) ) , EngineMessage.VAR__ENTITIES__VM_TEMPLATES , EngineMessage.VAR__ENTITIES__VM_TEMPLATE ) ; }
Source:
public void rerun ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . GetAsyncCommandForVm ( vmId ) ; if ( command != null ) { command.rerun ( ) ; } }

Target:
public void run ( ) { command.rerun ( ) ; }
Source:
public void writeStartElement ( java.lang.String uri , java.lang.String name ) { try { writer.writeStartElement ( uri , name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }

Target:
public void writeEndDocument ( ) { try { writer.writeEndDocument ( ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( "Can't write end of document" , exception ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > extendImageTransferSession ( java.lang.String ticketId , long expiration ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > get_image_transfer_session_stats ( java.lang.String ticketId ) ;
Source:
static org.ovirt.engine.api.model.NIC getModel ( int index ) { org.ovirt.engine.api.model.NIC model = new org.ovirt.engine.api.model.NIC ( ) ; model.setName ( NAMES [ index ] ) ; model.setInterface ( NicInterface.RTL8139_VIRTIO.value ( ) ) ; return model ; }

Target:
static org.ovirt.engine.api.model.Nic getModel ( int index ) { org.ovirt.engine.api.model.Nic model = new org.ovirt.engine.api.model.Nic ( ) ; model.setName ( NAMES [ index ] ) ; model.setInterface ( NicInterface.RTL8139_VIRTIO.value ( ) ) ; return model ; }
Source:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml ) { addColumn ( column , createHeader ( column , headerHtml , true ) ) ; }

Target:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText ) { com.google.gwt.user.cellview.client.Header < ? > header = new org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( headerText ) ) ; addColumn ( column , header ) ; }
Source:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { persistCommand ( parentCommand , false ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { persistCommand ( parentCommand , getContext ( ) , false ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { if ( ( text != null ) && ( applyResizableHeaderStyle ) ) { return templates.nonResizeableColumnHeader ( text ) ; } return text ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { if ( ( text != null ) && ( applyResizableHeaderStyle ) ) { return org.ovirt.engine.ui.common.widget.table.resize.ColumnResizeCellTable.templates.nonResizeableColumnHeader ( text ) ; } return text ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommand.getVm ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; } return true ; }

Target:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommand.getVm ( ) ) == null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; } return true ; }
Source:
public java.lang.String getBondOptions ( ) { return getIface ( ) . getBondOptions ( ) ; }

Target:
public java.lang.String getName ( ) { return createOrUpdateBond.getName ( ) ; }
Source:
private void verifyModel ( org.ovirt.engine.api.model.ExternalProvider model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }

Target:
private void verifyModel ( org.ovirt.engine.api.model.ExternalProvider model , int index ) { org.junit.Assert.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; org.junit.Assert.assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
public int getMinimumDiskSize ( ) { return ( ( int ) ( ( ( ( getImageSize ( ) ) + ( org.ovirt.engine.core.common.utils.SizeConverter.BYTES_IN_GB ) ) - 1 ) / ( org.ovirt.engine.core.common.utils.SizeConverter.BYTES_IN_GB ) ) ) ; }

Target:
public int getMinimumDiskSize ( ) { return java.lang.Math.max ( getImageInfoModel ( ) . getActualSize ( ) , getImageInfoModel ( ) . getVirtualSize ( ) ) ; }
Source:
java.util.concurrent.FutureTask < java.util.Map < java.lang.String , java.lang.Object > > timeBoundPoll ( long timeout , java.util.concurrent.TimeUnit unit ) ;

Target:
java.util.concurrent.FutureTask < java.util.Map < java.lang.String , java.lang.Object > > timeBoundPoll2 ( long timeout , java.util.concurrent.TimeUnit unit ) ;
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 logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warn ( "Failed to AfterRefreshTreatment VDS, continuing: {}" , ex.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.VdsManager.log.debug ( "Exception" , ex ) ; }
Source:
protected boolean isImageNotLocked ( ) { return org.ovirt.engine.core.bll.ImagesHandler.checkImagesLocked ( getVm ( ) , org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
private boolean isLastTaskHandler ( ) { return ( getParameters ( ) . getExecutionIndex ( ) ) == ( ( org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand.getTaskHandlers ( ) . size ( ) ) - 1 ) ; }
Source:
public void removeSessionItem ( java.lang.String key ) { if ( ( org.ovirt.engine.ui.common.system.ClientStorageImpl.sessionStorage ) != null ) { org.ovirt.engine.ui.common.system.ClientStorageImpl.sessionStorage.removeItem ( key ) ; } else { com.google.gwt.user.client.Cookies.removeCookie ( key ) ; } }

Target:
public java.lang.String getSessionItem ( java.lang.String key ) { java.lang.String value = getSessionItemImpl ( getPrefixedKey ( key ) ) ; return value != null ? value : getSessionItemImpl ( key ) ; }
Source:
public void testValidateQuotaForStoragePool ( ) throws java.lang.Exception { }

Target:
public void testValidateAndSetClusterQuotaForMemGlobalOverGrace ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( quotaManager.validateAndSetClusterQuota ( storage_pool , org.ovirt.engine.core.bll.quota.QuotaManagerTest.DESTINATION_GUID , org.ovirt.engine.core.bll.quota.QuotaManagerTest.MEM_QUOTA_GLOBAL_OVER_GRACE , 1 , 1 , canDoActionMessages ) ) ; assertNotEmptyCanDoActionMessage ( ) ; assertAuditLogWritten ( ) ; }
Source:
protected void initDetailModels ( ) { super . initDetailModels ( ) ; org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; permissionListModel = new org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel ( ) ; list.add ( permissionListModel ) ; setDetailModels ( list ) ; }

Target:
private void setDetailList ( ) { java.util.List < org.ovirt.engine.ui.uicommonweb.models.HasEntity < P > > list = new java.util.ArrayList < > ( ) ; list.add ( permissionListModel ) ; setDetailModels ( list ) ; }
Source:
public void forceAddMac ( java.lang.String mac ) { lockObj.writeLock ( ) . lock ( ) ; try { checkIfInitialized ( ) ; forceAddMacWithoutLocking ( mac ) ; } finally { lockObj.writeLock ( ) . unlock ( ) ; } }

Target:
public void forceAddMac ( java.lang.String mac ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.writeLock ( ) ) ) { checkIfInitialized ( ) ; forceAddMacWithoutLocking ( mac ) ; } }
Source:
public void copyKeysDataTo ( ovirt_engine_dwh.aggregationtohourly_3_4.AggregationToHourly.dc_aggregate_dateStruct other ) { other.var_name = this . var_name ; }

Target:
public void copyKeysDataTo ( ovirt_engine_dwh.aggregationtohourly_3_4.AggregationToHourly.row18Struct other ) { other.var_name = this . var_name ; }
Source:
private void RemoveVdsDynamicFromDb ( ) { getVdsDynamicDAO ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }

Target:
private void RemoveVdsStaticFromDb ( ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsStaticDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }
Source:
public void testGetFirstUpRhelForClusterFromClusterWithFedoras ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = dao.getFirstUpRhelForCluster ( org.ovirt.engine.core.dao.VdsDaoTest.CLUSTER_WITH_FEDORA ) ; org.junit.Assert.assertNull ( vds ) ; }

Target:
public void testGetFirstUpRhelForClusterFromClusterWithFedoras ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = dao.getFirstUpRhelForCluster ( org.ovirt.engine.core.dao.VdsDaoTest.CLUSTER_WITH_FEDORA ) ; org.junit.jupiter.api.Assertions.assertNull ( vds ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Tags > returnValue ) { allAttachedTags.addAll ( returnValue ) ; ( selectedItemsCounter ) ++ ; if ( ( selectedItemsCounter ) == ( getSelectedItems ( ) . size ( ) ) ) { postGetAttachedTags ( model ) ; } }
Source:
public static org.ovirt.engine.api.extensions.ExtMap fetchPrincipalRecord ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , org.ovirt.engine.api.extensions.ExtMap authRecord ) { return org.ovirt.engine.core.aaa.AuthzUtils.fetchPrincipalRecordImpl ( extension , Authn.InvokeKeys.AUTH_RECORD , authRecord , true , true ) ; }

Target:
public static org.ovirt.engine.api.extensions.ExtMap fetchPrincipalRecord ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , org.ovirt.engine.api.extensions.ExtMap authRecord ) { return org.ovirt.engine.core.aaa.AuthzUtils.fetchPrincipalRecordImpl ( extension , new org.ovirt.engine.api.extensions.ExtMap ( ) . mput ( Authn.InvokeKeys.AUTH_RECORD , authRecord ) . mput ( Authz.InvokeKeys.PRINCIPAL , authRecord.get ( Authn.AuthRecord.PRINCIPAL ) ) , true , true ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.ResumeBrokerVDSCommand.getBroker ( ) . resume ( mVmId.toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.ResumeBrokerVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { vmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.ResumeBrokerVDSCommand.getBroker ( ) . resume ( vmId.toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.ResumeBrokerVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void testGetVmsIdsForOvfUpdateNoneForUpdate ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getVmsIdsForOvfUpdate ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.Assert.assertTrue ( "there shouldn't be any vms that needs ovf update" , guids.isEmpty ( ) ) ; }

Target:
public void testGetVmsIdsForOvfUpdateNoneForUpdate ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getVmsIdsForOvfUpdate ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.jupiter.api.Assertions.assertTrue ( guids.isEmpty ( ) , "there shouldn't be any vms that needs ovf update" ) ; }
Source:
private boolean isUpdateRequired ( org.ovirt.vdsmfake.domain.VM.VMStatus status ) { return status == ( VM.VMStatus.Up ) ? true : status == ( VM.VMStatus.PoweredDown ) ? true : status == ( VM.VMStatus.Paused ) ? true : false ; }

Target:
private boolean isUpdateRequired ( org.ovirt.vdsmfake.domain.VM.VMStatus status ) { return status == ( VM.VMStatus.Up ) ? true : status == ( VM.VMStatus.PoweringDown ) ? true : status == ( VM.VMStatus.Paused ) ? true : false ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getos ( ) { return this . getvm_os ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getOs ( ) { return this . getVmOs ( ) ; }
Source:
public org.ovirt.engine.api.model.StorageDomain getStorageDomain ( ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , storageDomainId.toString ( ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageDomain getStorageDomain ( ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , QueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , storageDomainId.toString ( ) ) ; }
Source:
protected com.gwtplatform.mvp.shared.proxy.PlaceRequest getMainTabRequest ( ) { return org.ovirt.engine.ui.common.place.PlaceRequestFactory.get ( ApplicationPlaces.storageMainTabPlace ) ; }

Target:
protected com.gwtplatform.mvp.shared.proxy.PlaceRequest getMainTabRequest ( ) { return org.ovirt.engine.ui.common.place.PlaceRequestFactory.get ( WebAdminApplicationPlaces.storageMainTabPlace ) ; }
Source:
protected boolean isVdsGroupUnique ( java.lang.String vdsGroupName ) { org.ovirt.engine.core.dao.VdsGroupDAO vdsGroupDao = org.ovirt.engine.core.bll.VdsGroupOperationCommandBase.getVdsGroupDAO ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > vdsGroups = vdsGroupDao.getByName ( vdsGroupName , true ) ; return ( vdsGroups == null ) || ( vdsGroups.isEmpty ( ) ) ; }

Target:
protected boolean isVdsGroupUnique ( java.lang.String vdsGroupName ) { org.ovirt.engine.core.dao.VdsGroupDao vdsGroupDao = org.ovirt.engine.core.bll.VdsGroupOperationCommandBase.getVdsGroupDao ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > vdsGroups = vdsGroupDao.getByName ( vdsGroupName , true ) ; return ( vdsGroups == null ) || ( vdsGroups.isEmpty ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.EntityMultiAsyncTasks GetEntityMultiAsyncTasks ( ) { return org.ovirt.engine.core.bll.EntityAsyncTask.GetEntityMultiAsyncTasksByContainerId ( getContainerId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.action.VdcActionType getEndActionType ( org.ovirt.engine.core.common.businessentities.AsyncTasks dbAsyncTask ) { org.ovirt.engine.core.common.action.VdcActionType commandType = dbAsyncTask.getActionParameters ( ) . getCommandType ( ) ; if ( ! ( VdcActionType.Unknown.equals ( commandType ) ) ) { return commandType ; } return dbAsyncTask.getaction_type ( ) ; }
Source:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { macPool.freeMacs ( macs ) ; }

Target:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { log.debug ( "Non-tx, non-compensation state, immediately releasing macs {}." , macs ) ; macPool.freeMacs ( macs ) ; }
Source:
public org.ovirt.engine.api.model.HostDevice get ( ) { return performGet ( VdcQueryType.GetHostDeviceByHostIdAndDeviceName , new org.ovirt.engine.core.common.queries.HostDeviceParameters ( parent.getHostId ( ) , deviceName ) ) ; }

Target:
public org.ovirt.engine.api.model.HostDevice get ( ) { return performGet ( QueryType.GetHostDeviceByHostIdAndDeviceName , new org.ovirt.engine.core.common.queries.HostDeviceParameters ( parent.getHostId ( ) , deviceName ) ) ; }
Source:
public void removeAllCommandsInHierarchy ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
void removeCommand ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
public void setvm_description ( java.lang.String value ) { this . mVmStatic.setdescription ( value ) ; }

Target:
public void setVmDescription ( java.lang.String value ) { this . vmStatic.setdescription ( value ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.network_cluster , org.ovirt.engine.core.common.businessentities.VDSGroup > object ) { return networkStatusColumn.getValue ( object.getFirst ( ) ) ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network_cluster > object ) { if ( ( object.getSecond ( ) ) != null ) { return networkStatusColumn.getValue ( object.getSecond ( ) ) ; } return null ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { object.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPassPkWindow ( true ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( ( e.PropertyName ) == "IsAvailable" ) { setPkPasswordSectionVisiblity ( false ) ; } }
Source:
public java.lang.String getConsoleCurentUserName ( ) { return this . vmDynamic.getConsole_current_user_name ( ) ; }

Target:
public java.lang.String getConsoleCurentUserName ( ) { return this . vmDynamic.getConsoleCurrentUserName ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setAllowClusterWithVirtGlusterEnabled ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getMacPoolListModel ( ) . setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.MacPool > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; stopProgress ( ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.UICommand getCreateSnapshotCommand ( ) { return this . createSnapshotCommand ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getConfigureClusterSnapshotOptionsCommand ( ) { return this . configureClusterSnapshotOptionsCommand ; }
Source:
private org.ovirt.engine.core.common.businessentities.Disk getNewDisk ( ) { return org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.Disk getNewDisk ( ) { return org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) ; }
Source:
public void canDoActionNoDisksSpecified ( ) { org.junit.Assert.assertFalse ( command.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( VdcBllMessages.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED.toString ( ) ) ) ; }

Target:
public void canDoActionNoDisksSpecified ( ) { org.junit.Assert.assertFalse ( command.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED.toString ( ) ) ) ; }