auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.executeAsyncCommand ( actionType , parameters , cmdContext ) ; }

Target:
public static java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.executeAsyncCommand ( actionType , parameters , cmdContext ) ; }
Source:
protected boolean matchEntity ( org.ovirt.engine.api.model.Disk entity , org.ovirt.engine.core.compat.Guid id ) { return ( id != null ) && ( id.equals ( entity.getId ( ) ) ) ; }

Target:
protected < T > boolean matchEntity ( org.ovirt.engine.api.model.Disk entity , T id ) { return ( id != null ) && ( id.equals ( entity.getId ( ) ) ) ; }
Source:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.class ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }

Target:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl ( ) ; org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.class ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }
Source:
public void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
public void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }
Source:
public void perform ( ) { try { refreshExistingVmJobList ( ) ; refreshVmStats ( ) ; afterVMsRefreshTreatment ( ) ; } finally { unlockVmsManager ( ) ; } }

Target:
public void perform ( ) { try { refreshExistingVmJobList ( ) ; refreshVmStats ( ) ; afterVMsRefreshTreatment ( ) ; vdsManager.vmsMonitoringInitFinished ( ) ; } finally { unlockVmsManager ( ) ; } }
Source:
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 ( getProblematicVdsId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VDS_FENCE , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }

Target:
protected void freeLock ( ) { if ( ( org.ovirt.engine.core.bll.storage.FenceVdsManualyCommand.getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.RestartVds ) ) { super . freeLock ( ) ; } }
Source:
public java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.gluster.GlusterServiceStatus > call ( ) throws java.lang.Exception { return refreshServerServices ( upServer ) ; }

Target:
public java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.gluster.GlusterServiceStatus > call ( ) throws java.lang.Exception { return refreshServerServices ( server ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel ) ( result.getState ( ) ) ) ; localModel.PostOnNew ( result.getReturnValue ( ) ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel ) ( result.getState ( ) ) ) ; localModel.PostOnNew ( result.getReturnValue ( ) ) ; }
Source:
public boolean getAllowConsoleReconnect ( ) { return this . mVmStatic.getAllowConsoleReconnect ( ) ; }

Target:
public boolean getAllowConsoleReconnect ( ) { return this . vmStatic.getAllowConsoleReconnect ( ) ; }
Source:
protected boolean checkIfRoleIsReadOnly ( java.util.List < java.lang.String > CanDoActionMessages ) { boolean result = false ; if ( getRole ( ) . isReadonly ( ) ) { result = true ; CanDoActionMessages.add ( VdcBllMessages.ACTION_TYPE_FAILED_ROLE_IS_READ_ONLY.toString ( ) ) ; } return result ; }

Target:
protected boolean checkIfRoleIsReadOnly ( java.util.List < java.lang.String > CanDoActionMessages ) { boolean result = false ; if ( getRole ( ) . isReadonly ( ) ) { result = true ; CanDoActionMessages.add ( EngineMessage.ACTION_TYPE_FAILED_ROLE_IS_READ_ONLY.toString ( ) ) ; } return result ; }
Source:
public void setWANDisableEffects ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > disableEffects ) { this . wanDisableEffects = disableEffects ; getWANDisableEffectsChangeEvent ( ) . raise ( this , EventArgs.Empty ) ; }

Target:
public void setWANDisableEffects ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > disableEffects ) { this . wanDisableEffects = disableEffects ; getWANDisableEffectsChangeEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; UpdateIsDiskHotPlugAvailable ( ) ; UpdateLiveStorageMigrationEnabled ( ) ; } UpdateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; UpdateIsDiskHotPlugAvailable ( ) ; UpdateLiveStorageMigrationEnabled ( ) ; } UpdateActionAvailability ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , StringUtils.EMPTY , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , SnapshotStatus.OK , memoryVolume , compensationContext ) ; }
Source:
public void setaudit_log_id ( long value ) { this . auditLogId = value ; }

Target:
public void setAuditLogId ( long value ) { this . auditLogId = value ; }
Source:
public void testGetAllWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllWithPermissionsDisabledForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false , VmEntityType.TEMPLATE ) ; org.ovirt.engine.core.dao.VmTemplateDAOTest.assertGetAllResult ( result ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LUNs > getLogicalUnits ( ) { return getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( asGuid ( hostId ) , org.ovirt.engine.core.common.businessentities.StorageType.UNKNOWN ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLogicalUnits ( ) { return getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( asGuid ( hostId ) , org.ovirt.engine.core.common.businessentities.storage.StorageType.UNKNOWN ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getDetailModel ( ) . getEditPolicyCommand ( ) . Execute ( java.lang.Boolean.TRUE ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getDetailModel ( ) . getEditPolicyCommand ( ) . execute ( java.lang.Boolean.TRUE ) ; }
Source:
private void writeStructLink ( org.ovirt.api.metamodel.concepts.Link link ) { writer.writeStartElement ( "link" ) ; writeCommon ( link ) ; writeTypeRef ( link.getType ( ) ) ; writer.writeEndElement ( ) ; }

Target:
private void writeAttribute ( org.ovirt.api.metamodel.concepts.Attribute attribute ) { writer.writeStartElement ( "attribute" ) ; writeCommon ( attribute ) ; writeTypeRef ( attribute.getType ( ) ) ; writer.writeEndElement ( ) ; }
Source:
public org.ovirt.engine.ui.common.widget.table.cell.TextCell getCell ( ) { org.ovirt.engine.ui.common.widget.table.cell.TextCell TextCellWithTooltip = super . getCell ( ) ; TextCellWithTooltip.setTitle ( constants.quotaCalculationsMessage ( ) ) ; return TextCellWithTooltip ; }

Target:
public org.ovirt.engine.ui.common.widget.table.cell.TextCell getCell ( ) { org.ovirt.engine.ui.common.widget.table.cell.TextCell TextCellWithTooltip = super . getCell ( ) ; TextCellWithTooltip.setTitle ( org.ovirt.engine.ui.webadmin.section.main.view.tab.quota.SubTabQuotaStorageView.constants.quotaCalculationsMessage ( ) ) ; return TextCellWithTooltip ; }
Source:
private static void assertFullGetAllForVMResult ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { org.junit.Assert.assertEquals ( "VM should have six disks" , 6 , disks.size ( ) ) ; }

Target:
private static void assertFullGetAllForVMResult ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { org.junit.jupiter.api.Assertions.assertEquals ( 6 , disks.size ( ) , "VM should have six disks" ) ; }
Source:
public void missingNetworkMappings ( ) { org.junit.Assert.assertThat ( validator.networkMappingsProvided ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MISSING_NETWORK_MAPPINGS ) ) ; }

Target:
public void missingNetworkMappings ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.networkMappingsProvided ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MISSING_NETWORK_MAPPINGS ) ) ; }
Source:
protected void LogTaskCleanFailure ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.errorFormat ( "SPMAsyncTask::ClearAsyncTask: Clearing task '{0}' failed." , getVdsmTaskId ( ) ) ; }

Target:
protected void logTaskCleanFailure ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.errorFormat ( "SPMAsyncTask::ClearAsyncTask: Clearing task '{0}' failed." , getVdsmTaskId ( ) ) ; }
Source:
private void addTemplates ( java.util.List < org.ovirt.engine.core.compat.Guid > templatesGuids , int diskCount , org.ovirt.engine.core.common.businessentities.VmTemplateStatus templateStatus , org.ovirt.engine.core.common.businessentities.ImageStatus templateImageStatus ) { templates.putAll ( generateVmTemplatesMapByGuids ( templatesGuids , diskCount , templateStatus , templateImageStatus ) ) ; }

Target:
private void addTemplates ( java.util.List < org.ovirt.engine.core.compat.Guid > templatesGuids , int diskCount , org.ovirt.engine.core.common.businessentities.VmTemplateStatus templateStatus , org.ovirt.engine.core.common.businessentities.ImageStatus templateImageStatus , org.ovirt.engine.core.compat.Guid poolId ) { templates.putAll ( generateVmTemplatesMapByGuids ( templatesGuids , diskCount , templateStatus , templateImageStatus , poolId ) ) ; }
Source:
protected void processOldImageFromDb ( ) { updateOldImageActive ( SnapshotType.PREVIEW , false ) ; }

Target:
protected void processOldImageFromDb ( ) { updateOldImageAsActive ( SnapshotType.PREVIEW , false ) ; }
Source:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetworkViolated ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) , nonVmNetwork1 , nonVmNetwork2 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetworkViolated ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.NON_VM , NetworkType.NON_VM ) , nonVmNetwork1 , nonVmNetwork2 ) ; }
Source:
public void setKeepTooltipOnSetEnabled ( boolean setKeepTooltipOnSetEnabled ) { this . setKeepTooltipOnSetEnabled = setKeepTooltipOnSetEnabled ; }

Target:
public void setLabelTooltip ( java.lang.String tooltipText ) { labelConfiguredTooltip = tooltipText ; labelTooltip.setText ( tooltipText ) ; labelTooltip.reconfigure ( ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap entity ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap entity ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getOldProvider ( ) { if ( ( oldProvider ) == null ) { oldProvider = getProviderDao ( ) . get ( getProvider ( ) . getId ( ) ) ; } return oldProvider ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getOldProvider ( ) { if ( ( oldProvider ) == null ) { oldProvider = org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getProviderDao ( ) . get ( getProvider ( ) . getId ( ) ) ; } return oldProvider ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "url" , url ) . append ( "username" , username ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "url" , url ) . append ( "username" , username ) . append ( "originType" , originType ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.bookmarks get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( id ) ; return getCallsHandler ( ) . executeRead ( "GetBookmarkBybookmark_id" , new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper ( ) , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Bookmark get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( id ) ; return getCallsHandler ( ) . executeRead ( "GetBookmarkBybookmark_id" , new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper ( ) , parameterSource ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > ( ) ; }
Source:
public void setup ( ) { org.mockito.Mockito.doReturn ( dbFacade ) . when ( cmd ) . getDbFacade ( ) ; org.mockito.Mockito.when ( dbFacade.getStoragePoolDao ( ) ) . thenReturn ( storagePoolDAO ) ; org.mockito.Mockito.when ( dbFacade.getStorageDomainDao ( ) ) . thenReturn ( storageDomainDAO ) ; }

Target:
public void setup ( ) { org.ovirt.engine.core.CommandMocks.mockDbFacade ( cmd , dbFacade ) ; org.mockito.Mockito.when ( dbFacade.getStoragePoolDao ( ) ) . thenReturn ( storagePoolDAO ) ; org.mockito.Mockito.when ( dbFacade.getStorageDomainDao ( ) ) . thenReturn ( storageDomainDAO ) ; }
Source:
private org.ovirt.engine.core.common.queries.VdcQueryParametersBase getProductVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ 0 ] , new java.lang.Object [ 0 ] ) ; }

Target:
private org.ovirt.engine.core.common.queries.VdcQueryParametersBase getProductVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqParams ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ 0 ] , new java.lang.Object [ 0 ] ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.FileStatsReturnForXmlRpc getIsoList ( java.lang.String spUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc extend_image_ticket ( java.lang.String ticketId , long timeout ) ;
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VmPools , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel value ) { systemTreeSelectedItem = value ; }
Source:
public void execute ( ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , currentValue ) ; changing = false ; }

Target:
public void execute ( ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , currentValue ) ; setChanging ( false ) ; }
Source:
public abstract void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) ;

Target:
public void removeCommand ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
private boolean validate ( org.ovirt.engine.core.bll.ValidationResult validationResult ) { if ( ! ( validationResult.isValid ( ) ) ) { addViolation ( validationResult.getMessage ( ) , null ) ; } return validationResult.isValid ( ) ; }

Target:
private boolean skipValidation ( org.ovirt.engine.core.bll.ValidationResult validationResult ) { return ! ( validationResult.isValid ( ) ) ; }
Source:
public void updateNicWithVnicProfileForUser ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmInterface , org.ovirt.engine.core.compat.Guid userId ) { if ( ! ( updateNicWithVnicProfile ( vmInterface , userId ) ) ) { markNicHasNoProfile ( vmInterface ) ; } }

Target:
public void updateNicWithVnicProfileForUser ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmInterface , org.ovirt.engine.core.common.users.VdcUser user ) { if ( ! ( updateNicWithVnicProfile ( vmInterface , user ) ) ) { markNicHasNoProfile ( vmInterface ) ; } }
Source:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public static java.lang.String decryptPassword ( java.lang.String password ) { try { return org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.decrypt ( password ) ; } catch ( java.lang.Exception e ) { org.ovirt.engine.core.dal.dbbroker.DbFacadeUtils.log.debugFormat ( "Failed to decrypt password, error message: {0}" , e.getMessage ( ) ) ; return password ; } }

Target:
public static java.lang.String decryptPassword ( java.lang.String password ) { try { return org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.decrypt ( password ) ; } catch ( java.lang.Exception e ) { org.ovirt.engine.core.dal.dbbroker.DbFacadeUtils.log.debug ( "Failed to decrypt password" , e ) ; return password ; } }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getVmPoolId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getDbFacade ( ) . getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getVmPoolId ( ) ; }
Source:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NEEDS_PASSTHROUGH ) ) ; }

Target:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_NEEDS_PASSTHROUGH ) ; }
Source:
public void checkValidIpConfigurationStaticBootProtocol ( ) { initIpConfigurationDetails ( Ipv4BootProtocol.STATIC_IP , true , true ) ; org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , actual ) ; }

Target:
public void checkValidIpv4ConfigurationNoneBootProtocol ( ) { initIpv4ConfigurationDetails ( Ipv4BootProtocol.NONE , false , false ) ; initIpv6Address ( ) ; setIpv6BootProtocol ( Ipv6BootProtocol.AUTOCONF ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public boolean isNetworkExclusivenessPermissiveValidation ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.NetworkExclusivenessPermissiveValidation , version ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.migration.MigrationPolicy > getMigrationPolicies ( ) { return migrationPolicies ; }
Source:
public static boolean hasMemoryBalloon ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.isMemBalloonEnabled ( vmId ) ; }

Target:
public void removeMemoryBalloons ( org.ovirt.engine.core.compat.Guid vmId ) { removeVmDevices ( getMemoryBalloons ( vmId ) , 1 ) ; }
Source:
private boolean migrateVm ( ) { setActionReturnValue ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunAsyncVdsCommand ( VDSCommandType.Migrate , createMigrateVDSCommandParameters ( ) , this ) . getReturnValue ( ) ) ; return ( org.ovirt.engine.core.bll.MigrateVmCommand.getActionReturnValue ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.MigratingFrom ) ; }

Target:
private boolean migrateVm ( ) { setActionReturnValue ( org.ovirt.engine.core.bll.MigrateVmCommand.getVdsBroker ( ) . runAsyncVdsCommand ( VDSCommandType.Migrate , createMigrateVDSCommandParameters ( ) , this ) . getReturnValue ( ) ) ; return ( org.ovirt.engine.core.bll.MigrateVmCommand.getActionReturnValue ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.MigratingFrom ) ; }
Source:
public boolean StorageDomainRemoved ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return true ; }

Target:
public boolean storageDomainRemoved ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return true ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.LUN ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.IMAGE ) ; revealDiskPanel ( disk ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getReplicateAndNfsVolumes ( org.ovirt.engine.core.compat.Guid clusterId , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType > volumeTypes ) { return org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.getGlusterVolumeDao ( ) . getVolumesByStatusTypesAndOption ( clusterId , GlusterStatus.UP , volumeTypes , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_KEY_NFS_DISABLE , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_VALUE_OFF ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getReplicateAndNfsVolumes ( org.ovirt.engine.core.compat.Guid clusterId , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType > volumeTypes ) { return glusterVolumeDao.getVolumesByStatusTypesAndOption ( clusterId , GlusterStatus.UP , volumeTypes , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_KEY_NFS_DISABLE , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_VALUE_OFF ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.HostDevice device ) { return vfsNames.contains ( device.getDeviceName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.HostDevice device ) { return ( vfsNames.contains ( device.getDeviceName ( ) ) ) && ( isVf ( device ) ) ; }
Source:
public void setkvm_enable ( java.lang.Boolean value ) { this . mVmDynamic.setkvm_enable ( value ) ; }

Target:
public void setDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . vmDynamic.setdisplay_type ( value ) ; }
Source:
public void diskInterfaceNotSupportedByOs ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.createVM ( org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.OS_WITH_NO_SUPPORTED_INTERFACES ) ; initializeOsRepository ( DiskInterface.VirtIO ) ; dve.setDiskInterface ( DiskInterface.VirtIO ) ; org.junit.Assert.assertThat ( validator.isDiskInterfaceSupported ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_DISK_INTERFACE_UNSUPPORTED ) ) ; }

Target:
public void diskInterfaceSupportedByOs ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.createVM ( org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.OS_WITH_SUPPORTED_INTERFACES ) ; initializeInterfaceValidation ( DiskInterface.VirtIO ) ; dve.setDiskInterface ( DiskInterface.VirtIO ) ; org.junit.Assert.assertThat ( validator.isDiskInterfaceSupported ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryParametersBase withoutRefresh ( ) { setRefresh ( false ) ; return this ; }

Target:
public org.ovirt.engine.core.common.queries.QueryParametersBase withoutRefresh ( ) { setRefresh ( false ) ; return this ; }
Source:
public static void GetManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , org.ovirt.engine.core.common.config.Config.DefaultConfigurationVersion ) , aQuery ) ; }

Target:
public static void GetDefaultPmProxyPreferences ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.FenceProxyDefaultPreferences , org.ovirt.engine.core.common.config.Config.DefaultConfigurationVersion ) , query ) ; }
Source:
public static boolean isPendingOvirt ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.VdsHandler.isPendingOvirt ( vds.getVdsType ( ) , vds.getStatus ( ) ) ; }

Target:
public static boolean isPendingOvirt ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.isOvirtNode ( ) ) && ( ( vds.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.PendingApproval ) ) ; }
Source:
public void biggerThanOrEquals ( ) { org.junit.Assert.assertFalse ( Version.v3_5.greaterOrEquals ( Version.v3_6 ) ) ; org.junit.Assert.assertTrue ( Version.v3_6.greaterOrEquals ( Version.v3_5 ) ) ; org.junit.Assert.assertTrue ( Version.v3_6.greaterOrEquals ( new org.ovirt.engine.core.compat.Version ( "3.5" ) ) ) ; }

Target:
public void biggerThanOrEquals ( ) { org.junit.Assert.assertFalse ( Version.v3_6.greaterOrEquals ( Version.v4_0 ) ) ; org.junit.Assert.assertTrue ( Version.v4_0.greaterOrEquals ( Version.v3_6 ) ) ; org.junit.Assert.assertTrue ( Version.v4_0.greaterOrEquals ( new org.ovirt.engine.core.compat.Version ( "3.6" ) ) ) ; }
Source:
private static boolean hasEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { return Guid.Empty.equals ( task.getVdsmTaskId ( ) ) ; }

Target:
private static boolean isPartiallyExecutedTask ( org.ovirt.engine.core.common.businessentities.AsyncTask task ) { return ! ( task.getChildCmdEntity ( ) . isExecuted ( ) ) ; }
Source:
protected static org.ovirt.engine.core.compat.Guid getGuidDefaultNewGuid ( java.sql.ResultSet resultSet , java.lang.String columnName ) throws java.sql.SQLException { return org.ovirt.engine.core.dao.BaseDaoDbFacade.getGuid ( resultSet , columnName , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }

Target:
protected static org.ovirt.engine.core.compat.Guid getGuidDefaultNewGuid ( java.sql.ResultSet resultSet , java.lang.String columnName ) throws java.sql.SQLException { return org.ovirt.engine.core.dao.BaseDao.getGuid ( resultSet , columnName , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public void testRemove ( ) { dao.remove ( groupWithNoRunningVms.getId ( ) ) ; org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.get ( groupWithNoRunningVms.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testRemove ( ) { dao.remove ( groupWithNoRunningVms.getId ( ) ) ; org.ovirt.engine.core.common.businessentities.Cluster result = dao.get ( groupWithNoRunningVms.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private boolean bondIsUpdatedAndDoesNotContainCertainSlave ( java.lang.String slaveName , java.lang.String bondName ) { org.ovirt.engine.core.common.businessentities.network.Bond bond = this . bondsMap.get ( bondName ) ; return ( bond != null ) && ( ! ( bond.getSlaves ( ) . contains ( slaveName ) ) ) ; }

Target:
private boolean bondIsUpdatedAndDoesNotContainCertainSlave ( java.lang.String slaveName , java.lang.String bondName ) { org.ovirt.engine.core.common.action.CreateOrUpdateBond createOrUpdateBond = this . createOrUpdateBondBusinessEntityMap.get ( bondName ) ; return ( createOrUpdateBond != null ) && ( ! ( createOrUpdateBond.getSlaves ( ) . contains ( slaveName ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand < org.ovirt.engine.core.common.action.VmDiskOperationParameterBase > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.disk.cinder.ExtendCinderDiskCommand < org.ovirt.engine.core.common.action.VmDiskOperationParameterBase > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return commandCoordinatorUtil.retrieveCommand ( cmdId ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getExternalVMList ( java.lang.String url , java.lang.String username , java.lang.String password ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > convertExternalVm ( java.lang.String url , java.lang.String user , java.lang.String password , java.util.Map vm , java.lang.String jobId ) ;
Source:
protected void endActionOnAllImageGroups ( ) { for ( org.ovirt.engine.core.common.action.VdcActionParametersBase p : org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getParameters ( ) . getImagesParameters ( ) ) { org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getBackend ( ) . EndAction ( getImagesActionType ( ) , p ) ; } }

Target:
protected void endActionOnAllImageGroups ( ) { for ( org.ovirt.engine.core.common.action.VdcActionParametersBase p : org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getParameters ( ) . getImagesParameters ( ) ) { org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getBackend ( ) . endAction ( getImagesActionType ( ) , p ) ; } }
Source:
public boolean isTaskSuccess ( org.ovirt.engine.core.common.job.Step step ) { switch ( step.getStatus ( ) ) { case ABORTED : case FAILED : return false ; case FINISHED : return true ; default : return false ; } }

Target:
public void endStepJob ( org.ovirt.engine.core.common.job.Step step ) { getJobRepository ( ) . updateStep ( step ) ; org.ovirt.engine.core.bll.job.ExecutionContext finalContext = org.ovirt.engine.core.bll.job.ExecutionHandler.createFinalizingContext ( step.getId ( ) ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.endTaskJob ( finalContext , isTaskSuccess ( step.getStatus ( ) ) ) ; }
Source:
public void setUp ( ) { org.mockito.Mockito.when ( mockConstantsManager.getConstants ( ) ) . thenReturn ( mockUiConstants ) ; org.mockito.Mockito.when ( mockUiConstants.thisFieldMustContainIpAddressMsg ( ) ) . thenReturn ( org.ovirt.engine.ui.uicommonweb.validation.IpAddressValidationTest.TEST_MESSAGE ) ; }

Target:
public void setUp ( ) { org.mockito.Mockito.when ( mockConstantsManager.getConstants ( ) ) . thenReturn ( mockUiConstants ) ; org.mockito.Mockito.when ( mockUiConstants.thisFieldMustContainIpv4OrIpv6AddressMsg ( ) ) . thenReturn ( org.ovirt.engine.ui.uicommonweb.validation.IpAddressValidationTest.TEST_MESSAGE ) ; }
Source:
public void existsForNonExistingVmDevice ( ) { org.junit.Assert.assertFalse ( dao.exists ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ) ; }

Target:
public void existsForNonExistingVmDevice ( ) { org.junit.jupiter.api.Assertions.assertFalse ( dao.exists ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ) ; }
Source:
private static org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy getProviderFromStorageDomainStatic ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomainStatic ) { org.ovirt.engine.core.common.businessentities.Provider provider = getDbFacade ( ) . getProviderDao ( ) . get ( new org.ovirt.engine.core.compat.Guid ( storageDomainStatic.getStorage ( ) ) ) ; return org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) . create ( provider ) ; }

Target:
private static org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy getProviderFromStorageDomainStatic ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomainStatic , org.ovirt.engine.core.bll.provider.ProviderProxyFactory providerProxyFactory ) { org.ovirt.engine.core.common.businessentities.Provider provider = getDbFacade ( ) . getProviderDao ( ) . get ( new org.ovirt.engine.core.compat.Guid ( storageDomainStatic.getStorage ( ) ) ) ; return providerProxyFactory.create ( provider ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateNetworkExclusiveOnNics ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator validator = new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkBusinessEntityMap ) ; return validator.validateNetworkExclusiveOnNics ( ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult attachmentsDontReferenceSameNetworkDuplicately ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachments ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachments , networkBusinessEntityMap , networkExclusivenessValidator ) . verifyUserAttachmentsDoesNotReferenceSameNetworkDuplicately ( ) ; }
Source:
public void testGetAllVmTagsWithIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllVmTagsWithIds ( existingTag.gettag_id ( ) . toString ( ) ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllVmTagsWithIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllVmTagsWithIds ( existingTag.gettag_id ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
org.ovirt.engine.core.common.action.VdcReturnValueBase Login ( org.ovirt.engine.core.common.action.LoginUserParameters parameters ) ;

Target:
org.ovirt.engine.core.common.action.VdcReturnValueBase login ( org.ovirt.engine.core.common.action.LoginUserParameters parameters ) ;
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.clusterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.FirstOrDefault ( ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) ) ; prepare2 ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.clusterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) ) ; prepare2 ( ) ; }
Source:
public void flush ( ) { getValue ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel flush ( ) { org.ovirt.engine.ui.uicommonweb.models.ListModel model = driver.flush ( ) ; flush ( model ) ; return model ; }
Source:
public void setnum_of_sockets ( int value ) { this . mVmStatic.setnum_of_sockets ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_sockets" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_cpus" ) ) ; }

Target:
public java.lang.String getVmIp ( ) { return this . vmDynamic.getvm_ip ( ) ; }
Source:
private void OnSystemTreeSelectedItemChanged ( ) { updateActionAvailability ( ) ; }

Target:
private void onSystemTreeSelectedItemChanged ( ) { updateActionAvailability ( ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedNetworksResource getNetworksResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworksResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.ClusterNetworksResource getNetworksResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworksResource ( guid ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.customPropertiesList = ( ( java.util.Map < org.ovirt.engine.core.compat.Version , java.util.Map < java.lang.String , java.lang.String > > ) ( returnValue ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { customPropertiesList = ( ( java.util.Map < org.ovirt.engine.core.compat.Version , java.util.Map < java.lang.String , java.lang.String > > ) ( returnValue ) ) ; }
Source:
public static java.lang.String GetDefaultBondingOption ( ) { return "mode=802.3ad miimon=150" ; }

Target:
public static java.lang.String getDefaultBondingOption ( ) { return "mode=802.3ad miimon=150" ; }
Source:
private org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils mockDevicePropertiesUtils ( ) { return mockDevicePropertiesUtils ( ( "{type=disk;prop={bootable=^(true|false)$}};" + "{type=interface;prop={speed=^([0-9]{1,5})$;duplex=^(full|half)$}}" ) ) ; }

Target:
private org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils mockDevicePropertiesUtils ( ) { return mockDevicePropertiesUtils ( ( "{type=disk;prop={bootable=^(true|false)$}};" + "{type=interface;prop={speed=^([0-9]{1,5})$;duplex=^(full|half)$;debug=([a-z0-9A-Z]*)$}}" ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.storage.Disk > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.diskPermissionSubTabLabel ( ) , 4 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.storage.Disk > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.disk.SubTabDiskPermissionPresenter.constants.diskPermissionSubTabLabel ( ) , 4 , modelProvider ) ; }
Source:
public void testAddWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.VM model = createModel ( null ) ; model.setPermissions ( new org.ovirt.engine.api.model.Permissions ( ) ) ; model.getPermissions ( ) . setClone ( true ) ; doTestAddWithClonePermissions ( model , true ) ; }

Target:
public void testAddWithClonePermissionsDontClone ( ) throws java.lang.Exception { doTestAddWithClonePermissions ( createModel ( null ) , false ) ; }
Source:
protected void endVmCommand ( ) { getSnapshotDao ( ) . updateStatus ( org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getParameters ( ) . getDstSnapshotId ( ) , SnapshotStatus.OK ) ; super . endVmCommand ( ) ; }

Target:
protected void endVmCommand ( ) { getSnapshotDao ( ) . updateStatus ( getSnapshotId ( ) , SnapshotStatus.OK ) ; super . endVmCommand ( ) ; }
Source:
public static java.util.function.Predicate < org.ovirt.api.metamodel.concepts.Concept > named ( org.ovirt.api.metamodel.concepts.Name name ) { return ( x ) -> java.util.Objects.equals ( x.getName ( ) , name ) ; }

Target:
public org.ovirt.api.metamodel.concepts.Annotation getAnnotation ( org.ovirt.api.metamodel.concepts.Name name ) { return annotations.stream ( ) . filter ( org.ovirt.api.metamodel.concepts.Named.named ( name ) ) . findFirst ( ) . orElse ( null ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus value ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatus curStatus = getStoragePoolIsoMapData ( ) . getstatus ( ) ; if ( ( curStatus == null ) || ( curStatus != value ) ) { getStoragePoolIsoMapData ( ) . setstatus ( value ) ; } }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatus curStatus = getStoragePoolIsoMapData ( ) . getstatus ( ) ; if ( ( curStatus == null ) || ( curStatus != status ) ) { getStoragePoolIsoMapData ( ) . setstatus ( status ) ; } }
Source:
private static org.ovirt.engine.core.common.businessentities.DiskImage createVirtIoScsiDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setDiskInterface ( DiskInterface.VirtIO_SCSI ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createVirtIoScsiDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setDiskInterface ( DiskInterface.VirtIO_SCSI ) ; return image ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public void setExitMessage ( java.lang.String value ) { this . mVmDynamic.setExitMessage ( value ) ; }

Target:
public java.lang.Integer getUsageNetworkPercent ( ) { return this . vmStatistics.getusage_network_percent ( ) ; }
Source:
java.util.Map < java.lang.String , java.lang.String > allocate ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VnicProfile vnicProfile , org.ovirt.engine.core.common.businessentities.network.VmNic nic , org.ovirt.engine.core.common.businessentities.VDS host , boolean ignoreSecurityGroups ) ;

Target:
java.util.Map < java.lang.String , java.lang.String > allocate ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VnicProfile vnicProfile , org.ovirt.engine.core.common.businessentities.network.VmNic nic , org.ovirt.engine.core.common.businessentities.VDS host , boolean ignoreSecurityGroups , java.lang.String hostBindingId ) ;
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getSetupNetworksCommand ( ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDS selectedItem ) { currentMainModel = selectedItem ; }
Source:
public void setRngDevice ( org.ovirt.engine.core.common.businessentities.VmRngDevice rngDevice ) { this . rngDevice = rngDevice ; if ( ( this . rngDevice ) != null ) { this . rngDevice.setVmId ( getVmId ( ) ) ; } }

Target:
public void setVmLargeIcon ( java.lang.String vmLargeIcon ) { this . vmLargeIcon = vmLargeIcon ; }