auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; if ( e.PropertyName.equals ( "Disks" ) ) { updateStorageDomainsAvailability ( ) ; updateQuotaAvailability ( ) ; } }

Target:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; if ( e.propertyName.equals ( "Disks" ) ) { updateStorageDomainsAvailability ( ) ; updateQuotaAvailability ( ) ; } }
Source:
protected < T > T doGetEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.VdcQueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return doGetEntity ( clz , query , queryParams , identifier , true ) ; }

Target:
protected < T > T doGetEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.QueryParametersBase queryParams , java.lang.String identifier ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return doGetEntity ( clz , query , queryParams , identifier , true ) ; }
Source:
public org.ovirt.engine.api.model.Disk update ( org.ovirt.engine.api.model.Disk resource ) { return super . update ( resource ) ; }

Target:
public org.ovirt.engine.api.model.Disk update ( org.ovirt.engine.api.model.Disk resource ) { validateEnums ( org.ovirt.engine.api.model.Disk.class , resource ) ; return super . update ( resource ) ; }
Source:
private java.lang.String getTagRootUri ( ) { return org.ovirt.engine.api.common.util.LinkHelper.combine ( getUriInfo ( ) . getBaseUri ( ) . getPath ( ) , "tags/00000000-0000-0000-0000-000000000000" ) ; }

Target:
private java.lang.String getTemplateBlankUri ( ) { return org.ovirt.engine.api.utils.LinkHelper.combine ( getUriInfo ( ) . getBaseUri ( ) . getPath ( ) , "templates/00000000-0000-0000-0000-000000000000" ) ; }
Source:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper setupCompositeQosConfiguration ( boolean qosOnAll ) { return setupCompositeQosConfiguration ( "nic0" , qosOnAll ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper setupCompositeQosConfiguration ( boolean qosOnAll , org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos , java.lang.Integer slaveSpeed , java.lang.Integer bondSpeed , java.lang.String bondOptions ) { return setupCompositeQosConfiguration ( true , qosOnAll , qos , slaveSpeed , bondSpeed , bondOptions ) ; }
Source:
public void testGetAllWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertCorrectGetAllResult ( result ) ; }

Target:
public void testGetAllWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertCorrectGetAllResult ( result ) ; }
Source:
public void onSuccess ( java.lang.Integer returnValue ) { cachedMaxPriority = returnValue ; updatePriority ( model ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; updatePriority ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ) ; }
Source:
public void testAllLunsSupportDiscardFailsOneLunDoesNotSupport ( ) { org.junit.Assert.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) ) ) ; }

Target:
public void testAllLunsSupportDiscardFailsOneLunDoesNotSupport ( ) { org.junit.Assert.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) , createLunWithDiscardSupport ( 0L ) ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DiskLunMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.DiskLunMap diskLunMap = new org.ovirt.engine.core.common.businessentities.DiskLunMap ( ) ; diskLunMap.setDiskId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( rs.getString ( "disk_id" ) ) ) ; diskLunMap.setLunId ( rs.getString ( "lun_id" ) ) ; return diskLunMap ; }

Target:
public org.ovirt.engine.core.common.businessentities.DiskLunMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.DiskLunMap diskLunMap = new org.ovirt.engine.core.common.businessentities.DiskLunMap ( ) ; diskLunMap.setDiskId ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( rs.getString ( "disk_id" ) ) ) ; diskLunMap.setLunId ( rs.getString ( "lun_id" ) ) ; return diskLunMap ; }
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.setvds_group_id ( clusterId ) ; vds.sethost_name ( serverName ) ; 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.setVdsGroupId ( clusterId ) ; vds.setHostName ( serverName ) ; return vds ; }
Source:
protected void updateDeviceProperties ( ) { oldVmDevice.setIsPlugged ( false ) ; oldVmDevice.setAddress ( "" ) ; org.ovirt.engine.core.bll.HotUnPlugDiskFromVmCommand.getVmDeviceDao ( ) . update ( oldVmDevice ) ; }

Target:
protected void updateDeviceProperties ( ) { oldVmDevice.setIsPlugged ( false ) ; oldVmDevice.setAddress ( "" ) ; oldVmDevice.setLogicalName ( null ) ; org.ovirt.engine.core.bll.HotUnPlugDiskFromVmCommand.getVmDeviceDao ( ) . update ( oldVmDevice ) ; }
Source:
protected void persistCollectedData ( ) { updateNetConfigDirtyFlag ( ) ; hostNetworkTopologyPersister.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , getParameters ( ) . getInterfaces ( ) ) ; }

Target:
protected void persistCollectedData ( ) { updateNetConfigDirtyFlag ( ) ; hostNetworkTopologyPersister.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , new org.ovirt.engine.core.common.vdscommands.UserConfiguredNetworkData ( ) ) ; }
Source:
protected void logTaskCleanFailure ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.errorFormat ( "SPMAsyncTask::ClearAsyncTask: Clearing task '{0}' failed." , getVdsmTaskId ( ) ) ; }

Target:
protected void logTaskCleanFailure ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.error ( "SPMAsyncTask::ClearAsyncTask: Clearing task '{}' failed." , getVdsmTaskId ( ) ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunUserQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , true ) ; }

Target:
public void triggerPoolMonitoringJob ( ) { org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . triggerJob ( poolMonitoringJobId ) ; }
Source:
public org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface createTestedInstance ( ) { return new org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface ( iface , network , networkQos ) ; }

Target:
public org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface createTestedInstance ( ) { return new org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface ( iface , network , networkQos , mockedIpConfiguration ) ; }
Source:
protected void onRunOnce ( ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RunVmOnce , createRunVmOnceParams ( ) , null , this ) ; commandTarget.ExecuteCommand ( runOnceCommand ) ; }

Target:
protected void onRunOnce ( ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RunVmOnce , createRunVmOnceParams ( ) , null , this ) ; commandTarget.executeCommand ( runOnceCommand ) ; }
Source:
private void mockMaxMTU ( int maxMTU ) { org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.common.config.Config.GetValue ( ConfigValues.MaxMTU ) ) . thenReturn ( maxMTU ) ; }

Target:
public void tearDown ( ) { org.ovirt.engine.core.common.config.Config.setConfigUtils ( null ) ; }
Source:
private void printSuccessMessage ( java.lang.String domainName , java.lang.String action ) { if ( args.contains ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_ADD_PERMISSIONS ) ) { java.lang.System.out.print ( java.lang.String.format ( SUCCESS_MESSAGE_FOR_ACTION_WITH_ADD_PERMISSIONS , "added" , domainName ) ) ; } java.lang.System.out.println ( SERVICE_RESTART_MESSAGE ) ; }

Target:
private void printSuccessMessage ( java.lang.String domainName , java.lang.String action ) { if ( args.containsKey ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_ADD_PERMISSIONS ) ) { java.lang.System.out.print ( java.lang.String.format ( SUCCESS_MESSAGE_FOR_ACTION_WITH_ADD_PERMISSIONS , "added" , domainName ) ) ; } java.lang.System.out.println ( SERVICE_RESTART_MESSAGE ) ; }
Source:
public void validateVmMemoryCanStartOnVdsBecauseOfLowGuestOverhead ( ) { vds.setGuestOverhead ( 0 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCanStartOnVds ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notChangingDataCenterId ( org.ovirt.engine.core.compat.Guid dataCenterId ) { final org.ovirt.engine.core.compat.Guid oldDataCenterId = network.getDataCenterId ( ) ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_DATA_CENTER_ID_CANNOT_BE_CHANGED ) . when ( ( ! ( oldDataCenterId.equals ( dataCenterId ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notChangingDataCenterId ( org.ovirt.engine.core.compat.Guid dataCenterId ) { final org.ovirt.engine.core.compat.Guid oldDataCenterId = network.getDataCenterId ( ) ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_DATA_CENTER_ID_CANNOT_BE_CHANGED ) . when ( ( ! ( oldDataCenterId.equals ( dataCenterId ) ) ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.ConsoleDisconnectAction fromDbString ( java.lang.String name ) { if ( name == null ) { return org.ovirt.engine.core.common.businessentities.ConsoleDisconnectAction.LOCK_SCREEN ; } return org.ovirt.engine.core.common.businessentities.ConsoleDisconnectAction.valueOf ( name ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.ConsoleDisconnectAction fromString ( java.lang.String name ) { if ( name == null ) { return org.ovirt.engine.core.common.businessentities.ConsoleDisconnectAction.LOCK_SCREEN ; } return org.ovirt.engine.core.common.businessentities.ConsoleDisconnectAction.valueOf ( name ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.HostDeviceView object ) { return ( object.getMdevTypes ( ) ) == null ? "" : java.lang.String.join ( ", " , object.getMdevTypes ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.HostDeviceView object ) { return ( object.getMdevTypes ( ) ) == null ? "" : object.getMdevTypes ( ) . stream ( ) . sorted ( ) . collect ( java.util.stream.Collectors.joining ( ", " ) ) ; }
Source:
public void replaceProductKeyBothEmpty ( ) { java.lang.String res = org.ovirt.engine.core.vdsbroker.vdsbroker.SysprepHandler.replaceProductKey ( "" , "" , false ) ; org.junit.Assert.assertThat ( res , org.hamcrest.core.Is.is ( org.hamcrest.core.IsEqual.equalTo ( "" ) ) ) ; }

Target:
public void replaceProductKeyBothEmpty ( ) { java.lang.String res = org.ovirt.engine.core.vdsbroker.vdsbroker.SysprepHandler.replaceProductKey ( "" , "" , false ) ; org.hamcrest.MatcherAssert.assertThat ( res , org.hamcrest.core.Is.is ( org.hamcrest.core.IsEqual.equalTo ( "" ) ) ) ; }
Source:
public boolean checkPermissions ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.businessentities.network.NetworkCluster attachment , org.ovirt.engine.core.common.action.VdcActionType actionType ) { final java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > permissionCheckSubjects = findPermissionCheckSubjects ( attachment , actionType ) ; return checkPermissions ( command , permissionCheckSubjects ) ; }

Target:
public boolean checkPermissions ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.businessentities.network.NetworkCluster attachment , org.ovirt.engine.core.common.action.ActionType actionType ) { final java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > permissionCheckSubjects = findPermissionCheckSubjects ( attachment , actionType ) ; return checkPermissions ( command , permissionCheckSubjects ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.getSupportedServerCpuList ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.getLatestDictionaryVersion ( ) , org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getParameters ( ) . getMaxCpuName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getCpuFlagsManagerHandler ( ) . getSupportedServerCpuList ( org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getCpuFlagsManagerHandler ( ) . getLatestDictionaryVersion ( ) , org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getParameters ( ) . getMaxCpuName ( ) ) ) ; }
Source:
public java.lang.String getEntityOldName ( ) { return _oldStoragePool.getname ( ) ; }

Target:
public void setEntityId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable ) { logable.setStoragePoolId ( _oldStoragePool.getId ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { org.ovirt.engine.api.restapi.resource.StorageDomain sd = new org.ovirt.engine.api.restapi.resource.StorageDomain ( ) ; sd.setId ( id ) ; sd.setstorage_domain_type ( type ) ; return sd ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { org.ovirt.engine.api.restapi.resource.StorageDomain sd = new org.ovirt.engine.api.restapi.resource.StorageDomain ( ) ; sd.setId ( id ) ; sd.setStorageDomainType ( type ) ; return sd ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? constants.returnVmLabel ( ) : constants.shutDownVm ( ) ; }

Target:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.takeVmLabel ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.runVmLabel ( ) ; }
Source:
private void valuesPresentTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher ) { org.junit.Assert.assertThat ( validator.requiredValuesPresent ( ) , matcher ) ; }

Target:
private void valuesPresentTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher ) { org.hamcrest.MatcherAssert.assertThat ( validator.requiredValuesPresent ( ) , matcher ) ; }
Source:
public void invalidVersion ( ) { createCommandWithInvalidVersion ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_GIVEN_VERSION_NOT_SUPPORTED ) ; }

Target:
public void invalidVersion ( ) { createCommandWithInvalidVersion ( ) ; setupCpu ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_GIVEN_VERSION_NOT_SUPPORTED ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getVms ( ) , EngineMessage.VAR__ENTITIES__VMS , EngineMessage.VAR__ENTITIES__VM ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > allForNetwork = getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) ; return new org.ovirt.engine.core.bll.validator.NetworkValidator.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__HOST , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__HOSTS ) . getNetworkInUse ( getEntitiesNames ( allForNetwork ) ) ; }
Source:
public void testIsNetworkInSyncWhenIpConfigurationIsNull ( ) throws java.lang.Exception { this . testedNetworkAttachment.setIpConfiguration ( null ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
private int getDefaultHostMtu ( ) { return org.ovirt.engine.core.utils.NetworkUtils.getHostMtuActualValue ( new org.ovirt.engine.core.common.businessentities.network.Network ( ) ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( getIsAvailable ( ) ) { getSearchCommand ( ) . Execute ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( getIsAvailable ( ) ) { getSearchCommand ( ) . Execute ( ) ; } }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ActivateVdsCommand.getParameters ( ) . getVdsId ( ) . toString ( ) , LockingGroup.VDS.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ActivateVdsCommand.getParameters ( ) . getVdsId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VDS , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
private void setUpDAOMocks ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade dbFacadeMock = getDbFacadeMockInstance ( ) ; actionGroupDaoMock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.ActionGroupDAO.class ) ; org.mockito.Mockito.when ( dbFacadeMock.getActionGroupDao ( ) ) . thenReturn ( actionGroupDaoMock ) ; }

Target:
private void setUpDaoMocks ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade dbFacadeMock = getDbFacadeMockInstance ( ) ; actionGroupDaoMock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.ActionGroupDao.class ) ; org.mockito.Mockito.when ( dbFacadeMock.getActionGroupDao ( ) ) . thenReturn ( actionGroupDaoMock ) ; }
Source:
public org.ovirt.engine.api.model.ExternalHosts list ( ) { org.ovirt.engine.core.common.queries.GetHostListFromExternalProviderParameters parameters = new org.ovirt.engine.core.common.queries.GetHostListFromExternalProviderParameters ( ) ; parameters.setFilterOutExistingHosts ( true ) ; parameters.setProviderId ( asGuid ( providerId ) ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetHostListFromExternalProvider , parameters ) ) ; }

Target:
public org.ovirt.engine.api.model.ExternalHosts list ( ) { org.ovirt.engine.core.common.queries.GetHostListFromExternalProviderParameters parameters = new org.ovirt.engine.core.common.queries.GetHostListFromExternalProviderParameters ( ) ; parameters.setFilterOutExistingHosts ( true ) ; parameters.setProviderId ( asGuid ( providerId ) ) ; return mapCollection ( getBackendCollection ( QueryType.GetHostListFromExternalProvider , parameters ) ) ; }
Source:
protected boolean isStatelessSnapshotExistsForVm ( ) { if ( ( cachedStatelessSnapshotExistsForVm ) == null ) { cachedStatelessSnapshotExistsForVm = getSnapshotDao ( ) . exists ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.STATELESS ) ; } return cachedStatelessSnapshotExistsForVm ; }

Target:
protected boolean isStatelessSnapshotExistsForVm ( ) { if ( ( cachedStatelessSnapshotExistsForVm ) == null ) { cachedStatelessSnapshotExistsForVm = org.ovirt.engine.core.bll.RunVmCommand.getSnapshotDAO ( ) . exists ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.STATELESS ) ; } return cachedStatelessSnapshotExistsForVm ; }
Source:
public void networkSet ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( ValidationResult.VALID , validator.networkIsSet ( ) ) ; }

Target:
public void networkSet ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( validator.networkIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { controller.refresh ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( manualRefreshCallback ) != null ) { manualRefreshCallback.onManualRefresh ( ) ; } controller.refresh ( ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
private void NumOfSockets_EntityChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { behavior.UpdateTotalCpus ( ) ; }

Target:
private void NumOfSockets_EntityChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { behavior.numOfSocketChanged ( ) ; }
Source:
public void testVmDiskWithPassDiscardAndWadExistsSucceeds ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( true , false ) ; createVmDiskOnSd ( false , true ) ; createVmDiskOnSd ( true , true ) ; junit.framework.Assert.assertTrue ( discardHelper.vmDiskWithPassDiscardAndWadExists ( storageDomainDisks , storageDomainVmDisks ) ) ; }

Target:
public void testVmDiskWithPassDiscardAndWadExistsSucceeds ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( true , false ) ; createVmDiskOnSd ( false , true ) ; createVmDiskOnSd ( true , true ) ; org.junit.Assert.assertTrue ( discardHelper.vmDiskWithPassDiscardAndWadExists ( storageDomainDisks , storageDomainVmDisks ) ) ; }
Source:
public T set ( int index , T element ) { T t = super . set ( index , element ) ; OnCollectionChanged ( ) ; return t ; }

Target:
public T set ( int index , T element ) { T t = super . set ( index , element ) ; onCollectionChanged ( ) ; return t ; }
Source:
public java.util.Set < org.ovirt.engine.core.utils.MockConfigDescriptor < java.lang.Object > > getExtraConfigDescriptors ( ) { return java.util.Collections.singleton ( org.ovirt.engine.core.utils.MockConfigDescriptor.of ( ConfigValues.SANWipeAfterDelete , true ) ) ; }

Target:
public static java.util.stream.Stream < org.ovirt.engine.core.utils.MockConfigDescriptor < ? > > mockConfiguration ( ) { return java.util.stream.Stream.concat ( org.ovirt.engine.core.bll.AbstractQueryTest.mockConfiguration ( ) , java.util.stream.Stream.of ( org.ovirt.engine.core.utils.MockConfigDescriptor.of ( ConfigValues.SANWipeAfterDelete , true ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , name , true , null , null , networkName , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true ) ; }
Source:
protected boolean canPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getDiskImageDAO ( ) . get ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getParameters ( ) . getDestinationImageId ( ) ) ) != null ; }

Target:
protected boolean canPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getDiskImageDao ( ) . get ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getParameters ( ) . getDestinationImageId ( ) ) ) != null ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.action.ProcessOvfUpdateForStoragePoolParameters parameters = new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStoragePoolParameters ( storagePoolId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessOvfUpdateForStoragePool , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.action.ProcessOvfUpdateForStoragePoolParameters parameters = new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStoragePoolParameters ( storagePoolId ) ; return backend.runInternalAction ( VdcActionType.ProcessOvfUpdateForStoragePool , parameters ) ; }
Source:
private void TimeZone_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }

Target:
private void cluster_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.cluster_SelectedItemChanged ( ) ; updateMaximalVmMemSize ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ev.matchesDefinition ( ChangeCDModel.ExecutedEventDefinition ) ) { changeCD ( sender , args ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ev.matchesDefinition ( ChangeCDModel.executedEventDefinition ) ) { changeCD ( sender , args ) ; } }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Disk incoming , org.ovirt.engine.api.model.Disk entity ) { return new org.ovirt.engine.core.common.action.UpdateVmDiskParameters ( parentId , entity.getId ( ) , map ( incoming , entity ) ) ; }

Target:
public org.ovirt.engine.api.model.Disk resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Disk.class , VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( diskId ) , diskId.toString ( ) , true ) ; }
Source:
private void handleFinalizingFailure ( final org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand < T > . StateContext context ) { log.error ( "Finalizing failed upload to {}" , getUploadDescription ( ) ) ; stopImageTransferSession ( context.entity ) ; setImageStatus ( ImageStatus.ILLEGAL ) ; updateEntityPhase ( ImageTransferPhase.FINISHED_FAILURE ) ; }

Target:
private void handleFinalizingFailure ( final org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand < T > . StateContext context ) { log.error ( "Finalizing failed transfer. {}" , getTransferDescription ( ) ) ; stopImageTransferSession ( context.entity ) ; setImageStatus ( ImageStatus.ILLEGAL ) ; updateEntityPhase ( ImageTransferPhase.FINISHED_FAILURE ) ; }
Source:
public void fatalFormat ( java.lang.String formatString , java.lang.Object ... args ) { java.lang.Throwable throwable = extractException ( args ) ; if ( throwable != null ) error ( transform ( formatString , args ) , throwable ) ; else error ( transform ( formatString , args ) ) ; }

Target:
public void fatal ( java.lang.Object msg ) { error ( msg ) ; }
Source:
public void zeroMtuWhenNotSupported ( ) throws java.lang.Exception { mtuValidTest ( ValidationResult.VALID , 0 , false ) ; }

Target:
public void zeroMtuWhenSupported ( ) throws java.lang.Exception { mtuValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , 0 , true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.UserSession eval ( org.ovirt.engine.core.common.businessentities.EngineSession engineSession ) { return new org.ovirt.engine.core.common.businessentities.UserSession ( engineSession ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.UserSession > searchSessions ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getEngineSessionDao ( ) , false ) . stream ( ) . map ( UserSession :: new ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public void testParseNoOptions ( ) { java.util.List < org.ovirt.engine.api.model.PowerManagement > ret = org.ovirt.engine.api.restapi.util.FencingOptionsParser.parse ( "foo:" , "" ) ; assertNotNull ( ret ) ; assertEquals ( 1 , ret.size ( ) ) ; verifyResult ( ret.get ( 0 ) , "foo" ) ; }

Target:
public void testParseNoOptions ( ) { java.util.List < org.ovirt.engine.api.model.PowerManagement > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:" , "" ) ; assertNotNull ( ret ) ; assertEquals ( 1 , ret.size ( ) ) ; verifyResult ( ret.get ( 0 ) , "foo" ) ; }
Source:
public void testGetAllForTemplatesByNetwork ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > result = dao.getAllForTemplatesByNetwork ( FixturesTool.NETWORK_ENGINE ) ; assertEquals ( existingTemplateInterface , result.get ( 0 ) ) ; }

Target:
public void testGetAllForTemplatesByNetwork ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > result = dao.getAllForTemplatesByNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertEquals ( existingTemplateInterface , result.get ( 0 ) ) ; }
Source:
public void testIsUpValid ( ) { org.junit.Assert.assertThat ( "Storage pool should be up" , validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testExistsAndUpValid ( ) { org.junit.Assert.assertThat ( "Storage pool should be up" , validator.existsAndUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.templates.TemplateGeneralModel getModel ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateGeneralModel ) ( object.getDetailModels ( ) . get ( 0 ) ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.templates.TemplateGeneralModel getModel ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateGeneralModel ) ( importModel.getDetailModels ( ) . get ( 0 ) ) ) ; }
Source:
private void initDestStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain destDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; destDomain.setstatus ( StorageDomainStatus.Active ) ; destDomain.setstorage_type ( StorageType.NFS ) ; org.mockito.Mockito.doReturn ( destDomain ) . when ( command ) . getStorageDomain ( ) ; }

Target:
private void initDestStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain destDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; destDomain.setStatus ( StorageDomainStatus.Active ) ; destDomain.setStorageType ( StorageType.NFS ) ; org.mockito.Mockito.doReturn ( destDomain ) . when ( command ) . getStorageDomain ( ) ; }
Source:
public void canDoActionFailsWithDuplicateBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 , true ) , 2 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsWithDuplicateBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 , true ) , 2 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public java.util.List < ? extends java.security.cert.Certificate > getCertificateChain ( ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }

Target:
public java.util.List < ? extends java.security.cert.Certificate > getCertificateChain ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public short getStorage_type ( ) { return this . storage_type ; }

Target:
public java.lang.Boolean getIs_local_storage ( ) { return this . is_local_storage ; }
Source:
public void failed ( java.lang.String error ) { org.ovirt.engine.core.bll.VdsInstaller.log.errorFormat ( "Installation of {0} has failed. Failure details: {1}. (Stage: {2})" , _serverName , error , getCurrentInstallStage ( ) ) ; _messages.AddMessage ( error ) ; _currentInstallStage = VdsInstallStages.Error ; _failedMessage = error ; }

Target:
public void failed ( java.lang.String error ) { org.ovirt.engine.core.bll.VdsInstaller.log.errorFormat ( "Installation of {0} has failed. Failure details: {1}. (Stage: {2})" , _serverName , error , getCurrentInstallStage ( ) ) ; _messages.postOldXmlFormat ( error ) ; _currentInstallStage = VdsInstallStages.Error ; _failedMessage = error ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStepDao ( ) ; existingStep = dao.get ( org.ovirt.engine.core.dao.StepDaoTest.EXISTING_STEP_ID ) ; newStep = generateNewEntity ( ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( super . getEntity ( ) ) != null ) { UpdateProperties ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( super . getEntity ( ) ) != null ) { updateProperties ( ) ; } }
Source:
protected void findUsers ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllDbUsers , getParameters ( ) , query ) ; }

Target:
protected void findUsers ( java.lang.String searchString , org.ovirt.engine.ui.uicommonweb.models.users.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllDbUsers , getParameters ( ) , query ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.StorageServerConnections copyOf ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ssc ) { return new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ssc.connection , ssc.id , ssc.iqn , ssc.password , ssc.storageType , ssc.username , ssc.port , ssc.portal , ssc.vfsType , ssc.mountOptions , ssc.nfsVersion , ssc.nfsRetrans , ssc.nfsTimeo ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageServerConnections copyOf ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ssc ) { return new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ssc.connection , ssc.id , ssc.iqn , ssc.password , ssc.storageType , ssc.username , ssc.port , ssc.portal , ssc.vfsType , ssc.mountOptions , ssc.nfsVersion , ssc.nfsRetrans , ssc.nfsTimeo , ssc.glusterVolumeId ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.aaa.DbUser findPrincipal ( java.lang.String sessionId ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue result = backend.runPublicQuery ( VdcQueryType.GetDbUserBySession , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( sessionId ) ) ; return result.getReturnValue ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.aaa.DbUser findPrincipal ( java.lang.String sessionId ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue result = backend.runPublicQuery ( QueryType.GetDbUserBySession , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( sessionId ) ) ; return result.getReturnValue ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { AddVmStatic ( ) ; AddVmDynamic ( ) ; AddVmNetwork ( ) ; AddVmStatistics ( ) ; addActiveSnapshot ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmNetwork ( ) ; addVmStatistics ( ) ; addActiveSnapshot ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
protected final void postConstruct ( ) { if ( ( getParameters ( ) ) != null ) { init ( ) ; } }

Target:
private boolean isCompensationContext ( ) { return ( getParameters ( ) ) == null ; }
Source:
public void updateUpdateAvailable ( org.ovirt.engine.core.compat.Guid id , boolean updateAvailable ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setUpdateAvailable ( updateAvailable ) ; update ( entity ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.VdsDynamic vds ) { getCallsHandler ( ) . executeModification ( "InsertVdsDynamic" , createFullParametersMapperForSave ( vds ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants , org.ovirt.engine.ui.userportal.uicommon.model.vm.VmInterfaceListModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.extendedVirtualMachineNetworkInterfaceSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.uicommon.model.vm.VmInterfaceListModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.extended.vm.SubTabExtendedVmNetworkInterfacePresenter.constants.extendedVirtualMachineNetworkInterfaceSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public void initialize ( ) { super . initialize ( ) ; setHash ( ( ( getHashName ( ) ) + ( new java.util.Date ( ) ) ) ) ; behavior.setHash ( getHash ( ) ) ; behavior.initialize ( ) ; initDataCenter ( ) ; }

Target:
private void dataCenter_SelectedItemChanged ( ) { updateItemsAvailability ( ) ; behavior.updateDataCenterAlert ( ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockVmNetworks ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
private void mockStorageDomainSpaceChecker ( org.ovirt.engine.core.common.businessentities.storage_domains domain , boolean succeeded ) { org.mockito.Mockito.doReturn ( succeeded ) . when ( command ) . isStorageDomainBelowThresholds ( domain ) ; }
Source:
public void defaultProperties ( ) { java.lang.String basedir = java.lang.System.getProperty ( "basedir" ) ; org.junit.Assume.assumeNotNull ( basedir , "Test isn't run via Maven. Please set the basedir system property" ) ; org.ovirt.engine.core.utils.osinfo.OsinfoPropertiesParser.parse ( java.nio.file.Paths.get ( basedir , "../../../../packaging/conf/osinfo-defaults.properties" ) . toString ( ) ) ; }

Target:
public void defaultProperties ( ) { java.lang.String basedir = java.lang.System.getProperty ( "basedir" ) ; org.junit.jupiter.api.Assumptions.assumeTrue ( ( basedir != null ) , "Test isn't run via Maven. Please set the basedir system property" ) ; org.ovirt.engine.core.utils.osinfo.OsinfoPropertiesParser.parse ( java.nio.file.Paths.get ( basedir , "../../../../packaging/conf/osinfo-defaults.properties" ) . toString ( ) ) ; }
Source:
public static boolean isVdsWithSameNameExistStatic ( java.lang.String vdsName ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . get ( vdsName ) ; return vds != null ; }

Target:
public static boolean isVdsWithSameHostExistStatic ( java.lang.String hostName ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . getByHostName ( hostName ) ) != null ; }
Source:
public void testGetAllActiveForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllActiveForStorageDomain ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllActiveForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllActiveForStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { vmInitLoaded ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( result ) ) ) ; }
Source:
private void addVms ( java.util.List < org.ovirt.engine.core.compat.Guid > vmGuids , int diskCount , org.ovirt.engine.core.common.businessentities.VMStatus vmStatus , org.ovirt.engine.core.common.businessentities.ImageStatus vmImageStatus , org.ovirt.engine.core.compat.Guid poolId ) { vms.putAll ( generateVmsMapByGuids ( vmGuids , diskCount , vmStatus , vmImageStatus , poolId ) ) ; }

Target:
private void addVms ( java.util.List < org.ovirt.engine.core.compat.Guid > vmGuids , int diskCount , org.ovirt.engine.core.common.businessentities.VMStatus vmStatus , org.ovirt.engine.core.common.businessentities.storage.ImageStatus vmImageStatus , org.ovirt.engine.core.compat.Guid poolId ) { vms.putAll ( generateVmsMapByGuids ( vmGuids , diskCount , vmStatus , vmImageStatus , poolId ) ) ; }
Source:
private void hideLabels ( ) { keyField.hideLabel ( ) ; valueField.hideLabel ( ) ; }

Target:
private void hideLabels ( ) { keyField.hideLabel ( ) ; valueField.hideLabel ( ) ; valuesField.hideLabel ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskImage CloneDiskImage ( org.ovirt.engine.core.compat.Guid newImageGuid ) { org.ovirt.engine.core.common.businessentities.DiskImage returnValue = super . CloneDiskImage ( newImageGuid ) ; returnValue.setit_guid ( org.ovirt.engine.core.bll.CreateSnapshotFromTemplateCommand.getImage ( ) . getImageId ( ) ) ; return returnValue ; }

Target:
protected org.ovirt.engine.core.common.businessentities.DiskImage cloneDiskImage ( org.ovirt.engine.core.compat.Guid newImageGuid ) { org.ovirt.engine.core.common.businessentities.DiskImage returnValue = super . cloneDiskImage ( newImageGuid ) ; returnValue.setit_guid ( org.ovirt.engine.core.bll.CreateSnapshotFromTemplateCommand.getImage ( ) . getImageId ( ) ) ; return returnValue ; }
Source:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { return adaptUpdate ( getDelegate ( ) :: update , vm ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { return org.ovirt.engine.api.v3.helpers.V3VmHelper.addDisksLink ( adaptUpdate ( getDelegate ( ) :: update , vm ) ) ; }
Source:
public void setError ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( error , value ) ) ) { error = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Error" ) ) ; } }

Target:
public void setError ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( error , value ) ) ) { error = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Error" ) ) ; } }
Source:
protected boolean namedCluster ( org.ovirt.engine.api.model.VM vm ) { return ( ( vm.isSetCluster ( ) ) && ( vm.getCluster ( ) . isSetName ( ) ) ) && ( ! ( vm.getCluster ( ) . isSetId ( ) ) ) ; }

Target:
protected boolean namedCluster ( org.ovirt.engine.api.model.Vm vm ) { return ( ( vm.isSetCluster ( ) ) && ( vm.getCluster ( ) . isSetName ( ) ) ) && ( ! ( vm.getCluster ( ) . isSetId ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup lookupClusterByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Cluster: name=" + name ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster lookupClusterByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Cluster: name=" + name ) ) ; }
Source:
public void getManagementNetworkCandidates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListAsyncConverter ( ) ; org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( storagePoolId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetManagementNetworkCandidates , params , aQuery ) ; }

Target:
public void getDataCenterById ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.StoragePool > aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetStoragePoolById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) . withoutRefresh ( ) , aQuery ) ; }
Source:
public void setvmt_mem_size_mb ( int value ) { this . vmt_mem_size_mbField = value ; }

Target:
public void setVmtCreationDate ( java.util.Date value ) { this . vmtCreationDate = value ; }
Source:
private void writeJaxbClass ( org.ovirt.api.metamodel.tool.XmlWriter writer , java.lang.String value ) { writeJaxbCustomization ( writer , "class" , "name" , value ) ; }

Target:
private void writeJaxbProperty ( java.lang.String value ) { writeJaxbCustomization ( "property" , "name" , value ) ; }
Source:
public org.ovirt.engine.api.model.Template get ( ) { return performGet ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Template get ( ) { org.ovirt.engine.api.model.Template template = performGet ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( this , template ) ; return template ; }