auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testSendReceive ( ) throws java.lang.Exception { client.sendFile ( org.ovirt.engine.core.utils.ssh.TransferTest.local1.getAbsolutePath ( ) , remote ) ; client.receiveFile ( remote , local2.getAbsolutePath ( ) ) ; assertArrayEquals ( digestFile ( org.ovirt.engine.core.utils.ssh.TransferTest.local1 ) , digestFile ( local2 ) ) ; }

Target:
public void testSendReceive ( ) throws java.lang.Exception { client.sendFile ( org.ovirt.engine.core.utils.ssh.TransferTest.local1.getAbsolutePath ( ) , remote ) ; client.receiveFile ( remote , local2.getAbsolutePath ( ) ) ; org.junit.Assert.assertArrayEquals ( digestFile ( org.ovirt.engine.core.utils.ssh.TransferTest.local1 ) , digestFile ( local2 ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getDomainList ( ) { return org.ovirt.engine.core.aaa.SSOOAuthServiceUtils.getDomainList ( org.ovirt.engine.core.bll.GetDomainListQuery.getSessionDataContainer ( ) . getSsoAccessToken ( org.ovirt.engine.core.bll.GetDomainListQuery.getParameters ( ) . getSessionId ( ) ) ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > getDomainList ( ) { return org.ovirt.engine.core.aaa.SsoOAuthServiceUtils.getDomainList ( org.ovirt.engine.core.bll.GetDomainListQuery.getSessionDataContainer ( ) . getSsoAccessToken ( org.ovirt.engine.core.bll.GetDomainListQuery.getParameters ( ) . getSessionId ( ) ) ) ; }
Source:
public void testAddExistingBlockDomainSuccessfully ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.storage.domain.AddExistingBlockStorageDomainCommandTest.getLUNs ( ) ) . when ( command ) . getLUNsFromVgInfo ( ) ; command.executeCommand ( ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getSucceeded ( ) ) ; }

Target:
public void testAddExistingBlockDomainSuccessfully ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.storage.domain.AddExistingBlockStorageDomainCommandTest.getLUNs ( ) ) . when ( command ) . getLUNsFromVgInfo ( ) ; command.executeCommand ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.getReturnValue ( ) . getSucceeded ( ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml imageTextSetupNetworkUsage ( com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String text , java.lang.String color ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml imageTextSetupNetworkUsage ( com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String text , com.google.gwt.safecss.shared.SafeStyles color ) ;
Source:
protected void ExecuteIrsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HSMStopTask , new org.ovirt.engine.core.common.vdscommands.HSMTaskGuidBaseVDSCommandParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getParameters ( ) . getTaskId ( ) ) ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HSMStopTask , new org.ovirt.engine.core.common.vdscommands.HSMTaskGuidBaseVDSCommandParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getParameters ( ) . getTaskId ( ) ) ) ; }
Source:
public void onSuccess ( final org.ovirt.engine.core.common.queries.VdcQueryReturnValue result ) { operation.getCallback ( ) . onSuccess ( operation , result ) ; }

Target:
public void onFailure ( java.lang.Throwable exception ) { operation.getCallback ( ) . onFailure ( operation , exception ) ; }
Source:
public boolean isStateless ( ) { return vmStatic.getis_stateless ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DisplayType getDefaultDisplayType ( ) { return vmStatic.getDefaultDisplayType ( ) ; }
Source:
public int getRow ( ) { return row ; }

Target:
public boolean isValid ( ) { if ( ( autoPlacement ) && ( ( autoPlacementRow ) == ( org.ovirt.engine.ui.common.widget.form.FormItem.UNASSIGNED_ROW ) ) ) { return false ; } return true ; }
Source:
private boolean isDiskImage ( ) { return ( ( ( getOldDisk ( ) ) != null ) && ( ( getNewDisk ( ) ) != null ) ) && ( ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) == ( getOldDisk ( ) . getDiskStorageType ( ) ) ) ; }

Target:
protected boolean updateWipeAfterDeleteRequested ( ) { return ( getNewDisk ( ) . isWipeAfterDelete ( ) ) != ( getOldDisk ( ) . isWipeAfterDelete ( ) ) ; }
Source:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmId ) ; }

Target:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.lockVm ( vmDynamic , compensationContext ) ; }
Source:
public final boolean setUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }

Target:
public java.lang.String getPrincipal ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , false ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase getQueryParameters ( ) { return new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , clusterId.toString ( ) ) ; }
Source:
public java.lang.String getTicket ( ) { return consoleOptions.getTicket ( ) ; }

Target:
public org.ovirt.engine.core.common.console.ConsoleOptions getOptions ( ) { return consoleOptions ; }
Source:
private void processVmPoolOnStopVm ( ) { org.ovirt.engine.core.bll.VmPoolHandler.processVmPoolOnStopVm ( org.ovirt.engine.core.bll.RunVmCommandBase.getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( org.ovirt.engine.core.bll.RunVmCommandBase.getExecutionContext ( ) ) ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.bll.VmPoolHandler.processVmPoolOnStopVm ( getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( getExecutionContext ( ) ) ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { return storagePool.getName ( ) ; }

Target:
private void initListBoxEditors ( ) { dataCenterEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ) ; clusterEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.VDSGroup > ( ) ) ; typeListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType > ( ) ) ; }
Source:
public void testGetAllForVdsGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForVdsGroup ( org.ovirt.engine.core.dao.VmTemplateDaoTest.VDS_GROUP_ID ) ; org.ovirt.engine.core.dao.VmTemplateDaoTest.assertGetAllResult ( result ) ; for ( org.ovirt.engine.core.common.businessentities.VmTemplate template : result ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmTemplateDaoTest.VDS_GROUP_ID , template.getVdsGroupId ( ) ) ; } }

Target:
public void testGetAllForCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForCluster ( org.ovirt.engine.core.dao.VmTemplateDaoTest.CLUSTER_ID ) ; org.ovirt.engine.core.dao.VmTemplateDaoTest.assertGetAllResult ( result ) ; for ( org.ovirt.engine.core.common.businessentities.VmTemplate template : result ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmTemplateDaoTest.CLUSTER_ID , template.getClusterId ( ) ) ; } }
Source:
public void tearDown ( ) { if ( ( client ) != null ) { client.disconnect ( ) ; client = null ; } }

Target:
public void tearDown ( ) { try { if ( ( client ) != null ) { client.close ( ) ; client = null ; } } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void notAllVfsAreFree ( ) { allVfsAreFreeTest ( false ) ; org.junit.Assert.assertThat ( validator.allVfsAreFree ( hostNicVfsConfigHelper ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED , java.lang.String.format ( VfsConfigValidator.NIC_NAME_REPLACEMENT , nic.getName ( ) ) ) ) ; }

Target:
public void notAllVfsAreFree ( ) { allVfsAreFreeTest ( false ) ; org.junit.Assert.assertThat ( validator.allVfsAreFree ( hostNicVfsConfigHelper ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED , java.lang.String.format ( VfsConfigValidator.NIC_NAME_REPLACEMENT , nic.getName ( ) ) ) ) ; }
Source:
protected void forceRefreshWithoutTimers ( ) { if ( ( getEntity ( ) ) != null ) { super . forceRefreshWithoutTimers ( ) ; } }

Target:
protected void forceRefreshWithoutTimers ( ) { if ( ( org.ovirt.engine.ui.uicommonweb.models.events.SubTabEventListModel.getEntity ( ) ) != null ) { super . forceRefreshWithoutTimers ( ) ; } }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.UserProfile > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.UserProfile > result = dao.getAll ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , result.size ( ) ) ; }
Source:
protected boolean isStorageWithSameNameExists ( ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDao ( ) . getByName ( getStorageDomain ( ) . getStorageName ( ) ) ) != null ; }

Target:
protected boolean isStorageWithSameNameExists ( ) { return ( org.ovirt.engine.core.bll.storage.StorageDomainManagementCommandBase.getStorageDomainStaticDAO ( ) . getByName ( getStorageDomain ( ) . getStorageName ( ) ) ) != null ; }
Source:
private java.lang.String nullToEmptyString ( java.lang.Object obj ) { return toStringNullToDefault ( obj , "" ) ; }

Target:
private static java.lang.String nullToEmptyString ( java.lang.Object obj ) { return java.util.Objects.toString ( obj , "" ) ; }
Source:
public static boolean isHostBelongsToAnyOfClusters ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters , org.ovirt.engine.core.common.businessentities.VDS host ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster : clusters ) { if ( cluster.getId ( ) . equals ( host.getVdsGroupId ( ) ) ) { return true ; } } return false ; }

Target:
public static boolean isHostBelongsToAnyOfClusters ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Cluster > clusters , org.ovirt.engine.core.common.businessentities.VDS host ) { for ( org.ovirt.engine.core.common.businessentities.Cluster cluster : clusters ) { if ( cluster.getId ( ) . equals ( host.getClusterId ( ) ) ) { return true ; } } return false ; }
Source:
public void updateAllDiskImageSnapshotsStatusWithCompensation ( final org.ovirt.engine.core.compat.Guid diskId , final org.ovirt.engine.core.common.businessentities.storage.ImageStatus status , org.ovirt.engine.core.common.businessentities.storage.ImageStatus statusForCompensation , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { updateAllDiskImagesSnapshotsStatusInTransactionWithCompensation ( java.util.Collections.singletonList ( diskId ) , status , statusForCompensation , compensationContext ) ; }

Target:
public static void updateAllDiskImageSnapshotsStatusWithCompensation ( final org.ovirt.engine.core.compat.Guid diskId , final org.ovirt.engine.core.common.businessentities.storage.ImageStatus status , org.ovirt.engine.core.common.businessentities.storage.ImageStatus statusForCompensation , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImagesSnapshotsStatusInTransactionWithCompensation ( java.util.Collections.singletonList ( diskId ) , status , statusForCompensation , compensationContext ) ; }
Source:
public void linkedWhenUnlinkingNotSupported ( ) throws java.lang.Exception { unlinkingTest ( ValidationResult.VALID , false , true ) ; }

Target:
public void nullNetworkWhenNoPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , null , false ) ; }
Source:
public void setUp ( ) { createCluster ( ) ; createParameters ( ) ; injectMocks ( ) ; createCommandContext ( ) ; createCommand ( ) ; mockBackend ( ) ; }

Target:
public void setUp ( ) { mockDao ( ) ; mockBackend ( ) ; }
Source:
protected void postConstruct ( ) { super . postConstruct ( ) ; if ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) != null ) { needsHostDevices = hostDeviceManager.checkVmNeedsHostDevices ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } acquireHostDevicesLock ( ) ; }

Target:
protected void postConstruct ( ) { super . postConstruct ( ) ; if ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) != null ) { needsHostDevices = hostDeviceManager.checkVmNeedsDirectPassthrough ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } acquireHostDevicesLock ( ) ; }
Source:
public void reuseSession ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , sessionId ) ; scheduleKeepAliveHeartbeat ( ) ; } else { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; } }

Target:
private void processSessionId ( java.lang.String sessionId ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , sessionId ) ; scheduleKeepAliveHeartbeat ( ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateAlerts ( ) ; UpdateMemory ( ) ; UpdateSwapUsed ( ) ; UpdateProperties ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateAlerts ( ) ; UpdateMemory ( ) ; UpdateSwapUsed ( ) ; UpdateProperties ( ) ; } }
Source:
public void setQuotaName ( java.lang.String value ) { this . mVmStatic.setQuotaName ( value ) ; }

Target:
public boolean isQuotaDefault ( ) { return this . vmStatic.isQuotaDefault ( ) ; }
Source:
void save ( org.ovirt.engine.core.common.businessentities.VM vm ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForVnicProfile ( org.ovirt.engine.core.compat.Guid vnicProfileId ) ;
Source:
public boolean IsVmDuringInitiating ( org.ovirt.engine.core.compat.Guid vm_guid ) { return asyncRunningVms.contains ( vm_guid ) ; }

Target:
public boolean isVmDuringInitiating ( org.ovirt.engine.core.compat.Guid vm_guid ) { return asyncRunningVms.contains ( vm_guid ) ; }
Source:
public void execute ( ) { getTable ( ) . getSelectionModel ( ) . setSelected ( vmNetworkInterface , true ) ; }

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 ) { updateInfoPanel ( ) ; }
Source:
public static boolean hasVmRngDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.RNG ) . isEmpty ( ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getWatchdogs ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.WATCHDOG ) ; }
Source:
public boolean add ( T e ) { boolean b = super . add ( e ) ; OnCollectionChanged ( ) ; return b ; }

Target:
public boolean add ( T e ) { boolean b = super . add ( e ) ; onCollectionChanged ( ) ; return b ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Native ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Auto ) ; }
Source:
public void clearBuff ( ) { if ( ( this . nioEngine ) != null ) { this . nioEngine.clearBuff ( ) ; } outbox.clear ( ) ; }

Target:
public void postDisconnect ( ) { if ( ( this . nioEngine ) != null ) { this . nioEngine.clearBuff ( ) ; } outbox.clear ( ) ; this . nioEngine = null ; }
Source:
protected void endActionOnAllImageGroups ( ) { for ( org.ovirt.engine.core.common.action.VdcActionParametersBase p : getParameters ( ) . getImagesParameters ( ) ) { p.setTaskGroupSuccess ( getParameters ( ) . getTaskGroupSuccess ( ) ) ; getBackend ( ) . EndAction ( getImagesActionType ( ) , p ) ; } }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { return snapshotsManager.addActiveSnapshot ( snapshotId , getVm ( ) , getMemoryVolumeForNewActiveSnapshot ( ) , getCompensationContext ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { if ( ! ( object.isEnabled ( ) ) ) { return constants.disabledPolicyUnit ( ) ; } return constants.empty ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { if ( ! ( object.isEnabled ( ) ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.ManagePolicyUnitPopupView.constants.disabledPolicyUnit ( ) ; } return org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.ManagePolicyUnitPopupView.constants.empty ( ) ; }
Source:
public void destroy ( ) { call ( widget.getElement ( ) , org.ovirt.engine.ui.common.widget.tooltip.Tooltip.DESTROY ) ; }

Target:
public void destroy ( ) { call ( widget.getElement ( ) , org.ovirt.engine.ui.common.widget.tooltip.Tooltip.DESTROY ) ; if ( ( clickHandler ) != null ) { clickHandler.removeHandler ( ) ; clickHandler = null ; } }
Source:
public static void checkSucceeded ( org.ovirt.engine.core.bll.QueriesCommandBase < ? > query , boolean expected ) { org.junit.Assert.assertEquals ( expected , query.getQueryReturnValue ( ) . getSucceeded ( ) ) ; }

Target:
public static void checkSucceeded ( org.ovirt.engine.core.bll.QueriesCommandBase < ? > query , boolean expected ) { org.junit.jupiter.api.Assertions.assertEquals ( expected , query.getQueryReturnValue ( ) . getSucceeded ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getRemoveCommand ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( com.google.gwt.user.client.ui.RadioButton ) ( event.getSource ( ) ) ) . getValue ( ) ) { handleRadioButtonClick ( event ) ; } }
Source:
public void setwrite_rate ( int value ) { this . writeRateFromDiskImageDynamic = value ; }

Target:
public void setWriteRate ( int writeRateFromDiskImageDynamic ) { this . writeRateFromDiskImageDynamic = writeRateFromDiskImageDynamic ; }
Source:
protected void executeDiskModifications ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { }

Target:
protected void executeDiskModifications ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { getcurrentVm ( ) . setId ( vmId ) ; model.getInstanceImages ( ) . executeDiskModifications ( getcurrentVm ( ) ) ; }
Source:
public void testValidateGatewayWhenGatewayIsNull ( ) throws java.lang.Exception { doTestValidateGateway ( null , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateGatewayIsManagementNetworkAndMultipleGatewaysSupported ( ) { doTestValidateGateway ( "someGateway" , true , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockEntities ( storageId ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void validateSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockEntities ( storageId ) ; runAndAssertValidateSuccess ( ) ; }
Source:
protected void separateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic parameterMasterVm ) { if ( ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVdsGroup ( ) ) != null ) { org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . separateCustomPropertiesToUserAndPredefined ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVdsGroup ( ) . getcompatibility_version ( ) , parameterMasterVm ) ; } }

Target:
protected void separateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic parameterMasterVm ) { if ( ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVdsGroup ( ) ) != null ) { org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . separateCustomPropertiesToUserAndPredefined ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) , parameterMasterVm ) ; } }
Source:
public void canDoActionFileToBlockSupported ( ) { storagePool.setCompatibilityVersion ( Version.v3_6 ) ; canDoActionInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.NFS , StorageType.ISCSI , true ) ; }

Target:
public void validateFileToBlockSupported ( ) { storagePool.setCompatibilityVersion ( Version.v3_6 ) ; validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.NFS , StorageType.ISCSI , true ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , committedDiskSize , dynamicData , staticData , storageDomainSharedStatus , storageDomainOverCommitPercent , storagePoolIsoMapData , totalDiskSize ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , committedDiskSize , dynamicData , staticData , storageDomainSharedStatus , storageDomainOverCommitPercent , storagePoolIsoMapData , totalDiskSize , supportsDiscard , supportsDiscardZeroesData , hostedEngineStorage ) ; }
Source:
public long getaudit_log_id ( ) { return this . auditLogId ; }

Target:
public long getAuditLogId ( ) { return this . auditLogId ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser getByUsername ( java.lang.String username ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "username" , username ) ; return getCallsHandler ( ) . executeRead ( "GetUserByUserName" , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser getByUsernameAndDomain ( java.lang.String username , java.lang.String domainName ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "username" , username ) . addValue ( "domain" , domainName ) ; return getCallsHandler ( ) . executeRead ( "GetUserByUserNameAndDomain" , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance , parameterSource ) ; }
Source:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { super . markAsInvalid ( validationHints ) ; }

Target:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { super . markAsInvalid ( validationHints ) ; org.ovirt.engine.ui.common.widget.editor.ListModelCheckBoxGroupEditor.getValidatedWidgetStyle ( ) . setDisplay ( Display.INLINE_BLOCK ) ; }
Source:
public java.util.Date getGuestLastLoginTime ( ) { return this . vmDynamic.getGuestLastLoginTime ( ) ; }

Target:
public java.lang.String getEmulatedMachine ( ) { return this . vmDynamic.getEmulatedMachine ( ) ; }
Source:
public static org.ovirt.engine.core.common.queries.VdcQueryParametersBase eqQueryParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.queries.VdcQueryParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { org.easymock.classextension.EasyMock.reportMatcher ( new org.ovirt.engine.api.restapi.test.util.TestHelper.QueryParametersEquals ( clz , names , values ) ) ; return null ; }

Target:
public static org.ovirt.engine.core.common.queries.VdcQueryParametersBase eqQueryParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.queries.VdcQueryParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { org.easymock.EasyMock.reportMatcher ( new org.ovirt.engine.api.restapi.test.util.TestHelper.QueryParametersEquals ( clz , names , values ) ) ; return null ; }
Source:
public void testEmptyGetAllDisksByDiskProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages = dao.getAllForDiskProfile ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( diskImages ) ; org.junit.Assert.assertTrue ( diskImages.isEmpty ( ) ) ; }

Target:
public void testEmptyGetAllDisksByDiskProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages = dao.getAllForDiskProfiles ( java.util.Collections.singletonList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; org.junit.Assert.assertNotNull ( diskImages ) ; org.junit.Assert.assertTrue ( diskImages.isEmpty ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup mockVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setvds_group_id ( vdsGroupId ) ; vdsGroup.setcompatibility_version ( new org.ovirt.engine.core.compat.Version ( ) ) ; vdsGroup.setstorage_pool_id ( storagePoolId ) ; return vdsGroup ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDSGroup mockVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setvds_group_id ( vdsGroupId ) ; group.setcompatibility_version ( new org.ovirt.engine.core.compat.Version ( ) ) ; group.setstorage_pool_id ( storagePoolId ) ; return group ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.scheduling.ClusterPolicy > result = dao.getAll ( java.util.Collections.emptyMap ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.ClusterPolicyDaoTest.NUMBER_OF_CLUSTER_POLICIES , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.scheduling.ClusterPolicy > result = dao.getAll ( java.util.Collections.emptyMap ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.ClusterPolicyDaoTest.NUMBER_OF_CLUSTER_POLICIES , result.size ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchInstanceTypes ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVmTemplateDao ( ) , true , null ) ; }

Target:
private final < T extends org.ovirt.engine.core.common.businessentities.IVdcQueryable > java.util.List < T > genericSearch ( final org.ovirt.engine.core.dao.SearchDAO < T > dao , final boolean useCache ) { return genericSearch ( dao , useCache , null ) ; }
Source:
public void onSSOTokenChange ( org.ovirt.engine.ui.frontend.communication.SSOTokenChangeEvent event ) { this . ssoToken = event.getToken ( ) ; if ( ( this . ssoToken ) == null ) { this . ssoToken = "" ; } checkIfInitFinished ( ) ; }

Target:
public void onSsoTokenChange ( org.ovirt.engine.ui.frontend.communication.SsoTokenChangeEvent event ) { this . ssoToken = event.getToken ( ) ; if ( ( this . ssoToken ) == null ) { this . ssoToken = "" ; } checkIfInitFinished ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.BrickProfileDetails > getBrickProfileDetails ( ) { org.ovirt.engine.core.common.businessentities.gluster.BrickProfileDetails profileDetails = new org.ovirt.engine.core.common.businessentities.gluster.BrickProfileDetails ( ) ; profileDetails.setBrickId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; profileDetails.setStatsInfo ( getStatsInfo ( ) ) ; return java.util.Collections.singletonList ( profileDetails ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.BrickProfileDetails > getBrickProfileDetails ( ) { org.ovirt.engine.core.common.businessentities.gluster.BrickProfileDetails profileDetails = new org.ovirt.engine.core.common.businessentities.gluster.BrickProfileDetails ( ) ; profileDetails.setBrickId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; profileDetails.setProfileStats ( getStatsInfo ( ) ) ; return java.util.Collections.singletonList ( profileDetails ) ; }
Source:
public void vdsName ( ) { b.setVdsName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; final java.lang.String s = b.getVdsName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , s ) ; }

Target:
public void vdsName ( ) { b.setVdsName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; final java.lang.String s = b.getVdsName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , s ) ; }
Source:
public void testNoRepeats ( ) { java.lang.String sample = org.ovirt.engine.core.utils.Ticketing.GenerateOTP ( ) ; for ( int x = 0 ; x < 1000 ; x ++ ) { java.lang.String other = org.ovirt.engine.core.utils.Ticketing.GenerateOTP ( ) ; org.junit.Assert.assertNotSame ( sample , other ) ; } }

Target:
public void testNoRepeats ( ) { java.lang.String sample = org.ovirt.engine.core.utils.Ticketing.generateOTP ( ) ; for ( int x = 0 ; x < 1000 ; x ++ ) { java.lang.String other = org.ovirt.engine.core.utils.Ticketing.generateOTP ( ) ; org.junit.Assert.assertNotSame ( sample , other ) ; } }
Source:
public static java.lang.String getMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { return org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.get ( logType ) ; }

Target:
public static java.lang.String getMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { java.lang.String message = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.get ( logType ) ; return message == null ? "" : message ; }
Source:
public void remove ( org.ovirt.engine.core.compat.Guid commandId ) { commandMap.remove ( commandId ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . remove ( commandId ) ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . remove ( commandId ) ; return null ; }
Source:
protected java.lang.String clientPlatformType ( ) { return org.ovirt.engine.ui.webadmin.uicommon.WebAdminConfigurator.clientAgentType.getPlatform ( ) ; }

Target:
protected java.lang.String clientPlatformType ( ) { return clientAgentType.getPlatform ( ) ; }
Source:
public void init ( ) { org.ovirt.engine.core.bll.VmHandler.init ( ) ; mockVmPropertiesUtils ( ) ; org.mockito.Mockito.doNothing ( ) . when ( vmPropertiesUtils ) . separeteCustomPropertiesToUserAndPredefined ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Version.class ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) ) ; }

Target:
public void init ( ) { org.ovirt.engine.core.bll.VmHandler.init ( ) ; mockVmPropertiesUtils ( ) ; org.mockito.Mockito.doNothing ( ) . when ( vmPropertiesUtils ) . separateCustomPropertiesToUserAndPredefined ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Version.class ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) ) ; }
Source:
public org.ovirt.engine.api.model.Steps list ( ) { org.ovirt.engine.core.common.queries.GetStepsByJobIdQueryParameters params = new org.ovirt.engine.core.common.queries.GetStepsByJobIdQueryParameters ( jobId ) ; java.util.List < org.ovirt.engine.api.model.Step > steps = getBackendCollection ( VdcQueryType.GetStepsByJobId , params ) ; return mapCollection ( steps ) ; }

Target:
public org.ovirt.engine.api.model.Steps list ( ) { org.ovirt.engine.core.common.queries.GetStepsWithSubjectEntitiesByJobIdQueryParameters params = new org.ovirt.engine.core.common.queries.GetStepsWithSubjectEntitiesByJobIdQueryParameters ( jobId ) ; java.util.List < org.ovirt.engine.api.model.Step > steps = getBackendCollection ( VdcQueryType.GetStepsWithSubjectEntitiesByJobId , params ) ; return mapCollection ( steps ) ; }
Source:
private void setHasSearchStringPrefix ( boolean value ) { if ( ( hasSearchStringPrefix ) != value ) { hasSearchStringPrefix = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "HasSearchStringPrefix" ) ) ; } }

Target:
private void setHasSearchStringPrefix ( boolean value ) { if ( ( hasSearchStringPrefix ) != value ) { hasSearchStringPrefix = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HasSearchStringPrefix" ) ) ; } }
Source:
protected boolean UpdateVmImSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.UpdateVmInSpm ( getVm ( ) . getstorage_pool_id ( ) , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.VM [ ] { getVm ( ) } ) ) ) ; }

Target:
protected boolean updateVmInSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.UpdateVmInSpm ( getVm ( ) . getstorage_pool_id ( ) , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.VM [ ] { getVm ( ) } ) ) ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return vds.getName ( ) ; }

Target:
void initListBoxEditors ( ) { hostListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.VDS > ( ) ) ; }
Source:
public void updateNetConfigDirty ( org.ovirt.engine.core.compat.Guid id , java.lang.Boolean netConfigDirty ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setNetConfigDirty ( netConfigDirty ) ; update ( entity ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsDynamic get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetVdsDynamicByVdsId" , org.ovirt.engine.core.dao.VdsDynamicDAODbFacadeImpl.VdcDynamicRowMapper.instance , parameterSource ) ; }
Source:
public void externalNetworkVlanInvalid ( ) { org.mockito.Mockito.when ( network.getVlanId ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( ) ) ; org.junit.Assert.assertThat ( validator.externalNetworkVlanValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_WITH_VLAN_MUST_BE_LABELED ) ) ; }

Target:
public void externalNetworkVlanInvalid ( ) { org.mockito.Mockito.when ( network.getVlanId ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( ) ) ; org.junit.Assert.assertThat ( validator.externalNetworkVlanValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_WITH_VLAN_MUST_BE_LABELED ) ) ; }
Source:
public void testValidateValid ( ) { final org.ovirt.engine.core.bll.ValidationResult actual = underTest.validate ( mockVM ) ; org.junit.Assert.assertThat ( actual , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateValid ( ) { final org.ovirt.engine.core.bll.ValidationResult actual = underTest.validate ( mockVM ) ; org.hamcrest.MatcherAssert.assertThat ( actual , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public static java.lang.String getConstraint ( javax.ws.rs.core.UriInfo uriInfo , java.lang.String defaultQuery , java.lang.Class < ? > clz ) { return org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( uriInfo , defaultQuery , clz , true ) ; }

Target:
public static java.lang.String getConstraint ( javax.ws.rs.core.HttpHeaders headers , javax.ws.rs.core.UriInfo ui , java.lang.String defaultQuery , java.lang.Class < ? > clz ) { return org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( headers , ui , defaultQuery , clz , true ) ; }
Source:
public void validateNonExistingJobFails ( ) { command.getParameters ( ) . setParentId ( org.ovirt.engine.core.bll.AddExternalStepCommandTest.nonExistingJobId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateNonExistingJobFails ( ) { command.getParameters ( ) . setParentId ( org.ovirt.engine.core.bll.AddExternalStepCommandTest.nonExistingJobId ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy.getFromStorageDomainId ( getParameters ( ) . getSourceStorageDomainId ( ) ) ; } return providerProxy ; }

Target:
protected org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy.getFromStorageDomainId ( org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getSourceStorageDomainId ( ) ) ; } return providerProxy ; }
Source:
public void endWithFailure ( ) { super . endWithFailure ( ) ; if ( getEnclosingCommand ( ) . getReturnValue ( ) . getSucceeded ( ) ) { getEnclosingCommand ( ) . getParameters ( ) . setExecutionIndex ( 0 ) ; } }

Target:
protected void revertTask ( ) { if ( getEnclosingCommand ( ) . getReturnValue ( ) . getSucceeded ( ) ) { getEnclosingCommand ( ) . getParameters ( ) . setExecutionIndex ( 0 ) ; } }
Source:
public void testGetFilteredWithPermissionsNoPermissionsAndNoFilter ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getvm_pool_id ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetResult ( result ) ; }

Target:
public void testGetFilteredWithPermissionsNoPermissionsAndNoFilter ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getVmPoolId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetResult ( result ) ; }
Source:
public void hideLabel ( ) { getLabelElement ( ) . addClassName ( style.labelHidden ( ) ) ; }

Target:
public void setAddLabelStyleNames ( java.lang.String styleNames ) { addLabelStyleNames ( styleNames ) ; }
Source:
public boolean isAutoSuspend ( ) { return this . vmStatic.getis_auto_suspend ( ) ; }

Target:
public void setAutoSuspend ( boolean value ) { this . vmStatic.setAutoSuspend ( value ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getId ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getDiskDescription ( ) ; }
Source:
protected void setActionMessageParameters ( ) { switch ( getParameters ( ) . getAction ( ) ) { case START : addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; break ; default : break ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_BRICK ) ; }

Target:
protected void setActionMessageParameters ( ) { switch ( getParameters ( ) . getAction ( ) ) { case START : addCanDoActionMessage ( EngineMessage.VAR__ACTION__START ) ; break ; default : break ; } addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_BRICK ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.IdParameters prms = new org.ovirt.engine.core.common.action.IdParameters ( asGuid ( id ) ) ; return performAction ( VdcActionType.RemoveQuota , prms ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.IdParameters prms = new org.ovirt.engine.core.common.action.IdParameters ( asGuid ( id ) ) ; return performAction ( ActionType.RemoveQuota , prms ) ; }
Source:
public void testGetAncestorForSon ( ) { org.ovirt.engine.core.common.businessentities.DiskImage result = dao.getAncestor ( existingEntity.getImageId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.DiskImageDAOTest.ANCESTOR_IMAGE_ID , result.getImageId ( ) ) ; }

Target:
public void testGetAncestorForSon ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage result = dao.getAncestor ( existingEntity.getImageId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.DiskImageDAOTest.ANCESTOR_IMAGE_ID , result.getImageId ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.DiskImage getDiskImage ( ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( org.ovirt.engine.core.bll.storage.lsm.CreateImagePlaceholderCommand.getDiskDao ( ) . get ( org.ovirt.engine.core.bll.storage.lsm.CreateImagePlaceholderCommand.getParameters ( ) . getImageGroup ( ) ) ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.DiskImage getDiskImage ( ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( diskDao.get ( org.ovirt.engine.core.bll.storage.lsm.CreateImagePlaceholderCommand.getParameters ( ) . getImageGroup ( ) ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( java.lang.String volumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepConfigSet ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String configValue ) ;
Source:
public void testValidateBondModeForNonVmNetwork ( ) { validateBondMode ( false ) ; }

Target:
public void testValidateBondModeForNonVmNetwork ( ) { validateBondModes ( false ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateBootSequenceItems ( ) ; bootSequenceBox.setSelectedIndex ( bootSequenceModel.getSelectedItemIndex ( ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isEnabled = bootSequenceModel.getCdromOption ( ) . getIsChangable ( ) ; java.lang.String itemName = bootSequenceModel.getCdromOption ( ) . getTitle ( ) ; updateItemAvailability ( itemName , isEnabled ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains createSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.storage_domains sd = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; sd.setstorage_domain_type ( StorageDomainType.ImportExport ) ; sd.setstatus ( StorageDomainStatus.Active ) ; return sd ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain createSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; sd.setStatus ( StorageDomainStatus.Active ) ; return sd ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Tags getRootTag ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , VdcQueryType.GetRootTag , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , "root" ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Tags getRootTag ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , QueryType.GetRootTag , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , "root" ) ; }
Source:
private void verifyDataCenterNetworks ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result ) { org.ovirt.engine.core.dao.NetworkDAOTest.assertGetAllForClusterResult ( result ) ; for ( org.ovirt.engine.core.common.businessentities.network.Network net : result ) { org.junit.Assert.assertEquals ( datacenter , net.getstorage_pool_id ( ) ) ; } }

Target:
private void verifyDataCenterNetworks ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result ) { org.ovirt.engine.core.dao.NetworkDAOTest.assertGetAllForClusterResult ( result ) ; for ( org.ovirt.engine.core.common.businessentities.network.Network net : result ) { org.junit.Assert.assertEquals ( datacenter , net.getDataCenterId ( ) ) ; } }