auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean isDiskNotShareable ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getDiskImageByImageId ( imageId ) ; if ( diskImage.isShareable ( ) ) { addCanDoActionMessageVariable ( "diskAliases" , diskImage.getDiskAlias ( ) ) ; return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_SHAREABLE_DISK_NOT_SUPPORTED ) ; } return true ; }

Target:
private boolean isDiskNotShareable ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = getDiskImageByImageId ( imageId ) ; if ( diskImage.isShareable ( ) ) { addCanDoActionMessageVariable ( "diskAliases" , diskImage.getDiskAlias ( ) ) ; return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_SHAREABLE_DISK_NOT_SUPPORTED ) ; } return true ; }
Source:
void setErrorMessageHtml ( com.google.gwt.safehtml.shared.SafeHtml text ) ;

Target:
void setErrorMessages ( java.util.List < com.google.gwt.safehtml.shared.SafeHtml > text ) ;
Source:
protected java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return ( getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? getReturnValue ( ) . getInternalTaskIdList ( ) : getReturnValue ( ) . getTaskIdList ( ) ; }

Target:
protected void startPollingAsyncTasks ( ) { startPollingAsyncTasks ( getReturnValue ( ) . getVdsmTaskIdList ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.WatchdogResource getDeviceSubResource ( java.lang.String watchdogId ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendWatchdogResource ( true , parentId , asGuidOr404 ( watchdogId ) , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.WatchdogResource getDeviceSubResource ( java.lang.String watchdogId ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendWatchdogResource ( parentIsVm , parentId , asGuidOr404 ( watchdogId ) , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { jobDao.updateStartedExecutionEntitiesToUnknown ( new java.util.Date ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { jobDao.deleteRunningJobsOfTasklessCommands ( ) ; jobDao.updateStartedExecutionEntitiesToUnknown ( new java.util.Date ( ) ) ; return null ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > isSsoWebappDeployed ( ) { return java.util.Collections.emptyMap ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( "http://localhost:8080/ovirt-engine/sso/credentials-change.html" ) . when ( testServlet ) . getCredentialsChangeUrl ( org.mockito.ArgumentMatchers.any ( ) ) ; testServlet.setBackend ( mockBackend ) ; testServlet.init ( mockBrandingManager , "/ovirt-engine" ) ; mockBackendQuery ( VdcQueryType.GetConfigurationValue , "oVirtVersion" ) ; org.mockito.Mockito.when ( mockBrandingManager.getBrandingThemes ( ) ) . thenReturn ( new java.util.ArrayList < > ( ) ) ; org.mockito.Mockito.when ( mockBrandingManager.getWelcomeSections ( org.mockito.ArgumentMatchers.any ( java.util.Locale.class ) ) ) . thenReturn ( "Welcome Section HTML" ) ; }
Source:
public boolean handlesEvent ( com.google.gwt.view.client.CellPreviewEvent < org.ovirt.engine.ui.uicommonweb.models.EntityModel > event ) { return org.ovirt.engine.ui.common.widget.table.column.CheckboxColumn.handlesEvent ( event ) ; }

Target:
public boolean handlesEvent ( com.google.gwt.view.client.CellPreviewEvent < org.ovirt.engine.ui.uicommonweb.models.EntityModel > event ) { return org.ovirt.engine.ui.common.widget.table.column.AbstractCheckboxColumn.handlesEvent ( event ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllValidationPass ) { return runMultipleActions ( actionType , parameters , isRunOnlyIfAllValidationPass , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.ActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllValidationPass ) { return runMultipleActions ( actionType , parameters , isRunOnlyIfAllValidationPass , false ) ; }
Source:
public java.lang.String getStringRepresentation ( ) { if ( ! ( valid ) ) { return null ; } java.lang.String uri = new java.lang.String ( ) ; if ( ! ( scheme.isEmpty ( ) ) ) { uri += ( scheme ) + "://" ; } uri += authority.getStringRepresentation ( ) ; uri += path ; return uri ; }

Target:
public java.lang.String getStringRepresentation ( ) { if ( ! ( valid ) ) { return null ; } java.lang.String uri = "" ; if ( ! ( scheme.isEmpty ( ) ) ) { uri += ( scheme ) + "://" ; } uri += authority.getStringRepresentation ( ) ; uri += path ; return uri ; }
Source:
public void updateGlusterHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook , org.ovirt.engine.core.compat.Guid hostId ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterHook" , createFullParametersMapper ( hook ) ) ; updateGlusterServerHook ( hook , hostId ) ; }

Target:
public void updateGlusterHookStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterHookStatus" , createIdParameterMapper ( id ) . addValue ( "hook_status" , org.ovirt.engine.core.common.utils.EnumUtils.nameOrNull ( status ) ) ) ; }
Source:
private void validateInvalidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.dal.VdcBllMessages message ) { validateResult ( validationResult , false , message ) ; }

Target:
private static void validateValidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult ) { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateResult ( validationResult , true , null ) ; }
Source:
public void resume ( ) { com.google.gwt.core.client.GWT.log ( ( ( "GridTimer[" + ( name ) ) + "].resume()" ) ) ; if ( active ) { paused = false ; start ( ) ; } }

Target:
public void resume ( ) { org.ovirt.engine.ui.uicommonweb.models.GridTimer.logger.fine ( ( ( "GridTimer[" + ( name ) ) + "].resume()" ) ) ; if ( active ) { paused = false ; start ( ) ; } }
Source:
private static void assertGetResult ( org.ovirt.engine.core.common.businessentities.VmTemplate result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.VM_TEMPLATE_RHEL5 , result.getId ( ) ) ; org.junit.Assert.assertEquals ( "Template generation wasn't loaded as expected" , 1 , result.getDbGeneration ( ) ) ; }

Target:
private static void assertGetResult ( org.ovirt.engine.core.common.businessentities.VmTemplate result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.VM_TEMPLATE_RHEL5 , result.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , result.getDbGeneration ( ) , "Template generation wasn't loaded as expected" ) ; }
Source:
public void setExportDescription ( java.lang.String exportDescription ) { if ( ( this . exportDescription ) != exportDescription ) { this . exportDescription = exportDescription ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ExportDescription" ) ) ; } }

Target:
public void setExportDescription ( java.lang.String exportDescription ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( this . exportDescription , exportDescription ) ) ) { this . exportDescription = exportDescription ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ExportDescription" ) ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult parentEntityExists ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . get ( getProfile ( ) . getClusterId ( ) ) ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult parentEntityExists ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . get ( getProfile ( ) . getClusterId ( ) ) ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void setFencingOptionMappingMap2 ( java.util.HashMap < java.lang.String , java.util.HashMap < java.lang.String , java.lang.String > > value ) { org.ovirt.engine.core.utils.pm.VdsFencingOptions.fencingOptionMapping = value ; }

Target:
public void setFencingOptionMappingMap2 ( java.util.HashMap < java.lang.String , java.util.HashMap < java.lang.String , java.lang.String > > value ) { org.ovirt.engine.core.utils.pm.VdsFenceOptions.fencingOptionMapping = value ; }
Source:
public void setEnforcementType ( org.ovirt.engine.core.common.scheduling.enums.AffinityEnforcementType enforcementType ) { this . enforcementType = enforcementType ; }

Target:
public void setPositive ( boolean positive ) { this . positive = positive ; }
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 > glusterSnapshotDelete ( java.lang.String snapshotName ) ;
Source:
public void setIsResiliencePolicyTabAvailable ( boolean value ) { if ( ( getisResiliencePolicyTabAvailable ( ) ) != value ) { setisResiliencePolicyTabAvailable ( value ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsResiliencePolicyTabAvailable" ) ) ; } }

Target:
public void setIsResiliencePolicyTabAvailable ( boolean value ) { if ( ( getisResiliencePolicyTabAvailable ( ) ) != value ) { setisResiliencePolicyTabAvailable ( value ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsResiliencePolicyTabAvailable" ) ) ; } }
Source:
public void verifyMiddleDomainForMemory ( ) { verifyDomainForMemory ( java.util.Arrays.asList ( invalidStorageDomain1 , validStorageDomain , invalidStorageDomain2 ) ) ; }

Target:
public void filterAllDomainsExceptForTheSecondOne ( ) { filterAllStorageDomainsExceptOne ( java.util.Arrays.asList ( invalidStorageDomain1 , validStorageDomain , invalidStorageDomain2 ) , validStorageDomain ) ; }
Source:
public void setcpu_speed_mh ( java.lang.Double value ) { this . cpu_speed_mh = java.math.BigDecimal.valueOf ( value ) ; }

Target:
public void setCpuSpeedMh ( java.lang.Double value ) { cpuSpeedMh = java.math.BigDecimal.valueOf ( value ) ; }
Source:
protected org.ovirt.engine.api.model.Disk deprecatedPopulate ( org.ovirt.engine.api.model.Disk model , org.ovirt.engine.api.model.Disk entity ) { return ( ( org.ovirt.engine.api.restapi.resource.BackendVmDisksResource ) ( collection ) ) . deprecatedPopulate ( model , entity ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Disk incoming , org.ovirt.engine.api.model.Disk entity ) { return new org.ovirt.engine.core.common.action.UpdateVmDiskParameters ( vmId , entity.getId ( ) , map ( incoming , entity ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return ( ( object.getvm_active ( ) ) + " " ) + ( constants.vmsClusterHost ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . numberOfVmsForHostsLoad ( object.getvm_active ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties > provider ) { return provider.getName ( ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters buildCreateVmParameters ( ) { return new org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters buildCreateVmParameters ( ) { org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters parameters = new org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; parameters.setRunInUnknownStatus ( org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) . isRunInUnknownStatus ( ) ) ; return parameters ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, devicesIds=%s" , super . toString ( ) , java.util.Arrays.toString ( getDevicesIds ( ) ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "devicesIds" , getDevicesIds ( ) ) ; }
Source:
private org.ovirt.engine.core.compat.RpmVersion GetHostVersion ( org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.core.common.businessentities.VDS host = org.ovirt.engine.ui.uicommonweb.DataProvider.GetHostById ( hostId ) ; return host != null ? host.getVersion ( ) : new org.ovirt.engine.core.compat.RpmVersion ( ) ; }

Target:
public void setLibvirtVersion ( java.lang.String value ) { if ( ! ( libvirtVersion.equals ( value ) ) ) { libvirtVersion = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "LibvirtVersion" ) ) ; } }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public void updateVnics ( final org.ovirt.engine.core.compat.Guid vmId , final java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType > vnicInstanceTypes ) { updateVnicsFromParams ( vmId , createAddVmInterfaceParams ( vmId , vnicInstanceTypes ) ) ; }

Target:
protected void onNoNicsDefinedOnVm ( ) { callback.vnicCreated ( vmId ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( hosts , vdsGroupId , vms ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( hosts , clusterId , vms ) ; }
Source:
public static void UnLockVmTemplate ( org.ovirt.engine.core.compat.Guid vmTemplateGuid ) { org.ovirt.engine.core.bll.VmTemplateHandler.SetVmTemplateStatus ( vmTemplateGuid , VmTemplateStatus.OK , null ) ; }

Target:
public static void unlockVmTemplate ( org.ovirt.engine.core.compat.Guid vmTemplateGuid ) { org.ovirt.engine.core.bll.VmTemplateHandler.setVmTemplateStatus ( vmTemplateGuid , VmTemplateStatus.OK , null ) ; }
Source:
protected boolean glusterFeatureEnabled ( ) { return org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.gluster ( cluster.getcompatibility_version ( ) ) ; }

Target:
protected boolean glusterFeatureEnabled ( ) { return org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.gluster ( cluster.getCompatibilityVersion ( ) ) ; }
Source:
java.lang.String getSortableDbField ( java.lang.String fieldName ) ;

Target:
java.util.List < org.ovirt.engine.core.searchbackend.SyntaxChecker.SortByElement > getSortByElements ( java.lang.String fieldName ) ;
Source:
public void vmIdRefNullVmId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setVmId ( null ) ; final org.ovirt.engine.core.compat.Guid g = b.getVmIdRef ( ) ; org.junit.Assert.assertNull ( g ) ; }

Target:
public void getUserIdVdcUserDefault ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.compat.Guid g = b.getUserId ( ) ; org.junit.Assert.assertNull ( g ) ; }
Source:
public static boolean copyNonEditableFieldsToDestination ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.copyNonEditableFieldsToDestination ( source , destination ) ; }

Target:
public static boolean copyNonEditableFieldsToDestination ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , boolean hotSetEnabled ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.copyNonEditableFieldsToDestination ( source , destination , hotSetEnabled ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSaveInternal ( result.getReturnValue ( ) . get ( 0 ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSaveInternal ( result.getReturnValue ( ) . get ( 0 ) ) ; }
Source:
public void testGetTreeForEntityWithVdsType ( ) { baseTestGetTreeForEntity ( FixturesTool.VDS_RHEL6_NFS_SPM , VdcObjectType.VDS , org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ID ) ; }

Target:
public void testGetTreeForEntityWithVdsType ( ) { baseTestGetTreeForEntity ( FixturesTool.VDS_RHEL6_NFS_SPM , VdcObjectType.VDS , FixturesTool.CLUSTER ) ; }
Source:
private com.gwtplatform.mvp.client.proxy.PlaceRequest getSubTabRequest ( ) { return new com.gwtplatform.mvp.client.proxy.PlaceRequest ( createRequestToken ( ) ) ; }

Target:
private com.gwtplatform.mvp.client.proxy.PlaceRequest getSubTabRequest ( ) { return org.ovirt.engine.ui.common.place.PlaceRequestFactory.get ( createRequestToken ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, targetVdsId = %s, action = %s, agent = '%s', policy = '%s'" , super . toString ( ) , getTargetVdsID ( ) , getAction ( ) , getFenceAgent ( ) , getFencingPolicy ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, targetVdsId = %s, action = %s, agent = '%s', policy = '%s'" , super . toString ( ) , getTargetVdsID ( ) , getAction ( ) , getFenceAgent ( ) , getFencingPolicyParams ( ) ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return data.getIsPool ( ) ? data.getTakeVmCommand ( ) : data.getRunCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.getIsPool ( ) ? value.getTakeVmCommand ( ) : value.getRunCommand ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( "http://localhost:8080/ovirt-engine/sso/credentials-change.html" ) . when ( testServlet ) . getCredentialsChangeUrl ( org.mockito.ArgumentMatchers.any ( ) ) ; testServlet.setBackend ( mockBackend ) ; testServlet.init ( mockBrandingManager , "/ovirt-engine" ) ; mockBackendQuery ( VdcQueryType.GetConfigurationValue , "oVirtVersion" ) ; org.mockito.Mockito.when ( mockBrandingManager.getWelcomeSections ( org.mockito.ArgumentMatchers.any ( java.util.Locale.class ) ) ) . thenReturn ( "Welcome Section HTML" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( "http://localhost:8080/ovirt-engine/sso/credentials-change.html" ) . when ( testServlet ) . getCredentialsChangeUrl ( org.mockito.ArgumentMatchers.any ( ) ) ; testServlet.setBackend ( mockBackend ) ; testServlet.init ( mockBrandingManager , "/ovirt-engine" ) ; mockBackendQuery ( QueryType.GetConfigurationValue , "oVirtVersion" ) ; org.mockito.Mockito.when ( mockBrandingManager.getWelcomeSections ( org.mockito.ArgumentMatchers.any ( java.util.Locale.class ) ) ) . thenReturn ( "Welcome Section HTML" ) ; }
Source:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( null ) ; org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.assertDiskDescriptionMap ( disk ) ; }

Target:
public void testJsonDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > data ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : data ) { vds.setCpuName ( cpuFlagsManagerHandler.findMaxServerCpuByFlags ( vds.getCpuFlags ( ) , vds.getVdsGroupCompatibilityVersion ( ) ) ) ; } return data ; }

Target:
protected org.ovirt.engine.core.bll.CpuFlagsManagerHandler getCpuFlagsManagerHandler ( ) { return cpuFlagsManagerHandler ; }
Source:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( storageDomain.getId ( ) , vdsId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( ActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }

Target:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( storageDomain.getId ( ) , vdsId ) ; return backend.runInternalAction ( ActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; super . setActionMessageParameters ( ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__REMOVE ) ; super . setActionMessageParameters ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > reconstructMaster ( java.lang.String spUUID , int hostSpmId , java.lang.String msdUUID , java.lang.String masterVersion ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > resizePV ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String device ) ;
Source:
public void resetCompensation ( ) { businessEntitySnapshotDao.removeAllForCommandId ( commandId ) ; cachedEntities.clear ( ) ; entitiesToPersist.clear ( ) ; }

Target:
public void doClearCollectedCompensationData ( ) { businessEntitySnapshotDao.removeAllForCommandId ( commandId ) ; cachedEntities.clear ( ) ; entitiesToPersist.clear ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfile > getVnicProfiles ( ) { if ( ( vnicProfiles ) == null ) { vnicProfiles = getDbFacade ( ) . getVnicProfileDao ( ) . getAllForNetwork ( vnicProfile.getNetworkId ( ) ) ; } return vnicProfiles ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfile > getVnicProfiles ( ) { if ( ( vnicProfiles ) == null ) { vnicProfiles = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.network.VnicProfileDao.class ) . getAllForNetwork ( vnicProfile.getNetworkId ( ) ) ; } return vnicProfiles ; }
Source:
public void setExportPath ( java.lang.String exportPath ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( this . exportPath , exportPath ) ) ) { this . exportPath = exportPath ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ExportPath" ) ) ; } }

Target:
public void setExportPath ( java.lang.String exportPath ) { if ( ! ( java.util.Objects.equals ( this . exportPath , exportPath ) ) ) { this . exportPath = exportPath ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ExportPath" ) ) ; } }
Source:
public void testEvalPositive ( ) { org.mockito.Mockito.when ( mockNetwork.isExternal ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( underTest.eval ( mockNetwork ) ) ; }

Target:
public void testEvalPositive ( ) { org.mockito.Mockito.when ( mockNetwork.isExternal ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( underTest.test ( mockNetwork ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList ( ) ; }
Source:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( getDiskImageInfo ( ) , getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.AddDiskCommand.getStoragePool ( ) . getcompatibility_version ( ) ) ) ; }

Target:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( getDiskImageInfo ( ) , getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.AddDiskCommand.getStoragePool ( ) . getCompatibilityVersion ( ) ) ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( existing_bookmark.getbookmark_name ( ) ) ; assertNotNull ( result ) ; assertEquals ( existing_bookmark.getbookmark_name ( ) , result.getbookmark_name ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( existing_bookmark.getbookmark_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existing_bookmark.getbookmark_name ( ) , result.getbookmark_name ( ) ) ; }
Source:
org.ovirt.engine.api.resource.DeviceResource < D > getDeviceSubResource ( @ javax.ws.rs.PathParam ( value = "iden" ) java.lang.String id ) ;

Target:
org.ovirt.engine.api.resource.DeviceResource < D > getDeviceResource ( @ javax.ws.rs.PathParam ( value = "iden" ) java.lang.String id ) ;
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public static void sleep ( int milliseconds ) { try { java.lang.Thread.sleep ( milliseconds ) ; } catch ( java.lang.InterruptedException e ) { org.ovirt.engine.core.utils.ThreadUtils.log.warn ( "Interrupted" , e ) ; } }

Target:
public static void sleep ( int milliseconds ) { try { java.lang.Thread.sleep ( milliseconds ) ; } catch ( java.lang.InterruptedException e ) { org.ovirt.engine.core.utils.ThreadUtils.log.warn ( "Interrupted: {}" , e.getMessage ( ) ) ; org.ovirt.engine.core.utils.ThreadUtils.log.debug ( "Exception" , e ) ; } }
Source:
public static org.ovirt.engine.core.common.businessentities.network.VmInterfaceType GetDefaultNicType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { return org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pv ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.VmInterfaceType getDefaultNicType ( ) { return org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pv ; }
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getImageId ( ) , LockingGroup.DISK.name ( ) ) ; }

Target:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getId ( ) , LockingGroup.DISK.name ( ) ) ; }
Source:
public void passthroughProfileContainsFilterId ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . addStoragePoolExistingTasks ( storagePool ) ; }

Target:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.ovirt.engine.core.bll.tasks.AsyncTaskManager.getInstance ( ) . addStoragePoolExistingTasks ( storagePool ) ; }
Source:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.junit.Assert.assertThat ( validator.diskImagesAlreadyExist ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.junit.Assert.assertThat ( validator.diskImagesAlreadyExist ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.Double getcpu_sys ( ) { return this . mVmStatistics.getcpu_sys ( ) ; }

Target:
public java.lang.Double getCpuUser ( ) { return this . vmStatistics.getcpu_user ( ) ; }
Source:
public void setText ( java.lang.String text ) { getLabel ( ) . setText ( text ) ; }

Target:
public void setText ( java.lang.String text ) { label.setText ( text ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { object.getProxyDownCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { object.getProxyDownCommand ( ) . execute ( ) ; }
Source:
public void testgetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageServerConnectionDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testgetAllConnectableStorageSeverConnectionl ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > result = dao.getAllConnectableStorageSeverConnection ( org.ovirt.engine.core.dao.StorageServerConnectionDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void setVmIp ( java.lang.String value ) { this . vmDynamic.setvm_ip ( value ) ; }

Target:
public void setUtcDiff ( java.lang.Integer value ) { this . vmDynamic.setUtcDiff ( value ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel model ) { networks.asEditor ( ) . edit ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel model ) { networks.asEditor ( ) . edit ( model ) ; initEntityModelCellTable ( constants , templates ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc monitorCommand ( java.lang.String vmId , java.lang.String monitorCommand ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneMapReturnForXmlRpc get_image_transfer_session_stats ( java.lang.String ticketId ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel entity = control.createMock ( org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel.class ) ; org.easymock.EasyMock.expect ( entity.getId ( ) ) . andReturn ( org.ovirt.engine.api.restapi.resource.BackendNetworkLabelResourceTest.LABEL ) . anyTimes ( ) ; return entity ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel entity = control.createMock ( org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel.class ) ; org.easymock.EasyMock.expect ( entity.getId ( ) ) . andReturn ( org.ovirt.engine.api.restapi.resource.BackendNetworkLabelResourceTest.LABELS [ index ] ) . anyTimes ( ) ; return entity ; }
Source:
public void testMacPoolExistsEntityNotExist ( ) { org.junit.Assert.assertThat ( createMacPoolValidator ( null ) . macPoolExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAC_POOL_DOES_NOT_EXIST ) ) ; }

Target:
public void testMacPoolExistsEntityNotExist ( ) { org.hamcrest.MatcherAssert.assertThat ( createMacPoolValidator ( null ) . macPoolExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAC_POOL_DOES_NOT_EXIST ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getVmCount ( ) ) > ( vmCountTemp * ( org.ovirt.engine.core.bll.scheduling.VdsSelector.getEffectiveCpuCores ( p ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getVmCount ( ) ) > ( vmCountTemp * ( org.ovirt.engine.core.bll.scheduling.SlaValidator.getEffectiveCpuCores ( p ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.storage.ISingleAsyncOperation CreateSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.AfterDeactivateSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) , _isLastMaster , _newMasterStorageDomainId ) ; }

Target:
public org.ovirt.engine.core.bll.storage.ISingleAsyncOperation createSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.AfterDeactivateSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) , _isLastMaster , _newMasterStorageDomainId ) ; }
Source:
private org.ovirt.engine.core.bll.validator.storage.DiskValidator spyDiskValidator ( org.ovirt.engine.core.common.businessentities.Disk disk ) { org.ovirt.engine.core.bll.validator.storage.DiskValidator diskValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk ) ) ; org.mockito.Mockito.doReturn ( diskValidator ) . when ( command ) . getDiskValidator ( disk ) ; return diskValidator ; }

Target:
private org.ovirt.engine.core.bll.validator.storage.DiskValidator spyDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { org.ovirt.engine.core.bll.validator.storage.DiskValidator diskValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk ) ) ; org.mockito.Mockito.doReturn ( diskValidator ) . when ( command ) . getDiskValidator ( disk ) ; return diskValidator ; }
Source:
public void testUpdateConsoleUserWithOptimisticLockingSuccess ( ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmWithoutConsoleUser = dao.get ( FixturesTool.VM_RHEL5_POOL_51 ) ; vmWithoutConsoleUser.setConsoleUserId ( new org.ovirt.engine.core.compat.Guid ( "9bf7c640-b620-456f-a550-0348f366544b" ) ) ; boolean result = dao.updateConsoleUserWithOptimisticLocking ( vmWithoutConsoleUser ) ; org.junit.Assert.assertTrue ( result ) ; }

Target:
public void testUpdateConsoleUserWithOptimisticLockingSuccess ( ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmWithoutConsoleUser = dao.get ( FixturesTool.VM_RHEL5_POOL_51 ) ; vmWithoutConsoleUser.setConsoleUserId ( new org.ovirt.engine.core.compat.Guid ( "9bf7c640-b620-456f-a550-0348f366544b" ) ) ; boolean result = dao.updateConsoleUserWithOptimisticLocking ( vmWithoutConsoleUser ) ; org.junit.jupiter.api.Assertions.assertTrue ( result ) ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHostCapabilities , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
private org.ovirt.engine.api.model.Host getVdsByVdsId ( ) { return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public void cleanupEngineSessionsOnStartup ( ) { getDbFacade ( ) . getEngineSessionDao ( ) . removeAll ( ) ; }

Target:
public void cleanupEngineSessionsOnStartup ( ) { engineSessionDao.removeAll ( ) ; }
Source:
protected org.ovirt.engine.core.dao.DiskImageDAO getDiskImageDao ( ) { return org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getDbFacade ( ) . getDiskImageDao ( ) ; }

Target:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { runSynchronizeOperation ( new org.ovirt.engine.core.bll.storage.RefreshStoragePoolAndDisconnectAsyncOperationFactory ( ) ) ; return null ; }
Source:
protected boolean updateReadOnlyRequested ( ) { java.lang.Boolean readOnlyNewValue = getNewDisk ( ) . getReadOnly ( ) ; return ( readOnlyNewValue != null ) && ( ! ( vmDeviceForVm.getIsReadOnly ( ) . equals ( readOnlyNewValue ) ) ) ; }

Target:
protected boolean updateReadOnlyRequested ( ) { java.lang.Boolean readOnlyNewValue = getNewDisk ( ) . getReadOnly ( ) ; return ( readOnlyNewValue != null ) && ( ! ( getVmDeviceForVm ( ) . getIsReadOnly ( ) . equals ( readOnlyNewValue ) ) ) ; }
Source:
private void initTemplateDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; diskImage.setVmEntityType ( VmEntityType.TEMPLATE ) ; org.mockito.Mockito.when ( diskImageDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( diskImage ) ; }

Target:
private void initTemplateDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; diskImage.setVmEntityType ( VmEntityType.TEMPLATE ) ; org.mockito.Mockito.when ( diskImageDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( diskImage ) ; }
Source:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { org.ovirt.engine.api.model.Qos qos = model.getQos ( ) ; if ( qos != null ) { qos.setDataCenter ( model.getDataCenter ( ) ) ; } return model ; }

Target:
public org.ovirt.engine.api.model.Network lookupEntity ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }
Source:
public java.lang.Boolean getacpi_enable ( ) { return this . acpi_enable ; }

Target:
public void setAcpiEnable ( java.lang.Boolean value ) { this . acpiEnabled = value ; }
Source:
public void testExistsInvalid ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StoragePoolValidator ( null ) ; org.junit.Assert.assertThat ( validator.exists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ) ; }

Target:
public void testExistsInvalid ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StoragePoolValidator ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.exists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ) ; }
Source:
protected boolean isStorageDomainNotNull ( org.ovirt.engine.core.common.businessentities.StorageDomain domain ) { if ( domain == null ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; return false ; } return true ; }

Target:
protected boolean isStorageDomainNotNull ( org.ovirt.engine.core.common.businessentities.StorageDomain domain ) { if ( domain == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; return false ; } return true ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { return applyStyle ? org.ovirt.engine.ui.common.widget.table.resize.ResizableHeader.TEMPLATE.templatedContent ( style.cellTableHeaderContent ( ) , text ) : text ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { return applyStyle ? org.ovirt.engine.ui.common.widget.table.header.ResizableHeader.TEMPLATE.templatedContent ( style.cellTableHeaderContent ( ) , text ) : text ; }
Source:
public void testIsmonitoringNeededGlusterTrue ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setStatus ( VDSStatus.NonOperational ) ; vds.setVmCount ( 0 ) ; org.junit.Assert.assertTrue ( strategy.isMonitoringNeeded ( vds ) ) ; }

Target:
public void testIsmonitoringNeededGlusterTrue ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setStatus ( VDSStatus.NonOperational ) ; vds.setVmCount ( 0 ) ; org.junit.jupiter.api.Assertions.assertTrue ( strategy.isMonitoringNeeded ( vds ) ) ; }
Source:
public boolean validateAndSetQuota ( ) { return org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getQuotaManager ( ) . validateAndSetStorageQuota ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getStoragePool ( ) , getStorageQuotaListParameters ( ) , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
public boolean validateAndSetQuota ( ) { if ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.isInternalExecution ( ) ) { return true ; } return org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getQuotaManager ( ) . validateAndSetStorageQuota ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getStoragePool ( ) , getStorageQuotaListParameters ( ) , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
private boolean primaryAddressNotSet ( ) { return ( ! ( hasIpConfiguration ( ) ) ) || ( ! ( getIpConfiguration ( ) . hasPrimaryAddressSet ( ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol getIpv6BootProtocol ( ) { if ( primaryIpv6AddressNotSet ( ) ) { return null ; } return getIpConfiguration ( ) . getIpv6PrimaryAddress ( ) . getBootProtocol ( ) ; }
Source:
public void testEmpty ( ) { org.junit.Assert.assertFalse ( new org.ovirt.engine.core.common.businessentities.gluster.GlusterLocalVolumeInfo ( ) . getAvailableThinSizeForDevice ( "/dev/sdc" ) . isPresent ( ) ) ; }

Target:
public void testEmpty ( ) { org.junit.jupiter.api.Assertions.assertFalse ( new org.ovirt.engine.core.common.businessentities.gluster.GlusterLocalVolumeInfo ( ) . getAvailableThinSizeForDevice ( "/dev/sdc" ) . isPresent ( ) ) ; }
Source:
java.lang.String numberValidationNumberBetweenInvalidReason ( java.lang.String prefixMsg , java.lang.String min , java.lang.String max ) ;

Target:
java.lang.String numberValidationNumberGreaterInvalidReason ( java.lang.String prefixMsg , java.lang.String min ) ;
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getbookmark_name ( ) ) ) != null ) { AddErrorMessages ( VdcBllMessages.VAR__ACTION__ADD , VdcBllMessages.ACTION_TYPE_FAILED_BOOKMARK_NAME_ALREADY_EXISTS ) ; return false ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getbookmark_name ( ) ) ) != null ) { AddErrorMessages ( VdcBllMessages.VAR__ACTION__ADD , VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; return false ; } return true ; }
Source:
protected org.ovirt.engine.core.dao.QuotaDAO getQuotaDAO ( ) { return getDbFacade ( ) . getQuotaDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.QuotaDAO getQuotaDAO ( ) { return getDbFacade ( ) . getQuotaDao ( ) ; }
Source:
public static org.ovirt.engine.core.bll.IsoDomainListSyncronizer getInstance ( ) { if ( ( org.ovirt.engine.core.bll.IsoDomainListSyncronizer.isoDomainListSyncronizer ) == null ) { org.ovirt.engine.core.bll.IsoDomainListSyncronizer.isoDomainListSyncronizer = new org.ovirt.engine.core.bll.IsoDomainListSyncronizer ( ) ; } return org.ovirt.engine.core.bll.IsoDomainListSyncronizer.isoDomainListSyncronizer ; }

Target:
public static org.ovirt.engine.core.bll.IsoDomainListSyncronizer getInstance ( ) { if ( ( org.ovirt.engine.core.bll.IsoDomainListSyncronizer.isoDomainListSyncronizer ) == null ) { synchronized ( org.ovirt.engine.core.bll.IsoDomainListSyncronizer.class ) { if ( ( org.ovirt.engine.core.bll.IsoDomainListSyncronizer.isoDomainListSyncronizer ) == null ) { org.ovirt.engine.core.bll.IsoDomainListSyncronizer.isoDomainListSyncronizer = new org.ovirt.engine.core.bll.IsoDomainListSyncronizer ( ) ; } } } return org.ovirt.engine.core.bll.IsoDomainListSyncronizer.isoDomainListSyncronizer ; }