auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean checkFreeSpaceOnDestinationDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain domain , int requestedSizeGB ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( domain ) . isDomainHasSpaceForRequest ( requestedSizeGB ) ) ; }

Target:
private boolean validateFreeSpaceOnDestinationDomain ( org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return validate ( storageDomainValidator.hasSpaceForClonedDisks ( disksList ) ) ; }
Source:
public synchronized void StartPollingTask ( org.ovirt.engine.core.compat.Guid vdsmTaskId ) { if ( _tasks.containsKey ( vdsmTaskId ) ) { _tasks.get ( vdsmTaskId ) . StartPollingTask ( ) ; } }

Target:
public synchronized void startPollingTask ( org.ovirt.engine.core.compat.Guid vdsmTaskId ) { if ( _tasks.containsKey ( vdsmTaskId ) ) { _tasks.get ( vdsmTaskId ) . StartPollingTask ( ) ; } }
Source:
public java.lang.String getSysprepFileName ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
java.lang.String getCdInterface ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.ChipsetType chipset ) ;
Source:
public void setVmGuestAgentInterfaces ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > vmGuestAgentInterfaces ) { this . vmGuestAgentInterfaces = vmGuestAgentInterfaces ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData setVmGuestAgentInterfaces ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > vmGuestAgentInterfaces ) { this . vmGuestAgentInterfaces = vmGuestAgentInterfaces ; return this ; }
Source:
public void setNics ( org.ovirt.engine.sdk.entities.GuestNicsConfiguration value ) { this . nics = value ; }

Target:
public void setNicConfigurations ( org.ovirt.engine.sdk.entities.GuestNicsConfiguration value ) { this . nicConfigurations = value ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmNicServer getNicResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmNicServer ( vmId , delegate.getNicResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmNicServer getNicResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmNicServer ( vmId , getDelegate ( ) . getNicResource ( id ) ) ; }
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 ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return 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 , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getSmartcardDeviceSpecParams ( ) , true , false ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( target ) ) ; dataCenterGuideModel.attachedStorageDomains = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( returnValue ) ) ; dataCenterGuideModel.updateOptionsNonLocalFS ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > returnValue ) { attachedStorageDomains = returnValue ; updateOptionsNonLocalFS ( ) ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; updateActionAvailability ( ) ; }

Target:
public void setImportVmCommand ( org.ovirt.engine.ui.uicommonweb.UICommand importVmCommand ) { this . importVmCommand = importVmCommand ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment entity ) { verifyRelationWithHostNetworkQos ( entity ) ; verifyUnsetStoragePoolIdAndNameOnQos ( entity ) ; persistQosChanges ( entity ) ; super . save ( entity ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment entity ) { verifyRelationWithHostNetworkQos ( entity ) ; hostNetworkQosDao.persistQosChanges ( entity.getId ( ) , entity.getHostNetworkQos ( ) ) ; super . save ( entity ) ; }
Source:
public void editProfiles ( org.ovirt.engine.ui.uicommonweb.models.ListModel profiles , org.ovirt.engine.core.compat.Version dcCompatibilityVersion , org.ovirt.engine.core.compat.Guid dcId , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel defaultProfile ) { profilesEditor.edit ( profiles , dcCompatibilityVersion , dcId , defaultProfile ) ; }

Target:
public void updateDc ( org.ovirt.engine.core.compat.Version dcCompatibilityVersion , org.ovirt.engine.core.compat.Guid dcId ) { profilesEditor.updateDc ( dcCompatibilityVersion , dcId ) ; }
Source:
public void setRowData ( int start , java.util.List < ? extends T > values ) { super . setRowData ( start , values ) ; selectionModel.resolveChanges ( ) ; updateTableControls ( ) ; }

Target:
public void execute ( ) { tableContainer.getElement ( ) . setScrollTop ( tableContainerVerticalScrollPosition ) ; }
Source:
private void SysPrepDomainName_SelectedItemChanged ( ) { getSysPrepSelectedDomainName ( ) . setEntity ( getSysPrepDomainName ( ) . getSelectedItem ( ) ) ; }

Target:
private void sysPrepDomainName_SelectedItemChanged ( ) { getSysPrepSelectedDomainName ( ) . setEntity ( getSysPrepDomainName ( ) . getSelectedItem ( ) ) ; }
Source:
public void labelAppearsOnlyOnceInParamsValid ( ) { org.ovirt.engine.core.common.action.HostSetupNetworksParameters params = setLabelsOnParams ( java.util.Collections.singleton ( createNicLabel ( "lbl1" ) ) , java.util.Collections.singleton ( "lbl2" ) ) ; org.junit.Assert.assertThat ( createNicLabelValidator ( params ) . labelAppearsOnlyOnceInParams ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void labelAppearsOnlyOnceInParamsValid ( ) { org.ovirt.engine.core.common.action.HostSetupNetworksParameters params = setLabelsOnParams ( java.util.Collections.singleton ( createNicLabel ( "lbl1" ) ) , java.util.Collections.singleton ( "lbl2" ) ) ; org.hamcrest.MatcherAssert.assertThat ( createNicLabelValidator ( params ) . labelAppearsOnlyOnceInParams ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { return ( masterVolume.getAdvancedDetails ( ) . getCapacityInfo ( ) ) != null ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { return ( masterVolume.getAdvancedDetails ( ) . getCapacityInfo ( ) ) != null ; }
Source:
public boolean isMonitoringNeeded ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( ( vds.getstatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VDSStatus.NonOperational ) ) || ( ( vds.getvm_count ( ) ) > 0 ) ; }

Target:
public boolean isMonitoringNeeded ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( ( vds.getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VDSStatus.NonOperational ) ) || ( ( vds.getVmCount ( ) ) > 0 ) ; }
Source:
public static java.util.Map < org.ovirt.engine.core.common.EventNotificationEntity , java.util.HashSet < org.ovirt.engine.core.common.AuditLogType > > getNotificationEvents ( ) { return org.ovirt.engine.core.common.VdcEventNotificationUtils._eventNotificationTypeMap ; }

Target:
public static java.util.Map < org.ovirt.engine.core.common.EventNotificationEntity , java.util.HashSet < org.ovirt.engine.core.common.AuditLogType > > getNotificationEvents ( ) { return org.ovirt.engine.core.common.VdcEventNotificationUtils.eventNotificationTypeMap ; }
Source:
public void remove ( ) { }

Target:
public void remove ( ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RemoveProvider , new org.ovirt.engine.core.common.action.ProviderParameters ( ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( getSelectedItem ( ) ) ) ) ) ; }
Source:
public void stopMonitoring ( ) { super . stopMonitoring ( ) ; this . subscription.cancel ( ) ; }

Target:
public void stopMonitoring ( ) { pollVMStatsRefresher.stopMonitoring ( ) ; this . subscription.cancel ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > startImageTransferSession ( java.lang.String ticketId , java.lang.String ops , long expiration , java.lang.String spId , java.lang.String sdId , java.lang.String imgId , java.lang.String volId ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > add_image_ticket ( java.lang.String ticketId , java.lang.String [ ] ops , long timeout , long size , java.lang.String url ) ;
Source:
public void testGetFilterByInvalidName ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkFilter actualNetworkFilter = dao.getNetworkFilterByName ( org.ovirt.engine.core.dao.network.NetworkFilterDaoTest.INVALID_NETWORK_FILTER_NAME ) ; org.junit.Assert.assertNull ( actualNetworkFilter ) ; }

Target:
public void testGetFilterByInvalidName ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkFilter actualNetworkFilter = dao.getNetworkFilterByName ( org.ovirt.engine.core.dao.network.NetworkFilterDaoTest.INVALID_NETWORK_FILTER_NAME ) ; org.junit.jupiter.api.Assertions.assertNull ( actualNetworkFilter ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.CollectVdsNetworkData , new org.ovirt.engine.core.common.vdscommands.CollectVdsNetworkDataVDSCommandParameters ( host , true ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.CollectVdsNetworkDataAfterInstallation , new org.ovirt.engine.core.common.vdscommands.VdsIdAndVdsVDSCommandParametersBase ( host ) ) ; return null ; }
Source:
public void getUserNameDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final java.lang.String n = b.getUserName ( ) ; org.junit.Assert.assertNull ( n ) ; }

Target:
public void getUserNameNull ( ) { b.setUserName ( null ) ; final java.lang.String n = b.getUserName ( ) ; org.junit.Assert.assertNull ( n ) ; }
Source:
public org.ovirt.engine.api.resource.LabelResource getLabelSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendNetworkLabelResource ( id , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.LabelResource getLabelResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendNetworkLabelResource ( id , this ) ) ; }
Source:
public void testUrlWithoutFilter ( ) { org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = new org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder ( org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilderTest.HOST_ID , null ) ; org.junit.Assert.assertEquals ( "/katello/api/v2/systems/xxx/errata" , underTest.build ( ) ) ; }

Target:
public void testUrlWithoutFilter ( ) { org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = createFilteredErrataRelativeUrlBuilder ( null ) ; org.junit.Assert.assertEquals ( "/katello/api/v2/systems/xxx/errata" , underTest.build ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel x , org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel y ) { return x.getName ( ) . compareTo ( y.getName ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.Role left , org.ovirt.engine.core.common.businessentities.Role right ) { return left.getname ( ) . compareTo ( right.getname ( ) ) ; }
Source:
public java.lang.String getKeyName ( ) { return keyName ; }

Target:
public static org.ovirt.engine.core.utils.customprop.VmPropertiesUtils getInstance ( ) { return org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.vmPropertiesUtils ; }
Source:
public void setIsAllLunsSelected ( boolean value ) { if ( ( isAllLunsSelected ) != value ) { isAllLunsSelected = value ; IsAllLunsSelectedChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsAllLunsSelected" ) ) ; } }

Target:
public void setIsAllLunsSelected ( boolean value ) { if ( ( isAllLunsSelected ) != value ) { isAllLunsSelected = value ; isAllLunsSelectedChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsAllLunsSelected" ) ) ; } }
Source:
protected abstract org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( org.ovirt.engine.api.model.Network network , org.ovirt.engine.api.model.Network entity ) ;

Target:
protected abstract org.ovirt.engine.core.common.action.VdcActionParametersBase getAddParameters ( org.ovirt.engine.api.model.Network network , org.ovirt.engine.api.model.Network entity ) ;
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { commonModel.getBookmarkList ( ) . getNewCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { commonModel.getBookmarkList ( ) . getNewCommand ( ) . execute ( ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = createTestCommand ( null ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StartGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( startedVolumeId , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { setUpMockQueryParameters ( ) ; setUpSpyQuery ( ) ; for ( org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < ? > mcd : getExtraConfigDescriptors ( ) ) { org.ovirt.engine.core.bll.AbstractQueryTest.mcr.mockConfigValue ( mcd ) ; } }

Target:
public void setUp ( ) throws java.lang.Exception { initQuery ( getQuery ( ) ) ; for ( org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < ? > mcd : getExtraConfigDescriptors ( ) ) { org.ovirt.engine.core.bll.AbstractQueryTest.mcr.mockConfigValue ( mcd ) ; } }
Source:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { getAsyncTaskManager ( ) . startPollingTask ( taskID ) ; } }

Target:
public void setExecutionContext ( org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { context.withExecutionContext ( executionContext ) ; }
Source:
public void setVmHost ( java.lang.String value ) { this . vmDynamic.setvm_host ( value ) ; }

Target:
public void setVmFQDN ( java.lang.String fqdn ) { this . vmDynamic.setVmFQDN ( fqdn ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage.Disk loadDiskFromSnapshot ( org.ovirt.engine.core.compat.Guid diskId , org.ovirt.engine.core.compat.Guid snapshotId ) { return snapshotId == null ? loadActiveDisk ( diskId ) : org.ovirt.engine.core.bll.storage.disk.DiskHandler.getDiskImageDao ( ) . getDiskSnapshotForVmSnapshot ( diskId , snapshotId ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.Disk loadDiskFromSnapshot ( org.ovirt.engine.core.compat.Guid diskId , org.ovirt.engine.core.compat.Guid snapshotId ) { return snapshotId == null ? loadActiveDisk ( diskId ) : diskImageDao.getDiskSnapshotForVmSnapshot ( diskId , snapshotId ) ; }
Source:
protected boolean hasWatchdog ( org.ovirt.engine.core.compat.Guid vmId ) { return getVmDeviceUtils ( ) . hasWatchdog ( vmId ) ; }

Target:
protected boolean hasWatchdog ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVmDeviceUtils ( ) . hasWatchdog ( vmId ) ; }
Source:
public java.lang.String toString ( ) { return ( ( serializeId ( org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId.getFirst ( ) ) ) + '.' ) + ( serializeId ( org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId.getSecond ( ) ) ) ; }

Target:
public java.lang.String toString ( ) { return ( ( java.util.Objects.toString ( org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId.getFirst ( ) ) ) + '.' ) + ( java.util.Objects.toString ( org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId.getSecond ( ) ) ) ; }
Source:
protected void executeVdsIdCommand ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . RemoveVds ( org.ovirt.engine.core.vdsbroker.RemoveVdsVDSCommand.getVdsId ( ) ) ; }

Target:
protected void executeVdsIdCommand ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . RemoveVds ( org.ovirt.engine.core.vdsbroker.RemoveVdsVDSCommand.getVdsId ( ) , parameters.isNewHost ( ) ) ; }
Source:
public void networExists ( ) { simulateNicExists ( ) ; simulateNetworkExists ( ) ; org.junit.Assert.assertThat ( validator.networkExists ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NETWORK_ID ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networExists ( ) { simulateNicExists ( ) ; simulateNetworkExists ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkExists ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NETWORK_ID ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected boolean prepareFailureMessageForDomains ( java.lang.String domainNames ) { org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.addCanDoActionMessageVariable ( "domainNames" , domainNames ) ; return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS ) ; }

Target:
protected boolean prepareFailureMessageForDomains ( java.lang.String domainNames ) { org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.addCanDoActionMessageVariable ( "domainNames" , domainNames ) ; return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS ) ; }
Source:
protected final boolean failCanDoAction ( org.ovirt.engine.core.common.errors.EngineMessage message , java.lang.String ... variableReplacements ) { addCanDoActionMessage ( message ) ; for ( java.lang.String variableReplacement : variableReplacements ) { addCanDoActionMessage ( variableReplacement ) ; } return false ; }

Target:
protected final boolean failValidation ( org.ovirt.engine.core.common.errors.EngineMessage message , java.lang.String ... variableReplacements ) { addValidationMessage ( message ) ; for ( java.lang.String variableReplacement : variableReplacements ) { addValidationMessage ( variableReplacement ) ; } return false ; }
Source:
public void validateSucceeds ( ) { setUpMocksForRemove ( ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { setUpMocksForRemove ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.validate ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.VdsNumaNodeDAO getVdsNumaNodeDao ( ) { return org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getDbFacade ( ) . getVdsNumaNodeDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VdsNumaNodeDao getVdsNumaNodeDao ( ) { return org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getDbFacade ( ) . getVdsNumaNodeDao ( ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.HibernateVDSCommand.getBroker ( ) . hibernate ( org.ovirt.engine.core.vdsbroker.vdsbroker.HibernateVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.HibernateVDSCommand.getParameters ( ) . getHibernationVolHandle ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HibernateVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.HibernateBrokerVDSCommand.getBroker ( ) . hibernate ( org.ovirt.engine.core.vdsbroker.vdsbroker.HibernateBrokerVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.HibernateBrokerVDSCommand.getParameters ( ) . getHibernationVolHandle ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HibernateBrokerVDSCommand.ProceedProxyReturnValue ( ) ; }
Source:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { networkClusterModel.setRequired ( value ) ; } refreshClustersTable ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel model , java.lang.Boolean value ) { model.setAttached ( value ) ; refreshClustersTable ( ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { logSsoOnDesktopFailedAgentNonResp ( spiceConsoleModel.getLogger ( ) , ( logonCommandReturnValue != null ? logonCommandReturnValue.getDescription ( ) : "" ) ) ; spiceConsoleModel.executeQuery ( getEntity ( ) ) ; getParentModel ( ) . setWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { logSsoOnDesktopFailedAgentNonResp ( getLogger ( ) , ( logonCommandReturnValue != null ? logonCommandReturnValue.getDescription ( ) : "" ) ) ; invokeClient ( ) ; getParentModel ( ) . setWindow ( null ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > vdsList = jdbcTemplate.query ( query , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance ) ; return uniteAgents ( vdsList ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > vdsList = getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance ) ; return uniteAgents ( vdsList ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue run ( ) throws java.lang.Exception { query.execute ( ) ; if ( query.getQueryReturnValue ( ) . getSucceeded ( ) ) { return query.getQueryReturnValue ( ) ; } throw new org.ovirt.engine.core.bll.executor.HystrixBackendQueryExecutor.QueryFailedException ( query.getQueryReturnValue ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.QueryReturnValue run ( ) throws java.lang.Exception { query.execute ( ) ; if ( query.getQueryReturnValue ( ) . getSucceeded ( ) ) { return query.getQueryReturnValue ( ) ; } throw new org.ovirt.engine.core.bll.executor.HystrixBackendQueryExecutor.QueryFailedException ( query.getQueryReturnValue ( ) ) ; }
Source:
protected void setStatus ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVdsStatus , new org.ovirt.engine.core.common.vdscommands.SetVdsStatusVDSCommandParameters ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getVdsId ( ) , org.ovirt.engine.core.common.businessentities.VDSStatus.Reboot ) ) ; org.ovirt.engine.core.bll.FenceVdsBaseCommand.RunSleepOnReboot ( ) ; }

Target:
protected void setStatus ( ) { runVdsCommand ( VDSCommandType.SetVdsStatus , new org.ovirt.engine.core.common.vdscommands.SetVdsStatusVDSCommandParameters ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getVdsId ( ) , org.ovirt.engine.core.common.businessentities.VDSStatus.Reboot ) ) ; org.ovirt.engine.core.bll.FenceVdsBaseCommand.RunSleepOnReboot ( ) ; }
Source:
private boolean liveActionRequired ( ) { return ( ( oldIface.isPlugged ( ) ) && ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getInterface ( ) . isPlugged ( ) ) ) && ( ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) ; }

Target:
private boolean liveActionRequired ( ) { return ( ( oldVmDevice.getIsPlugged ( ) ) && ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getInterface ( ) . isPlugged ( ) ) ) && ( ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel getNetworkOption ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.EntityModel a : getItems ( ) ) { if ( ( ( org.ovirt.engine.core.common.businessentities.BootSequence ) ( a.getEntity ( ) ) ) == ( org.ovirt.engine.core.common.businessentities.BootSequence.N ) ) { return a ; } } throw new java.lang.IndexOutOfBoundsException ( ) ; }

Target:
private org.ovirt.engine.ui.uicommonweb.models.EntityModel getBootSequenceOption ( org.ovirt.engine.core.common.businessentities.BootSequence bootSequenceOption ) { for ( org.ovirt.engine.ui.uicommonweb.models.EntityModel a : getItems ( ) ) { if ( ( ( org.ovirt.engine.core.common.businessentities.BootSequence ) ( a.getEntity ( ) ) ) == bootSequenceOption ) { return a ; } } throw new java.lang.IndexOutOfBoundsException ( ) ; }
Source:
public void shouldDetectUpgradePossible ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.isUpgradePossible ( java.util.Arrays.asList ( newHost1 , newHost2 ) , java.util.Arrays.asList ( validVM ) ) , org.hamcrest.CoreMatchers.equalTo ( ValidationResult.VALID ) ) ; }

Target:
public void shouldDetectInvalidHostOsIdentifier ( ) { newHost1.setHostOs ( "which OS am I?" ) ; org.assertj.core.api.Assertions.assertThat ( validator.isUpgradePossible ( java.util.Arrays.asList ( newHost1 , newHost2 ) , java.util.Arrays.asList ( validVM ) ) ) . isNotEqualTo ( ValidationResult.VALID ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return permissionFinder.findPermissionCheckSubjects ( getNetworkId ( ) , org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getActionType ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return permissionFinder.findPermissionCheckSubjects ( getNetworkId ( ) , org.ovirt.engine.core.bll.network.cluster.DetachNetworkToClusterCommand.getActionType ( ) ) ; }
Source:
private void MemSize_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.UpdateMinAllocatedMemory ( ) ; }

Target:
private void memSize_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.updateMinAllocatedMemory ( ) ; }
Source:
public void validateVmMemoryCantRunOnVdsNotEnoughMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCanStartOnVdsHighPendingButSwapHelps ( ) { vds.setSwapFree ( 80L ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
private java.lang.Integer deserializeValue ( java.util.Map < java.lang.String , java.lang.Object > entry , java.lang.String curveKey ) { return deserializeValue ( entry , curveKey , 1 ) ; }

Target:
private java.lang.Integer deserializeValue ( java.util.Map < java.lang.String , java.lang.Object > entry , java.lang.String curveKey ) { return deserializeValue ( entry , curveKey , 1L ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotInfoReturnForXmlRpc glusterSnapshotInfo ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String snapshotName , java.lang.String volumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterSnapshotDelete ( java.lang.String snapshotName ) ;
Source:
public java.lang.String getVdsDestination ( ) { return ( getDestinationVds ( ) ) != null ? getDestinationVds ( ) . getName ( ) : null ; }

Target:
public final java.lang.String getDestinationVdsName ( ) { org.ovirt.engine.core.common.businessentities.VDS destinationVds = getDestinationVds ( ) ; return destinationVds != null ? destinationVds.getName ( ) : null ; }
Source:
public void initialize ( ) { super . initialize ( ) ; if ( ( getVm ( ) ) != null ) { updateSuggestedDiskAlias ( ) ; } getSizeExtend ( ) . setIsAvailable ( false ) ; }

Target:
public void initialize ( ) { super . initialize ( ) ; if ( ( getVm ( ) ) != null ) { updateSuggestedDiskAlias ( ) ; } else { getIsReadOnly ( ) . setIsAvailable ( false ) ; } getSizeExtend ( ) . setIsAvailable ( false ) ; }
Source:
public void setSslChanels ( java.lang.String sslChanels ) { this . sslChanels = sslChanels ; }

Target:
public void setSslChanels ( java.lang.String sslChanels ) { this . sslChanels = org.ovirt.engine.ui.common.uicommon.AbstractSpice.adjustLegacySecureChannels ( sslChanels ) ; }
Source:
public void setTaskParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { cmdEntity.setCommandParameters ( value ) ; }

Target:
public void setActionParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { this . rootCmdEntity.setCommandParameters ( value ) ; }
Source:
public void mockVdsDao ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setVdsType ( VDSType.oVirtNode ) ; org.mockito.Mockito.when ( vdsDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vds ) ; }

Target:
public void mockVdsDao ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setVdsType ( VDSType.oVirtVintageNode ) ; org.mockito.Mockito.when ( vdsDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vds ) ; }
Source:
public void addISCSIEmptyConn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "3650" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_CONNECTION ) ; }

Target:
public void addISCSIEmptyConn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "3650" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_CONNECTION ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvds_group_id ( ) { return this . mVdsStatic.getvds_group_id ( ) ; }

Target:
public void setVdsType ( org.ovirt.engine.core.common.businessentities.VDSType value ) { this . mVdsStatic.setVdsType ( value ) ; }
Source:
public void setvmt_os ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmt_osField = value ; }

Target:
public void setVmtChildCount ( int value ) { this . vmtchildCount = value ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getVds ( ) { if ( ( _vds ) == null ) { _vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( getVdsId ( ) ) ; } return _vds ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getVds ( ) { if ( ( _vds ) == null ) { _vds = vdsDao.get ( getVdsId ( ) ) ; } return _vds ; }
Source:
private void initListBoxEditors ( ) { raidTypeEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.RaidType > ( ) ) ; }

Target:
private void initListBoxEditors ( ) { raidTypeEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.RaidType > ( ) ) ; cacheDevicePathEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > ( ) ) ; cacheModeEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.CacheModeType > ( ) ) ; }
Source:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor ( value , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion , returnValue ) ; }

Target:
public static < T > org.ovirt.engine.core.common.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , T returnValue ) { return new org.ovirt.engine.core.common.utils.MockConfigRule.MockConfigDescriptor ( value , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion , returnValue ) ; }
Source:
protected java.lang.String typeAheadNameTemplateNullSafe ( java.lang.String name ) { if ( org.ovirt.engine.ui.uicompat.external.StringUtils.isNotEmpty ( name ) ) { return org.ovirt.engine.ui.common.widget.AbstractItemSelectionWidget.templates.typeAheadName ( name ) . asString ( ) ; } else { return org.ovirt.engine.ui.common.widget.AbstractItemSelectionWidget.templates.typeAheadEmptyContent ( ) . asString ( ) ; } }

Target:
protected java.lang.String typeAheadNameTemplateNullSafe ( java.lang.String name ) { if ( org.ovirt.engine.core.compat.StringHelper.isNotNullOrEmpty ( name ) ) { return org.ovirt.engine.ui.common.widget.AbstractItemSelectionWidget.templates.typeAheadName ( name ) . asString ( ) ; } else { return org.ovirt.engine.ui.common.widget.AbstractItemSelectionWidget.templates.typeAheadEmptyContent ( ) . asString ( ) ; } }
Source:
protected org.ovirt.engine.api.model.Job postPopulate ( org.ovirt.engine.api.model.Job model ) { model.getStatus ( ) . setState ( "started" ) ; return super . postPopulate ( model ) ; }

Target:
protected org.ovirt.engine.api.model.Job postPopulate ( org.ovirt.engine.api.model.Job model ) { model.setStatus ( JobStatus.STARTED ) ; return super . postPopulate ( model ) ; }
Source:
java.lang.String vmDisksLabel ( int numOfDisks , java.lang.String diskAliases ) ;

Target:
java.lang.String snapshotDisksLabel ( int numOfDisks , java.lang.String diskAliases ) ;
Source:
protected void clearSelection ( ) { if ( hasTableSelectionModel ( ) ) { org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTableSelectionModel ( ) . clear ( ) ; } }

Target:
protected void clearSelection ( ) { if ( ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) ) != null ) { org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) . getSelectionModel ( ) . clear ( ) ; } }
Source:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return false ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel model ) { return org.ovirt.engine.ui.webadmin.widget.table.column.NetworkRoleColumnHelper.getTooltip ( ( model.isVmNetwork ( ) ? java.util.Collections.singletonMap ( vmImage , constants.vmItemInfo ( ) ) : java.util.Collections.< com.google.gwt.safehtml.shared.SafeHtml , java.lang.String > emptyMap ( ) ) ) ; }
Source:
public void setActionParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { this . actionParameters = value ; }

Target:
public void setCommandParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { this . commandParameters = value ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StoragePool > ) ( source ) ) : null ; }
Source:
public boolean execute ( ) { if ( ( getCurrentSessionId ( ) ) != null ) { com.google.gwt.http.client.RequestBuilder requestBuilder = createRequest ( ) ; setPersistentAuthHeader ( requestBuilder ) ; sendRequest ( requestBuilder , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; return true ; } else { return false ; } }

Target:
protected void processResponse ( com.google.gwt.http.client.Response response ) { java.lang.String sessionIdFromHeader = response.getHeader ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_HEADER ) ; if ( sessionIdFromHeader != null ) { setSessionId ( sessionIdFromHeader ) ; } reuseSession ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterVmSubTabLabel ( ) , 4 , ginjector.getSubTabClusterVmModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.clusterVmSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VM > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachinePermissionSubTabLabel ( ) , 7 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VM > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachinePermissionPresenter.constants.virtualMachinePermissionSubTabLabel ( ) , 7 , modelProvider ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getTenantName ( ) . setIsAvailable ( ( ( ( org.ovirt.engine.core.common.businessentities.ProviderType ) ( getType ( ) . getSelectedItem ( ) ) ) == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) ) ; }

Target:
private boolean isTypeOpenStackNetwork ( ) { return ( ( org.ovirt.engine.core.common.businessentities.ProviderType ) ( getType ( ) . getSelectedItem ( ) ) ) == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ; }
Source:
public void setRemapCtrlAltDelete ( boolean remapCtrlAltDelete ) { this . remapCtrlAltDelete = remapCtrlAltDelete ; }

Target:
public boolean isRemapCtrlAltDelete ( ) { return consoleOptions.isRemapCtrlAltDelete ( ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . addVmToPool ( new org.ovirt.engine.core.common.businessentities.vm_pool_map ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolId ( ) ) ) ; org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . addVmToPool ( new org.ovirt.engine.core.common.businessentities.VmPoolMap ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolId ( ) ) ) ; org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }
Source:
public java.lang.String getVmDomain ( ) { return this . vmStatic.getDomain ( ) ; }

Target:
public void setVmInit ( org.ovirt.engine.core.common.businessentities.VmInit vmInit ) { this . vmStatic.setVmInit ( vmInit ) ; }
Source:
public void completeBond ( org.ovirt.engine.core.common.businessentities.network.Bond bond ) { complete ( new org.ovirt.engine.core.bll.network.host.NicNameNicIdCompleter.NicNameAndNicIdAccessors.FromBond ( bond ) ) ; }

Target:
public void completeCreateOrUpdateBondData ( org.ovirt.engine.core.common.action.CreateOrUpdateBond bond ) { complete ( new org.ovirt.engine.core.bll.network.host.NicNameNicIdCompleter.NicNameAndNicIdAccessors.FromCreateOrUpdateBondData ( bond ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getUpServerId ( org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.core.common.businessentities.VDS vds = getGlusterUtils ( ) . getUpServer ( clusterId ) ; if ( vds == null ) { throw new java.lang.RuntimeException ( "No up server found" ) ; } return vds.getId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getUpServerId ( org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.core.common.businessentities.VDS vds = glusterUtil.getUpServer ( clusterId ) ; if ( vds == null ) { throw new java.lang.RuntimeException ( "No up server found" ) ; } return vds.getId ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigModel model ) { driver.edit ( model ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateAllowedNetworksPanelVisibility ( model ) ; }
Source:
public void vmTypeChanged ( org.ovirt.engine.core.common.businessentities.VmType vmType ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( ( vmType == ( org.ovirt.engine.core.common.businessentities.VmType.Desktop ) ) ) ; }

Target:
public void vmTypeChanged ( org.ovirt.engine.core.common.businessentities.VmType vmType ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( ( vmType == ( org.ovirt.engine.core.common.businessentities.VmType.Desktop ) ) ) ; getModel ( ) . getAllowConsoleReconnect ( ) . setEntity ( ( vmType == ( org.ovirt.engine.core.common.businessentities.VmType.Server ) ) ) ; }
Source:
void addStyles ( ) { pathEditor.addContentWidgetStyleName ( style.pathEditorContent ( ) ) ; expanderContent.setClassName ( style.expanderContent ( ) ) ; }

Target:
void addStyles ( ) { pathEditor.addContentWidgetContainerStyleName ( style.pathEditorContent ( ) ) ; expanderContent.setClassName ( style.expanderContent ( ) ) ; }
Source:
public void testExtractProperIpv6AddressWithTooLongPrefix ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Address ( "::/1234" ) , org.hamcrest.Matchers.is ( "::/1234" ) ) ; }

Target:
public void testExtractIpv6AddressEmptyString ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Address ( "" ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
private org.ovirt.engine.core.common.job.Job createJob ( ) { org.ovirt.engine.core.common.job.Job job = new org.ovirt.engine.core.common.job.Job ( ) ; job.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; return job ; }

Target:
private org.ovirt.engine.core.common.job.Job createJob ( ) { org.ovirt.engine.core.common.job.Job job = new org.ovirt.engine.core.common.job.Job ( ) ; job.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return job ; }
Source:
private void initAllModels ( boolean fetchFromBackend ) { if ( fetchFromBackend ) { startProgress ( null ) ; queryNetworks ( ) ; } else { initNetworkModels ( ) ; initNicModels ( ) ; } }

Target:
private void initAllModels ( boolean fetchFromBackend ) { if ( fetchFromBackend ) { startProgress ( null ) ; queryLabels ( ) ; } else { initLabelModels ( ) ; initNetworkModels ( ) ; initNicModels ( ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.aaa.AuthzGroup > Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( java.util.List < org.ovirt.engine.core.common.businessentities.aaa.AuthzGroup > ) ( source ) ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Cluster > ( ) ; } return source ; }
Source:
public void testPreferParameters ( ) { org.junit.Assert.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "persistent-auth; x=0; y=0" ) ) ; org.junit.Assert.assertEquals ( ( ( FiltersHelper.PREFER_PERSISTENCE_AUTH ) | ( FiltersHelper.PREFER_NEW_AUTH ) ) , getPrefer ( "persistent-auth, new-auth; x=0; y=0" ) ) ; }

Target:
public void testPreferParameters ( ) { org.junit.jupiter.api.Assertions.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "persistent-auth; x=0; y=0" ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( ( ( FiltersHelper.PREFER_PERSISTENCE_AUTH ) | ( FiltersHelper.PREFER_NEW_AUTH ) ) , getPrefer ( "persistent-auth, new-auth; x=0; y=0" ) ) ; }
Source:
public void testGetFilteredWithPermissions ( ) { org.ovirt.engine.core.common.businessentities.vm_pools result = dao.get ( existingVmPool.getvm_pool_id ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetResult ( result ) ; }

Target:
public void testGetFilteredWithPermissions ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getvm_pool_id ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetResult ( result ) ; }