auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel PrepareFcpStorageForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel model = new org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel ( ) ; model.setRole ( storage.getStorageDomainType ( ) ) ; PrepareSanStorageForEdit ( model ) ; return model ; }

Target:
private org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel prepareFcpStorageForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel model = new org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel ( ) ; model.setRole ( storage.getStorageDomainType ( ) ) ; prepareSanStorageForEdit ( model ) ; return model ; }
Source:
private static void translateErrors ( java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( org.ovirt.engine.ui.frontend.Frontend.getAppErrorsTranslator ( ) . translateErrorText ( retVal.getCanDoActionMessages ( ) ) ) ; } }

Target:
private static java.util.List < java.lang.String > translateError ( org.ovirt.engine.core.common.action.VdcReturnValueBase error ) { return org.ovirt.engine.ui.frontend.Frontend.getAppErrorsTranslator ( ) . translateErrorText ( error.getCanDoActionMessages ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getDbFacade ( ) . getVmDao ( ) . getAllForNetwork ( network.getId ( ) ) , VdcBllMessages.VAR__ENTITIES__VMS ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getVms ( ) , VdcBllMessages.VAR__ENTITIES__VMS ) ; }
Source:
protected void onAfterRequestDeserialized ( com.google.gwt.user.server.rpc.RPCRequest rpcRequest ) { if ( shouldValidateXsrfToken ( rpcRequest.getMethod ( ) ) ) { validateXsrfToken ( this . token , rpcRequest.getMethod ( ) ) ; } this . token = null ; }

Target:
protected void onAfterRequestDeserialized ( com.google.gwt.user.server.rpc.RPCRequest rpcRequest ) { if ( shouldValidateXsrfToken ( rpcRequest.getMethod ( ) ) ) { validateXsrfToken ( extractTokenFromRequest ( ) , rpcRequest.getMethod ( ) ) ; } }
Source:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( java.lang.String taskKey ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) , taskKey ) ; }
Source:
private java.lang.String getEnumValueLine ( org.ovirt.api.metamodel.concepts.EnumValue enumValue , boolean lastValue ) { java.lang.String value = enumValue.getName ( ) . toString ( ) . toUpperCase ( ) ; return value + ( lastValue ? ";" : "," ) ; }

Target:
private java.lang.String getEnumValueLine ( org.ovirt.api.metamodel.concepts.EnumValue enumValue , boolean lastValue ) { java.lang.String value = java.lang.String.join ( "_" , enumValue.getName ( ) . getWords ( ) ) . toUpperCase ( ) ; return value + ( lastValue ? ";" : "," ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertArrayEquals ( EXTERNAL_IDS [ index ] . getBytes ( ) , model.getExternalId ( ) ) ; assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( EXTERNAL_IDS [ index ] . toHex ( ) , model.getExternalId ( ) ) ; assertEquals ( NAMES [ index ] , model.getUserName ( ) ) ; }
Source:
public void setSubnet ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet subnet ) { this . subnet = subnet ; }

Target:
private void setGateway ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > gateway ) { this . gateway = gateway ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( true ) ; revealDiskPanel ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.LUN ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }
Source:
public static org.ovirt.engine.api.model.NetworkStatus map ( org.ovirt.engine.api.model.NetworkStatus modelStatus , org.ovirt.engine.api.model.NetworkStatus template ) { if ( modelStatus == null ) { return null ; } else { switch ( modelStatus ) { case NON_OPERATIONAL : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.NetworkStatus ; case OPERATIONAL : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.NetworkStatus ; default : return null ; } } }

Target:
public static org.ovirt.engine.api.model.NetworkStatus map ( org.ovirt.engine.api.model.NetworkStatus modelStatus , org.ovirt.engine.api.model.NetworkStatus template ) { if ( modelStatus == null ) { return null ; } else { switch ( modelStatus ) { case NON_OPERATIONAL : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.network.NetworkStatus ; case OPERATIONAL : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.network.NetworkStatus ; default : return null ; } } }
Source:
public static boolean vmDeviceChanged ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType deviceType , boolean deviceEnabled ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceChanged ( vmId , deviceType , null , deviceEnabled ) ; }

Target:
private static java.util.Map < java.lang.String , java.lang.Object > getVideoDeviceSpecParams ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return org.ovirt.engine.core.bll.utils.VideoDeviceSettings.getVideoDeviceSpecParams ( vmBase ) ; }
Source:
public void nullHostsAreNotMismatched ( ) { org.junit.Assert.assertThat ( getQuery ( ) . isDisplayAddressPartiallyOverridden ( null ) , org.hamcrest.core.Is.is ( false ) ) ; }

Target:
public void nullHostsAreNotMismatched ( ) { org.hamcrest.MatcherAssert.assertThat ( getQuery ( ) . isDisplayAddressPartiallyOverridden ( null ) , org.hamcrest.core.Is.is ( false ) ) ; }
Source:
public void testGetPeersWithWrongPassword ( ) throws javax.naming.AuthenticationException { glusterUtil.getPeers ( org.ovirt.engine.core.utils.gluster.GlusterUtilTest.SERVER_NAME1 , org.ovirt.engine.core.utils.gluster.GlusterUtilTest.WRONG_PASSWORD ) ; }

Target:
public void testGetPeersWithWrongPassword ( ) throws javax.naming.AuthenticationException { glusterUtil.getPeers ( org.ovirt.engine.core.bll.utils.GlusterUtilTest.SERVER_NAME1 , org.ovirt.engine.core.bll.utils.GlusterUtilTest.WRONG_PASSWORD ) ; }
Source:
private void populateVmData ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.setVmDevices ( vm.getStaticData ( ) ) ; }

Target:
private void populateVmData ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateVmInitFromDB ( vm.getStaticData ( ) , true ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.setVmDevices ( vm.getStaticData ( ) ) ; }
Source:
public void setEntity ( java.lang.Object value ) { if ( ( value == null ) || ( ! ( value.equals ( getEntity ( ) ) ) ) ) { super . setEntity ( value ) ; } }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.network.NetworkView value ) { if ( ( value == null ) || ( ! ( value.equals ( getEntity ( ) ) ) ) ) { super . setEntity ( value ) ; } }
Source:
public void testListAllDetails ( ) throws java.lang.Exception { setUpBricksQueryExpectations ( null ) ; setUpGetEntityExpectationsAllContent ( false ) ; javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; collection.setUriInfo ( uriInfo ) ; control.replay ( ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testListAllDetails ( ) throws java.lang.Exception { setUpBricksQueryExpectations ( null ) ; setUpGetEntityExpectationsAllContent ( false ) ; javax.ws.rs.core.UriInfo uriInfo = setUpActionsUriExpectations ( ) ; collection.setUriInfo ( uriInfo ) ; control.replay ( ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getProvider ( ) { if ( ( provider ) == null ) { provider = org.ovirt.engine.core.bll.provider.network.RemoveSubnetFromProviderCommand.getDbFacade ( ) . getProviderDao ( ) . get ( getSubnet ( ) . getExternalNetwork ( ) . getProviderId ( ) ) ; } return provider ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getProvider ( ) { if ( ( provider ) == null ) { provider = providerDao.get ( getSubnet ( ) . getExternalNetwork ( ) . getProviderId ( ) ) ; } return provider ; }
Source:
private boolean checkIsDomainLocked ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap domainMap ) { if ( domainMap.getStatus ( ) . isLocked ( ) ) { addInvalidSDStatusMessage ( domainMap.getStatus ( ) ) ; return true ; } return false ; }

Target:
private boolean checkIsDomainLocked ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap domainMap ) { if ( ( ( domainMap.getStatus ( ) ) != null ) && ( domainMap.getStatus ( ) . isStorageDomainInProcess ( ) ) ) { addInvalidSDStatusMessage ( StorageDomainStatus.Locked ) ; return true ; } return false ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetErrataForEngine , org.ovirt.engine.core.common.queries.GetErrataCountsParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getErrataData ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetErrataForEngine , org.ovirt.engine.core.common.queries.GetErrataCountsParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getErrataData ( ) , failure ) ; }
Source:
public void failCreateMoreNumaNodesThanVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 1 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }

Target:
public void failCreateMoreNumaNodesThanVirtualCoresWithVmFromDb ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "diskPath" , getDiskPath ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "iface" , getIface ( ) ) . append ( "index" , getIndex ( ) ) . append ( "diskPath" , getDiskPath ( ) ) ; }
Source:
public void validateGenerateVmNameWithoutMask1 ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "mypool" ) ; org.junit.Assert.assertEquals ( "mypool-1" , generator.generateVmName ( ) ) ; }

Target:
public void validateGenerateVmNameWithoutMask1 ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "mypool" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "mypool-1" , generator.generateVmName ( ) ) ; }
Source:
protected void syncSearch ( ) { super . syncSearch ( ) ; doDataCenterSearch ( ) ; doClusterSearch ( ) ; doHostSearch ( ) ; doVolumeSearch ( ) ; doProviderSearch ( ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( ) ; doDataCenterSearch ( ) ; doClusterSearch ( ) ; doHostSearch ( ) ; doVolumeSearch ( ) ; doProviderSearch ( ) ; getTimer ( ) . stop ( ) ; }
Source:
public void versionSupported ( ) { org.mockito.Mockito.when ( cluster.getcompatibility_version ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.ClusterValidatorTest.SUPPORTED_VERSION ) ; org.junit.Assert.assertThat ( validator.versionSupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void versionSupported ( ) { org.mockito.Mockito.when ( cluster.getCompatibilityVersion ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.ClusterValidatorTest.SUPPORTED_VERSION ) ; org.junit.Assert.assertThat ( validator.versionSupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void statusNotSupportedForHostUpgradeInternal ( ) { org.mockito.Mockito.when ( host.getStatus ( ) ) . thenReturn ( VDSStatus.Unassigned ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostUpgradeInternal ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) ) ; }

Target:
public void statusNotSupportedForHostUpgradeInternal ( ) { org.mockito.Mockito.when ( host.getStatus ( ) ) . thenReturn ( VDSStatus.Unassigned ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostUpgradeInternal ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.CANNOT_UPGRADE_HOST_STATUS_ILLEGAL ) ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StoragePool value ) { super . setEntity ( value ) ; }

Target:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( ( ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getAction ( ) ) == ( org.ovirt.engine.core.common.action.PlugAction.PLUG ) ? org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__ACTIVATE : org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__DEACTIVATE ) ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__INTERFACE ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( ( ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getAction ( ) ) == ( org.ovirt.engine.core.common.action.PlugAction.PLUG ) ? org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__ACTIVATE : org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__DEACTIVATE ) ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__INTERFACE ) ; }
Source:
protected org.ovirt.engine.core.bll.FenceExecutor createExecutorForProxyCheck ( ) { return new org.ovirt.engine.core.bll.FenceExecutor ( org.ovirt.engine.core.bll.VdsNotRespondingTreatmentCommand.getVds ( ) , org.ovirt.engine.core.bll.VdsNotRespondingTreatmentCommand.getParameters ( ) . getAction ( ) ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.ResourceManager getResourceManager ( ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map entity = new org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map ( ) ; entity.setLunId ( rs.getString ( "LUN_id" ) ) ; entity.setstorage_server_connection ( rs.getString ( "storage_server_connection" ) ) ; return entity ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map > getAllLUNStorageServerConnection ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromLUN_storage_server_connection_map" , org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAODbFacadeImpl.StorageServerConnectionLunMapRowMapper.instance , parameterSource ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel model ) { driver.edit ( model ) ; publicInfo.setVisible ( model.getPublicUse ( ) . getIsAvailable ( ) ) ; }

Target:
public void execute ( ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( nameEditor.asValueBox ( ) , nameEditor.asValueBox ( ) . getValue ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.BootSequence getboot_sequence ( ) { return this . boot_sequence ; }

Target:
public void setDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . displayType = value ; }
Source:
public com.google.gwt.user.client.ui.Label getFeedbackLabel ( ) { return feedbackImageLabel ; }

Target:
public com.google.gwt.event.dom.client.HasClickHandlers getFeedbackLink ( ) { return feedbackImageLabel ; }
Source:
public boolean isCtrlAltDeleteEnabled ( ) { if ( ! ( clientOsType ( ) . equalsIgnoreCase ( "Windows" ) ) ) { return true ; } float ntVersion = extractNtVersion ( getUserAgentString ( ) ) ; if ( ntVersion >= 6.1F ) { return false ; } return true ; }

Target:
public boolean isClientWindowsExplorer ( ) { return ( isClientWindows ( ) ) && ( clientBrowserType ( ) . equalsIgnoreCase ( "Explorer" ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > filterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.DataCenterNotStatusPredicate ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.NotOperational ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > filterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.DataCenterStatusPredicate ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.NotOperational ) . negate ( ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { if ( ( getVds ( ) . getVdsGroupCompatibilityVersion ( ) . compareTo ( Version.v3_3 ) ) >= 0 ) { status = getBroker ( ) . setMOMPolicyParameters ( initDeviceStructure ( ) ) ; proceedProxyReturnValue ( ) ; } }

Target:
protected void executeVdsBrokerCommand ( ) { if ( ( getVds ( ) . getVdsGroupCompatibilityVersion ( ) . compareTo ( Version.v3_3 ) ) >= 0 ) { status = getBroker ( ) . setMOMPolicyParameters ( initDeviceStructure ( ) ) ; proceedProxyReturnValue ( ) ; } }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAllForCluster ( org.ovirt.engine.core.compat.Guid cluster ) ;
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ; }

Target:
public void getNetworkList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > > aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllNetworks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) , aQuery ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage_domains getForStoragePool ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.NGuid storagepool ) { org.ovirt.engine.core.common.businessentities.storage_domain_static staticPart = staticDAO.getForStoragePool ( id , storagepool ) ; if ( staticPart != null ) { return createDomain ( staticPart ) ; } return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage_domains getForStoragePool ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.NGuid storagepool ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic staticPart = staticDAO.getForStoragePool ( id , storagepool ) ; if ( staticPart != null ) { return createDomain ( staticPart ) ; } return null ; }
Source:
private static native java.lang.String getHostPageLocation ( ) ;

Target:
public com.google.gwt.event.dom.client.HasClickHandlers getCloseIconButton ( ) { return null ; }
Source:
public void rerun ( ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmToServerCommand.getDestinationVds ( ) . getId ( ) ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.determineMigrationFailueForAuditLog ( ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.log ( ) ; }

Target:
public void rerun ( ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmToServerCommand.getDestinationVds ( ) . getId ( ) ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.determineMigrationFailureForAuditLog ( ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.log ( ) ; }
Source:
private void failureEventHandler ( final java.lang.String description , final java.lang.String errorMessage ) { handleNotLoggedInEvent ( errorMessage ) ; frontendFailureEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , new org.ovirt.engine.ui.frontend.FrontendFailureEventArgs ( new org.ovirt.engine.ui.frontend.Message ( description , errorMessage ) ) ) ; }

Target:
public void retrieveFromHttpSession ( final java.lang.String key , final org.ovirt.engine.ui.frontend.communication.StorageCallback callback ) { getOperationManager ( ) . retrieveFromHttpSession ( key , callback ) ; }
Source:
private org.ovirt.engine.core.common.queries.VdcQueryReturnValue getErrorQueryReturnValue ( org.ovirt.engine.core.dal.VdcBllMessages errorMessage ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; returnValue.setSucceeded ( false ) ; returnValue.setExceptionString ( errorMessage.toString ( ) ) ; return returnValue ; }

Target:
private org.ovirt.engine.core.common.queries.VdcQueryReturnValue getErrorQueryReturnValue ( org.ovirt.engine.core.common.errors.VdcBllMessages errorMessage ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; returnValue.setSucceeded ( false ) ; returnValue.setExceptionString ( errorMessage.toString ( ) ) ; return returnValue ; }
Source:
public void setLUN_id ( java.lang.String value ) { this . id = value ; }

Target:
public void setLUNId ( java.lang.String value ) { this . id = value ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallBack ( ) { if ( isLiveMerge ( ) ) { return new org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommandCallback ( ) ; } else { return null ; } }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallback ( ) { if ( isLiveMerge ( ) ) { return new org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommandCallback ( ) ; } else { return null ; } }
Source:
public void addOrUpdateTaskInDB ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { coCoAsyncTaskHelper.addOrUpdateTaskInDB ( asyncTask ) ; }

Target:
public void saveAsyncTaskToDb ( final org.ovirt.engine.core.common.businessentities.AsyncTask asyncTask ) { coCoAsyncTaskHelper.saveAsyncTaskToDb ( asyncTask ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getMemSizeMb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getName ( ) ; }
Source:
public void passthroughProfileValidProprerties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughProfileContainsFilterId ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkIsSet ( ) { return ( network ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkIsSet ( ) { return ( network ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void executeQueryCommand ( ) { setReturnValue ( ( ( permissionDao.getForRoleAndAdElementAndObject ( PredefinedRoles.SUPER_USER.getId ( ) , org.ovirt.engine.core.bll.isUserApplicationContainerManagerQuery.getUser ( ) . getId ( ) , MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ) != null ) ) ; }

Target:
protected void executeQueryCommand ( ) { setReturnValue ( ( ( permissionDao.getForRoleAndAdElementAndObject ( PredefinedRoles.SUPER_USER.getId ( ) , org.ovirt.engine.core.bll.IsUserApplicationContainerManagerQuery.getUser ( ) . getId ( ) , MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ) != null ) ) ; }
Source:
private static < T extends org.ovirt.engine.core.common.businessentities.VmBase > java.lang.String getAddress ( T entity , final org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.VmDevice device = entity.getManagedVmDeviceMap ( ) . get ( id ) ; if ( device != null ) return device.getAddress ( ) ; else return org.apache.commons.lang.StringUtils.EMPTY ; }

Target:
private static < T extends org.ovirt.engine.core.common.businessentities.VmBase > java.lang.String getAddress ( T entity , final org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.VmDevice device = entity.getManagedDeviceMap ( ) . get ( id ) ; if ( device != null ) return device.getAddress ( ) ; else return org.apache.commons.lang.StringUtils.EMPTY ; }
Source:
static void verifyModelSpecific ( org.ovirt.engine.api.model.Image model , int index ) { org.junit.Assert.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; }

Target:
static void verifyModelSpecific ( org.ovirt.engine.api.model.Image model , int index ) { org.junit.jupiter.api.Assertions.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; }
Source:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( "ARCHITECTURE" . equals ( fieldName ) ) { retval = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.common.businessentities.ArchitectureType.class ) ; } return retval ; }

Target:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( org.ovirt.engine.core.searchbackend.ClusterConditionFieldAutoCompleter.ARCHITECTURE.equals ( fieldName ) ) { retval = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.common.businessentities.ArchitectureType.class ) ; } return retval ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapUser populateUserData ( org.ovirt.engine.core.common.businessentities.LdapUser user , java.lang.String domain ) { return populateUserData ( user , domain , true ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.aaa.LdapUser populateUserData ( org.ovirt.engine.core.common.businessentities.aaa.LdapUser user , java.lang.String domain ) { return populateUserData ( user , domain , true ) ; }
Source:
public void testValidateBondOptionsForNewAttachementWithNonVmNetwork ( ) { validateValidBonds ( true , false , true , false ) ; }

Target:
public void testValidateBondOptionsForNewAttachementWithNonVmNetwork ( ) { validateValidBondsForAllBondModes ( true , false , true , false ) ; }
Source:
private boolean shouldProcessVdsDomainReport ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.getVdsGroupSupportsVirtService ( ) ) && ( StoragePoolDomainHelper.reportingVdsStatus.contains ( vds.getStatus ( ) ) ) ; }

Target:
private static boolean shouldProcessVdsDomainReport ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.getVdsGroupSupportsVirtService ( ) ) && ( ( StoragePoolDomainHelper.vdsDomainsActiveMonitoringStatus.contains ( vds.getStatus ( ) ) ) || ( StoragePoolDomainHelper.vdsDomainsMaintenanceMonitoringStatus.contains ( vds.getStatus ( ) ) ) ) ; }
Source:
public void setContentWidgetContainerTooltip ( java.lang.String tooltipText ) { contentWidgetContainerConfiguredTooltip = tooltipText ; contentWidgetContainerTooltip.setText ( tooltipText ) ; contentWidgetContainerTooltip.reconfigure ( ) ; }

Target:
public void cleanup ( ) { W contentWidget = getContentWidget ( ) ; if ( contentWidget instanceof org.ovirt.engine.ui.uicommonweb.HasCleanup ) { ( ( org.ovirt.engine.ui.uicommonweb.HasCleanup ) ( contentWidget ) ) . cleanup ( ) ; } contentWidgetContainerTooltip.cleanup ( ) ; }
Source:
protected boolean isAdditionalConsoleAvailable ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel currentItem ) { return currentItem.getHasAdditionalConsole ( ) ; }

Target:
protected boolean isAdditionalConsoleAvailable ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel currentItem ) { return ( currentItem.getAdditionalConsoleModel ( ) ) != null ; }
Source:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value ) { return format.decode ( value ) ; }

Target:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return format.decode ( value , props ) ; }
Source:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false , null , false ) ; }

Target:
public static void removeSmartcardDevices ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeVmDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getSmartcardDevices ( vmId ) ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( java.lang.String volumeName ) { try { java.util.Map < java.lang.String , java.lang.Object > response ; response = vdsServer.glusterVolumeGeoRepStatus ( volumeName ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName ) { try { java.util.Map < java.lang.String , java.lang.Object > response ; response = vdsServer.glusterVolumeGeoRepSessionList ( volumeName ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.StorageDomain , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterStorageListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterStoragePresenter.constants.dataCenterStorageSubTabLabel ( ) , 0 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterStoragePresenter.constants.dataCenterStorageSubTabLabel ( ) , 0 ) ; }
Source:
public void setDisplay ( java.lang.Integer value ) { this . vmDynamic.setDisplay ( value ) ; }

Target:
public void setLockInfo ( org.ovirt.engine.core.common.locks.LockInfo lockInfo ) { this . lockInfo = lockInfo ; }
Source:
public java.lang.String getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.getOsType ( ) . name ( ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( value.getOsType ( ) ) ; }
Source:
public java.lang.String evaluate ( java.lang.String realUrlParamName , java.lang.String headerParamName ) { set ( "realUrlParamName" , realUrlParamName ) ; set ( "headerParamName" , headerParamName ) ; return evaluate ( ) ; }

Target:
public java.lang.String evaluate ( org.ovirt.engine.sdk.generator.java.ParameterData parameter ) { set ( "headerName" , parameter.getName ( ) ) ; set ( "javaName" , parameter.getJavaName ( ) ) ; return evaluate ( ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmNumaNode > > getVmNumaNodeInfoByVdsGroupId ( org.ovirt.engine.core.compat.Guid vdsGroupId ) ;

Target:
java.util.Map < org.ovirt.engine.core.compat.Guid , java.util.List < org.ovirt.engine.core.common.businessentities.VmNumaNode > > getVmNumaNodeInfoByClusterIdAsMap ( org.ovirt.engine.core.compat.Guid vdsGroupId ) ;
Source:
private static org.ovirt.engine.core.compat.Guid getDeviceId ( java.util.Map device ) { java.lang.String deviceId = ( ( java.lang.String ) ( device.get ( VdsProperties.DeviceId ) ) ) ; return deviceId == null ? null : new org.ovirt.engine.core.compat.Guid ( deviceId ) ; }

Target:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getVdsNumaNodeDAO ( ) . massUpdateNumaNodeStatistics ( vdsNumaNodesToSave ) ; return null ; }
Source:
public void getNonexistentVariable ( ) { org.junit.Assert.assertNull ( dao.get ( DwhHistoryTimekeepingVariable.UNDEFINED ) ) ; }

Target:
public void getNonexistentVariable ( ) { org.junit.jupiter.api.Assertions.assertNull ( dao.get ( DwhHistoryTimekeepingVariable.UNDEFINED ) ) ; }
Source:
public boolean isSmartcardEnabledOverridden ( ) { return this . smartcardEnabledOverridden ; }

Target:
public void setTicketValiditySeconds ( int ticketValiditySeconds ) { this . consoleOptions.setTicketValiditySeconds ( ticketValiditySeconds ) ; }
Source:
private void moveToNextProfile ( javax.servlet.http.HttpSession session , java.util.Deque < java.lang.String > stack ) { stack.pop ( ) ; session.setAttribute ( org.ovirt.engine.core.aaa.NegotiationAuthnFilter.STACK_ATTR , stack ) ; }

Target:
private void moveToNextProfile ( javax.servlet.http.HttpSession session , java.util.Deque < java.lang.String > stack ) { stack.pop ( ) ; session.setAttribute ( org.ovirt.engine.core.aaa.AuthenticationFilter.STACK_ATTR , stack ) ; }
Source:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; log.error ( "Failed to run StartVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.StartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; log.error ( "Failed to run StartVdsCommand on host '{}'" , org.ovirt.engine.core.bll.StartVdsCommand.getVdsName ( ) ) ; }
Source:
public javax.ws.rs.core.Response clear ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.VdcActionParametersBase params = new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ; params.setJobId ( guid ) ; return doAction ( VdcActionType.ClearExternalJob , params , action ) ; }

Target:
public javax.ws.rs.core.Response clear ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.VdcActionParametersBase params = new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ; params.setJobId ( guid ) ; return doAction ( ActionType.ClearExternalJob , params , action ) ; }
Source:
private void changeStatus ( org.ovirt.engine.core.common.vdscommands.DestroyVmVDSCommandParameters parameters , org.ovirt.engine.core.common.businessentities.VM curVm ) { if ( org.ovirt.engine.core.vdsbroker.DestroyVmVDSCommand.getParameters ( ) . getVdsId ( ) . equals ( curVm.getRunOnVds ( ) ) ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . InternalSetVmStatus ( curVm , VMStatus.PoweringDown ) ; } }

Target:
private void changeStatus ( org.ovirt.engine.core.common.vdscommands.DestroyVmVDSCommandParameters parameters , org.ovirt.engine.core.common.businessentities.VM curVm ) { if ( org.ovirt.engine.core.vdsbroker.DestroyVmVDSCommand.getParameters ( ) . getVdsId ( ) . equals ( curVm.getRunOnVds ( ) ) ) { resourceManager.InternalSetVmStatus ( curVm , VMStatus.PoweringDown ) ; } }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; onFinish ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }
Source:
void formatValue ( java.lang.String fieldName , org.ovirt.engine.core.compat.RefObject < java.lang.String > relations , org.ovirt.engine.core.compat.RefObject < java.lang.String > value , boolean caseSensitive ) ;

Target:
void formatValue ( java.lang.String fieldName , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > pair , boolean caseSensitive ) ;
Source:
public long getTotalMemorySizeInBytes ( ) { return ( ( ( long ) ( ( ( getVmMemSizeMb ( ) ) + 200 ) + ( 64 * ( getNumOfMonitors ( ) ) ) ) ) * 1024 ) * 1024 ; }

Target:
public org.ovirt.engine.core.compat.Guid getMigrationPolicyId ( ) { return vmStatic.getMigrationPolicyId ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getHostProvider ( org.ovirt.engine.core.common.businessentities.VdsStatic host ) { return ( host.getHostProviderId ( ) ) == null ? null : org.ovirt.engine.core.bll.GetErrataCountsForHostQuery.getDbFacade ( ) . getProviderDao ( ) . get ( host.getHostProviderId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getHostProvider ( org.ovirt.engine.core.common.businessentities.VdsStatic host ) { return ( host.getHostProviderId ( ) ) == null ? null : providerDao.get ( host.getHostProviderId ( ) ) ; }
Source:
public void testGetByIdNotAllNetworksAllowed ( ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig result = dao.get ( FixturesTool.HOST_NIC_VFS_CONFIG_NOT_ALL_NETWORKS_ALLOWED_1 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.HOST_NIC_VFS_CONFIG_NOT_ALL_NETWORKS_ALLOWED_1 , result.getId ( ) ) ; checkNetworksAndLabels ( result , 2 , 2 ) ; }

Target:
public void testGetByIdNotAllNetworksAllowed ( ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig result = dao.get ( FixturesTool.HOST_NIC_VFS_CONFIG_NOT_ALL_NETWORKS_ALLOWED_1 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.HOST_NIC_VFS_CONFIG_NOT_ALL_NETWORKS_ALLOWED_1 , result.getId ( ) ) ; checkNetworksAndLabels ( result , 2 , 2 ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . hideEveryoneSelection ( java.lang.Boolean.parseBoolean ( model.getIsRoleListHiddenModel ( ) . getEntity ( ) . toString ( ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . hideRoleSelection ( java.lang.Boolean.parseBoolean ( model.getIsRoleListHiddenModel ( ) . getEntity ( ) . toString ( ) ) ) ; }
Source:
private void mockNetworkDao ( final org.ovirt.engine.core.dao.NetworkViewDao networkViewDao ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter search = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( false ) ; org.mockito.Mockito.when ( networkViewDao.getAllWithQuery ( org.mockito.Matchers.matches ( org.ovirt.engine.core.bll.SearchQueryTest.getNetworkRegexString ( search ) ) ) ) . thenReturn ( networkResultList ) ; }

Target:
private void mockNetworkDao ( final org.ovirt.engine.core.dao.network.NetworkViewDao networkViewDao ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter search = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( false ) ; org.mockito.Mockito.when ( networkViewDao.getAllWithQuery ( org.mockito.Matchers.matches ( org.ovirt.engine.core.bll.SearchQueryTest.getNetworkRegexString ( search ) ) ) ) . thenReturn ( networkResultList ) ; }
Source:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . vds_group_id = value ; }

Target:
public int getNumOfCpus ( ) { return ( this . getCpuPerSocket ( ) ) * ( this . getNumOfSockets ( ) ) ; }
Source:
public void recover ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts ) { startHostsWithPMInReboot ( hosts ) ; }

Target:
public void recover ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts ) { startHostsWithPMInReboot ( hosts ) ; recoverKdumpingHosts ( hosts ) ; }
Source:
protected void updateStatistics ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > allRunningOnOrMigratingToVds ) { if ( allRunningOnOrMigratingToVds != null ) { allRunningOnOrMigratingToVds.forEach ( VmHandler :: updateVmStatistics ) ; } }

Target:
protected void updateStatistics ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > allRunningOnOrMigratingToVds ) { if ( allRunningOnOrMigratingToVds != null ) { allRunningOnOrMigratingToVds.forEach ( vmHandler :: updateVmStatistics ) ; } }
Source:
public void testValidateVdsNotFound ( ) { org.mockito.Mockito.when ( vdsDao.getAllForVdsGroupWithStatus ( groupId , VDSStatus.Up ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VDS > emptyList ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NO_VDS_IN_POOL ) ; }

Target:
public void testValidateVdsNotFound ( ) { org.mockito.Mockito.when ( vdsDao.getAllForClusterWithStatus ( groupId , VDSStatus.Up ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VDS > emptyList ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NO_VDS_IN_POOL ) ; }
Source:
private void addInlineDisks ( org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.core.compat.Guid vmId = asGuid ( vm.getId ( ) ) ; org.ovirt.engine.api.restapi.resource.BackendVmDisksResource disksResource = inject ( new org.ovirt.engine.api.restapi.resource.BackendVmDisksResource ( vmId ) ) ; org.ovirt.engine.api.model.Disks disks = disksResource.list ( ) ; vm.setDisks ( disks ) ; }

Target:
private void addInlineDisks ( org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.core.compat.Guid vmId = asGuid ( vm.getId ( ) ) ; org.ovirt.engine.api.restapi.resource.BackendDiskAttachmentsResource disksAttachmentsResource = inject ( new org.ovirt.engine.api.restapi.resource.BackendDiskAttachmentsResource ( vmId ) ) ; org.ovirt.engine.api.model.DiskAttachments diskAttachments = disksAttachmentsResource.list ( ) ; vm.setDiskAttachments ( diskAttachments ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; if ( propName.equals ( "IsValid" ) ) { onIsValidPropertyChange ( object ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName ; if ( propName.equals ( "IsValid" ) ) { onIsValidPropertyChange ( object ) ; } }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.NetworkCluster x ) { return x.getnetwork_id ( ) . equals ( getParameters ( ) . getNetwork ( ) . getId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster x ) { return x.getnetwork_id ( ) . equals ( getParameters ( ) . getNetwork ( ) . getId ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( a.getstorage_domain_type ( ) ) == type ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( a.getStorageDomainType ( ) ) == type ; }
Source:
public void getConfigFromCache ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.core.common.queries.GetConfigurationValueParameters parameters = new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( configValue , version ) ; getConfigFromCache ( parameters , aQuery ) ; }

Target:
public boolean isMigrationPoliciesSupported ( org.ovirt.engine.core.compat.Version clusterVersion ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.MigrationPoliciesSupported , clusterVersion.toString ( ) ) ) ) ; }