auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.bll.network.host.NicNameNicIdCompleter.NicNameAndNicIdAccessors.FromBond setBond ( org.ovirt.engine.core.common.businessentities.network.Bond bond ) { this . bond = bond ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.NicNameNicIdCompleter.NicNameAndNicIdAccessors.FromCreateOrUpdateBondData setCreateOrUpdateBond ( org.ovirt.engine.core.common.action.CreateOrUpdateBond createOrUpdateBond ) { this . createOrUpdateBond = createOrUpdateBond ; return this ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SpmStopOnIrs , new org.ovirt.engine.core.common.vdscommands.IrsBaseVDSCommandParameters ( getStoragePool ( ) . getId ( ) ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SpmStopOnIrs , new org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommandParameters ( getStoragePool ( ) . getId ( ) ) ) ; return null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult allVfsAreFree ( org.ovirt.engine.core.bll.network.host.HostNicVfsConfigHelper hostNicVfsConfigHelper ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED , getNicNameReplacement ( ) ) . unless ( hostNicVfsConfigHelper.areAllVfsFree ( getNic ( ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult allVfsAreFree ( org.ovirt.engine.core.bll.network.host.NetworkDeviceHelper networkDeviceHelper ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED , getNicNameReplacement ( ) ) . unless ( networkDeviceHelper.areAllVfsFree ( getNic ( ) ) ) ; }
Source:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.Configurator.getRootURL ( ) ) + ( getDocumentationBasePath ( ) ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ; }

Target:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.Configurator.getRootURL ( ) ) + ( getDocumentationBasePath ( ) ) ) + "/" ; }
Source:
private void mockMaxPciSlots ( ) { org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.AddDiskToVmCommandTest.MAX_PCI_SLOTS ) . when ( osRepository ) . getMaxPciDevices ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Version.class ) ) ; }

Target:
private void mockMaxPciSlots ( ) { org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.AddDiskCommandTest.MAX_PCI_SLOTS ) . when ( osRepository ) . getMaxPciDevices ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Version.class ) ) ; }
Source:
public void setksm_state ( java.lang.Boolean value ) { this . ksm_state = value ; }

Target:
public void setKsmState ( java.lang.Boolean value ) { this . ksmState = value ; }
Source:
protected void executeCommand ( ) { addStoragePoolToDb ( ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getReturnValue ( ) . setActionReturnValue ( org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . getId ( ) ) ; addDefaultNetworks ( ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { setDataCenterDetails ( ) ; addStoragePoolToDb ( ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getReturnValue ( ) . setActionReturnValue ( org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . getId ( ) ) ; addDefaultNetworks ( ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.setSucceeded ( true ) ; }
Source:
protected boolean isVmTemplateWithSameNameExist ( ) { return org.ovirt.engine.core.bll.VmTemplateCommand.isVmTemlateWithSameNameExist ( getParameters ( ) . getVmTemplate ( ) . getName ( ) ) ; }

Target:
protected boolean isVmTemplateWithSameNameExist ( ) { return ( vmTemplateDao.getByName ( getParameters ( ) . getVmTemplate ( ) . getName ( ) , getParameters ( ) . getStoragePoolId ( ) , null , false ) ) != null ; }
Source:
public void testGetNumberOfImagesInNonExistingDomain ( ) { long numOfImages = dao.getNumberOfImagesInStorageDomain ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( "Number of images on a non existing domain should be 0" , 0 , numOfImages ) ; }

Target:
public void testGetNumberOfImagesInNonExistingDomain ( ) { long numOfImages = dao.getNumberOfImagesInStorageDomain ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , numOfImages , "Number of images on a non existing domain should be 0" ) ; }
Source:
protected boolean prepareFailureMessageForDomainsAndDisks ( java.lang.String domainNames , java.lang.String diskNames ) { org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommand.addCanDoActionMessageVariable ( "domainNames" , domainNames ) ; org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommand.addCanDoActionMessageVariable ( "diskNames" , diskNames ) ; return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS_AND_DISKS ) ; }

Target:
protected boolean prepareFailureMessageForDomainsAndDisks ( java.lang.String domainNames , java.lang.String diskNames ) { org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommand.addValidationMessageVariable ( "domainNames" , domainNames ) ; org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommand.addValidationMessageVariable ( "diskNames" , diskNames ) ; return failValidation ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS_AND_DISKS ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec , java.lang.String connectionAction , java.util.Map < java.lang.String , java.lang.String > params ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc allocateVolume ( java.lang.String spUUID , java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String volUUID , java.lang.String size ) ;
Source:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long timeout ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = prepareCredentials ( rootPassword ) ; return _do_connect ( server , creds , timeout ) ; }

Target:
private void _callbackAddError ( java.lang.String message ) { if ( ( this . callback ) != null ) { this . callback.addError ( message ) ; } }
Source:
public void nullNetworkNameWhenUnlinkingSupported ( ) throws java.lang.Exception { networkNameTest ( ValidationResult.VALID , true , null ) ; }

Target:
public void nullNetworkNameWhenUnlinkingSupported ( ) throws java.lang.Exception { networkNameTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , null ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__TYPE__INTERFACE ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__TYPE__INTERFACE ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return this . mVmStatic.getQuotaId ( ) ; }

Target:
public void setQuotaId ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setQuotaId ( value ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > getNodeObjects ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { return org.ovirt.engine.ui.uicommonweb.Linq.getStorageDomainsByIds ( disk.getStorageIds ( ) , listModel.getStorageDomains ( ) ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > getNodeObjects ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { return org.ovirt.engine.ui.uicommonweb.Linq.getStorageDomainsByIds ( disk.getStorageIds ( ) , listModel.getStorageDomains ( ) ) ; }
Source:
public void statusSupportedForHostUpgradeInternal ( ) { org.mockito.Mockito.when ( host.getStatus ( ) ) . thenReturn ( VDSStatus.Maintenance ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostUpgradeInternal ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void statusSupportedForHostUpgradeInternal ( ) { host.setStatus ( VDSStatus.Maintenance ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostUpgradeInternal ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public boolean isInSync ( ) { return ( isAttached ( ) ) && ( ( getAttachedToNic ( ) . getEntity ( ) . getNetworkImplementationDetails ( ) ) != null ) ? getAttachedToNic ( ) . getEntity ( ) . getNetworkImplementationDetails ( ) . isInSync ( ) : true ; }

Target:
public boolean isInSync ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return details != null ? details.isInSync ( ) : true ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.GetSystemStatisticsQueryParameters.class , new java.lang.String [ ] { "SessionId" } , new java.lang.Object [ ] { getSessionId ( ) } ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.GetSystemStatisticsQueryParameters.class , new java.lang.String [ ] { "SessionId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.SESSION_ID } ) ; }
Source:
protected java.lang.String composeMessage ( ) { return org.ovirt.engine.ui.uicommonweb.validation.UriHostAddressValidationTest.TEST_VIOLATION_MESSAGE ; }

Target:
private void doTest ( java.lang.String value , boolean valid ) { doTest ( value , valid , new org.ovirt.engine.ui.uicommonweb.validation.UriHostAddressValidation ( org.ovirt.engine.ui.uicommonweb.validation.UriHostAddressValidationTest.TEST_VIOLATION_MESSAGE ) ) ; }
Source:
public void testRemoveByVolumeId ( ) { dao.removeByVolumeId ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotScheduleDaoTest.VOLUME_ID_1 ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule schedule = dao.getByVolumeId ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotScheduleDaoTest.VOLUME_ID_1 ) ; org.junit.Assert.assertNull ( schedule ) ; }

Target:
public void testRemoveByVolumeId ( ) { dao.removeByVolumeId ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotScheduleDaoTest.VOLUME_ID_1 ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule schedule = dao.getByVolumeId ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotScheduleDaoTest.VOLUME_ID_1 ) ; org.junit.jupiter.api.Assertions.assertNull ( schedule ) ; }
Source:
private java.lang.String getNetworkNames ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return org.apache.commons.lang.StringUtils.join ( org.ovirt.engine.core.common.businessentities.Entities.objectNames ( networks ) , ", " ) ; }

Target:
private java.lang.String getNetworkNames ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return networks.stream ( ) . map ( Network :: getName ) . collect ( java.util.stream.Collectors.joining ( ", " ) ) ; }
Source:
private void initRadioButtonEditors ( ) { unlimitedStorageRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "5" ) ; specificStorageRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "5" ) ; }

Target:
private void initRadioButtonEditors ( ) { unlimitedStorageRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "5" ) ; specificStorageRadioButtonEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "5" ) ; }
Source:
public boolean isTraceEnabled ( ) { return log.isTraceEnabled ( ) ; }

Target:
public void trace ( java.lang.Object msg , java.lang.Throwable t ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( msg ) , t ) ; } }
Source:
public void changingNetworkNotAllowed ( ) throws java.lang.Exception { mockVnicProfileNetworkChange ( DEFAULT_GUID , OTHER_GUID ) ; org.junit.Assert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_VNIC_PROFILE_NETWORK ) ) ; }

Target:
public void changingNetworkNotAllowed ( ) throws java.lang.Exception { mockVnicProfileNetworkChange ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.OTHER_GUID ) ; org.junit.Assert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_VNIC_PROFILE_NETWORK ) ) ; }
Source:
public void testExecuteQuery ( ) { mockDaoForQuery ( ) ; getQuery ( ) . executeQueryCommand ( ) ; org.junit.Assert.assertEquals ( returnedPermissions , getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ; }

Target:
public void testExecuteQuery ( ) { mockDaoForQuery ( ) ; getQuery ( ) . executeQueryCommand ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( returnedPermissions , getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ; }
Source:
public void checkKeyOnly ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.NOT_VALID ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyNotAllowed , validationResult ) ; }

Target:
public void checkKeyOnly ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.NOT_VALID ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyNotAllowed , validationResult ) ; }
Source:
public boolean getIsAvailable ( ) { if ( ( getDetailModel ( ) . getEntity ( ) ) == null ) { return false ; } return ! ( ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getDetailModel ( ) . getEntity ( ) ) ) . getIsGroup ( ) ) ; }

Target:
public boolean getIsAvailable ( ) { if ( ( getDetailModel ( ) . getEntity ( ) ) == null ) { return false ; } return ! ( ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getDetailModel ( ) . getEntity ( ) ) ) . isGroup ( ) ) ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand.getStoragePoolId ( ) . toString ( ) , LockingGroup.POOL.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand.getStoragePoolId ( ) . toString ( ) , LockMessagesMatchUtil.POOL ) ; }
Source:
protected void UpdateTemplateInSpm ( ) { org.ovirt.engine.core.bll.VmTemplateCommand.UpdateTemplateInSpm ( org.ovirt.engine.core.bll.ExportVmTemplateCommand.getVmTemplate ( ) . getstorage_pool_id ( ) . getValue ( ) , java.util.Arrays.asList ( org.ovirt.engine.core.bll.ExportVmTemplateCommand.getVmTemplate ( ) ) , org.ovirt.engine.core.bll.ExportVmTemplateCommand.getParameters ( ) . getStorageDomainId ( ) , null ) ; }

Target:
protected void updateTemplateInSpm ( ) { org.ovirt.engine.core.bll.VmTemplateCommand.UpdateTemplateInSpm ( org.ovirt.engine.core.bll.ExportVmTemplateCommand.getVmTemplate ( ) . getstorage_pool_id ( ) . getValue ( ) , java.util.Arrays.asList ( org.ovirt.engine.core.bll.ExportVmTemplateCommand.getVmTemplate ( ) ) , org.ovirt.engine.core.bll.ExportVmTemplateCommand.getParameters ( ) . getStorageDomainId ( ) , null ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StoragePool returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.AsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StoragePool returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.AsyncCallback < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > ( ) { @ java.lang.Override public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { doInit ( ) ; } } , externalVms ) ; }
Source:
java.lang.String maxMemSizeIs ( int maxMemSize ) ;

Target:
java.lang.String memSizeBetween ( int minMemSize , int maxMemSize ) ;
Source:
public boolean Validate ( ) { getPath ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LocalfsLinuxMountPointValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.NonUtfValidation ( ) } ) ; return getPath ( ) . getIsValid ( ) ; }

Target:
public boolean Validate ( ) { getPath ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LocalfsLinuxMountPointValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.NonUtfValidation ( ) } ) ; return getPath ( ) . getIsValid ( ) ; }
Source:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic ) ) ; }

Target:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic , null ) ) ; }
Source:
public void setProfileId ( org.ovirt.engine.core.compat.Guid profileId ) { this . profileId = profileId ; }

Target:
public void setProfileId ( org.ovirt.engine.core.compat.Guid profileId ) { this . profile.setId ( profileId ) ; }
Source:
protected boolean checkDiskUsedAsOvfStore ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return checkDiskUsedAsOvfStore ( getDiskValidator ( disk ) ) ; }

Target:
protected boolean isDiskExist ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { if ( ( disk == null ) || ( ! ( isDiskExistInVm ( disk ) ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; return false ; } return true ; }
Source:
public void setOriginalReturnValue ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue originalReturnValue ) { this . originalReturnValue = originalReturnValue ; }

Target:
public org.ovirt.engine.ui.frontend.AsyncQuery < T > withConverter ( org.ovirt.engine.ui.frontend.Converter < T > converter ) { this . converterCallback = converter ; return this ; }
Source:
public void talendLogs_LOGS_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.minimalversioncheck_3_6.MinimalVersionCheck.TalendException { end_Hash.put ( "talendLogs_LOGS" , java.lang.System.currentTimeMillis ( ) ) ; status = "failure" ; talendLogs_LOGS_onSubJobError ( exception , errorComponent , globalMap ) ; }

Target:
public void tContextLoad_2_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.minimalversioncheck_3_6.MinimalVersionCheck.TalendException { end_Hash.put ( errorComponent , java.lang.System.currentTimeMillis ( ) ) ; status = "failure" ; tJDBCInput_2_onSubJobError ( exception , errorComponent , globalMap ) ; }
Source:
public D addParents ( D device ) { device.setVm ( new org.ovirt.engine.api.model.VM ( ) ) ; device.getVm ( ) . setId ( parentId.toString ( ) ) ; return device ; }

Target:
public D addParents ( D device ) { device.setVm ( new org.ovirt.engine.api.model.Vm ( ) ) ; device.getVm ( ) . setId ( parentId.toString ( ) ) ; return device ; }
Source:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value ) { return format.decode ( value ) ; }

Target:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return format.encode ( value , props ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Vms: pool=" + ( getEntity ( ) . getvm_pool_name ( ) ) ) ) ; super . Search ( ) ; } }

Target:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Vms: pool=" + ( getEntity ( ) . getVmPoolName ( ) ) ) ) ; super . Search ( ) ; } }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
protected void actualSave ( ) { flush ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( action , new org.ovirt.engine.core.common.action.ProviderParameters ( provider ) ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { sourceListModel.getSearchCommand ( ) . execute ( ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return this . storage_pool_idField ; }

Target:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid value ) { this . storagePoolId = value ; }
Source:
private boolean hasTasks ( ) { return ! ( getReturnValue ( ) . getTaskIdList ( ) . isEmpty ( ) ) ; }

Target:
private boolean hasTasks ( ) { return ! ( getReturnValue ( ) . getVdsmTaskIdList ( ) . isEmpty ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionCreate ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String remoteUserName , java.lang.Boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionCreate ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public void testGetUserAndSetUserWithSessionParam ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ; container.setUser ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , user ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , user , container.getUser ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , false ) ) ; }

Target:
public void testGetUserAndSetUserWithSessionParam ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ; container.setUser ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , user ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , user , container.getUser ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , false ) ) ; }
Source:
protected void startPollingAsyncTasks ( ) { startPollingAsyncTasks ( getReturnValue ( ) . getTaskIdList ( ) ) ; }

Target:
private void addToReturnValueTaskPlaceHolderIdList ( org.ovirt.engine.core.compat.Guid taskId ) { if ( ! ( getReturnValue ( ) . getTaskPlaceHolderIdList ( ) . contains ( taskId ) ) ) { getReturnValue ( ) . getTaskPlaceHolderIdList ( ) . add ( taskId ) ; } }
Source:
public boolean hasBricks ( org.ovirt.engine.core.compat.Guid serverId ) { return ( getGlusterBrickDao ( ) . getGlusterVolumeBricksByServerId ( serverId ) . size ( ) ) > 0 ; }

Target:
public void updateBricksStatuses ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus newStatus ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : glusterBrickDao.getBricksOfVolume ( volumeId ) ) { glusterBrickDao.updateBrickStatus ( brick.getId ( ) , newStatus ) ; } }
Source:
public void testAddSupportedHostFeature ( ) { java.lang.String newFeature = "NEW_FEATURE_1" ; dao.addSupportedHostFeature ( org.ovirt.engine.core.dao.SupportedHostFeatureDaoTest.EXISTING_HOST_ID_1 , newFeature ) ; java.util.Set < java.lang.String > featuresSupported = dao.getSupportedHostFeaturesByHostId ( org.ovirt.engine.core.dao.SupportedHostFeatureDaoTest.EXISTING_HOST_ID_1 ) ; org.junit.Assert.assertThat ( "Failed to add the feature" , featuresSupported , org.hamcrest.CoreMatchers.hasItem ( newFeature ) ) ; }

Target:
public void testAddSupportedHostFeature ( ) { java.lang.String newFeature = "NEW_FEATURE_1" ; dao.addSupportedHostFeature ( FixturesTool.HOST_ID , newFeature ) ; java.util.Set < java.lang.String > featuresSupported = dao.getSupportedHostFeaturesByHostId ( FixturesTool.HOST_ID ) ; org.junit.Assert.assertThat ( "Failed to add the feature" , featuresSupported , org.hamcrest.CoreMatchers.hasItem ( newFeature ) ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { parentModel.setWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { getParentModel ( ) . setWindow ( null ) ; }
Source:
public void unsetStorage ( ) { this . storage = null ; }

Target:
public void setAddress ( java.lang.String value ) { this . address = value ; }
Source:
public void canDoActionFailsOnNonExistingEvent ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveExternalEventCommand < org.ovirt.engine.core.common.action.RemoveExternalEventParameters > ( new org.ovirt.engine.core.common.action.RemoveExternalEventParameters ( org.ovirt.engine.core.bll.RemoveExternalEventCommandTest.EVENT_ID_1 ) ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_EVENT_NOT_FOUND ) ; }

Target:
public void canDoActionFailsOnNonExistingEvent ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand < org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters > ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }
Source:
private static void setHref ( org.ovirt.engine.api.model.BaseResource model ) { org.ovirt.engine.api.restapi.util.LinkHelper.setHref ( model , null ) ; }

Target:
private static org.ovirt.engine.api.restapi.util.LinkHelper.ApiLocationMetadata getLocationMetadata ( org.ovirt.engine.api.model.BaseResource model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.getLocationMetadata ( model , null ) ; }
Source:
public java.lang.String getVdsDestination ( ) { return ( getDestinationVds ( ) ) != null ? getDestinationVds ( ) . getName ( ) : null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDestinationVdsId ( ) { org.ovirt.engine.core.common.businessentities.VDS destinationVds = getDestinationVds ( ) ; return destinationVds != null ? destinationVds.getId ( ) : null ; }
Source:
protected void onSavePortMirroring ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface nicToSave ) { nicToSave.setPortMirroring ( ( ( java.lang.Boolean ) ( getPortMirroring ( ) . getEntity ( ) ) ) ) ; }

Target:
protected void onSavePortMirroring ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface nicToSave ) { nicToSave.setPortMirroring ( ( ( java.lang.Boolean ) ( getPortMirroring ( ) . getEntity ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.api.model.Cluster doPopulate ( org.ovirt.engine.api.model.Cluster model , org.ovirt.engine.core.common.businessentities.VDSGroup entity ) { return model ; }

Target:
protected org.ovirt.engine.api.model.Cluster doPopulate ( org.ovirt.engine.api.model.Cluster cluster , org.ovirt.engine.core.common.businessentities.VDSGroup entity ) { return parent.doPopulate ( cluster , entity ) ; }
Source:
public void testSave ( ) { dao.save ( newGroup ) ; org.ovirt.engine.core.common.businessentities.DbGroup result = dao.getByName ( newGroup.getName ( ) ) ; org.junit.Assert.assertEquals ( newGroup , result ) ; }

Target:
public void testSave ( ) { dao.save ( newGroup ) ; org.ovirt.engine.core.common.businessentities.aaa.DbGroup result = dao.getByName ( newGroup.getName ( ) ) ; org.junit.Assert.assertEquals ( newGroup , result ) ; }
Source:
protected boolean contentOverflows ( com.google.gwt.dom.client.Element parent ) { return ( parent != null ) && ( ( detectOverflowUsingScrollWidth ( parent ) ) || ( detectOverflowUsingClientHeight ( parent ) ) ) ; }

Target:
protected boolean contentOverflows ( com.google.gwt.dom.client.Element parent ) { return ( parent != null ) && ( ( org.ovirt.engine.ui.common.utils.ElementUtils.detectOverflowUsingScrollWidth ( parent ) ) || ( org.ovirt.engine.ui.common.utils.ElementUtils.detectOverflowUsingClientHeight ( parent ) ) ) ; }
Source:
public void threeSequenceThreeSubsequence ( ) { org.junit.Assert.assertTrue ( BootSequence.CDN.containsSubsequence ( BootSequence.CDN ) ) ; }

Target:
public void threeSequenceThreeSubsequence ( ) { org.junit.jupiter.api.Assertions.assertTrue ( BootSequence.CDN.containsSubsequence ( BootSequence.CDN ) ) ; }
Source:
protected boolean templated ( org.ovirt.engine.api.model.VM vm ) { return ( vm.isSetTemplate ( ) ) && ( ( vm.getTemplate ( ) . isSetId ( ) ) || ( vm.getTemplate ( ) . isSetName ( ) ) ) ; }

Target:
protected boolean templated ( org.ovirt.engine.api.model.Vm vm ) { return ( vm.isSetTemplate ( ) ) && ( ( vm.getTemplate ( ) . isSetId ( ) ) || ( vm.getTemplate ( ) . isSetName ( ) ) ) ; }
Source:
public void setUpdateRngDevice ( boolean updateRngDevice ) { this . updateRngDevice = updateRngDevice ; }

Target:
public void setUpdateRngDevice ( boolean updateRngDevice ) { this . rngDevice.setUpdate ( updateRngDevice ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain domain ) { return ( domain.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ISO ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain domain ) { return ( domain.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ISO ) ; }
Source:
private void cpuManufacturersMatch ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . checkIfCpusSameManufacture ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.Cluster.class ) ) ; }

Target:
private void cpuManufacturersMatch ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . checkIfCpusSameManufacture ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
private void initAnchor ( java.lang.String url , com.google.gwt.user.client.ui.Anchor anchor ) { anchor.setHref ( url ) ; anchor.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeProfileStatisticsPopupView.constants.exportToPdf ( ) ) ; anchor.setTarget ( "_blank" ) ; }

Target:
private void initAnchor ( java.lang.String url , com.google.gwt.user.client.ui.Anchor anchor ) { anchor.setHref ( url ) ; anchor.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeProfileStatisticsPopupView.constants.exportToText ( ) ) ; anchor.setTarget ( "_blank" ) ; }
Source:
public void setAuthn ( java.lang.String sessionId , org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }

Target:
public boolean getSessionValid ( java.lang.String sessionId , boolean refresh ) { java.lang.Object obj = getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SESSION_VALID_PARAMETER_NAME , refresh ) ; return obj == null ? false : ( ( boolean ) ( obj ) ) ; }
Source:
private void testMoveOrCopyForContentTypeFails ( org.ovirt.engine.core.common.businessentities.storage.DiskContentType contentType ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( contentType ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_CONTENT_TYPE_NOT_SUPPORTED_FOR_OPERATION ) ; }

Target:
private void testMoveOrCopyForContentTypeFails ( org.ovirt.engine.core.common.businessentities.storage.DiskContentType contentType ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; command.getImage ( ) . setContentType ( contentType ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_CONTENT_TYPE_NOT_SUPPORTED_FOR_OPERATION ) ; }
Source:
private void SanTargetModel_LoggedIn ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel ) ( sender ) ) ; targetsToConnect = new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > ( ) ; targetsToConnect.add ( model ) ; connectTargets ( ) ; }

Target:
private void sanTargetModel_LoggedIn ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel ) ( sender ) ) ; targetsToConnect = new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > ( ) ; targetsToConnect.add ( model ) ; connectTargets ( ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool dataCenter ) { return dataCenter.getName ( ) ; }

Target:
private void initListBoxEditors ( ) { dataCenterEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getRandomUpServerId ( org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.core.common.businessentities.VDS vds = getClusterUtils ( ) . getRandomUpServer ( clusterId ) ; if ( vds == null ) { throw new java.lang.RuntimeException ( "No up server found" ) ; } return vds.getId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getRandomUpServerId ( org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.core.common.businessentities.VDS vds = getGlusterUtils ( ) . getRandomUpServer ( clusterId ) ; if ( vds == null ) { throw new java.lang.RuntimeException ( "No up server found" ) ; } return vds.getId ( ) ; }
Source:
public boolean getBondingOptionsOverrideNotification ( ) { return getbondingOptionsOverrideNotification ( ) ; }

Target:
public void setBondingOptionsOverrideNotification ( boolean value ) { bondingOptionsOverrideNotification = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BondingOptionsOverrideNotification" ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return 262144 ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source ; }
Source:
public void testGetAllForStoragePoolWithPermissionsPrivilegedUser ( ) { org.ovirt.engine.core.compat.Guid storagePoolId = new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( storagePoolId , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , storagePoolId ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsPrivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.DATA_CENTER , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , FixturesTool.DATA_CENTER ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StorageServerConnections createConnectionWithCredentials ( java.lang.String target , java.lang.String userName , java.lang.String password ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; conn.setIqn ( target ) ; conn.setUserName ( userName ) ; conn.setPassword ( password ) ; return conn ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StorageServerConnections createConnectionWithCredentials ( java.lang.String target ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; conn.setIqn ( target ) ; conn.setUserName ( "userConn" ) ; conn.setPassword ( "pwdConn" ) ; return conn ; }
Source:
private void updateSnapshotOvf ( org.ovirt.engine.core.common.businessentities.VM vm ) { vm.setSnapshots ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getSnapshotDao ( ) . getAllWithConfiguration ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) ) ) ; UpdateVmImSpm ( ) ; }

Target:
private void updateSnapshotOvf ( org.ovirt.engine.core.common.businessentities.VM vm ) { vm.setSnapshots ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getSnapshotDao ( ) . getAllWithConfiguration ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) ) ) ; updateVmImSpm ( ) ; }
Source:
public void setEntityId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable ) { logable.setVdsId ( oldHost.getId ( ) ) ; }

Target:
public void setEntityId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable logable ) { logable.setVdsId ( oldHost.getId ( ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { callback.vnicCreated ( vmId ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.RemoveVmInterface , removeVnicParameters , new org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback ( ) { @ java.lang.Override public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { callback.vnicCreated ( vmId ) ; } } , this ) ; }
Source:
private boolean validateAndAddViolation ( org.ovirt.engine.core.bll.ValidationResult validationResult , java.lang.String violatingEntity ) { if ( validationResult.isValid ( ) ) { return true ; } else { addViolation ( validationResult.getMessage ( ) , violatingEntity ) ; return false ; } }

Target:
private boolean isNicNameAndNicIdIncoherent ( org.ovirt.engine.core.compat.Guid nicId , java.lang.String nicName ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface interfaceById = existingIfacesById.get ( nicId ) ; org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface interfaceByName = existingIfaces.get ( nicName ) ; return ! ( java.util.Objects.equals ( interfaceById , interfaceByName ) ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; }
Source:
private void endCommandActions ( ) { org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getBackend ( ) . EndAction ( getImagesActionType ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) ) ; org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.setSucceeded ( true ) ; }

Target:
private void endCommandActions ( ) { org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getBackend ( ) . endAction ( getImagesActionType ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) ) ; org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.setSucceeded ( true ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getLoginCommand ( ) ) ) { Login ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getLoginCommand ( ) ) ) { login ( ) ; } }
Source:
public void shouldHandleNoNumaNodes ( ) { vm.setvNumaNodeList ( null ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldSetNumaPinning ( ) { org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
public void run ( ) { switch ( getVdsGroup ( ) . getMigrateOnError ( ) ) { case YES : MigrateAllVms ( getExecutionContext ( ) ) ; break ; case HA_ONLY : MigrateAllVms ( getExecutionContext ( ) , true ) ; break ; default : break ; } }

Target:
public void run ( ) { switch ( getVdsGroup ( ) . getMigrateOnError ( ) ) { case YES : migrateAllVms ( getExecutionContext ( ) ) ; break ; case HA_ONLY : migrateAllVms ( getExecutionContext ( ) , true ) ; break ; default : break ; } }
Source:
public synchronized void StartPollingTask ( org.ovirt.engine.core.compat.Guid taskID ) { if ( _tasks.containsKey ( taskID ) ) { _tasks.get ( taskID ) . StartPollingTask ( ) ; } }

Target:
public synchronized void StartPollingTask ( org.ovirt.engine.core.compat.Guid vdsmTaskId ) { if ( _tasks.containsKey ( vdsmTaskId ) ) { _tasks.get ( vdsmTaskId ) . StartPollingTask ( ) ; } }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public void talendLogs_LOGS_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.osenumupdate_3_6.OsEnumUpdate.TalendException { end_Hash.put ( "talendLogs_LOGS" , java.lang.System.currentTimeMillis ( ) ) ; status = "failure" ; talendLogs_LOGS_onSubJobError ( exception , errorComponent , globalMap ) ; }

Target:
public void talendLogs_LOGS_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.osenumupdate_3_6.OsEnumUpdate.TalendException { talendLogs_CONSOLE_error ( exception , errorComponent , globalMap ) ; }
Source:
public static java.util.List parseTo_List ( java.lang.String s ) { if ( s != null ) { java.util.List list = new java.util.ArrayList ( ) ; list.add ( s ) ; return list ; } return null ; }

Target:
public static java.util.List parseTo_List ( java.lang.String s ) { return routines.system.ParserUtils.parseTo_List ( s , null ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.tags result = dao.getByName ( existingTag.gettag_name ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingTag , result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.tags result = dao.getByName ( existingTag.gettag_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingTag , result ) ; }
Source:
public void Failed ( java.lang.String error ) { org.ovirt.engine.core.bll.VdsInstaller.log.errorFormat ( "Installation of {0} has failed. Failure details: {1}. (Stage: {2})" , _serverName , error , getCurrentInstallStage ( ) ) ; _messages.AddMessage ( error ) ; _currentInstallStage = VdsInstallStages.Error ; _failedMessage = error ; }

Target:
public void failed ( java.lang.String error ) { org.ovirt.engine.core.bll.VdsInstaller.log.errorFormat ( "Installation of {0} has failed. Failure details: {1}. (Stage: {2})" , _serverName , error , getCurrentInstallStage ( ) ) ; _messages.AddMessage ( error ) ; _currentInstallStage = VdsInstallStages.Error ; _failedMessage = error ; }
Source:
private boolean taskWasCleared ( org.ovirt.engine.core.bll.EntityAsyncTask task ) { org.ovirt.engine.core.bll.AsyncTaskState taskState = task.getState ( ) ; return ( taskState == ( AsyncTaskState.Cleared ) ) || ( taskState == ( AsyncTaskState.ClearFailed ) ) ; }

Target:
private boolean taskWasCleared ( org.ovirt.engine.core.bll.CommandAsyncTask task ) { org.ovirt.engine.core.bll.AsyncTaskState taskState = task.getState ( ) ; return ( taskState == ( AsyncTaskState.Cleared ) ) || ( taskState == ( AsyncTaskState.ClearFailed ) ) ; }