auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isApplicable ( org.ovirt.engine.core.common.businessentities.VDSGroup oldCluster , org.ovirt.engine.core.common.businessentities.VDSGroup newCluster ) { emulatedMachines = org.ovirt.engine.core.bll.EmulatedMachineClusterEditChecker.getClusterEmulatedMachines ( newCluster ) ; emulatedMachines.removeAll ( org.ovirt.engine.core.bll.EmulatedMachineClusterEditChecker.getClusterEmulatedMachines ( oldCluster ) ) ; return ! ( emulatedMachines.isEmpty ( ) ) ; }

Target:
public boolean isApplicable ( org.ovirt.engine.core.common.businessentities.Cluster oldCluster , org.ovirt.engine.core.common.businessentities.Cluster newCluster ) { emulatedMachines = org.ovirt.engine.core.bll.EmulatedMachineClusterEditChecker.getClusterEmulatedMachines ( newCluster ) ; emulatedMachines.removeAll ( org.ovirt.engine.core.bll.EmulatedMachineClusterEditChecker.getClusterEmulatedMachines ( oldCluster ) ) ; return ! ( emulatedMachines.isEmpty ( ) ) ; }
Source:
public void managementNetworkNotExternalValidInvalidExternal ( ) { testmanagementNetworkNotExternal ( true , true , org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_CANNOT_BE_EXTERNAL ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.hasItem ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.NETWORK_NAME_REPLACEMENT ) ) ) ) ; }

Target:
public void managementNetworkNotExternalValidInvalidExternal ( ) { testManagementNetworkNotExternal ( true , true , org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_CANNOT_BE_EXTERNAL ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.hasItem ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.NETWORK_NAME_REPLACEMENT ) ) ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVmsRunningOnVDSQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getVmDAO ( ) . getAllRunningByVds ( org.ovirt.engine.core.bll.GetVmsRunningOnVDSQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVmsRunningOnVDSQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getVmDao ( ) . getAllRunningByVds ( org.ovirt.engine.core.bll.GetVmsRunningOnVDSQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
public void testVolume ( ) { testValidSql ( "volume: " , "SELECT * FROM ((SELECT gluster_volumes_view.* FROM gluster_volumes_view ) ORDER BY vol_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "volume: name=volume1" , "SELECT * FROM ((SELECT gluster_volumes_view.* FROM gluster_volumes_view WHERE gluster_volumes_view.vol_name LIKE volume1 ) ORDER BY vol_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testVolume ( ) { testValidSql ( "volume: " , "SELECT * FROM ((SELECT distinct gluster_volumes_view.* FROM gluster_volumes_view ) ORDER BY vol_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "volume: name=volume1" , "SELECT * FROM ((SELECT distinct gluster_volumes_view.* FROM gluster_volumes_view WHERE gluster_volumes_view.vol_name LIKE volume1 ) ORDER BY vol_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void insufficientDiskSpace ( ) { setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateSpaceRequirements ( org.mockito.Matchers.anyList ( ) ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }

Target:
public void insufficientDiskSpace ( ) { setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateSpaceRequirements ( org.mockito.ArgumentMatchers.anyList ( ) ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }
Source:
public static java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.lang.Boolean > getNicHotplugSupportMap ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.nicHotplugSupportMap ; }

Target:
public java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.lang.Boolean > getNicHotplugSupportMap ( ) { return nicHotplugSupportMap ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmTemlateWithSameNameExistQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.VmTemplateCommand.isVmTemlateWithSameNameExist ( org.ovirt.engine.core.bll.IsVmTemlateWithSameNameExistQuery.getParameters ( ) . getName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmTemlateWithSameNameExistQuery.getQueryReturnValue ( ) . setReturnValue ( isVmTemlateWithSameNameExist ( org.ovirt.engine.core.bll.IsVmTemlateWithSameNameExistQuery.getParameters ( ) . getName ( ) , org.ovirt.engine.core.bll.IsVmTemlateWithSameNameExistQuery.getParameters ( ) . getDatacenterId ( ) ) ) ; }
Source:
public void testQueryType ( ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { org.junit.Assert.assertNotSame ( "The query can't be found in the enum QueryType" , QueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }

Target:
public void testQueryType ( ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { org.junit.jupiter.api.Assertions.assertNotSame ( QueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) , "The query can't be found in the enum QueryType" ) ; }
Source:
public void testExistingDiscardAfterDeleteFunctionalityPreservedDiscardAfterDeleteFunctionalityBreaks ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertFalse ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) , storageDomain ) ) ; }

Target:
public void testGetLunsThatBreakDiscardAfterDeleteSupportDiscardAfterDeleteBreaks ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lunThatBreaksDiscardSupport = createLunWithDiscardSupport ( 0L ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , lunThatBreaksDiscardSupport ) , java.util.Collections.singletonList ( lunThatBreaksDiscardSupport ) ) ; }
Source:
public java.lang.String getImageID ( ) { return imageID ; }

Target:
public java.lang.String getImageID ( ) { if ( ( ( imageID ) == null ) || ( imageID.isEmpty ( ) ) ) { return "00000000-0000-0000-0000-000000000000" ; } return imageID ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.Permissions o1 , org.ovirt.engine.core.common.businessentities.Permissions o2 ) { java.lang.String id1 = o1.getId ( ) . toString ( ) ; java.lang.String id2 = o2.getId ( ) . toString ( ) ; return id1.compareTo ( id2 ) ; }

Target:
public int compare ( org.ovirt.engine.api.model.Permissions o1 , org.ovirt.engine.api.model.Permissions o2 ) { java.lang.String id1 = o1.getId ( ) . toString ( ) ; java.lang.String id2 = o2.getId ( ) . toString ( ) ; return id1.compareTo ( id2 ) ; }
Source:
public void setInvalidStringValue ( ) throws java.lang.Exception { final java.lang.String key = "LDAP_Security_mode" ; junit.framework.Assert.assertFalse ( config.getEngineConfigLogic ( ) . persist ( key , "GSSAPI-invalid-value" ) ) ; }

Target:
public void setInvalidStringValue ( ) throws java.lang.Exception { final java.lang.String key = "LDAP_Security_mode" ; org.junit.Assert.assertFalse ( config.getEngineConfigLogic ( ) . persist ( key , "GSSAPI-invalid-value" ) ) ; }
Source:
protected final void acceptAll ( final java.lang.String [ ] tokens ) { for ( java.lang.String token : tokens ) { mVerbs.put ( token , token ) ; } }

Target:
protected final void acceptAll ( final java.lang.String ... tokens ) { java.util.Collections.addAll ( mVerbs , tokens ) ; }
Source:
void migrateVMs ( java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.compat.Guid > > list ) ;

Target:
void migrateVM ( java.util.ArrayList < org.ovirt.engine.core.compat.Guid > initialHosts , org.ovirt.engine.core.compat.Guid vmToMigrate ) ;
Source:
private static void translateErrors ( java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( org.ovirt.engine.ui.frontend.Frontend.getAppErrorsTranslator ( ) . translateErrorText ( retVal.getCanDoActionMessages ( ) ) ) ; } }

Target:
private static void translateErrors ( java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( ( ( java.util.ArrayList < java.lang.String > ) ( org.ovirt.engine.ui.frontend.Frontend.translateError ( retVal ) ) ) ) ; } }
Source:
private void NewDesktop ( ) { NewInternal ( VmType.Desktop ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateConsoleModels ( ) ; updateActionAvailability ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getvds_name ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > object ) { return object.getSecond ( ) . getvds_name ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getorigin ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getOrigin ( ) ; }
Source:
protected boolean checkIfCpusSameManufacture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CheckIfCpusSameManufacture ( group.getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void info ( java.lang.Object arg0 ) { log.info ( addPrefixToLogMessage ( arg0 ) ) ; }

Target:
public boolean isErrorEnabled ( ) { return log.isErrorEnabled ( ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeParameterModel object ) { org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeParameterPopupView.Driver.driver.edit ( object ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeParameterModel object ) { driver.edit ( object ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterGeoRepMountBrokerSetup ( java.lang.String remoteVolumeName , java.lang.String userName , 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 , java.lang.Boolean partial ) ;
Source:
public void testIsNetworkInSyncWhenBothQosIsNull ( ) throws java.lang.Exception { iface.setQos ( null ) ; networkQos = null ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenBothQosIsNull ( ) { iface.setQos ( null ) ; networkQos = null ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void shouldFailtWhenNoGraphicsType ( ) { org.ovirt.engine.core.common.console.ConsoleOptions options = new org.ovirt.engine.core.common.console.ConsoleOptions ( ) ; org.ovirt.engine.core.bll.ConfigureConsoleOptionsQuery query = new org.ovirt.engine.core.bll.ConfigureConsoleOptionsQuery ( new org.ovirt.engine.core.common.queries.ConfigureConsoleOptionsParams ( options , false ) ) ; org.junit.Assert.assertFalse ( query.validateInputs ( ) ) ; }

Target:
public void shouldFailtWhenNoGraphicsType ( ) { org.mockito.Mockito.when ( getQueryParameters ( ) . getOptions ( ) ) . thenReturn ( new org.ovirt.engine.core.common.console.ConsoleOptions ( ) ) ; org.junit.Assert.assertFalse ( getQuery ( ) . validateInputs ( ) ) ; }
Source:
public void validateSucceedsWithStopActionType ( ) { cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_STOP ) ; prepareMocks ( ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateSucceedsWithStopActionType ( ) { cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_STOP ) ; prepareMocks ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void defaultClusterInLocalFs ( ) { org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesForVms ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }

Target:
public void defaultClusterInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( "CopyVolumeDataVDSCommandParameters{" + "srcInfo=" ) + ( srcInfo ) ) + ", dstInfo=" ) + ( dstInfo ) ) + ", collapse=" ) + ( collapse ) ) + '}' ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "srcInfo" , srcInfo ) . append ( "dstInfo" , dstInfo ) . append ( "collapse" , collapse ) ; }
Source:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig > configs = dao.getAllWithQuery ( "select * from gluster_volume_snapshot_config" ) ; org.junit.Assert.assertTrue ( ( configs != null ) ) ; org.junit.Assert.assertTrue ( ( ( configs.size ( ) ) == 3 ) ) ; }

Target:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig > configs = dao.getAllWithQuery ( "select * from gluster_volume_snapshot_config" ) ; org.junit.Assert.assertNotNull ( configs ) ; org.junit.Assert.assertEquals ( 3 , configs.size ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Erratum > ( ) ; } return source ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.StorageType > getStorageTypeList ( ) { return new java.util.ArrayList ( java.util.Arrays.asList ( StorageType.ISCSI , StorageType.FCP ) ) ; }
Source:
protected void verifyBuiltKernelOptions ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.INITRD_PATH , vm.getInitrdUrl ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.KERNEL_PATH , vm.getKernelUrl ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.KERNEL_PARAMS , vm.getKernelParams ( ) ) ; }

Target:
protected void verifyBuiltKernelOptions ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.INITRD_PATH , vm.getInitrdUrl ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.KERNEL_PATH , vm.getKernelUrl ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.KERNEL_PARAMS , vm.getKernelParams ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; if ( propName.equals ( "ProposeDiscoverTargets" ) ) { setProposeDiscover ( object.getProposeDiscoverTargets ( ) ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName ; if ( propName.equals ( "ProposeDiscoverTargets" ) ) { setProposeDiscover ( object.getProposeDiscoverTargets ( ) ) ; } }
Source:
public void activated ( ) { if ( ( ( getBehavior ( ) . getInstanceTypeManager ( ) ) != null ) && ( ! ( getBehavior ( ) . basedOnCustomInstanceType ( ) ) ) ) { getBehavior ( ) . getInstanceTypeManager ( ) . updateFildsAfterOsChanged ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { numaSupport ( ) ; }
Source:
public void testCanDoActionImageDoesNotExist ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void testValidateImageDoesNotExist ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
protected void persistCollectedData ( ) { updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( getParameters ( ) . getInterfaces ( ) ) ) ; }

Target:
protected void persistCollectedData ( ) { updateNetConfigDirtyFlag ( ) ; hostNetworkTopologyPersister.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , getParameters ( ) . getInterfaces ( ) ) ; }
Source:
private void initProcessedInfoLists ( ) { proccessedIdsInfo = new java.util.LinkedList < org.ovirt.engine.core.compat.Guid > ( ) ; proccessedOvfGenerationsInfo = new java.util.LinkedList < java.lang.Long > ( ) ; }

Target:
private void initProcessedInfoLists ( ) { proccessedIdsInfo = new java.util.LinkedList < org.ovirt.engine.core.compat.Guid > ( ) ; proccessedOvfGenerationsInfo = new java.util.LinkedList < java.lang.Long > ( ) ; proccessedOvfConfigurationsInfo = new java.util.LinkedList < > ( ) ; }
Source:
protected static void refreshVdcOptionCache ( org.ovirt.engine.core.dal.dbbroker.DbFacade db ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils._vdcOptionCache.clear ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VdcOption > list = db.getVdcOptionDao ( ) . getAll ( ) ; for ( org.ovirt.engine.core.common.businessentities.VdcOption option : list ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.updateOption ( option ) ; } }

Target:
protected static void refreshVdcOptionCache ( org.ovirt.engine.core.dal.dbbroker.DbFacade db ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils._vdcOptionCache.clear ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VdcOption > list = db.getVdcOptionDao ( ) . getAll ( ) ; list.forEach ( org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils :: updateOption ) ; }
Source:
public void getIdByTypeAndStatusReturnsNullForNonExistingVm ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( null , dao.getId ( new org.ovirt.engine.core.compat.Guid ( ) , SnapshotType.REGULAR , SnapshotStatus.OK ) ) ; }

Target:
public void getIdByTypeAndStatusReturnsNullForNonExistingVm ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( null , dao.getId ( Guid.Empty , SnapshotType.REGULAR , SnapshotStatus.OK ) ) ; }
Source:
public void validateVmMemoryCanStartOnVds ( ) { boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCanStartOnVds ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
public void testGetDataAndSetDataWithEmptySession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( "" ) ; org.junit.Assert.assertFalse ( "Set should fail with an empty session" , container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ) ; org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testGetDataAndSetDataWithEmptySession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( "" ) ; org.junit.Assert.assertFalse ( "Set should fail with an empty session" , container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ) ; org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( long sizeInGigabytes ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setSizeInGigabytes ( sizeInGigabytes ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( long sizeInGigabytes ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setSizeInGigabytes ( sizeInGigabytes ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }
Source:
private void allVfsAreFree ( boolean isValid ) { org.mockito.Mockito.when ( validator.allVfsAreFree ( org.mockito.Matchers.any ( org.ovirt.engine.core.bll.network.host.HostNicVfsConfigHelper.class ) ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED ) ) ) ; }

Target:
private void allVfsAreFree ( boolean isValid ) { org.mockito.Mockito.when ( validator.allVfsAreFree ( org.mockito.Matchers.any ( org.ovirt.engine.core.bll.network.host.NetworkDeviceHelper.class ) ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED ) ) ) ; }
Source:
private void updateIsLiveMergeSupported ( java.lang.Object entity ) { if ( entity == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( entity ) ) ; setLiveMergeSupported ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . isLiveMergeSupported ( vm ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel vmSnapshotListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel ) ( model ) ) ; org.ovirt.engine.core.common.businessentities.VDS vds = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; vmSnapshotListModel.setLiveMergeSupported ( vds.getLiveMergeSupport ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , clusterId.toString ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) , clusterId ) ; }
Source:
public void validateFailsWithEmptyBricksList ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , new java.util.ArrayList < > ( ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnVolumeWithoutRemoveBricksTask ( ) { setVolume ( volumeWithoutRemoveBricksTask ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
private void setupDisks ( final org.ovirt.engine.ui.userportal.uicommon.model.basic.UserPortalBasicListProvider modelProvider ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages = modelProvider.getModel ( ) . getvmBasicDiskListModel ( ) . getItems ( ) ; if ( diskImages != null ) { getView ( ) . editDistItems ( diskImages ) ; } }

Target:
private void setupDisks ( final org.ovirt.engine.ui.userportal.uicommon.model.basic.UserPortalBasicListProvider modelProvider ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages = modelProvider.getModel ( ) . getVmBasicDiskListModel ( ) . getItems ( ) ; if ( diskImages != null ) { getView ( ) . editDistItems ( diskImages ) ; } }
Source:
public org.ovirt.engine.core.bll.network.macpool.MacPool getMacPoolForDataCenter ( org.ovirt.engine.core.compat.Guid dataCenterId , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return getMacPoolById ( getMacPoolId ( dataCenterId ) , commandContext ) ; }

Target:
public org.ovirt.engine.core.bll.network.macpool.MacPool getMacPoolForCluster ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return getMacPoolById ( getMacPoolId ( clusterId ) , commandContext ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid createGuidFromStringDefaultEmpty ( java.lang.String candidate ) { if ( candidate == null ) { return org.ovirt.engine.core.compat.Guid.Empty ; } return new org.ovirt.engine.core.compat.Guid ( candidate ) ; }

Target:
private static org.ovirt.engine.core.compat.Guid createGuidFromStringWithDefault ( java.lang.String candidate , org.ovirt.engine.core.compat.Guid defaultValue ) { if ( candidate == null ) { return defaultValue ; } return new org.ovirt.engine.core.compat.Guid ( candidate ) ; }
Source:
public void enableSinglePCI ( boolean enabled ) { getModel ( ) . getIsSingleQxlEnabled ( ) . setIsChangable ( enabled ) ; if ( ! enabled ) { getModel ( ) . getIsSingleQxlEnabled ( ) . setEntity ( false ) ; } }

Target:
public void enableSinglePCI ( boolean enabled ) { getModel ( ) . getIsSingleQxlEnabled ( ) . setIsChangeable ( enabled ) ; if ( ! enabled ) { getModel ( ) . getIsSingleQxlEnabled ( ) . setEntity ( false ) ; } }
Source:
private java.lang.String unEscapeRenderedText ( java.lang.String renderedText ) { renderedText = renderedText.replace ( "&lt;" , "<" ) ; return renderedText ; }

Target:
public java.lang.String getValue ( ) { java.lang.String raw = super . getValue ( ) ; return raw == null ? "" : raw ; }
Source:
protected boolean hostStatusLegalForSetupNetworks ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand.SUPPORTED_HOST_STATUSES.contains ( vds.getStatus ( ) ) ) || ( ( ( vds.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Installing ) ) && ( org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand.isInternalExecution ( ) ) ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateWithHostSetupNetworksValidator ( org.ovirt.engine.core.common.businessentities.VDS host ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand.getParameters ( ) , getExistingNics ( ) , getExistingAttachments ( ) , getClusterNetworks ( ) , managementNetworkUtil ) ; return validator.validate ( ) ; }
Source:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; vds.setVdsGroupCompatibilityVersion ( Version.v3_4 ) ; }

Target:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; vds.setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.vdsbroker.VmsMonitoringTest.vdsCompVersion ) ; }
Source:
boolean Match ( TSource source ) ;

Target:
boolean match ( TSource source ) ;
Source:
public void passwordProvidedForHostInstallation ( ) { validator = createValidatorForHostInstallation ( ) ; org.junit.Assert.assertThat ( validator.passwordProvidedForHostInstallation ( AuthenticationMethod.Password , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passwordProvidedForHostInstallation ( ) { validator = createValidatorForHostInstallation ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passwordProvidedForHostInstallation ( AuthenticationMethod.Password , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( target ) ) ; dataCenterGuideModel.allHosts = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; dataCenterGuideModel.updateOptionsNonLocalFS ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > returnValue ) { allHosts = returnValue ; updateOptionsNonLocalFS ( ) ; }
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 boolean isEnabled ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel : getNetworksTableItems ( ) ) { if ( clusterNetworkModel.getIsChangable ( ) ) { return true ; } } return false ; }
Source:
public void testDefaultRouteNonDefaultRouteNetwork ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( false , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testDefaultRouteNonDefaultRouteNetwork ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( false , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment entity ) { verifyRelationWithHostNetworkQos ( entity ) ; hostNetworkQosDao.persistQosChanges ( entity.getId ( ) , entity.getHostNetworkQos ( ) ) ; super . save ( entity ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment entity ) { verifyRelationWithHostNetworkQos ( entity ) ; hostNetworkQosDao.persistQosChanges ( entity.getId ( ) , asHostNetworkQos ( entity.getHostNetworkQos ( ) ) ) ; super . save ( entity ) ; }
Source:
java.lang.String integerValidationNumberGreaterInvalidReason ( java.lang.String prefixMsg , int min ) ;

Target:
java.lang.String numberValidationNumberGreaterInvalidReason ( java.lang.String prefixMsg , java.lang.String min ) ;
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public java.lang.String getRandomtime ( ) { return routines.TalendDate.getDate ( "CCYY-MM-DD hh:mm:ss" ) ; }

Target:
public java.lang.String getRandomvar_name ( ) { return "timesFailed" ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) ;

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) ;
Source:
public void testExistsVmDeviceByVmIdAndType ( ) { org.junit.Assert.assertTrue ( dao.existsVmDeviceByVmIdAndType ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID , VmDeviceGeneralType.HOSTDEV ) ) ; org.junit.Assert.assertFalse ( dao.existsVmDeviceByVmIdAndType ( org.ovirt.engine.core.dao.VmDeviceDaoTest.NON_EXISTING_VM_ID , VmDeviceGeneralType.HOSTDEV ) ) ; }

Target:
public void testExistsVmDeviceByVmIdAndType ( ) { org.junit.jupiter.api.Assertions.assertTrue ( dao.existsVmDeviceByVmIdAndType ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID , VmDeviceGeneralType.HOSTDEV ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( dao.existsVmDeviceByVmIdAndType ( org.ovirt.engine.core.dao.VmDeviceDaoTest.NON_EXISTING_VM_ID , VmDeviceGeneralType.HOSTDEV ) ) ; }
Source:
public void setspm_status ( org.ovirt.engine.core.common.businessentities.VdsSpmStatus value ) { _spm_status = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "spm_status" ) ) ; }

Target:
public void setPmSecondaryPort ( java.lang.String value ) { mVdsStatic.setPmSecondaryOptions ( value ) ; }
Source:
public void testAddNewIscsiBond ( ) { dao.save ( newIscsiBond ) ; org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = dao.get ( newIscsiBond.getId ( ) ) ; junit.framework.Assert.assertEquals ( newIscsiBond , iscsiBond ) ; }

Target:
public void testAddNewIscsiBond ( ) { dao.save ( newIscsiBond ) ; org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = dao.get ( newIscsiBond.getId ( ) ) ; org.junit.Assert.assertEquals ( newIscsiBond , iscsiBond ) ; }
Source:
public synchronized boolean entityHasTasks ( org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.bll.tasks.SPMAsyncTask task : _tasks.values ( ) ) { if ( isCurrentTaskLookedFor ( id , task ) ) { return true ; } } return false ; }

Target:
public synchronized boolean entityHasTasks ( org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.bll.tasks.interfaces.SPMTask task : _tasks.values ( ) ) { if ( isCurrentTaskLookedFor ( id , task ) ) { return true ; } } return false ; }
Source:
public void setdisplay_ip ( java.lang.String value ) { this . display_ip = value ; }

Target:
public void setDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . displayType = value ; }
Source:
public void canDetectMissingVM ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.Matchers.eq ( vm.getId ( ) ) ) ) . thenReturn ( null ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; }

Target:
public void canDetectMissingVM ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.Matchers.eq ( vm.getId ( ) ) ) ) . thenReturn ( null ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; }
Source:
abstract void createInfoPanel ( ) ;

Target:
protected abstract void createInfoPanel ( org.ovirt.engine.ui.uicommonweb.models.storage.RegisterEntityModel model ) ;
Source:
public void setPort ( java.lang.String port ) { this . port = ( port == null ) ? "" : port ; }

Target:
public void setPort ( java.lang.String port ) { this . port = ( port == null ) ? org.ovirt.engine.ui.uicommonweb.UriAuthority.EMPTY_STRING : port ; }
Source:
private boolean verifyDisksIfNeeded ( ) { if ( ( ! ( getParameters ( ) . isImportAsNewEntity ( ) ) ) && ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.isImagesAlreadyOnTarget ( ) ) ) ) { return checkIfDisksExist ( imageList ) ; } return true ; }

Target:
protected org.ovirt.engine.core.bll.validator.ImportValidator getImportValidator ( ) { if ( ( importValidator ) == null ) { importValidator = new org.ovirt.engine.core.bll.validator.ImportValidator ( getParameters ( ) ) ; } return importValidator ; }
Source:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setName ( "vm1" ) ; vmStatic.setMemSizeMb ( 256 ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; }

Target:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setName ( "vm1" ) ; vmStatic.setMemSizeMb ( 256 ) ; vmStatic.setSingleQxlPci ( false ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; }
Source:
public final void removeSessionOnLogout ( java.lang.String sessionId ) { removeSessionImpl ( sessionId , Acct.ReportReason.PRINCIPAL_LOGOUT , "Prinicial %1$s has performed logout" , getPrincipalName ( sessionId ) ) ; }

Target:
private void persistEngineSession ( java.lang.String sessionId ) { org.ovirt.engine.core.bll.aaa.SessionDataContainer.SessionInfo sessionInfo = getSessionInfo ( sessionId ) ; if ( sessionInfo != null ) { sessionInfo.contentOfSession.put ( org.ovirt.engine.core.bll.aaa.SessionDataContainer.ENGINE_SESSION_SEQ_ID , engineSessionDao.save ( new org.ovirt.engine.core.common.businessentities.EngineSession ( getUser ( sessionId , false ) , sessionId ) ) ) ; } }
Source:
private org.ovirt.engine.ui.uicommonweb.UICommand createOKCommand ( java.lang.String commandName ) { org.ovirt.engine.ui.uicommonweb.UICommand command = new org.ovirt.engine.ui.uicommonweb.UICommand ( commandName , this ) ; command.setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . ok ( ) ) ; command.setIsDefault ( true ) ; return command ; }

Target:
private void checkSanDomainAttachedToDc ( java.lang.String commandName , java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains ) { checkDomainAttachedToDc ( commandName , storageDomains , null ) ; }
Source:
public java.lang.Double getelapsed_time ( ) { return this . mVmStatistics.getelapsed_time ( ) ; }

Target:
public java.lang.String getVmtName ( ) { return this . vmtName ; }
Source:
public void vmNotHavingPassthroughVnicsNotValid ( ) { vmNotHavingPassthroughVnicsCommon ( vm.getId ( ) , 2 , 3 ) ; org.junit.Assert.assertThat ( validator.vmNotHavingPassthroughVnics ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MIGRATION_OF_PASSTHROUGH_VNICS_IS_NOT_SUPPORTED ) ) ; }

Target:
public void vmNotHavingPassthroughVnicsNotValid ( ) { vmNotHavingPassthroughVnicsCommon ( vm.getId ( ) , 2 , 3 ) ; org.junit.Assert.assertThat ( validator.vmNotHavingPassthroughVnics ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIGRATION_OF_PASSTHROUGH_VNICS_IS_NOT_SUPPORTED ) ) ; }
Source:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText ) { addColumn ( column , getHeader ( column , headerText , false ) ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { table.ensureColumnPresent ( column , headerText , present ) ; tableHeader.ensureColumnPresent ( column , headerText , present ) ; }
Source:
public void setMessage ( java.lang.String message ) { super . setMessage ( ( message == null ? constants.removeConfirmationPopupMessage ( ) : message ) ) ; }

Target:
public void setMessage ( java.lang.String message ) { super . setMessage ( ( message == null ? org.ovirt.engine.ui.common.view.popup.RemoveConfirmationPopupView.constants.removeConfirmationPopupMessage ( ) : message ) ) ; }
Source:
public void testSaveUserWithTooManyGroups ( ) { org.ovirt.engine.core.common.businessentities.DbUser tooManyGroupsUser = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; tooManyGroupsUser.setname ( "I" ) ; tooManyGroupsUser.setsurname ( "Have" ) ; tooManyGroupsUser.setusername ( "too" ) ; tooManyGroupsUser.setemail ( "many@redhat.com" ) ; tooManyGroupsUser.setdomain ( "domain" ) ; tooManyGroupsUser.setgroups ( "groups" ) ; tooManyGroupsUser.setGroupIds ( org.apache.commons.lang.StringUtils.leftPad ( "groups" , 2048 ) ) ; dao.save ( tooManyGroupsUser ) ; org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsername ( tooManyGroupsUser.getusername ( ) ) ; org.junit.Assert.assertEquals ( tooManyGroupsUser , result ) ; }

Target:
public void testSaveUserWithTooManyGroups ( ) { org.ovirt.engine.core.common.businessentities.DbUser tooManyGroupsUser = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; tooManyGroupsUser.setFirstName ( "I" ) ; tooManyGroupsUser.setLastName ( "Have" ) ; tooManyGroupsUser.setLoginName ( "too" ) ; tooManyGroupsUser.setEmail ( "many@redhat.com" ) ; tooManyGroupsUser.setDomain ( "domain" ) ; tooManyGroupsUser.setGroupNames ( "groups" ) ; tooManyGroupsUser.setGroupIds ( org.apache.commons.lang.StringUtils.leftPad ( "groups" , 2048 ) ) ; dao.save ( tooManyGroupsUser ) ; org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsername ( tooManyGroupsUser.getLoginName ( ) ) ; org.junit.Assert.assertEquals ( tooManyGroupsUser , result ) ; }
Source:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( networkDeviceHelper.getFreeVf ( nic , null ) ) ; }

Target:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 , 5 ) ; org.junit.Assert.assertNull ( networkDeviceHelper.getFreeVf ( nic , null ) ) ; }
Source:
public void setMainTabBarOffset ( int left ) { getView ( ) . setMainTabBarOffset ( left ) ; }

Target:
public void setMainTabBarOffset ( int left ) { org.ovirt.engine.ui.common.system.HeaderOffsetChangeEvent.fire ( this , left ) ; }
Source:
private int parseIntVdsProperty ( java.lang.Object vdsProperty ) { if ( vdsProperty instanceof java.lang.Integer ) { return ( ( java.lang.Integer ) ( vdsProperty ) ) ; } else { return java.lang.Integer.parseInt ( ( ( java.lang.String ) ( vdsProperty ) ) ) ; } }

Target:
protected org.ovirt.engine.core.vdsbroker.VmAnalyzer getVmAnalyzer ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData > pair ) { return new org.ovirt.engine.core.vdsbroker.VmAnalyzer ( pair.getFirst ( ) , pair.getSecond ( ) , this , auditLogDirector ) ; }
Source:
private boolean isDummyLun ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { return lun.getLUN_id ( ) . startsWith ( BusinessEntitiesDefinitions.DUMMY_LUN_ID_PREFIX ) ; }

Target:
private boolean isDummyLun ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { return lun.getLUNId ( ) . startsWith ( BusinessEntitiesDefinitions.DUMMY_LUN_ID_PREFIX ) ; }
Source:
protected void executeQueryCommand ( ) { java.lang.Boolean isEmpty = org.ovirt.engine.core.bll.IsClusterEmptyQuery.getDbFacade ( ) . getVdsGroupDao ( ) . getIsEmpty ( org.ovirt.engine.core.bll.IsClusterEmptyQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.IsClusterEmptyQuery.getQueryReturnValue ( ) . setReturnValue ( isEmpty ) ; }

Target:
protected void executeQueryCommand ( ) { java.lang.Boolean isEmpty = org.ovirt.engine.core.bll.IsClusterEmptyQuery.getDbFacade ( ) . getClusterDao ( ) . getIsEmpty ( org.ovirt.engine.core.bll.IsClusterEmptyQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.IsClusterEmptyQuery.getQueryReturnValue ( ) . setReturnValue ( isEmpty ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithName ( java.lang.String name ) { return getCallsHandler ( ) . executeReadList ( "GetVdsByName" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_name" , name ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDS getByName ( java.lang.String name ) { return getCallsHandler ( ) . executeRead ( "GetVdsByName" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_name" , name ) ) ; }