auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.hostdeploy.UpgradeHostInternalCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.HOST_UPGRADE_FINISHED : org.ovirt.engine.core.common.AuditLogType.HOST_UPGRADE_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( org.ovirt.engine.core.bll.hostdeploy.UpgradeHostInternalCommand.getSucceeded ( ) ) { return haMaintenanceFailed ? org.ovirt.engine.core.common.AuditLogType.HOST_UPGRADE_FINISHED_MANUAL_HA : org.ovirt.engine.core.common.AuditLogType.HOST_UPGRADE_FINISHED ; } return org.ovirt.engine.core.common.AuditLogType.HOST_UPGRADE_FAILED ; }
Source:
org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomainByTypeAndPool ( org.ovirt.engine.core.compat.Guid pool , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) ;

Target:
org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) ;
Source:
public void validateVmMemoryCanStartOnVdsBecauseOfLowGuestOverhead ( ) { vds.setGuestOverhead ( 0 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCanStartOnVdsBecauseOfLowGuestOverhead ( ) { vds.setGuestOverhead ( 0 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_DOMAIN_ID , result ) ; }

Target:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 , result ) ; }
Source:
public void calculateNetworkImplementationDetailsNetworkIsSync ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , true , iface.isBridged ( ) , iface.getMtu ( ) , iface.getVlanId ( ) , createQos ( ) ) ; }

Target:
public void calculateNetworkImplementationDetailsNetworkDefaultMtuOutOfSync ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , false , iface.isBridged ( ) , 0 , iface.getVlanId ( ) , createQos ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.ImagesHandler.removeLunDisk ( ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( disk ) ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.ImagesHandler.removeLunDisk ( ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( getDisk ( ) ) ) ) ; return null ; }
Source:
private org.ovirt.engine.core.bll.AddQuotaCommand createCommand ( ) { org.ovirt.engine.core.common.action.QuotaCRUDParameters param = new org.ovirt.engine.core.common.action.QuotaCRUDParameters ( mockGeneralStorageQuota ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddQuotaCommand ( param , null ) ) ; org.mockito.Mockito.doReturn ( quotaDao ) . when ( command ) . getQuotaDao ( ) ; return command ; }

Target:
public void testSetup ( ) { org.mockito.Mockito.doReturn ( quotaDao ) . when ( command ) . getQuotaDao ( ) ; org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; }
Source:
public java.lang.String getInterfaceName ( ) { return org.ovirt.engine.core.bll.UpdateVmInterfaceCommand.getParameters ( ) . getInterface ( ) . getName ( ) ; }

Target:
public java.lang.String getNetworkName ( ) { return getInterface ( ) . getNetworkName ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setId ( diskImageGuid ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setId ( diskImageGuid ) ; disk.setSize ( 100000L ) ; return disk ; }
Source:
protected void executeCommand ( ) { if ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupWithDataCommand.getParameters ( ) . isCollapse ( ) ) { createVolume ( ) ; } else { cloneStructureNotCollapsed ( ) ; } org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupWithDataCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { prepareParameters ( ) ; org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupWithDataCommand.persistCommandIfNeeded ( ) ; if ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupWithDataCommand.getParameters ( ) . isCollapse ( ) ) { createVolume ( ) ; } else { cloneStructureNotCollapsed ( ) ; } org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupWithDataCommand.setSucceeded ( true ) ; }
Source:
protected java.util.stream.Stream < org.ovirt.engine.core.bll.MandatoryCtorPredicate > getMandatoryCtorPredicates ( ) { return java.util.stream.Stream.of ( new org.ovirt.engine.core.bll.MandatoryCtorPredicate ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , org.ovirt.engine.core.bll.context.EngineContext.class ) ) ; }

Target:
protected java.util.stream.Stream < org.ovirt.engine.core.bll.MandatoryCtorPredicate > getMandatoryCtorPredicates ( ) { return java.util.stream.Stream.of ( new org.ovirt.engine.core.bll.MandatoryCtorPredicate ( org.ovirt.engine.core.common.queries.QueryParametersBase.class , org.ovirt.engine.core.bll.context.EngineContext.class ) ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; networks.asEditor ( ) . flush ( ) . setDisplayNetwork ( clusterNetworkManageModel , value ) ; refreshNetworksTable ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel , java.lang.Boolean value ) { networks.asEditor ( ) . flush ( ) . setMigrationNetwork ( clusterNetworkModel , value ) ; refreshNetworksTable ( ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, storagePoolFormatType=%s, recoveryMode=%s, SCSIFencing=%s" , super . toString ( ) , getStoragePoolFormatType ( ) , getRecoveryMode ( ) , getSCSIFencing ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, prevId=%s, prevLVER=%s, storagePoolFormatType=%s, recoveryMode=%s, SCSIFencing=%s" , super . toString ( ) , getPrevId ( ) , getPrevLVER ( ) , getStoragePoolFormatType ( ) , getRecoveryMode ( ) , getSCSIFencing ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . hideEveryoneSelection ( java.lang.Boolean.parseBoolean ( model.getIsRoleListHiddenModel ( ) . getEntity ( ) . toString ( ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . getSearchButton ( ) . getCommand ( ) . setIsExecutionAllowed ( model.availableNamespaces ( ) ) ; }
Source:
public void invalidAuthenticationUserName ( ) { org.mockito.Mockito.when ( provider.isRequiringAuthentication ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertThat ( validator.validateAuthentication ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_NO_USER ) ) ; }

Target:
public void invalidAuthenticationUserName ( ) { org.mockito.Mockito.when ( provider.isRequiringAuthentication ( ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateAuthentication ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_NO_USER ) ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.monitoring.VmStatsRefresher getRefresherForVds ( org.ovirt.engine.core.vdsbroker.VdsManager vdsManager ) { return new org.ovirt.engine.core.vdsbroker.monitoring.EventVmStatsRefresher ( vdsManager ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.monitoring.VmStatsRefresher getRefresherForVds ( org.ovirt.engine.core.vdsbroker.VdsManager vdsManager , org.ovirt.engine.core.vdsbroker.ResourceManager resourceManager ) { return new org.ovirt.engine.core.vdsbroker.monitoring.EventVmStatsRefresher ( vdsManager , resourceManager ) ; }
Source:
public java.lang.String getTargetProfileName ( ) { return "" ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getSourceNetworkName ( ) , getSourceProfileName ( ) ) ; }
Source:
java.lang.String getSessionId ( ) { return clientStorage.getLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY ) ; }

Target:
void getSessionId ( final org.ovirt.engine.ui.frontend.communication.StorageCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . retrieveFromHttpSession ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , callback ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , null ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.ActionReturnValue > runInternalMultipleActions ( org.ovirt.engine.core.common.action.ActionType actionType , java.util.List < org.ovirt.engine.core.common.action.ActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , null ) ; }
Source:
public void clearAllDismissed ( ) { getCallsHandler ( ) . executeModification ( "ClearAllDismissedAuditLogs" , getCustomMapSqlParameterSource ( ) ) ; }

Target:
public void removeAllOfTypeForVolume ( org.ovirt.engine.core.compat.Guid volumeId , int type ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "gluster_volume_id" , volumeId ) . addValue ( "log_type" , type ) ; getCallsHandler ( ) . executeModification ( "DeleteAuditAlertLogByVolumeIDAndType" , parameterSource ) ; }
Source:
private void initStoragePool ( ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; org.mockito.Mockito.when ( storagePoolDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( storagePool ) ; org.mockito.Mockito.when ( command.getStoragePoolId ( ) ) . thenReturn ( storagePoolId ) ; }

Target:
private void initStoragePool ( ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; command.setStoragePoolId ( storagePoolId ) ; org.mockito.Mockito.when ( storagePoolDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( storagePool ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType , org.ovirt.engine.core.compat.Version version ) { return mockStorageDomain ( storageId , 6 , 4 , storageType , version ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN ) ; }
Source:
public void setUp ( ) { domain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( domain ) ; }

Target:
public void setUp ( ) { domain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( domain ) ) ; org.mockito.Mockito.doReturn ( vmDao ) . when ( validator ) . getVmDao ( ) ; }
Source:
public void statusNotInList ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.Active , StorageDomainStatus.Unknown ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusNotInList ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.Active , StorageDomainStatus.Unknown ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
public void setGuestLastLoginTime ( java.util.Date value ) { this . vmDynamic.setGuestLastLoginTime ( value ) ; }

Target:
public void setEmulatedMachine ( java.lang.String value ) { this . vmDynamic.setEmulatedMachine ( value ) ; }
Source:
protected org.ovirt.engine.api.model.Tags mapCollection ( java.util.List < org.ovirt.engine.core.common.businessentities.tags > entities ) { org.ovirt.engine.api.model.Tags collection = new org.ovirt.engine.api.model.Tags ( ) ; for ( org.ovirt.engine.core.common.businessentities.tags entity : entities ) { collection.getTags ( ) . add ( addLinks ( map ( entity ) ) ) ; } return collection ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Tags mapCollection ( java.util.List < org.ovirt.engine.core.common.businessentities.Tags > entities ) { org.ovirt.engine.core.common.businessentities.Tags collection = new org.ovirt.engine.core.common.businessentities.Tags ( ) ; for ( org.ovirt.engine.core.common.businessentities.Tags entity : entities ) { collection.getTags ( ) . add ( addLinks ( map ( entity ) ) ) ; } return collection ; }
Source:
protected void proceedOnFail ( ) { getQueryReturnValue ( ) . setIsSearchValid ( false ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider > searchProviders ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getProviderDao ( ) , true , null ) ; }
Source:
java.lang.Iterable < org.ovirt.engine.ui.uicommonweb.models.EntityModel > getNetworksTableItems ( ) { org.ovirt.engine.ui.uicommonweb.models.ListModel tableModel = networks.flush ( ) ; return tableModel != null ? tableModel.getItems ( ) : new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; }

Target:
java.lang.Iterable < org.ovirt.engine.ui.uicommonweb.models.EntityModel > getNetworksTableItems ( ) { org.ovirt.engine.ui.uicommonweb.models.ListModel tableModel = networks.asEditor ( ) . flush ( ) ; return tableModel != null ? tableModel.getItems ( ) : new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; }
Source:
public void testGetAncestorForFather ( ) { org.ovirt.engine.core.common.businessentities.DiskImage result = dao.getAncestor ( org.ovirt.engine.core.dao.DiskImageDAOTest.ANCESTOR_IMAGE_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.DiskImageDAOTest.ANCESTOR_IMAGE_ID , result.getImageId ( ) ) ; }

Target:
public void testGetAncestorForFather ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage result = dao.getAncestor ( org.ovirt.engine.core.dao.DiskImageDAOTest.ANCESTOR_IMAGE_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.DiskImageDAOTest.ANCESTOR_IMAGE_ID , result.getImageId ( ) ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getMacPoolId ( ) { return getMacPool ( ) . getId ( ) ; }

Target:
public java.lang.String getMacPoolName ( ) { return getMacPoolEntity ( ) . getName ( ) ; }
Source:
public static boolean isStatusQualifyToMigrate ( org.ovirt.engine.core.common.businessentities.VMStatus st ) { return ( ( ( st == ( VMStatus.Up ) ) || ( st == ( VMStatus.PoweringUp ) ) ) || ( st == ( VMStatus.Paused ) ) ) || ( st == ( VMStatus.RebootInProgress ) ) ; }

Target:
public boolean isQualifyToMigrate ( ) { return getStatus ( ) . isQualifyToMigrate ( ) ; }
Source:
private boolean isPasswordAuth ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy authnExtension ) { return ( ( authnExtension.getContext ( ) . < java.lang.Long > get ( Authn.ContextKeys.CAPABILITIES ) . longValue ( ) ) & ( Authn.Capabilities.AUTHENTICATE_PASSWORD ) ) != 0 ; }

Target:
private boolean isCredentialsAuth ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy authnExtension ) { return ( ( authnExtension.getContext ( ) . < java.lang.Long > get ( Authn.ContextKeys.CAPABILITIES ) . longValue ( ) ) & ( Authn.Capabilities.AUTHENTICATE_CREDENTIALS ) ) != 0 ; }
Source:
public void setSpiceProxyEnabled ( boolean enabled ) { this . spiceProxyEnabled = enabled ; }

Target:
public void setSpiceProxyEnabled ( boolean enabled ) { this . consoleOptions.setSpiceProxyEnabled ( enabled ) ; }
Source:
public java.util.ArrayList < java.lang.String > getChangeablePropertiesList ( ) { return org.ovirt.engine.core.common.businessentities.VDS._vdsProperties ; }

Target:
public java.lang.Integer getPmSecondaryPort ( ) { return mVdsStatic.getPmSecondaryPort ( ) ; }
Source:
public void preventRollback ( ) { getParameters ( ) . setExecutionIndex ( 0 ) ; org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }

Target:
public void preventRollback ( ) { org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . setExecutionIndex ( 0 ) ; org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatus ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = getVms ( ) ; return networkNotUsedByVms ( getEntitiesNames ( vms ) ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult networkNotUsed ( java.util.List < ? extends org.ovirt.engine.core.common.businessentities.Nameable > entities , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementPlural , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementSingular ) { final java.util.Collection < java.lang.String > entitiesNames = getEntitiesNames ( entities ) ; return networkNotUsed ( entitiesNames , entitiesReplacementPlural , entitiesReplacementSingular ) ; }
Source:
private < T > void validateAndAssertResult ( T container , boolean isValid ) { java.util.Set < javax.validation.ConstraintViolation < T > > validate = validator.validate ( container ) ; org.junit.Assert.assertEquals ( isValid , validate.isEmpty ( ) ) ; }

Target:
private < T > void validateAndAssertResult ( T container , boolean isValid ) { java.util.Set < javax.validation.ConstraintViolation < T > > validate = validator.validate ( container ) ; org.junit.jupiter.api.Assertions.assertEquals ( isValid , validate.isEmpty ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , null , networkName , true , null , false , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createManagementNetworkNic ( java.lang.String nicName ) { org.mockito.Mockito.when ( managementNetworkUtil.isManagementNetwork ( org.mockito.Matchers.eq ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.MANAGEMENT_NETWORK_NAME ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( true ) ; return createNic ( nicName , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.MANAGEMENT_NETWORK_NAME ) ; }
Source:
private boolean hostProviderConfigured ( ) { return ( ( oldHost.getHostProviderId ( ) ) == null ) && ( ( getHost ( ) . getHostProviderId ( ) ) != null ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostProviderExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) . when ( ( ( ( getHost ( ) . getHostProviderId ( ) ) != null ) && ( ( getProvider ( ) ) == null ) ) ) ; }
Source:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( org.ovirt.engine.core.bll.validator.storage.StorageDomainToPoolRelationValidatorTest.UNSUPPORTED_VERSION ) ; storagePool.setIsLocal ( true ) ; org.junit.Assert.assertThat ( validator.isPosixSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setCompatibilityVersion ( org.ovirt.engine.core.bll.validator.storage.StorageDomainToPoolRelationValidatorTest.UNSUPPORTED_VERSION ) ; storagePool.setIsLocal ( true ) ; org.junit.Assert.assertThat ( validator.isPosixSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.Label addLinks ( org.ovirt.engine.api.model.Label model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParent , java.lang.String ... excludeSubCollectionMembers ) { return super . addLinks ( model , org.ovirt.engine.api.model.Network.class ) ; }

Target:
protected org.ovirt.engine.api.model.NetworkLabel addLinks ( org.ovirt.engine.api.model.NetworkLabel model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParent , java.lang.String ... excludeSubCollectionMembers ) { return super . addLinks ( model , org.ovirt.engine.api.model.Network.class ) ; }
Source:
public void trace ( java.lang.Object arg0 , java.lang.Throwable arg1 ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( arg0 ) , arg1 ) ; } }

Target:
public void trace ( java.lang.Object msg , java.lang.Throwable t ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( msg ) , t ) ; } }
Source:
public static java.util.Collection < java.lang.Object [ ] > data ( ) { return java.util.Arrays.asList ( new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { org.ovirt.engine.core.common.businessentities.storage.ImageFileType.ISO } , new java.lang.Object [ ] { org.ovirt.engine.core.common.businessentities.storage.ImageFileType.Floppy } } ) ; }

Target:
public static java.lang.Object [ ] data ( ) { return new org.ovirt.engine.core.common.businessentities.storage.ImageFileType [ ] { org.ovirt.engine.core.common.businessentities.storage.ImageFileType.ISO , org.ovirt.engine.core.common.businessentities.storage.ImageFileType.Floppy } ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > ) ( returnValue ) ) ) ; }

Target:
public void remove ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.vms.RemoveExternalSubnetModel model = new org.ovirt.engine.ui.uicommonweb.models.vms.RemoveExternalSubnetModel ( this , getSelectedItems ( ) ) ; setWindow ( model ) ; }
Source:
protected static boolean isDiskWithWipeAfterDeleteExist ( java.util.Collection < org.ovirt.engine.core.common.businessentities.Disk > disks ) { for ( org.ovirt.engine.core.common.businessentities.Disk disk : disks ) { if ( disk.isWipeAfterDelete ( ) ) { return true ; } } return false ; }

Target:
protected static boolean isDiskWithWipeAfterDeleteExist ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { for ( org.ovirt.engine.core.common.businessentities.storage.Disk disk : disks ) { if ( disk.isWipeAfterDelete ( ) ) { return true ; } } return false ; }
Source:
public java.lang.Boolean getacpi_enable ( ) { return this . mVmDynamic.getacpi_enable ( ) ; }

Target:
public java.lang.Boolean getAcpiEnable ( ) { return this . vmDynamic.getacpi_enable ( ) ; }
Source:
public void testModifyPoolMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; new org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc ( ) . modifyPool ( null ) ; }

Target:
public void testModifyPoolMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; new org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc ( ) . modifyPool ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { assertEquals ( "" , query ) ; setUpEntityQueryExpectations ( QueryType.GetAllJobs , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpJobs ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { assertEquals ( "" , query ) ; setUpEntityQueryExpectations ( QueryType.GetAllJobs , org.ovirt.engine.core.common.queries.QueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpJobs ( ) , failure ) ; }
Source:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { macs.forEach ( macPool :: freeMac ) ; }

Target:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { log.debug ( "Non-tx, non-compensation state, immediately releasing macs {}." , macs ) ; macs.forEach ( macPool :: freeMac ) ; }
Source:
public void checkEmptyStringAllowed ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , true ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.successfulValidationResult , validationResult ) ; }

Target:
public void checkEmptyStringAllowed ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , true ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "" ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.successfulValidationResult , validationResult ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.AsyncTasks getAsyncTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTask ( taskId , this , asyncTaskCreationInfo , parentCommand ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { persistCommand ( parentCommand , false ) ; }
Source:
public void setvm_name ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( this . mVmStatic.getvm_name ( ) , value ) ) ) { this . mVmStatic.setvm_name ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_name" ) ) ; } }

Target:
public void setVmName ( java.lang.String value ) { this . vmStatic.setVmName ( value ) ; }
Source:
org.ovirt.engine.core.compat.Guid best ( ) ;

Target:
java.util.Optional < org.ovirt.engine.core.compat.Guid > best ( ) ;
Source:
public void removeCommand ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsCache.remove ( commandId ) ; updateCmdHierarchy ( commandId ) ; }

Target:
public void removeCommand ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsCache.remove ( commandId ) ; contextsCache.remove ( commandId ) ; updateCmdHierarchy ( commandId ) ; }
Source:
private static boolean isInitialSizeSupportedForFormat ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat destFormat , org.ovirt.engine.core.compat.Guid dstDomain ) { return ( destFormat == ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.COW ) ) && ( org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.isImageInitialSizeSupported ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . get ( dstDomain ) . getStorageType ( ) ) ) ; }

Target:
private boolean isInitialSizeSupportedForFormat ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat destFormat , org.ovirt.engine.core.compat.Guid dstDomain ) { return ( destFormat == ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.COW ) ) && ( org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.isImageInitialSizeSupported ( storageDomainDao.get ( dstDomain ) . getStorageType ( ) ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue ) ) ; if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }
Source:
protected void searchPreviousPage ( ) { setSearchStringPage ( getPreviousSearchPageNumber ( ) ) ; getSearchCommand ( ) . execute ( ) ; }

Target:
protected void searchPreviousPage ( ) { searchString = stripPageKeyword ( searchString ) ; setSearchStringPage ( getPreviousSearchPageNumber ( ) ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
protected void hideAndClearPopup ( org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget < ? , ? > popup , boolean isConfirm ) { super . hideAndClearPopup ( popup , isConfirm ) ; this . forceRefresh ( getModel ( ) ) ; }

Target:
public void onCleanupModel ( org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent event ) { if ( hasModel ( ) ) { getModel ( ) . setEventBus ( null ) ; } }
Source:
public void testNetworkLinks ( ) { org.ovirt.engine.api.model.Network network = new org.ovirt.engine.api.model.Network ( ) ; network.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( network ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_HREF , network.getHref ( ) ) ; }

Target:
public void testNetworkLinks ( ) { org.ovirt.engine.api.model.Network network = new org.ovirt.engine.api.model.Network ( ) ; network.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( network ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.NETWORK_HREF , network.getHref ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.permissions getPermissions ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.permissions.class , VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( new org.ovirt.engine.core.compat.Guid ( id ) ) , id ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Permissions getPermissions ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Permissions.class , VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( new org.ovirt.engine.core.compat.Guid ( id ) ) , id ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithName ( java.lang.String name ) ;

Target:
org.ovirt.engine.core.common.businessentities.VDS getByName ( java.lang.String name ) ;
Source:
public void constructorInvariants_capacityLowerBound ( ) { new org.ovirt.engine.ui.common.utils.AddOnlyRingBuffer ( 0 , new org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.StringArrayBuffer ( ) ) ; }

Target:
public void constructorInvariants_capacityLowerBound ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> new org.ovirt.engine.ui.common.utils.AddOnlyRingBuffer < > ( 0 , new org.ovirt.engine.ui.common.utils.StringArrayBuffer ( ) ) ) ; }
Source:
public boolean Match ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getLunId ( ) , lun.getLunId ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getLunId ( ) , lun.getLunId ( ) ) ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) . isMigrationNetwork ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel , java.lang.Boolean value ) { networks.asEditor ( ) . flush ( ) . setDisplayNetwork ( clusterNetworkModel , value ) ; refreshNetworksTable ( ) ; }
Source:
public java.lang.String [ ] getGroupNamesAsArray ( ) { return groupNames.split ( "," ) ; }

Target:
public boolean isAdmin ( ) { return isAdmin ; }
Source:
public void onMouseOver ( com.google.gwt.event.dom.client.MouseOverEvent event ) { org.ovirt.engine.ui.uicommonweb.Configurator configurator = ( ( org.ovirt.engine.ui.uicommonweb.Configurator ) ( org.ovirt.engine.ui.uicommonweb.TypeResolver.getInstance ( ) . Resolve ( org.ovirt.engine.ui.uicommonweb.Configurator.class ) ) ) ; getView ( ) . setGuideLinkEnabled ( configurator.isDocumentationAvailable ( ) ) ; }

Target:
public void onMouseOver ( com.google.gwt.event.dom.client.MouseOverEvent event ) { org.ovirt.engine.ui.uicommonweb.Configurator configurator = ( ( org.ovirt.engine.ui.uicommonweb.Configurator ) ( org.ovirt.engine.ui.uicommonweb.TypeResolver.getInstance ( ) . resolve ( org.ovirt.engine.ui.uicommonweb.Configurator.class ) ) ) ; getView ( ) . setGuideLinkEnabled ( configurator.isDocumentationAvailable ( ) ) ; }
Source:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.VM > createVm ( org.ovirt.engine.sdk.entities.VM value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.VM > ( org.ovirt.engine.sdk.entities.ObjectFactory._Vm_QNAME , org.ovirt.engine.sdk.entities.VM.class , null , value ) ; }

Target:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.Vm > createVm ( org.ovirt.engine.sdk.entities.Vm value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.Vm > ( org.ovirt.engine.sdk.entities.ObjectFactory._Vm_QNAME , org.ovirt.engine.sdk.entities.Vm.class , null , value ) ; }
Source:
public void onUncaughtException ( java.lang.Throwable t ) { rootLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; alertManager.showUncaughtExceptionAlert ( t ) ; }

Target:
public void onUncaughtException ( java.lang.Throwable t ) { rootLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; remoteLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; alertManager.showUncaughtExceptionAlert ( t ) ; }
Source:
private void writeDoc ( org.ovirt.api.metamodel.concepts.Concept concept ) { java.lang.String doc = concept.getDoc ( ) ; if ( doc != null ) { writeStartElement ( "doc" ) ; writeCData ( doc ) ; writeEndElement ( ) ; } }

Target:
private void writeDoc ( org.ovirt.api.metamodel.concepts.Concept concept ) { java.lang.String doc = concept.getDoc ( ) ; if ( doc != null ) { writer.writeElement ( "doc" , doc ) ; } }
Source:
public void updateSession ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession geoRepSession ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterGeoRepSessionStatus" , createIdParameterMapper ( geoRepSession.getId ( ) ) . addValue ( "status" , geoRepSession.getStatus ( ) ) ) ; }

Target:
public void updateSession ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession geoRepSession ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterGeoRepSessionStatus" , createIdParameterMapper ( geoRepSession.getId ( ) ) . addValue ( "status" , org.ovirt.engine.core.common.utils.EnumUtils.nameOrNull ( geoRepSession.getStatus ( ) ) ) ) ; }
Source:
protected void OnPropertyChanged ( org.ovirt.engine.core.compat.PropertyChangedEventArgs e ) { super . OnPropertyChanged ( e ) ; if ( e.PropertyName.equals ( "Disks" ) ) { UpdateStorageDomainsAvailability ( ) ; UpdateQuotaAvailability ( ) ; registerToEvents ( ) ; } }

Target:
protected void OnPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . OnPropertyChanged ( e ) ; if ( e.PropertyName.equals ( "Disks" ) ) { UpdateStorageDomainsAvailability ( ) ; UpdateQuotaAvailability ( ) ; registerToEvents ( ) ; } }
Source:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { numOfVfs.setLabel ( constants.numOfVfs ( ) ) ; }

Target:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { numOfVfs.setLabel ( constants.numOfVfs ( ) ) ; allowedNetworksLabel.setText ( constants.allowedNetworks ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterGeoRepMountBrokerSetup ( java.lang.String remoteVolumeName , java.lang.String remoteUserName , java.lang.String remoteGroupName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterGeoRepMountBrokerSetup ( java.lang.String remoteVolumeName , java.lang.String userName , java.lang.String remoteGroupName ) ;
Source:
public java.util.HashMap < java.lang.String , java.lang.String > getPmOptionsMap ( ) { return mVdsStatic.getPmOptionsMap ( ) ; }

Target:
public java.util.Set < org.ovirt.engine.core.common.businessentities.VmRngDevice.Source > getSupportedRngSources ( ) { return mVdsDynamic.getSupportedRngSources ( ) ; }
Source:
public void testGetFullPath_NonSaneParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( "../something" ) ; org.junit.Assert.assertNull ( "Path should be null" , fullPath ) ; }

Target:
public void testGetFullPath_NonSaneParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( mockFile , "../something" ) ; org.junit.Assert.assertNull ( "Path should be null" , fullPath ) ; }
Source:
public java.lang.String getCurrentSsoSessionUser ( javax.servlet.http.HttpServletRequest request , java.util.Map < java.lang.String , java.lang.Object > userInfoMap ) { return "admin@internal" ; }

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 void nullNetworkNameWhenUnlinkingNotSupported ( ) throws java.lang.Exception { networkNameTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) , false , null ) ; }

Target:
public void linkedWhenUnlinkingSupported ( ) throws java.lang.Exception { unlinkingTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , true ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { ProxyDown ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { ProxyDown ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.LUNs getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.storage.LUNs entity = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; entity.setLUN_id ( GUIDS [ index ] . toString ( ) ) ; entity.setLunType ( org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI ) ; return entity ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.LUNs getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.storage.LUNs entity = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; entity.setLUNId ( GUIDS [ index ] . toString ( ) ) ; entity.setLunType ( org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI ) ; return entity ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.HashMap ( ) ; }

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.Erratum > ( ) ; } return source ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.vdsbroker.IsoPrefixVDSCommand.getVDSReturnValue ( ) . setReturnValue ( getIsoPrefix ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.vdsbroker.IsoPrefixVDSCommand.getVDSReturnValue ( ) . setReturnValue ( getIsoPrefix ( ) ) ; }
Source:
public void addLocators ( java.util.List < org.ovirt.api.metamodel.concepts.Locator > newLocators ) { this . locators.addAll ( newLocators ) ; }

Target:
public void addLocators ( java.util.List < org.ovirt.api.metamodel.concepts.Locator > newLocators ) { locators.addAll ( newLocators ) ; locators.sort ( java.util.Comparator.comparing ( Locator :: getName ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getPredefinedVdsIdListToRunOn ( ) { return org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVdsList ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getPredefinedVdsIdListToRunOn ( ) { return java.util.Collections.emptyList ( ) ; }
Source:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.StoragePoolQueryParametersBase.class , new java.lang.String [ ] { "StoragePoolId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }

Target:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }
Source:
protected org.ovirt.engine.core.dao.VdsGroupDao getClusterDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.ClusterDao getClusterDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getClusterDao ( ) ; }
Source:
protected void initMAC ( ) { getMAC ( ) . setIsChangable ( false ) ; }

Target:
protected void initMAC ( ) { getMAC ( ) . setIsChangeable ( false ) ; }
Source:
public java.lang.Integer getMax_memory_buffered_kb ( ) { return this . max_memory_buffered_kb ; }

Target:
public java.lang.Long getMax_memory_buffered_kb ( ) { return this . max_memory_buffered_kb ; }
Source:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return getParameters ( ) . getVm ( ) ; } return super . getVm ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { if ( org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . isImportAsNewEntity ( ) ) { return org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . getVm ( ) ; } return super . getVm ( ) ; }
Source:
public int getValue ( ) { return this . ordinal ( ) ; }

Target:
public int getValue ( ) { return intValue ; }
Source:
public < T > void set ( T current ) { getMap ( ) . put ( current.getClass ( ) , current ) ; }

Target:
public void setSessionId ( java.lang.String sessionId ) { this . sessionId = sessionId ; }
Source:
public static boolean isOsTypeSupported ( int osId , org.ovirt.engine.core.common.businessentities.ArchitectureType architectureType ) { return architectureType == ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getArchitectureFromOS ( osId ) ) ; }

Target:
public boolean isOsTypeSupported ( int osId , org.ovirt.engine.core.common.businessentities.ArchitectureType architectureType ) { return architectureType == ( osRepository.getArchitectureFromOS ( osId ) ) ; }
Source:
public void getIsUsbEnabledDisabled ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; assert ! ( org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getIsUsbEnabled ( usbPolicy ) ) ; }

Target:
public void getIsUsbEnabledDisabled ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.Assert.assertFalse ( org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getIsUsbEnabled ( usbPolicy ) ) ; }
Source:
public static java.lang.String GenerateOTP ( ) { java.security.SecureRandom secr = new java.security.SecureRandom ( ) ; byte [ ] arrRandom = new byte [ 9 ] ; secr.nextBytes ( arrRandom ) ; return new org.apache.commons.codec.binary.Base64 ( 0 ) . encodeToString ( arrRandom ) ; }

Target:
public static java.lang.String generateOTP ( ) { java.security.SecureRandom secr = new java.security.SecureRandom ( ) ; byte [ ] arrRandom = new byte [ 9 ] ; secr.nextBytes ( arrRandom ) ; return new org.apache.commons.codec.binary.Base64 ( 0 ) . encodeToString ( arrRandom ) ; }