auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public synchronized org.ovirt.engine.sdk.Api getConnection ( ) throws java.io.IOException , org.ovirt.engine.sdk.exceptions.ServerException , org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError { if ( ( api ) == null ) { java.lang.String url = java.lang.String.format ( "%s://%s:%s/ovirt-engine/api" , protocol , server , port ) ; org.ovirt.optimizer.ovirt.OvirtClient.log.debug ( java.lang.String.format ( "Logging to %s as %s" , url , username ) ) ; api = new org.ovirt.engine.sdk.Api ( url , username , password , null , null , requestTimeout , true , true , null , false ) ; } return api ; }

Target:
private java.lang.String getUrl ( ) { return java.lang.String.format ( "%s://%s:%s/ovirt-engine/api" , protocol , server , port ) ; }
Source:
public void setUp ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; initializeCommand ( ) ; }

Target:
public void canDoActionSucceedsOnRemoveNotLastAdGroupWithSuperUserPrivileges ( ) throws java.lang.Exception { mockIsLastSuperUserGroup ( false ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "status" ) ) { updateActionAvailability ( ) ; } }
Source:
protected javax.ws.rs.core.Response doAction ( final org.ovirt.engine.core.common.action.ActionType task , final org.ovirt.engine.core.common.action.VdcActionParametersBase params , final org.ovirt.engine.api.model.Action action , org.ovirt.engine.api.restapi.resource.EntityResolver entityResolver ) { return doAction ( task , params , action , PollingType.VDSM_TASKS , entityResolver ) ; }

Target:
protected javax.ws.rs.core.Response doAction ( final org.ovirt.engine.core.common.action.ActionType task , final org.ovirt.engine.core.common.action.ActionParametersBase params , final org.ovirt.engine.api.model.Action action , org.ovirt.engine.api.restapi.resource.EntityResolver entityResolver ) { return doAction ( task , params , action , PollingType.VDSM_TASKS , entityResolver ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateNetworkExclusiveOnNics ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator validator = new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkBusinessEntityMap ) ; return validator.validateNetworkExclusiveOnNics ( ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateNetworkExclusiveOnNics ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator validator = new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkBusinessEntityMap , networkExclusivenessValidator ) ; return validator.validateNetworkExclusiveOnNics ( ) ; }
Source:
public org.ovirt.engine.api.model.Disk resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Disk.class , VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( diskId ) , diskId.toString ( ) , true ) ; }

Target:
public org.ovirt.engine.api.model.Disk resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Disk.class , QueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( diskId ) , diskId.toString ( ) , true ) ; }
Source:
public void trace ( java.lang.Object arg0 , java.lang.Throwable arg1 ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( arg0 ) , arg1 ) ; } }

Target:
public boolean isDebugEnabled ( ) { return log.isDebugEnabled ( ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getExistingEntityId ( ) { return org.ovirt.engine.core.dao.StepDaoTest.EXISTING_STEP_ID ; }

Target:
protected org.ovirt.engine.core.dao.StepDao getDao ( ) { return dao ; }
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 passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null , null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { persistCommand ( cmdEntity ) ; saveCommandContext ( cmdEntity.getId ( ) , cmdContext ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { if ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( cmdEntity.getId ( ) ) ) { return ; } persistCommand ( cmdEntity ) ; saveCommandContext ( cmdEntity.getId ( ) , cmdContext ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.VdcBLLException { return getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( commandType , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return getVdsBroker ( ) . runVdsCommand ( commandType , parameters ) ; }
Source:
public void invalidVdsGroup ( ) { createSimpleCommand ( ) ; org.mockito.Mockito.when ( vdsGroupDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_CLUSTER_IS_NOT_VALID ) ; }

Target:
public void invalidVdsGroup ( ) { createSimpleCommand ( ) ; org.mockito.Mockito.when ( vdsGroupDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; canDoActionFailedWithReason ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; }
Source:
protected void OpenReport ( ) { setWidgetModel ( createReportModel ( ) ) ; }

Target:
protected void openReport ( ) { setWidgetModel ( createReportModel ( ) ) ; }
Source:
public void setRandomDelay ( long randomDelay ) { this . randomDelay = randomDelay ; }

Target:
public long getDelayMinimum ( ) { return this . delayMinimum ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryImageParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 2 ) , isPostZero ( ) , false ) ; }

Target:
protected abstract org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domain_static mapToStatic ( org.ovirt.engine.api.model.StorageDomain model ) { return getMapper ( modelType , org.ovirt.engine.core.common.businessentities.storage_domain_static.class ) . map ( model , null ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatic mapToStatic ( org.ovirt.engine.api.model.StorageDomain model ) { return getMapper ( modelType , org.ovirt.engine.core.common.businessentities.StorageDomainStatic.class ) . map ( model , null ) ; }
Source:
private void syncAttachedDirectLuns ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > deviceList ) { org.ovirt.engine.core.common.action.SyncAttachedDirectLunsParameters parameters = new org.ovirt.engine.core.common.action.SyncAttachedDirectLunsParameters ( org.ovirt.engine.core.bll.storage.pool.SyncAllUsedLunsCommand.getParameters ( ) . getStoragePoolId ( ) ) ; parameters.setDeviceList ( deviceList ) ; runInternalAction ( VdcActionType.SyncAttachedDirectLuns , parameters ) ; }

Target:
private void syncAttachedDirectLuns ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > deviceList ) { org.ovirt.engine.core.common.action.SyncAttachedDirectLunsParameters parameters = new org.ovirt.engine.core.common.action.SyncAttachedDirectLunsParameters ( org.ovirt.engine.core.bll.storage.pool.SyncAllUsedLunsCommand.getParameters ( ) . getStoragePoolId ( ) ) ; parameters.setDeviceList ( deviceList ) ; runInternalAction ( ActionType.SyncAttachedDirectLuns , parameters ) ; }
Source:
org.ovirt.engine.core.common.businessentities.network.VnicProfile loadVnicProfile ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.getVnicProfile ( vnicProfileId ) ; }

Target:
org.ovirt.engine.core.common.businessentities.network.VnicProfile loadVnicProfile ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { return getNetworkHelper ( ) . getVnicProfile ( vnicProfileId ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePool runInTransaction ( ) { getStoragePoolDAO ( ) . update ( getStoragePool ( ) ) ; return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool runInTransaction ( ) { getStoragePoolDao ( ) . update ( getStoragePool ( ) ) ; return null ; }
Source:
private boolean canEditAssign ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ! ( ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) . isManagement ( ) ) ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return clusterNetworkModel.isDisplayNetwork ( ) ; }
Source:
public java.util.List < java.lang.Boolean > readBooleans ( ) { return readStrings ( ) . stream ( ) . map ( this :: parseBoolean ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }

Target:
public java.util.List < java.util.Date > readDates ( ) { java.util.List < java.util.Date > dates = new java.util.ArrayList < > ( ) ; for ( java.lang.String string : readStrings ( ) ) { dates.add ( parseDate ( string ) ) ; } return dates ; }
Source:
public void testRemoveAll ( ) { dao.removeAll ( java.util.Arrays.asList ( FixturesTool.ORPHAN_LUN_ID1 , FixturesTool.ORPHAN_LUN_ID2 ) ) ; org.junit.Assert.assertEquals ( ( ( getEntitiesTotalCount ( ) ) - 2 ) , dao.getAll ( ) . size ( ) ) ; }

Target:
public void testRemoveAll ( ) { dao.removeAll ( java.util.Arrays.asList ( FixturesTool.ORPHAN_LUN_ID1 , FixturesTool.ORPHAN_LUN_ID2 ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( ( ( getEntitiesTotalCount ( ) ) - 2 ) , dao.getAll ( ) . size ( ) ) ; }
Source:
public static boolean isActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ; }

Target:
public static boolean isDataActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean isData = storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; boolean isActive = ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ; return isData && isActive ; }
Source:
public org.ovirt.engine.api.model.GlusterVolumes list ( ) { java.lang.String constraint = org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( getUriInfo ( ) , ( "cluster = " + ( parent.get ( ) . getName ( ) ) ) , org.ovirt.engine.api.model.GlusterVolume.class ) ; return mapCollection ( getBackendCollection ( SearchType.GlusterVolume , constraint ) ) ; }

Target:
public org.ovirt.engine.api.model.GlusterVolumes list ( ) { java.lang.String constraint = org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( httpHeaders , uriInfo , ( "cluster = " + ( parent.get ( ) . getName ( ) ) ) , org.ovirt.engine.api.model.GlusterVolume.class ) ; return mapCollection ( getBackendCollection ( SearchType.GlusterVolume , constraint ) ) ; }
Source:
public void testRangeStartAndRangeStopAreInclusive ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.network.macpoolmanager.Range ( org.ovirt.engine.core.bll.network.macpoolmanager.RangeTest.MAC_FROM_RANGE , org.ovirt.engine.core.bll.network.macpoolmanager.RangeTest.MAC_FROM_RANGE ) . getAvailableCount ( ) , org.hamcrest.CoreMatchers.is ( 1 ) ) ; }

Target:
public void testRangeStartAndRangeStopAreInclusive ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.network.macpool.Range ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_FROM_RANGE , org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_FROM_RANGE ) . getAvailableCount ( ) , org.hamcrest.CoreMatchers.is ( 1 ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getMemoryBalloons ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.BALLOON ) ; }

Target:
private static void disableSpiceUsb ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeUsbControllers ( vmId ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeUsbSlots ( vmId ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancelConfirm ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { cancel ( ) ; } }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return object.isBoot ( ) ? getDefaultImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return object.getDiskVmElements ( ) . iterator ( ) . next ( ) . isBoot ( ) ? getDefaultImage ( ) : null ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.common.AuditLogType.USER_CONNECT_HOSTS_TO_LUN_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { setVds ( getResult ( ) . getFailedVds ( ) ) ; return org.ovirt.engine.core.common.AuditLogType.USER_CONNECT_HOSTS_TO_LUN_FAILED ; }
Source:
public void storageDomainWithNullId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( b.STORAGE_DOMAIN , s ) ; }

Target:
public void storageDomainWithIdNullPool ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }
Source:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic ) ) ; }

Target:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic , null ) ) ; }
Source:
public void testLoginNameAtDirectoryWhenDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "MiddleEarth.com" ) ; command.setCurrentUser ( user ) ; junit.framework.Assert.assertEquals ( command.getConsoleUserName ( ) , "Legolas@MiddleEarth.com" ) ; }

Target:
public void testLoginNameAtDirectoryWhenDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "MiddleEarth.com" ) ; command.setCurrentUser ( user ) ; org.junit.Assert.assertEquals ( command.getConsoleUserName ( ) , "Legolas@MiddleEarth.com" ) ; }
Source:
private void removeWithoutLocking ( org.ovirt.engine.core.compat.Guid macPoolId ) { macPools.remove ( macPoolId ) ; }

Target:
private void removeWithoutLocking ( org.ovirt.engine.core.compat.Guid macPoolId ) { org.ovirt.engine.core.bll.network.macpool.MacPoolPerCluster.log.debug ( "Removing pool id=" , macPoolId ) ; macPools.remove ( macPoolId ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > createGhostValue ( ) { return new org.ovirt.engine.ui.uicommonweb.models.EntityModel ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.hosts.FenceProxyModel createGhostValue ( ) { return new org.ovirt.engine.ui.uicommonweb.models.hosts.FenceProxyModel ( ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid removeConfImage ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return removeImage ( VmCommand.DELETE_SECONDARY_IMAGES_TASK_KEY , buildDeleteMemoryConfParams ( guids ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid removeConfImage ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return removeImage ( org.ovirt.engine.core.bll.memory.MemoryImageRemover.DELETE_SECONDARY_IMAGES_TASK_KEY , buildDeleteMemoryConfParams ( guids ) ) ; }
Source:
public void disconnect ( ) { if ( ( _client ) != null ) { _client.disconnect ( ) ; } }

Target:
public void close ( ) throws java.io.IOException { if ( ( _client ) != null ) { _client.close ( ) ; } }
Source:
public void setnet_config_dirty ( java.lang.Boolean value ) { mVdsDynamic.setnet_config_dirty ( value ) ; }

Target:
public void setNetConfigDirty ( java.lang.Boolean value ) { mVdsDynamic.setnet_config_dirty ( value ) ; }
Source:
private void addUuid ( org.snmp4j.PDU v2pdu , final org.snmp4j.smi.OID prefix , int suffix , org.ovirt.engine.core.compat.Guid val ) { if ( ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( val ) ) ) { addString ( v2pdu , prefix , suffix , val.toString ( ) , false ) ; } }

Target:
private void addUuid ( org.snmp4j.PDU pdu , final org.snmp4j.smi.OID prefix , int suffix , org.ovirt.engine.core.compat.Guid val ) { if ( ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( val ) ) ) { addString ( pdu , prefix , suffix , val.toString ( ) , false ) ; } }
Source:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return canEditRequired ( model ) ; }

Target:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return canEditAssign ( clusterNetworkModel ) ; }
Source:
public void detachCinderDomainFromPool ( final org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap mapToRemove ) { getStoragePoolIsoMapDao ( ) . remove ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( mapToRemove.getStorageId ( ) , mapToRemove.getStoragePoolId ( ) ) ) ; }

Target:
public void detachCinderDomainFromPool ( final org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap mapToRemove ) { storagePoolIsoMapDao.remove ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( mapToRemove.getStorageId ( ) , mapToRemove.getStoragePoolId ( ) ) ) ; }
Source:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
private void setVolume ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity ) { cmd.getParameters ( ) . setVolume ( volumeEntity ) ; cmd.setGlusterVolumeId ( volumeEntity.getId ( ) ) ; }
Source:
public void testHasSpiceSupport ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.hasSpiceSupport ( 777 , null ) ) ; }

Target:
public void testHasSpiceSupport ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.getSpiceSupportMatrix ( ) . get ( 777 ) . get ( null ) ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present , java.lang.String width ) { table.ensureColumnPresent ( column , headerText , present , width ) ; tableHeader.ensureColumnPresent ( column , headerText , present , width ) ; }

Target:
public void ensureColumnVisible ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header , boolean visible , java.lang.String width ) { table.ensureColumnVisible ( column , header , visible , width ) ; tableHeader.ensureColumnVisible ( column , header , visible , width ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getDiskProfiles ( ) { if ( ( diskProfiles ) == null ) { diskProfiles = getDbFacade ( ) . getDiskProfileDao ( ) . getAllForStorageDomain ( diskProfile.getStorageDomainId ( ) ) ; } return diskProfiles ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getDiskProfiles ( ) { if ( ( diskProfiles ) == null ) { diskProfiles = getDiskProfileDao ( ) . getAllForStorageDomain ( getDiskProfile ( ) . getStorageDomainId ( ) ) ; } return diskProfiles ; }
Source:
protected abstract void ReadOsSection ( org.ovirt.engine.core.compat.backendcompat.XmlNode section ) ;

Target:
protected abstract java.lang.String getDefaultDisplayTypeStringRepresentation ( ) ;
Source:
private org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( java.lang.String networkName ) { java.util.List < java.lang.String > vmNames = vmInterfaceManager.findActiveVmsUsingNetworks ( host.getId ( ) , java.util.Collections.singleton ( networkName ) ) ; return new org.ovirt.engine.core.common.utils.PluralMessages ( ) . getNetworkInUse ( vmNames , VdcBllMessages.VAR__ENTITIES__VM , VdcBllMessages.VAR__ENTITIES__VMS ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( java.lang.String networkName ) { java.util.List < java.lang.String > vmNames = vmInterfaceManager.findActiveVmsUsingNetworks ( host.getId ( ) , java.util.Collections.singleton ( networkName ) ) ; return new org.ovirt.engine.core.common.utils.PluralMessages ( ) . getNetworkInUse ( vmNames , EngineMessage.VAR__ENTITIES__VM , EngineMessage.VAR__ENTITIES__VMS ) ; }
Source:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getName ( ) ) ) != null ) { addErrorMessages ( EngineMessage.VAR__ACTION__ADD , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; return false ; } return true ; }

Target:
protected boolean validate ( ) { if ( ( bookmarkDao.getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getName ( ) ) ) != null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; } return true ; }
Source:
private boolean attachmentForNetworkAlreadyExist ( java.lang.String networkName , java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > existingNetworkAttachments ) { org.ovirt.engine.core.common.businessentities.network.Network network = clusterNetworks.get ( networkName ) ; return containsNetwork ( existingNetworkAttachments , network ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getBaseInterfaceNicOrThis ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { return ( nic.getBaseInterface ( ) ) == null ? nic : nicsByName.get ( nic.getBaseInterface ( ) ) ; }
Source:
protected void applyCommonValidationStyles ( ) { super . applyCommonValidationStyles ( ) ; if ( ! ( org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.isUsePatternfly ( ) ) ) { org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.getValidatedWidgetStyle ( ) . setPadding ( 5 , Unit.PX ) ; } }

Target:
protected void noPaddingNoFixes ( ) { org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.getValidatedWidgetStyle ( ) . clearPadding ( ) ; getCheckboxWidgetLabel ( ) . removeClassName ( org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.CBE_LABEL_PFLY_FIX ) ; getContentWidgetElement ( ) . removeClassName ( org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.CBE_CHECKBOX_PFLY_FIX ) ; getContentWidgetElement ( ) . removeClassName ( Styles.FORM_CONTROL ) ; removeContentWidgetStyleName ( Styles.FORM_CONTROL ) ; }
Source:
private void initDestStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain destDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; destDomain.setStatus ( StorageDomainStatus.Active ) ; destDomain.setStorageType ( StorageType.NFS ) ; org.mockito.Mockito.doReturn ( destDomain ) . when ( command ) . getStorageDomain ( ) ; }

Target:
private void initDestStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.common.businessentities.StorageDomain destDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; destDomain.setStorageType ( storageType ) ; destDomain.setStatus ( StorageDomainStatus.Active ) ; org.mockito.Mockito.doReturn ( destDomain ) . when ( command ) . getStorageDomain ( ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior ) ( target ) ) ; behavior.PostInitTemplate ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.NewVmModelBehavior ) ( target ) ) ; behavior.postInitTemplate ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( returnValue ) ) ) ; }
Source:
public void setit_guid ( org.ovirt.engine.core.compat.Guid value ) { getImage ( ) . setTemplateImageId ( value ) ; }

Target:
public void setImageTemplateId ( org.ovirt.engine.core.compat.Guid guid ) { getImage ( ) . setTemplateImageId ( guid ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VolumeType getRawValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return org.ovirt.engine.core.common.businessentities.VolumeType.forValue ( object.getVolumeType ( ) . getValue ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.VolumeType getRawValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return org.ovirt.engine.core.common.businessentities.storage.VolumeType.forValue ( object.getVolumeType ( ) . getValue ( ) ) ; }
Source:
public void validateSucceedsWithStartActionType ( ) { cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateSucceedsWithStopActionType ( ) { cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_STOP ) ; prepareMocks ( ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected java.lang.String getWarning ( ) { return constants.cannotCopyDisks ( ) ; }

Target:
protected java.lang.String getWarning ( java.util.List < java.lang.String > disks ) { return messages.cannotCopyDisks ( org.ovirt.engine.core.compat.StringHelper.join ( ", " , disks.toArray ( ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { expandTree ( display.getRootTreeNode ( ) , false ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { expandTree ( display.getRootTreeNode ( ) , false ) ; if ( initialized ) { display.getRootTreeNode ( ) . setChildOpen ( 0 , true ) ; } initialized = true ; }
Source:
public org.ovirt.engine.api.model.Hosts list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllHosts , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; else return mapCollection ( getBackendCollection ( SearchType.VDS ) ) ; }

Target:
private org.ovirt.engine.api.model.Hosts listAll ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllHosts , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VDS ) ) ; } }
Source:
public void testGetstorage_domain_by_type_for_storagePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) , StorageDomainType.Master ) ; assertGetResult ( result.get ( 0 ) ) ; }

Target:
public void testGetStorageDomainByTypeForStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) , StorageDomainType.Master ) ; assertGetResult ( result.get ( 0 ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getvm_ip ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { return object.getSecond ( ) . getvds_group_name ( ) ; }
Source:
private javax.ws.rs.core.Response resetOption ( org.ovirt.engine.api.model.Action action , java.lang.String optionName , java.lang.String optionValue , boolean force ) { return doAction ( VdcActionType.ResetGlusterVolumeOptions , new org.ovirt.engine.core.common.action.gluster.ResetGlusterVolumeOptionsParameters ( guid , new org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity ( guid , optionName , optionValue ) , force ) , action ) ; }

Target:
private javax.ws.rs.core.Response resetOption ( org.ovirt.engine.api.model.Action action , java.lang.String optionName , java.lang.String optionValue , boolean force ) { return doAction ( ActionType.ResetGlusterVolumeOptions , new org.ovirt.engine.core.common.action.gluster.ResetGlusterVolumeOptionsParameters ( guid , new org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity ( guid , optionName , optionValue ) , force ) , action ) ; }
Source:
public void setcpu_over_commit_time_stamp ( java.util.Date value ) { mVdsDynamic.setcpu_over_commit_time_stamp ( value ) ; }

Target:
public void setCpuOverCommitTimestamp ( java.util.Date value ) { mVdsDynamic.setcpu_over_commit_time_stamp ( value ) ; }
Source:
public static void addPermissionsOnVnicProfile ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid vnicProfileId , boolean publicUse ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( userId , vnicProfileId , PredefinedRoles.NETWORK_ADMIN , VdcObjectType.VnicProfile ) ; if ( publicUse ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , vnicProfileId , PredefinedRoles.VNIC_PROFILE_USER , VdcObjectType.VnicProfile ) ; } }

Target:
public static void addPermissionsOnVnicProfile ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid vnicProfileId , boolean publicUse ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( userId , vnicProfileId , PredefinedRoles.NETWORK_ADMIN , VdcObjectType.VnicProfile ) ; if ( publicUse ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , vnicProfileId , PredefinedRoles.VNIC_PROFILE_USER , VdcObjectType.VnicProfile ) ; } }
Source:
protected void addCanDoActionMessage ( java.lang.String message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message ) ; }

Target:
protected void addCanDoActionMessage ( java.lang.String message ) { if ( org.apache.commons.lang.StringUtils.isNotEmpty ( message ) ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message ) ; } }
Source:
private void canDoActionFailedWithReason ( final org.ovirt.engine.core.dal.VdcBllMessages message ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( message.toString ( ) ) ) ; }

Target:
private void canDoActionFailedWithReason ( final org.ovirt.engine.core.common.errors.VdcBllMessages message ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( message.toString ( ) ) ) ; }
Source:
public void setup ( ) { org.mockito.Mockito.when ( version.getValue ( ) ) . thenReturn ( null ) ; validator = new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ; }

Target:
public void setup ( ) { org.mockito.Mockito.when ( version.getValue ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION ) ; validator = new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createStorageDomainValidator ( ) { java.util.Set < org.ovirt.engine.core.compat.Guid > storageIds = org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( getImagesList ( ) ) ; return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.snapshots.RestoreAllSnapshotsCommand.getStoragePoolId ( ) , storageIds ) ; }

Target:
protected boolean performImagesChecks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImagesToCheck = org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.filterImageDisks ( getImagesList ( ) , true , false , true ) ; org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator ( diskImagesToCheck ) ; return validate ( diskImagesValidator.diskImagesNotLocked ( ) ) ; }
Source:
public void deleteRunningJobsOfTasklessCommands ( ) { updateQueryGetResult ( entityManager.createNativeQuery ( "select cast(DeleteRunningJobsOfTasklessCommands as text) from DeleteRunningJobsOfTasklessCommands()" ) ) ; }

Target:
public void updateStartedExecutionEntitiesToUnknown ( java.util.Date updateTime ) { updateQueryGetResult ( getEntityManager ( ) . createNativeQuery ( "select cast(UpdateStartedExecutionEntitiesToUnknown as text) from UpdateStartedExecutionEntitiesToUnknown(?)" ) . setParameter ( 1 , updateTime ) ) ; }
Source:
public void setvm_domain ( java.lang.String value ) { this . mVmStatic.setdomain ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getOs ( ) { return this . getVmOs ( ) ; }
Source:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( getEntity ( ) ) ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getRefreshSessionsCommand ( ) { return refreshSessionsCommand ; }
Source:
public void unlinkedWhenUnlinkingNotSupported ( ) throws java.lang.Exception { unlinkingTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) , false , false ) ; }

Target:
public void unlinkedWhenUnlinkingNotSupported ( ) throws java.lang.Exception { unlinkingTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.junit.matchers.JUnitMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , false ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return org.ovirt.engine.core.bll.AddVmTemplateCommand.getParameters ( ) . getMasterVm ( ) . getQuotaId ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getVmIdFromImageParameters ( ) { return ( ( org.ovirt.engine.core.common.action.CreateImageTemplateParameters ) ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getParameters ( ) . getImagesParameters ( ) . get ( 0 ) ) ) . getVmId ( ) ; }
Source:
public void testParseMissingType ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:one=1" , "two=int" ) ; assertNotNull ( ret ) ; assertEquals ( 1 , ret.size ( ) ) ; verifyResult ( ret.get ( 0 ) , "foo" ) ; }

Target:
public void testParseStrayColons ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:::one=1,two=2,three=3" , "one=bool,two=int,three=bool" ) ; org.junit.Assert.assertNotNull ( ret ) ; org.junit.Assert.assertEquals ( 0 , ret.size ( ) ) ; }
Source:
public void testGetHook ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getGlusterHook ( FixturesTool.GLUSTER_CLUSTER_ID , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.GLUSTER_COMMAND , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.STAGE , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.EXISTING_HOOK_NAME ) ; org.junit.Assert.assertNotNull ( hook ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.EXISTING_HOOK_NAME , hook.getName ( ) ) ; }

Target:
public void testGetHook ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getGlusterHook ( FixturesTool.GLUSTER_CLUSTER_ID , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.GLUSTER_COMMAND , GlusterHookStage.POST , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.EXISTING_HOOK_NAME ) ; org.junit.Assert.assertNotNull ( hook ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.EXISTING_HOOK_NAME , hook.getName ( ) ) ; }
Source:
public void hideLabel ( ) { getLabelElement ( ) . addClassName ( style.labelHidden ( ) ) ; }

Target:
public void removeLabelStyleName ( java.lang.String styleName ) { getFormLabel ( ) . removeStyleName ( styleName ) ; }
Source:
public java.util.List < java.lang.String > getRels ( ) { java.util.List < java.lang.String > rels = new java.util.ArrayList < java.lang.String > ( ) ; for ( org.ovirt.engine.api.model.Link link : getLinks ( ) ) { rels.add ( link.getRel ( ) ) ; } return rels ; }

Target:
public java.util.List < java.lang.String > getAllRels ( ) { java.util.List < java.lang.String > rels = new java.util.ArrayList < java.lang.String > ( ) ; for ( org.ovirt.engine.api.model.Link link : getLinks ( ) ) { rels.add ( link.getRel ( ) ) ; } return rels ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public static org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils getInstance ( ) { return org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.vmPropertiesUtils ; }

Target:
public static org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils getInstance ( ) { if ( ( org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.vmPropertiesUtils ) == null ) { synchronized ( org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.class ) { if ( ( org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.vmPropertiesUtils ) == null ) { org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.vmPropertiesUtils = new org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils ( ) ; } } } return org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.vmPropertiesUtils ; }
Source:
public void findActiveVmsUsingNetworksOnUnpluggedVnic ( ) { mockDaos ( false ) ; java.util.List < java.lang.String > vmNames = findActiveVmsUsingNetwork.findNamesOfActiveVmsUsingNetworks ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.bll.network.FindActiveVmsUsingNetworkTest.NETWORK_NAME ) ; org.junit.Assert.assertFalse ( vmNames.contains ( org.ovirt.engine.core.bll.network.FindActiveVmsUsingNetworkTest.VM_NAME ) ) ; }

Target:
public void findActiveVmsUsingNetworksOnUnpluggedVnic ( ) { mockDaos ( false ) ; java.util.List < java.lang.String > vmNames = findActiveVmsUsingNetwork.findNamesOfActiveVmsUsingNetworks ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.bll.network.FindActiveVmsUsingNetworkTest.NETWORK_NAME ) ; org.junit.jupiter.api.Assertions.assertFalse ( vmNames.contains ( org.ovirt.engine.core.bll.network.FindActiveVmsUsingNetworkTest.VM_NAME ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapGroup getAdGroup ( int index ) { org.ovirt.engine.core.common.businessentities.LdapGroup adGroup = new org.ovirt.engine.core.common.businessentities.LdapGroup ( ) ; adGroup.setid ( GUIDS [ index ] ) ; adGroup.setname ( NAMES [ index ] ) ; adGroup.setdomain ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; return adGroup ; }

Target:
private org.ovirt.engine.core.common.businessentities.LdapGroup getDirectoryGroup ( int index ) { org.ovirt.engine.core.common.businessentities.LdapGroup directoryGroup = new org.ovirt.engine.core.common.businessentities.LdapGroup ( ) ; directoryGroup.setid ( GUIDS [ index ] ) ; directoryGroup.setname ( org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.GROUP_NAMES [ index ] ) ; directoryGroup.setdomain ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; return directoryGroup ; }
Source:
public void testValidModifiedBondsFailsWhenBondIsUnnamed ( ) throws java.lang.Exception { doTestValidModifiedBonds ( new org.ovirt.engine.core.common.businessentities.network.Bond ( ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }
Source:
public void updateRunButton ( org.ovirt.engine.ui.uicommonweb.UICommand command , boolean isPool ) { runButton.setTitle ( ( isPool ? constants.takeVm ( ) : constants.runVm ( ) ) ) ; updateButton ( runButton , command ) ; }

Target:
public void updateRunButton ( org.ovirt.engine.ui.uicommonweb.UICommand command , boolean isPool ) { runButton.setTitle ( ( isPool ? org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.constants.takeVm ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.constants.runVm ( ) ) ) ; updateButton ( runButton , command ) ; }
Source:
public void persistCommandWithoutContext ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , null , enableCallBack ) ; }

Target:
protected void propagateFailure ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue internalReturnValue ) { getReturnValue ( ) . getExecuteFailedMessages ( ) . add ( internalReturnValue.getExceptionString ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryProductRPMVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters.class , new java.lang.String [ ] { "SessionId" } , new java.lang.Object [ ] { getSessionId ( ) } ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryVdcVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters.class , new java.lang.String [ ] { "SessionId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.SESSION_ID } ) ; }
Source:
public java.lang.Boolean getnet_config_dirty ( ) { return mVdsDynamic.getnet_config_dirty ( ) ; }

Target:
public java.lang.Boolean getNetConfigDirty ( ) { return mVdsDynamic.getnet_config_dirty ( ) ; }
Source:
public void shouldNotElectInactiveHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Inactive , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME , true ) ; org.junit.Assert.assertNull ( cmd.electNewMaster ( false , true , false ) ) ; }

Target:
public void shouldNotElectInactiveHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Inactive , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME , true ) ; org.junit.jupiter.api.Assertions.assertNull ( cmd.electNewMaster ( false , true , false ) ) ; }