auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void findProxyHostExcludesHostDueToFencingPolicy ( ) { mockExistingHosts ( createHost ( ) ) ; org.ovirt.engine.core.bll.pm.FenceProxyLocator locator = setupLocator ( new org.ovirt.engine.core.common.businessentities.FencingPolicy ( ) ) ; setMinSupportedVersionForFencingPolicy ( locator , Version.v3_5 ) ; org.ovirt.engine.core.common.businessentities.VDS proxyHost = locator.findProxyHost ( false ) ; org.junit.Assert.assertNull ( proxyHost ) ; }

Target:
public void findProxyHostExcludesHostDueToFencingPolicy ( ) { mockExistingHosts ( createHost ( ) ) ; org.ovirt.engine.core.bll.pm.FenceProxyLocator locator = setupLocator ( new org.ovirt.engine.core.common.businessentities.FencingPolicy ( ) ) ; setMinSupportedVersionForFencingPolicy ( locator , Version.v3_6 ) ; org.ovirt.engine.core.common.businessentities.VDS proxyHost = locator.findProxyHost ( false ) ; org.junit.Assert.assertNull ( proxyHost ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.RepoImage repoImage ) { return repoImage.getRepoImageId ( ) . equals ( getParameters ( ) . getRepoImageId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage.RepoImage repoImage ) { return repoImage.getRepoImageId ( ) . equals ( getParameters ( ) . getRepoImageId ( ) ) ; }
Source:
public int getVmMemSizeMb ( ) { return this . vmStatic.getmem_size_mb ( ) ; }

Target:
public void setVmMemSizeMb ( int value ) { this . vmStatic.setMemSizeMb ( value ) ; }
Source:
public void addParameter ( org.ovirt.api.metamodel.concepts.Parameter parameter ) { parameters.add ( parameter ) ; }

Target:
public java.util.stream.Stream < org.ovirt.api.metamodel.concepts.Parameter > parameters ( ) { return parameters.stream ( ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ListModel setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) super . setIsChangable ( value ) ; return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel < T > setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) { super . setIsChangable ( value ) ; } return this ; }
Source:
private void mockDiskImageDAOGetSnapshotById ( ) { org.powermock.api.mockito.PowerMockito.when ( diskImageDAO.getSnapshotById ( org.mockito.Matchers.< org.ovirt.engine.core.compat.Guid > any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( createDiskImage ( REQUIRED_DISK_SIZE_GB ) ) ; }

Target:
private void mockDiskImageDAOGetSnapshotById ( ) { org.mockito.Mockito.when ( diskImageDAO.getSnapshotById ( org.mockito.Matchers.< org.ovirt.engine.core.compat.Guid > any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.AddVmCommandTest.createDiskImage ( org.ovirt.engine.core.bll.AddVmCommandTest.REQUIRED_DISK_SIZE_GB ) ) ; }
Source:
public org.ovirt.engine.api.resource.PermissionResource getPermissionResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( id , this , suggestedParentType ) ) ; }

Target:
public org.ovirt.engine.api.resource.PermissionResource getPermissionResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( id , targetId , this , suggestedParentType ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid GetPoolId ( ) { org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPoolDAO ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) . getvm_pool_id ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPoolDAO ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) . getvm_pool_id ( ) ; }
Source:
public void setmax_vds_memory_over_commit ( int value ) { this . max_vds_memory_over_commit = value ; }

Target:
public void setMaxVdsMemoryOverCommit ( int value ) { maxVdsMemoryOverCommit = value ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmDevice graphicsDev = getParameters ( ) . getDev ( ) ; getVmDeviceDao ( ) . remove ( graphicsDev.getId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmDevice graphicsDev = getParameters ( ) . getDev ( ) ; vmDeviceDao.remove ( graphicsDev.getId ( ) ) ; setSucceeded ( true ) ; }
Source:
private java.util.List < org.ovirt.engine.api.model.PowerManagement > getPowerManagers ( org.ovirt.engine.api.model.Version version ) { return org.ovirt.engine.api.restapi.util.FencingOptionsParser.parse ( getConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionMapping , version ) , getConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionTypes , version ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.api.model.PowerManagement > getPowerManagers ( org.ovirt.engine.api.model.Version version ) { return org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( getConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionMapping , version ) , getConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionTypes , version ) , true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageFormatType getPreferred ( org.ovirt.engine.core.common.businessentities.StorageType type ) { if ( ( type != null ) && ( type.isBlockDomain ( ) ) ) { return org.ovirt.engine.core.common.businessentities.StorageFormatType.V2 ; } return org.ovirt.engine.core.common.businessentities.StorageFormatType.V1 ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageFormatType getPreferred ( org.ovirt.engine.core.common.businessentities.storage.StorageType type ) { if ( ( type != null ) && ( type.isBlockDomain ( ) ) ) { return org.ovirt.engine.core.common.businessentities.StorageFormatType.V2 ; } return org.ovirt.engine.core.common.businessentities.StorageFormatType.V1 ; }
Source:
public void testSortItems_nullItems ( ) { testedModel.setComparator ( makeValueComparator ( ) ) ; java.util.Collection < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > sorted = testedModel.sortItems ( null ) ; org.junit.Assert.assertNull ( sorted ) ; }

Target:
public void testSortItems_nullItems ( ) { testedModel.setComparator ( makeValueComparator ( ) ) ; java.util.Collection < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > sorted = testedModel.sortItems ( null ) ; org.junit.jupiter.api.Assertions.assertNull ( sorted ) ; }
Source:
public void setspm_vds_id ( org.ovirt.engine.core.compat.Guid value ) { spmVdsId = value ; }

Target:
public void setSpmVdsId ( org.ovirt.engine.core.compat.Guid value ) { spmVdsId = value ; }
Source:
private org.ovirt.engine.core.common.businessentities.Cluster lookupCluster ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetClusterById" ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster lookupCluster ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , QueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetClusterById" ) ; }
Source:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }

Target:
public void newSubnet ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.providers.NewExternalSubnetModel model = new org.ovirt.engine.ui.uicommonweb.models.providers.NewExternalSubnetModel ( getEntity ( ) , this ) ; setWindow ( model ) ; }
Source:
public void testGetRelevantQuotasExistingStorage ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForStorage ( FixturesTool.STORAGE_DOAMIN_NFS_MASTER , org.ovirt.engine.core.dao.QuotaDaoTest.STORAGE_NUM_QUOTAS ) ; }

Target:
public void testGetRelevantQuotasExistingStorage ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForStorage ( FixturesTool.STORAGE_DOMAIN_NFS_MASTER , org.ovirt.engine.core.dao.QuotaDaoTest.STORAGE_NUM_QUOTAS ) ; }
Source:
public void selectClusterByName ( java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup : getCluster ( ) . getItems ( ) ) { if ( vdsGroup.getName ( ) . equals ( name ) ) { getCluster ( ) . setSelectedItem ( vdsGroup ) ; break ; } } }

Target:
public void selectClusterByName ( java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.Cluster cluster : getCluster ( ) . getItems ( ) ) { if ( cluster.getName ( ) . equals ( name ) ) { getCluster ( ) . setSelectedItem ( cluster ) ; break ; } } }
Source:
public void testCanMoveVdsToMaintenanceFalse ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setStatus ( VDSStatus.PreparingForMaintenance ) ; vds.setVmCount ( 1 ) ; org.junit.Assert.assertFalse ( strategy.canMoveToMaintenance ( vds ) ) ; }

Target:
public void testCanMoveVdsToMaintenanceFalse ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setStatus ( VDSStatus.PreparingForMaintenance ) ; vds.setVmCount ( 1 ) ; org.junit.jupiter.api.Assertions.assertFalse ( strategy.canMoveToMaintenance ( vds ) ) ; }
Source:
public void testGetAllByStoragePoolAndConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllByStoragePoolAndConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > ) ( source ) ) ; }
Source:
protected void finalize ( ) throws java.lang.Throwable { dispose ( ) ; super . finalize ( ) ; }

Target:
public java.lang.String getStringRepresentation ( ) { return _writer.getStringXML ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.EventNotificationMethod mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.EventNotificationMethod entity = new org.ovirt.engine.core.common.businessentities.EventNotificationMethod ( ) ; entity.setmethod_id ( rs.getInt ( "method_id" ) ) ; entity.setmethod_type ( EventNotificationMethods.EMAIL ) ; return entity ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.EventNotificationMethod > getEventNotificationMethodsById ( int method_id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "method_id" , method_id ) ; return getCallsHandler ( ) . executeReadList ( "GetEventNotificationMethodById" , org.ovirt.engine.core.dao.EventDAODbFacadeImpl.EventNotificationMethodRowMapper.instance , parameterSource ) ; }
Source:
public void testIsNotLocalFsWithDefaultCluster ( ) { storagePool.setstorage_pool_type ( StorageType.LOCALFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertTrue ( validator.isNotLocalfsWithDefaultCluster ( ) . isValid ( ) ) ; }

Target:
public void testIsNotLocalFsWithDefaultCluster ( ) { storagePool.setStorageType ( StorageType.LOCALFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertTrue ( validator.isNotLocalfsWithDefaultCluster ( ) . isValid ( ) ) ; }
Source:
public java.lang.String SizeParser ( long sizeInMb ) { return ( sizeInMb >= 1024 ) && ( ( sizeInMb % 1024 ) == 0 ) ? ( sizeInMb / 1024 ) + "GB" : sizeInMb + "MB" ; }

Target:
public java.lang.String sizeParser ( long sizeInMb ) { return ( sizeInMb >= 1024 ) && ( ( sizeInMb % 1024 ) == 0 ) ? ( sizeInMb / 1024 ) + "GB" : sizeInMb + "MB" ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup getVDsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setId ( clusterId ) ; vdsGroup.setVirtService ( false ) ; vdsGroup.setGlusterService ( true ) ; vdsGroup.setCompatibilityVersion ( Version.v3_1 ) ; return vdsGroup ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( clusterId ) ; cluster.setVirtService ( false ) ; cluster.setGlusterService ( true ) ; return cluster ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( VdsmEnv.CERTIFICATE_ENROLLMENT , org.ovirt.ovirt_host_deploy.constants.Const.CERTIFICATE_ENROLLMENT_INLINE ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( VdsmEnv.CERTIFICATE_ENROLLMENT , Const.CERTIFICATE_ENROLLMENT_INLINE ) ; return null ; }
Source:
private void initAttachPanelWidget ( ) { com.google.gwt.user.client.ui.VerticalPanel verticalPanel = new com.google.gwt.user.client.ui.VerticalPanel ( ) ; verticalPanel.add ( imageDiskTable ) ; verticalPanel.add ( lunDiskTable ) ; attachDiskPanel.setWidget ( verticalPanel ) ; }

Target:
private void initAttachPanelWidget ( ) { com.google.gwt.user.client.ui.VerticalPanel verticalPanel = new com.google.gwt.user.client.ui.VerticalPanel ( ) ; verticalPanel.add ( imageDiskTable ) ; verticalPanel.add ( lunDiskTable ) ; verticalPanel.add ( cinderDiskTable ) ; attachDiskPanel.setWidget ( verticalPanel ) ; }
Source:
public void cpuTuneToString ( ) { for ( java.lang.String sample : new java.lang.String [ ] { "0#0" , "0#0_1#1" , "0#0_1#1,2,3,6" } ) { junit.framework.Assert.assertEquals ( sample , org.ovirt.engine.api.restapi.types.VmMapper.cpuTuneToString ( org.ovirt.engine.api.restapi.types.VmMapper.stringToCpuTune ( sample ) ) ) ; } }

Target:
public void cpuTuneToString ( ) { for ( java.lang.String sample : new java.lang.String [ ] { "0#0" , "0#0_1#1" , "0#0_1#1,2,3,6" } ) { org.junit.Assert.assertEquals ( sample , org.ovirt.engine.api.restapi.types.VmMapper.cpuTuneToString ( org.ovirt.engine.api.restapi.types.VmMapper.stringToCpuTune ( sample ) ) ) ; } }
Source:
protected boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VM entity , org.ovirt.engine.core.compat.Guid id ) { return ( ( id == null ) || ( id.equals ( org.ovirt.engine.api.restapi.types.CdRomMapper.CDROM_ID ) ) ) && ( parentId.equals ( entity.getQueryableId ( ) ) ) ; }

Target:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VM entity , T id ) { return ( ( id == null ) || ( id.equals ( org.ovirt.engine.api.restapi.types.CdRomMapper.CDROM_ID ) ) ) && ( parentId.equals ( entity.getQueryableId ( ) ) ) ; }
Source:
protected void revertTasks ( ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.revertTasks ( this ) ; }

Target:
private void cancelTasks ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.cancelTasks ( this ) ; }
Source:
protected java.lang.String getAlreadyAssignedClonedNameMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . alreadyAssignedClonedTemplateName ( ) ; }

Target:
protected java.lang.String getAlreadyAssignedClonedNameMessage ( ) { return org.ovirt.engine.ui.uicommonweb.models.storage.TemplateBackupModel.messages.alreadyAssignedClonedTemplateName ( ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForVdsGroupWithStatus ( org.ovirt.engine.core.compat.Guid vdsGroupId , org.ovirt.engine.core.common.businessentities.VDSStatus status ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForClusterWithStatus ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.common.businessentities.VDSStatus status ) ;
Source:
private java.lang.String GetOptionType ( java.lang.String key ) { java.lang.String result = "" ; if ( ( org.apache.commons.lang.StringUtils.isNotEmpty ( key ) ) && ( org.ovirt.engine.core.utils.pm.VdsFenceOptions.fencingOptionTypes.containsKey ( key ) ) ) { result = org.ovirt.engine.core.utils.pm.VdsFenceOptions.fencingOptionTypes.get ( key ) ; } return result ; }

Target:
private java.lang.String GetOptionType ( java.lang.String key ) { java.lang.String result = "" ; if ( ( org.apache.commons.lang.StringUtils.isNotEmpty ( key ) ) && ( org.ovirt.engine.core.utils.pm.VdsFenceOptions.fenceOptionTypes.containsKey ( key ) ) ) { result = org.ovirt.engine.core.utils.pm.VdsFenceOptions.fenceOptionTypes.get ( key ) ; } return result ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.IpVersion > getExternalSubnetIpVerionList ( ) { return java.util.Arrays.asList ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.IpVersion.values ( ) ) ; }

Target:
public static boolean isBootMenuSupported ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.BootMenuSupported , version ) ) ) ; }
Source:
public void setEnabled ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > enabled ) { this . enabled = enabled ; }

Target:
public void setChoiceGroupNone ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > choice_group_none ) { this . choiceGroupNone = choice_group_none ; }
Source:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { org.ovirt.engine.core.compat.Guid clusterId = getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( parentId ) , "id" ) . getvds_group_id ( ) ; return clusterId ; }

Target:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { org.ovirt.engine.core.compat.Guid clusterId = getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( parentId ) , "id" ) . getVdsGroupId ( ) ; return clusterId ; }
Source:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createSnapshotMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_ALIAS ) ; image.setDescription ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_DESCRIPTION ) ; return image ; }

Target:
public static java.lang.String generateMemoryDiskDescription ( org.ovirt.engine.core.common.businessentities.VM vm , java.lang.String snapshotDescription ) { return java.lang.String.format ( org.ovirt.engine.core.bll.memory.MemoryUtils.MEMORY_DISK_DESCRIPTION , snapshotDescription , vm.getName ( ) , vm.getId ( ) ) ; }
Source:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ( clusterNetworkModel.isAttached ( ) ) && ( ! ( clusterNetworkModel.isExternal ( ) ) ) ; }

Target:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ( ( clusterNetworkModel.isAttached ( ) ) && ( ! ( clusterNetworkModel.isExternal ( ) ) ) ) && ( ! ( clusterNetworkModel.isManagement ( ) ) ) ; }
Source:
public void diskImagesDontBelongToSameImageGroup ( ) { disk1.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; disk2.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertThat ( validator.diskImagesBelongToSameImageGroup ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISKS_SNAPSHOTS_DONT_BELONG_TO_SAME_DISK ) ) ; }

Target:
public void diskImagesDontBelongToSameImageGroup ( ) { disk1.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; disk2.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.diskImagesBelongToSameImageGroup ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISKS_SNAPSHOTS_DONT_BELONG_TO_SAME_DISK ) ) ; }
Source:
public boolean isSpiceFileTransferToggleSupported ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.SpiceFileTransferToggleSupported , version ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { memoryHotUnplugSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc importCandidate ( java.lang.String sdUUID , java.lang.String vmGUID , java.lang.String templateGUID , java.lang.String templateVolGUID , java.lang.String path , java.lang.String type , java.lang.String force ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.ResizeStorageDomainPVMapReturnForXmlRpc resizeStorageDomainPV ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String device ) ;
Source:
public java.lang.String getvmt_description ( ) { return this . vmt_descriptionField ; }

Target:
public int getVmtCpuPerSocket ( ) { return this . vmtCpuPerSocket ; }
Source:
public boolean isEmpty ( ) { return ( ( ( getOutAverageLinkshare ( ) ) == null ) && ( ( getOutAverageUpperlimit ( ) ) == null ) ) && ( ( getOutAverageRealtime ( ) ) == null ) ; }

Target:
org.ovirt.engine.core.common.businessentities.network.HostNetworkQosProperties getHostNetworkQosProperties ( ) { return hostNetworkQosProperties ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel ) ( model ) ) ; networkClusterModel.setRequired ( value ) ; refreshClustersTable ( ) ; }

Target:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return isRequiredChangeable ( ) ; }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failCanDoAction ( EngineMessage.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }

Target:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failValidation ( EngineMessage.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }
Source:
public void vmNotHavingVnicsValid ( ) { vmNotHavingPassthroughVnicsCommon ( vm.getId ( ) , 0 , 0 ) ; assertThatVmNotHavingPassthroughVnics ( true ) ; }

Target:
public void testVmPassesCpuSocketValidation ( ) { setVmCpuValues ( 1 , 1 , 1 ) ; org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.QuotaVdsGroup copyQuotaVdsGroupUsage ( org.ovirt.engine.core.common.businessentities.QuotaVdsGroup quotaVdsGroup ) { return new org.ovirt.engine.core.common.businessentities.QuotaVdsGroup ( null , null , null , quotaVdsGroup.getVirtualCpu ( ) , quotaVdsGroup.getVirtualCpuUsage ( ) , quotaVdsGroup.getMemSizeMB ( ) , quotaVdsGroup.getMemSizeMBUsage ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.QuotaCluster copyQuotaClusterUsage ( org.ovirt.engine.core.common.businessentities.QuotaCluster quotaCluster ) { return new org.ovirt.engine.core.common.businessentities.QuotaCluster ( null , null , null , quotaCluster.getVirtualCpu ( ) , quotaCluster.getVirtualCpuUsage ( ) , quotaCluster.getMemSizeMB ( ) , quotaCluster.getMemSizeMBUsage ( ) ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return returnValue.mStatus ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return returnValue.getXmlRpcStatus ( ) ; }
Source:
public void testSaveVmPool ( ) { dao.save ( newVmPool ) ; org.ovirt.engine.core.common.businessentities.VmPool result = dao.getByName ( newVmPool.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newVmPool , result ) ; }

Target:
public void testSaveVmPool ( ) { dao.save ( newVmPool ) ; org.ovirt.engine.core.common.businessentities.VmPool result = dao.getByName ( newVmPool.getName ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( newVmPool , result ) ; }
Source:
java.lang.String numberValidationNumberGreaterInvalidReason ( java.lang.String prefixMsg , java.lang.String min ) ;

Target:
java.lang.String integerValidationNumberGreaterInvalidReason ( java.lang.String prefixMsg , int min ) ;
Source:
public void formatStringTest2 ( ) { testMessages.addFallback ( DynamicMessageKey.VERSION_ABOUT , "This is version about: {0}.{1}.{2}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.VERSION_ABOUT , "1" , "1" , "1" ) ; org.junit.Assert.assertNotNull ( "There should be a result" ) ; org.junit.Assert.assertEquals ( "Result should be 'This is version about: 1.1.1'" , "This is version about: 1.1.1" , result ) ; }

Target:
public void formatStringTest2 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{2}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "1" , "1" ) ; org.junit.Assert.assertNotNull ( "There should be a result" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.1.1" , result ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return getClusterUtils ( ) . getUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getVdsGroupId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return getClusterUtils ( ) . getRandomUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getVdsGroupId ( ) ) ; }
Source:
public void checkMaskFormatValidation ( ) { runSetup ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , false , false , VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_FORMAT.name ( ) ) ; runVerify ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_FORMAT.name ( ) ) ; }

Target:
public void checkMaskFormatValidation ( ) { runSetup ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , false , false , EngineMessage.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_FORMAT.name ( ) ) ; runVerify ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , EngineMessage.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_FORMAT.name ( ) ) ; }
Source:
public void getAllProviders ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { getAllProviders ( aQuery , true ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.VolumeType > getVolumeTypeList ( ) { return new java.util.ArrayList ( java.util.Arrays.asList ( VolumeType.Preallocated , VolumeType.Sparse ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return new org.ovirt.engine.core.bll.validator.RunVmValidator ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) , org.ovirt.engine.core.bll.RunVmCommand.isInternalExecution ( ) ) ; }

Target:
protected void fetchVmDisksFromDb ( ) { if ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDiskMap ( ) . isEmpty ( ) ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } }
Source:
public void createPool ( org.ovirt.engine.core.bll.network.macpool.MacPool macPool ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = writeLockResource ( ) ) { createPoolWithoutLocking ( macPool ) ; } }

Target:
public void createPool ( org.ovirt.engine.core.bll.network.macpool.MacPool macPool ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = writeLockResource ( ) ) { createPoolInternal ( macPool ) ; } }
Source:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( getDiskImageInfo ( ) , getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.AddDiskCommand.getStoragePool ( ) . getcompatibility_version ( ) ) ) ; }

Target:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( getDiskImageInfo ( ) , getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.AddDiskCommand.getStoragePool ( ) . getcompatibility_version ( ) , org.ovirt.engine.core.bll.AddDiskCommand.getCurrentUser ( ) ) ) ; }
Source:
private void addPermission ( ) { addPermissionForTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getCurrentUser ( ) . getUserId ( ) , PredefinedRoles.TEMPLATE_OWNER ) ; if ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getParameters ( ) . isPublicUse ( ) ) { addPermissionForTemplate ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.TEMPLATE_USER ) ; } }

Target:
private void addPermission ( ) { addPermissionForTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getCurrentUser ( ) . getUserId ( ) , PredefinedRoles.TEMPLATE_OWNER ) ; if ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getParameters ( ) . isPublicUse ( ) ) { addPermissionForTemplate ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.TEMPLATE_USER ) ; } copyVmPermissions ( ) ; }
Source:
private void setVnicProfiles ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > vnicProfiles ) { this . vnicProfiles = vnicProfiles ; }

Target:
public void setSsoMethodNone ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NotChangableForVmInPoolEntityModel < java.lang.Boolean > ssoMethodNone ) { this . ssoMethodNone = ssoMethodNone ; }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; getCommand ( ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }
Source:
public java.lang.Short getMax_receive_rate_percent ( ) { return this . max_receive_rate_percent ; }

Target:
public java.lang.Double getMax_receive_rate_percent ( ) { return this . max_receive_rate_percent ; }
Source:
public org.ovirt.engine.core.common.businessentities.qos.StorageQos getQosByDiskProfileId ( org.ovirt.engine.core.compat.Guid diskProfileId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "disk_profile_id" , diskProfileId ) ; return getCallsHandler ( ) . executeRead ( "GetQosByDiskProfile" , createEntityRowMapper ( ) , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.qos.StorageQos getQosByDiskProfileId ( org.ovirt.engine.core.compat.Guid diskProfileId ) { return getQosByDiskProfileIds ( java.util.Collections.singleton ( diskProfileId ) ) . get ( diskProfileId ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.Nameable entity ) { return name.equals ( entity.getName ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.Nameable entity ) { return java.util.Objects.equals ( name , entity.getName ( ) ) ; }
Source:
private void injectMocks ( ) { injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , org.ovirt.engine.core.bll.AddClusterCommandTest.cpuFlagsManagerHandler ) ; injectorRule.bind ( org.ovirt.engine.core.dao.ClusterDao.class , clusterDao ) ; injectorRule.bind ( org.ovirt.engine.core.common.businessentities.network.Network.class , managementNetwork ) ; injectorRule.bind ( org.ovirt.engine.core.dao.network.NetworkClusterDao.class , org.ovirt.engine.core.bll.AddClusterCommandTest.networkClusterDao ) ; }

Target:
private void injectMocks ( ) { injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; injectorRule.bind ( org.ovirt.engine.core.dao.ClusterDao.class , clusterDao ) ; injectorRule.bind ( org.ovirt.engine.core.common.businessentities.network.Network.class , managementNetwork ) ; injectorRule.bind ( org.ovirt.engine.core.dao.network.NetworkClusterDao.class , networkClusterDao ) ; }
Source:
public void setVersion ( java.lang.String text ) { versionLabel.setText ( dynamicMessages.ovirtVersionAbout ( text ) ) ; }

Target:
public void setVersion ( java.lang.String text ) { versionText.setText ( text ) ; }
Source:
public void validateSuccess ( ) { mockVmStatusUp ( ) ; mockInterfaceList ( ) ; cretaeVirtIODisk ( ) ; initStorageDomain ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }

Target:
public void validateSuccess ( ) { mockVmStatusUp ( ) ; mockInterfaceList ( ) ; createVirtIODisk ( ) ; initStorageDomain ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
public void setis_auto_suspend ( boolean value ) { this . mVmStatic.setis_auto_suspend ( value ) ; }

Target:
public void setAutoSuspend ( boolean value ) { this . vmStatic.setis_auto_suspend ( value ) ; }
Source:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.core.common.action.FenceAgentCommandParameterBase params = new org.ovirt.engine.core.common.action.FenceAgentCommandParameterBase ( ) ; org.ovirt.engine.core.common.businessentities.pm.FenceAgent agent = new org.ovirt.engine.core.common.businessentities.pm.FenceAgent ( ) ; agent.setId ( asGuid ( id ) ) ; params.setAgent ( agent ) ; return performAction ( VdcActionType.RemoveFenceAgent , params ) ; }

Target:
public org.ovirt.engine.api.resource.FenceAgentResource getFenceAgentSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendFenceAgentResource ( id ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public java.util.HashMap < java.lang.String , java.util.HashMap < java.lang.String , java.lang.String > > getFencingOptionMappingMap ( ) { return org.ovirt.engine.core.utils.pm.VdsFenceOptions.fencingOptionMapping ; }

Target:
public java.util.HashMap < java.lang.String , java.util.HashMap < java.lang.String , java.lang.String > > getFencingOptionMappingMap ( ) { return fencingOptionMapping ; }
Source:
public java.util.ArrayList < java.lang.String > getNetworkDevices ( int osId , org.ovirt.engine.core.compat.Version version ) { java.lang.String devices = getValueByVersion ( idToUnameLookup.get ( osId ) , "devices.network" , version ) ; return trimElements ( devices.split ( "," ) ) ; }

Target:
public java.util.List < java.lang.String > getNetworkDevices ( int osId , org.ovirt.engine.core.compat.Version version ) { java.lang.String devices = getValueByVersion ( idToUnameLookup.get ( osId ) , "devices.network" , version ) ; return org.ovirt.engine.core.utils.OsRepositoryImpl.trimElements ( devices.split ( "," ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getId ( ) { if ( ( id ) == null ) { id = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; } return id ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( ) { if ( ( id ) == null ) { id = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; } return id ; }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "step_id" , id ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByJobId ( org.ovirt.engine.core.compat.Guid jobId ) { return jobDao.get ( jobId ) . getSteps ( ) ; }
Source:
public void updateBadFormatPath ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "host/mydir" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_INVALID ) ; }

Target:
public void updateBadFormatPath ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "host/mydir" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_INVALID ) ; }
Source:
public void testRangeStartAndRangeStopAreInclusive ( ) { 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 ) ) ; }

Target:
public void testRangeStartAndRangeStopAreInclusive ( ) { org.hamcrest.MatcherAssert.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 boolean isLiveMergeSupported ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( vm != null ) && ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveMergeSupported , vm.getVdsGroupCompatibilityVersion ( ) . toString ( ) ) ) ) ; }

Target:
public boolean isMemorySnapshotSupported ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( vm == null ) { return false ; } return isMemorySnapshotSupportedByArchitecture ( vm.getClusterArch ( ) , vm.getCompatibilityVersion ( ) ) ; }
Source:
public java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.util.Set < java.lang.String > > getUnsupportedCpus ( ) ;

Target:
int getMaxPciDevices ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public java.util.Date getGuestLastLogoutTime ( ) { return this . guestLastLogoutTime ; }

Target:
public java.lang.String getGuestOsTimezoneName ( ) { return guestOsTimezoneName ; }
Source:
public void testGetEntityNameByIdAndTypeForCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = clusterDao.get ( FixturesTool.CLUSTER ) ; org.junit.Assert.assertNotNull ( cluster ) ; java.lang.String name = cluster.getName ( ) ; org.junit.Assert.assertEquals ( name , dao.getEntityNameByIdAndType ( FixturesTool.CLUSTER , VdcObjectType.Cluster ) ) ; }

Target:
public void testGetEntityNameByIdAndTypeForCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = clusterDao.get ( FixturesTool.CLUSTER ) ; org.junit.jupiter.api.Assertions.assertNotNull ( cluster ) ; java.lang.String name = cluster.getName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( name , dao.getEntityNameByIdAndType ( FixturesTool.CLUSTER , VdcObjectType.Cluster ) ) ; }
Source:
private boolean isValidParametersList ( ) { if ( getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return true ; }

Target:
private boolean isValidParametersList ( ) { if ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return true ; }
Source:
protected org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters createParameters ( org.ovirt.engine.core.compat.Guid sourceStorageDomainGuid , org.ovirt.engine.core.compat.Guid destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.DiskImage disk ) { return new org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters ( disk.getImageId ( ) , sourceStorageDomainGuid , destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.ImageOperation.Copy ) ; }

Target:
protected org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters createParameters ( org.ovirt.engine.core.compat.Guid sourceStorageDomainGuid , org.ovirt.engine.core.compat.Guid destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters moveOrCopyImageGroupParameters = new org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters ( disk.getImageId ( ) , sourceStorageDomainGuid , destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Copy ) ; moveOrCopyImageGroupParameters.setImageGroupID ( disk.getId ( ) ) ; return moveOrCopyImageGroupParameters ; }
Source:
public void updateUpdateAvailable ( org.ovirt.engine.core.compat.Guid id , boolean updateAvailable ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setUpdateAvailable ( updateAvailable ) ; update ( entity ) ; }

Target:
public void updateCpuFlags ( org.ovirt.engine.core.compat.Guid id , java.lang.String cpuFlags ) { getCallsHandler ( ) . executeModification ( "updateCpuFlags" , getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) . addValue ( "cpu_flags" , cpuFlags ) ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setExistingInterfaces ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > existingInterfaces ) { this . existingInterfaces = existingInterfaces ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addExistingInterfaces ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > existingInterfaces ) { if ( existingInterfaces == null ) { return this ; } this . existingInterfaces.addAll ( existingInterfaces ) ; return this ; }
Source:
protected boolean hasModel ( ) { return ( ( getCommonModel ( ) ) != null ) && ( ( org.ovirt.engine.ui.common.uicommon.model.TabModelProvider.getModel ( ) ) != null ) ; }

Target:
public M getModel ( ) { M model = modelProvider.get ( ) ; if ( ! ( modelInitialized ) ) { modelInitialized = true ; initializeModelHandlers ( model ) ; } return model ; }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.scheduling.SchedulingManager.getInstance ( ) . getClusterPolicy ( getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( schedulingManager.getClusterPolicy ( getParameters ( ) . getId ( ) ) ) ; }
Source:
public void testUpdate ( ) { storageDomainDR.setJobId ( "qrtzjob2" ) ; dao.update ( storageDomainDR ) ; org.ovirt.engine.core.common.businessentities.StorageDomainDR result = dao.get ( FixturesTool.POSIX_STORAGE_DOMAIN_ID , FixturesTool.GLUSTER_GEOREP_SESSION_ID2 ) ; org.junit.Assert.assertEquals ( storageDomainDR , result ) ; }

Target:
public void testUpdate ( ) { storageDomainDR.setJobId ( "qrtzjob2" ) ; dao.update ( storageDomainDR ) ; org.ovirt.engine.core.common.businessentities.StorageDomainDR result = dao.get ( FixturesTool.POSIX_STORAGE_DOMAIN_ID , FixturesTool.GLUSTER_GEOREP_SESSION_ID2 ) ; org.junit.jupiter.api.Assertions.assertEquals ( storageDomainDR , result ) ; }
Source:
public void setup ( ) { mockConfigRule.mockConfigValue ( ConfigValues.MaxVdsNameLength , org.ovirt.engine.core.bll.validator.UpdateHostValidatorTest.HOST_NAME_SIZE ) ; validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , oldHost , host , false ) ; }

Target:
public void setup ( ) { mockConfigRule.mockConfigValue ( ConfigValues.MaxVdsNameLength , org.ovirt.engine.core.bll.validator.UpdateHostValidatorTest.HOST_NAME_SIZE ) ; validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , oldHost , host , false , hostedEngineHelper ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return pool.getName ( ) ; }

Target:
private void initListBoxEditors ( ) { dataCenterEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ) ; }
Source:
public java.lang.Double getCpuIdle ( ) { return this . mVdsStatistics.getcpu_idle ( ) ; }

Target:
public java.lang.String getOnlineCpus ( ) { return this . mVdsDynamic.getOnlineCpus ( ) ; }