auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( java.util.Collection < java.lang.String > vmNames ) { return new org.ovirt.engine.core.bll.validator.NetworkValidator.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VM , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VMS ) . getNetworkInUse ( vmNames ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult networkNotUsed ( java.util.List < ? extends org.ovirt.engine.core.common.businessentities.Nameable > entities , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementPlural , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementSingular ) { final java.util.Collection < java.lang.String > entitiesNames = getEntitiesNames ( entities ) ; return networkNotUsed ( entitiesNames , entitiesReplacementPlural , entitiesReplacementSingular ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notManagementNetwork ( ) { return org.ovirt.engine.core.utils.NetworkUtils.isManagementNetwork ( network ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , java.lang.String.format ( "$NetworkName %s" , network.getName ( ) ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notManagementNetwork ( ) { return org.ovirt.engine.core.utils.NetworkUtils.isManagementNetwork ( network ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , java.lang.String.format ( "$NetworkName %s" , network.getName ( ) ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmDeviceId generateNonExistingId ( ) { return new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmDeviceId generateNonExistingId ( ) { return new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return vdsGroupId ; }

Target:
public org.ovirt.engine.core.compat.Guid getClusterId ( ) { return clusterId ; }
Source:
public void canDoActionFailsOnNonExistingEvent ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand < org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters > ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }

Target:
public void canDoActionFailsOnNonExistingEvent ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand < org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters > ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }
Source:
public void makeSortable ( ) { makeSortable ( new org.ovirt.engine.ui.uicommonweb.Linq.StorageDeviceComparer ( ) ) ; }

Target:
public void makeSortable ( ) { makeSortable ( Linq.StorageDeviceComparer ) ; }
Source:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid value ) { this . storage_pool_idField = value ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return this . storagePoolId ; }
Source:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; }

Target:
public void cluster_SelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; }
Source:
public void close ( ) { this . queue.add ( new org.ovirt.vdsm.jsonrpc.client.internal.MessageContext ( null , null ) ) ; }

Target:
public void close ( ) { this . queue.add ( new org.ovirt.vdsm.jsonrpc.client.internal.MessageContext ( null , null ) ) ; this . tracker.close ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getBrick ( org.ovirt.engine.core.compat.Guid brickId ) { return brickId == null ? null : org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.getGlusterBrickDao ( ) . getById ( brickId ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getBrick ( org.ovirt.engine.core.compat.Guid brickId ) { return brickId == null ? null : glusterBrickDao.getById ( brickId ) ; }
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 selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( e.propertyName.equals ( "status" ) ) { updateActionAvailability ( ) ; } }
Source:
public org.ovirt.engine.core.dao.JobDao getJobDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getJobDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.JobDao getJobDao ( ) { return jobDao ; }
Source:
public java.lang.String [ ] getSensitiveKeys ( ) { return getProperty ( "SENSITIVE_KEYS" ) . split ( "," ) ; }

Target:
public java.lang.String [ ] getSensitiveKeys ( ) { java.lang.String sensitiveKeys = values.get ( org.ovirt.engine.core.utils.LocalConfig.SENSITIVE_KEYS ) ; if ( sensitiveKeys == null ) { return new java.lang.String [ ] { } ; } else { return sensitiveKeys.split ( "," ) ; } }
Source:
public void saveGlusterServerHook ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid hostId , java.lang.String checksum , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) ;

Target:
public void updateGlusterHookConflictStatus ( org.ovirt.engine.core.compat.Guid hookId , java.lang.Integer conflictStatus ) ;
Source:
public void validateNonExistingJobFails ( ) { parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExistingStepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateNonExistingJobFails ( ) { parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExistingStepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc startSpice ( java.lang.String vdsIp , int port , java.lang.String ticket ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc freeze ( java.lang.String vmId ) ;
Source:
public void testValidateUniqueTemplateNameInDC ( ) { org.ovirt.engine.core.bll.ImportVmTemplateCommand command = setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . isVmTemplateWithSameNameExist ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_CANNOT_IMPORT_TEMPLATE_NAME_EXISTS ) ; }

Target:
public void testValidateUniqueTemplateNameInDC ( ) { org.ovirt.engine.core.bll.ImportVmTemplateCommand command = setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . isVmTemplateWithSameNameExist ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VM_CANNOT_IMPORT_TEMPLATE_NAME_EXISTS ) ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public static void GetConfigFromCache ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.core.common.queries.GetConfigurationValueParameters parameters = new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( configValue , version ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( parameters , aQuery ) ; }

Target:
public static void getConfigFromCache ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.core.common.queries.GetConfigurationValueParameters parameters = new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( configValue , version ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigFromCache ( parameters , aQuery ) ; }
Source:
public java.lang.String getTitle ( ) { return title.asString ( ) ; }

Target:
public java.lang.String getText ( ) { return title.asString ( ) ; }
Source:
protected int getMaxNameLength ( ) { return org.ovirt.engine.ui.uicommonweb.DataProvider.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:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; InitSpmPriorities1 ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updatePmModels ( ) ; }
Source:
protected java.lang.String cdPathWindowsToLinux ( java.lang.String url ) { return org.ovirt.engine.core.bll.ImagesHandler.cdPathWindowsToLinux ( url , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; }

Target:
protected java.lang.String cdPathWindowsToLinux ( java.lang.String url ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.cdPathWindowsToLinux ( url , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; }
Source:
protected void onClosed ( final com.google.gwt.user.client.Event evt ) { org.ovirt.engine.ui.common.utils.ElementTooltipUtils.hideAllTooltips ( ) ; com.google.gwt.user.client.ui.RootPanel.detachNow ( this ) ; fireEvent ( new org.gwtbootstrap3.client.shared.event.AlertClosedEvent ( evt ) ) ; }

Target:
public void onClosed ( org.gwtbootstrap3.client.shared.event.AlertClosedEvent evt ) { org.ovirt.engine.ui.common.utils.ElementTooltipUtils.hideAllTooltips ( ) ; closedHandlerReg.removeHandler ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllMigrationNetworkInterfacesInCluster ( org.ovirt.engine.core.compat.Guid clusterId ) { return getCallsHandler ( ) . executeReadList ( "GetAllMigrationNetworkInterfacesInCluster" , vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) ) ; }

Target:
public java.util.Optional < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getActiveMigrationNetworkInterfaceForHost ( org.ovirt.engine.core.compat.Guid hostId ) { return java.util.Optional.ofNullable ( getCallsHandler ( ) . executeRead ( "getActiveMigrationNetworkInterfaceForHost" , vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "host_id" , hostId ) ) ) ; }
Source:
public void statusNotSupportedForHostUpgrade ( ) { org.ovirt.engine.core.common.businessentities.VDS host = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; host.setStatus ( VDSStatus.Unassigned ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.UpgradeHostValidator ( host ) . statusSupportedForHostUpgrade ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) ) ; }

Target:
public void statusNotSupportedForHostUpgrade ( ) { org.ovirt.engine.core.common.businessentities.VDS host = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; host.setStatus ( VDSStatus.Unassigned ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.UpgradeHostValidator ( host ) . statusSupportedForHostUpgrade ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { getWindow ( ) . stopProgress ( ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValueBase = result.getReturnValue ( ) ; if ( ( returnValueBase != null ) && ( returnValueBase.getSucceeded ( ) ) ) { cancel ( ) ; } }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { model.stopProgress ( ) ; cancel ( ) ; }
Source:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
public org.ovirt.engine.core.common.utils.VmDeviceType getDisplayDevice ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.DisplayType displayType ) ;
Source:
public void moveShareableDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }

Target:
public void validateEnoughSpace ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; initVmForSpace ( ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
public void onPowerringUp ( ) { decreasePendingVm ( org.ovirt.engine.core.bll.RunVmCommand.getVmStaticDAO ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__RUN ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; vmID = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; pluggedDisk = createDiskImage ( ) ; unpluggedDisk = createDiskImage ( ) ; setUpDAOMocks ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; vmID = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; pluggedDisk = createDiskImage ( ) ; unpluggedDisk = createDiskImage ( ) ; setUpDAOMocks ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.disk.GetAllDisksQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) . getAll ( org.ovirt.engine.core.bll.storage.disk.GetAllDisksQuery.getUserID ( ) , org.ovirt.engine.core.bll.storage.disk.GetAllDisksQuery.getParameters ( ) . isFiltered ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.disk.GetAllDisksQuery.getQueryReturnValue ( ) . setReturnValue ( diskDao.getAll ( org.ovirt.engine.core.bll.storage.disk.GetAllDisksQuery.getUserID ( ) , org.ovirt.engine.core.bll.storage.disk.GetAllDisksQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public void runningSucceded ( 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.runningSucceded ( ) ; } }

Target:
public void runningSucceded ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = backend.getResourceManager ( ) . GetAsyncCommandForVm ( vmId ) ; if ( command != null ) { command.runningSucceded ( ) ; } }
Source:
public void cleaningCompensationDataAfterSuccess ( ) { macsToReleaseOnCommit.forEach ( macPool :: freeMac ) ; }

Target:
public void cleaningCompensationDataAfterSuccess ( ) { log.debug ( ( "Command successfully executed, releasing macs: {}" + ( macsToReleaseOnCommit ) ) ) ; macsToReleaseOnCommit.forEach ( macPool :: freeMac ) ; }
Source:
protected boolean canDoAction ( ) { return ( isUserCanBeAuthenticated ( ) ) && ( attachUserToSession ( ) ) ; }

Target:
protected boolean canDoAction ( ) { boolean result = ( isUserCanBeAuthenticated ( ) ) && ( attachUserToSession ( ) ) ; if ( ! result ) { logAutheticationFailure ( ) ; } return result ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setWANColorDepth ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.WanColorDepth ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setWANColorDepth ( ( ( org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth ) ( returnValue ) ) ) ; }
Source:
public java.lang.String getPrincipal ( java.lang.String sessionId ) { return getPrincipalName ( sessionId ) ; }

Target:
public java.lang.String getUserName ( java.lang.String sessionId ) { return java.lang.String.format ( "%s@%s" , getPrincipalName ( sessionId ) , ( ( getProfile ( sessionId ) ) != null ? getProfile ( sessionId ) . getName ( ) : "N/A" ) ) ; }
Source:
public void onDataLoad ( ) { checkIfDefaultStorageApplicableForAllDisks ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel.ON_DISK_LOAD ) ) ; }

Target:
public void onDataLoad ( ) { checkIfDefaultStorageApplicableForAllDisks ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel.ON_DISK_LOAD ) ) ; }
Source:
public void releaseVolumeLock ( org.ovirt.engine.core.compat.Guid taskId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity vol = getVolumeDao ( ) . getVolumeByGlusterTask ( taskId ) ; if ( vol != null ) { releaseLock ( vol.getId ( ) ) ; } else { org.ovirt.engine.core.bll.gluster.tasks.GlusterTaskUtils.log.debug ( "Did not find a volume associated with task '{}'" , taskId ) ; } }

Target:
public void releaseLock ( org.ovirt.engine.core.compat.Guid clusterId ) { lockManager.releaseLock ( getEngineLock ( clusterId ) ) ; }
Source:
public void validateVmMemoryCanRunOnVds ( ) { boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCanRunOnVds ( ) { boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
protected void performDiskUpdate ( ) { org.ovirt.engine.core.common.businessentities.storage.CinderDisk cinderDisk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand.getNewDisk ( ) ) ) ; org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand.getImageDao ( ) . updateImageSize ( cinderDisk.getImageId ( ) , cinderDisk.getSize ( ) ) ; performDiskUpdate ( true ) ; }

Target:
protected void performDiskUpdate ( ) { org.ovirt.engine.core.common.businessentities.storage.CinderDisk cinderDisk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand.getNewDisk ( ) ) ) ; imageDao.updateImageSize ( cinderDisk.getImageId ( ) , cinderDisk.getSize ( ) ) ; performDiskUpdate ( true ) ; }
Source:
public void managementNetworkAttachmentValid ( ) throws java.lang.Exception { networkCluster.setRequired ( true ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , validator.managementNetworkAttachment ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTest.NETWORK_NAME ) ) ; }

Target:
public void managementNetworkAttachmentValid ( ) throws java.lang.Exception { networkCluster.setRequired ( true ) ; org.junit.Assert.assertThat ( validator.managementNetworkAttachment ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testVmDiskWithPassDiscardAndWadExistsFails ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( true , false ) ; createVmDiskOnSd ( false , true ) ; junit.framework.Assert.assertFalse ( discardHelper.vmDiskWithPassDiscardAndWadExists ( storageDomainDisks , storageDomainVmDisks ) ) ; }

Target:
public void testVmDiskWithPassDiscardAndWadExistsFails ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( true , false ) ; createVmDiskOnSd ( false , true ) ; org.junit.Assert.assertFalse ( discardHelper.vmDiskWithPassDiscardAndWadExists ( storageDomainDisks , storageDomainVmDisks ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkView getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.NetworkView ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.network.NetworkView ? super . getEntity ( ) : null ) ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
java.lang.String importProcessHasBegunForTemplates ( java.lang.String importedTemplates ) ;

Target:
java.lang.String customSpmPriority ( int priority ) ;
Source:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ! ( memoryVolume.isEmpty ( ) ) ; }

Target:
public void remove ( ) { removeMemoryVolumes ( org.ovirt.engine.core.bll.memory.MemoryUtils.getMemoryVolumesFromSnapshots ( vm.getSnapshots ( ) ) ) ; }
Source:
public void testCanDoActionSuccess ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( command ) ; }

Target:
public void testValidateSuccess ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
protected void endWithFailure ( ) { endCommand ( ) ; }

Target:
private void performImageDbOperations ( ) { switch ( org.ovirt.engine.core.bll.RemoveImageCommand.getParameters ( ) . getDbOperationScope ( ) ) { case IMAGE : removeImageFromDB ( ) ; break ; case MAPPING : removeImageMapping ( ) ; break ; case NONE : break ; } }
Source:
private static native java.lang.String getHostPageLocation ( ) ;

Target:
public void setPopupKeyPressHandler ( org.ovirt.engine.ui.common.widget.dialog.PopupNativeKeyPressHandler keyPressHandler ) { asWidget ( ) . setKeyPressHandler ( keyPressHandler ) ; }
Source:
public static void getFloppyImageList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , false , ImageFileType.Floppy ) ; }

Target:
public static void getFloppyImageList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , false , ImageFileType.Floppy , new org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.RepoImageToImageFileNameAsyncConverter ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, masterStorageDomainId=%s, msterVersion=%s" , super . toString ( ) , getMasterStorageDomainId ( ) , getMasterVersion ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, masterStorageDomainId=%s, masterVersion=%s" , super . toString ( ) , getMasterStorageDomainId ( ) , getMasterVersion ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl.log.error ( "Policy unit '{}' filter is not implemented" , getPolicyUnit ( ) . getName ( ) ) ; return hosts ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( @ javax.validation.constraints.NotNull org.ovirt.engine.core.common.businessentities.Cluster cluster , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl.log.error ( "Policy unit '{}' filter is not implemented" , getPolicyUnit ( ) . getName ( ) ) ; return hosts ; }
Source:
public java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.SpiceMenuItem > Descendants ( ) { java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.SpiceMenuItem > list = new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.SpiceMenuItem > ( ) ; for ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceMenuItem item : items ) { DescendantsInternal ( list , item ) ; } return list ; }

Target:
public java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.SpiceMenuItem > descendants ( ) { java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.SpiceMenuItem > list = new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.SpiceMenuItem > ( ) ; for ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceMenuItem item : items ) { descendantsInternal ( list , item ) ; } return list ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.tags result = dao.get ( existingTag.gettag_id ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingTag , result ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.tags result = dao.get ( existingTag.gettag_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingTag , result ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Bookmark modifyEntity ( org.ovirt.engine.core.common.businessentities.Bookmark bookmark ) { bookmark.setbookmark_name ( bookmark.getbookmark_name ( ) . toUpperCase ( ) ) ; return bookmark ; }

Target:
public void testSave ( ) { dao.save ( new_bookmark ) ; org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( new_bookmark.getbookmark_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolumeWithRebalanceTask ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getVolume ( volumeId ) ; org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask asyncTask = new org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask ( ) ; asyncTask.setStatus ( JobExecutionStatus.STARTED ) ; asyncTask.setType ( GlusterTaskType.REBALANCE_VOLUME ) ; volume.setAsyncTask ( asyncTask ) ; return volume ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolumeWithRebalanceTask ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getVolume ( volumeId ) ; org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask asyncTask = new org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask ( ) ; asyncTask.setStatus ( JobExecutionStatus.STARTED ) ; asyncTask.setType ( GlusterTaskType.REBALANCE ) ; volume.setAsyncTask ( asyncTask ) ; return volume ; }
Source:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails object ) { return object.getCheckPointStatus ( ) ; }

Target:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails object ) { java.lang.String checkPointStatusValue = object.getCheckPointStatus ( ) ; return ( checkPointStatusValue == null ) || ( checkPointStatusValue.isEmpty ( ) ) ? constants.notAvailableLabel ( ) : checkPointStatusValue ; }
Source:
private void testActionDisallowed ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; }

Target:
private void testActionDisallowed ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; }
Source:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { java.lang.String message = consoleManager.connectToConsole ( model ) ; if ( message != null ) { errorPopupManager.show ( message ) ; } }

Target:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { consoleOptionsPersister.loadFromLocalStorage ( model , ConsoleContext.UP_EXTENDED ) ; java.lang.String message = consoleManager.connectToConsole ( model ) ; if ( message != null ) { errorPopupManager.show ( message ) ; } }
Source:
public void testHyperVWindows ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.isHypervEnabled ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "windows_7" ) , Version.v3_5 ) ) ; }

Target:
public void testHyperVWindows ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.isHypervEnabled ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "windows_7" ) , Version.v3_6 ) ) ; }
Source:
public void init ( ) { usageFinder = new org.ovirt.engine.api.restapi.resource.validation.UsageFinder ( ) ; }

Target:
public void init ( ) { org.ovirt.engine.api.restapi.invocation.Current current = new org.ovirt.engine.api.restapi.invocation.Current ( ) ; current.setRoot ( "http://localhost:8080" ) ; current.setPrefix ( "/ovirt-engine/api" ) ; org.ovirt.engine.api.restapi.invocation.CurrentManager.put ( current ) ; usageFinder = new org.ovirt.engine.api.restapi.resource.validation.UsageFinder ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.CommandEntity getCommandEntity ( org.ovirt.engine.core.compat.Guid commandId ) { return commandsCache.get ( commandId ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.CommandEntity getCommandEntity ( org.ovirt.engine.core.compat.Guid commandId ) { return org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( commandId ) ? null : commandsCache.get ( commandId ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol resolve ( org.ovirt.engine.core.vdsbroker.vdsbroker.IpInfoFetcher ipInfoFetcher ) { if ( ipInfoFetcher.isBootProtocolDhcp ( ) ) { return org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.DHCP ; } else if ( org.apache.commons.lang.StringUtils.isNotEmpty ( ipInfoFetcher.fetchIpAddress ( ) ) ) { return org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.STATIC_IP ; } else { return org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.NONE ; } }

Target:
T resolve ( F ipInfoFetcher ) ;
Source:
public org.ovirt.engine.core.bll.ValidationResult isUp ( ) { if ( ( ( storagePool ) == null ) || ( ( storagePool.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.Up ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult existsAndUp ( ) { if ( ( ( storagePool ) == null ) || ( ( storagePool.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.Up ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void testUploadIsDefaultTransferType ( ) { org.junit.Assert.assertEquals ( TransferType.Upload , transferImageCommand.getParameters ( ) . getTransferType ( ) ) ; }

Target:
public void testUploadIsDefaultTransferType ( ) { org.junit.jupiter.api.Assertions.assertEquals ( TransferType.Upload , transferImageCommand.getParameters ( ) . getTransferType ( ) ) ; }
Source:
private static void addOrUpdateTaskInDB ( org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.addOrUpdateTaskInDB ( asyncTask ) ; }

Target:
private static void addOrUpdateTaskInDB ( org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.addOrUpdateTaskInDB ( asyncTask ) ; }
Source:
private static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getUsbRedirectDevices ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > list = org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vm.getId ( ) , VmDeviceGeneralType.REDIR , VmDeviceType.SPICEVMC.getName ( ) ) ; return list ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getUsbSlots ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.REDIR , VmDeviceType.SPICEVMC.getName ( ) ) ; }
Source:
public void provisioningComputeResourceEmpty ( ) { org.junit.Assert.assertThat ( validator.provisioningComputeResourceValid ( true , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_PROVIDER_PROVISION_MISSING_COMPUTERESOURCE ) ) ; }

Target:
public void provisioningComputeResourceEmpty ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.provisioningComputeResourceValid ( true , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_PROVIDER_PROVISION_MISSING_COMPUTERESOURCE ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.customPropertiesList = ( ( java.util.Map < org.ovirt.engine.core.compat.Version , java.util.Map < java.lang.String , java.lang.String > > ) ( returnValue ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { balloonSupportMap = ( ( java.util.Map < java.lang.Integer , java.util.Map < org.ovirt.engine.core.compat.Version , java.lang.Boolean > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }
Source:
public static boolean isManagementNetwork ( org.ovirt.engine.core.common.businessentities.network.Network net ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.ManagementNetwork ) . equals ( net.getName ( ) ) ; }

Target:
public static boolean isManagementNetwork ( org.ovirt.engine.core.common.businessentities.network.Network net ) { return org.ovirt.engine.core.utils.NetworkUtils.isManagementNetwork ( net.getName ( ) ) ; }
Source:
public void setTitle ( java.lang.String title ) { button.setTitle ( title ) ; }

Target:
public void setTitle ( java.lang.String title ) { tooltipPanel.setText ( title ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createStorageDomain ( int domainType , java.lang.String sdUUID , java.lang.String domainName , java.lang.String arg , int storageType ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc vmUpdateDevice ( java.lang.String vmId , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct device ) ;
Source:
public void setTitle ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( title , value ) ) ) { title = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Title" ) ) ; } }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model setTitle ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( title , value ) ) ) { title = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Title" ) ) ; } return this ; }
Source:
void onDefaultIconButton ( com.google.gwt.event.dom.client.ClickEvent event ) { setIconAndFireChangeEvent ( defaultIcon ) ; }

Target:
void onDefaultIconButton ( com.google.gwt.event.dom.client.ClickEvent event ) { setIconAndFireChangeEvent ( defaultIcon , org.ovirt.engine.ui.uicommonweb.validation.ValidationResult.ok ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( org.ovirt.engine.core.compat.Guid srcStorageId , org.ovirt.engine.core.compat.Guid dstStorageId ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskProfileId , diskImageGroupId ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( org.ovirt.engine.core.compat.Guid srcStorageId , org.ovirt.engine.core.compat.Guid dstStorageId ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskProfileId , diskImageGroupId ) ) ; }
Source:
protected void ChangeDefualtHost ( ) { super . ChangeDefualtHost ( ) ; doChangeDefautlHost ( pool.getDedicatedVmForVds ( ) ) ; }

Target:
protected void changeDefualtHost ( ) { super . changeDefualtHost ( ) ; doChangeDefautlHost ( pool.getDedicatedVmForVds ( ) ) ; }
Source:
protected boolean isConsoleEnabled ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { org.ovirt.engine.ui.uicommonweb.models.userportal.ConsoleProtocol protocol = consoleUtils.determineConnectionProtocol ( model ) ; return consoleUtils.canShowConsole ( protocol , model ) ; }

Target:
protected boolean isConsoleEnabled ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol = consoleUtils.determineConnectionProtocol ( model ) ; return consoleUtils.canShowConsole ( protocol , model ) ; }
Source:
protected boolean isMixedTypesAllowedInDC ( ) { return ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) . getcompatibility_version ( ) . compareTo ( Version.v3_0 ) ) > 0 ; }

Target:
protected boolean isMixedTypesAllowedInDC ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.FeatureSupported.mixedDomainTypesOnDataCenter ( version ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( domainId , vmTemplate.getStoragePoolId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return storageDomainDao.getForStoragePool ( domainId , vmTemplate.getStoragePoolId ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createNewStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( false ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; pool.setName ( "Default" ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }
Source:
protected boolean checkCanBeMoveInVm ( ) { return validate ( new org.ovirt.engine.core.bll.validator.DiskValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) ) . isDiskPluggedToVmsThatAreNotDown ( false , getVmsWithVmDeviceInfoForDiskId ( ) ) ) ; }

Target:
protected boolean checkCanBeMoveInVm ( ) { return validate ( createDiskValidator ( ) . isDiskPluggedToVmsThatAreNotDown ( false , getVmsWithVmDeviceInfoForDiskId ( ) ) ) ; }
Source:
public void interfaceBasedOnSameName ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createNic ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }

Target:
public void interfaceBasedOnSameName ( ) { org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createNic ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }
Source:
public void Initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . Initialize ( systemTreeSelectedItem ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . execute ( ) ; if ( ( getEntity ( ) ) != null ) { updateActionAvailability ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; org.ovirt.engine.ui.uicommonweb.models.storage.StorageRegisterEntityListModel.getSearchCommand ( ) . execute ( ) ; if ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageRegisterEntityListModel.getEntity ( ) ) != null ) { updateActionAvailability ( ) ; } }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel model ) { return org.ovirt.engine.ui.webadmin.widget.table.column.NetworkRoleColumnHelper.getTooltip ( ( model.isVmNetwork ( ) ? java.util.Collections.singletonMap ( vmImage , constants.vmItemInfo ( ) ) : java.util.Collections.< com.google.gwt.safehtml.shared.SafeHtml , java.lang.String > emptyMap ( ) ) ) ; }

Target:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel : getNetworksTableItems ( ) ) { if ( canEditAssign ( clusterNetworkModel ) ) { changeIsAttached ( clusterNetworkModel , value ) ; } } refreshNetworksTable ( ) ; }
Source:
public boolean isValidNetmaskFormat ( java.lang.String mask ) { return ( mask != null ) && ( mask.matches ( ( ( "^" + ( org.ovirt.engine.core.common.utils.ValidationUtils.IP_PATTERN_NON_EMPTY ) ) + "$" ) ) ) ; }

Target:
public boolean isValidNetmaskFormat ( java.lang.String mask ) { return ( mask != null ) && ( mask.matches ( ( ( "^" + ( org.ovirt.engine.core.common.utils.ValidationUtils.IPV4_PATTERN_NON_EMPTY ) ) + "$" ) ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmNetwork ( ) ; addVmStatistics ( ) ; addActiveSnapshot ( ) ; addVmPermission ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmNetwork ( ) ; addVmStatistics ( ) ; addActiveSnapshot ( ) ; addVmPermission ( ) ; addVmInit ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public void canRunVmPassStatelessWhenVmHAwithNegativeStatelessParam ( ) { org.ovirt.engine.core.bll.RunVmCommandTest.canRunStatelessVmTest ( true , false , java.lang.Boolean.FALSE , true ) ; }

Target:
public void canRunVmPassStatelessWhenVmHAandStatelessFalse ( ) { canRunStatelessVmTest ( true , true , java.lang.Boolean.FALSE , true ) ; }
Source:
protected org.ovirt.engine.api.model.Tag addParents ( org.ovirt.engine.api.model.Tag tag ) { org.ovirt.engine.api.model.VM vm = new org.ovirt.engine.api.model.VM ( ) ; vm.setId ( vmId.toString ( ) ) ; tag.setVm ( vm ) ; return tag ; }

Target:
protected org.ovirt.engine.api.model.Tag addParents ( org.ovirt.engine.api.model.Tag tag ) { org.ovirt.engine.api.model.Vm vm = new org.ovirt.engine.api.model.Vm ( ) ; vm.setId ( vmId.toString ( ) ) ; tag.setVm ( vm ) ; return tag ; }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warn ( "Failed to refresh VDS , cachedVds = '{}' : '{}', error = '{}', continuing." , cachedVds.getId ( ) , cachedVds.getName ( ) ) ; org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "Exception" , ex ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warn ( "Failed to refresh VDS , vds = '{}' : '{}', error = '{}', continuing." , cachedVds.getName ( ) , cachedVds.getId ( ) , ex.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "Exception" , ex ) ; }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }