auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void executeCommand ( ) { initConnectionList ( ) ; setSucceeded ( connectStorageServer ( getConnectionsTypeMap ( ) ) ) ; if ( ! ( getSucceeded ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( this , AuditLogType.CONNECT_STORAGE_SERVERS_FAILED ) ; } }

Target:
protected void executeCommand ( ) { initConnectionList ( getParameters ( ) . isConnectToInactiveDomains ( ) ) ; setSucceeded ( connectStorageServer ( getConnectionsTypeMap ( ) ) ) ; if ( ! ( getSucceeded ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( this , AuditLogType.CONNECT_STORAGE_SERVERS_FAILED ) ; } }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
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 ) ; } }

Target:
public org.ovirt.engine.core.bll.network.macpool.MacPool getPoolById ( org.ovirt.engine.core.compat.Guid macPoolId ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { return getPoolWithoutLocking ( macPoolId ) ; } }
Source:
protected void perform ( ) { setSucceeded ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.VmMonitorCommand , new org.ovirt.engine.core.common.vdscommands.VmMonitorCommandVDSCommandParameters ( org.ovirt.engine.core.bll.MonitorCommand.getVdsId ( ) , org.ovirt.engine.core.bll.MonitorCommand.getVmId ( ) , mMonitorCommand ) ) . getSucceeded ( ) ) ; }

Target:
protected void perform ( ) { setSucceeded ( runVdsCommand ( VDSCommandType.VmMonitorCommand , new org.ovirt.engine.core.common.vdscommands.VmMonitorCommandVDSCommandParameters ( org.ovirt.engine.core.bll.MonitorCommand.getVdsId ( ) , org.ovirt.engine.core.bll.MonitorCommand.getVmId ( ) , mMonitorCommand ) ) . getSucceeded ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.bookmarks bookmark = org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getBookmarkDAO ( ) . get ( org.ovirt.engine.core.bll.GetBookmarkByIdQuery.getParameters ( ) . getBookmarkId ( ) ) ; org.ovirt.engine.core.bll.GetBookmarkByIdQuery.getQueryReturnValue ( ) . setReturnValue ( bookmark ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.bookmarks bookmark = org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getBookmarkDao ( ) . get ( org.ovirt.engine.core.bll.GetBookmarkByIdQuery.getParameters ( ) . getBookmarkId ( ) ) ; org.ovirt.engine.core.bll.GetBookmarkByIdQuery.getQueryReturnValue ( ) . setReturnValue ( bookmark ) ; }
Source:
public org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) { if ( ! ( org.ovirt.engine.core.bll.RunVmCommandBase.hasCapacityToRunVM ( vds ) ) ) { sb.append ( "has insuffient capacity to run power client" ) ; return org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_CPUS ; } return null ; }

Target:
public org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) { if ( ! ( org.ovirt.engine.core.bll.RunVmCommandBase.hasCapacityToRunVM ( vds ) ) ) { sb.append ( "has insufficient capacity to run power client" ) ; return org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_CPUS ; } return null ; }
Source:
public void updateIfNeeded ( org.ovirt.engine.core.common.businessentities.VdsDynamic vdsDynamic ) { update ( vdsDynamic ) ; }

Target:
public void updateNetConfigDirty ( org.ovirt.engine.core.compat.Guid id , java.lang.Boolean netConfigDirty ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "net_config_dirty" , netConfigDirty ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicNetConfigDirty" , parameterSource ) ; }
Source:
private org.ovirt.engine.core.dao.network.NetworkDao getNetworkDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacadeLocator.getDbFacade ( ) . getNetworkDao ( ) ; }

Target:
public boolean isManagementNetwork ( java.lang.String networkName , org.ovirt.engine.core.compat.Guid clusterId ) { final org.ovirt.engine.core.common.businessentities.network.Network managementNetwork = getManagementNetwork ( clusterId ) ; return ( managementNetwork != null ) && ( managementNetwork.getName ( ) . equals ( networkName ) ) ; }
Source:
private boolean bondIsBeingRemoved ( java.lang.String bondName ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface removedBond : removedBondVdsNetworkInterface ) { if ( bondName.equals ( removedBond.getName ( ) ) ) { return true ; } } return false ; }

Target:
private boolean isBondRemoved ( java.lang.String bondName ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface removedBond : removedBondVdsNetworkInterface ) { if ( bondName.equals ( removedBond.getName ( ) ) ) { return true ; } } return false ; }
Source:
public static boolean Is64bitOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.Get64bitOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }

Target:
public static boolean is64bitOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.get64bitOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }
Source:
protected void executeVdsIdCommand ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . RemoveVds ( org.ovirt.engine.core.vdsbroker.RemoveVdsVDSCommand.getVdsId ( ) , parameters.isNewHost ( ) ) ; }

Target:
protected void executeVdsIdCommand ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . removeVds ( org.ovirt.engine.core.vdsbroker.RemoveVdsVDSCommand.getVdsId ( ) , parameters.isNewHost ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( ( "%s, storagePoolId=%s, storageType=%s, storagePoolName=%s, masterDomainId=%s, " + "domainsIdList=%s, masterVersion=%s" ) , super . toString ( ) , getStoragePoolId ( ) , getStorageType ( ) , getStoragePoolName ( ) , getMasterDomainId ( ) , getDomainsIdList ( ) , getMasterVersion ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( ( "%s, storagePoolId=%s, storagePoolName=%s, masterDomainId=%s, " + "domainsIdList=%s, masterVersion=%s" ) , super . toString ( ) , getStoragePoolId ( ) , getStoragePoolName ( ) , getMasterDomainId ( ) , getDomainsIdList ( ) , getMasterVersion ( ) ) ; }
Source:
public void Init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getport ( ) ) ; setmCurrentIrsHost ( vds.gethost_name ( ) ) ; }

Target:
public void Init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getport ( ) ) ; privatemCurrentIrsHost = vds.gethost_name ( ) ; }
Source:
public int getcpu_per_socket ( ) { return this . mVmStatic.getcpu_per_socket ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return this . vmStatic.getVdsGroupId ( ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) . getQuotaId ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return org.ovirt.engine.core.bll.AddVmPoolCommand.getParameters ( ) . getVmStaticData ( ) . getQuotaId ( ) ; }
Source:
public void setApps ( java.util.List < java.lang.String > value ) { if ( ( apps ) != value ) { apps = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Apps" ) ) ; } }

Target:
public void setApps ( java.util.List < java.lang.String > value ) { if ( ( apps ) != value ) { apps = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Apps" ) ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VmTemplate getVmTemplate ( ) { return createVmTemplate ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { org.ovirt.engine.core.common.businessentities.StorageDomain result = createStorageDomain ( domainSpaceGB ) ; result.setId ( ( ( org.ovirt.engine.core.compat.Guid ) ( invocation.getArguments ( ) [ 0 ] ) ) ) ; return result ; }
Source:
public void checkMissingV4BootProtocol ( ) { initIpv4ConfigurationWithPrimaryAddress ( ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_IP_CONFIGURATION_MISSING_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_NETWORK_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_INTERFACE_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.INTERFACE_NAME ) ) ) ; }

Target:
public void checkMissingV4BootProtocol ( ) { initIpv4ConfigurationWithPrimaryAddress ( ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_IP_CONFIGURATION_MISSING_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_NETWORK_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_INTERFACE_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.INTERFACE_NAME ) ) ) ; }
Source:
private java.lang.String applyPattern ( org.ovirt.engineextensions.aaa.ldap.MapProperties props , java.lang.String s ) { if ( s == null ) { return null ; } else { return s.replaceFirst ( props.getString ( null , "pattern" ) , props.getString ( null , "replace" ) ) ; } }

Target:
private java.lang.String applyPattern ( org.ovirt.engineextensions.aaa.ldap.MapProperties props , java.lang.String s ) { if ( s == null ) { return null ; } else { return s.replaceFirst ( props.getMandatoryString ( "pattern" ) , props.getMandatoryString ( "replace" ) ) ; } }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeBricksButton.getCommand ( ) . Execute ( ) ; clearSelections ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeAllBricksButton.getCommand ( ) . Execute ( ) ; clearSelections ( ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 0 ; }

Target:
public void getMaxSpmPriority ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Integer > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( 0 ) ; aQuery.getAsyncCallback ( ) . onSuccess ( 10 ) ; }
Source:
public void updateStatusForNonExistingSnapshot ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid snapshotId = new org.ovirt.engine.core.compat.Guid ( ) ; org.junit.Assert.assertNull ( dao.get ( snapshotId ) ) ; dao.updateStatus ( snapshotId , SnapshotStatus.LOCKED ) ; org.junit.Assert.assertNull ( dao.get ( snapshotId ) ) ; }

Target:
public void updateStatusForNonExistingSnapshot ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid snapshotId = org.ovirt.engine.core.compat.Guid.Empty ; org.junit.Assert.assertNull ( dao.get ( snapshotId ) ) ; dao.updateStatus ( snapshotId , SnapshotStatus.LOCKED ) ; org.junit.Assert.assertNull ( dao.get ( snapshotId ) ) ; }
Source:
public void passthroughProfileContainsFilterId ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsFilterId ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public void runQueryFailed ( java.util.List < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > returnValue ) { errorPopupManager.show ( messages.uiCommonRunQueryFailed ( ( returnValue != null ? org.ovirt.engine.ui.common.uicommon.ErrorMessageFormatter.formatQueryReturnValues ( returnValue ) : "null" ) ) ) ; }

Target:
public void runQueryFailed ( java.util.List < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > returnValue ) { errorPopupManager.show ( org.ovirt.engine.ui.common.uicommon.FrontendEventsHandlerImpl.messages.uiCommonRunQueryFailed ( ( returnValue != null ? org.ovirt.engine.ui.common.uicommon.ErrorMessageFormatter.formatQueryReturnValues ( returnValue ) : "null" ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendHostsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VDS.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VdsStatistics.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendHostsResourceTest.setUpEntityExpectations ( org.mockito.Mockito.spy ( new org.ovirt.engine.core.common.businessentities.VDS ( ) ) , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VdsStatistics.class ) , index ) ; }
Source:
public void setSymbolMapsDirectory ( java.lang.String symbolMapsDir ) { deobfuscator = com.google.gwt.core.server.StackTraceDeobfuscator.fromFileSystem ( symbolMapsDir ) ; }

Target:
private void initDeobfuscator ( final java.nio.file.FileSystem zipFs ) { deobfuscator = new com.google.gwt.core.server.StackTraceDeobfuscator ( ) { protected java.io.InputStream openInputStream ( java.lang.String fileName ) throws java.io.IOException { return java.nio.file.Files.newInputStream ( zipFs.getPath ( ( "/" + fileName ) ) ) ; } } ; }
Source:
public boolean isSupportsSnapshots ( ) { return ( ( this ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.CINDER ) ) ; }

Target:
public boolean isInternal ( ) { return ( ( this ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.CINDER ) ) ; }
Source:
public void setVmCount ( int value ) { this . mVdsDynamic.setvm_count ( value ) ; }

Target:
public void setVmCount ( int value ) { vdsDynamic.setVmCount ( value ) ; }
Source:
public org.ovirt.engine.core.common.users.VdcUser getVdcUser ( ) { return new org.ovirt.engine.core.common.users.VdcUser ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( getId ( ) ) , getUserName ( ) , getDomain ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser getVdcUser ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setId ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( getId ( ) ) ) ; user.setDomain ( getDomain ( ) ) ; user.setLoginName ( getUserName ( ) ) ; return user ; }
Source:
boolean isMacInUse ( java.lang.String mac ) ;

Target:
void forceAddMac ( java.lang.String mac ) ;
Source:
public void testVmExceedsMaxNumOfSockets ( ) { setVmCpuValues ( ( ( org.ovirt.engine.core.bll.validator.VmValidatorTest.MAX_NUM_SOCKETS ) + 1 ) , 1 , 1 ) ; org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAX_NUM_SOCKETS ) ) ; }

Target:
public void testVmExceedsMaxNumOfSockets ( ) { setVmCpuValues ( ( ( org.ovirt.engine.core.bll.validator.VmValidatorTest.MAX_NUM_SOCKETS ) + 1 ) , 1 , 1 ) ; org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAX_NUM_SOCKETS ) ) ; }
Source:
protected boolean cpuExists ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusExist ( cluster.getcpu_name ( ) , cluster.getcompatibility_version ( ) ) ; }

Target:
protected boolean cpuExists ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusExist ( cluster.getCpuName ( ) , cluster.getCompatibilityVersion ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { org.ovirt.engine.ui.frontend.Frontend.setLoggedInUser ( null ) ; getLoginModel ( ) . resetAfterLogout ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.clearCache ( ) ; org.ovirt.engine.ui.userportal.system.ApplicationInit.super . onLogout ( ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { org.ovirt.engine.ui.frontend.Frontend.setLoggedInUser ( null ) ; getLoginModel ( ) . resetAfterLogout ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.clearCache ( ) ; connectAutomaticallyManager.resetAlreadyOpened ( ) ; org.ovirt.engine.ui.userportal.system.ApplicationInit.super . onLogout ( ) ; }
Source:
private boolean checkVmIsDown ( ) { return ! ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.LiveSnapshotEnabled , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getStoragePool ( ) . getcompatibility_version ( ) . getValue ( ) ) ) ; }

Target:
private boolean isLiveSnapshotEnabled ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.LiveSnapshotEnabled , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getStoragePool ( ) . getcompatibility_version ( ) . getValue ( ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; }
Source:
private void setDiskStorageDomainInfo ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { java.util.ArrayList < org.ovirt.engine.core.compat.Guid > storageDomain = new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( ) ; storageDomain.add ( imageToDestinationDomainMap.get ( disk.getId ( ) ) ) ; disk.setStorageIds ( storageDomain ) ; }

Target:
private void setDiskStorageDomainInfo ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { java.util.ArrayList < org.ovirt.engine.core.compat.Guid > storageDomain = new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( ) ; storageDomain.add ( imageToDestinationDomainMap.get ( disk.getId ( ) ) ) ; disk.setStorageIds ( storageDomain ) ; }
Source:
public java.lang.String getPmOptions ( ) { return mVdsStatic.getPmOptions ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.FenceAgent > getFenceAgents ( ) { return fenceAgents ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult exist ( ) { if ( ( vds ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.VDS_DOES_NOT_EXIST ) ; } return ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult exists ( ) { if ( ( vds ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.VDS_DOES_NOT_EXIST ) ; } return ValidationResult.VALID ; }
Source:
private void initStorageDomains ( ) { validStorageDomain = initStorageDomain ( ) ; invalidStorageDomain1 = initStorageDomain ( ) ; invalidStorageDomain2 = initStorageDomain ( ) ; }

Target:
private void initStorageDomains ( ) { validStorageDomain = initStorageDomain ( ) ; invalidStorageDomain1 = initStorageDomain ( ) ; invalidStorageDomain2 = initStorageDomain ( ) ; invalidStorageDomain3 = initStorageDomain ( ) ; }
Source:
protected boolean canDoAction ( ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsSpmIdMapDAO ( ) . get ( org.ovirt.engine.core.bll.RemoveVdsSpmIdCommand.getVdsId ( ) ) ) != null ; }

Target:
protected boolean canDoAction ( ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsSpmIdMapDao ( ) . get ( org.ovirt.engine.core.bll.RemoveVdsSpmIdCommand.getVdsId ( ) ) ) != null ; }
Source:
public void setHibernationVolHandle ( java.lang.String value ) { this . vmDynamic.setHibernationVolHandle ( value ) ; }

Target:
public void setProviderId ( org.ovirt.engine.core.compat.Guid providerId ) { vmStatic.setProviderId ( providerId ) ; }
Source:
protected void addStoragePoolToDb ( ) { org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setstatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePoolDAO ( ) . save ( org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) ) ; }

Target:
protected void addStoragePoolToDb ( ) { org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setstatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePoolDAO ( ) . save ( org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) ) ; }
Source:
public void PostUpdateDefaultTimeZone ( ) { getModel ( ) . getTimeZone ( ) . setSelectedItem ( new org.ovirt.engine.core.compat.KeyValuePairCompat < java.lang.String , java.lang.String > ( cachedDefaultTimeZoneKey , "" ) ) ; UpdateTimeZone ( ) ; }

Target:
public void PostUpdateDefaultTimeZone ( ) { updateTimeZone ( cachedDefaultTimeZoneKey ) ; }
Source:
public java.util.Set < java.lang.String > getUnsupportedCpus ( int osId , org.ovirt.engine.core.compat.Version version ) { return new java.util.HashSet ( trimElements ( getValueByVersion ( idToUnameLookup.get ( osId ) , "cpu.unsupported" , version ) . toLowerCase ( ) . split ( "," ) ) ) ; }

Target:
public java.util.Set < java.lang.String > getUnsupportedCpus ( int osId , org.ovirt.engine.core.compat.Version version ) { return new java.util.HashSet ( org.ovirt.engine.core.utils.OsRepositoryImpl.trimElements ( getValueByVersion ( idToUnameLookup.get ( osId ) , "cpu.unsupported" , version ) . toLowerCase ( ) . split ( "," ) ) ) ; }
Source:
public boolean getIsResiliencePolicyTabAvailable ( ) { return getisResiliencePolicyTabAvailable ( ) ; }

Target:
public boolean isMigrationTabAvailable ( ) { return migrationTabAvailable ; }
Source:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.Search , org.ovirt.engine.core.common.queries.SearchParameters.class , new java.lang.String [ ] { "SearchPattern" , "SearchTypeValue" } , new java.lang.Object [ ] { "users:" , org.ovirt.engine.core.common.interfaces.SearchType.DBUser } , getUsers ( ) ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }

Target:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAllDbUsers , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getUsers ( ) ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }
Source:
public void setVfsChangeability ( boolean isVfsChangeable ) { getVfsType ( ) . setIsChangable ( false ) ; }

Target:
public void setVfsChangeability ( boolean isVfsChangeable ) { getVfsType ( ) . setIsChangeable ( false ) ; }
Source:
public void setvds_group_name ( java.lang.String value ) { this . vds_group_nameField = value ; }

Target:
public void setVmtCpuPerSocket ( int value ) { this . vmtCpuPerSocket = value ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VdsStatic getAndSetVdsStatic ( ) { if ( ( vdsStatic ) == null ) { vdsStatic = getDbFacade ( ) . getVdsStaticDao ( ) . get ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.getParameters ( ) . getVdsId ( ) ) ; } return vdsStatic ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VdsStatic getAndSetVdsStatic ( ) { if ( ( vdsStatic ) == null ) { vdsStatic = vdsStaticDao.get ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.getParameters ( ) . getVdsId ( ) ) ; } return vdsStatic ; }
Source:
public java.lang.String getNewParentTagName ( ) { org.ovirt.engine.core.common.businessentities.Tags newParent = org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagById ( org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getNewParentId ( ) ) ; if ( newParent != null ) { return newParent.gettag_name ( ) ; } return "[null]" ; }

Target:
public java.lang.String getNewParentTagName ( ) { org.ovirt.engine.core.common.businessentities.Tags newParent = org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . getTagById ( org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getNewParentId ( ) ) ; if ( newParent != null ) { return newParent.gettag_name ( ) ; } return "[null]" ; }
Source:
public void checkNullAddress ( ) { org.junit.Assert.assertFalse ( underTest.eval ( generateVdsNetworkInterface ( null ) ) ) ; }

Target:
public void checkNullAddress ( ) { org.junit.Assert.assertFalse ( underTest.test ( generateVdsNetworkInterface ( null ) ) ) ; }
Source:
public void testRemoveAllOfTypeForVds ( ) throws java.lang.Exception { dao.removeAllOfTypeForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , AuditLogType.IRS_DISK_SPACE_LOW_ERROR.getValue ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testRemoveAllForVds ( ) throws java.lang.Exception { dao.removeAllForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , true ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( null , false ) ; org.junit.Assert.assertEquals ( 7 , result.size ( ) ) ; }
Source:
public static void validatePropertyValue ( java.util.Map < java.lang.String , java.lang.String > map , java.lang.String key , java.lang.String value ) { java.lang.String val = map.get ( key ) ; org.junit.Assert.assertNotNull ( val ) ; org.junit.Assert.assertEquals ( value , val ) ; }

Target:
public static void validatePropertyValue ( java.util.Map < java.lang.String , java.lang.String > map , java.lang.String key , java.lang.String value ) { java.lang.String val = map.get ( key ) ; org.junit.jupiter.api.Assertions.assertNotNull ( val ) ; org.junit.jupiter.api.Assertions.assertEquals ( value , val ) ; }
Source:
protected void releaseImageDbLock ( ) { getDiskImage ( ) . setImageStatus ( ImageStatus.OK ) ; org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateImageStatus ( getDiskImage ( ) . getImageId ( ) , getDiskImage ( ) . getImageStatus ( ) ) ; }

Target:
protected void releaseImageDbLock ( ) { getDiskImage ( ) . setImageStatus ( ImageStatus.OK ) ; imagesHandler.updateImageStatus ( getDiskImage ( ) . getImageId ( ) , getDiskImage ( ) . getImageStatus ( ) ) ; }
Source:
private java.lang.String getInnerQuery ( java.lang.String tableName , java.lang.String primeryKey , java.lang.String fromStatement , java.lang.StringBuilder wherePhrase ) { return org.ovirt.engine.core.compat.StringFormat.format ( "SELECT %1$s.%2$s FROM %3$s %4$s" , tableName , primeryKey , fromStatement , wherePhrase ) ; }

Target:
private java.lang.String getInnerQuery ( java.lang.String tableName , java.lang.String primeryKey , java.lang.String fromStatement , java.lang.StringBuilder wherePhrase ) { return org.ovirt.engine.core.compat.StringFormat.format ( "SELECT distinct %1$s.%2$s FROM %3$s %4$s" , tableName , primeryKey , fromStatement , wherePhrase ) ; }
Source:
public java.lang.String getVmIp ( ) { return this . vmDynamic.getvm_ip ( ) ; }

Target:
public int getVmOsId ( ) { return this . vmStatic.getOsId ( ) ; }
Source:
public org.ovirt.engine.core.aaa.DirectoryUser findUser ( org.ovirt.engine.core.common.utils.ExternalId id ) { return org.ovirt.engine.extensions.aaa.builtin.internal.InternalDirectory.ADMIN_ID.equals ( id ) ? admin : null ; }

Target:
public org.ovirt.engine.core.aaa.DirectoryUser findUserById ( java.lang.String id ) { return org.ovirt.engine.extensions.aaa.builtin.internal.InternalDirectory.ADMIN_ID.equals ( id ) ? admin : null ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . userGeneralSubTabLabel ( ) , 0 , ginjector.getSubTabUserGeneralModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.users.UserListModel , org.ovirt.engine.ui.uicommonweb.models.users.UserGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.userGeneralSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
protected java.lang.String localize ( java.lang.String error ) { java.util.Locale locale = getEffectiveLocale ( ) ; return locale != null ? backend.getErrorsTranslator ( ) . TranslateErrorTextSingle ( error , locale ) : backend.getErrorsTranslator ( ) . TranslateErrorTextSingle ( error ) ; }

Target:
protected java.lang.String localize ( java.lang.String error ) { java.util.Locale locale = getEffectiveLocale ( ) ; return locale != null ? backend.getErrorsTranslator ( ) . translateErrorTextSingle ( error , locale ) : backend.getErrorsTranslator ( ) . translateErrorTextSingle ( error ) ; }
Source:
public void updateInterface ( org.ovirt.engine.core.common.businessentities.StoragePool datacenter ) { getDiskInterface ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDiskInterfaceList ( ) ) ; getDiskInterface ( ) . setSelectedItem ( DiskInterface.VirtIO ) ; }

Target:
public void updateInterface ( org.ovirt.engine.core.compat.Version clusterVersion ) { super . updateInterface ( clusterVersion ) ; getDiskInterface ( ) . setSelectedItem ( DiskInterface.VirtIO ) ; }
Source:
protected void executeCommand ( ) { addVmToDb ( ) ; processImages ( ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { addVmToDb ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = getVm ( ) ; if ( ! ( hasSnappableDisks ( vm ) ) ) { endVmRelatedOps ( ) ; } else { processImages ( ) ; } setSucceeded ( true ) ; }
Source:
private void releaseHostDevicesLock ( ) { if ( needsHostDevices ) { hostDeviceManager.releaseHostDevicesLock ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVds ( ) ) ; } }

Target:
private boolean checkRequiredHostDevicesAvailability ( ) { if ( ! ( needsHostDevices ) ) { return true ; } return hostDeviceManager.checkVmHostDeviceAvailability ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVdsList ( ) . get ( 0 ) ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( "foo" , resource.getParent ( ) ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public org.ovirt.engine.api.model.Groups list ( ) { return mapDbGroupsCollection ( getGroupsCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; }

Target:
public org.ovirt.engine.api.model.Groups list ( ) { if ( isFiltered ( ) ) { return mapDbGroupsCollection ( getBackendCollection ( org.ovirt.engine.core.common.businessentities.DbUser.class , VdcQueryType.GetAllDbUsers , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapDbGroupsCollection ( getGroupsCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; } }
Source:
public void nullVnicProfileWhenUnlinkingSupported ( ) throws java.lang.Exception { vnicProfileTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , null ) ; }

Target:
public void setup ( ) { org.mockito.Mockito.when ( version.getValue ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ) ; org.mockito.Mockito.doReturn ( dbFacade ) . when ( validator ) . getDbFacade ( ) ; }
Source:
public void networkNameTakenBySameNetwork ( ) throws java.lang.Exception { networkNameAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , getSingletonNamedNetworkList ( DEFAULT_NETWORK_NAME , DEFAULT_GUID ) ) ; }

Target:
public void networkNameTakenCaseSensitivelyByDifferentNetwork ( ) throws java.lang.Exception { networkNameAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , org.ovirt.engine.core.bll.validator.NetworkValidatorTest.getSingletonNamedNetworkList ( org.ovirt.engine.core.bll.validator.NetworkValidatorTest.DEFAULT_NETWORK_NAME.toUpperCase ( ) , org.ovirt.engine.core.bll.validator.NetworkValidatorTest.OTHER_GUID ) ) ; }
Source:
public void remove ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "DeleteGlusterServerHookByGuid" , getCustomMapSqlParameterSource ( ) . addValue ( "hook_id" , id ) ) ; getCallsHandler ( ) . executeModification ( "DeleteGlusterHookByGuid" , createGlusterHookIdParams ( id ) ) ; }

Target:
public java.lang.String getGlusterHookContent ( org.ovirt.engine.core.compat.Guid hookId ) { java.lang.String content = getCallsHandler ( ) . executeRead ( "GetGlusterHookById" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoDbFacadeImpl.GlusterHookContentRowMapper , createIdParameterMapper ( hookId ) . addValue ( "includeContent" , true ) ) ; return content ; }
Source:
private void UpdateOptions ( ) { getCompulsoryActions ( ) . clear ( ) ; getOptionalActions ( ) . clear ( ) ; if ( ( getEntity ( ) ) != null ) { StartProgress ( null ) ; UpdateOptionsData ( ) ; } }

Target:
private void updateOptions ( ) { getCompulsoryActions ( ) . clear ( ) ; getOptionalActions ( ) . clear ( ) ; if ( ( getEntity ( ) ) != null ) { startProgress ( null ) ; updateOptionsData ( ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgradeInternal ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) . when ( ( ( host.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VDSStatus.Maintenance ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgradeInternal ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) . when ( ( ( host.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VDSStatus.Maintenance ) ) ) ; }
Source:
public boolean match ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getLunId ( ) , lun.getLunId ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel source ) { return org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( source.getLunId ( ) , lun.getLunId ( ) ) ; }
Source:
protected java.lang.String getCidrNotNetworkAddress ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . cidrNotNetworkAddress ( ) ; }

Target:
protected org.ovirt.engine.ui.uicompat.ConstantsManager getConstantsManager ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) ; }
Source:
public void getAllRunningOnOrMigratingToVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllRunningOnOrMigratingToVds ( org.ovirt.engine.core.dao.VmDAOTest.VDS_STATIC_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllRunningForVds ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllRunningByVds ( FixturesTool.VDS_RHEL6_NFS_SPM ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
private void AsyncResultChanging ( org.ovirt.engine.ui.frontend.RegistrationResult newValue , org.ovirt.engine.ui.frontend.RegistrationResult oldValue ) { if ( oldValue != null ) { oldValue.getRetrievedEvent ( ) . removeListener ( this ) ; } if ( newValue != null ) { newValue.getRetrievedEvent ( ) . addListener ( this ) ; } }

Target:
private void asyncResultChanging ( org.ovirt.engine.ui.frontend.RegistrationResult newValue , org.ovirt.engine.ui.frontend.RegistrationResult oldValue ) { if ( oldValue != null ) { oldValue.getRetrievedEvent ( ) . removeListener ( this ) ; } if ( newValue != null ) { newValue.getRetrievedEvent ( ) . addListener ( this ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VmPauseStatus getVmPauseStatus ( ) { return this . mVmDynamic.getPauseStatus ( ) ; }

Target:
public void setVmPauseStatus ( org.ovirt.engine.core.common.businessentities.VmPauseStatus aPauseStatus ) { this . vmDynamic.setPauseStatus ( aPauseStatus ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getit_guid ( ) { return getImage ( ) . getTemplateImageId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getImageTemplateId ( ) { return getImage ( ) . getTemplateImageId ( ) ; }
Source:
public void onRestApiSessionAcquired ( org.ovirt.engine.ui.common.restapi.RestApiSessionAcquiredEvent event ) { manager.invokePluginsNowOrLater ( "RestApiSessionAcquired" , org.ovirt.engine.ui.webadmin.plugin.jsni.JsArrayHelper.createStringArray ( event.getSessionId ( ) ) ) ; }

Target:
public void onRestApiSessionAcquired ( org.ovirt.engine.ui.common.restapi.RestApiSessionAcquiredEvent event ) { org.ovirt.engine.ui.webadmin.plugin.PluginEventHandler.logger.warning ( ( "In future versions, RestApiSessionAcquired event will be replaced " + "with API to create authenticated requests for Engine services" ) ) ; manager.invokePluginsNowOrLater ( "RestApiSessionAcquired" , org.ovirt.engine.ui.webadmin.plugin.jsni.JsArrayHelper.createStringArray ( event.getSessionId ( ) ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , autoRecoverable , connection , name , storage , storageFormat , storagePoolType , storageType , description , sanState , wipeAfterDelete , warningLowSpaceIndicator , criticalSpaceActionBlocker ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , autoRecoverable , connection , name , storage , storageFormat , storagePoolType , storageType , description , sanState , wipeAfterDelete , firstMetadataDevice , warningLowSpaceIndicator , criticalSpaceActionBlocker ) ; }
Source:
private void offsetValidateParameters ( org.ovirt.engine.api.model.VM vm ) throws java.lang.Exception { org.ovirt.engine.api.common.util.CompletenessAssertor.validateParameters ( vm , 2 , "status" ) ; }

Target:
private void offsetValidateParameters ( org.ovirt.engine.api.model.Vm vm ) throws java.lang.Exception { org.ovirt.engine.api.common.util.CompletenessAssertor.validateParameters ( vm , 2 , "status" ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getOldNetwork ( ) { if ( ( oldNetwork ) == null ) { oldNetwork = getNetworkById ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetworks ( ) ) ; } return oldNetwork ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getOldNetwork ( ) { if ( ( oldNetwork ) == null ) { oldNetwork = org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetworkDAO ( ) . get ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . getId ( ) ) ; } return oldNetwork ; }
Source:
public java.lang.String getReplacementStringNullSafe ( java.lang.String data ) { return data ; }

Target:
public java.lang.String getReplacementStringNullSafe ( Pair < java.lang.String , org.ovirt.engine.core.compat.Guid > data ) { return data.getFirst ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getSelectionModel ( topTableIsEdited ) . clear ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { bottomSelectionModel.clear ( ) ; }
Source:
public void testGetWithVMOnWrongStorageDomainId ( ) { org.ovirt.engine.core.common.businessentities.OvfEntityData ovfEntityData = dao.getByEntityIdAndStorageDomain ( FixturesTool.VM_RHEL5_POOL_50 , FixturesTool.STORAGE_DOAMIN_NFS2_2 ) ; org.junit.Assert.assertNull ( "VM should not exists in the UnregisteredOVFData for the specific Storage Domain" , ovfEntityData ) ; }

Target:
public void testGetWithVMOnWrongStorageDomainId ( ) { org.ovirt.engine.core.common.businessentities.OvfEntityData ovfEntityData = dao.getByEntityIdAndStorageDomain ( FixturesTool.UNREGISTERED_VM , FixturesTool.STORAGE_DOAMIN_NFS2_2 ) ; org.junit.Assert.assertNull ( "VM should not exists in the UnregisteredOVFData for the specific Storage Domain" , ovfEntityData ) ; }
Source:
public void canDoActionSuccessNumOfVfsNotChanged ( ) { org.mockito.Mockito.doReturn ( false ) . when ( command ) . wasNumOfVfsChanged ( ) ; allVfsAreFree ( false ) ; numOfVfsInValidRange ( false ) ; assertCanDoActionSuccess ( ) ; }

Target:
public void validateSuccessNumOfVfsNotChanged ( ) { org.mockito.Mockito.doReturn ( false ) . when ( command ) . wasNumOfVfsChanged ( ) ; allVfsAreFree ( false ) ; numOfVfsInValidRange ( false ) ; assertValidateSuccess ( ) ; }
Source:
public void updateVisibility ( ) { messageLabel.setVisible ( false ) ; }

Target:
public void updateVisibility ( ) { messageLabel.setVisible ( false ) ; publicUseEditor.setVisible ( false ) ; }
Source:
public void close ( ) { stop ( ) ; if ( ( _dialog ) != null ) { _dialog.disconnect ( ) ; _dialog = null ; } }

Target:
public void setPassword ( java.lang.String password ) { _dialog.setPassword ( password ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentNicIdentification ( attachment.getId ( ) , attachment.getNicId ( ) , attachment.getNicName ( ) , VdcBllMessages.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentNicIdentification ( attachment.getId ( ) , attachment.getNicId ( ) , attachment.getNicName ( ) , EngineMessage.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY ) ; }
Source:
public void setDefaultInterface ( ) { getDiskInterface ( ) . setSelectedItem ( getDisk ( ) . getDiskInterface ( ) ) ; }

Target:
public void setDefaultInterface ( ) { getDiskInterface ( ) . setSelectedItem ( getDisk ( ) . getDiskVmElementForVm ( getVmId ( ) ) . getDiskInterface ( ) ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; networks.asEditor ( ) . flush ( ) . setMigrationNetwork ( clusterNetworkManageModel , value ) ; refreshNetworksTable ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel , java.lang.Boolean value ) { networks.asEditor ( ) . flush ( ) . setMigrationNetwork ( clusterNetworkModel , value ) ; refreshNetworksTable ( ) ; }
Source:
public void testValidNetworkFilterIdNoDefaultWithFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidNetworkFilterIdNoDefaultNoFilterId ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.StorageDomainVmDiskAttachmentsResource getDiskAttachmentsResource ( ) { return null ; }

Target:
public org.ovirt.engine.api.resource.StorageDomainVmDiskAttachmentsResource getDiskAttachmentsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendExportDomainDiskAttachmentsResource ( this ) ) ; }
Source:
public void sethost_name ( java.lang.String value ) { this . mVdsStatic.sethost_name ( value ) ; }

Target:
public void setHostName ( java.lang.String value ) { this . mVdsStatic.setHostName ( value ) ; }