auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static boolean isDisk ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return ( device.getType ( ) . equals ( VmDeviceType.DISK.getName ( ) ) ) && ( device.getDevice ( ) . equals ( VmDeviceType.DISK.getName ( ) ) ) ; }

Target:
public static boolean isDisk ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return ( ( device.getType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType.DISK ) ) && ( device.getDevice ( ) . equals ( VmDeviceType.DISK.getName ( ) ) ) ; }
Source:
public static boolean is64bitOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.get64bitOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }

Target:
public static boolean isWindowsOsType ( java.lang.Integer osType ) { if ( osType == null ) { return false ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.windowsOsIds.contains ( osType ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setHost ( org.ovirt.engine.core.common.businessentities.VDS host ) { this . host = host ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addExistingAttachments ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > existingAttachments ) { if ( existingAttachments == null ) { return this ; } this . existingAttachments.addAll ( existingAttachments ) ; return this ; }
Source:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.Cdrom > collection ) { org.junit.Assert.assertNotNull ( collection ) ; org.junit.Assert.assertEquals ( 1 , collection.size ( ) ) ; verifyModel ( collection.get ( 0 ) ) ; }

Target:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.Cdrom > collection ) { org.junit.jupiter.api.Assertions.assertNotNull ( collection ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , collection.size ( ) ) ; verifyModel ( collection.get ( 0 ) ) ; }
Source:
protected static void buildTemplateOnSave ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model , org.ovirt.engine.core.common.businessentities.VmTemplate template ) { org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor.build ( model , template , new org.ovirt.engine.ui.uicommonweb.builders.vm.FullUnitToVmBaseBuilder ( ) ) ; }

Target:
protected static void buildTemplateOnSave ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model , org.ovirt.engine.core.common.businessentities.VmTemplate template ) { org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor.build ( model , template , new org.ovirt.engine.ui.uicommonweb.builders.vm.FullUnitToVmBaseBuilder < org.ovirt.engine.core.common.businessentities.VmTemplate > ( ) , new org.ovirt.engine.ui.uicommonweb.builders.template.VersionNameUnitToVmBaseBuilder ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByVms ( ) { return networkNotUsed ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getVmStaticDao ( ) . getAllByGroupAndNetworkName ( networkCluster.getClusterId ( ) , network.getName ( ) ) , VdcBllMessages.VAR__ENTITIES__VMS , VdcBllMessages.VAR__ENTITIES__VM ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByVms ( ) { return networkNotUsed ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getVmStaticDao ( ) . getAllByGroupAndNetworkName ( networkCluster.getClusterId ( ) , network.getName ( ) ) , EngineMessage.VAR__ENTITIES__VMS , EngineMessage.VAR__ENTITIES__VM ) ; }
Source:
protected void executeQueryCommand ( ) { java.lang.String method_typeField = org.ovirt.engine.core.bll.GetEventNotificationMethodByTypeQuery.getParameters ( ) . getMethodType ( ) . name ( ) ; org.ovirt.engine.core.bll.GetEventNotificationMethodByTypeQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getEventDAO ( ) . getEventNotificationMethodsByType ( method_typeField ) ) ; }

Target:
protected void executeQueryCommand ( ) { java.lang.String method_typeField = org.ovirt.engine.core.bll.GetEventNotificationMethodByTypeQuery.getParameters ( ) . getMethodType ( ) . name ( ) ; org.ovirt.engine.core.bll.GetEventNotificationMethodByTypeQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getEventDao ( ) . getEventNotificationMethodsByType ( method_typeField ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setIsEveryoneSelected ( false ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryone ( false ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setIsEveryoneSelected ( false ) ; model.setIsMyGroupsSelected ( true ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryoneOrMyGroups ( false , true ) ; getModel ( ) . getSearchMyGroupsCommand ( ) . execute ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.StoragePool , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterMainTabLabel ( ) , 0 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.StoragePool , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabDataCenterPresenter.constants.dataCenterMainTabLabel ( ) , 0 , modelProvider ) ; }
Source:
public void setMessage ( java.lang.String message ) { super . setMessage ( message ) ; this . message.setText ( message ) ; this . message.setVisible ( ( ! ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( message ) ) ) ) ; }

Target:
public void setMessage ( java.lang.String message ) { super . setMessage ( message ) ; this . message.setText ( message ) ; this . message.setVisible ( org.ovirt.engine.core.compat.StringHelper.isNotNullOrEmpty ( message ) ) ; }
Source:
public void setvm_guid ( org.ovirt.engine.core.compat.Guid value ) { this . vm_guidField = value ; }

Target:
public void setVmNames ( java.util.ArrayList < java.lang.String > vmNames ) { this . vmNames = vmNames ; }
Source:
public void setRunOnVds ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setRunOnVds ( value ) ; }

Target:
public void setMigratingToVds ( org.ovirt.engine.core.compat.Guid value ) { this . vmDynamic.setMigratingToVds ( value ) ; }
Source:
public void commandFailsSlaveVolumeNotMonitoredByOvirt ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeGeoRepSessionCommandTest.SUPPORTED_VERSION ) . when ( cluster ) . getCompatibilityVersion ( ) ; org.mockito.Mockito.doReturn ( vds ) . when ( command ) . getSlaveHost ( ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }

Target:
public void commandFailsSlaveVolumeNotMonitoredByOvirt ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeGeoRepSessionCommandTest.SUPPORTED_VERSION ) . when ( cluster ) . getCompatibilityVersion ( ) ; org.mockito.Mockito.doReturn ( vds ) . when ( command ) . getSlaveHost ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( command.validate ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > ( ) ; }
Source:
protected void postConnect ( org.ovirt.vdsm.jsonrpc.client.utils.OneTimeCallback callback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { super . postConnect ( this . callback ) ; }

Target:
protected void postConnect ( org.ovirt.vdsm.jsonrpc.client.utils.OneTimeCallback callback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { super . postConnect ( getPostConnectCallback ( ) ) ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal , boolean isRunOnlyIfAllCanDoPass , boolean isWaitForResult ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , isRunOnlyIfAllCanDoPass , isWaitForResult , null ) ; }

Target:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters , engineContext ) ; }
Source:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with invalid number of monitors." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }

Target:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with invalid number of monitors." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getDiskImageDAO ( ) . getSnapshotById ( getDiskId ( ) ) ) ) ; } return disk ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getDiskImageDao ( ) . getSnapshotById ( getDiskId ( ) ) ) ) ; } return disk ; }
Source:
protected java.lang.Long asLong ( java.lang.String id ) { try { return new java.lang.Long ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.resource.BaseBackendResource.MalformedIdException ( e ) ; } }

Target:
protected org.ovirt.engine.core.compat.Guid asGuid ( java.lang.String id ) { try { return new org.ovirt.engine.core.compat.Guid ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.utils.MalformedIdException ( e ) ; } }
Source:
public boolean prepareConnectStorageServer ( org.ovirt.engine.core.bll.context.CommandContext cmdContext , org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return true ; }

Target:
public boolean prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.bll.context.CommandContext cmdContext , org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return true ; }
Source:
void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { searchButton.setLabel ( constants.goPermissionsPopup ( ) ) ; }

Target:
void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { searchButton.setLabel ( constants.goPermissionsPopup ( ) ) ; namespaceSelection.setLabel ( constants.namespacePermissionsPopup ( ) ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/" ) + ( _messagingConfiguration.getBrokerType ( ) . getHostKey ( ) ) ) , _messagingConfiguration.getAddress ( ) ) ; return true ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { setCliEnvironmentIfNecessary ( ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/" ) + ( _messagingConfiguration.getBrokerType ( ) . getHostKey ( ) ) ) , _messagingConfiguration.getAddress ( ) ) ; return true ; }
Source:
public void validateSucceedsOnRemoveNotLastAdGroupWithSuperUserPrivileges ( ) { mockIsLastSuperUserGroup ( false ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateSucceedsOnRemoveNotLastAdGroupWithSuperUserPrivileges ( ) { mockIsLastSuperUserGroup ( false ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }
Source:
public int getNumOfSnapshotsByMemory ( java.lang.String memoryVolume ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "memory_volume" , getNullableRepresentation ( memoryVolume ) ) ; return getCallsHandler ( ) . executeRead ( "GetNumOfSnapshotsByMemoryVolume" , getIntegerMapper ( ) , parameterSource ) ; }

Target:
public int getNumOfSnapshotsByMemory ( java.lang.String memoryVolume ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "memory_volume" , getNullableRepresentation ( memoryVolume ) ) ; return getCallsHandler ( ) . executeRead ( "GetNumOfSnapshotsByMemoryVolume" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.Integer.class ) , parameterSource ) ; }
Source:
public void clean ( ) { this . events.clear ( ) ; }

Target:
public void clean ( ) { try ( org.ovirt.vdsm.jsonrpc.client.utils.LockWrapper wrapper = new org.ovirt.vdsm.jsonrpc.client.utils.LockWrapper ( this . lock ) ) { this . events.clear ( ) ; } }
Source:
protected org.ovirt.engine.core.compat.Guid asGuid ( org.ovirt.engine.core.compat.NGuid nGuid ) { return new org.ovirt.engine.core.compat.Guid ( nGuid.getUuid ( ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid asGuid ( org.ovirt.engine.core.compat.Guid guid ) { return guid ; }
Source:
public static void GetAllVmTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.VdcQueryParametersBase params = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetAllVmTemplates , params , aQuery ) ; }

Target:
public static void getAllVmTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , final boolean refresh ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.VdcQueryParametersBase params = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; params.setRefresh ( refresh ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetAllVmTemplates , params , aQuery ) ; }
Source:
public static boolean IsFieldsUpdated ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic destination , java.lang.Iterable < java.lang.String > list ) { return org.ovirt.engine.core.bll.VdsHandler.mUpdateVdsStatic.IsFieldsUpdated ( source , destination , list ) ; }

Target:
public static boolean isFieldsUpdated ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic destination , java.lang.Iterable < java.lang.String > list ) { return org.ovirt.engine.core.bll.VdsHandler.mUpdateVdsStatic.IsFieldsUpdated ( source , destination , list ) ; }
Source:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( res , vm , null ) ; }

Target:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Vm vm , boolean nextRun ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( res , vm , null , nextRun ) ; }
Source:
protected void onEntityContentChanged ( ) { super . onEntityContentChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } else { setItems ( null ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "events: usrname=" + ( getEntity ( ) . getLoginName ( ) ) ) ) ; super . search ( ) ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.bookmarks bookmark = org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getBookmarkDao ( ) . get ( org.ovirt.engine.core.bll.GetBookmarkByIdQuery.getParameters ( ) . getBookmarkId ( ) ) ; org.ovirt.engine.core.bll.GetBookmarkByIdQuery.getQueryReturnValue ( ) . setReturnValue ( bookmark ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.Bookmark bookmark = org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getBookmarkDao ( ) . get ( org.ovirt.engine.core.bll.GetBookmarkByIdQuery.getParameters ( ) . getBookmarkId ( ) ) ; org.ovirt.engine.core.bll.GetBookmarkByIdQuery.getQueryReturnValue ( ) . setReturnValue ( bookmark ) ; }
Source:
protected boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , org.ovirt.engine.core.compat.Guid id ) { return ( id != null ) && ( id.equals ( entity.getId ( ) ) ) ; }

Target:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , T id ) { return ( id != null ) && ( id.equals ( entity.getId ( ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( args instanceof org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs pcArgs = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( PropertyChangedEventArgs.PROGRESS.equals ( pcArgs.propertyName ) ) { clearData ( ) ; } } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { if ( PropertyChangedEventArgs.PROGRESS.equals ( args.propertyName ) ) { clearData ( ) ; } }
Source:
protected void ExecuteIrsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HSMStopTask , new org.ovirt.engine.core.vdsbroker.irsbroker.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 org.ovirt.vdsm.jsonrpc.client.ResponseBuilder run ( org.codehaus.jackson.JsonNode params , org.ovirt.vdsm.jsonrpc.client.ResponseBuilder builder ) { return builder.withResult ( ResultCodes.OK.map ( ) ) ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.ResponseBuilder run ( org.codehaus.jackson.JsonNode params , org.ovirt.vdsm.jsonrpc.client.ResponseBuilder builder ) { return builder.withError ( ResultCodes.UNSUPPORTED.map ( ) ) ; }
Source:
public void passwordIsEmptyForOvirtNode ( ) { org.junit.Assert.assertThat ( validator.passwordNotEmpty ( true , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextEnum ( org.ovirt.engine.core.common.action.VdsOperationActionParameters.AuthenticationMethod.class ) , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passwordIsEmptyForOvirtNode ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.passwordNotEmpty ( true , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextEnum ( org.ovirt.engine.core.common.action.VdsOperationActionParameters.AuthenticationMethod.class ) , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
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.StoragePool > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getSerial ( ) ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.isShareable ( ) ? org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmDiskAttachPopupWidget.resources.shareableDiskIcon ( ) : null ; }
Source:
private boolean runVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return backend.runInternalAction ( VdcActionType.RunVm , new org.ovirt.engine.core.common.action.RunVmParams ( vmId ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( lock ) ) . getSucceeded ( ) ; }

Target:
private boolean runVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return backend.runInternalAction ( ActionType.RunVm , new org.ovirt.engine.core.common.action.RunVmParams ( vmId ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( lock ) ) . getSucceeded ( ) ; }
Source:
private static long computeCowImageNeededSize ( long actualSize ) { return java.lang.Double.valueOf ( java.lang.Math.ceil ( ( actualSize / ( org.ovirt.engine.core.common.constants.StorageConstants.QCOW_OVERHEAD_FACTOR ) ) ) ) . longValue ( ) ; }

Target:
private static long computeCowImageNeededSize ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat sourceFormat , long actualSize ) { return sourceFormat == ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.COW ) ? java.lang.Double.valueOf ( java.lang.Math.ceil ( ( actualSize / ( org.ovirt.engine.core.common.constants.StorageConstants.QCOW_OVERHEAD_FACTOR ) ) ) ) . longValue ( ) : actualSize ; }
Source:
public void testAdd ( ) throws java.lang.Exception { setUpGetGraphicsExpectations ( 1 ) ; setUpGetConsoleExpectations ( new int [ ] { 0 , 0 } ) ; super . testAdd ( ) ; }

Target:
public void testAdd ( ) throws java.lang.Exception { setUpGetGraphicsExpectations ( 1 ) ; setUpGetBallooningExpectations ( 0 , 0 ) ; setUpGetConsoleExpectations ( 0 , 0 ) ; super . testAdd ( ) ; }
Source:
protected boolean isSoundDeviceEnabled ( org.ovirt.engine.core.compat.Guid vmId ) { return getVmDeviceUtils ( ) . hasSoundDevice ( 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:
private static void setValidCpuVersionMap ( ) { org.ovirt.engine.core.bll.CpuFlagsManagerHandler.InitDictionaries ( ) ; org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.common.config.Config.GetValue ( ConfigValues.SupportedClusterLevels ) ) . thenReturn ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createVersionSet ( ) ) ; }

Target:
private static void setValidCpuVersionMap ( ) { org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.mcr.mockConfigValue ( ConfigValues.SupportedClusterLevels , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createVersionSet ( ) ) ; }
Source:
protected void endWithFailure ( ) { UndoActionOnSourceAndDestination ( ) ; org.ovirt.engine.core.bll.BaseImagesCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { undoActionOnSourceAndDestination ( ) ; org.ovirt.engine.core.bll.BaseImagesCommand.setSucceeded ( true ) ; }
Source:
public void setVmName ( java.lang.String vmName ) { consoleTitle.setText ( messages.selectConsoleFor ( vmName ) ) ; }

Target:
public void setVmName ( java.lang.String vmName ) { consoleTitle.setText ( org.ovirt.engine.ui.common.view.popup.ConsolePopupView.messages.selectConsoleFor ( vmName ) ) ; }
Source:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( storageDomain.getId ( ) ) ; parameters.setVdsId ( vdsId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }

Target:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( storageDomain.getId ( ) , vdsId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( ActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.gluster.ReplaceBrickModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.ReplaceBrickModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; setWindow ( null ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; setConfirmWindow ( null ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , false ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return runQueryImpl ( actionType , parameters , false , engineContext ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; OnExecute ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; onExecute ( ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; updatePriority ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ) ; }

Target:
public void onSuccess ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > idToIconMap ) { finishSearch ( vmPairs ) ; }
Source:
protected java.lang.Object ProvideDetailModelEntity ( java.lang.Object selectedItem ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.EntityModel ) ( selectedItem ) ) ; if ( model == null ) { return null ; } return model.getEntity ( ) ; }

Target:
protected java.lang.Object provideDetailModelEntity ( java.lang.Object selectedItem ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.EntityModel ) ( selectedItem ) ) ; if ( model == null ) { return null ; } return model.getEntity ( ) ; }
Source:
private int toSortingIndex ( org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { return ( vmDevice == null ) || ( ! ( org.ovirt.engine.ui.common.widget.uicommon.vm.HotUnplugCell.isHotUnpluggable ( vmDevice ) ) ) ? 0 : 1 ; }

Target:
private int toSortingIndex ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDeviceFeEntity vmDevice ) { return ( vmDevice == null ) || ( ! ( org.ovirt.engine.ui.common.widget.uicommon.vm.HotUnplugCell.isHotUnpluggable ( vmDevice.getVmDevice ( ) ) ) ) ? 0 : 1 ; }
Source:
public void testSetInvalidIntValue ( ) throws java.lang.Exception { final java.lang.String key = "VdsRefreshRate" ; org.ovirt.engine.core.config.EngineConfigLogicTest.engineConfigLogic.persist ( key , "Not A Number" , "" ) ; }

Target:
public void testSetInvalidIntValue ( ) { final java.lang.String key = "VdsRefreshRate" ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalAccessException.class , ( ) -> org.ovirt.engine.core.config.EngineConfigLogicTest.engineConfigLogic.persist ( key , "Not A Number" , "" ) ) ; }
Source:
public void setdefault_boot_sequence ( org.ovirt.engine.core.common.businessentities.BootSequence value ) { this . mVmStatic.setdefault_boot_sequence ( value ) ; }

Target:
public void setFailBack ( boolean value ) { this . vmStatic.setfail_back ( value ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel hostModel = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( model ) ) ; hostModel.postGetPmOptions ( ( ( java.util.ArrayList < java.lang.String > ) ( result ) ) ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.ArrayList < java.lang.String > pmTypes = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; updatePmTypeList ( pmTypes , getPmType ( ) ) ; updatePmTypeList ( pmTypes , getPmSecondaryType ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetStepByStepIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.job.JobRepositoryFactory.getJobRepository ( ) . getStep ( org.ovirt.engine.core.bll.GetStepByStepIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetStepByStepIdQuery.getQueryReturnValue ( ) . setReturnValue ( jobRepository.getStep ( org.ovirt.engine.core.bll.GetStepByStepIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.StorageConnection model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.StorageConnection model , int index ) { org.junit.Assert.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }
Source:
private void mockVdsWithStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setstatus ( status ) ; org.mockito.Mockito.when ( vdsDAO.get ( command.getParameters ( ) . getVdsId ( ) ) ) . thenReturn ( vds ) ; }

Target:
private void mockVdsWithStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setStatus ( status ) ; org.mockito.Mockito.when ( vdsDAO.get ( command.getParameters ( ) . getVdsId ( ) ) ) . thenReturn ( vds ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { cancel ( ) ; }
Source:
public boolean supportsGlusterAsyncTasksFeature ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterAsyncTasks ( cluster.getCompatibilityVersion ( ) ) ) ; }

Target:
public boolean supportsGlusterAsyncTasksFeature ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterAsyncTasks ( cluster.getCompatibilityVersion ( ) ) ) ; }
Source:
private void saveTaskAndPutInMap ( java.lang.String taskKey , org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.saveAsyncTaskToDb ( task ) ; taskKeyToTaskIdMap.put ( taskKey , task.getTaskId ( ) ) ; }

Target:
private void saveTaskAndPutInMap ( java.lang.String taskKey , org.ovirt.engine.core.common.businessentities.AsyncTask task ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.saveAsyncTaskToDb ( task ) ; taskKeyToTaskIdMap.put ( taskKey , task.getTaskId ( ) ) ; }
Source:
public void setup ( ) { validation = org.mockito.Mockito.spy ( new org.ovirt.engine.ui.uicommonweb.validation.CidrValidation ( ) ) ; org.mockito.Mockito.doReturn ( "" ) . when ( validation ) . getMessage ( ) ; }

Target:
public void setup ( ) { validation = org.mockito.Mockito.spy ( new org.ovirt.engine.ui.uicommonweb.validation.CidrValidation ( ) ) ; org.mockito.Mockito.doReturn ( null ) . when ( validation ) . getThisFieldMustContainCidrInFormatMsg ( ) ; org.mockito.Mockito.doReturn ( null ) . when ( validation ) . getCidrNotNetworkAddress ( ) ; }
Source:
public void testGetAllSupportedNetworkFiltersByInvalidVersion ( ) { final org.ovirt.engine.core.compat.Version version = new org.ovirt.engine.core.compat.Version ( org.ovirt.engine.core.dao.network.NetworkFilterDaoTest.INVALID_VERSION ) ; final java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkFilter > allNetworkFilter = dao.getAllSupportedNetworkFiltersByVersion ( version ) ; org.junit.Assert.assertTrue ( allNetworkFilter.isEmpty ( ) ) ; }

Target:
public void testGetAllSupportedNetworkFiltersByInvalidVersion ( ) { final org.ovirt.engine.core.compat.Version version = new org.ovirt.engine.core.compat.Version ( org.ovirt.engine.core.dao.network.NetworkFilterDaoTest.INVALID_VERSION ) ; final java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkFilter > allNetworkFilter = dao.getAllSupportedNetworkFiltersByVersion ( version ) ; org.junit.jupiter.api.Assertions.assertTrue ( allNetworkFilter.isEmpty ( ) ) ; }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics stats ) { return super . createFullParametersMapper ( stats ) . addValue ( "vm_id" , stats.getVmId ( ) ) ; }
Source:
public void setParser ( org.ovirt.engine.core.config.EngineConfigCLIParser parser ) { }

Target:
public void setParser ( org.ovirt.engine.core.config.EngineConfigCLIParser parser ) { this . parser = parser ; this . pwdValueHelper.setParser ( parser ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.FenceAgent createFenceAgent ( int order ) { org.ovirt.engine.core.common.businessentities.FenceAgent agent = new org.ovirt.engine.core.common.businessentities.FenceAgent ( ) ; agent.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; agent.setOrder ( order ) ; return agent ; }

Target:
protected org.ovirt.engine.core.common.businessentities.pm.FenceAgent createFenceAgent ( int order ) { org.ovirt.engine.core.common.businessentities.pm.FenceAgent agent = new org.ovirt.engine.core.common.businessentities.pm.FenceAgent ( ) ; agent.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; agent.setOrder ( order ) ; return agent ; }
Source:
public org.ovirt.engine.api.model.GlusterBricks list ( ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
public org.ovirt.engine.api.model.GlusterBricks list ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = getBackendCollection ( VdcQueryType.GetGlusterVolumeBricks , new org.ovirt.engine.core.common.queries.gluster.IdQueryParameters ( asGuid ( getVolumeId ( ) ) ) ) ; return mapCollection ( bricks ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel object ) { java.lang.String osId = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getOsName ( object.getOsId ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( osId ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getModel ( ) . getNewVmCommand ( ) ; }
Source:
public void testNoNicId ( ) { setup ( org.ovirt.engine.core.bll.network.host.GetTlvsByHostNicIdQueryTest.ExpectedError.NIC_ID_NOT_NULL ) ; org.junit.Assert.assertFalse ( getQuery ( ) . validateInputs ( ) ) ; org.junit.Assert.assertEquals ( EngineMessage.NIC_ID_IS_NULL.name ( ) , getQuery ( ) . getQueryReturnValue ( ) . getExceptionString ( ) ) ; }

Target:
public void testNoNicId ( ) { setup ( org.ovirt.engine.core.bll.network.host.GetTlvsByHostNicIdQueryTest.ExpectedError.NIC_ID_NOT_NULL ) ; org.junit.jupiter.api.Assertions.assertFalse ( getQuery ( ) . validateInputs ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( EngineMessage.NIC_ID_IS_NULL.name ( ) , getQuery ( ) . getQueryReturnValue ( ) . getExceptionString ( ) ) ; }
Source:
public int hashCode ( ) { int hashCode = 23 ; hashCode = ( hashCode * 37 ) + ( ( mainModel ) == null ? 1 : mainModel.hashCode ( ) ) ; return hashCode ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( mainModel ) ; }
Source:
java.lang.String clusterPopupOptimizationForDesktopExplainationLabel ( java.lang.String a ) ;

Target:
java.lang.String clusterPopupMemoryOptimizationForDesktopLabel ( java.lang.String a ) ;
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { convertFailed ( ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( ) . getParameters ( ) . setTaskGroupSuccess ( false ) ; getCommand ( ) . endAction ( ) ; clearProgress ( ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( actionType , parameters , executionContext ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return getBackend ( ) . runInternalAction ( actionType , parameters , context.clone ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult evaluate ( java.util.Map.Entry < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator > entry ) { return getStorageDomainValidator ( entry ) . isDomainExistAndActive ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult allDomainsExistAndActive ( ) { return validOrFirstFailure ( ( entry ) -> getStorageDomainValidator ( entry ) . isDomainExistAndActive ( ) ) ; }
Source:
public boolean getUseLocalDrives ( ) { return false ; }

Target:
public boolean getUseLocalDrives ( ) { return useLocalDrives ; }
Source:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getDiskImage ( ) , org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getCurrentUser ( ) ) ) ; }

Target:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( diskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getDiskImage ( ) , org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.storage.disk.image.RegisterDiskCommand.getCurrentUser ( ) ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > createVG ( java.lang.String sdUUID , java.lang.String [ ] deviceList ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > prepareImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID , boolean allowIllegal ) ;
Source:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( command.getStorageDomainStaticDAO ( ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }

Target:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( command.getStorageDomainStaticDao ( ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM mockVmAndReturnFromDao ( ) { vm = mockVm ( ) ; org.mockito.Mockito.when ( vmDao.get ( org.ovirt.engine.core.bll.GetNextAvailableDiskAliasNameByVMIdQueryTest.vmId , getQuery ( ) . getUserID ( ) , getQueryParameters ( ) . isFiltered ( ) ) ) . thenReturn ( vm ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM mockVmAndReturnFromDao ( ) { vm = mockVm ( ) ; org.mockito.Mockito.when ( vmDao.get ( org.ovirt.engine.core.bll.GetNextAvailableDiskAliasNameByVMIdQueryTest.vmId , getUser ( ) . getId ( ) , getQueryParameters ( ) . isFiltered ( ) ) ) . thenReturn ( vm ) ; return vm ; }
Source:
protected void setUpGetBallooningExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.IsBalloonEnabled , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true ) ; }

Target:
protected void setUpGetBallooningExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.IsBalloonEnabled , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand GetAsyncCommandForVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand result = null ; result = _asyncRunningCommands.get ( vmId ) ; return result ; }

Target:
public org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand getAsyncCommandForVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand result = null ; result = _asyncRunningCommands.get ( vmId ) ; return result ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { updateTabsData ( snapshotModel ) ; }

Target:
public void onSuccess ( java.lang.Void returnValue ) { updateTabsData ( snapshotModel ) ; }
Source:
public static < TSource > TSource firstOrNull ( java.lang.Iterable < TSource > source , org.ovirt.engine.ui.uicommonweb.Linq.IPredicate < ? super TSource > predicate ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( source , predicate , null ) ; }

Target:
public static < TSource > TSource firstOrNull ( java.util.Collection < TSource > source , org.ovirt.engine.ui.uicommonweb.Linq.IPredicate < ? super TSource > predicate ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( source , predicate , null ) ; }
Source:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( startedVolumeId , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( startedVolumeId , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkView > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.network.NetworkViewDaoDbFacadeImpl.NetworkViewRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkView > getAllWithQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.network.NetworkViewDaoDbFacadeImpl.NetworkViewRowMapper.instance ) ; }