auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getJobsByCorrelationID ( ) { java.util.List < org.ovirt.engine.core.common.job.Job > jobsList = dao.getJobsByCorrelationId ( org.ovirt.engine.core.dao.JobDaoTest.EXISTING_CORRELATION_ID ) ; org.junit.Assert.assertEquals ( "Verify a job is associated with the correlation-ID" , org.ovirt.engine.core.dao.JobDaoTest.NUMBER_OF_JOBS_FOR_EXISTING_CORRELATION_ID , jobsList.size ( ) ) ; }

Target:
public void getJobsByCorrelationID ( ) { java.util.List < org.ovirt.engine.core.common.job.Job > jobsList = dao.getJobsByCorrelationId ( org.ovirt.engine.core.dao.JobDaoTest.EXISTING_CORRELATION_ID ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.JobDaoTest.NUMBER_OF_JOBS_FOR_EXISTING_CORRELATION_ID , jobsList.size ( ) , "Verify a job is associated with the correlation-ID" ) ; }
Source:
public void setUp ( ) { vfScheduler = new org.ovirt.engine.core.bll.network.host.VfSchedulerImpl ( networkDao , interfaceDao , hostNicVfsConfigHelper ) ; expectedVnicToVfMap = new java.util.HashMap < > ( ) ; }

Target:
public void setUp ( ) { vfScheduler = new org.ovirt.engine.core.bll.network.host.VfSchedulerImpl ( networkDao , interfaceDao , hostDeviceDao , hostNicVfsConfigHelper ) ; expectedVnicToVfMap = new java.util.HashMap < > ( ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return org.ovirt.engine.ui.webadmin.widget.table.column.NetworkRoleColumnHelper.getValue ( java.util.Collections.singletonList ( ( clusterNetworkModel.isVmNetwork ( ) ? vmImage : emptyImage ) ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return org.ovirt.engine.ui.webadmin.widget.table.column.MultiImageColumnHelper.getValue ( java.util.Collections.singletonList ( ( clusterNetworkModel.isVmNetwork ( ) ? vmImage : emptyImage ) ) ) ; }
Source:
public void failCreateMoreNumaNodesThanVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 1 ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }

Target:
public void failCreateMoreNumaNodesThanVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 1 ) ; assertValidationFailure ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { if ( ( getVds ( ) . getVdsGroupCompatibilityVersion ( ) . compareTo ( Version.v3_3 ) ) >= 0 ) { status = getBroker ( ) . setMOMPolicyParameters ( initDeviceStructure ( ) ) ; ProceedProxyReturnValue ( ) ; } }

Target:
protected void ExecuteVdsBrokerCommand ( ) { if ( ( getVds ( ) . getVdsGroupCompatibilityVersion ( ) . compareTo ( Version.v3_3 ) ) >= 0 ) { status = getBroker ( ) . setMOMPolicyParameters ( initDeviceStructure ( ) ) ; proceedProxyReturnValue ( ) ; } }
Source:
public void testGetByUsernameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsernameAndDomain ( "IdoNoExist" , existingUser.getDomain ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByUsernameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser result = dao.getByUsernameAndDomain ( "IdoNoExist" , existingUser.getDomain ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void getAllForVmForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_50 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( interfaces.isEmpty ( ) ) ; }

Target:
public void getAllForVmForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_50 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( interfaces.isEmpty ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { }

Target:
public void setStorageList ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageList ) { this . storageList = storageList ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getBroker ( ) . getHardwareInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.ProceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.UpdateHardwareSystemInformation ( infoReturn.mInfo , org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getVds ( ) ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getBroker ( ) . getHardwareInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.UpdateHardwareSystemInformation ( infoReturn.mInfo , org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getVds ( ) ) ; }
Source:
private void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; cancelConfirmation ( ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
protected void cancel ( ) { cancelConfirmation ( ) ; setWindow ( null ) ; updateActionsAvailability ( ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( cpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }
Source:
protected void executeQueryCommand ( ) { if ( org.ovirt.engine.core.bll.GetAllUserProfilesQuery.isInternalExecution ( ) ) { org.ovirt.engine.core.bll.GetAllUserProfilesQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getUserProfileDao ( ) . getAll ( ) ) ; } }

Target:
protected void executeQueryCommand ( ) { if ( org.ovirt.engine.core.bll.GetAllUserProfilesQuery.isInternalExecution ( ) ) { org.ovirt.engine.core.bll.GetAllUserProfilesQuery.getQueryReturnValue ( ) . setReturnValue ( userProfileDao.getAll ( ) ) ; } }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ( ) ; } return source ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ) ; }
Source:
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler ( com.google.gwt.event.logical.shared.ValueChangeHandler handler ) { return asSlider ( ) . addValueChangeHandler ( handler ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler ( com.google.gwt.event.logical.shared.ValueChangeHandler handler ) { return new org.ovirt.engine.ui.common.widget.editor.EntityModelInputWithSlider.CompositeHandleRegistration ( textBox.addValueChangeHandler ( new org.ovirt.engine.ui.common.widget.editor.EntityModelInputWithSlider.SelectiveValueChangeHandlerDecorator ( handler ) ) , asSlider ( ) . addValueChangeHandler ( handler ) ) ; }
Source:
public void passDiscardNotSupported ( ) { testDiscardFieldsParsing ( Version.v4_0 , null , null ) ; }

Target:
public void discardMaxBytesFieldIsNotParsed ( ) { testDiscardFieldParsing ( Version.v4_0 , null ) ; }
Source:
private static org.ovirt.engine.core.extensions.mgr.ExtensionsManager getExtensionManager ( org.ovirt.engine.api.extensions.ExtMap context ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionsManager ) ( context.get ( org.ovirt.engine.exttool.logger.EXTENSION_MANAGER ) ) ) ; }

Target:
private static org.ovirt.engine.core.extensions.mgr.ExtensionsManager getExtensionsManager ( org.ovirt.engine.api.extensions.ExtMap context ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionsManager ) ( context.get ( ContextKeys.EXTENSION_MANAGER ) ) ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Agent agent ) { validateParameters ( agent , "address" , "order" , "type" , "username" , "password" ) ; return performCreate ( ActionType.AddFenceAgent , getAddParameters ( agent ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetFenceAgentById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Agent agent ) { validateParameters ( agent , "address" , "order" , "type" , "username" , "password" ) ; return performCreate ( ActionType.AddFenceAgent , getAddParameters ( agent ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.QueryType.GetFenceAgentById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
protected void InitializeVdsError ( org.ovirt.engine.core.common.errors.VdcBllErrors returnStatus ) { org.ovirt.engine.core.common.errors.VDSError tempVar = new org.ovirt.engine.core.common.errors.VDSError ( ) ; tempVar.setCode ( returnStatus ) ; tempVar.setMessage ( getReturnStatus ( ) . mMessage ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.getVDSReturnValue ( ) . setVdsError ( tempVar ) ; }

Target:
protected void initializeVdsError ( org.ovirt.engine.core.common.errors.VdcBllErrors returnStatus ) { org.ovirt.engine.core.common.errors.VDSError tempVar = new org.ovirt.engine.core.common.errors.VDSError ( ) ; tempVar.setCode ( returnStatus ) ; tempVar.setMessage ( getReturnStatus ( ) . mMessage ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.getVDSReturnValue ( ) . setVdsError ( tempVar ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser getUser ( boolean refresh ) { return ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getData ( org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) , org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , refresh ) ) ) ; }

Target:
public boolean isSessionExists ( java.lang.String sessionId ) { return sessionInfoMap.containsKey ( sessionId ) ; }
Source:
protected org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , networkCluster , oldNetworkCluster ) ; }

Target:
protected org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createValidator ( ) { oldNetworkCluster = new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( ) ; return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , vdsDao , networkCluster , oldNetworkCluster ) ; }
Source:
public void unsupportedVersion ( ) { storagePoolWithInvalidVersion ( ) ; canDoActionFailed ( org.ovirt.engine.core.bll.utils.VersionSupport.getUnsupportedVersionMessage ( ) ) ; }

Target:
public void unsupportedVersion ( ) { storagePoolWithInvalidVersion ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , org.ovirt.engine.core.bll.utils.VersionSupport.getUnsupportedVersionMessage ( ) ) ; }
Source:
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 ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionList ( java.lang.String volumeName ) ;
Source:
public org.apache.http.HttpResponse send ( org.apache.http.client.methods.HttpUriRequest request ) { try { injectHeaders ( request ) ; return client.execute ( request ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public org.apache.http.HttpResponse send ( org.apache.http.client.methods.HttpUriRequest request ) { try { injectHeaders ( request ) ; return client.execute ( request ) ; } catch ( java.lang.Exception e ) { throw new java.lang.Error ( "Failed to send request" , e ) ; } }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.storage.RemoveStoragePoolCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_STORAGE_POOL : org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_STORAGE_POOL_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( org.ovirt.engine.core.bll.storage.RemoveStoragePoolCommand.getParameters ( ) . getForceDelete ( ) ) { return org.ovirt.engine.core.bll.storage.RemoveStoragePoolCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_FORCE_REMOVE_STORAGE_POOL : org.ovirt.engine.core.common.AuditLogType.USER_FORCE_REMOVE_STORAGE_POOL_FAILED ; } return org.ovirt.engine.core.bll.storage.RemoveStoragePoolCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_STORAGE_POOL : org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_STORAGE_POOL_FAILED ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.storage_domains ) ( object ) ) . getstorage_name ( ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getDiskList ( ) . size ( ) ) ; }
Source:
private boolean isIsoFileValid ( java.lang.String isoFile ) { return ( org.apache.commons.lang.StringUtils.isNotBlank ( isoFile ) ) && ( org.ovirt.engine.core.utils.FileUtil.fileExists ( org.ovirt.engine.core.compat.backendcompat.Path.Combine ( org.ovirt.engine.core.common.config.Config.resolveOVirtISOsRepositoryPath ( ) , isoFile ) ) ) ; }

Target:
private boolean isIsoFileValid ( java.lang.String isoFile ) { return ( org.apache.commons.lang.StringUtils.isNotBlank ( isoFile ) ) && ( new java.io.File ( ( ( ( org.ovirt.engine.core.common.config.Config.resolveOVirtISOsRepositoryPath ( ) ) + ( java.io.File.separator ) ) + isoFile ) ) . exists ( ) ) ; }
Source:
public java.lang.String render ( java.util.Date object ) { if ( object == null ) { return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.CONSTANTS.notAvailableLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.format.format ( object ) ; }

Target:
public static com.google.gwt.i18n.client.DateTimeFormat getLocalizedDateTimeFormat ( ) { if ( com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale ( ) . getLocaleName ( ) . startsWith ( org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.japaneseLocale ) ) { return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.formatJp ; } return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.format ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.ovirt.engine.core.bll.CommandsFactory.CreateCommand ( actionType , parameters ) ; command.setContext ( context ) ; return command.endAction ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters ) ; command.setContext ( context ) ; return command.endAction ( ) ; }
Source:
public void setDefaultDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { vmStatic.setdefault_display_type ( value ) ; }

Target:
public int getPriority ( ) { return vmStatic.getPriority ( ) ; }
Source:
public org.ovirt.engine.api.model.DiskAttachment get ( ) { return performGet ( VdcQueryType.GetDiskVmElementById , new org.ovirt.engine.core.common.queries.VmDeviceIdQueryParameters ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( diskId ) , vmId ) ) ) ; }

Target:
public org.ovirt.engine.api.model.DiskAttachment get ( ) { return performGet ( QueryType.GetDiskVmElementById , new org.ovirt.engine.core.common.queries.VmDeviceIdQueryParameters ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( diskId ) , vmId ) ) ) ; }
Source:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice , boolean value ) { spice.setUsbAutoShare ( value ) ; }

Target:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.IVnc vnc , boolean value ) { vnc.getOptions ( ) . setRemapCtrlAltDelete ( value ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; return org.ovirt.engine.core.bll.pm.StartVdsCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_VDS_START : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_VDS_START ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { addCanDoActionMessage ( EngineMessage.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__HOST ) ; addCanDoActionMessage ( EngineMessage.VAR__ACTION__START ) ; return org.ovirt.engine.core.bll.pm.StartVdsCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_VDS_START : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_VDS_START ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByParentStepId ( org.ovirt.engine.core.compat.Guid parentStepId ) { return get ( parentStepId ) . getSteps ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByParentStepId ( org.ovirt.engine.core.compat.Guid parentStepId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "parent_step_id" , parentStepId ) ; return getCallsHandler ( ) . executeReadList ( "GetStepsByParentStepId" , createEntityRowMapper ( ) , parameterSource ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . update ( vdsStatic ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { vdsStaticDao.update ( vdsStatic ) ; return null ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; UpdateActionAvailability ( ) ; }

Target:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType type , java.lang.String device ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.compat.Guid vmBaseId , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType type , java.lang.String device ) ;
Source:
private void initEditors ( ) { statusEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelLabelEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus > ( ) ) ; clientsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; memoryPoolsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; }

Target:
private void initEditors ( ) { statusEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelLabelEditor ( new org.ovirt.engine.ui.common.widget.renderer.EnumRenderer < org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus > ( ) ) ; clientsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; memoryPoolsTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( false , true ) ; memoryPoolsTable.setWidth ( "1000px" ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveDisk , new org.ovirt.engine.core.common.action.RemoveDiskParameters ( guid , asGuid ( storageDomainId ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return getDelegate ( ) . getPermissionsResource ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetLegacyPolicyUsb ( ) { 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.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) != null ) { } else { setItems ( null ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
private void newDefaultManagementNetworkFound ( ) { org.mockito.Mockito.when ( defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DC_ID1 ) ) . thenReturn ( mockManagementNetwork ) ; }

Target:
private void newDefaultManagementNetworkFound ( ) { managementNetworkId = null ; org.mockito.Mockito.when ( defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DC_ID1 ) ) . thenReturn ( mockManagementNetwork ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > validateStorageServerConnection ( int serverType , java.lang.String spUUID , java.util.Map < java.lang.String , java.lang.String > [ ] args ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookDisable ( java.lang.String glusterCommand , java.lang.String level , java.lang.String hookName ) ;
Source:
public void Cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; CancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; UpdateActionAvailability ( ) ; }

Target:
public void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; UpdateActionAvailability ( ) ; }
Source:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { registerRollbackHandler ( new org.ovirt.engine.core.bll.network.macpool.TransactionalMacPoolDecorator.UsingTxDecoratorState.ReturnToPoolOnCommit ( macs ) ) ; }

Target:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { registerRollbackHandler ( ( ( org.ovirt.engine.core.utils.transaction.TransactionSuccessListener ) ( ( ) -> { log.debug ( "Command succeeded, releasing macs {}." , macs ) ; org.ovirt.engine.core.bll.network.macpool.macPool.freeMacs ( macs ) ; } ) ) ) ; }
Source:
public void endWithFailure ( ) { updateDestinitationImageId ( ) ; endCreateAllSnapshots ( ) ; }

Target:
public void endWithFailure ( ) { updateDestinitationImageId ( ) ; endCreateAllSnapshots ( ) ; enclosingCommand.getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getlast_vds_run_on ( ) { return this . mVmDynamic.getlast_vds_run_on ( ) ; }

Target:
public java.lang.Integer getUtcDiff ( ) { return this . vmDynamic.getutc_diff ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ) ; }
Source:
protected void postConstruct ( ) { super . postConstruct ( ) ; if ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) != null ) { needsHostDevices = hostDeviceManager.checkVmNeedsDirectPassthrough ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } acquireHostDevicesLock ( ) ; }

Target:
protected void init ( ) { if ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) != null ) { needsHostDevices = hostDeviceManager.checkVmNeedsDirectPassthrough ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } acquireHostDevicesLock ( ) ; }
Source:
public javax.ws.rs.core.Response allocatevm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . getUser ( ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response allocateVm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . getUser ( ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
public void testSave ( ) { dao.save ( new_bookmark ) ; org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( new_bookmark.getbookmark_name ( ) ) ; assertNotNull ( result ) ; }

Target:
public void testSave ( ) { dao.save ( new_bookmark ) ; org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( new_bookmark.getbookmark_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageType getRawValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getstorage_pool_type ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageType getRawValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getStorageType ( ) ; }
Source:
public void canDetachInactiveDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; isNotLocalData ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertTrue ( cmd.canDetachDomain ( false , false , false ) ) ; }

Target:
public void canDetachInactiveDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; isNotLocalData ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertTrue ( cmd.canDetachDomain ( false , false , false ) ) ; }
Source:
public void testTrimmingWhitespaces ( ) { assertPatternMatches ( "Valid string (no trimming whitespaces): " , ValidationUtils.NO_TRIMMING_WHITE_SPACES_PATTERN , "" , "aoeu" , "a o e u ř" , "%2123 o ^ ooe#" ) ; assertPatternDoesNotMatch ( "Invalid string (trimming whitespaces): " , ValidationUtils.NO_TRIMMING_WHITE_SPACES_PATTERN , " " , " aoeu" , "a o e u ř " , " %2123 o ^ ooe##" , " aoeu " ) ; }

Target:
public void testTrimmingWhitespaces ( ) { assertPatternMatches ( "Valid string (no trimming whitespaces): " , ValidationUtils.NO_TRIMMING_WHITE_SPACES_PATTERN , "" , "aoeu" , "a o e u ř" , "%2123 o ^ ooe#" , "a" ) ; assertPatternDoesNotMatch ( "Invalid string (trimming whitespaces): " , ValidationUtils.NO_TRIMMING_WHITE_SPACES_PATTERN , " " , " aoeu" , "a o e u ř " , " %2123 o ^ ooe##" , " aoeu " ) ; }
Source:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDAO ( ) . update ( storagePool ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . update ( storagePool ) ; return null ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { revealStorageView ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( false ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }
Source:
private T lastItem ( ) { return dataDisplay.getVisibleItems ( ) . get ( ( ( dataDisplay.getVisibleItems ( ) . size ( ) ) - 1 ) ) ; }

Target:
private T lastItem ( ) { java.util.List < T > visibleItems = visibleItemsAsList ( ) ; return visibleItems.get ( ( ( visibleItems.size ( ) ) - 1 ) ) ; }
Source:
public boolean isSpiceFileTransferToggleSupported ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.SpiceFileTransferToggleSupported , version ) ) ) ; }

Target:
public boolean isMigrationPoliciesSupported ( org.ovirt.engine.core.compat.Version clusterVersion ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.MigrationPoliciesSupported , clusterVersion.toString ( ) ) ) ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vdsId , NonOperationalReason.STORAGE_DOMAIN_UNREACHABLE , true , domainId ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vdsId , NonOperationalReason.STORAGE_DOMAIN_UNREACHABLE , true , domainId , customLogValues ) ; }
Source:
private void sriovFeatureSupported ( boolean isValid ) { org.mockito.Mockito.when ( validator.sriovFeatureSupported ( ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_SRIOV_FEATURE_NOT_SUPPORTED ) ) ) ; }

Target:
private void sriovFeatureSupported ( boolean isValid ) { org.mockito.Mockito.when ( validator.sriovFeatureSupported ( ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_SRIOV_FEATURE_NOT_SUPPORTED ) ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = executeSnapshotVerb ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = executeSnapshotVerb ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
private static java.util.Map < java.lang.String , java.lang.Object > getVideoDeviceSpecParams ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVideoDeviceSpecParams ( vmBase.getNumOfMonitors ( ) , vmBase.getSingleQxlPci ( ) ) ; }

Target:
private static java.util.Map < java.lang.String , java.lang.Object > getVideoDeviceSpecParams ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return org.ovirt.engine.core.bll.utils.VideoDeviceSettings.getVideoDeviceSpecParams ( vmBase ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.ServerCpu source ) { return org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( source.getCpuName ( ) , cpuName ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.ServerCpu source ) { return java.util.Objects.equals ( source.getCpuName ( ) , cpuName ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, storageType=%s" , super . toString ( ) , getStorageType ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "storageType" , getStorageType ( ) ) . append ( "lunIds" , getLunIds ( ) ) ; }
Source:
public static int count ( java.lang.Iterable < ? > source ) { int result = 0 ; for ( java.lang.Object item : source ) { result ++ ; } return result ; }

Target:
public static int count ( java.lang.Iterable < ? > source ) { int result = 0 ; for ( java.lang.Object ignored : source ) { result ++ ; } return result ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { collection.getAssignedTagSubResource ( "foo" ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendAssignedTagsResourceTest.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { collection.getAssignedTagResource ( "foo" ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendAssignedTagsResourceTest.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testGetAllMacsByStoragePool ( ) { java.util.List < java.lang.String > result = dao.getAllMacsByDataCenter ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) ; org.junit.Assert.assertEquals ( FixturesTool.MAC_ADDRESS , result.get ( 0 ) ) ; }

Target:
public void testGetAllMacsByStoragePool ( ) { java.util.List < java.lang.String > result = dao.getAllMacsByDataCenter ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.MAC_ADDRESS , result.get ( 0 ) ) ; }
Source:
public java.lang.String getTemplate ( ) { return getTemplate ( "" , "" , "" , "" ) ; }

Target:
public java.lang.String getTemplate ( ) { return getTemplate ( " *" , "" , "" , "" ) ; }
Source:
private boolean slaveUsedByRemovedBond ( java.lang.String slaveBondName ) { for ( org.ovirt.engine.core.common.businessentities.network.Bond removedBond : params.getRemovedBonds ( ) ) { if ( slaveBondName.equals ( removedBond.getName ( ) ) ) { return true ; } } return false ; }

Target:
private boolean isNetworkAttachmentRemoved ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment : removedNetworkAttachments ) { if ( java.util.Objects.equals ( nic.getName ( ) , attachment.getNicName ( ) ) ) { return true ; } } return false ; }
Source:
public void testDomainWithNotEnoughSpace ( ) { validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.StorageDomainValidatorTest.mockStorageDomain ( 3 , 756 , StorageType.NFS ) ) ; org.junit.Assert.assertEquals ( "Wrong failure for not enough space" , VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_TARGET_STORAGE_DOMAIN , validator.isDomainWithinThresholds ( ) . getMessage ( ) ) ; }

Target:
public void testDomainWithNotEnoughSpace ( ) { validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.StorageDomainValidatorTest.mockStorageDomain ( 3 , 756 , StorageType.NFS ) ) ; org.junit.Assert.assertEquals ( "Wrong failure for not enough space" , VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN , validator.isDomainWithinThresholds ( ) . getMessage ( ) ) ; }
Source:
public void updateGlusterHookStatus ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) ;

Target:
public void updateGlusterServerHookStatus ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid serverId , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) ;
Source:
public java.lang.String getRandommessage ( ) { java.lang.String [ ] messageTable = new java.lang.String [ ] { "Can not sample data, oVirt Engine Portal is not available. Please check your oVirt Engine status or the ETL configuration." } ; java.util.Random randomtRowGenerator_1 = new java.util.Random ( ) ; return messageTable [ randomtRowGenerator_1.nextInt ( messageTable.length ) ] ; }

Target:
public java.lang.String getRandomvar_value ( ) { return java.lang.Integer.toString ( ( ( context.timesFailed ) + 1 ) ) ; }
Source:
protected boolean isVmExist ( ) { if ( ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVm ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; return false ; } return true ; }

Target:
protected boolean isVmExist ( ) { if ( ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVm ( ) ) == null ) { addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; return false ; } return true ; }
Source:
public void forceRefresh ( ) { getTimer ( ) . stop ( ) ; setIsQueryFirstTime ( true ) ; syncSearch ( ) ; if ( ! ( getIsTimerDisabled ( ) ) ) { getTimer ( ) . start ( ) ; } }

Target:
public void forceRefresh ( ) { stopRefresh ( ) ; setIsQueryFirstTime ( true ) ; syncSearch ( ) ; if ( ! ( getIsTimerDisabled ( ) ) ) { startRefresh ( ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.register.RegisterVmData registerVmData ) { int size = registerVmData.getVm ( ) . getVmMemSizeMb ( ) ; return size + " MB" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.register.RegisterVmData registerVmData ) { int size = registerVmData.getVm ( ) . getVmMemSizeMb ( ) ; return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.RegisterVmPopupView.messages.megabytes ( java.lang.String.valueOf ( size ) ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc heartBeat ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.heartBeat ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc thaw ( java.lang.String vmId ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.thaw ( vmId ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
protected org.ovirt.engine.core.compat.Guid createTaskInCurrentTransaction ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTaskImpl ( asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , description , createEntitiesMapForSingleEntityType ( entityType , entityIds ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value , java.lang.String reason ) { setIsChangeable ( value ) ; if ( ! value ) { setChangeProhibitionReason ( reason ) ; } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value , java.lang.String reason ) { if ( ( isChangable ) != value ) { isChangable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; } setChangeProhibitionReason ( ( value ? null : reason ) ) ; return this ; }
Source:
public void setVdcUser ( org.ovirt.engine.core.common.users.VdcUser vdcUser ) { this . vdcUser = vdcUser ; }

Target:
public void setUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { this . user = user ; }
Source:
public void testRemoveAllForVds ( ) throws java.lang.Exception { dao.removeAllForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , true ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( null , false ) ; org.junit.Assert.assertEquals ( 5 , result.size ( ) ) ; }

Target:
public void testRemoveAllOfTypeForVds ( ) throws java.lang.Exception { dao.removeAllOfTypeForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , AuditLogType.IRS_DISK_SPACE_LOW_ERROR.getValue ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( 3 , result.size ( ) ) ; }
Source:
public void testDoNotValidateNameSizeImport ( ) { java.lang.String string300 = ( ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) + ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) ) + ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) ; checkVmName ( false , string300 ) ; }

Target:
public void testValidateNameSizeImportAsCloned ( ) { checkVmName ( true , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextPropertyString ( 300 ) ) ; }
Source:
public void setHighlyAvailableScore ( int value ) { this . mVdsStatistics.setHighlyAvailableScore ( value ) ; }

Target:
public void setHighlyAvailableScore ( int value ) { vdsStatistics.setHighlyAvailableScore ( value ) ; }
Source:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . message ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompClient.RESPONSE_QUEUE ) . withContent ( new java.lang.String ( message , org.ovirt.vdsm.jsonrpc.client.utils.JsonUtils.UTF8 ) ) . build ( ) ) ; }

Target:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . message ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.RESPONSE_QUEUE ) . withContent ( message ) . build ( ) ) ; }
Source:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.MigrateOnErrorOptions migrateOnErrorOptions ) { switch ( migrateOnErrorOptions ) { case YES : return constants.yes ( ) ; case NO : return constants.no ( ) ; case HA_ONLY : return constants.highPriorityOnly ( ) ; default : return null ; } }

Target:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.MigrateOnErrorOptions migrateOnErrorOptions ) { switch ( migrateOnErrorOptions ) { case YES : return org.ovirt.engine.ui.common.widget.label.ResiliencePolicyLabel.constants.yes ( ) ; case NO : return org.ovirt.engine.ui.common.widget.label.ResiliencePolicyLabel.constants.no ( ) ; case HA_ONLY : return org.ovirt.engine.ui.common.widget.label.ResiliencePolicyLabel.constants.highPriorityOnly ( ) ; default : return null ; } }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( getPair ( ) . hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( pair ) ; }
Source:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmNetwork ( ) ; addVmStatistics ( ) ; addActiveSnapshot ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmNetwork ( ) ; addVmStatistics ( ) ; addActiveSnapshot ( ) ; addVmPermission ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }