auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getusage_network_percent ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { return object.getSecond ( ) . getvm_ip ( ) ; }
Source:
public void postOnSave ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { getWindow ( ) . stopProgress ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { cancel ( ) ; } privateItemSavedEvent.raise ( this , EventArgs.Empty ) ; }

Target:
public void postOnSave ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { getWindow ( ) . stopProgress ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { cancel ( ) ; } privateItemSavedEvent.raise ( this , EventArgs.EMPTY ) ; }
Source:
private void initAllModels ( boolean fetchFromBackend ) { if ( fetchFromBackend ) { startProgress ( null ) ; queryLabels ( ) ; } else { initLabelModels ( ) ; initNetworkModels ( ) ; initNicModels ( ) ; } }

Target:
private void commitLabelChanges ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > srcIfaces , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface dstIface ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.moveLabels ( srcIfaces , dstIface , hostSetupNetworksParametersData ) ; }
Source:
public void testDefaultRouteWhenOutOfSyncOnOlderCluster ( ) { cluster.setCompatibilityVersion ( Version.v4_1 ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testDefaultRouteWhenOutOfSync ( ) { network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
private void logFailedAttemptToRestartVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase event = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; event.setVmId ( vmId ) ; auditLogDirector.log ( event , getRestartFailedAuditLogType ( ) ) ; }

Target:
private void logFailedAttemptToRestartVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase event = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; event.setVmId ( vmId ) ; auditLogDirector.log ( event , getRestartFailedAuditLogType ( ) ) ; }
Source:
private void mockStoragePoolIsoMap ( ) { org.ovirt.engine.core.common.businessentities.storage_pool_iso_map spim = new org.ovirt.engine.core.common.businessentities.storage_pool_iso_map ( ) ; org.mockito.Mockito.when ( storagePoolIsoMapDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId.class ) ) ) . thenReturn ( spim ) ; }

Target:
private void mockStoragePoolIsoMap ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap spim = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( ) ; org.mockito.Mockito.when ( storagePoolIsoMapDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId.class ) ) ) . thenReturn ( spim ) ; }
Source:
private void addVolumeToDb ( final org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity createdVolume ) { createdVolume.setClusterId ( getClusterId ( ) ) ; getGlusterVolumeDao ( ) . save ( createdVolume ) ; }

Target:
private void addVolumeToDb ( final org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity createdVolume ) { createdVolume.setClusterId ( getClusterId ( ) ) ; glusterVolumeDao.save ( createdVolume ) ; }
Source:
public java.lang.String getMessage ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 ) { return getVerb ( op1 ) ; }

Target:
public java.lang.String getMessage ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 ) { return appendDetachNetworkSuggestion ( getVerb ( op1 ) , ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel ) ( op2 ) ) ) ; }
Source:
public java.lang.String getEntityNewName ( ) { return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getParameters ( ) . getVmPool ( ) . getName ( ) ; }

Target:
public java.lang.String getEntityNewName ( ) { return org.ovirt.engine.core.bll.UpdateVmPoolCommand.getParameters ( ) . getVmPool ( ) . getName ( ) ; }
Source:
public void render ( org.ovirt.engine.ui.userportal.section.main.view.tab.extended.Context context , org.ovirt.engine.core.common.businessentities.VmTemplate template , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { sb.append ( templates.vmNameCellItem ( org.ovirt.engine.ui.common.utils.ElementIdUtils.createTableCellElementId ( elementIdPrefix , "name" , context ) , template.getName ( ) ) ) ; }

Target:
public void render ( org.ovirt.engine.ui.userportal.section.main.view.tab.extended.Context context , org.ovirt.engine.core.common.businessentities.VmTemplate template , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { sb.append ( org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedTemplateView.templates.vmNameCellItem ( org.ovirt.engine.ui.common.utils.ElementIdUtils.createTableCellElementId ( elementIdPrefix , "name" , context ) , template.getName ( ) ) ) ; }
Source:
public void testIsNetworkInSyncWhenGatewayEqual ( ) { initIpConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4BootProtocolNotStaticAddressDifferent ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocolAddress ( Ipv4BootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void testJsonDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk ) ; }

Target:
public void testJsonDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "DiskDescription" ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.userportal.IUserPortalListModel model ) { this . model = model ; editCheckBoxes ( model , ctrlAltDel , enableUsbAutoshare , openInFullScreen , useLocalDrives , wanEnabled ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalConsolePopupModel model ) { editCheckBoxes ( model , ctrlAltDel , enableUsbAutoshare , openInFullScreen , useLocalDrives , wanEnabled ) ; }
Source:
public void testIsNetworkInSyncWhenIpv4GatewayBothNull ( ) { initIpv4ConfigurationStaticBootProtocol ( Ipv4BootProtocol.STATIC_IP ) ; ipv4Address.setGateway ( null ) ; iface.setIpv4Gateway ( null ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayBothNull ( ) { initIpv4ConfigurationStaticBootProtocol ( Ipv4BootProtocol.STATIC_IP ) ; ipv4Address.setGateway ( null ) ; iface.setIpv4Gateway ( null ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private void setProgress ( org.ovirt.engine.ui.uicommonweb.models.common.ProgressModel value ) { if ( ( progress ) != value ) { progress = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Progress" ) ) ; } }

Target:
private void setProgress ( org.ovirt.engine.ui.uicommonweb.models.common.ProgressModel value ) { if ( ( progress ) != value ) { progress = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( PropertyChangedEventArgs.Args.PROGRESS.toString ( ) ) ) ; } }
Source:
public void setvm_host ( java.lang.String value ) { this . mVmDynamic.setvm_host ( value ) ; }

Target:
public void setConsoleUserId ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setConsoleUserId ( value ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Role > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Role > ( ) ; }
Source:
private void moveVdsToUp ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.bll.attestationbroker.AttestThread.trustedVdses.add ( vds.getId ( ) ) ; vds.setStatus ( VDSStatus.Up ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . update ( vds.getDynamicData ( ) ) ; }

Target:
private void moveVdsToUp ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.bll.attestationbroker.AttestThread.trustedVdses.add ( vds.getId ( ) ) ; vds.setStatus ( VDSStatus.Up ) ; org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.VdsDynamicDao.class ) . update ( vds.getDynamicData ( ) ) ; }
Source:
public void maintenanceStatusIsSupportedForHostUpgrade ( ) { host.setStatus ( VDSStatus.Maintenance ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostUpgrade ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void maintenanceStatusIsSupportedForHostUpgrade ( ) { host.setStatus ( VDSStatus.Maintenance ) ; org.hamcrest.MatcherAssert.assertThat ( validator.statusSupportedForHostUpgrade ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { createSpmControls ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { fetchResult.setText ( ( ( java.lang.String ) ( object.getFetchResult ( ) . getEntity ( ) ) ) ) ; }
Source:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_NEEDS_PASSTHROUGH ) ; }

Target:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( EngineMessage.CLUSTER_UPGRADE_DETAIL_VM_SUSPENDED.name ( ) ) ; }
Source:
public void testGetAllRunningForVds ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllRunningByVds ( 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:
public void dispose ( ) { synchronized ( syncObj ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.info ( "IrsProxyData::disposing" ) ; resetIrs ( ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( storagePoolRefreshJobId ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( domainRecoverOnHostJobId ) ; _disposed = true ; } }

Target:
public void clearVdsFromCache ( org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.info ( "Clearing cache of pool: '{}' for problematic entities of VDS: '{}'." , _storagePoolId , vdsName ) ; clearDomainFromCache ( null , java.util.Arrays.asList ( vdsId ) ) ; }
Source:
void itemRemoved ( T item ) ;

Target:
void itemRemoved ( T removedItem ) ;
Source:
public void run ( ) { executeCommand ( command , callBack ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase call ( ) throws java.lang.Exception { return executeCommand ( command ) ; }
Source:
public static java.lang.Integer getDefaultOs ( org.ovirt.engine.core.common.businessentities.ArchitectureType architectureType ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.defaultOSes.get ( architectureType ) ; }

Target:
public java.lang.Integer getDefaultOs ( org.ovirt.engine.core.common.businessentities.ArchitectureType architectureType ) { return defaultOSes.get ( architectureType ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.disk.GetDiskVmElementsByVmIdQuery.getQueryReturnValue ( ) . setReturnValue ( diskVmElementDao.getAllForVm ( org.ovirt.engine.core.bll.storage.disk.GetDiskVmElementsByVmIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.disk.GetDiskVmElementsByVmIdQuery.getQueryReturnValue ( ) . setReturnValue ( diskVmElementDao.getAllForVm ( org.ovirt.engine.core.bll.storage.disk.GetDiskVmElementsByVmIdQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.disk.GetDiskVmElementsByVmIdQuery.getUserID ( ) , org.ovirt.engine.core.bll.storage.disk.GetDiskVmElementsByVmIdQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( addr , description , gateway , id , name , dataCenterId , stp , subnet , type , vlanId , mtu , vmNetwork , providedBy , label , qosId , dnsResolverConfiguration ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( addr , description , gateway , id , name , vdsmName , dataCenterId , stp , subnet , type , vlanId , mtu , vmNetwork , providedBy , label , qosId , dnsResolverConfiguration ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTask ( asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTaskInCurrentTransaction ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTaskImpl ( taskId , asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "correlation_id" , correlationId ) ; return getCallsHandler ( ) . executeReadList ( "GetJobsByCorrelationId" , createEntityRowMapper ( ) , parameterSource ) ; }

Target:
public void updateStartedExecutionEntitiesToUnknown ( java.util.Date updateTime ) { updateQueryGetResult ( entityManager.createNativeQuery ( "select cast(UpdateStartedExecutionEntitiesToUnknown as text) from UpdateStartedExecutionEntitiesToUnknown(?)" ) . setParameter ( 1 , updateTime ) ) ; }
Source:
public void hostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , null , host , false ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.VDS_INVALID_SERVER_ID ) ) ; }

Target:
public void hostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , null , host , false ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.QueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { org.ovirt.engine.core.common.interfaces.BackendLocal backend = getBackend ( ) ; setCorrelationId ( queryParams ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.QueryType queryType , org.ovirt.engine.core.common.queries.QueryParametersBase queryParams ) { org.ovirt.engine.core.common.interfaces.BackendLocal backend = getBackend ( ) ; setCorrelationId ( queryParams ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }
Source:
public java.lang.String getRoleName ( ) { org.ovirt.engine.core.common.businessentities.Role role = org.ovirt.engine.core.bll.PermissionsCommandBase.getRoleDao ( ) . get ( org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) . getRoleId ( ) ) ; return role == null ? null : role.getName ( ) ; }

Target:
public java.lang.String getRoleName ( ) { org.ovirt.engine.core.common.businessentities.Role role = roleDao.get ( org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) . getRoleId ( ) ) ; return role == null ? null : role.getName ( ) ; }
Source:
public boolean canBeCancelled ( ) { return ( canBePaused ( ) ) || ( canBeResumed ( ) ) ; }

Target:
public boolean canBeCancelled ( ) { return ( canBePaused ( ) ) || ( isPaused ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . save ( asyncTask ) ; coco.persistCommand ( map ( asyncTask , coco.getCommandEntity ( asyncTask.getCommandId ( ) ) ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . save ( asyncTask ) ; coco.persistCommand ( asyncTask.getRootCmdEntity ( ) ) ; coco.persistCommand ( asyncTask.getChildCmdEntity ( ) ) ; return null ; }
Source:
private void addVmStatisticsToList ( org.ovirt.engine.core.common.businessentities.VmStatistics vmStatistics ) { vmStatisticsToSave.put ( vmStatistics.getId ( ) , vmStatistics ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getExistingVmJobIds ( ) { return existingVmJobIds ; }
Source:
protected org.ovirt.engine.core.utils.ssh.SSHClient _getSSHClient ( ) { return new org.ovirt.engine.core.utils.ssh.EngineSSHClient ( ) ; }

Target:
protected org.ovirt.engine.core.utils.ssh.SSHClient _getSSHClient ( ) { org.ovirt.engine.core.bll.utils.EngineSSHClient client = new org.ovirt.engine.core.bll.utils.EngineSSHClient ( ) ; client.setVds ( _vds ) ; return client ; }
Source:
public org.ovirt.optimizer.util.SchedulerService.Timer createTimer ( int seconds , java.lang.Class < ? extends org.quartz.Job > job ) { return new org.ovirt.optimizer.util.SchedulerService.Timer ( seconds , job ) ; }

Target:
public org.ovirt.optimizer.scheduling.QuartzService.Timer createTimer ( int seconds , java.lang.Class < ? extends org.quartz.Job > job ) { return new org.ovirt.optimizer.scheduling.QuartzService.Timer ( seconds , job ) ; }
Source:
public void canDisableVirtioScsiFail ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk.setDiskInterface ( DiskInterface.VirtIO_SCSI ) ; org.junit.Assert.assertThat ( validator.canDisableVirtioScsi ( java.util.Collections.singletonList ( disk ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.CANNOT_DISABLE_VIRTIO_SCSI_PLUGGED_DISKS ) ) ; }

Target:
public void canDisableVirtioScsiFail ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk.setDiskInterface ( DiskInterface.VirtIO_SCSI ) ; org.junit.Assert.assertThat ( validator.canDisableVirtioScsi ( java.util.Collections.singletonList ( disk ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.CANNOT_DISABLE_VIRTIO_SCSI_PLUGGED_DISKS ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setEnumTitle ( object.getDiskStorageType ( ) ) ; return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.LUN ) ? resources.externalDiskIcon ( ) : null ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getMoveCommand ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.HostDeviceView > hostDevice ) { return ( hostDevice.getEntity ( ) . getIommuGroup ( ) ) == null ? org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.AddVmHostDevicePopupView.constants.notAvailableLabel ( ) : hostDevice.getEntity ( ) . getIommuGroup ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.HostDeviceView > hostDevice ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.HostDeviceColumnHelper.renderIommuGroup ( hostDevice.getEntity ( ) . getIommuGroup ( ) ) ; }
Source:
protected void initMAC ( ) { getMAC ( ) . setIsChangable ( false ) ; getMAC ( ) . setEntity ( getNic ( ) . getMacAddress ( ) ) ; }

Target:
protected void initMAC ( ) { getMAC ( ) . setIsChangeable ( false ) ; getMAC ( ) . setEntity ( getNic ( ) . getMacAddress ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.ClusterEnabledFeaturesResource getEnabledFeaturesResource ( ) { return null ; }

Target:
public org.ovirt.engine.api.resource.ClusterEnabledFeaturesResource getEnabledFeaturesResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterEnabledFeaturesResource ( guid ) ) ; }
Source:
protected void UndoActionOnSourceAndDestination ( ) { if ( ( getDestinationDiskImage ( ) ) != null ) { RemoveSnapshot ( getDestinationDiskImage ( ) ) ; } if ( ( getDiskImage ( ) ) != null ) { UnLockImage ( ) ; } }

Target:
protected void undoActionOnSourceAndDestination ( ) { if ( ( getDestinationDiskImage ( ) ) != null ) { removeSnapshot ( getDestinationDiskImage ( ) ) ; } if ( ( getDiskImage ( ) ) != null ) { unLockImage ( ) ; } }
Source:
public void setBootProtocolsAvailable ( boolean value ) { if ( ( bootProtocolsAvailable ) != value ) { bootProtocolsAvailable = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "BootProtocolsAvailable" ) ) ; } }

Target:
public void setBootProtocolsAvailable ( boolean value ) { if ( ( bootProtocolsAvailable ) != value ) { bootProtocolsAvailable = value ; UpdateCanSpecify ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "BootProtocolsAvailable" ) ) ; } }
Source:
public void hostWasInstalled ( ) { org.mockito.Mockito.when ( host.getHostOs ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 20 ) ) ; org.junit.Assert.assertThat ( validator.hostWasInstalled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void hostWasInstalled ( ) { host.setHostOs ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 20 ) ) ; org.junit.Assert.assertThat ( validator.hostWasInstalled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeEntry ( item ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeEntry ( item ) ; onRemove ( value , widget ) ; }
Source:
private org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return poolPerDc.poolForDataCenter ( storagePoolId ) ; }

Target:
private org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return poolPerDc.poolForDataCenter ( storagePoolId ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return new org.ovirt.engine.core.bll.validator.NetworkValidator ( getNetwork ( ) ) . networkIsSet ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , getNetwork ( ) ) . networkIsSet ( ) ; }
Source:
public static org.ovirt.engine.core.compat.TimeSpan tryParse ( java.lang.String string ) { try { return org.ovirt.engine.core.compat.TimeSpan.Parse ( string ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }

Target:
public static org.ovirt.engine.core.compat.TimeSpan tryParse ( java.lang.String string ) { try { return org.ovirt.engine.core.compat.TimeSpan.parse ( string ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }
Source:
public org.ovirt.engine.api.model.Events list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( ) ) ; } }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getBackendCollection ( ) { if ( isFiltered ( ) ) { return getBackendCollection ( VdcQueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; } else { return getBackendCollection ( SearchType.AuditLog ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.api.restapi.resource.BackendHostsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VDS.class ) , null , index ) ; return vds ; }

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 ( ) ) , null , index ) ; }
Source:
public void disableEditing ( ) { getDefaultCommand ( ) . setIsExecutionAllowed ( false ) ; getEditingEnabled ( ) . setEntity ( false ) ; }

Target:
public void disableEditing ( java.lang.String msg ) { getDefaultCommand ( ) . setIsExecutionAllowed ( false ) ; getEditingEnabled ( ) . setMessage ( msg ) ; getEditingEnabled ( ) . setEntity ( false ) ; }
Source:
public void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltip ) { org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.addTooltipToElement ( tooltip , getElement ( ) ) ; }

Target:
public void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltip ) { buttonTooltip.setHtml ( tooltip ) ; }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase getErrorCommandReturnValue ( org.ovirt.engine.core.dal.VdcBllMessages message ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setCanDoAction ( false ) ; returnValue.getCanDoActionMessages ( ) . add ( message.toString ( ) ) ; return returnValue ; }

Target:
private org.ovirt.engine.core.common.action.VdcReturnValueBase getErrorCommandReturnValue ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setCanDoAction ( false ) ; returnValue.getCanDoActionMessages ( ) . add ( message.toString ( ) ) ; return returnValue ; }
Source:
private void updateEditorStyle ( org.ovirt.engine.ui.common.widget.AbstractValidatedWidgetWithLabel editor , java.lang.String contentStyle ) { editor.setContentWidgetStyleName ( contentStyle ) ; editor.addContentWidgetStyleName ( "avw_contentWidget_pfly_fix" ) ; editor.addWrapperStyleName ( style.editorWrapper ( ) ) ; editor.setLabelStyleName ( style.editorLabel ( ) ) ; }

Target:
private void updateEditorStyle ( org.ovirt.engine.ui.common.widget.AbstractValidatedWidgetWithLabel editor , java.lang.String contentStyle ) { editor.setContentWidgetContainerStyleName ( contentStyle ) ; editor.addContentWidgetContainerStyleName ( "avw_contentWidgetContainer_pfly_fix" ) ; editor.addWrapperStyleName ( style.editorWrapper ( ) ) ; editor.setLabelStyleName ( style.editorLabel ( ) ) ; }
Source:
public void setExecutionContext ( org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { super . setExecutionContext ( executionContext ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Command ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult imageProvidedForOvirtNode ( java.lang.String image ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) . when ( ( ( ( host.getVdsType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ) ) && ( org.apache.commons.lang.StringUtils.isBlank ( image ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult imageProvidedForOvirtNode ( java.lang.String image ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) . when ( ( ( host.isOvirtNode ( ) ) && ( org.apache.commons.lang.StringUtils.isBlank ( image ) ) ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; }
Source:
public boolean canVmsBePaused ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > items ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : items ) { if ( ! ( isSuspendSupportedByArchitecture ( vm.getClusterArch ( ) , vm.getVdsGroupCompatibilityVersion ( ) ) ) ) { return false ; } } return true ; }

Target:
public boolean isMemorySnapshotSupported ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( vm == null ) { return false ; } return isMemorySnapshotSupportedByArchitecture ( vm.getClusterArch ( ) , vm.getCompatibilityVersion ( ) ) ; }
Source:
private boolean isClientBrowserUnsupported ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.Configurator ) ( org.ovirt.engine.ui.uicommonweb.TypeResolver.getInstance ( ) . resolve ( org.ovirt.engine.ui.uicommonweb.Configurator.class ) ) ) . isClientWindowsExplorer ( ) ; }

Target:
private java.lang.String createClientUrl ( ) { return ( ( ( ( ( ( ( ( Window.Location.getProtocol ( ) ) + "//" ) + ( Window.Location.getHost ( ) ) ) + "/" ) + ( clientPage ) ) + "?host=" ) + ( proxyConfig.getProxyHost ( ) ) ) + "&port=" ) + ( proxyConfig.getProxyPort ( ) ) ; }
Source:
public void update ( int index , java.lang.Object model , java.lang.Boolean value ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( model ) ) . getClone ( ) . setEntity ( value ) ; table.edit ( importModel ) ; }

Target:
public void update ( int index , java.lang.Object model , java.lang.Boolean value ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( model ) ) . getClone ( ) . setEntity ( value ) ; table.asEditor ( ) . edit ( importModel ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.StopProgress ( ) ; cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }
Source:
public void testAddValuePrimitive ( ) { int paramValue = this . random.nextInt ( ) ; paramSource.addValue ( paramName , paramValue ) ; org.junit.Assert.assertEquals ( "wrong value returned from parameter source" , paramValue , paramSource.getValue ( paramName ) ) ; }

Target:
public void testAddValueNull ( ) { paramSource.addValue ( paramName , null ) ; org.junit.jupiter.api.Assertions.assertNull ( paramSource.getValue ( paramName ) , "wrong value returned from parameter source" ) ; }
Source:
public void validateFailsIfHostDoesNotExists ( ) { org.mockito.Mockito.when ( vdsDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) ; }

Target:
public void validateFailsIfHostDoesNotExists ( ) { org.mockito.Mockito.when ( vdsDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) ; }
Source:
public void vmTemplateIdRefDefault ( ) { final org.ovirt.engine.core.compat.Guid g = b.getVmTemplateIdRef ( ) ; org.junit.Assert.assertNull ( g ) ; }

Target:
public void vmTemplateIdRefDefault ( ) { final org.ovirt.engine.core.compat.Guid g = b.getVmTemplateIdRef ( ) ; org.junit.jupiter.api.Assertions.assertNull ( g ) ; }
Source:
types.Session [ ] session ( ) ;

Target:
types.Session [ ] sessions ( ) ;
Source:
public int getvds_strength ( ) { return this . mVdsStatic.getvds_strength ( ) ; }

Target:
public void setVdsStrength ( int value ) { this . mVdsStatic.setVdsStrength ( value ) ; }
Source:
public static void GetTemplateListByDataCenter ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetVmTemplatesByStoragePoolId , new org.ovirt.engine.core.common.queries.GetVmTemplatesByStoragePoolIdParameters ( dataCenterId ) , aQuery ) ; }

Target:
public static void getTemplateListByDataCenter ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetVmTemplatesByStoragePoolId , new org.ovirt.engine.core.common.queries.GetVmTemplatesByStoragePoolIdParameters ( dataCenterId ) , aQuery ) ; }
Source:
public boolean execute ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { com.google.gwt.http.client.RequestBuilder requestBuilder = createRequest ( ) ; sendRequest ( requestBuilder , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiCallback ( ) { } ) ; return true ; } else { return false ; } }

Target:
public boolean execute ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { sendRequest ( createRequest ( null ) , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; return true ; } else { return false ; } }
Source:
public boolean isQuotaDefault ( ) { return this . mVmStatic.isQuotaDefault ( ) ; }

Target:
public void setIsQuotaDefault ( boolean isQuotaDefault ) { this . vmStatic.setIsQuotaDefault ( isQuotaDefault ) ; }
Source:
public void addMessage ( com.google.gwt.safehtml.shared.SafeHtml message , java.lang.String styleName ) { com.google.gwt.user.client.ui.HTMLPanel messageLabel = new com.google.gwt.user.client.ui.HTMLPanel ( message ) ; messageLabel.addStyleName ( styleName ) ; messagePanel.add ( messageLabel ) ; }

Target:
public void addMessage ( com.google.gwt.safehtml.shared.SafeHtml message , java.lang.String styleName ) { com.google.gwt.user.client.ui.HTMLPanel messageLabel = createMessageLabel ( message ) ; messageLabel.addStyleName ( styleName ) ; messagePanel.add ( messageLabel ) ; }
Source:
public void setSchedulingPolicies ( org.ovirt.engine.sdk.entities.SchedulingPolicies value ) { this . schedulingPolicies = value ; }

Target:
public boolean isSetVmPoolTypes ( ) { return ( this . vmPoolTypes ) != null ; }
Source:
public javax.ws.rs.core.Response allocatevm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . get ( org.ovirt.engine.core.common.users.VdcUser.class ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response allocatevm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . get ( org.ovirt.engine.core.common.businessentities.DbUser.class ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
public boolean isStatusUp ( ) { return org.ovirt.engine.core.common.businessentities.VM.isStatusUp ( getstatus ( ) ) ; }

Target:
public boolean getIsFirstRun ( ) { return vmStatic.getIsFirstRun ( ) ; }
Source:
public boolean getIsProvisioning ( ) { return ( getExternalDiscoveredHosts ( ) . getSelectedItem ( ) ) != null ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > getIsDiscoveredHosts ( ) { return isDiscoveredHosts ; }
Source:
public void validateFailsOnVolumeWithoutAsyncTask ( ) { setVolumeId ( volumeWithoutAsyncTask ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnVolumeWithoutAsyncTask ( ) { setVolumeId ( volumeWithoutAsyncTask ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_GLUSTER_VOLUME_INVALID_TASK_TYPE ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; getCancelCommand ( ) . Execute ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; getCancelCommand ( ) . Execute ( ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ATTACHMENT_NOT_EXISTS ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.common.businessentities.VmDevice > > getVmsWithVmDeviceInfoForDiskId ( ) { if ( ( cachedVmsDeviceInfo ) == null ) { cachedVmsDeviceInfo = org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getVmDAO ( ) . getVmsWithPlugInfo ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getId ( ) ) ; } return cachedVmsDeviceInfo ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.common.businessentities.VmDevice > > getVmsWithVmDeviceInfoForDiskId ( ) { if ( ( cachedVmsDeviceInfo ) == null ) { cachedVmsDeviceInfo = org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getVmDao ( ) . getVmsWithPlugInfo ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getId ( ) ) ; } return cachedVmsDeviceInfo ; }
Source:
public int setTabIndexes ( int nextTabIndex ) { diskAliasEditor.setTabIndex ( ( nextTabIndex ++ ) ) ; storageListEditor.setTabIndex ( ( nextTabIndex ++ ) ) ; return nextTabIndex ; }

Target:
public int setTabIndexes ( int nextTabIndex ) { diskAliasEditor.setTabIndex ( ( nextTabIndex ++ ) ) ; storageListEditor.setTabIndex ( ( nextTabIndex ++ ) ) ; diskProfileListEditor.setTabIndex ( ( nextTabIndex ++ ) ) ; return nextTabIndex ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . getAllForVolumeGroup ( storageDomain.getstorage ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . getAllForVolumeGroup ( storageDomain.getstorage ( ) ) ; }
Source:
public boolean isCloudInitUsed ( ) { return ( ( getInitializationType ( ) ) == ( InitializationType.CloudInit ) ) && ( ! ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . isWindows ( getVmOsId ( ) ) ) ) ; }

Target:
public boolean isCloudInitUsed ( ) { return ( ( getInitializationType ( ) ) == ( InitializationType.CloudInit ) ) && ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . isLinux ( getVmOsId ( ) ) ) ; }
Source:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.SERVER_NAME , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.SERVER_NAME , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.validate ( ) ) ; }
Source:
protected void SyncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.Cluster ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . SyncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.Cluster ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public org.ovirt.engine.core.compat.TimeSpan Subtract ( java.util.Date date ) { long span = ( this . getTime ( ) ) - ( date.getTime ( ) ) ; return new org.ovirt.engine.core.compat.TimeSpan ( span ) ; }

Target:
public org.ovirt.engine.core.compat.TimeSpan subtract ( java.util.Date date ) { long span = ( this . getTime ( ) ) - ( date.getTime ( ) ) ; return new org.ovirt.engine.core.compat.TimeSpan ( span ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllOfType ( org.ovirt.engine.core.common.businessentities.VDSType type ) { return getCallsHandler ( ) . executeReadList ( "GetVdsByType" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_type" , type ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllOfType ( org.ovirt.engine.core.common.businessentities.VDSType type ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > vdsList = getCallsHandler ( ) . executeReadList ( "GetVdsByType" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_type" , type ) ) ; return uniteAgents ( vdsList ) ; }
Source:
public void validate ( ) { if ( ! ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompClientPolicy.class . isInstance ( this . policy ) ) ) { throw new java.lang.IllegalStateException ( "Wrong policy type" ) ; } }

Target:
public void validate ( org.ovirt.vdsm.jsonrpc.client.internal.ClientPolicy policy ) { if ( ! ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompClientPolicy.class . isInstance ( policy ) ) ) { throw new java.lang.IllegalStateException ( "Wrong policy type" ) ; } }