auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static org.ovirt.engine.api.model.DiskInterface map ( org.ovirt.engine.api.model.DiskInterface diskInterface , org.ovirt.engine.api.model.DiskInterface template ) { switch ( diskInterface ) { case IDE : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.DiskInterface ; case VIRTIO : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.DiskInterface ; case VIRTIO_SCSI : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.DiskInterface ; case SPAPR_VSCSI : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.DiskInterface ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.DiskInterface map ( org.ovirt.engine.api.model.DiskInterface diskInterface , org.ovirt.engine.api.model.DiskInterface template ) { switch ( diskInterface ) { case IDE : return org.ovirt.engine.api.model.DiskInterface.IDE ; case VirtIO : return org.ovirt.engine.api.model.DiskInterface.VIRTIO ; case VirtIO_SCSI : return org.ovirt.engine.api.model.DiskInterface.VIRTIO_SCSI ; case SPAPR_VSCSI : return org.ovirt.engine.api.model.DiskInterface.SPAPR_VSCSI ; default : return null ; } }
Source:
protected org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { if ( doesUserHavePermissionsOnStoragePool ( ) ) { return org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getIsoStorageDomainIdForPool ( getStoragePoolId ( ) ) ; } return null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStorageDomainIdForQuery ( ) { if ( doesUserHavePermissionsOnStoragePool ( ) ) { return org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getIsoStorageDomainIdForPool ( getStoragePoolId ( ) ) ; } return null ; }
Source:
public void setImage ( com.google.gwt.resources.client.ImageResource image ) { button.setImage ( image ) ; }

Target:
public void setIcon ( org.gwtbootstrap3.client.ui.constants.IconType iconType ) { button.setIcon ( iconType ) ; }
Source:
public static boolean interfaceBasedOn ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface proposedIface , java.lang.String iface ) { return ( ( iface != null ) && ( proposedIface != null ) ) && ( iface.equals ( org.ovirt.engine.core.utils.NetworkUtils.stripVlan ( proposedIface ) ) ) ; }

Target:
public static boolean interfaceBasedOn ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface proposedIface , java.lang.String iface ) { return ( ( iface != null ) && ( proposedIface != null ) ) && ( iface.equals ( org.ovirt.engine.core.common.utils.NetworkCommonUtils.stripVlan ( proposedIface ) ) ) ; }
Source:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool sp ) { return sp.getName ( ) ; }

Target:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object != null ? object.getName ( ) : org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . anyHostInDataCenter ( ) ; }
Source:
public void utcDateStringToLocaDateNoDep ( ) { java.util.Date date = org.ovirt.engine.core.utils.ovf.OvfParser.utcDateStringToLocalDate ( "1984/06/19 14:25:11" ) ; org.junit.Assert.assertEquals ( new java.util.Date ( 456503111000L ) , date ) ; }

Target:
public void utcDateStringToLocaDateNoDep ( ) { java.util.Date date = org.ovirt.engine.core.utils.ovf.OvfParser.utcDateStringToLocalDate ( "1984/06/19 14:25:11" ) ; org.junit.jupiter.api.Assertions.assertEquals ( new java.util.Date ( 456503111000L ) , date ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getnum_of_cpus ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getNumOfCpus ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getTemplatesUsingProfile ( ) { return getDbFacade ( ) . getVmTemplateDao ( ) . getAllForDiskProfile ( getProfile ( ) . getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.dao.profiles.DiskProfileDao getProfileDao ( ) { return diskProfileDao ; }
Source:
private org.ovirt.engine.core.common.interfaces.FutureVDSCall < org.ovirt.engine.core.common.vdscommands.VDSReturnValue > createFutureTask ( final org.ovirt.engine.core.common.vdscommands.SetupNetworksVdsCommandParameters vdsCmdParams ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . runFutureVdsCommand ( FutureVDSCommandType.SetupNetworks , vdsCmdParams ) ; }

Target:
private org.ovirt.engine.core.common.interfaces.FutureVDSCall < org.ovirt.engine.core.common.vdscommands.VDSReturnValue > createFutureTask ( final org.ovirt.engine.core.common.vdscommands.SetupNetworksVdsCommandParameters vdsCmdParams ) { return org.ovirt.engine.core.bll.network.host.SetupNetworksCommand.getVdsBroker ( ) . runFutureVdsCommand ( FutureVDSCommandType.SetupNetworks , vdsCmdParams ) ; }
Source:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nics = interfaceDao.getAllInterfacesForVds ( org.ovirt.engine.core.bll.network.host.GetHostBondsByHostIdQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.host.GetHostBondsByHostIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.utils.NetworkUtils.getBondsWithSlavesInformation ( nics ) ) ; }

Target:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nics = interfaceDao.getAllInterfacesForVds ( org.ovirt.engine.core.bll.network.host.GetHostBondsByHostIdQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.host.GetHostBondsByHostIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.common.utils.NetworkCommonUtils.getBondsWithSlavesInformation ( nics ) ) ; }
Source:
protected void executeVdsIdCommand ( ) { if ( ( _vdsManager ) != null ) { _vdsManager.UpdateVmDynamic ( org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getParameters ( ) . getVmDynamic ( ) ) ; } else { org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getVDSReturnValue ( ) . setSucceeded ( false ) ; } }

Target:
protected void executeVdsIdCommand ( ) { if ( ( _vdsManager ) != null ) { _vdsManager.updateVmDynamic ( org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getParameters ( ) . getVmDynamic ( ) ) ; } else { org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getVDSReturnValue ( ) . setSucceeded ( false ) ; } }
Source:
public java.lang.Object getContainerId ( ) { return getParameters ( ) . getEntityInfo ( ) . getId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getCommandId ( ) { return getParameters ( ) . getDbAsyncTask ( ) . getRootCommandId ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > bonds = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; allBonds = bonds ; queryLabels ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allBonds = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; initNicModels ( ) ; hostSetupNetworksParametersData.allNics = allNics ; hostSetupNetworksParametersData.existingNetworkAttachments = existingNetworkAttachments ; stopProgress ( ) ; }
Source:
private void initIpConfigurationWithBootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol ) { initIpConfigurationWithPrimaryAddress ( ) ; getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . setBootProtocol ( ipv4BootProtocol ) ; }

Target:
public void checkValidIpv4ConfigurationDHCPBootProtocol ( ) { initIpv4ConfigurationDetails ( Ipv4BootProtocol.DHCP , false , false ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , boot , diskInterface ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , boot , diskInterface , usingScsiReservation ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( object.getOptimizationCustom_IsSelected ( ) . getEntity ( ) ) { optimizationCustomFormatter ( object ) ; optimizationCustomEditor.setVisible ( true ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { optimizationForDesktopFormatter ( object ) ; }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.network.NetworkView object , java.lang.String value ) { getTable ( ) . getSelectionModel ( ) . clear ( ) ; fieldUpdater.update ( index , object , value ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getRemoveCommand ( ) ; }
Source:
public int getnum_of_cpus ( ) { return ( this . getcpu_per_socket ( ) ) * ( this . getnum_of_sockets ( ) ) ; }

Target:
public int getNumOfCpus ( ) { return ( this . getCpuPerSocket ( ) ) * ( this . getNumOfSockets ( ) ) ; }
Source:
public void EnsureAsyncSearchStopped ( ) { super . EnsureAsyncSearchStopped ( ) ; timer.stop ( ) ; }

Target:
public void ensureAsyncSearchStopped ( ) { super . ensureAsyncSearchStopped ( ) ; timer.stop ( ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedAffinityLabelsResource getAffinityLabelsResource ( ) { return null ; }

Target:
public org.ovirt.engine.api.resource.AssignedAffinityLabelsResource getAffinityLabelsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedAffinityLabelsResource ( id , VDS :: new ) ) ; }
Source:
private Response.ResponseBuilder getResponseBuilder ( org.ovirt.engine.api.model.BaseResource response ) { javax.ws.rs.core.UriBuilder uriBuilder = getUriInfo ( ) . getBaseUriBuilder ( ) ; javax.ws.rs.core.Response.ResponseBuilder responseBuilder = javax.ws.rs.core.Response.ok ( ) ; if ( response instanceof org.ovirt.engine.api.model.API ) { addHeader ( response , responseBuilder , uriBuilder ) ; } return responseBuilder ; }

Target:
private Response.ResponseBuilder getResponseBuilder ( org.ovirt.engine.api.model.BaseResource response ) { javax.ws.rs.core.UriBuilder uriBuilder = getUriInfo ( ) . getBaseUriBuilder ( ) ; javax.ws.rs.core.Response.ResponseBuilder responseBuilder = javax.ws.rs.core.Response.ok ( ) ; if ( response instanceof org.ovirt.engine.api.model.Api ) { addHeader ( response , responseBuilder , uriBuilder ) ; } return responseBuilder ; }
Source:
public java.lang.Integer getUsageMemPercent ( ) { return this . mVdsStatistics.getusage_mem_percent ( ) ; }

Target:
public void setOnlineCpus ( java.lang.String value ) { this . mVdsDynamic.setOnlineCpus ( value ) ; }
Source:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Events: quota=" + ( getEntity ( ) . getQuotaName ( ) ) ) ) ; super . search ( ) ; } }

Target:
protected void onEntityContentChanged ( ) { super . onEntityContentChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } else { setItems ( null ) ; } }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc copyData ( java.util.Map src , java.util.Map dst , boolean collapse ) { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.copyData ( src , dst , collapse ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc copyData ( java.lang.String jobId , java.util.Map src , java.util.Map dst ) { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.copyData ( jobId , src , dst ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getDestinationVds ( ) { if ( ( ( _destinationVds ) == null ) && ( ( _vdsDestinationId ) != null ) ) { _destinationVds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . get ( _vdsDestinationId ) ; } return _destinationVds ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getDestinationVds ( ) { if ( ( ( _destinationVds ) == null ) && ( ( _vdsDestinationId ) != null ) ) { _destinationVds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( _vdsDestinationId ) ; } return _destinationVds ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel model ) { org.ovirt.engine.ui.common.widget.uicommon.storage.DisksAllocationView.Driver.driver.edit ( model ) ; initListerners ( model ) ; updateColumnsAvailability ( model ) ; updateListHeader ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel model ) { driver.edit ( model ) ; initListerners ( model ) ; updateColumnsAvailability ( model ) ; updateListHeader ( model ) ; }
Source:
protected void SelectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.PropertyChangedEventArgs e ) { super . SelectedItemPropertyChanged ( sender , e ) ; if ( ( e.PropertyName.equals ( "status" ) ) || ( e.PropertyName.equals ( "pm_enabled" ) ) ) { UpdateActionAvailability ( ) ; } }

Target:
protected void SelectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . SelectedItemPropertyChanged ( sender , e ) ; if ( ( e.PropertyName.equals ( "status" ) ) || ( e.PropertyName.equals ( "pm_enabled" ) ) ) { UpdateActionAvailability ( ) ; } }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllOfTypes ( org.ovirt.engine.core.common.businessentities.VDSType [ ] types ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getVdsToRun ( org.ovirt.engine.core.common.businessentities.VDSType [ ] types , org.ovirt.engine.core.compat.Guid groupId , org.ovirt.engine.core.common.businessentities.VDSStatus status , int minNrOfCpus ) ;
Source:
public void testBoolean ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromJson ( "{'delete_protected':true,'run_once':false}" ) ; org.junit.Assert.assertTrue ( object.getDeleteProtected ( ) ) ; org.junit.Assert.assertFalse ( object.getRunOnce ( ) ) ; }

Target:
public void testBoolean ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromJson ( "{'delete_protected':true,'run_once':false}" ) ; org.junit.Assert.assertTrue ( object.deleteProtected ( ) ) ; org.junit.Assert.assertFalse ( object.runOnce ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getrun_on_vds ( ) { return this . mVmDynamic.getrun_on_vds ( ) ; }

Target:
public java.lang.String getGuestOs ( ) { return this . vmDynamic.getguest_os ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.SsoMethod fromString ( java.lang.String val ) { for ( org.ovirt.engine.core.common.businessentities.SsoMethod ssoMethod : org.ovirt.engine.core.common.businessentities.SsoMethod.values ( ) ) { if ( ssoMethod.value.equals ( val ) ) { return ssoMethod ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.SsoMethod fromString ( java.lang.String val ) { for ( org.ovirt.engine.core.common.businessentities.SsoMethod ssoMethod : org.ovirt.engine.core.common.businessentities.SsoMethod.values ( ) ) { if ( ssoMethod.value.equalsIgnoreCase ( val ) ) { return ssoMethod ; } } return null ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsVirtioScsiEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
private void waitUntilFencingAllowed ( ) { int mSecToWait = ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.DisableFenceAtStartupInSec ) ) * 1000 ; org.ovirt.engine.core.utils.ThreadUtils.sleep ( mSecToWait ) ; }

Target:
private void waitUntilFencingAllowed ( ) { int secToWait = ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.DisableFenceAtStartupInSec ) ) * 1000 ; org.ovirt.engine.core.utils.ThreadUtils.sleep ( secToWait ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; initSpmPriorities1 ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.ArrayList < java.lang.String > pmTypes = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; updatePmTypeList ( pmTypes , getPmType ( ) ) ; updatePmTypeList ( pmTypes , getPmSecondaryType ( ) ) ; }
Source:
public void formatStringTest4 ( ) { testMessages.addFallback ( DynamicMessageKey.VERSION_ABOUT , "This is version about: {0}.{1}.{0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.VERSION_ABOUT , "1" , "2" , "3" ) ; org.junit.Assert.assertNotNull ( "There should be a result" ) ; org.junit.Assert.assertEquals ( "Result should be 'This is version about: 1.1.1'" , "This is version about: 1.2.1" , result ) ; }

Target:
public void formatStringTest4 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "2" , "3" ) ; org.junit.Assert.assertNotNull ( "There should be a result" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.2.1" , result ) ; }
Source:
protected boolean validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams , java.util.List < java.lang.String > reasons ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( getEffectiveCompatibilityVersion ( ) , vmStaticFromParams.getCustomProperties ( ) , reasons ) ; }

Target:
protected boolean validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( getEffectiveCompatibilityVersion ( ) , vmStaticFromParams.getCustomProperties ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getReturnValue ( ) . getValidationMessages ( ) ) ; }
Source:
private boolean labelChanged ( ) { return ! ( java.util.Objects.equals ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . getLabel ( ) , getOldNetwork ( ) . getLabel ( ) ) ) ; }

Target:
private static boolean labelChanged ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.Network oldNetwork ) { return ! ( java.util.Objects.equals ( network.getLabel ( ) , oldNetwork.getLabel ( ) ) ) ; }
Source:
protected boolean validate ( ) { return ( org.ovirt.engine.core.bll.storage.domain.UpdateOvfStoreForStorageDomainCommand.checkStoragePool ( ) ) && ( org.ovirt.engine.core.bll.storage.domain.UpdateOvfStoreForStorageDomainCommand.checkStorageDomain ( ) ) ; }

Target:
protected boolean validate ( ) { return ( validate ( org.ovirt.engine.core.bll.storage.domain.UpdateOvfStoreForStorageDomainCommand.createStoragePoolValidator ( ) . exists ( ) ) ) && ( org.ovirt.engine.core.bll.storage.domain.UpdateOvfStoreForStorageDomainCommand.checkStorageDomain ( ) ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByName ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , result.getName ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByName ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , result.getName ( ) ) ; }
Source:
private void initIpConfigurationBootProtocolGateway ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol , boolean syncNetmask ) { initIpConfigurationStaticBootProtocol ( networkBootProtocol ) ; org.mockito.Mockito.when ( mockedIPv4Address.getGateway ( ) ) . thenReturn ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.GATEWAY ) ; iface.setGateway ( ( syncNetmask ? org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.GATEWAY : null ) ) ; }

Target:
private void initIpConfigurationBootProtocolGateway ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol , boolean syncGateway ) { initIpConfigurationStaticBootProtocol ( networkBootProtocol ) ; org.mockito.Mockito.when ( mockedIPv4Address.getGateway ( ) ) . thenReturn ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.GATEWAY ) ; iface.setGateway ( ( syncGateway ? org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.GATEWAY : null ) ) ; }
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 ( ) ; onEntityChanged ( ) ; }

Target:
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 ( ) ; onEntityChanged ( ) ; }
Source:
public org.ovirt.engine.api.model.DiskAttachment get ( ) { return performGet ( VdcQueryType.GetDiskVmElementById , new org.ovirt.engine.core.common.queries.VmDeviceIdQueryParameters ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( diskId ) , templateId ) ) ) ; }

Target:
public org.ovirt.engine.api.model.DiskAttachment get ( ) { return performGet ( QueryType.GetDiskVmElementById , new org.ovirt.engine.core.common.queries.VmDeviceIdQueryParameters ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( diskId ) , templateId ) ) ) ; }
Source:
protected void copyVmDevices ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.copyVmDevices ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateId ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) , srcDiskIdToTargetDiskIdMapping , _vmInterfaces , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isConsoleEnabled ( ) ) ; }

Target:
protected void copyVmDevices ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.copyVmDevices ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateId ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) , getSrcDeviceIdToTargetDeviceIdMapping ( ) , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isConsoleEnabled ( ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( T value ) { if ( ( ( value.getComment ( ) ) != null ) && ( ! ( value.getComment ( ) . isEmpty ( ) ) ) ) { return org.ovirt.engine.ui.webadmin.widget.table.column.CommentColumn2.RESOURCES.commentImage ( ) ; } return null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( T value ) { if ( ( ( value.getComment ( ) ) != null ) && ( ! ( value.getComment ( ) . isEmpty ( ) ) ) ) { return org.ovirt.engine.ui.webadmin.widget.table.column.CommentColumn2.resources.commentImage ( ) ; } return null ; }
Source:
public void testNoIsoDomain ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setBootSequence ( BootSequence.CD ) ; org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( vm , new java.util.ArrayList < > ( ) , null ) , false , EngineMessage.VM_CANNOT_RUN_FROM_CD_WITHOUT_ACTIVE_STORAGE_DOMAIN_ISO ) ; }

Target:
public void testNoIsoDomainIsoOnIsoDomain ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setBootSequence ( BootSequence.CD ) ; org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateIsoPath ( vm , "Iso_name.iso" , null , null ) , false , EngineMessage.VM_CANNOT_RUN_FROM_CD_WITHOUT_ACTIVE_STORAGE_DOMAIN_ISO ) ; }
Source:
protected void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { command.Execute ( ) ; }

Target:
protected void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { command.execute ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { return group ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return group ; }
Source:
public java.lang.Boolean isRaiseErrorModalPanel ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.errors.VdcFault fault ) { return ( actionType != ( org.ovirt.engine.core.common.action.VdcActionType.LoginUser ) ) && ( ! ( ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.VmLogon ) ) && ( ( fault.getError ( ) ) == ( org.ovirt.engine.core.common.errors.VdcBllErrors.nonresp ) ) ) ) ; }

Target:
public java.lang.Boolean isRaiseErrorModalPanel ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.errors.VdcFault fault ) { return ( actionType != ( org.ovirt.engine.core.common.action.VdcActionType.LoginUser ) ) && ( ! ( ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.VmLogon ) ) && ( ( fault.getError ( ) ) == ( org.ovirt.engine.core.common.errors.EngineError.nonresp ) ) ) ) ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assert org.ovirt.engine.api.restapi.resource.utils.UsbResourceUtils.getUsbPolicy ( usb , vdsGroup ) . equals ( UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.utils.UsbResourceUtils.getUsbPolicy ( usb , vdsGroup ) , UsbPolicy.DISABLED ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , null , org.ovirt.engine.core.bll.CommandBase.EMPTY_GUID_ARRAY ) ; }

Target:
private org.ovirt.engine.core.compat.Guid createTaskImpl ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTaskImpl ( taskId , asyncTaskCreationInfo , parentCommand , description , createEntitiesMapForSingleEntityType ( entityType , entityIds ) ) ; }
Source:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.CreateCommand ( actionType , parameters ) ; }

Target:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeRemoveBrickForce ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicCount ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterTaskInfoReturnForXmlRpc glusterVolumeRemoveBricksStart ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicaCount , java.lang.Boolean forceRemove ) ;
Source:
public void checkKeyOnly ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( NOT_VALID ) ; org.junit.Assert.assertEquals ( failureValidationResultEmptyNotAllowed , validationResult ) ; }

Target:
public void checkKeyOnly ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.NOT_VALID ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyNotAllowed , validationResult ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { }
Source:
public static org.ovirt.engine.core.compat.Guid GetImageGrupIdFromImageFile ( java.lang.String imageFile ) { if ( ! ( org.apache.commons.lang.StringUtils.isBlank ( imageFile ) ) ) { return org.ovirt.engine.core.compat.Guid.createGuidFromString ( imageFile.split ( "[/]" , ( - 1 ) ) [ 0 ] ) ; } return null ; }

Target:
public static org.ovirt.engine.core.compat.Guid GetImageGrupIdFromImageFile ( java.lang.String imageFile ) { if ( ! ( org.apache.commons.lang.StringUtils.isBlank ( imageFile ) ) ) { return org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( imageFile.split ( "[/]" , ( - 1 ) ) [ 0 ] ) ; } return null ; }
Source:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getName ( ) ; }

Target:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object != null ? object.getName ( ) : org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . anyHostInDataCenter ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getBackendCollection ( ) { if ( isFiltered ( ) ) { return getBackendCollection ( VdcQueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; } else { return getBackendCollection ( SearchType.AuditLog ) ; } }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getBackendCollection ( ) { if ( isFiltered ( ) ) { return getBackendCollection ( QueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; } else { return getBackendCollection ( SearchType.AuditLog ) ; } }
Source:
protected boolean hasWatchdog ( ) { return ( org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getWatchdog ( ) ) != null ? true : org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasWatchdog ( getVmId ( ) ) ; }

Target:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isSoundDeviceEnabled ( getVmId ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ListModel flush ( ) { return getValue ( ) ; }

Target:
protected void onRemove ( org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel value , org.ovirt.engine.ui.webadmin.widget.vnicProfile.VnicProfileWidget widget ) { super . onRemove ( value , widget ) ; if ( ( profiles ) != null ) { profiles.remove ( value ) ; } }
Source:
private boolean removeHibernationDisks ( ) { java.lang.String hiberVol = org.ovirt.engine.core.bll.StopVmCommandBase.getActiveSnapshot ( ) . getMemoryVolume ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( hiberVol ) ) { return false ; } return removeHibernationDisks ( hiberVol ) ; }

Target:
private void removeMemoryDisksIfNeeded ( java.lang.String hiberVol ) { if ( org.apache.commons.lang.StringUtils.isNotEmpty ( hiberVol ) ) { org.ovirt.engine.core.bll.StopVmCommandBase.removeHibernationDisks ( hiberVol ) ; } }
Source:
protected void setupCustomPropertiesAvailability ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { customPropertiesTab.setVisible ( model.getIsCustomPropertiesTabAvailable ( ) ) ; }

Target:
protected void setupCustomPropertiesAvailability ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { changeApplicationLevelVisibility ( customPropertiesTab , model.getIsCustomPropertiesTabAvailable ( ) ) ; }
Source:
public static java.lang.Boolean isMemoryBalloonEnabledForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource resource , org.ovirt.engine.core.compat.Guid id ) { return resource.getEntity ( java.lang.Boolean.class , VdcQueryType.IsBalloonEnabled , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "IsBalloonEnabled" , true ) ; }

Target:
public static java.lang.Boolean isMemoryBalloonEnabledForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource resource , org.ovirt.engine.core.compat.Guid id ) { return resource.getEntity ( java.lang.Boolean.class , QueryType.IsBalloonEnabled , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "IsBalloonEnabled" , true ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc list ( java.lang.String isFull , java.lang.String [ ] vmIds ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getExternalVmList ( java.lang.String uri , java.lang.String username , java.lang.String password , java.util.List < java.lang.String > vmsNames ) ;
Source:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getBroker ( ) . getHardwareInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateHardwareSystemInformation ( infoReturn.mInfo , org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getVds ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getBroker ( ) . getHardwareInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateHardwareSystemInformation ( infoReturn.info , org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getVds ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . processOnVmStop ( curVm.getId ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . processOnVmStop ( java.util.Collections.singleton ( curVm.getId ( ) ) ) ; return null ; }
Source:
public void PostStorageNameValidation ( ) { if ( getLastExecutedCommand ( ) . getName ( ) . equals ( "OnSave" ) ) { OnSavePostNameValidation ( ) ; } }

Target:
public void postStorageNameValidation ( ) { if ( getLastExecutedCommand ( ) . getName ( ) . equals ( "OnSave" ) ) { onSavePostNameValidation ( ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { addStorageDomainsColumn ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { UpdateStorageDomainCells ( ) ; }
Source:
public java.util.Map getAllTasksInfo ( ) { final java.util.Map resultMap = getOKStatus ( ) ; final java.util.Map allTasksStatusMap = map ( ) ; resultMap.put ( "allTasksInfo" , allTasksStatusMap ) ; return resultMap ; }

Target:
public java.util.Map getAllTasksInfo ( ) { final java.util.Map resultMap = getOKStatus ( ) ; final java.util.Map allTasksStatusMap = map ( ) ; resultMap.put ( "allTasksInfo" , allTasksStatusMap ) ; log.info ( "allTasksInfo not fully implemented" ) ; return resultMap ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageVmPresenter.constants.storageVmSubTabLabel ( ) , 5 , 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.storage.SubTabStorageVmPresenter.constants.storageVmSubTabLabel ( ) , 5 ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.EngineSession > searchSessions ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getEngineSessionDao ( ) , false ) ; }

Target:
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 ) ; }
Source:
public void testGetAllEntitiesForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_1 , null ) ; org.junit.Assert.assertEquals ( "A Template and a VM should be fetched for the specified storage domain" , 2 , ovfEntityDataList.size ( ) ) ; }

Target:
public void testGetAllEntitiesForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_1 , null ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , ovfEntityDataList.size ( ) , "A Template and a VM should be fetched for the specified storage domain" ) ; }
Source:
public void AddCustomValue ( final java.lang.String name , final java.lang.String value ) { customValues.put ( name.toLowerCase ( ) , value ) ; }

Target:
public void addCustomValue ( final java.lang.String name , final java.lang.String value ) { allocateCustomValues ( ) ; customValues.put ( name.toLowerCase ( ) , value ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveParameters ( org.ovirt.engine.api.model.Network entity ) { return new org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter ( cluster.getVDSGroup ( ) , entity ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveParameters ( org.ovirt.engine.api.model.Network entity ) { return new org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter ( cluster.getCluster ( ) , entity ) ; }
Source:
public void init ( ) { org.ovirt.engine.core.bll.scheduling.SchedulingManager.log.info ( "Initializing Scheduling manager" ) ; loadPolicyUnits ( ) ; loadClusterPolicies ( ) ; loadExternalScheduler ( ) ; enableLoadBalancer ( ) ; enableHaReservationCheck ( ) ; org.ovirt.engine.core.bll.scheduling.SchedulingManager.log.info ( "Initialized Scheduling manager" ) ; }

Target:
public void init ( ) { org.ovirt.engine.core.bll.scheduling.SchedulingManager.log.info ( "Initializing Scheduling manager" ) ; initializePendingResourceManager ( ) ; loadPolicyUnits ( ) ; loadClusterPolicies ( ) ; loadExternalScheduler ( ) ; enableLoadBalancer ( ) ; enableHaReservationCheck ( ) ; org.ovirt.engine.core.bll.scheduling.SchedulingManager.log.info ( "Initialized Scheduling manager" ) ; }
Source:
public void testGetAllVnicProfileWithNo ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForVnicProfile ( FixturesTool.VM_NETWORK_INTERFACE_PROFILE_NOT_USED ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllVnicProfileWithNo ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForVnicProfile ( FixturesTool.VM_NETWORK_INTERFACE_PROFILE_NOT_USED ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void moveDiskToGluster ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateVmIsNotDown ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; mockGetVmsListForDisk ( ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ; }
Source:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setPmOptionsMap ( java.util.HashMap < java.lang.String , java.lang.String > value ) { pmOptionsMap = value ; pmOptions = org.ovirt.engine.core.common.businessentities.VdsStatic.PmOptionsMapToString ( value ) ; }

Target:
public void setPmOptionsMap ( java.util.HashMap < java.lang.String , java.lang.String > value ) { pmOptionsMap = value ; pmOptions = org.ovirt.engine.core.common.businessentities.VdsStatic.pmOptionsMapToString ( value ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , autoRecoverable , connection , name , storage , storageFormat , storagePoolType , storageType , description , sanState , wipeAfterDelete , discardAfterDelete , firstMetadataDevice , vgMetadataDevice , warningLowSpaceIndicator , criticalSpaceActionBlocker , backup ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , autoRecoverable , connection , name , storage , storageFormat , storagePoolType , storageType , description , sanState , wipeAfterDelete , discardAfterDelete , firstMetadataDevice , vgMetadataDevice , warningLowSpaceIndicator , criticalSpaceActionBlocker , warningLowConfirmedSpaceIndicator , backup ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( result.getState ( ) ) ) ; dataCenterGuideModel.CleanConnection ( dataCenterGuideModel.connection , dataCenterGuideModel.hostId ) ; dataCenterGuideModel.OnFinish ( dataCenterGuideModel.context , false , dataCenterGuideModel.storageModel ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( result.getState ( ) ) ) ; dataCenterGuideModel.cleanConnection ( dataCenterGuideModel.connection , dataCenterGuideModel.hostId ) ; dataCenterGuideModel.onFinish ( dataCenterGuideModel.context , false , dataCenterGuideModel.storageModel ) ; }
Source:
public com.google.gwt.editor.client.adapters.TakesValueEditor < org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType > asEditor ( ) { return com.google.gwt.editor.client.adapters.TakesValueEditor.of ( this ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType flush ( ) { return driver.flush ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getAllForStoragePool ( org.ovirt.engine.core.compat.Guid pool ) { return getCallsHandler ( ) . executeReadList ( "Getstorage_server_connectionsByStoragePoolId" , org.ovirt.engine.core.dao.StorageServerConnectionDAODbFacadeImpl.mapper , getCustomMapSqlParameterSource ( ) . addValue ( "storage_pool_id" , pool ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getAllConnectableStorageSeverConnection ( org.ovirt.engine.core.compat.Guid pool ) { return getCallsHandler ( ) . executeReadList ( "GetAllConnectableStorageSeverConnection" , org.ovirt.engine.core.dao.StorageServerConnectionDAODbFacadeImpl.mapper , getCustomMapSqlParameterSource ( ) . addValue ( "storage_pool_id" , pool ) ) ; }
Source:
public org.ovirt.engine.api.model.DiskSnapshots list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllDiskSnapshotsByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( this . storageDomainId ) ) ) ; }

Target:
public org.ovirt.engine.api.model.DiskSnapshots list ( ) { return mapCollection ( getBackendCollection ( QueryType.GetAllDiskSnapshotsByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( this . storageDomainId ) ) ) ; }