auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void updateInterfaceForVds ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { persistQosChanges ( nic ) ; getCallsHandler ( ) . executeModification ( "Updatevds_interface" , createInterfaceParametersMapper ( nic ) ) ; }

Target:
public java.util.Optional < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getActiveMigrationNetworkInterfaceForHost ( org.ovirt.engine.core.compat.Guid hostId ) { return java.util.Optional.ofNullable ( getCallsHandler ( ) . executeRead ( "getActiveMigrationNetworkInterfaceForHost" , vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "host_id" , hostId ) ) ) ; }
Source:
public void testExecuteQueryCommandLldpDisabled ( ) { setup ( org.ovirt.engine.core.bll.network.host.GetTlvsByHostNicIdQueryTest.ExpectedError.LLDP_ENABLED ) ; getQuery ( ) . executeQueryCommand ( ) ; org.junit.Assert.assertNull ( getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ; }

Target:
public void testExecuteQueryCommandLldpDisabled ( ) { setup ( org.ovirt.engine.core.bll.network.host.GetTlvsByHostNicIdQueryTest.ExpectedError.LLDP_ENABLED ) ; getQuery ( ) . executeQueryCommand ( ) ; org.junit.jupiter.api.Assertions.assertNull ( getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ; }
Source:
public java.lang.String getvds_name ( ) { return this . mVdsStatic.getvds_name ( ) ; }

Target:
public void setServerSslEnabled ( boolean value ) { this . mVdsStatic.setServerSslEnabled ( value ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForCpuProfile ( org.ovirt.engine.core.compat.Guid cpuProfileId ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByCpuProfileId" , org.ovirt.engine.core.dao.VmDaoImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "cpu_profile_id" , cpuProfileId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForCpuProfiles ( java.util.Collection < org.ovirt.engine.core.compat.Guid > cpuProfileIds ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByCpuProfileIds" , org.ovirt.engine.core.dao.VmDaoImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "cpu_profile_ids" , createArrayOfUUIDs ( cpuProfileIds ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAll ( ) { return getCallsHandler ( ) . executeReadList ( "GetAllFromVms" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAll ( org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return getCallsHandler ( ) . executeReadList ( "GetAllFromVms" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "user_id" , userID ) . addValue ( "is_filtered" , isFiltered ) ) ; }
Source:
public static void removeMemoryBalloons ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeVmDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getMemoryBalloons ( vmId ) , 1 ) ; }

Target:
public boolean hasMemoryBalloon ( org.ovirt.engine.core.compat.Guid vmId ) { return vmDeviceDao.isMemBalloonEnabled ( vmId ) ; }
Source:
public boolean isSessionExists ( java.lang.String sessionId ) { return sessionInfoMap.containsKey ( sessionId ) ; }

Target:
public boolean isSessionExists ( java.lang.String sessionId ) { return org.apache.commons.lang.StringUtils.isEmpty ( sessionId ) ? false : sessionInfoMap.containsKey ( sessionId ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( getTenantName ( ) ) == null ? 0 : getTenantName ( ) . hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( tenantName ) ; }
Source:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.log.errorFormat ( "{0} Error: {1}, vds = {2} : {3}" , messagePrefix , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) , _vds.getId ( ) , _vds.getvds_name ( ) ) ; }

Target:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.log.errorFormat ( "{0} Error: {1}, vds = {2} : {3}" , messagePrefix , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) , _vds.getId ( ) , _vds.getVdsName ( ) ) ; }
Source:
public int getcpu_over_commit_duration_minutes ( ) { return this . cpu_over_commit_duration_minutesField ; }

Target:
public void setStoragePoolName ( java.lang.String value ) { this . storagePoolName = value ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return object.getdescription ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return object.getDescription ( ) ; }
Source:
public java.lang.String setValue ( java.lang.String value ) throws java.lang.Exception { return reformatKeyVal ( value , org.ovirt.engine.core.config.entity.helper.CompositePasswordValueHelper.ReformatType.ENCRYPT ) ; }

Target:
public java.lang.String setValue ( java.lang.String value ) throws java.lang.Exception { value = pwdValueHelper.extractPasswordValue ( value ) ; return reformatKeyVal ( value , org.ovirt.engine.core.config.entity.helper.CompositePasswordValueHelper.ReformatType.ENCRYPT ) ; }
Source:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) , org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) ) , diskInfoDestinationMap , destStorages , false ) ; }

Target:
protected void copyVmDevices ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.copyVmDevices ( vmDevicesSourceId , org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) , getSrcDeviceIdToTargetDeviceIdMapping ( ) , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isConsoleEnabled ( ) , isVirtioScsiEnabled ( ) , false ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { mVmListReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getBroker ( ) . getVmStats ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( createVmInternalData ( mVmListReturn.mInfoList [ 0 ] ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { vmListReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getBroker ( ) . getVmStats ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( createVmInternalData ( vmListReturn.infoList [ 0 ] ) ) ; }
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.VdsNumaNode > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ( ) ; } return source ; }
Source:
public static java.util.List < org.ovirt.engine.api.extensions.ExtMap > fetchPrincipalsByIdsRecursively ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.util.List < java.lang.String > ids ) { return org.ovirt.engine.core.aaa.AuthzUtils.findPrincipalsByIds ( extension , namespace , ids , true , true ) ; }

Target:
public static java.util.Collection < org.ovirt.engine.api.extensions.ExtMap > fetchPrincipalsByIdsRecursively ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.util.Collection < java.lang.String > ids ) { return org.ovirt.engine.core.aaa.AuthzUtils.findPrincipalsByIds ( extension , namespace , ids , true , true ) ; }
Source:
public static java.util.Map < java.lang.String , java.lang.Object > loginOnBehalf ( java.lang.String username , java.lang.String scope ) { return org.ovirt.engine.core.aaa.SSOOAuthServiceUtils.loginWithPassword ( username , "" , scope ) ; }

Target:
public static java.util.Map < java.lang.String , java.lang.Object > loginOnBehalf ( java.lang.String username , java.lang.String scope , org.ovirt.engine.api.extensions.ExtMap authRecord ) { return org.ovirt.engine.core.aaa.SSOOAuthServiceUtils.loginWithPasswordImpl ( username , "" , scope , authRecord ) ; }
Source:
public void setSucceeded ( boolean succeeded ) { this . succeeded = succeeded ; }

Target:
protected int countSkippedOperations ( java.util.List < org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue > results ) { int numOfSkipped = 0 ; for ( org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue result : results ) { if ( wasSkippedDueToPolicy ( result ) ) { numOfSkipped ++ ; } } return numOfSkipped ; }
Source:
private boolean isHealthy ( org.ovirt.engine.core.common.businessentities.FenceAgent agent , org.ovirt.engine.core.common.businessentities.VDS host ) { return new org.ovirt.engine.core.bll.FenceExecutor ( host ) . fence ( FenceActionType.STATUS , agent ) . getSucceeded ( ) ; }

Target:
private boolean isHealthy ( org.ovirt.engine.core.common.businessentities.FenceAgent agent , org.ovirt.engine.core.common.businessentities.VDS host ) { return ( new org.ovirt.engine.core.bll.pm.HostFenceActionExecutor ( host ) . getFenceAgentStatus ( agent ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult.Status.SUCCESS ) ; }
Source:
public void setClusterList ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel clusterList ) { this . clusterList = clusterList ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel getNetworkList ( ) { return networkListModel ; }
Source:
protected void LogTaskDoesntExist ( ) { org.ovirt.engine.core.bll.SPMAsyncTask.log.errorFormat ( "BaseAsyncTask::LogTaskDoesntExist: Task '{0}' (Parent Command {1}, Parameters Type {2}) does not exist." , getTaskID ( ) , getParameters ( ) . getDbAsyncTask ( ) . getaction_type ( ) , getParameters ( ) . getClass ( ) . getName ( ) ) ; }

Target:
protected void LogTaskDoesntExist ( ) { org.ovirt.engine.core.bll.SPMAsyncTask.log.errorFormat ( "BaseAsyncTask::LogTaskDoesntExist: Task '{0}' (Parent Command {1}, Parameters Type {2}) does not exist." , getVdsmTaskId ( ) , getParameters ( ) . getDbAsyncTask ( ) . getaction_type ( ) , getParameters ( ) . getClass ( ) . getName ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterfaceWithName ( java.lang.String name ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; vdsNetworkInterface.setName ( name ) ; return vdsNetworkInterface ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterfaceWithName ( java.lang.String name , boolean bonded ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; vdsNetworkInterface.setName ( name ) ; vdsNetworkInterface.setBonded ( bonded ) ; return vdsNetworkInterface ; }
Source:
protected void setUpMockQueryParameters ( ) { super . setUpMockQueryParameters ( ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getStoragePoolId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getFileTypeExtension ( ) ) . thenReturn ( expectedType ) ; }

Target:
protected void setUpMockQueryParameters ( ) { super . setUpMockQueryParameters ( ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getStoragePoolId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getImageType ( ) ) . thenReturn ( expectedType ) ; }
Source:
public void setKeyPair ( java.security.KeyPair keyPair ) { _dialog.setKeyPair ( keyPair ) ; }

Target:
public void setPassword ( java.lang.String password ) { _dialog.setPassword ( password ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map map ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lun_id" , map.getLunId ( ) ) . addValue ( "storage_server_connection" , map.getstorage_server_connection ( ) ) ; getCallsHandler ( ) . executeModification ( "InsertLUN_storage_server_connection_map" , parameterSource ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.storage.LUN_storage_server_connection_map map ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lun_id" , map.getLunId ( ) ) . addValue ( "storage_server_connection" , map.getstorage_server_connection ( ) ) ; getCallsHandler ( ) . executeModification ( "InsertLUN_storage_server_connection_map" , parameterSource ) ; }
Source:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.SearchParameters ( ( ( ( ( ( "ADGROUP@" + ( getProfile ( ) . getSelectedItem ( ) . getAuthz ( ) ) ) + ":" ) + ( getNamespace ( ) . getSelectedItem ( ) ) ) + ": " ) + searchString ) , org.ovirt.engine.core.common.interfaces.SearchType.DirectoryGroup ) , query ) ; }

Target:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.uicommonweb.models.users.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.SearchParameters ( ( ( ( ( ( "ADGROUP@" + ( getProfile ( ) . getSelectedItem ( ) . getAuthz ( ) ) ) + ":" ) + ( getNamespace ( ) . getSelectedItem ( ) ) ) + ": " ) + searchString ) , org.ovirt.engine.core.common.interfaces.SearchType.DirectoryGroup ) , query ) ; }
Source:
protected int getEneitiesTotalCount ( ) { return org.ovirt.engine.core.dao.ImageDaoTest.TOTAL_IMAGES ; }

Target:
protected int getEntitiesTotalCount ( ) { return org.ovirt.engine.core.dao.ImageDaoTest.TOTAL_IMAGES ; }
Source:
public void testJsonDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = null ; jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "DiskDescription" ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskDescription\":\"DiskDescription\",\"DiskAlias\":\"DiskAlias\"}" ) ) ; }

Target:
public void testJsonDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = null ; jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "DiskDescription" ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"DiskDescription\"}" ) ) ; }
Source:
public void onDataCenterSelectionChange ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.VolumeSelectionChangeEvent event ) { updateMainTabSelection ( event.getSelectedItems ( ) ) ; }

Target:
public void onVolumeSelectionChange ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.VolumeSelectionChangeEvent event ) { updateMainTabSelection ( event.getSelectedItems ( ) ) ; }
Source:
protected abstract void onLogin ( T loginModel ) ;

Target:
protected abstract void beforeLogin ( T loginModel ) ;
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getModel ( ) . getDeactivateCommand ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { updateInfoPanel ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getTrustedClusters ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "trusted_service" , true ) ; return getCallsHandler ( ) . executeReadList ( "GetTrustedVdsGroups" , org.ovirt.engine.core.dao.VdsGroupDaoImpl.VdsGroupRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getTrustedClusters ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "trusted_service" , true ) ; return getCallsHandler ( ) . executeReadList ( "GetTrustedClusters" , org.ovirt.engine.core.dao.ClusterDaoImpl.ClusterRowMapper.instance , parameterSource ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { Test ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { Test ( ) ; }
Source:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableTrustedServiceEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableBallooning = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DisplayType extractDisplayType ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( vmBase instanceof org.ovirt.engine.core.common.businessentities.VmStatic ) { return ( ( org.ovirt.engine.core.common.businessentities.VmStatic ) ( vmBase ) ) . getDefaultDisplayType ( ) ; } return null ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.InstanceTypeManager getInstanceTypeManager ( ) { return instanceTypeManager ; }
Source:
public void instantiateProper ( ) { org.ovirt.engine.core.bll.scheduling.InternalPolicyUnits.instantiate ( org.ovirt.engine.core.bll.scheduling.policyunits.CpuLevelFilterPolicyUnit.class , null ) ; }

Target:
public void instantiateProper ( ) throws java.lang.Exception { for ( java.lang.Class < ? extends org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl > unit : org.ovirt.engine.core.bll.scheduling.InternalPolicyUnits.getList ( ) ) { org.ovirt.engine.core.bll.scheduling.InternalPolicyUnits.instantiate ( unit , null ) ; } }
Source:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version vdsGroupCompatibilityVersion ) { this . vdsGroupCompatibilityVersion = vdsGroupCompatibilityVersion ; }

Target:
public void setClusterCompatibilityVersion ( org.ovirt.engine.core.compat.Version clusterCompatibilityVersion ) { this . clusterCompatibilityVersion = clusterCompatibilityVersion ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public void getClusterById ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.Cluster > aQuery , org.ovirt.engine.core.compat.Guid id ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , aQuery ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vds_group_id ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForCluster ( org.ovirt.engine.core.compat.Guid clusterId ) ;
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getRngDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.RNG ) ; }

Target:
private static void enableSpiceUsb ( org.ovirt.engine.core.compat.Guid vmId , int newNumberOfUsbSlots ) { if ( newNumberOfUsbSlots > 0 ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addSpiceUsbControllers ( vmId , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getNeededNumberOfUsbControllers ( newNumberOfUsbSlots ) ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.addUsbSlots ( vmId , newNumberOfUsbSlots ) ; } }
Source:
protected org.ovirt.engine.api.model.HostNIC map ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity , org.ovirt.engine.api.model.HostNIC template ) { return map ( entity , template , null ) ; }

Target:
protected org.ovirt.engine.api.model.HostNic map ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity , org.ovirt.engine.api.model.HostNic template ) { return map ( entity , template , null ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI.getName ( ) , userID , isFiltered ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI.getName ( ) , userID , isFiltered ) ; }
Source:
public void setSearchString ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( searchString , value ) ) ) { searchString = value ; pagingSearchString = null ; searchStringChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchString" ) ) ; } }

Target:
public void setSearchString ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( searchString , value ) ) ) { searchString = value ; pagingSearchString = null ; currentPageNumber = 1 ; searchStringChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchString" ) ) ; } }
Source:
public org.ovirt.engine.api.model.Watchdog addParents ( org.ovirt.engine.api.model.Watchdog device ) { device.setTemplate ( new org.ovirt.engine.api.model.Template ( ) ) ; device.getTemplate ( ) . setId ( templateId.toString ( ) ) ; return device ; }

Target:
public org.ovirt.engine.api.model.Watchdog addParents ( org.ovirt.engine.api.model.Watchdog watchdog ) { org.ovirt.engine.api.model.Template template = new org.ovirt.engine.api.model.Template ( ) ; template.setId ( templateId.toString ( ) ) ; watchdog.setTemplate ( template ) ; return watchdog ; }
Source:
private void testManagementNetworkNotExternal ( boolean management , boolean external , org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > expected ) { networkCluster.setManagement ( management ) ; setNetworkExternal ( network , external ) ; org.junit.Assert.assertThat ( validator.managementNetworkNotExternal ( network ) , expected ) ; }

Target:
private void testManagementNetworkNotExternal ( boolean management , boolean external , org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > expected ) { networkCluster.setManagement ( management ) ; setNetworkExternal ( network , external ) ; org.hamcrest.MatcherAssert.assertThat ( validator.managementNetworkNotExternal ( network ) , expected ) ; }
Source:
public static java.lang.String getRegexToolPattern ( ) { final java.lang.String guestToolsSetupIsoPrefix = org.ovirt.engine.core.bll.IsoDomainListSyncronizer.getGuestToolsSetupIsoPrefix ( ) ; return guestToolsSetupIsoPrefix + "([0-9]{1,}.[0-9])(_{1})([0-9]{1,}).[i|I][s|S][o|O]$" ; }

Target:
public static java.lang.String getRegexToolPattern ( ) { java.lang.String regexPattern = java.lang.String.format ( "%1$s(?<%2$s>[0-9]{1,}.[0-9])_{1}(?<%3$s>[0-9]{1,}).[i|I][s|S][o|O]$" , org.ovirt.engine.core.bll.IsoDomainListSyncronizer.getGuestToolsSetupIsoPrefix ( ) , org.ovirt.engine.core.bll.IsoDomainListSyncronizer.TOOL_CLUSTER_LEVEL , org.ovirt.engine.core.bll.IsoDomainListSyncronizer.TOOL_VERSION ) ; return regexPattern ; }
Source:
public void testRemoveByImageId ( ) { dao.remove ( org.ovirt.engine.core.dao.ImageStorageDomainMapDaoTest.EXISTING_IMAGE_ID ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.ImageStorageDomainMap > entries = dao.getAllByStorageDomainId ( org.ovirt.engine.core.dao.ImageStorageDomainMapDaoTest.EXISTING_IMAGE_ID ) ; org.junit.Assert.assertNotNull ( entries ) ; org.junit.Assert.assertTrue ( entries.isEmpty ( ) ) ; }

Target:
public void testRemoveByImageId ( ) { dao.remove ( org.ovirt.engine.core.dao.ImageStorageDomainMapDaoTest.EXISTING_IMAGE_ID ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.ImageStorageDomainMap > entries = dao.getAllByStorageDomainId ( org.ovirt.engine.core.dao.ImageStorageDomainMapDaoTest.EXISTING_IMAGE_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( entries ) ; org.junit.jupiter.api.Assertions.assertTrue ( entries.isEmpty ( ) ) ; }
Source:
public void validPropertyValidDeviceType ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v4_0 , VmDeviceGeneralType.INTERFACE , utils.convertProperties ( "speed=10;duplex=half;debug=" ) ) ; org.junit.Assert.assertTrue ( errors.isEmpty ( ) ) ; }

Target:
public void validPropertyValidDeviceType ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v4_0 , VmDeviceGeneralType.INTERFACE , utils.convertProperties ( "speed=10;duplex=half;debug=" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( errors.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.QuotaDao getQuotaDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getQuotaDao ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getDefaultQuotaId ( org.ovirt.engine.core.compat.Guid storagePoolId ) { if ( ! ( storagePoolDefaultQuotaIdMap.containsKey ( storagePoolId ) ) ) { addStoragePoolToCacheWithLock ( storagePoolId ) ; } return storagePoolDefaultQuotaIdMap.get ( storagePoolId ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; behavior.eventRaised ( ev , sender , args ) ; }

Target:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; behavior.EntityPropertyChanged ( e ) ; }
Source:
public void updateIfNeeded ( org.ovirt.engine.core.common.businessentities.VdsDynamic vdsDynamic ) { update ( vdsDynamic ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsDynamic > getAll ( ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
org.ovirt.engine.core.common.businessentities.CommandEntity getCommandEntity ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
private org.ovirt.engine.core.common.businessentities.aaa.DbUser findPrincipal ( java.lang.String sessionId ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue result = backend.runPublicQuery ( QueryType.GetDbUserBySession , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( sessionId ) ) ; return result.getReturnValue ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.aaa.DbUser findPrincipal ( java.lang.String sessionId ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue result = backend.runPublicQuery ( QueryType.GetDbUserBySession , new org.ovirt.engine.core.common.queries.QueryParametersBase ( sessionId ) ) ; return result.getReturnValue ( ) ; }
Source:
public void setPmSecondaryOptionsMap ( java.util.HashMap < java.lang.String , java.lang.String > value ) { mVdsStatic.setPmSecondaryOptionsMap ( value ) ; }

Target:
public void setNumaNodeList ( java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > numaNodeList ) { mVdsDynamic.setNumaNodeList ( numaNodeList ) ; }
Source:
public void removeAll ( java.util.Collection < ID > ids ) { for ( ID id : ids ) { org.ovirt.engine.core.dao.MassOperationsGenericDao.remove ( id ) ; } }

Target:
public void removeAll ( java.util.Collection < ID > ids ) { ids.forEach ( this :: remove ) ; }
Source:
private void mockStoragePoolDAO ( final org.ovirt.engine.core.dao.StoragePoolDAO storagePoolDAO ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter search = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( ) ; org.mockito.Mockito.when ( storagePoolDAO.getAllWithQuery ( org.mockito.Matchers.matches ( org.ovirt.engine.core.bll.SearchQueryTest.getStoragePoolRegexString ( search ) ) ) ) . thenReturn ( storagePoolResultList ) ; }

Target:
private void mockStoragePoolDao ( final org.ovirt.engine.core.dao.StoragePoolDao storagePoolDao ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter search = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( ) ; org.mockito.Mockito.when ( storagePoolDao.getAllWithQuery ( org.mockito.Matchers.matches ( org.ovirt.engine.core.bll.SearchQueryTest.getStoragePoolRegexString ( search ) ) ) ) . thenReturn ( storagePoolResultList ) ; }
Source:
protected boolean doesStorageDomainHasSpaceForRequest ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = createStorageDomainValidator ( storageDomain ) ; return validate ( storageDomainValidator.hasSpaceForClonedDisks ( disksList ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Command ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getStorageConnectionsList ( java.lang.String spUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > copyData ( java.util.Map srcImage , java.util.Map dstImage , boolean collapse ) ;
Source:
public java.util.Map < java.lang.String , java.lang.Object > reconstructMaster ( java.lang.String spUUID , java.lang.String msdUUID , java.lang.String masterVersion ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > reconstructMaster ( java.lang.String spUUID , int hostSpmId , java.lang.String msdUUID , java.lang.String masterVersion ) ;
Source:
public void testEvalPositive ( ) { org.mockito.Mockito.when ( mockVdsNetworkInterface.getNetworkName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ; final org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate underTest = new org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ; org.junit.Assert.assertTrue ( underTest.test ( mockVdsNetworkInterface ) ) ; }

Target:
public void testEvalPositive ( ) { org.mockito.Mockito.when ( mockVdsNetworkInterface.getNetworkName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ; final org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate underTest = new org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.test ( mockVdsNetworkInterface ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.balloonSupportMap = ( ( java.util.Map < java.lang.Integer , java.util.Map < org.ovirt.engine.core.compat.Version , java.lang.Boolean > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { diskHotpluggableInterfacesMap = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
protected void toggleGhost ( org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType value , org.ovirt.engine.ui.common.widget.profile.ProfileInstanceTypeEditor item , boolean becomingGhost ) { item.profileEditor.setEnabled ( ( ! becomingGhost ) ) ; item.profileEditor.asWidget ( ) . setEnabled ( true ) ; }

Target:
protected void toggleGhost ( org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType value , org.ovirt.engine.ui.common.widget.profile.ProfileInstanceTypeEditor widget , boolean becomingGhost ) { super . toggleGhost ( value , widget , becomingGhost ) ; widget.vnicLabel.setEnabled ( ( ! becomingGhost ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { privateChangeProhibitionReason = null ; } } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { setChangeProhibitionReason ( null ) ; } } return this ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return status.getXmlRpcStatus ( ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.Status getReturnStatus ( ) { return status.getStatus ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . networkHostSubTabLabel ( ) , 2 , ginjector.getSubTabNetworkHostModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkHostListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkHostSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updatePanelsVisibility ( model ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object object , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateErrorAndWarning ( model ) ; }
Source:
public void testVmExceedsMaxNumOfCpusPerSocket ( ) { setVmCpuValues ( 1 , ( ( org.ovirt.engine.core.bll.validator.VmValidatorTest.MAX_NUM_CPUS_PER_SOCKET ) + 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.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAX_CPU_PER_SOCKET ) ) ; }

Target:
public void testVmExceedsMaxNumOfCpusPerSocket ( ) { setVmCpuValues ( 1 , ( ( org.ovirt.engine.core.bll.validator.VmValidatorTest.MAX_NUM_CPUS_PER_SOCKET ) + 1 ) , 1 ) ; org.hamcrest.MatcherAssert.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.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAX_CPU_PER_SOCKET ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > startSpice ( java.lang.String vdsIp , int port , java.lang.String ticket ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
private void AttachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.AttachStorageDomainToPool , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( storageId , dataCenterId ) , null , this ) ; }

Target:
private void attachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.AttachStorageDomainToPool , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( storageId , dataCenterId ) , null , this ) ; }
Source:
protected void createVirtIODisk ( ) { super . createVirtIODisk ( ) ; vmDevice.setIsPlugged ( true ) ; }

Target:
protected void createVirtIODisk ( ) { super . createVirtIODisk ( ) ; vmDevice.setPlugged ( true ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGeoRepSessionCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( null , null ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGeoRepSessionCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( null , null ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected void init ( ) { super . init ( ) ; getPlugged ( ) . setIsChangeable ( false ) ; }

Target:
protected void init ( ) { super . init ( ) ; getPlugged ( ) . setIsChangeable ( false ) ; getNetworkFilterParameterListModel ( ) . setIsAvailable ( false ) ; }
Source:
public void testGetRelevantQuotasNonExistingVdsGroup ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForVdsGroup ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , 0 ) ; }

Target:
public void testGetRelevantQuotasNonExistingCluster ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForCluster ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , 0 ) ; }
Source:
private void validateAndAssertNetworkModified ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper , org.ovirt.engine.core.common.businessentities.network.Network net ) { validateAndExpectNoViolations ( helper ) ; assertNoBondsModified ( helper ) ; assertNetworkModified ( helper , net ) ; assertNoNetworksRemoved ( helper ) ; assertNoBondsRemoved ( helper ) ; }

Target:
private void validateAndAssertNetworkModified ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper , org.ovirt.engine.core.common.businessentities.network.Network net ) { validateAndExpectNoViolations ( helper ) ; assertNoBondsModified ( helper ) ; assertNetworkModified ( helper , net ) ; assertNoNetworksRemoved ( helper ) ; assertNoBondsRemoved ( helper ) ; assertNoInterfacesModified ( helper ) ; }
Source:
public void setDbEngineDialect ( org.ovirt.engine.core.dal.dbbroker.DbEngineDialect dbEngineDialect ) { this . dbEngineDialect = dbEngineDialect ; callsHandler.setDbEngineDialect ( dbEngineDialect ) ; }

Target:
public org.ovirt.engine.core.dao.UserProfileDAO getUserProfileDao ( ) { return getDao ( org.ovirt.engine.core.dao.UserProfileDAO.class ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.LUNs createLunWithDiscardFunctionality ( java.lang.Long discardMaxSize , java.lang.Boolean discardZeroesData ) { org.ovirt.engine.core.common.businessentities.storage.LUNs lun = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; lun.setDiscardMaxSize ( discardMaxSize ) ; lun.setDiscardZeroesData ( discardZeroesData ) ; return lun ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.LUNs createLunWithDiscardSupport ( java.lang.Long discardMaxSize ) { org.ovirt.engine.core.common.businessentities.storage.LUNs lun = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; lun.setDiscardMaxSize ( discardMaxSize ) ; return lun ; }
Source:
public static java.lang.String map ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , java.lang.String template ) { switch ( volumeFormat ) { case COW : return DiskFormat.COW.value ( ) ; case RAW : return DiskFormat.RAW.value ( ) ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.DiskFormat map ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.api.model.DiskFormat template ) { switch ( volumeFormat ) { case COW : return org.ovirt.engine.api.model.DiskFormat.COW ; case RAW : return org.ovirt.engine.api.model.DiskFormat.RAW ; default : return null ; } }
Source:
private boolean isSameSourceAndDest ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters ) { org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain = getImageSourceDomain ( parameters.getImageId ( ) ) ; if ( sourceDomain.getId ( ) . equals ( parameters.getStorageDomainId ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_SOURCE_AND_TARGET_SAME ) ; } return true ; }

Target:
private boolean isSameSourceAndDest ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters ) { if ( parameters.getSourceStorageDomainId ( ) . equals ( parameters.getTargetStorageDomainId ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_SOURCE_AND_TARGET_SAME ) ; } return true ; }
Source:
protected void entityChanging ( org.ovirt.engine.core.common.businessentities.VDSGroup newValue , org.ovirt.engine.core.common.businessentities.VDSGroup oldValue ) { getNewNetworkCommand ( ) . setIsExecutionAllowed ( ( ! ( isClusterDetached ( newValue ) ) ) ) ; getManageCommand ( ) . setIsExecutionAllowed ( ( ! ( isClusterDetached ( newValue ) ) ) ) ; }

Target:
protected void entityChanging ( org.ovirt.engine.core.common.businessentities.Cluster newValue , org.ovirt.engine.core.common.businessentities.Cluster oldValue ) { getNewNetworkCommand ( ) . setIsExecutionAllowed ( ( ! ( isClusterDetached ( newValue ) ) ) ) ; getManageCommand ( ) . setIsExecutionAllowed ( ( ! ( isClusterDetached ( newValue ) ) ) ) ; }
Source:
public void setRequired ( boolean required ) { getEntity ( ) . getCluster ( ) . setRequired ( required ) ; }

Target:
public void setVmNetwork ( boolean vmNetwork ) { getEntity ( ) . setVmNetwork ( vmNetwork ) ; }
Source:
protected boolean canDoAction ( ) { boolean ret = super . canDoAction ( ) ; if ( ! ret ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__SHUTDOWN ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM ) ; } return ret ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__SHUTDOWN ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VdsGroupDAOTest.NUMBER_OF_GROUPS , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAll ( ) ; assertCorrectGetAllResult ( result ) ; }
Source:
private org.ovirt.engine.core.utils.timer.SchedulerUtil getScheduler ( ) { return org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.utils.timer.SchedulerUtil getScheduler ( ) { return schedulerUtil ; }
Source:
public void testGetFilteredWithNoPermissionsAndNoFilter ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.get ( existingVdsGroup.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertCorrectVDSGroup ( result ) ; }

Target:
public void testGetFilteredWithNoPermissionsAndNoFilter ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.get ( existingCluster.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertCorrectCluster ( result ) ; }
Source:
private void checkNetworks ( java.util.Set < org.ovirt.engine.core.compat.Guid > networks , int numOfNetworks ) { org.junit.Assert.assertEquals ( "num of networks" , numOfNetworks , getListSize ( networks ) ) ; }

Target:
private void checkNetworks ( java.util.Set < org.ovirt.engine.core.compat.Guid > networks , int numOfNetworks ) { org.junit.jupiter.api.Assertions.assertEquals ( numOfNetworks , getListSize ( networks ) , "num of networks" ) ; }