auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomainById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.StorageDomain.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomainById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.StorageDomain.class , QueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.users.VdcUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getUserId ( ) ) ; params.setSessionId ( getSessionId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . Logoff ( params ) ; return returnValue ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.DbUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getId ( ) ) ; params.setSessionId ( getSessionId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . logoff ( params ) ; return returnValue ; }
Source:
public void setSessionTimeout ( java.lang.String sessionTimeout ) { this . restApiSessionTimeout = sessionTimeout ; }

Target:
public void setSessionTimeout ( int engineSessionTimeout ) { restApiSessionTimeout = 2 * engineSessionTimeout ; }
Source:
public org.ovirt.engine.sdk.Api connect ( ) throws java.io.IOException , org.ovirt.engine.sdk.exceptions.ServerException , org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError { java.lang.String url = java.lang.String.format ( "https://%s:%s/ovirt-engine/api" , server , port ) ; org.ovirt.optimizer.service.OvirtClient.log.debug ( java.lang.String.format ( "Logging to %s as %s" , url , username ) ) ; return new org.ovirt.engine.sdk.Api ( url , username , password , true ) ; }

Target:
public org.ovirt.engine.sdk.Api connect ( ) throws java.io.IOException , org.ovirt.engine.sdk.exceptions.ServerException , org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError { java.lang.String url = java.lang.String.format ( "%s://%s:%s/ovirt-engine/api" , protocol , server , port ) ; org.ovirt.optimizer.service.OvirtClient.log.debug ( java.lang.String.format ( "Logging to %s as %s" , url , username ) ) ; return new org.ovirt.engine.sdk.Api ( url , username , password , true ) ; }
Source:
public org.ovirt.engine.api.model.Template get ( ) { org.ovirt.engine.api.model.Template template = performGet ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; if ( template != null ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( this , template ) ; } return template ; }

Target:
public org.ovirt.engine.api.model.Template get ( ) { org.ovirt.engine.api.model.Template template = performGet ( QueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; if ( template != null ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( this , template ) ; } return template ; }
Source:
private int calculateCpuUsage ( org.ovirt.engine.core.common.businessentities.VDS o1 ) { return ( ( o1.getUsageCpuPercent ( ) ) * ( org.ovirt.engine.core.bll.scheduling.VdsSelector.getEffectiveCpuCores ( o1 ) ) ) / ( o1.getVdsStrength ( ) ) ; }

Target:
private int calculateCpuUsage ( org.ovirt.engine.core.common.businessentities.VDS o1 ) { return ( ( o1.getUsageCpuPercent ( ) ) * ( org.ovirt.engine.core.bll.scheduling.SlaValidator.getEffectiveCpuCores ( o1 ) ) ) / ( o1.getVdsStrength ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.bll.tasks.SPMAsyncTask task : newlyAddedTasks ) { org.ovirt.engine.core.bll.tasks.AsyncTaskUtils.addOrUpdateTaskInDB ( task ) ; } return null ; }

Target:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.bll.tasks.interfaces.SPMTask task : newlyAddedTasks ) { org.ovirt.engine.core.bll.tasks.AsyncTaskUtils.addOrUpdateTaskInDB ( task ) ; } return null ; }
Source:
private void runAndAssertCanDoActionSuccess ( ) { boolean canDoAction = command.canDoAction ( ) ; org.ovirt.engine.core.bll.AddDiskCommandTest.log.info ( command.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; org.junit.Assert.assertTrue ( canDoAction ) ; }

Target:
private void runAndAssertCanDoActionSuccess ( ) { boolean canDoAction = command.canDoAction ( ) ; org.ovirt.engine.core.bll.AddDiskCommandTest.log.info ( "{}" , command.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; org.junit.Assert.assertTrue ( canDoAction ) ; }
Source:
protected org.ovirt.engine.core.bll.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . poolForDataCenter ( org.ovirt.engine.core.bll.CommandBase.getStoragePoolId ( ) ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( command.getName ( ) , "Cancel" ) ) { Cancel ( ) ; } }

Target:
private void spice_Connected ( java.lang.Object sender ) { setIsConnected ( true ) ; updateActionAvailability ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand.manageActionDetailsMap.get ( getParameters ( ) . getActionType ( ) ) . getCanDoActionMsg ( ) ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_SERVICE ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand.manageActionDetailsMap.get ( getParameters ( ) . getActionType ( ) ) . getValidateMsg ( ) ) ; addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_SERVICE ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , "Active VM" , snapshotStatus , SnapshotType.ACTIVE , vm , false , memoryVolume , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , java.lang.String memoryVolume , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disks , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , SnapshotStatus.OK , memoryVolume , disks , compensationContext ) ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.profiles.DiskProfileValidator validator = new org.ovirt.engine.core.bll.profiles.DiskProfileValidator ( getProfile ( ) ) ; return ( validate ( validator.diskProfileIsSet ( ) ) ) && ( validate ( validator.diskProfileExists ( ) ) ) ; }

Target:
protected org.ovirt.engine.core.dao.profiles.ProfilesDao < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getProfileDao ( ) { return getDiskProfileDao ( ) ; }
Source:
org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.network.Network > getExternalNetworkPredicate ( ) { return mockNetworkPredicate ; }

Target:
public org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.network.Network > getManagementNetworkCandidatePredicate ( ) { return mockNetworkPredicate ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > desktopLogoff ( java.lang.String vmId , java.lang.String force ) ;
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.host.VfsConfigWidget.templates.textForCheckBoxHeader ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.VfsConfigWidget.constants.attachAll ( ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.host.VfsConfigPopupView.templates.textForCheckBoxHeader ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.VfsConfigPopupView.constants.attachAll ( ) ) ; }
Source:
public void setStatus ( org.ovirt.engine.core.sso.utils.SsoSession.Status status ) { this . status = status ; }

Target:
public void setStatus ( org.ovirt.engine.core.sso.utils.SsoSession.Status status ) { this . status = status ; if ( ( org.ovirt.engine.core.sso.utils.SsoSession.Status.authenticated ) == status ) { authTime = new java.util.Date ( java.lang.System.currentTimeMillis ( ) ) ; } else { authTime = null ; } }
Source:
private void initializeCommand ( ) { initializeCommand ( createParameters ( ) ) ; }

Target:
private void initializeCommand ( org.ovirt.engine.core.common.action.UpdateVmDiskParameters params ) { initializeCommand ( params , java.util.Collections.singletonList ( createVmStatusDown ( ) ) ) ; }
Source:
protected boolean failPassthroughVnicHotPlug ( ) { if ( ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pciPassthrough ) == ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.forValue ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) . getType ( ) ) ) ) { addCanDoActionMessage ( EngineMessage.HOT_PLUG_UNPLUG_PASSTHROUGH_VNIC_NOT_SUPPORTED ) ; return true ; } return false ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( ( ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getAction ( ) ) == ( org.ovirt.engine.core.common.action.PlugAction.PLUG ) ? org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__ACTIVATE : org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__DEACTIVATE ) ) ; addValidationMessage ( EngineMessage.VAR__TYPE__INTERFACE ) ; }
Source:
public void testAllocateMacNoEnoughMacs ( ) { rangeOf10Macs.allocateMacs ( ( ( org.ovirt.engine.core.bll.network.macpool.RangeTest.NUMBER_OF_MACS ) + 1 ) ) ; }

Target:
public void testAllocateMacNoEnoughMacs ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalStateException.class , ( ) -> rangeOf10Macs.allocateMacs ( ( ( org.ovirt.engine.core.bll.network.macpool.RangeTest.NUMBER_OF_MACS ) + 1 ) ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.HashMap < org.ovirt.engine.core.common.businessentities.VmTemplate , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > > ( ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getBroker ( ) . getCapabilities ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVDSDynamicData ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) , infoReturn.mInfo ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getBroker ( ) . getCapabilities ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVDSDynamicData ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) , infoReturn.info ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) ) ; }
Source:
public boolean shouldUseCompensation ( ) { org.ovirt.engine.core.bll.context.CompensationContext compensationContext = this . commandContext.getCompensationContext ( ) ; return ( compensationContext != null ) && ( compensationContext.isCompensationEnabled ( ) ) ; }

Target:
public boolean shouldUseCompensation ( ) { org.ovirt.engine.core.bll.context.CompensationContext compensationContext = this . commandContext.getCompensationContext ( ) ; boolean result = ( compensationContext != null ) && ( compensationContext.isCompensationEnabled ( ) ) ; log.debug ( "Should use compensation?: {}" , result ) ; return result ; }
Source:
static void verifyModelSpecific ( org.ovirt.engine.api.model.VmPool model ) { assertNotNull ( model.getCluster ( ) ) ; assertEquals ( GUIDS [ 2 ] . toString ( ) , model.getCluster ( ) . getId ( ) ) ; }

Target:
static void verifyModelSpecific ( org.ovirt.engine.api.model.VmPool model ) { org.junit.Assert.assertNotNull ( model.getCluster ( ) ) ; org.junit.Assert.assertEquals ( GUIDS [ 2 ] . toString ( ) , model.getCluster ( ) . getId ( ) ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc.getInstance ( ) . modifyPool ( oldMacPool ) ; }

Target:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . modifyPool ( oldMacPool ) ; }
Source:
public java.lang.String getDefaultTitle ( ) { return org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.readOnly ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { if ( object.getReadOnly ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.readOnly ( ) ) ; } return null ; }
Source:
private org.ovirt.engine.core.common.businessentities.AsyncTasks getAsyncTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTask ( taskId , this , asyncTaskCreationInfo , parentCommand ) ; }

Target:
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 ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( actionType , parameters ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Agent incoming , org.ovirt.engine.core.common.businessentities.FenceAgent entity ) { org.ovirt.engine.core.common.action.FenceAgentCommandParameterBase updateParams = new org.ovirt.engine.core.common.action.FenceAgentCommandParameterBase ( ) ; org.ovirt.engine.core.common.businessentities.FenceAgent agent = map ( incoming , entity ) ; updateParams.setAgent ( agent ) ; return updateParams ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Agent incoming , org.ovirt.engine.core.common.businessentities.pm.FenceAgent entity ) { org.ovirt.engine.core.common.action.FenceAgentCommandParameterBase updateParams = new org.ovirt.engine.core.common.action.FenceAgentCommandParameterBase ( ) ; org.ovirt.engine.core.common.businessentities.pm.FenceAgent agent = map ( incoming , entity ) ; updateParams.setAgent ( agent ) ; return updateParams ; }
Source:
public org.ovirt.engine.core.common.businessentities.Cluster update ( org.ovirt.engine.core.common.businessentities.Cluster incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.QueryType.GetClusterById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , ActionType.UpdateCluster , new UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster update ( org.ovirt.engine.core.common.businessentities.Cluster incoming ) { org.ovirt.engine.api.restapi.resource.BackendExternalProviderHelper.completeExternalProviders ( this , incoming.getExternalNetworkProviders ( ) ) ; return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.QueryType.GetClusterById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , ActionType.UpdateCluster , new UpdateParametersProvider ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network network ) { network.setCluster ( new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; network.getCluster ( ) . setId ( clusterId ) ; return network ; }

Target:
public org.ovirt.engine.api.resource.ClusterNetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( clusterId , id ) ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { org.ovirt.engine.ui.common.widget.uicommon.popup.networkinterface.NetworkInterfacePopupWidget.Driver.driver.edit ( iface ) ; hideMacWhenNotEnabled ( iface ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { driver.edit ( iface ) ; hideMacWhenNotEnabled ( iface ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Network result = dao.getByName ( "engine" ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( "engine" , result.getname ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Network result = dao.getByName ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , result.getname ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeAllBricksButton.getCommand ( ) . execute ( ) ; clearSelections ( ) ; bricksTable.flush ( ) ; bricksTable.redraw ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeBricksButton.getCommand ( ) . execute ( ) ; clearSelections ( ) ; bricksTable.flush ( ) ; bricksTable.redraw ( ) ; }
Source:
public void validate_duplicateVm_Test ( ) { affinityGroup.getEntityIds ( ) . add ( vmId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DUPLICTE_VM_IN_AFFINITY_GROUP ) ; }

Target:
public void validate_duplicateVm_Test ( ) { affinityGroup.getVmIds ( ) . add ( vmId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DUPLICATE_ENTITY_IN_AFFINITY_GROUP ) ; }
Source:
public void setvmt_description ( java.lang.String value ) { this . vmt_descriptionField = value ; }

Target:
public org.ovirt.engine.core.common.businessentities.BootSequence getDefaultBootSequence ( ) { return this . vmStatic.getDefaultBootSequence ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Quota , org.ovirt.engine.ui.uicommonweb.models.users.UserListModel , org.ovirt.engine.ui.uicommonweb.models.users.UserQuotaListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.user.SubTabUserQuotaPresenter.constants.userQuotaSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.user.SubTabUserQuotaPresenter.constants.userQuotaSubTabLabel ( ) , 2 ) ; }
Source:
public boolean isApplicable ( org.ovirt.engine.core.common.businessentities.VDSGroup oldCluster , org.ovirt.engine.core.common.businessentities.VDSGroup newCluster ) { newCpuName = newCluster.getCpuName ( ) ; return ! ( oldCluster.getCpuName ( ) . equals ( newCluster.getCpuName ( ) ) ) ; }

Target:
public boolean isApplicable ( org.ovirt.engine.core.common.businessentities.VDSGroup oldCluster , org.ovirt.engine.core.common.businessentities.VDSGroup newCluster ) { newCpuName = newCluster.getCpuName ( ) ; final java.lang.String oldCpuName = oldCluster.getCpuName ( ) ; return ! ( newCpuName.equals ( oldCpuName ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeSnapshotCreate ( java.lang.String volumeName , java.lang.String snapshotName , java.lang.String description , boolean force ) ;
Source:
protected void OnCollectionChanged ( org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { collectionChangedEvent.raise ( this , e ) ; }

Target:
protected void onCollectionChanged ( org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { collectionChangedEvent.raise ( this , e ) ; }
Source:
private void mockMaxPciSlots ( ) { org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.AddVmCommandTest.MAX_PCI_SLOTS ) . when ( osRepository ) . getMaxPciDevices ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Version.class ) ) ; }

Target:
private void mockMaxPciSlots ( ) { org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.AddVmCommandTest.MAX_PCI_SLOTS ) . when ( osRepository ) . getMaxPciDevices ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Version.class ) ) ; }
Source:
private java.lang.String getSsoToken ( final java.lang.String engineSessionId ) { return ( ( java.lang.String ) ( runQuery ( VdcQueryType.GetEngineSessionIdToken , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , engineSessionId ) ) ) ; }

Target:
private java.lang.String getSsoToken ( final java.lang.String engineSessionId ) { return ( ( java.lang.String ) ( runQuery ( QueryType.GetEngineSessionIdToken , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , engineSessionId ) ) ) ; }
Source:
protected org.ovirt.engine.core.dao.NetworkDAO getNetworkDAO ( ) { return getDbFacade ( ) . getNetworkDAO ( ) ; }

Target:
public org.ovirt.engine.core.dao.StorageDomainDAO getStorageDomainDAO ( ) { return getDbFacade ( ) . getStorageDomainDao ( ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryImageParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.domain.PostZeroHandler.fixParametersWithPostZero ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 2 ) , isPostZero ( ) , false ) ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryImageParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 2 ) , isPostZero ( ) , false ) ) ; }
Source:
org.ovirt.api.metamodel.tool.JavaTypeReference getTypeReference ( org.ovirt.api.metamodel.concepts.Type type ) ;

Target:
org.ovirt.api.metamodel.tool.JavaTypeReference getTypeReference ( org.ovirt.api.metamodel.concepts.Type type , boolean preferWrapper ) ;
Source:
public void onConsoleModelChanged ( org.ovirt.engine.ui.userportal.section.main.presenter.popup.console.ConsoleModelChangedEvent event ) { if ( sameEntity ( model , event.getItemModel ( ) ) ) { setupSelectedProtocol ( model ) ; } }

Target:
public void onUserPortalModelInit ( org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent event ) { updateListModel ( listModelProvider.getModel ( ) ) ; }
Source:
public static java.lang.Integer getDefaultMtu ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.DefaultMtu ) ; }

Target:
public static java.lang.Integer getDefaultMtu ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.DefaultMTU ) ; }
Source:
public void reload ( ) { onImportSourceChanged ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > getPassword ( ) { return password ; }
Source:
public void validNetworkNameWhenUnlinkingNotSupported ( ) throws java.lang.Exception { networkNameTest ( ValidationResult.VALID , false , "net" ) ; }

Target:
public void validNetworkNameWhenUnlinkingNotSupported ( ) throws java.lang.Exception { networkNameTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , false , "net" ) ; }
Source:
public void setpm_enabled ( boolean value ) { mVdsStatic.setpm_enabled ( value ) ; }

Target:
public void setpm_enabled ( boolean value ) { mVdsStatic.setPmEnabled ( value ) ; }
Source:
public void setHashName ( java.lang.String value ) { sethashName ( value ) ; setOpenDocumentationCommand ( new org.ovirt.engine.ui.uicommonweb.UICommand ( "OpenDocumentation" , this ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "HashName" ) ) ; }

Target:
public void setHashName ( java.lang.String value ) { sethashName ( value ) ; setOpenDocumentationCommand ( new org.ovirt.engine.ui.uicommonweb.UICommand ( "OpenDocumentation" , this ) ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HashName" ) ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getBrickListModel ( ) . getStatusRemoveBricksCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getBrickListModel ( ) . getStopRemoveBricksCommand ( ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, srcHost=%s, dstVdsId=%s, dstHost=%s, migrationMethod=%s, tunnelMigration=%s" , super . toString ( ) , getSrcHost ( ) , getDstVdsId ( ) , getDstHost ( ) , getMigrationMethod ( ) , getTunnelMigration ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, srcHost=%s, dstVdsId=%s, dstHost=%s, migrationMethod=%s, tunnelMigration=%s" , super . toString ( ) , getSrcHost ( ) , getDstVdsId ( ) , getDstHost ( ) , getMigrationMethod ( ) , isTunnelMigration ( ) ) ; }
Source:
public void BuildVirtualSystem ( ) { readGeneralData ( ) ; }

Target:
public void buildVirtualSystem ( ) { readGeneralData ( ) ; }
Source:
public void setHost ( java.lang.String host , int port ) { this . host = host ; this . port = port ; this . serverKey = null ; }

Target:
public void setHost ( java.lang.String host , int port ) { _host = host ; _port = port ; _serverKey = null ; }
Source:
public void setSnapshotsMap ( java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel > value ) { snapshotsMap = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SnapshotsMap" ) ) ; }

Target:
public void setSnapshotsMap ( java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel > value ) { snapshotsMap = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SnapshotsMap" ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DiskLunMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.DiskLunMap diskLunMap = new org.ovirt.engine.core.common.businessentities.DiskLunMap ( ) ; diskLunMap.setDiskId ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( rs.getString ( "disk_id" ) ) ) ; diskLunMap.setLunId ( rs.getString ( "lun_id" ) ) ; return diskLunMap ; }

Target:
public org.ovirt.engine.core.common.businessentities.DiskLunMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.DiskLunMap diskLunMap = new org.ovirt.engine.core.common.businessentities.DiskLunMap ( ) ; diskLunMap.setDiskId ( getGuidDefaultEmpty ( rs , "disk_id" ) ) ; diskLunMap.setLunId ( rs.getString ( "lun_id" ) ) ; return diskLunMap ; }
Source:
protected void PostDiscoverTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > newItems ) { }

Target:
protected void postDiscoverTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > newItems ) { }
Source:
protected void verifyModelClearingPayloads ( org.ovirt.engine.api.model.Vm model , int index ) { verifyModel ( model , index ) ; assertNull ( model.getPayloads ( ) ) ; }

Target:
protected void verifyModelClearingPayloads ( org.ovirt.engine.api.model.Vm model , int index ) { verifyModel ( model , index ) ; org.junit.Assert.assertNull ( model.getPayloads ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult providerIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) . when ( ( ( provider ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult providerIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) . when ( ( ( provider ) == null ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( rs.getString ( "id" ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return getGuidDefaultEmpty ( rs , "id" ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > isSsoWebappDeployed ( ) { return org.ovirt.engine.core.aaa.SSOOAuthServiceUtils.isSsoDeployed ( ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > isSsoWebappDeployed ( ) { return org.ovirt.engine.core.aaa.SsoOAuthServiceUtils.isSsoDeployed ( ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.VmsService vmsService = connection.systemService ( ) . vmsService ( ) ; org.ovirt.engine.sdk4.types.Vm vm = vmsService.list ( ) . search ( "name=myvm" ) . send ( ) . vms ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.services.VnicProfilesService profilesService = connection.systemService ( ) . vnicProfilesService ( ) ; java.lang.String profileId = null ; for ( org.ovirt.engine.sdk4.types.VnicProfile profile : profilesService.list ( ) . send ( ) . profiles ( ) ) { if ( "mynetwork" . equals ( profile.name ( ) ) ) { profileId = profile.id ( ) ; } } org.ovirt.engine.sdk4.services.VmNicsService nicsService = vmsService.vmService ( vm.id ( ) ) . nicsService ( ) ; nicsService.add ( ) . nic ( org.ovirt.engine.sdk4.builders.Builders.nic ( ) . name ( "mynic" ) . description ( "My network interface card" ) . vnicProfile ( org.ovirt.engine.sdk4.builders.Builders.vnicProfile ( ) . id ( profileId ) ) ) . send ( ) ; connection.close ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.VmsService vmsService = connection.systemService ( ) . vmsService ( ) ; org.ovirt.engine.sdk4.types.Vm vm = vmsService.list ( ) . search ( "name=myvm" ) . send ( ) . vms ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.services.VmDisksService disksService = vmsService.vmService ( vm.id ( ) ) . disksService ( ) ; org.ovirt.engine.sdk4.types.Disk disk = disksService.add ( ) . disk ( org.ovirt.engine.sdk4.builders.Builders.disk ( ) . name ( "mydisk" ) . description ( "My disk" ) . interface_ ( DiskInterface.VIRTIO ) . format ( DiskFormat.COW ) . provisionedSize ( ( 1 * ( ( int ) ( java.lang.Math.pow ( 2 , 20 ) ) ) ) ) . storageDomains ( org.ovirt.engine.sdk4.builders.Builders.storageDomain ( ) . name ( "mydata" ) ) ) . send ( ) . disk ( ) ; org.ovirt.engine.sdk4.services.VmDiskService diskService = disksService.diskService ( disk.id ( ) ) ; for ( ; ; ) { java.lang.Thread.sleep ( ( 5 * 1000 ) ) ; disk = diskService.get ( ) . send ( ) . disk ( ) ; if ( ( disk.status ( ) ) == ( org.ovirt.engine.sdk4.types.DiskStatus.OK ) ) { break ; } } connection.close ( ) ; }
Source:
protected org.ovirt.engine.core.common.action.HibernateVmParameters getHibernateVmParams ( ) { org.ovirt.engine.core.common.action.VdcActionParametersBase tempVar = org.ovirt.engine.core.bll.HibernateVmCommand.getParameters ( ) ; return ( ( org.ovirt.engine.core.common.action.HibernateVmParameters ) ( tempVar instanceof org.ovirt.engine.core.common.action.HibernateVmParameters ? tempVar : null ) ) ; }

Target:
protected void insertAsyncTaskPlaceHolders ( ) { persistAsyncTaskPlaceHolder ( org.ovirt.engine.core.bll.HibernateVmCommand.getParameters ( ) . getParentCommand ( ) , org.ovirt.engine.core.bll.HibernateVmCommand.SAVE_IMAGE_TASK_KEY ) ; persistAsyncTaskPlaceHolder ( org.ovirt.engine.core.bll.HibernateVmCommand.getParameters ( ) . getParentCommand ( ) , org.ovirt.engine.core.bll.HibernateVmCommand.SAVE_RAM_STATE_TASK_KEY ) ; }
Source:
protected void onSavePortMirroring ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface nicToSave ) { nicToSave.setPortMirroring ( false ) ; }

Target:
protected void onSavePortMirroring ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface nicToSave ) { nicToSave.setPortMirroring ( false ) ; }
Source:
public void unlinkedWhenUnlinkingNotSupported ( ) throws java.lang.Exception { unlinkingTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.junit.matchers.JUnitMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , false ) ; }

Target:
public void unlinkedWhenUnlinkingNotSupported ( ) throws java.lang.Exception { unlinkingTest ( org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.hamcrest.CoreMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , false ) ; }
Source:
public void setPrincipal ( java.lang.String sessionId , java.lang.String principal ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , principal ) ; }

Target:
public void setPrincipalName ( java.lang.String engineSessionId , java.lang.String name ) { setData ( engineSessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , name ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.core.compat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; if ( "Message" . equals ( propName ) ) { appendMessage ( model.getMessage ( ) ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; if ( "Message" . equals ( propName ) ) { appendMessage ( model.getMessage ( ) ) ; } }
Source:
static void verifyParent ( org.ovirt.engine.api.model.Tag model , java.lang.String parentId ) { org.junit.Assert.assertNotNull ( model.getParent ( ) ) ; org.junit.Assert.assertEquals ( parentId , model.getParent ( ) . getId ( ) ) ; }

Target:
static void verifyParent ( org.ovirt.engine.api.model.Tag model , java.lang.String parentId ) { org.junit.jupiter.api.Assertions.assertNotNull ( model.getParent ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( parentId , model.getParent ( ) . getId ( ) ) ; }
Source:
public void moveItemUp ( ) { if ( ( getSelectedItemIndex ( ) ) > 0 ) { getItems ( ) . Move ( getSelectedItemIndex ( ) , ( ( getSelectedItemIndex ( ) ) - 1 ) ) ; } }

Target:
public void moveItemUp ( ) { if ( ( getSelectedItemIndex ( ) ) > 0 ) { getItems ( ) . move ( getSelectedItemIndex ( ) , ( ( getSelectedItemIndex ( ) ) - 1 ) ) ; } }
Source:
public void setvmt_guid ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvmt_guid ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vmt_guid" ) ) ; }

Target:
public void setVmtGuid ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setVmtGuid ( value ) ; }
Source:
private void initListerners ( final org.ovirt.engine.ui.uicommonweb.models.quota.ChangeQuotaModel model ) { model.getItemsChangedEvent ( ) . addListener ( new org.ovirt.engine.core.compat.IEventListener ( ) { @ java.lang.Override public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { addItems ( model ) ; } } ) ; }

Target:
private void initListerners ( final org.ovirt.engine.ui.uicommonweb.models.quota.ChangeQuotaModel model ) { model.getItemsChangedEvent ( ) . addListener ( new org.ovirt.engine.ui.uicompat.IEventListener ( ) { @ java.lang.Override public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { addItems ( model ) ; } } ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { setTitle ( ( object.isBoot ( ) ? getDefaultTitle ( ) : null ) ) ; return object.isBoot ( ) ? getDefaultImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { setTitle ( ( object.isBoot ( ) ? getDefaultTitle ( ) : null ) ) ; return object.isBoot ( ) ? getDefaultImage ( ) : null ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? constants.returnVmLabel ( ) : constants.shutDownVm ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( ( value.isPool ( ) ? org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.takeVmLabel ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.runVmLabel ( ) ) ) ; }
Source:
public void canDoActionFailsNoConnection ( ) { org.mockito.Mockito.when ( sscDao.get ( connId.toString ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }

Target:
public void validateFailsNoConnection ( ) { org.mockito.Mockito.when ( sscDao.get ( connId.toString ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }
Source:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { networkClusterModel.setRequired ( value ) ; } refreshClustersTable ( ) ; }

Target:
public java.lang.Boolean getValue ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { if ( ( networkClusterModel.getIsChangable ( ) ) && ( ! ( networkClusterModel.isAttached ( ) ) ) ) { return false ; } } return true ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel < T > topListModel , org.ovirt.engine.ui.uicommonweb.models.ListModel < T > bottomListModel , org.ovirt.engine.ui.uicommonweb.UICommand onDownButtonPressed , org.ovirt.engine.ui.uicommonweb.UICommand onUpButtonPressed ) { edit ( topListModel , bottomListModel ) ; this . onDownButtonPressed = onDownButtonPressed ; this . onUpButtonPressed = onUpButtonPressed ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel < T > excludedListModel , org.ovirt.engine.ui.uicommonweb.models.ListModel < T > includedListModel , org.ovirt.engine.ui.uicommonweb.UICommand onIncludeButtonPressed , org.ovirt.engine.ui.uicommonweb.UICommand onExcludeButtonPressed ) { edit ( excludedListModel , includedListModel ) ; this . onIncludeButtonPressed = onIncludeButtonPressed ; this . onExcludeButtonPressed = onExcludeButtonPressed ; }
Source:
public void testIsNetworkExclusiveValid3 ( ) { org.junit.Assert.assertTrue ( underTest.isNetworkExclusive ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN ) ) ) ; }

Target:
public void testIsNetworkExclusiveValid3 ( ) { org.junit.jupiter.api.Assertions.assertTrue ( underTest.isNetworkExclusive ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN ) ) ) ; }
Source:
org.ovirt.engine.api.model.Disk update ( org.ovirt.engine.api.model.Disk device ) ;

Target:
javax.ws.rs.core.Response remove ( org.ovirt.engine.api.model.Action action ) ;
Source:
protected void executeCommand ( ) { initConnectionList ( true ) ; for ( java.util.Map.Entry < org.ovirt.engine.core.common.businessentities.StorageType , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > > connectionToType : getConnectionsTypeMap ( ) . entrySet ( ) ) { disconnectStorageByType ( connectionToType.getKey ( ) , connectionToType.getValue ( ) ) ; } }

Target:
protected void executeCommand ( ) { initConnectionList ( true ) ; for ( java.util.Map.Entry < org.ovirt.engine.core.common.businessentities.storage.StorageType , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > > connectionToType : getConnectionsTypeMap ( ) . entrySet ( ) ) { disconnectStorageByType ( connectionToType.getKey ( ) , connectionToType.getValue ( ) ) ; } }
Source:
public void versionHigherThanCluster ( ) { storagePoolWithVersionHigherThanCluster ( ) ; canDoActionFailed ( VdcBllMessages.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS ) ; }

Target:
public void versionHigherThanCluster ( ) { storagePoolWithVersionHigherThanCluster ( ) ; canDoActionFailed ( EngineMessage.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS ) ; }
Source:
private void assertNoViolations ( java.util.List < org.ovirt.engine.core.dal.VdcBllMessages > violations ) { junit.framework.Assert.assertTrue ( ( "Expecting no violations, but got: " + violations ) , violations.isEmpty ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , name , true , null , null , networkName ) ; }
Source:
protected void executeCommand ( ) { affinityGroupDao.remove ( getParameters ( ) . getAffinityGroupId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { vmStaticDao.incrementDbGenerationForVms ( getAffinityGroup ( ) . getVmIds ( ) ) ; affinityGroupDao.remove ( getParameters ( ) . getAffinityGroupId ( ) ) ; setSucceeded ( true ) ; }
Source:
public void testIsNetworkInSyncWhenBothQosIsNull ( ) throws java.lang.Exception { iface.setQos ( null ) ; networkQos = null ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenNetworkQosIsNull ( ) { networkQos = null ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.network.Network > getManagementNetworkCandidatePredicate ( ) { return org.ovirt.engine.core.utils.linq.LinqUtils.not ( getExternalNetworkPredicate ( ) ) ; }

Target:
public org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.network.Network > getManagementNetworkCandidatePredicate ( ) { return managementNetworkCandidatePredicate ; }
Source:
protected java.util.List < java.lang.String > mockl10n ( java.util.List < java.lang.String > errors ) { java.util.ArrayList < java.lang.String > ret = new java.util.ArrayList < > ( ) ; for ( java.lang.String error : errors ) { ret.add ( mockl10n ( error ) ) ; } return ret ; }

Target:
protected java.util.List < java.lang.String > mockl10n ( java.util.List < java.lang.String > errors ) { return errors.stream ( ) . map ( this :: mockl10n ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public void setExitMessage ( java.lang.String value ) { this . mVmDynamic.setExitMessage ( value ) ; }

Target:
public void setExitMessage ( java.lang.String value ) { this . vmDynamic.setExitMessage ( value ) ; }