auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.common.businessentities.EngineBackupLog getLastSuccessfulEngineBackup ( java.lang.String dbName ) { javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.EngineBackupLog > query = entityManager.createNamedQuery ( "EngineBackupLog.getLatest" , org.ovirt.engine.core.common.businessentities.EngineBackupLog.class ) . setParameter ( "dbName" , dbName ) . setMaxResults ( 1 ) ; return singleResult ( query ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.EngineBackupLog getLastSuccessfulEngineBackup ( java.lang.String scope ) { javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.EngineBackupLog > query = entityManager.createNamedQuery ( "EngineBackupLog.getLatest" , org.ovirt.engine.core.common.businessentities.EngineBackupLog.class ) . setParameter ( "scope" , scope ) . setMaxResults ( 1 ) ; return singleResult ( query ) ; }
Source:
public void testIsNetworkInSyncWhenIfaceQosEqual ( ) { org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIfaceQosEqual ( ) { org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParameters ) { return runInternalQuery ( queryType , queryParameters , null ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType queryType , org.ovirt.engine.core.common.queries.QueryParametersBase queryParameters ) { return runInternalQuery ( queryType , queryParameters , null ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.ModelProvider < org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterQosSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.ModelProvider < org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.DataCenterQosSubTabPanelPresenter.constants.dataCenterQosSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule > schedules = jdbcTemplate.query ( query , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotScheduleDaoDBFacadeImpl.snapshotScheduleRowMapper ) ; return schedules ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule > schedules = getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotScheduleDaoDBFacadeImpl.snapshotScheduleRowMapper ) ; return schedules ; }
Source:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.permissions > perms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getPermissionDAO ( ) . getAllForEntity ( MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ; org.ovirt.engine.core.bll.GetSystemPermissionsQuery.getQueryReturnValue ( ) . setReturnValue ( perms ) ; }

Target:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.permissions > perms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getPermissionDao ( ) . getAllForEntity ( MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ; org.ovirt.engine.core.bll.GetSystemPermissionsQuery.getQueryReturnValue ( ) . setReturnValue ( perms ) ; }
Source:
public boolean test ( org.ovirt.vdsm.jsonrpc.client.JsonRpcClient client ) { return client.isClosed ( ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { if ( isPolicyReset ) { updateHeartbeatPolicy ( client.getClientRetryPolicy ( ) . clone ( ) , false ) ; } return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }
Source:
public static boolean isStatusUpOrPausedOrSuspended ( org.ovirt.engine.core.common.businessentities.VMStatus st ) { return ( org.ovirt.engine.core.common.businessentities.VM.isStatusUpOrPaused ( st ) ) || ( st == ( VMStatus.Suspended ) ) ; }

Target:
public boolean isNotRunning ( ) { return getStatus ( ) . isNotRunning ( ) ; }
Source:
public void onSubTabSelected ( ) { getMainModel ( ) . setActiveDetailModel ( getModel ( ) ) ; }

Target:
public void setMainModelProvider ( com.google.inject.Provider < M > mainModelProvider ) { this . mainModelProvider = mainModelProvider ; }
Source:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.VM > createVm ( org.ovirt.engine.sdk.entities.VM value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.VM > ( org.ovirt.engine.sdk.entities.ObjectFactory._Vm_QNAME , org.ovirt.engine.sdk.entities.VM.class , null , value ) ; }

Target:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.SkipIfSdActive > createSkipIfSdActive ( org.ovirt.engine.sdk.entities.SkipIfSdActive value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.SkipIfSdActive > ( org.ovirt.engine.sdk.entities.ObjectFactory._SkipIfSdActive_QNAME , org.ovirt.engine.sdk.entities.SkipIfSdActive.class , null , value ) ; }
Source:
public void setEnabled ( boolean enabled , java.util.List < java.lang.String > disabilityHints ) { widgetWithLabel.setEnabled ( enabled , disabilityHints ) ; }

Target:
public void disable ( java.util.List < java.lang.String > disabilityHints ) { widgetWithLabel.disable ( disabilityHints ) ; }
Source:
public final java.lang.Object getData ( java.lang.String key , boolean refresh ) { return getData ( org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) , key , refresh ) ; }

Target:
public void refresh ( java.lang.String sessionId ) { refresh ( getSessionInfo ( sessionId ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isShareable ( ) ? constants.shareable ( ) : null ) ) ; return object.isShareable ( ) ? resources.shareableDiskIcon ( ) : null ; }

Target:
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 ; }
Source:
private org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters createActivateDeactivateParameters ( org.ovirt.engine.core.compat.Guid nicId , org.ovirt.engine.core.common.action.PlugAction plugAction ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters parameters = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( nicId , plugAction ) ; parameters.setVmId ( org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getParameters ( ) . getVmId ( ) ) ; return parameters ; }

Target:
private org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters createActivateDeactivateParameters ( org.ovirt.engine.core.compat.Guid nicId , org.ovirt.engine.core.common.action.PlugAction plugAction , java.lang.String oldMacAddress ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters parameters = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( nicId , plugAction , oldMacAddress ) ; parameters.setVmId ( org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getParameters ( ) . getVmId ( ) ) ; return parameters ; }
Source:
public final void disconnect ( java.lang.String message ) { byte [ ] response = buildNetworkResponse ( message ) ; postDisconnect ( ) ; closeChannel ( ) ; emitOnMessageReceived ( response ) ; }

Target:
public final void disconnect ( java.lang.String message ) { this . closing.set ( true ) ; byte [ ] response = buildNetworkResponse ( message ) ; postDisconnect ( ) ; closeChannel ( ) ; emitOnMessageReceived ( response ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return infoReturn.mStatus ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return infoReturn.status ; }
Source:
public void setLabelStyleName ( java.lang.String styleName ) { getLabelElement ( ) . setClassName ( styleName ) ; }

Target:
public void removeLabelStyleName ( java.lang.String styleName ) { getFormLabel ( ) . removeStyleName ( styleName ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { super . verifyModel ( model , index ) ; org.junit.Assert.assertFalse ( model.isSetUser ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { super . verifyModel ( model , index ) ; org.junit.jupiter.api.Assertions.assertFalse ( model.isSetUser ( ) ) ; }
Source:
public java.lang.String getguest_cur_user_name ( ) { return this . mVmDynamic.getguest_cur_user_name ( ) ; }

Target:
public java.util.Date getLastStartTime ( ) { return this . vmDynamic.getLastStartTime ( ) ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) != null ) { syncSearch ( VdcQueryType.GetExtendedHostDevicesByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; } }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) != null ) { syncSearch ( QueryType.GetExtendedHostDevicesByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; } }
Source:
private void handleFailure ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.LUNs lun ) { org.ovirt.engine.core.bll.storage.ConnectAllHostsToLunCommand.ConnectAllHostsToLunCommandReturnValue result = getResult ( ) ; result.setFailedVds ( vds ) ; result.setFailedLun ( lun ) ; }

Target:
private void handleFailure ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { org.ovirt.engine.core.bll.storage.ConnectAllHostsToLunCommand.ConnectAllHostsToLunCommandReturnValue result = getResult ( ) ; result.setFailedVds ( vds ) ; result.setFailedLun ( lun ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LunDisk createDiskEntity ( ) { return new org.ovirt.engine.core.common.businessentities.LunDisk ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.LunDisk createDiskEntity ( ) { return new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { return getBackend ( ) . runInternalAction ( VdcActionType.UpdateGlusterHostPubKeyToSlaveInternal , new org.ovirt.engine.core.common.action.gluster.UpdateGlusterHostPubKeyToSlaveParameters ( currentRemoteHostId , pubKeys , userName ) ) . getSucceeded ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase call ( ) throws java.lang.Exception { return getBackend ( ) . runInternalAction ( VdcActionType.UpdateGlusterHostPubKeyToSlaveInternal , new org.ovirt.engine.core.common.action.gluster.UpdateGlusterHostPubKeyToSlaveParameters ( currentRemoteHostId , pubKeys , userName ) ) ; }
Source:
public void testDiskAttachedToVMFail ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) ; org.junit.Assert.assertThat ( validator.isDiskAttachedToVm ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_ATTACHED_TO_VM ) ) ; }

Target:
public void testDiskAttachedToVMFail ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isDiskAttachedToVm ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_ATTACHED_TO_VM ) ) ; }
Source:
public void invalidLowMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 30 ) ) ; junit.framework.Assert.assertTrue ( ( ( validate.size ( ) ) > 0 ) ) ; }

Target:
public void invalidLowMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 30 ) ) ; org.junit.Assert.assertTrue ( ( ( validate.size ( ) ) > 0 ) ) ; }
Source:
public static java.lang.Double getVdsmTimestamp ( java.util.Map < java.lang.String , java.lang.Object > xmlRpcStruct ) { if ( xmlRpcStruct.containsKey ( VdsProperties.statusTime ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignDoubleValue ( xmlRpcStruct , VdsProperties.statusTime ) ; } return - 1.0 ; }

Target:
public static java.lang.Double getVdsmCallTimestamp ( java.util.Map < java.lang.String , java.lang.Object > xmlRpcStruct ) { if ( xmlRpcStruct.containsKey ( VdsProperties.statusTime ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignDoubleValue ( xmlRpcStruct , VdsProperties.statusTime ) ; } return - 1.0 ; }
Source:
public void testVmFailNoDisks ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , null , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ( ) , null ) , false , VdcBllMessages.VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK ) ; }

Target:
public void testVmFailNoDisks ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , null , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ( ) , null ) , false , EngineMessage.VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK ) ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmAndNonVmAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) , vmNetwork1 , nonVmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetwork ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( true , java.util.Arrays.asList ( NetworkType.VLAN , NetworkType.NON_VM ) , vlanNetwork , nonVmNetwork1 ) ; }
Source:
private void Pause ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.HibernateVm , new org.ovirt.engine.core.common.action.HibernateVmParameters ( entity.getId ( ) ) ) ; }

Target:
private void pause ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.HibernateVm , new org.ovirt.engine.core.common.action.HibernateVmParameters ( entity.getId ( ) ) ) ; }
Source:
public void setLabelTooltip ( java.lang.String tooltipText ) { labelConfiguredTooltip = tooltipText ; labelTooltip.setText ( tooltipText ) ; labelTooltip.reconfigure ( ) ; setLabelTooltipStyle ( tooltipText ) ; }

Target:
public void cleanup ( ) { W contentWidget = getContentWidget ( ) ; if ( contentWidget instanceof org.ovirt.engine.ui.uicommonweb.HasCleanup ) { ( ( org.ovirt.engine.ui.uicommonweb.HasCleanup ) ( contentWidget ) ) . cleanup ( ) ; } labelTooltip.cleanup ( ) ; contentWidgetContainerTooltip.cleanup ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllRunningForStorageDomain ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetRunningVmsByStorageDomainId" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "storage_domain_id" , id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllActiveForStorageDomain ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetActiveVmsByStorageDomainId" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "storage_domain_id" , id ) ) ; }
Source:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.Snapshot s = getSnapshotDao ( ) . get ( snapshotId ) ; s = org.ovirt.engine.core.bll.ImagesHandler.prepareSnapshotConfigWithAlternateImage ( s , oldImageId , newImage ) ; getSnapshotDao ( ) . update ( s ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.Snapshot s = getSnapshotDao ( ) . get ( snapshotId ) ; s = org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.prepareSnapshotConfigWithAlternateImage ( s , oldImageId , newImage ) ; getSnapshotDao ( ) . update ( s ) ; return null ; }
Source:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidObject ( ) { org.ovirt.engine.core.common.businessentities.permissions result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.dao.PermissionDAOTest.ROLE_ID , org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidObject ( ) { org.ovirt.engine.core.common.businessentities.permissions result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.dao.PermissionDAOTest.ROLE_ID , org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel object ) { driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel model ) { networksTable.edit ( model.getNetworkList ( ) ) ; dcColumn.edit ( model.getDataCenters ( ) ) ; driver.edit ( model ) ; }
Source:
public java.util.List < java.lang.String > getVirtioScsiControllersForEntity ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( java.util.List.class , VdcQueryType.GetVirtioScsiControllers , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetVirtioScsiControllers" , true ) ; }

Target:
public static java.util.List < java.lang.String > getSoundDevicesForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource resource , org.ovirt.engine.core.compat.Guid id ) { return resource.getEntity ( java.util.List.class , VdcQueryType.GetSoundDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetSoundDevices" , true ) ; }
Source:
protected org.ovirt.engine.ui.webadmin.widget.vnicProfile.VnicProfileWidget createWidget ( org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel value ) { org.ovirt.engine.ui.webadmin.widget.vnicProfile.VnicProfileWidget vnicProfileWidget = new org.ovirt.engine.ui.webadmin.widget.vnicProfile.VnicProfileWidget ( ) ; vnicProfileWidget.edit ( value ) ; return vnicProfileWidget ; }

Target:
protected org.ovirt.engine.ui.webadmin.widget.vnicProfile.VnicProfileWidget createWidget ( org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel value ) { org.ovirt.engine.ui.webadmin.widget.vnicProfile.VnicProfileWidget vnicProfileWidget = new org.ovirt.engine.ui.webadmin.widget.vnicProfile.VnicProfileWidget ( ) ; vnicProfileWidget.setUsePatternFly ( usePatternFly ) ; vnicProfileWidget.edit ( value ) ; return vnicProfileWidget ; }
Source:
public void getUserName ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setUserName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; final java.lang.String n = b.getUserName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , n ) ; }

Target:
public void vmTemplateNameWithVm ( ) { final org.ovirt.engine.core.common.businessentities.VM v = new org.ovirt.engine.core.common.businessentities.VM ( ) ; b.setVm ( v ) ; final java.lang.String n = b.getVmTemplateName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , n ) ; }
Source:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel value ) { systemTreeSelectedItem = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "SystemTreeSelectedItem" ) ) ; }

Target:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel value ) { systemTreeSelectedItem = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SystemTreeSelectedItem" ) ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendDomainUserResource ( "foo" , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( EXTERNAL_IDS [ index ] . toHex ( ) , model.getExternalId ( ) ) ; assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
protected void selectExternalProvider ( ) { final org.ovirt.engine.core.common.businessentities.network.Network network = getNetwork ( ) ; getExternalProviders ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( getExternalProviders ( ) . getItems ( ) , new org.ovirt.engine.ui.uicommonweb.Linq.NetworkSameProviderPredicate ( network ) ) ) ; }

Target:
protected void selectExternalProvider ( ) { final org.ovirt.engine.core.common.businessentities.network.Network network = getNetwork ( ) ; getExternalProviders ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( getExternalProviders ( ) . getItems ( ) , new org.ovirt.engine.ui.uicommonweb.Linq.NetworkSameProviderPredicate ( network ) ) ) ; }
Source:
private boolean clusterHasServers ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . hasServers ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroupId ( ) ) ; }

Target:
private boolean clusterHasServers ( ) { return getClusterUtils ( ) . hasServers ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroupId ( ) ) ; }
Source:
private void cancel ( ) { setWindow ( null ) ; }

Target:
private void cancel ( ) { setWindow ( null ) ; setConfirmWindow ( null ) ; }
Source:
public void testIsInStatusInvalid ( ) { org.junit.Assert.assertThat ( validator.isInStatus ( StoragePoolStatus.NonResponsive , StoragePoolStatus.NotOperational ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_STATUS_ILLEGAL ) ) ; }

Target:
public void testIsInStatusInvalid ( ) { org.junit.Assert.assertThat ( validator.isInStatus ( StoragePoolStatus.NonResponsive , StoragePoolStatus.NotOperational ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_STATUS_ILLEGAL ) ) ; org.junit.Assert.assertThat ( validator.isNotInStatus ( StoragePoolStatus.NonResponsive , StoragePoolStatus.NotOperational ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String getClientURLForTransfer ( ) { return ( ( getProxyUri ( ) ) + "/" ) + ( getImagedTicketId ( ) ) ; }

Target:
public java.lang.String getProxyURLForTransfer ( ) { return ( ( getProxyUri ( ) ) + "/" ) + ( getImagedTicketId ( ) ) ; }
Source:
public void testGetAllIdsForNonExistingStatus ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > result = dao.getAllIds ( FixturesTool.DATA_CENTER , StorageDomainStatus.Unknown ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllIdsForNonExistingStatus ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > result = dao.getAllIds ( FixturesTool.DATA_CENTER , StorageDomainStatus.Unknown ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testIsNetworkInSyncWhenNetworkQosIsNullIfaceQosOverridden ( ) { networkQos = null ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenNetworkQosIsNullIfaceQosOverridden ( ) { networkQos = null ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getExternalIdsForRunningSteps ( org.ovirt.engine.core.common.job.ExternalSystemType systemType ) { return multipleResults ( entityManager.createNamedQuery ( "Step.getExternalIdsForRunningSteps" ) . setParameter ( "status" , JobExecutionStatus.STARTED ) . setParameter ( "type" , systemType ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByExternalId ( org.ovirt.engine.core.compat.Guid externalId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Step.getStepsByExternalId" , org.ovirt.engine.core.common.job.Step.class ) . setParameter ( "externalId" , externalId ) ) ; }
Source:
public void setNumberOfMonitors ( int numberOfMonitors ) { this . numberOfMonitors = numberOfMonitors ; }

Target:
public void setUsbListenPort ( int usbListenPort ) { this . consoleOptions.setUsbListenPort ( usbListenPort ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult dataCenterExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) . when ( ( ( ( cluster.getStoragePoolId ( ) ) != null ) && ( ( getDataCenter ( ) ) == null ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult dataCenterExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) . when ( ( ( ( cluster.getStoragePoolId ( ) ) != null ) && ( ( getDataCenter ( ) ) == null ) ) ) ; }
Source:
private void setValidStatus ( java.lang.String message ) { statusPanel.setTextAndStyle ( message , style.statusPanel ( ) , style.statusLabel ( ) ) ; }

Target:
private void setValidStatus ( java.lang.String message ) { keepStatusText = false ; statusPanel.setTextAndStyle ( message , style.statusPanel ( ) , style.statusLabel ( ) ) ; }
Source:
public void setvm_name ( java.lang.String value ) { this . mVmStatic.setvm_name ( value ) ; }

Target:
public int getMemSizeMb ( ) { return this . getVmMemSizeMb ( ) ; }
Source:
public static org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return ( vmBase.getClusterId ( ) ) != null ? org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . getClusterDao ( ) . get ( vmBase.getClusterId ( ) ) . getCompatibilityVersion ( ) : org.ovirt.engine.core.compat.Version.v3_0 ; }

Target:
public static org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return ( vmBase.getClusterId ( ) ) != null ? org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . getClusterDao ( ) . get ( vmBase.getClusterId ( ) ) . getCompatibilityVersion ( ) : org.ovirt.engine.core.compat.Version.v3_5 ; }
Source:
private org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilderBase createBuilder ( ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder ( vm , org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getParameters ( ) . getVdsId ( ) , createInfo ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilderBase createBuilder ( ) { final org.ovirt.engine.core.vdsbroker.vdsbroker.factory.VmInfoBuilderFactory vmInfoBuilderFactory = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.vdsbroker.vdsbroker.factory.VmInfoBuilderFactory.class ) ; return vmInfoBuilderFactory.createVmInfoBuilder ( vm , org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getParameters ( ) . getVdsId ( ) , createInfo ) ; }
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.AttachUserToVmFromPoolAndRunParameters ( guid , getCurrent ( ) . getUser ( ) . getId ( ) ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response allocateVm ( org.ovirt.engine.api.model.Action action ) { return doAction ( ActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.AttachUserToVmFromPoolAndRunParameters ( guid , getCurrent ( ) . getUser ( ) . getId ( ) ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value ) { return new org.ovirt.engineextensions.aaa.ldap.ASN1OctetString ( value ) ; }

Target:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return new org.ovirt.engineextensions.aaa.ldap.ASN1OctetString ( value ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmSessionsModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineSessionsPresenter.constants.virtualMachineSessionsSubTabLabel ( ) , 9 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmGuestInfoModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineGuestInfoPresenter.constants.virtualMachineGuestInfoSubTabLabel ( ) , 9 , modelProvider ) ; }
Source:
public java.util.Date getGuestLastLoginTime ( ) { return this . guestLastLoginTime ; }

Target:
public void setGuestOsArch ( java.lang.Integer arch ) { this . guestOsArch = org.ovirt.engine.core.common.businessentities.ArchitectureType.forValue ( arch ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > applyUserConfiguredNics ( ) { java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsToConfigureByName = getNicsToConfigureByNameWithoutLabelsUpdates ( ) ; updateLabelsOnNicsToConfigure ( nicsToConfigureByName ) ; return new java.util.ArrayList ( nicsToConfigureByName.values ( ) ) ; }

Target:
private void updateLabelsOnNicsToConfigure ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsToConfigure ) { java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsToConfigureByName = org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( nicsToConfigure ) ; clearLabelsFromRemovedBonds ( nicsToConfigureByName ) ; updateAddedModifiedLabelsOnNics ( nicsToConfigureByName ) ; updateRemovedLabelOnNics ( nicsToConfigureByName ) ; }
Source:
public void updateCpuFlags ( org.ovirt.engine.core.compat.Guid id , java.lang.String cpuFlags ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setCpuFlags ( cpuFlags ) ; update ( entity ) ; }

Target:
public void updateCpuFlags ( org.ovirt.engine.core.compat.Guid id , java.lang.String cpuFlags ) { getCallsHandler ( ) . executeModification ( "updateCpuFlags" , getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) . addValue ( "cpu_flags" , cpuFlags ) ) ; }
Source:
public void testParseNoAction ( ) { parser.parse ( new java.lang.String [ ] { "-b" , "-t" , "filename" } ) ; }

Target:
public void testParseNoAction ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> parser.parse ( new java.lang.String [ ] { "-b" , "-t" , "filename" } ) ) ; }
Source:
private java.util.Map < java.lang.String , java.lang.String > createCustomProperties ( ) { java.util.Map < java.lang.String , java.lang.String > customProperties = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; customProperties.put ( "foo" , "bar" ) ; return customProperties ; }

Target:
private java.util.Map < java.lang.String , java.lang.String > createCustomProperties ( ) { java.util.Map < java.lang.String , java.lang.String > customProperties = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; customProperties.put ( "bridge_opts" , "forward_delay=1500" ) ; return customProperties ; }
Source:
private void printKeyInFormat ( org.ovirt.engine.core.config.entity.ConfigKey key ) { org.ovirt.engine.core.config.EngineConfigLogic.log.info ( java.text.MessageFormat.format ( "{0}: {1} (Value Type: {2})" , key.getKey ( ) , key.getDescription ( ) , key.getType ( ) ) ) ; }

Target:
private void printKeyInFormat ( org.ovirt.engine.core.config.entity.ConfigKey key ) { org.ovirt.engine.core.config.EngineConfigLogic.console.writeFormat ( "%s: %s (Value Type: %s)\n" , key.getKey ( ) , key.getDescription ( ) , key.getType ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.Network getManagementNetwork ( org.ovirt.engine.core.compat.Guid clusterId ) { return getNetworkDao ( ) . getManagementNetwork ( clusterId ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.Network getManagementNetwork ( org.ovirt.engine.core.compat.Guid clusterId ) { return networkDao.getManagementNetwork ( clusterId ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterfaceWithStaticIp ( java.lang.String ip ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface networkInterface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; networkInterface.setAddress ( ip ) ; networkInterface.setBootProtocol ( NetworkBootProtocol.StaticIp ) ; return networkInterface ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterfaceWithStaticIp ( java.lang.String ip ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface networkInterface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; networkInterface.setAddress ( ip ) ; networkInterface.setBootProtocol ( NetworkBootProtocol.STATIC_IP ) ; return networkInterface ; }
Source:
public static org.ovirt.engine.core.common.businessentities.StorageDomain getStorageById ( org.ovirt.engine.core.compat.Guid storageId , java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain storage : storageDomains ) { if ( storage.getId ( ) . equals ( storageId ) ) { return storage ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageDomain getStorageById ( org.ovirt.engine.core.compat.Guid storageId , java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( storageDomains , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate ( storageId ) ) ; }
Source:
private org.ovirt.engine.core.bll.quota.QuotaStorage copyQuotaStorageUsage ( org.ovirt.engine.core.bll.quota.QuotaStorage quotaStorage ) { return new org.ovirt.engine.core.bll.quota.QuotaStorage ( null , null , null , quotaStorage.getStorageSizeGB ( ) , quotaStorage.getStorageSizeGBUsage ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.QuotaStorage copyQuotaStorageUsage ( org.ovirt.engine.core.common.businessentities.QuotaStorage quotaStorage ) { return new org.ovirt.engine.core.common.businessentities.QuotaStorage ( null , null , null , quotaStorage.getStorageSizeGB ( ) , quotaStorage.getStorageSizeGBUsage ( ) ) ; }
Source:
protected void mockVds ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setClusterCompatibilityVersion ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; org.mockito.Mockito.when ( vdsDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vds ) ; }

Target:
protected void mockVds ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setClusterCompatibilityVersion ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; org.mockito.Mockito.when ( vdsDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vds ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return this . storage_pool_idField ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return this . storagePoolId ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { setWindow ( null ) ; setWindow ( importVmsModel ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { onRestoreFromExportDomain ( ) ; }
Source:
public void execute ( ) { org.ovirt.engine.ui.common.widget.editor.GroupedListModelListBox.super . setValue ( value , true ) ; }

Target:
public void setValue ( T value ) { if ( value != null ) { super . setValue ( value , true ) ; } }
Source:
java.lang.String memSizeBetween ( int minMemSize , int maxMemSize ) ;

Target:
java.lang.String maxMemSizeIs ( int maxMemSize ) ;
Source:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , null ) ; org.junit.Assert.assertEquals ( "Should be map of disk alias and disk description" , "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"\"}" , jsonDescription ) ; }

Target:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( "DiskAlias" , null ) ; }
Source:
protected boolean validate ( ) { org.ovirt.engine.core.compat.Guid imageId = org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getParameters ( ) . getImageId ( ) ; if ( ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( imageId ) ) ) { return validateUploadToImage ( imageId ) ; } else { return validateCreateImage ( ) ; } }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.compat.Guid imageId = org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getParameters ( ) . getImageId ( ) ; if ( isImageProvided ( ) ) { return validateUploadToImage ( imageId ) ; } else { return validateCreateImage ( ) ; } }
Source:
private void propagateLabeledNetworksChanges ( ) { runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , getParameters ( ) ) ; }

Target:
private org.ovirt.engine.core.common.action.ManageNetworkClustersParameters cloneParams ( ) { return new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( getParameters ( ) ) ; }
Source:
public void setExternalProviders ( org.ovirt.engine.ui.uicommonweb.models.ListModel externalProviders ) { this . externalProviders = externalProviders ; }

Target:
public void setNetworkProviders ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { this . networkProviders = value ; }
Source:
public void setVmIds ( java.util.List < org.ovirt.engine.core.compat.Guid > vmIds ) { this . vmIds = vmIds ; }

Target:
public void setEnforcing ( boolean enforcing ) { this . enforcing = enforcing ; }
Source:
public void testExecuteQueryCommand ( ) { getQuery ( ) . executeQueryCommand ( ) ; final java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > actual = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.Assert.assertThat ( actual , org.hamcrest.Matchers.sameInstance ( vnicProfileViews ) ) ; }

Target:
public void testExecuteQueryCommand ( ) { getQuery ( ) . executeQueryCommand ( ) ; final java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > actual = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.hamcrest.MatcherAssert.assertThat ( actual , org.hamcrest.Matchers.sameInstance ( vnicProfileViews ) ) ; }
Source:
public void testIsNetworkInSyncWhenIpConfigurationIsNull ( ) { this . testedNetworkAttachment.setIpConfiguration ( null ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpConfigurationIsNull ( ) { this . testedNetworkAttachment.setIpConfiguration ( null ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "mStatus" , ( isRequestCompleted ( ) ? getXmlRpcStatus ( ) : "Pending Response" ) ) . build ( ) ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "status" , ( isRequestCompleted ( ) ? getXmlRpcStatus ( ) : "Pending Response" ) ) . build ( ) ; }
Source:
public void setHost ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHost host ) { this . host = host ; }

Target:
public void setResults ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHost [ ] hosts ) { this . results = hosts ; }
Source:
private void logMemorySavingFailed ( ) { addCustomValue ( "SnapshotName" , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getSnapshotName ( ) ) ; addCustomValue ( "VmName" , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVmName ( ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( this , AuditLogType.USER_CREATE_LIVE_SNAPSHOT_NO_MEMORY_FAILURE ) ; }

Target:
private void logMemorySavingFailed ( ) { addCustomValue ( "SnapshotName" , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getSnapshotName ( ) ) ; addCustomValue ( "VmName" , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVmName ( ) ) ; auditLogDirector.log ( this , AuditLogType.USER_CREATE_LIVE_SNAPSHOT_NO_MEMORY_FAILURE ) ; }
Source:
public void shouldHandleNoNumaNodes ( ) { vm.setvNumaNodeList ( null ) ; org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldHandleNoNumaNodes ( ) { vm.setvNumaNodeList ( null ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc freeze ( java.lang.String vmId ) ;
Source:
public static org.ovirt.engine.core.common.businessentities.StorageDomain findStorageDomainForMemory ( org.ovirt.engine.core.compat.Guid storagePoolId , long sizeRequested ) { return org.ovirt.engine.core.bll.VmHandler.findStorageDomainForMemory ( storagePoolId , sizeRequested , java.util.Collections.< org.ovirt.engine.core.common.businessentities.StorageDomain , java.lang.Integer > emptyMap ( ) ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageDomain findStorageDomainForMemory ( org.ovirt.engine.core.compat.Guid storagePoolId , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > domainsInPool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getAllForStoragePool ( storagePoolId ) ; return org.ovirt.engine.core.bll.VmHandler.findStorageDomainForMemory ( domainsInPool , disksList ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( ) ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.GetGlusterServersForImportQueryTest.NEW_SERVER ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.GetGlusterServersForImportQueryTest.NEW_SERVER ) ; return vds ; }
Source:
public void clearAsyncTask ( ) { clearAsyncTask ( false ) ; }

Target:
public void clearAsyncTask ( ) { if ( Guid.Empty.equals ( getVdsmTaskId ( ) ) ) { RemoveTaskFromDB ( ) ; return ; } clearAsyncTask ( false ) ; }
Source:
protected void saveConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { org.ovirt.engine.core.bll.storage.connection.AddStorageServerConnectionCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) . save ( connection ) ; }

Target:
protected void saveConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { storageServerConnectionDao.save ( connection ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Snapshot getSnapshot ( ) { return org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getParameters ( ) . getSnapshotId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot getSnapshot ( ) { return snapshotDao.get ( org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getParameters ( ) . getSnapshotId ( ) ) ; }