auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void alertPowerManagementStatusFailed ( java.lang.String reason ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; alert.setVdsId ( org.ovirt.engine.core.vdsbroker.vdsbroker.FenceVdsVDSCommand.getParameters ( ) . getTargetVdsID ( ) ) ; alert.addCustomValue ( "Reason" , reason ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.Alert ( alert , AuditLogType.VDS_ALERT_FENCE_TEST_FAILED ) ; }

Target:
protected void alertPowerManagementStatusFailed ( java.lang.String reason ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; alert.setVdsId ( org.ovirt.engine.core.vdsbroker.vdsbroker.FenceVdsVDSCommand.getParameters ( ) . getTargetVdsID ( ) ) ; alert.addCustomValue ( "Reason" , reason ) ; auditLogDirector.log ( alert , AuditLogType.VDS_ALERT_FENCE_TEST_FAILED ) ; }
Source:
private boolean validateDestStorageAndSourceStorageOfSameTypes ( org.ovirt.engine.core.common.businessentities.StorageDomain destDomain , org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain ) { if ( ( destDomain.getStorageType ( ) . getStorageSubtype ( ) ) != ( sourceDomain.getStorageType ( ) . getStorageSubtype ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_DESTINATION_AND_SOURCE_STORAGE_SUB_TYPES_DIFFERENT ) ; } return true ; }

Target:
private boolean validateDestStorageAndSourceStorageOfSameTypes ( org.ovirt.engine.core.common.businessentities.StorageDomain destDomain , org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain ) { if ( ( destDomain.getStorageType ( ) . getStorageSubtype ( ) ) != ( sourceDomain.getStorageType ( ) . getStorageSubtype ( ) ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_DESTINATION_AND_SOURCE_STORAGE_SUB_TYPES_DIFFERENT ) ; } return true ; }
Source:
public void showStatus ( java.lang.String status ) { setTitle ( status ) ; }

Target:
public void showStatus ( java.lang.String status ) { if ( refreshManager.getModelTimer ( ) . isActive ( ) ) { setTitle ( status ) ; } }
Source:
private boolean shouldReturnValue ( ) { return ( ! ( org.ovirt.engine.core.bll.GetConfigurationValueQuery.getParameters ( ) . isFiltered ( ) ) ) || ( ! ( org.ovirt.engine.core.bll.GetConfigurationValueQuery.getParameters ( ) . getConfigValue ( ) . isAdmin ( ) ) ) ; }

Target:
private boolean shouldReturnValue ( ) { return ( ! ( org.ovirt.engine.core.bll.GetConfigurationValueQuery.getParameters ( ) . isFiltered ( ) ) ) || ( org.ovirt.engine.core.bll.GetConfigurationValueQuery.getParameters ( ) . getConfigValue ( ) . nonAdminVisible ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.aaa.SSHPublicKeyResource getSSHPublicKeyResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.aaa.BackendSSHPublicKeyResource ( id , userId , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.aaa.SshPublicKeyResource getKeyResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.aaa.BackendSSHPublicKeyResource ( id , userId , this ) ) ; }
Source:
public void setvmt_name ( java.lang.String value ) { this . vmt_nameField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vmt_name" ) ) ; }

Target:
public void setVmtNumOfSockets ( int value ) { this . vmtNumOfSockets = value ; }
Source:
protected void ChangeDefualtHost ( ) { super . ChangeDefualtHost ( ) ; doChangeDefautlHost ( pool.getdedicated_vm_for_vds ( ) ) ; }

Target:
protected void ChangeDefualtHost ( ) { super . ChangeDefualtHost ( ) ; doChangeDefautlHost ( pool.getDedicatedVmForVds ( ) ) ; }
Source:
public boolean isCloudInitUsed ( ) { return ( ( getInitializationType ( ) ) == ( InitializationType.CloudInit ) ) && ( ! ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . isWindows ( getVmOsId ( ) ) ) ) ; }

Target:
public boolean isCloudInitUsed ( ) { return ( ( getInitializationType ( ) ) == ( InitializationType.CloudInit ) ) && ( ! ( org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . isWindows ( getVmOsId ( ) ) ) ) ; }
Source:
public void validVnicProfileWhenUnlinkingNotSupported ( ) throws java.lang.Exception { vnicProfileTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , false , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.VNIC_PROFILE_ID ) ; }

Target:
public void setup ( ) { org.mockito.Mockito.when ( version.getValue ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ) ; org.mockito.Mockito.doReturn ( dbFacade ) . when ( validator ) . getDbFacade ( ) ; }
Source:
void Execute ( int iterationId ) ;

Target:
void execute ( int iterationId ) ;
Source:
public static org.ovirt.engine.api.model.ScsiGenericIO map ( org.ovirt.engine.api.model.ScsiGenericIO scsiGenericIO , org.ovirt.engine.api.model.ScsiGenericIO template ) { switch ( scsiGenericIO ) { case FILTERED : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ScsiGenericIO ; case UNFILTERED : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ScsiGenericIO ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.ScsiGenericIO map ( org.ovirt.engine.api.model.ScsiGenericIO scsiGenericIO , org.ovirt.engine.api.model.ScsiGenericIO template ) { switch ( scsiGenericIO ) { case FILTERED : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.ScsiGenericIO ; case UNFILTERED : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.ScsiGenericIO ; default : return null ; } }
Source:
public void setHash ( java.lang.String hash ) { this . hash = hash ; }

Target:
public void initialize ( java.util.List < org.ovirt.engine.core.common.businessentities.Disk > currentDisks ) { commonInitialize ( ) ; updateBootableFrom ( ( currentDisks != null ? currentDisks : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.RemoveNetworkAttachmentParameters params = new org.ovirt.engine.core.common.action.RemoveNetworkAttachmentParameters ( parent.getHostId ( ) , guid ) ; return performAction ( VdcActionType.RemoveNetworkAttachment , params ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.RemoveNetworkAttachmentParameters params = new org.ovirt.engine.core.common.action.RemoveNetworkAttachmentParameters ( parent.getHostId ( ) , guid ) ; return performAction ( ActionType.RemoveNetworkAttachment , params ) ; }
Source:
public void setApplyCpuLater ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > applyCpuLater ) { this . applyCpuLater = applyCpuLater ; }

Target:
public void setApplyLater ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > applyLater ) { this . applyLater = applyLater ; }
Source:
protected void attachStorageDomainToDataCenter ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.bll.storage.CINDERStorageHelper CINDERStorageHelper = new org.ovirt.engine.core.bll.storage.CINDERStorageHelper ( false ) ; CINDERStorageHelper.attachCinderDomainToPool ( storageDomainId , storagePoolId ) ; CINDERStorageHelper.activateCinderDomain ( storageDomainId , storagePoolId ) ; }

Target:
protected void attachStorageDomainToDataCenter ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.bll.storage.CINDERStorageHelper CINDERStorageHelper = new org.ovirt.engine.core.bll.storage.CINDERStorageHelper ( ) ; CINDERStorageHelper.setRunInNewTransaction ( false ) ; CINDERStorageHelper.attachCinderDomainToPool ( storageDomainId , storagePoolId ) ; CINDERStorageHelper.activateCinderDomain ( storageDomainId , storagePoolId ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; networks.flush ( ) . setMigrationNetwork ( clusterNetworkManageModel , value ) ; refreshNetworksTable ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; networks.asEditor ( ) . flush ( ) . setMigrationNetwork ( clusterNetworkManageModel , value ) ; refreshNetworksTable ( ) ; }
Source:
public static java.lang.Integer getMinMemorySizeInMb ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.VMMinMemorySizeInMB ) ; }

Target:
public static java.lang.Integer getMinMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getMinimumRam ( osId , version ) ; }
Source:
protected void handleError ( ) { addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__RESTART ) ; log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__RESTART ) ; log.error ( "Failed to run RestartVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Tags > getAllForVm ( java.lang.String ids ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_ids" , ids ) ; return getCallsHandler ( ) . executeReadList ( "GetTagsByVmId" , org.ovirt.engine.core.dao.TagDAODbFacadeImpl.TagRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Tags > getAllForTemplate ( java.lang.String ids ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_ids" , ids ) ; return getCallsHandler ( ) . executeReadList ( "GetTagsByVmId" , org.ovirt.engine.core.dao.TagDAODbFacadeImpl.TagRowMapper.instance , parameterSource ) ; }
Source:
public void info ( java.lang.Object arg0 , java.lang.Throwable arg1 ) { log.info ( addPrefixToLogMessage ( arg0 ) , arg1 ) ; }

Target:
public void trace ( java.lang.Object msg ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( msg ) ) ; } }
Source:
public org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel flush ( ) { neutronAgentWidget.flush ( ) ; vmwarePropertiesWidget.flush ( ) ; kvmPropertiesWidget.flush ( ) ; return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel flush ( ) { neutronAgentWidget.flush ( ) ; vmwarePropertiesWidget.flush ( ) ; kvmPropertiesWidget.flush ( ) ; xenPropertiesWidget.flush ( ) ; return driver.flush ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
private void saveTaskAndPutInMap ( java.lang.String taskKey , org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.saveAsyncTaskToDb ( task ) ; taskKeyToTaskIdMap.put ( taskKey , task.getTaskId ( ) ) ; }

Target:
private void saveTaskAndPutInMap ( java.lang.String taskKey , org.ovirt.engine.core.common.businessentities.AsyncTask task ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.saveAsyncTaskToDb ( task ) ; taskKeyToTaskIdMap.put ( taskKey , task.getTaskId ( ) ) ; }
Source:
void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool , boolean isNewSpm ) ;

Target:
void addExternallyManagedVms ( java.util.List < org.ovirt.engine.core.common.businessentities.VmStatic > externalVmList ) ;
Source:
public void testCDANonExistingVds ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vdsDaoMock ) . get ( vdsId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail for non existing VDS" , command , VdcBllMessages.VDS_NOT_EXIST ) ; }

Target:
public void testCDANonExistingVds ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vdsDaoMock ) . get ( vdsId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail for non existing VDS" , command , EngineMessage.VDS_NOT_EXIST ) ; }
Source:
public void testGetAllForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > result = dao.getAllForStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > result = dao.getAllForStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > filterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.DataCenterStatusPredicate ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.NotOperational ) . negate ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > filterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.StatusPredicate < > ( StoragePoolStatus.NotOperational ) . negate ( ) ) ; }
Source:
public void allVfsAreFree ( ) { allVfsAreFreeTest ( true ) ; org.junit.Assert.assertThat ( validator.allVfsAreFree ( networkDeviceHelper ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void allVfsAreFree ( ) { allVfsAreFreeTest ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.allVfsAreFree ( networkDeviceHelper ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void warn ( java.lang.Object arg0 ) { log.warn ( addPrefixToLogMessage ( arg0 ) ) ; }

Target:
public void trace ( java.lang.Object msg , java.lang.Throwable t ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( msg ) , t ) ; } }
Source:
public java.lang.String getDocumentationLibURL ( ) { return ( ( getDocumentationBaseURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.DOCUMENTATION_LIB_PATH ) ; }

Target:
public java.lang.String getCshMappingUrl ( java.lang.String application ) { return ( ( ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.CSH_ROOT ) ) + "/" ) + application ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.JSON ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VdsNetworkInterface lookupInterfaceByName ( java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface : getCollection ( ) ) { if ( iface.getName ( ) . equals ( name ) ) { return iface ; } } return null ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface lookupInterfaceById ( java.lang.String id ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface : getCollection ( ) ) { if ( iface.getId ( ) . toString ( ) . equals ( id ) ) { return iface ; } } return null ; }
Source:
public void setCtrlAltDeleteRemapHotkey ( java.lang.String hotkey ) { remapCtrlAltDeleteSpice.setLabel ( messages.remapCtrlAltDelete ( hotkey ) ) ; remapCtrlAltDeleteVnc.setLabel ( messages.remapCtrlAltDelete ( hotkey ) ) ; }

Target:
public void setNoVncEnabled ( boolean enabled , java.lang.String reason ) { noVncImplRadioButton.setEnabled ( enabled ) ; noVncImplRadioButtonTooltip.setText ( ( enabled ? "" : reason ) ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.disk.cinder.CinderBroker getCinderBroker ( ) { return getCommand ( ) . getCinderBroker ( ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand < org.ovirt.engine.core.common.action.UpdateVmDiskParameters > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; }
Source:
public void testGetAllForStoragePoolFilteredWithPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAllForStoragePool ( storagePool.getId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetAllForStoragePoolValidResult ( result ) ; }

Target:
public void testGetAllForStoragePoolFilteredWithPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getAllForStoragePool ( storagePool.getId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetAllForStoragePoolValidResult ( result ) ; }
Source:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model : getAllImportedNetworks ( ) ) { model.setPublicUse ( value ) ; } refreshImportedNetworks ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model , java.lang.Boolean value ) { model.setPublicUse ( value ) ; refreshImportedNetworks ( ) ; }
Source:
public void testHyperVLinux ( ) { org.junit.Assert.assertFalse ( OsRepositoryImpl.INSTANCE.isHypervEnabled ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel7" ) , Version.v3_6 ) ) ; }

Target:
public void testHyperVLinux ( ) { org.junit.jupiter.api.Assertions.assertFalse ( OsRepositoryImpl.INSTANCE.isHypervEnabled ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel7" ) , Version.v3_6 ) ) ; }
Source:
public void cleanup ( ) { redirectUri = null ; authStack = null ; }

Target:
public void cleanup ( ) { redirectUri = null ; authStack = null ; state = null ; }
Source:
public void vmId ( ) { b.setVmId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , i ) ; }

Target:
public void vmId ( ) { b.setVmId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , i ) ; }
Source:
private org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryResult parseDiscoverResults ( java.lang.Object result ) { org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryResult retValue = new org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryResult ( ) ; if ( ! ( retValue.populate ( result ) ) ) { return null ; } return retValue ; }

Target:
private java.util.Optional < org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryResult > parseDiscoverResults ( java.lang.Object result ) { org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryResult retValue = new org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryResult ( ) ; if ( ! ( retValue.populate ( result ) ) ) { return java.util.Optional.empty ( ) ; } return java.util.Optional.of ( retValue ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . getUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getVdsGroupId ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.utils.ClusterUtils getClusterUtils ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) ; }
Source:
public int getMemCommited ( ) { return this . memCommited.get ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData > > getLastVmsList ( ) { return lastVmsList ; }
Source:
public static boolean IsMatch ( java.lang.String candidate , java.lang.String regEx ) { return new org.ovirt.engine.core.compat.Regex ( regEx ) . IsMatch ( candidate ) ; }

Target:
public static boolean isMatch ( java.lang.String candidate , java.lang.String regEx ) { return new org.ovirt.engine.core.compat.Regex ( regEx ) . isMatch ( candidate ) ; }
Source:
public void setUp ( ) { setUpUnitVmModelExpectations ( model ) ; origVm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; setUpOrigVm ( origVm ) ; origVm.setDedicatedVmForVds ( org.ovirt.engine.ui.uicommonweb.models.vms.HOST_ID_2 ) ; origVm.setMigrationSupport ( org.ovirt.engine.ui.uicommonweb.models.vms.MIGRATION_SUPPORT_2 ) ; origVm.setMigrationDowntime ( org.ovirt.engine.ui.uicommonweb.models.vms.MIGRATION_DOWNTIME_2 ) ; }

Target:
public void setUp ( ) { setUpUnitVmModelExpectations ( model ) ; origVm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; setUpOrigVm ( origVm ) ; origVm.setDedicatedVmForVdsList ( org.ovirt.engine.ui.uicommonweb.models.vms.HOST_ID_2 ) ; origVm.setMigrationSupport ( org.ovirt.engine.ui.uicommonweb.models.vms.MIGRATION_SUPPORT_2 ) ; origVm.setMigrationDowntime ( org.ovirt.engine.ui.uicommonweb.models.vms.MIGRATION_DOWNTIME_2 ) ; }
Source:
public void formatStringTest ( ) { testMessages.addFallback ( DynamicMessageKey.VERSION_ABOUT , "This is version about: {0}" ) ; 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 formatStringTest ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; 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:
public void setVnicProfileId ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { this . vnicProfileId = vnicProfileId ; }

Target:
public void setTargetProfileId ( org.ovirt.engine.core.compat.Guid id ) { targetProfileId = id ; }
Source:
public void setupMocks ( ) { setUpCommand ( ) ; mockVds ( ) ; mockDbDao ( ) ; command.init ( ) ; }

Target:
public void setupMocks ( ) { setUpCommand ( ) ; mockGetStorageDomainList ( ) ; mockDbDao ( ) ; command.init ( ) ; }
Source:
public static org.ovirt.engine.core.compat.Version getEffective ( org.ovirt.engine.core.compat.Version vmCustomCompatibilityVersion , org.ovirt.engine.core.compat.Version vdsGroupCompatibilityVersion , org.ovirt.engine.core.compat.Version defaultVersion ) { if ( vmCustomCompatibilityVersion != null ) { return vmCustomCompatibilityVersion ; } if ( vdsGroupCompatibilityVersion != null ) { return vdsGroupCompatibilityVersion ; } return defaultVersion ; }

Target:
public static org.ovirt.engine.core.compat.Version getEffective ( org.ovirt.engine.core.compat.Version vmCustomCompatibilityVersion , org.ovirt.engine.core.compat.Version clusterCompatibilityVersion , org.ovirt.engine.core.compat.Version defaultVersion ) { if ( vmCustomCompatibilityVersion != null ) { return vmCustomCompatibilityVersion ; } if ( clusterCompatibilityVersion != null ) { return clusterCompatibilityVersion ; } return defaultVersion ; }
Source:
protected org.ovirt.engine.core.dao.StorageServerConnectionDAO setUpStorageServerConnectionDAO ( ) { org.ovirt.engine.core.dao.StorageServerConnectionDAO dao = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.StorageServerConnectionDAO.class ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getStorageServerConnectionDao ( ) ) . thenReturn ( dao ) ; return dao ; }

Target:
protected org.ovirt.engine.core.dao.StorageServerConnectionDAO setUpStorageServerConnectionDAO ( ) { storageServerConnectionDAO = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.StorageServerConnectionDAO.class ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getStorageServerConnectionDao ( ) ) . thenReturn ( storageServerConnectionDAO ) ; return storageServerConnectionDAO ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__HOT_SET_MEMORY ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM ) ; addCanDoActionMessageVariable ( "clusterVersion" , org.ovirt.engine.core.bll.HotSetAmountOfMemoryCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ; addCanDoActionMessageVariable ( "architecture" , org.ovirt.engine.core.bll.HotSetAmountOfMemoryCommand.getVm ( ) . getClusterArch ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__HOT_SET_MEMORY ) ; addValidationMessage ( EngineMessage.VAR__TYPE__VM ) ; addValidationMessageVariable ( "clusterVersion" , org.ovirt.engine.core.bll.HotSetAmountOfMemoryCommand.getVm ( ) . getCompatibilityVersion ( ) ) ; addValidationMessageVariable ( "architecture" , org.ovirt.engine.core.bll.HotSetAmountOfMemoryCommand.getVm ( ) . getClusterArch ( ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { java.lang.String volumeName = org.ovirt.engine.core.vdsbroker.gluster.DeleteAllGlusterVolumeSnapshotsVDSCommand.getParameters ( ) . getVolumeName ( ) ; status = org.ovirt.engine.core.vdsbroker.gluster.DeleteAllGlusterVolumeSnapshotsVDSCommand.getBroker ( ) . glusterVolumeSnapshotDelete ( volumeName ) ; org.ovirt.engine.core.vdsbroker.gluster.DeleteAllGlusterVolumeSnapshotsVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { java.lang.String volumeName = org.ovirt.engine.core.vdsbroker.gluster.DeleteAllGlusterVolumeSnapshotsVDSCommand.getParameters ( ) . getVolumeName ( ) ; status = org.ovirt.engine.core.vdsbroker.gluster.DeleteAllGlusterVolumeSnapshotsVDSCommand.getBroker ( ) . glusterVolumeSnapshotDeleteAll ( volumeName ) ; org.ovirt.engine.core.vdsbroker.gluster.DeleteAllGlusterVolumeSnapshotsVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getWatchdogs ( ) { return getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getParameters ( ) . getId ( ) , VmDeviceType.WATCHDOG.getName ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getWatchdogs ( ) { return getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getParameters ( ) . getId ( ) , VmDeviceGeneralType.WATCHDOG ) ; }
Source:
protected void mockFenceAgent ( ) { fenceAgents = createSingleAgentList ( 1 ) ; org.mockito.Mockito.doReturn ( fenceAgents ) . when ( fencedHost ) . getFenceAgents ( ) ; }

Target:
protected void mockFenceAgent ( ) { fenceAgents = createSingleAgentList ( 1 ) ; org.mockito.Mockito.when ( fenceAgentDao.getFenceAgentsForHost ( fencedHost.getId ( ) ) ) . thenReturn ( fenceAgents ) ; }
Source:
public void enableCifs ( ) { accessProtocols.add ( AccessProtocol.CIFS ) ; }

Target:
public void enableCifs ( ) { accessProtocols.add ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_CIFS_DISABLE , GlusterConstants.OFF ) ; }
Source:
private void mockVdsGroupDAOReturnVdsGroup ( ) { org.mockito.Mockito.when ( vdsGroupDao.get ( org.mockito.Matchers.< org.ovirt.engine.core.compat.Guid > any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( createVdsGroup ( ) ) ; }

Target:
private void mockVdsGroupDaoReturnVdsGroup ( ) { org.mockito.Mockito.when ( vdsGroupDao.get ( org.mockito.Matchers.< org.ovirt.engine.core.compat.Guid > any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( createVdsGroup ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; InitSpmPriorities1 ( ) ; }

Target:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { Test ( ) ; }
Source:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { getAsyncTaskManager ( ) . startPollingTask ( taskID ) ; } }

Target:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getAsyncTaskType ( ) { if ( ( getTaskType ( ) ) == ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType.notSupported ) ) { throw new java.lang.UnsupportedOperationException ( ) ; } return getTaskType ( ) ; }
Source:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long timeout ) { return _doConnect ( server , "root" , rootPassword , null , null , timeout ) ; }

Target:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long hardTimeout , long softTimeout ) { return _doConnect ( server , "root" , rootPassword , null , null , hardTimeout , softTimeout ) ; }
Source:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid taskId , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . logAndFailTaskOfCommandWithEmptyVdsmId ( taskId , message ) ; }

Target:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid taskId , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . logAndFailTaskOfCommandWithEmptyVdsmId ( taskId , message ) ; }
Source:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false , null , false ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getSmartcardDeviceSpecParams ( ) , true , false ) ; }
Source:
private void UpdateCanSpecify ( ) { getAddress ( ) . setIsChangable ( getIsStaticAddress ( ) ) ; getSubnet ( ) . setIsChangable ( getIsStaticAddress ( ) ) ; getGateway ( ) . setIsChangable ( getIsStaticAddress ( ) ) ; }

Target:
private void UpdateCanSpecify ( ) { boolean isChangable = ( bootProtocolsAvailable ) && ( getIsStaticAddress ( ) ) ; getAddress ( ) . setIsChangable ( isChangable ) ; getSubnet ( ) . setIsChangable ( isChangable ) ; getGateway ( ) . setIsChangable ( isChangable ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME_SNAPSHOT ) ; addCanDoActionMessageVariable ( "volumeName" , org.ovirt.engine.core.bll.gluster.GlusterSnapshotCommandBase.getGlusterVolumeName ( ) ) ; addCanDoActionMessageVariable ( "vdsGroup" , org.ovirt.engine.core.bll.gluster.GlusterSnapshotCommandBase.getVdsGroupName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_VOLUME_SNAPSHOT ) ; addCanDoActionMessageVariable ( "volumeName" , org.ovirt.engine.core.bll.gluster.GlusterSnapshotCommandBase.getGlusterVolumeName ( ) ) ; addCanDoActionMessageVariable ( "vdsGroup" , org.ovirt.engine.core.bll.gluster.GlusterSnapshotCommandBase.getVdsGroupName ( ) ) ; }
Source:
public boolean IsOvfTemplate ( java.lang.String ovfstring ) throws org.ovirt.engine.core.utils.ovf.OvfReaderException { return new org.ovirt.engine.core.utils.ovf.OvfParser ( ovfstring ) . IsTemplate ( ) ; }

Target:
public boolean IsOvfTemplate ( java.lang.String ovfstring ) throws org.ovirt.engine.core.utils.ovf.OvfReaderException { return new org.ovirt.engine.core.utils.ovf.OvfParser ( ovfstring ) . isTemplate ( ) ; }
Source:
private void writeJaxbClass ( javax.xml.stream.XMLStreamWriter writer , java.lang.String value ) throws javax.xml.stream.XMLStreamException { writeJaxbCustomization ( writer , "class" , "name" , value ) ; }

Target:
private void writeJaxbClass ( org.ovirt.api.metamodel.tool.XmlWriter writer , java.lang.String value ) { writeJaxbCustomization ( writer , "class" , "name" , value ) ; }
Source:
public void setSearchPanel ( com.google.gwt.user.client.ui.IsWidget searchPanel ) { searchFormGroup.clear ( ) ; if ( searchPanel != null ) { searchFormGroup.add ( searchPanel ) ; } }

Target:
public void setSearchPanel ( com.google.gwt.user.client.ui.IsWidget searchPanel ) { searchFormGroup.clear ( ) ; if ( searchPanel != null ) { searchFormGroup.add ( searchPanel ) ; actionFormGroup.removeStyleName ( Styles.ROW ) ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllVmPoolsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDAO ( ) . getAll ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllVmPoolsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . getAll ( ) ) ; }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.DiskImage disk , java.lang.String value ) { importModel.getDiskImportData ( disk.getId ( ) ) . setSelectedQuotaString ( value ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.storage.DiskImage disk , java.lang.String value ) { importModel.getDiskImportData ( disk.getId ( ) ) . setSelectedQuotaString ( value ) ; }
Source:
public int getNumOfCpus ( boolean countThreadsAsCPU ) { return countThreadsAsCPU ? this . getNumOfCpus ( ) : ( getNumOfSockets ( ) ) * ( getCpuPerSocket ( ) ) ; }

Target:
public boolean isSuspended ( ) { return getStatus ( ) . isSuspended ( ) ; }
Source:
protected boolean areUpdatedFieldsLegal ( ) { return VmHandler.mUpdateVmsStatic.IsUpdateValid ( org.ovirt.engine.core.bll.UpdateVmCommand.getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.UpdateVmCommand.getVm ( ) . getStatus ( ) ) ; }

Target:
protected boolean areUpdatedFieldsLegal ( ) { return org.ovirt.engine.core.bll.VmHandler.isUpdateValid ( org.ovirt.engine.core.bll.UpdateVmCommand.getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.UpdateVmCommand.getVm ( ) . getStatus ( ) ) ; }
Source:
private boolean isStatelessSnapshotExistsForVm ( ) { return getSnapshotDao ( ) . exists ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.STATELESS ) ; }

Target:
protected boolean isStatelessSnapshotExistsForVm ( ) { if ( ( cachedStatelessSnapshotExistsForVm ) == null ) { cachedStatelessSnapshotExistsForVm = getSnapshotDao ( ) . exists ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.STATELESS ) ; } return cachedStatelessSnapshotExistsForVm ; }
Source:
protected org.ovirt.engine.api.model.ReportedDevice addParents ( org.ovirt.engine.api.model.ReportedDevice model ) { model.setVm ( new org.ovirt.engine.api.model.VM ( ) ) ; model.getVm ( ) . setId ( vmId.toString ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.ReportedDevice addParents ( org.ovirt.engine.api.model.ReportedDevice model ) { model.setVm ( new org.ovirt.engine.api.model.Vm ( ) ) ; model.getVm ( ) . setId ( vmId.toString ( ) ) ; return model ; }
Source:
public void setItems ( org.ovirt.engine.core.compat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > value ) { super . setItems ( value ) ; }

Target:
public void setItems ( org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > value ) { super . setItems ( value ) ; }
Source:
public final java.lang.String consoleClientResources ( ) { return getString ( org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey.CONSOLE_CLIENT_RESOURCES ) ; }

Target:
public final java.lang.String consoleClientResources ( ) { return getString ( org.ovirt.engine.ui.common.utils.BaseDynamicMessages.DynamicMessageKey.CONSOLE_CLIENT_RESOURCES ) ; }
Source:
private static javax.xml.datatype.DatatypeFactory getDatatypeFactory ( ) { if ( ( org.ovirt.engine.api.restapi.types.DateMapper.datatypeFactory ) == null ) { try { org.ovirt.engine.api.restapi.types.DateMapper.datatypeFactory = javax.xml.datatype.DatatypeFactory.newInstance ( ) ; } catch ( javax.xml.datatype.DatatypeConfigurationException dce ) { org.ovirt.engine.api.restapi.types.DateMapper.LOG.warn ( org.ovirt.engine.api.restapi.types.DateMapper.DATATYPE_FACTORY_CREATION_FAILED , dce ) ; } } return org.ovirt.engine.api.restapi.types.DateMapper.datatypeFactory ; }

Target:
private static javax.xml.datatype.DatatypeFactory getDatatypeFactory ( ) { if ( ( org.ovirt.engine.api.restapi.types.DateMapper.datatypeFactory ) == null ) { try { org.ovirt.engine.api.restapi.types.DateMapper.datatypeFactory = javax.xml.datatype.DatatypeFactory.newInstance ( ) ; } catch ( javax.xml.datatype.DatatypeConfigurationException dce ) { org.ovirt.engine.api.restapi.types.DateMapper.log.warn ( org.ovirt.engine.api.restapi.types.DateMapper.DATATYPE_FACTORY_CREATION_FAILED , dce ) ; } } return org.ovirt.engine.api.restapi.types.DateMapper.datatypeFactory ; }
Source:
protected boolean prepareFailureMessageForDisks ( java.lang.String diskNames ) { org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.addCanDoActionMessage ( java.lang.String.format ( "$diskNames %1$s" , diskNames ) ) ; return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL__DISKS ) ; }

Target:
protected boolean prepareFailureMessageForDisks ( java.lang.String diskNames ) { org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.addCanDoActionMessage ( java.lang.String.format ( "$diskNames %1$s" , diskNames ) ) ; return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_DISKS ) ; }
Source:
public void setHeader ( com.google.gwt.user.client.ui.Widget widget ) { headerTitlePanel.insert ( widget , 0 ) ; }

Target:
public void setHeader ( com.google.gwt.user.client.ui.Widget widget ) { widget.addStyleName ( style.obrand_dialogHeaderTitleElement ( ) ) ; headerTitlePanel.insert ( widget , 0 ) ; }
Source:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.VmDiskOperationParameterBase params = new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( guid , vmId ) ) ; return doAction ( VdcActionType.HotPlugDiskToVm , params , action ) ; }

Target:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.VmDiskOperationParameterBase params = new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( guid , vmId ) ) ; return doAction ( ActionType.HotPlugDiskToVm , params , action ) ; }
Source:
protected abstract void updateHosts ( ) ;

Target:
protected abstract boolean showTransportProperties ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
private void processVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmCommand.getVds ( ) . getId ( ) ) ; } }

Target:
protected void failedToMigrate ( ) { try { determineMigrationFailureForAuditLog ( ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmCommand.log ( ) ; failedToRunVm ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.DisplayType getDisplayType ( ) { return this . vmDynamic.getDisplayType ( ) ; }

Target:
public java.lang.Long getGuestMemoryBuffered ( ) { return vmDynamic.getGuestMemoryBuffered ( ) ; }
Source:
private boolean validate ( org.ovirt.engine.core.bll.ValidationResult validationResult , java.lang.String violatingEntity ) { if ( ! ( validationResult.isValid ( ) ) ) { addViolation ( validationResult.getMessage ( ) , violatingEntity ) ; } return validationResult.isValid ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network existingNetworkRelatedToAttachment ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return clusterNetworks.get ( attachment.getNetworkId ( ) ) ; }
Source:
public void getFilteredWithPermissionsNoPermissionsAndNoFilter ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = dao.get ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_SNAPSHOT_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.junit.Assert.assertNotNull ( snapshot ) ; org.junit.Assert.assertEquals ( existingEntity , snapshot ) ; }

Target:
public void getFilteredWithPermissionsNoPermissionsAndNoFilter ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = dao.get ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_SNAPSHOT_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.junit.jupiter.api.Assertions.assertNotNull ( snapshot ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingEntity , snapshot ) ; }
Source:
public boolean canBeSelected ( ) { org.ovirt.engine.core.common.businessentities.DisplayType vmDisplayType = ( ( getEntity ( ) . getDisplayType ( ) ) != null ) ? getEntity ( ) . getDisplayType ( ) : getEntity ( ) . getDefaultDisplayType ( ) ; return vmDisplayType == ( org.ovirt.engine.core.common.businessentities.DisplayType.vnc ) ; }

Target:
public boolean canBeSelected ( ) { org.ovirt.engine.core.common.businessentities.DisplayType vmDisplayType = ( ( getEntity ( ) . getDisplayType ( ) ) != null ) ? getEntity ( ) . getDisplayType ( ) : getEntity ( ) . getDefaultDisplayType ( ) ; return vmDisplayType == ( org.ovirt.engine.core.common.businessentities.DisplayType.vga ) ; }
Source:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( getEntity ( ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getPauseSessionCommand ( ) { return pauseSessionCommand ; }
Source:
public static void RunMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleAction ( actionType , parameters , null , null ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null ) ; }
Source:
public void Connect ( ) { org.ovirt.engine.ui.common.uicommon.SpicePluginImpl.logger.warning ( "Connecting via spice..." ) ; if ( configurator.isClientLinuxFirefox ( ) ) { connectNativelyViaXPI ( ) ; } else if ( configurator.isClientWindowsExplorer ( ) ) { connectNativelyViaActiveX ( ) ; } }

Target:
public void connect ( ) { org.ovirt.engine.ui.common.uicommon.SpicePluginImpl.logger.warning ( "Connecting via spice..." ) ; if ( configurator.isClientLinuxFirefox ( ) ) { connectNativelyViaXPI ( ) ; } else if ( configurator.isClientWindowsExplorer ( ) ) { connectNativelyViaActiveX ( ) ; } }
Source:
public int hashCode ( ) { return map.hashCode ( ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( map ) ; }
Source:
public void setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { this . mVmStatic.setMigrationSupport ( migrationSupport ) ; }

Target:
public void setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { this . vmStatic.setMigrationSupport ( migrationSupport ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage getDiskImageById ( org.ovirt.engine.core.compat.Guid id , java.lang.Iterable < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( diskImages , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate ( id ) ) ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage getDiskImageById ( org.ovirt.engine.core.compat.Guid id , java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( diskImages , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate ( id ) ) ; }
Source:
public void setRoundedElapsedTime ( java.lang.Double value ) { this . mVmStatistics.setRoundedElapsedTime ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "roundedElapsedTime" ) ) ; }

Target:
public int getVmtMemSizeMb ( ) { return this . vmtMemSizeMb ; }