auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPassPkWindow ( true ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.hosts.InstallModel model ) { driver.edit ( model ) ; }
Source:
protected boolean verifyImagesStatus ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages ) { for ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage : diskImages ) { if ( ( diskImage.getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.LOCKED ) ) { return false ; } } return true ; }

Target:
protected boolean verifyImagesStatus ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : diskImages ) { if ( ( diskImage.getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus.LOCKED ) ) { return false ; } } return true ; }
Source:
public void invalidCorrelationId ( ) { org.ovirt.engine.core.common.action.ActionParametersBase parameters = new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ; parameters.setCorrelationId ( "INVALID_CORRELATION_@#$%@#" ) ; org.ovirt.engine.core.common.action.ActionReturnValue result = org.ovirt.engine.core.bll.job.ExecutionHandler.evaluateCorrelationId ( parameters ) ; org.junit.Assert.assertNotNull ( "Correlation id is invalid" , result ) ; org.junit.Assert.assertFalse ( "Correlation id is invalid" , result.getSucceeded ( ) ) ; }

Target:
public void invalidCorrelationId ( ) { org.ovirt.engine.core.common.action.ActionParametersBase parameters = new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ; parameters.setCorrelationId ( "INVALID_CORRELATION_@#$%@#" ) ; org.ovirt.engine.core.common.action.ActionReturnValue result = org.ovirt.engine.core.bll.job.ExecutionHandler.evaluateCorrelationId ( parameters ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result , "Correlation id is invalid" ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.getSucceeded ( ) , "Correlation id is invalid" ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getOs ( ) { return this . getVmOs ( ) ; }

Target:
public int getOs ( ) { return this . getVmOsId ( ) ; }
Source:
public void setAgent ( java.lang.String value ) { fenceAgent = value ; CleanUp ( ) ; }

Target:
public void setAgent ( java.lang.String value ) { fenceAgent = value ; cleanUp ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { super . edit ( iface ) ; activateCheckBox.setVisible ( false ) ; portMirroringEditor.setVisible ( false ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { super . edit ( iface ) ; cardStatusSelectionPanel.setVisible ( false ) ; portMirroringEditor.setVisible ( false ) ; expander.setVisible ( false ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getVds ( org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsDAO ( ) . get ( id ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getVds ( org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsDao ( ) . get ( id ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterGeoRepKeysUpdate ( java.util.List < java.lang.String > geoRepPubKeys , java.lang.String remoteUserName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterGeoRepKeysUpdate ( java.util.List < java.lang.String > geoRepPubKeys , java.lang.String userName ) ;
Source:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getClusterCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }

Target:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }
Source:
public void testGetByNameAndCluster ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndCluster ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , cluster ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME , result.getName ( ) ) ; }

Target:
public void testGetByNameAndCluster ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndCluster ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , cluster ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , result.getName ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalTemplateListModel ) ( model ) ) . setItems ( ( ( java.lang.Iterable ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalTemplateListModel ) ( model ) ) . setItems ( ( ( java.util.Collection ) ( returnValue ) ) ) ; }
Source:
public java.lang.String render ( T storageDomain ) { if ( storageDomain == null ) { return "" ; } return org.ovirt.engine.ui.common.widget.renderer.StorageDomainFreeSpaceRenderer.MESSAGES.storageDomainFreeSpace ( storageDomain.getstorage_name ( ) , storageDomain.getavailable_disk_size ( ) , storageDomain.getTotalDiskSize ( ) ) ; }

Target:
public java.lang.String render ( T storageDomain ) { if ( storageDomain == null ) { return "" ; } return org.ovirt.engine.ui.common.widget.renderer.StorageDomainFreeSpaceRenderer.MESSAGES.storageDomainFreeSpace ( storageDomain.getStorageName ( ) , storageDomain.getAvailableDiskSize ( ) , storageDomain.getTotalDiskSize ( ) ) ; }
Source:
public void setnice_level ( int value ) { this . mVmStatic.setnice_level ( value ) ; }

Target:
public void setConsoleCurrentUserName ( java.lang.String value ) { this . vmDynamic.setConsole_current_user_name ( value ) ; }
Source:
public void removeLabel ( org.ovirt.engine.core.compat.Guid vfsConfigId , java.lang.String label ) { getCallsHandler ( ) . executeModification ( "DeletevfsConfigLabel" , createLabelParametersMapper ( vfsConfigId , label ) ) ; }

Target:
public void addLabel ( org.ovirt.engine.core.compat.Guid vfsConfigId , java.lang.String label ) { getCallsHandler ( ) . executeModification ( "InsertVfsConfigLabel" , createLabelParametersMapper ( vfsConfigId , label ) ) ; }
Source:
public javax.naming.directory.Attributes getDomainAttributes ( org.ovirt.engine.core.bll.adbroker.LdapProviderType general , java.lang.String domain ) { if ( ( attributes ) == null ) { execute ( general , domain ) ; } return attributes ; }

Target:
public javax.naming.directory.Attributes getDomainAttributes ( org.ovirt.engine.core.ldap.LdapProviderType general , java.lang.String domain ) { if ( ( attributes ) == null ) { execute ( general , domain ) ; } return attributes ; }
Source:
public java.lang.Integer getVmPid ( ) { return this . vmDynamic.getvm_pid ( ) ; }

Target:
public boolean getSingleQxlPci ( ) { return this . vmStatic.getSingleQxlPci ( ) ; }
Source:
public void start ( ) { com.google.gwt.core.client.GWT.log ( ( ( "GridTimer[" + ( name ) ) + "].start()" ) ) ; active = true ; scheduleRepeating ( getRefreshRate ( ) ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , getValue ( ) ) ; }

Target:
public void start ( ) { org.ovirt.engine.ui.uicommonweb.models.GridTimer.logger.fine ( ( ( "GridTimer[" + ( name ) ) + "].start()" ) ) ; active = true ; scheduleRepeating ( getRefreshRate ( ) ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , getValue ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.BootSequence getdefault_boot_sequence ( ) { return this . mVmStatic.getdefault_boot_sequence ( ) ; }

Target:
public java.util.Date getExportDate ( ) { return this . vmStatic.getExportDate ( ) ; }
Source:
private boolean isNetworkChanged ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface iface ) { return ! ( getNetworkName ( ) . equals ( iface.getNetworkName ( ) ) ) ; }

Target:
private boolean isNetworkChanged ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) { return ! ( getNetworkName ( ) . equals ( iface.getNetworkName ( ) ) ) ; }
Source:
protected java.lang.String removeModulName ( java.lang.String moduleName ) { return com.google.gwt.core.client.GWT.getModuleBaseURL ( ) . replaceAll ( ( ( com.google.gwt.core.client.GWT.getModuleName ( ) ) + "/" ) , "" ) ; }

Target:
protected abstract void onUpdateDocumentationBaseURL ( ) ;
Source:
public void onScroll ( com.google.gwt.event.dom.client.ScrollEvent event ) { tableContainerHorizontalScrollPosition = tableContainer.getElement ( ) . getScrollLeft ( ) ; updateTableHeaderPosition ( ) ; }

Target:
public void run ( ) { tooltip.hide ( ) ; }
Source:
public void testSave ( ) { dao.save ( newStaticVds ) ; org.ovirt.engine.core.common.businessentities.VdsStatic staticResult = dao.get ( newStaticVds.getId ( ) ) ; assertNotNull ( staticResult ) ; assertEquals ( newStaticVds , staticResult ) ; }

Target:
public void testSave ( ) { dao.save ( newStaticVds ) ; org.ovirt.engine.core.common.businessentities.VdsStatic staticResult = dao.get ( newStaticVds.getId ( ) ) ; org.junit.Assert.assertNotNull ( staticResult ) ; org.junit.Assert.assertEquals ( newStaticVds , staticResult ) ; }
Source:
public void testGetAllForAdGroupByName ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForAdGroupByName ( "philosophers" ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForAdGroupByName ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForAdGroupByName ( "philosophers" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void setUp ( ) { parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; parameters.setVdsId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.SyncLunsInfoForIscsiStorageDomainCommand < org.ovirt.engine.core.common.action.StorageDomainParametersBase > ( parameters ) ) ; }

Target:
public void setUp ( ) { parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; parameters.setVdsId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.SyncLunsInfoForBlockStorageDomainCommand < org.ovirt.engine.core.common.action.StorageDomainParametersBase > ( parameters ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.DiskImage createShareableDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setShareable ( true ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createShareableDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setShareable ( true ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }
Source:
public void validateEnumsWrongModel ( ) { org.ovirt.engine.api.model.WatchDog entity = new org.ovirt.engine.api.model.WatchDog ( ) ; entity.setAction ( "reset" ) ; entity.setModel ( "wrongmodel" ) ; new org.ovirt.engine.api.restapi.resource.validation.WatchdogValidator ( ) . validateEnums ( entity ) ; }

Target:
public void validateEnumsWrongModel ( ) { org.ovirt.engine.api.model.Watchdog entity = new org.ovirt.engine.api.model.Watchdog ( ) ; entity.setAction ( "reset" ) ; entity.setModel ( "wrongmodel" ) ; new org.ovirt.engine.api.restapi.resource.validation.WatchdogValidator ( ) . validateEnums ( entity ) ; }
Source:
java.lang.String getActualUser ( ) { return org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( org.ovirt.engine.core.bll.CreateComputerAccountCommand.getParameters ( ) . getUserName ( ) ) ? org.ovirt.engine.core.bll.CreateComputerAccountCommand.getCurrentUser ( ) . getUserName ( ) : org.ovirt.engine.core.bll.CreateComputerAccountCommand.getParameters ( ) . getUserName ( ) ; }

Target:
java.lang.String getActualUser ( ) { return org.apache.commons.lang.StringUtils.isEmpty ( org.ovirt.engine.core.bll.CreateComputerAccountCommand.getParameters ( ) . getUserName ( ) ) ? org.ovirt.engine.core.bll.CreateComputerAccountCommand.getCurrentUser ( ) . getUserName ( ) : org.ovirt.engine.core.bll.CreateComputerAccountCommand.getParameters ( ) . getUserName ( ) ; }
Source:
protected abstract org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationCommandTarget getTarget ( ) ;

Target:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . cannotAddNicWithUnmanagedNetworkToBond ( ) ; }
Source:
protected org.ovirt.engine.api.model.OpenStackSubnet postPopulate ( org.ovirt.engine.api.model.OpenStackSubnet model ) { model.setIpVersion ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.restapi.types.IpVersion.class ) . value ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.OpenStackSubnet postPopulate ( org.ovirt.engine.api.model.OpenStackSubnet model ) { model.setIpVersion ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.model.IpVersion.class ) . value ( ) ) ; return model ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVdsGroup ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return true ; }

Target:
protected boolean validate ( ) { macPool = org.ovirt.engine.core.bll.ImportVmCommandBase.getMacPool ( ) ; if ( ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVdsGroup ( ) ) == null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return true ; }
Source:
protected boolean IsStorageWithSameNameExists ( ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDao ( ) . getByName ( getStorageDomain ( ) . getstorage_name ( ) ) ) != null ; }

Target:
protected boolean IsStorageWithSameNameExists ( ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDao ( ) . getByName ( getStorageDomain ( ) . getStorageName ( ) ) ) != null ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getDiskAlias ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getLUN_id ( ) ; }
Source:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > devices ) { java.util.Collections.sort ( devices , new org.ovirt.engine.ui.uicommonweb.Linq.StorageDeviceComparer ( ) ) ; setItems ( devices ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > devices ) { java.util.Collections.sort ( devices , Linq.StorageDeviceComparer ) ; setItems ( devices ) ; }
Source:
public void canDoActionFailsUnsupportedFormat ( ) { sp.setcompatibility_version ( Version.v3_0 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_FORMAT_ILLEGAL_HOST ) ; }

Target:
public void canDoActionFailsExportOnBlock ( ) { sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; sd.setStorageType ( StorageType.ISCSI ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DOMAIN_TYPE_CAN_BE_CREATED_ONLY_ON_SPECIFIC_STORAGE_DOMAINS ) ; }
Source:
public void OnTimer ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.LdapGroup > groups = updateGroups ( ) ; refreshAllUserData ( groups ) ; }

Target:
public void OnTimer ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.LdapGroup > groups = org.ovirt.engine.core.bll.DbUserCacheManager.updateGroups ( ) ; refreshAllUserData ( groups ) ; }
Source:
protected org.ovirt.engine.core.common.action.VmDiskOperationParameterBase createParameters ( ) { return new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( diskImageGuid , vmId ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.VmDiskOperationParameterBase createParameters ( ) { return new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( diskVmElement ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { super . Search ( ) ; } else { setItems ( null ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } else { setItems ( null ) ; } }
Source:
public java.lang.String getDiskAlias ( ) { return org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getDiskAlias ( ) ; }

Target:
public java.lang.String getDiskAlias ( ) { return org.apache.commons.lang.StringUtils.isEmpty ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getNewAlias ( ) ) ? org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) . getDiskAlias ( ) : org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getNewAlias ( ) ; }
Source:
public void testGetAllForUserWithInvalidUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsers ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . toString ( ) ) ; assertNotNull ( result ) ; assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsers ( user.getUuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void testIsNetworkInSyncWhenBootProtocolNotStaticNetmaskDifferent ( ) throws java.lang.Exception { initIpConfigurationBootProtocolNetmask ( NetworkBootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4StaticBootProtocolNetmaskEqual ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocolNetmask ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.IPV4_BOOT_PROTOCOL , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void testDiskAliasAdnDescriptionMetaDataShouldNotBeUpdated ( ) { final org.ovirt.engine.core.common.action.UpdateVmDiskParameters parameters = createParameters ( ) ; org.mockito.Mockito.when ( diskDao.get ( diskImageGuid ) ) . thenReturn ( createDiskImage ( ) ) ; initializeCommand ( parameters ) ; mockVdsCommandSetVolumeDescription ( ) ; command.executeVmCommand ( ) ; }

Target:
public void testDiskAliasAdnDescriptionMetaDataShouldNotBeUpdated ( ) { final org.ovirt.engine.core.common.action.VmDiskOperationParameterBase parameters = createParameters ( ) ; org.mockito.Mockito.when ( diskDao.get ( diskImageGuid ) ) . thenReturn ( createDiskImage ( ) ) ; initializeCommand ( parameters ) ; mockVdsCommandSetVolumeDescription ( ) ; command.executeVmCommand ( ) ; }
Source:
protected void executeCommand ( ) { log.infoFormat ( "ConnectDomainToStorage. Before Connect all hosts to pool. Time:{0}" , new java.util.Date ( ) ) ; org.ovirt.engine.core.bll.storage.ConnectDomainToStorageCommand.connectHostsInUpToDomainStorageServer ( ) ; log.infoFormat ( "ConnectDomainToStorage. After Connect all hosts to pool. Time:{0}" , new java.util.Date ( ) ) ; }

Target:
protected void executeCommand ( ) { log.info ( "ConnectDomainToStorage. Before Connect all hosts to pool. Time: {}" , new java.util.Date ( ) ) ; org.ovirt.engine.core.bll.storage.ConnectDomainToStorageCommand.connectHostsInUpToDomainStorageServer ( ) ; log.info ( "ConnectDomainToStorage. After Connect all hosts to pool. Time: {}" , new java.util.Date ( ) ) ; }
Source:
protected void initTemplate ( ) { setupTemplate ( vm.getVmtGuid ( ) , vm.isUseLatestVersion ( ) ) ; }

Target:
protected void initTemplate ( ) { setupReadOnlyTemplateWithVersion ( vm.getVmtGuid ( ) , vm.isUseLatestVersion ( ) ) ; }
Source:
public java.lang.String getMessage ( ) { return java.lang.String.format ( ( ( super . getMessage ( ) ) + " (Failed with VDSM error %1$s and code %2$s)" ) , privateVdsError.getCode ( ) , privateVdsError.getCode ( ) . getValue ( ) ) ; }

Target:
public java.lang.String getMessage ( ) { return java.lang.String.format ( ( ( super . getMessage ( ) ) + " (Failed with error %1$s and code %2$s)" ) , privateVdsError.getCode ( ) , privateVdsError.getCode ( ) . getValue ( ) ) ; }
Source:
public void setusage_network_percent ( java.lang.Integer value ) { this . mVmStatistics.setusage_network_percent ( value ) ; }

Target:
public void setRoundedElapsedTime ( java.lang.Double value ) { this . vmStatistics.setRoundedElapsedTime ( value ) ; }
Source:
public static boolean cpuQoS ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.FeatureSupported.supportedInConfig ( ConfigValues.CpuQosSupported , version ) ; }

Target:
public static boolean reduceDeviceFromStorageDomain ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.FeatureSupported.supportedInConfig ( ConfigValues.ReduceDeviceFromStorageDomain , version ) ; }
Source:
static java.util.ResourceBundle readMessagesFromBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; } catch ( java.util.MissingResourceException e ) { throw new java.lang.RuntimeException ( ( "Could not load audit log messages from the file " + ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ) ) ; } }

Target:
static java.util.ResourceBundle readMessagesFromBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; } catch ( java.util.MissingResourceException e ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log.error ( "Could not load audit log messages from the file {}" , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; throw e ; } }
Source:
protected java.lang.Integer getUserSessionHardTimeout ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.UserSessionHardLimit ) ; }

Target:
protected java.lang.Boolean getDisplayUncaughtUIExceptions ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.DisplayUncaughtUIExceptions ) ; }
Source:
public void setSpiceDriverVersion ( org.ovirt.engine.core.compat.Version spiceDriverVersion ) { if ( ( this . spiceDriverVersion ) != spiceDriverVersion ) { this . spiceDriverVersion = spiceDriverVersion ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "spiceDriverVersion" ) ) ; } }

Target:
public void setSpiceDriverVersion ( org.ovirt.engine.core.compat.Version spiceDriverVersion ) { if ( ( this . spiceDriverVersion ) != spiceDriverVersion ) { this . spiceDriverVersion = spiceDriverVersion ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "spiceDriverVersion" ) ) ; } }
Source:
protected boolean canDoAction ( ) { boolean result = true ; if ( ( org.ovirt.engine.core.bll.HandleVdsCpuFlagsOrClusterChangedCommand.getVds ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.VDS_INVALID_SERVER_ID ) ; result = false ; } return result ; }

Target:
protected boolean validate ( ) { boolean result = true ; if ( ( org.ovirt.engine.core.bll.HandleVdsCpuFlagsOrClusterChangedCommand.getVds ( ) ) == null ) { addValidationMessage ( EngineMessage.VDS_INVALID_SERVER_ID ) ; result = false ; } return result ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageType getstorage_type ( ) { return this . storagePoolType ; }

Target:
public void setConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { this . connection = connection ; }
Source:
public static void RemoveVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllOfTypeForVds ( vdsId , type.getValue ( ) ) ; }

Target:
public static void removeVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllOfTypeForVds ( vdsId , type.getValue ( ) ) ; }
Source:
protected void emitOnMessageReceived ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message message ) { message.trimEndOfMessage ( ) ; headerBuffer = java.nio.ByteBuffer.allocate ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.BUFFER_SIZE ) ; this . ibuff = null ; this . message = null ; processMessage ( message ) ; }

Target:
private void clean ( ) { headerBuffer = java.nio.ByteBuffer.allocate ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.BUFFER_SIZE ) ; this . ibuff = null ; this . message = null ; }
Source:
private void assertCorrectGetVmDataResult ( org.ovirt.engine.core.common.businessentities.VM result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmPoolDaoTest.EXISTING_VM_POOL_ID , result.getVmPoolId ( ) ) ; }

Target:
private void assertCorrectGetVmDataResult ( org.ovirt.engine.core.common.businessentities.VM result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.VmPoolDaoTest.EXISTING_VM_POOL_ID , result.getVmPoolId ( ) ) ; }
Source:
public void setlow_utilization ( int value ) { this . low_utilization = value ; }

Target:
public void setEnableBallooning ( boolean enableBallooning ) { this . enableBallooning = enableBallooning ; }
Source:
public static boolean osNameExists ( java.lang.Integer osId ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.keySet ( ) . contains ( osId ) ; }

Target:
public static java.lang.String getOsName ( java.lang.Integer osId ) { if ( osId == null ) { return "" ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( osId ) ; }
Source:
public static void removeDiskFromVm ( org.ovirt.engine.core.compat.Guid vmGuid , org.ovirt.engine.core.compat.Guid diskId ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDAO ( ) . remove ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( diskId , vmGuid ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBaseDiskDao ( ) . remove ( diskId ) ; }

Target:
public static void removeDiskFromVm ( org.ovirt.engine.core.compat.Guid vmGuid , org.ovirt.engine.core.compat.Guid diskId ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDao ( ) . remove ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( diskId , vmGuid ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBaseDiskDao ( ) . remove ( diskId ) ; }
Source:
public void validateSucceedsOnEmptyClusterEvenWhenGlusterServerHasPeers ( ) throws java.lang.Exception { setupGlusterMock ( false , null , true ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateSucceedsOnEmptyClusterEvenWhenGlusterServerHasPeers ( ) throws java.lang.Exception { setupGlusterMock ( false , null , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }
Source:
protected void updateMemoryBalloon ( ) { if ( ( getModel ( ) . getSelectedCluster ( ) ) != null ) { updateMemoryBalloon ( getModel ( ) . getSelectedCluster ( ) . getcompatibility_version ( ) ) ; } }

Target:
protected void updateMemoryBalloon ( ) { if ( ( getModel ( ) . getSelectedCluster ( ) ) != null ) { updateMemoryBalloon ( getModel ( ) . getSelectedCluster ( ) . getCompatibilityVersion ( ) ) ; } }
Source:
public void setDedicatedVmForVds ( org.ovirt.engine.core.compat.Guid value ) { vmStatic.setDedicatedVmForVds ( value ) ; }

Target:
public org.ovirt.engine.core.compat.Guid fetchDedicatedVmForSingleHost ( ) { return vmStatic.fetchDedicatedVmForSingleHost ( ) ; }
Source:
public void executeBookmarksSearch ( ) { setIsBookmarkInitiated ( true ) ; getSearchCommand ( ) . Execute ( ) ; setIsBookmarkInitiated ( false ) ; }

Target:
public void executeBookmarksSearch ( ) { setIsBookmarkInitiated ( true ) ; getSearchCommand ( ) . execute ( ) ; setIsBookmarkInitiated ( false ) ; }
Source:
public void parseNullString ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceProxySourceType > result = org.ovirt.engine.core.common.utils.pm.FenceProxySourceTypeHelper.parseFromString ( null ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 0 , result.size ( ) ) ; }

Target:
public void parseNullString ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceProxySourceType > result = org.ovirt.engine.core.common.utils.pm.FenceProxySourceTypeHelper.parseFromString ( null ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , result.size ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigSet ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String configValue ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigSet ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String configValue , java.lang.String userName ) ;
Source:
public void executeCommandTest ( ) { addCpuProfileCommand.executeCommand ( ) ; org.mockito.Mockito.verify ( addCpuProfileCommand ) . addPermissions ( ) ; org.junit.Assert.assertTrue ( addCpuProfileCommand.getReturnValue ( ) . getSucceeded ( ) ) ; }

Target:
public void executeCommandTest ( ) { addCpuProfileCommand.executeCommand ( ) ; org.mockito.Mockito.verify ( addCpuProfileCommand ) . addPermissions ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( addCpuProfileCommand.getReturnValue ( ) . getSucceeded ( ) ) ; }
Source:
public java.lang.String ExportVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfVmWriter ( vm , images , version ) ; BuildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }

Target:
public java.lang.String exportVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfVmWriter ( vm , images , version ) ; buildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }
Source:
private boolean isVf ( org.ovirt.engine.core.common.businessentities.HostDevice device ) { return ! ( org.apache.commons.lang.StringUtils.isBlank ( device.getParentPhysicalFunction ( ) ) ) ; }

Target:
private void setVmIdOnVfsDevices ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.compat.Guid vmId , java.util.Set < org.ovirt.engine.core.common.businessentities.HostDevice > vfs ) { for ( org.ovirt.engine.core.common.businessentities.HostDevice vf : vfs ) { hostDeviceDao.setVmIdOnHostDevice ( vf.getId ( ) , vmId ) ; } }
Source:
private org.ovirt.engine.core.compat.Guid GetAnyVdsToRunOn ( ) { return getVdsToRunOn ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getAnyVdsToRunOn ( ) { return getVdsToRunOn ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__STOP ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME ) ; addCanDoActionMessage ( java.lang.String.format ( "$volumeName %1$s" , getGlusterVolumeName ( ) ) ) ; addCanDoActionMessage ( java.lang.String.format ( "$vdsGroup %1$s" , getVdsGroupName ( ) ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__STOP ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME ) ; addCanDoActionMessageVariable ( "volumeName" , getGlusterVolumeName ( ) ) ; addCanDoActionMessageVariable ( "vdsGroup" , getVdsGroupName ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.NetworkInterface FindInterfaceByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.NetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.NetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getName ( ) , name ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface FindInterfaceByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getName ( ) , name ) ) { return i ; } } return null ; }
Source:
protected java.util.List < ? extends java.util.Comparator < org.ovirt.engine.core.common.businessentities.StorageDomain > > getStorageDomainComparators ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > vmDisks ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.bll.memory.sdcomparators.StorageDomainNumberOfVmDisksComparator ( vmDisks ) , org.ovirt.engine.core.bll.memory.MemoryStorageHandler.LOCAL_LAST_COMPARATOR , org.ovirt.engine.core.bll.memory.MemoryStorageHandler.BLOCK_LAST_COMPARATOR , org.ovirt.engine.core.bll.memory.MemoryStorageHandler.AVAILABLE_SIZE_COMPARATOR ) ; }

Target:
protected java.util.List < java.util.Comparator < org.ovirt.engine.core.common.businessentities.StorageDomain > > getStorageDomainComparators ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > vmDisks ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.bll.memory.sdcomparators.StorageDomainNumberOfVmDisksComparator ( vmDisks ) , org.ovirt.engine.core.bll.memory.MemoryStorageHandler.SHARED_FIRST_COMPARATOR , org.ovirt.engine.core.bll.memory.MemoryStorageHandler.FILE_FIRST_COMPARATOR , org.ovirt.engine.core.bll.memory.MemoryStorageHandler.AVAILABLE_SIZE_COMPARATOR ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addNetworks ( org.ovirt.engine.core.common.businessentities.network.Network ... networks ) { if ( ( networks.length ) == 0 ) { return this ; } addNetworks ( java.util.Arrays.asList ( networks ) ) ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addExistingAttachments ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ... existingAttachments ) { if ( existingAttachments == null ) { return this ; } return addExistingAttachments ( java.util.Arrays.asList ( existingAttachments ) ) ; }
Source:
public void nicSriovNotEnabled ( ) { simulateNicExists ( ) ; validator.setOldVfsConfig ( null ) ; org.junit.Assert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NIC_IS_NOT_SRIOV_ENABLED , java.lang.String.format ( VfsConfigValidator.NIC_NAME_REPLACEMENT , nic.getName ( ) ) ) ) ; }

Target:
public void nicSriovNotEnabled ( ) { simulateNicExists ( ) ; validator.setOldVfsConfig ( null ) ; org.junit.Assert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NIC_IS_NOT_SRIOV_ENABLED , java.lang.String.format ( VfsConfigValidator.NIC_NAME_REPLACEMENT , nic.getName ( ) ) ) ) ; }
Source:
public void testValidateGatewayWhenGatewayIsNotSpecified ( ) throws java.lang.Exception { doTestValidateGateway ( "" , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateGatewayIsNotManagementNetworkAndMultipleGatewaysNotSupported ( ) { doTestValidateGateway ( "someGateway" , false , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACH_HAVING_NAME_ILLEGAL_GATEWAY ) ) ; }
Source:
protected void ConcreteStartPollingTask ( ) { org.ovirt.engine.core.bll.EntityMultiAsyncTasks entityInfo = GetEntityMultiAsyncTasks ( ) ; entityInfo.StartPollingTask ( getTaskID ( ) ) ; }

Target:
protected void ConcreteStartPollingTask ( ) { org.ovirt.engine.core.bll.EntityMultiAsyncTasks entityInfo = GetEntityMultiAsyncTasks ( ) ; entityInfo.StartPollingTask ( getVdsmTaskId ( ) ) ; }
Source:
public void unsupportedVersion ( ) { storagePoolWithInvalidVersion ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , org.ovirt.engine.core.bll.utils.VersionSupport.getUnsupportedVersionMessage ( ) ) ; }

Target:
public void unsupportedVersion ( ) { storagePoolWithInvalidVersion ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , org.ovirt.engine.core.bll.utils.VersionSupport.getUnsupportedVersionMessage ( ) ) ; }
Source:
protected void executeIrsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HSMStopTask , new org.ovirt.engine.core.common.vdscommands.HSMTaskGuidBaseVDSCommandParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getParameters ( ) . getTaskId ( ) ) ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { resourceManager.runVdsCommand ( VDSCommandType.HSMStopTask , new org.ovirt.engine.core.common.vdscommands.HSMTaskGuidBaseVDSCommandParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getParameters ( ) . getTaskId ( ) ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { this . setWindow ( null ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { getWindow ( ) . stopProgress ( ) ; setWindow ( null ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getAddParameters ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , org.ovirt.engine.api.model.Nic nic ) { return new org.ovirt.engine.core.common.action.AddVmInterfaceParameters ( parentId , entity ) ; }

Target:
protected org.ovirt.engine.api.model.Nic addParents ( org.ovirt.engine.api.model.Nic nic ) { org.ovirt.engine.api.model.Vm vm = new org.ovirt.engine.api.model.Vm ( ) ; vm.setId ( vmId.toString ( ) ) ; nic.setVm ( vm ) ; return nic ; }
Source:
public org.ovirt.engine.api.model.KatelloErratum get ( ) { return performGet ( VdcQueryType.GetErratumByIdForHost , new org.ovirt.engine.core.common.queries.HostErratumQueryParameters ( asGuid ( hostId ) , org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) ) ) ; }

Target:
public org.ovirt.engine.api.model.KatelloErratum get ( ) { return performGet ( VdcQueryType.GetErratumByIdForHost , new org.ovirt.engine.core.common.queries.HostErratumQueryParameters ( asGuid ( hostId ) , org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) ) , org.ovirt.engine.api.model.Host.class ) ; }
Source:
public void onError ( com.google.gwt.http.client.Request request , java.lang.Throwable exception ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.log ( java.util.logging.Level.WARNING , "Error while requesting Engine REST API" , exception ) ; }

Target:
public void onError ( com.google.gwt.http.client.Request request , java.lang.Throwable exception ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.log ( java.util.logging.Level.WARNING , "Error while dispatching Engine REST API request" , exception ) ; }
Source:
public void onSelectionChange ( com.google.gwt.view.client.SelectionChangeEvent event ) { updateActionButtonCommand ( command , actionButtonInterface , table.getSelectedItems ( ) ) ; }

Target:
public boolean isAccessible ( java.util.List < T > selectedItems ) { return org.ovirt.engine.ui.webadmin.plugin.jsni.JsFunctionResultHelper.invokeAndGetResultAsBoolean ( actionButtonInterface.isAccessible ( ) , org.ovirt.engine.ui.webadmin.plugin.entity.EntityObject.arrayFrom ( selectedItems ) , null , true ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getVdsToRun ( org.ovirt.engine.core.common.businessentities.VDSType type , org.ovirt.engine.core.compat.Guid groupId , org.ovirt.engine.core.common.businessentities.VDSStatus status , int minNrOfCpus ) { return null ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllOfType ( org.ovirt.engine.core.common.businessentities.VDSType vds ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > found = vdsStaticDAO.findByCriteria ( org.hibernate.criterion.Restrictions.eq ( "vdsType" , vds.getValue ( ) ) ) ; return convertToVdsList ( found ) ; }
Source:
private void setType ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { privateType = value ; }

Target:
private void setRequiresAuthentication ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { privateRequiresAuthentication = value ; }
Source:
public org.ovirt.engine.core.compat.Guid gettag_id ( ) { return this . id ; }

Target:
public org.ovirt.engine.core.compat.Guid getTagId ( ) { return this . id ; }
Source:
public java.lang.String getDisplayIp ( ) { return this . vmDynamic.getDisplayIp ( ) ; }

Target:
public java.lang.String getGuestOsCodename ( ) { return vmDynamic.getGuestOsCodename ( ) ; }
Source:
public void canDoAction_duplicateVm_Test ( ) { affinityGroup.getEntityIds ( ) . add ( vmId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DUPLICTE_VM_IN_AFFINITY_GROUP ) ; }

Target:
public void validate_duplicateVm_Test ( ) { affinityGroup.getEntityIds ( ) . add ( vmId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DUPLICTE_VM_IN_AFFINITY_GROUP ) ; }
Source:
private boolean isSysprepUsed ( final org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( vm.useSysPrep ( ) ) && ( vm.getvm_os ( ) . isWindows ( ) ) ) && ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( vm.getFloppyPath ( ) ) ) ; }

Target:
private boolean isSysprepUsed ( final org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( vm.useSysPrep ( ) ) && ( vm.getvm_os ( ) . isWindows ( ) ) ) && ( org.apache.commons.lang.StringUtils.isEmpty ( vm.getFloppyPath ( ) ) ) ; }
Source:
public void isRoleNetworkDisplay ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createNetworkCluster ( true , false , false ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.isRoleNetwork ( networkCluster ) ) ; }

Target:
public void isRoleNetworkDisplay ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createNetworkCluster ( true , false , false ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.isRoleNetwork ( networkCluster ) ) ; }
Source:
public com.google.gwt.event.shared.HandlerRegistration addClickHandler ( com.google.gwt.event.dom.client.ClickHandler handler ) { return addDomHandler ( handler , com.google.gwt.event.dom.client.ClickEvent.getType ( ) ) ; }

Target:
public org.gwtbootstrap3.client.ui.ListGroupItem asListGroupItem ( ) { return listGroupItem ; }
Source:
public void validateEnums ( org.ovirt.engine.api.model.WatchDog entity ) { if ( entity != null ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.WatchdogAction.class , entity.getAction ( ) , true ) ; org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.WatchdogModel.class , entity.getModel ( ) , true ) ; } }

Target:
public void validateEnums ( org.ovirt.engine.api.model.Watchdog entity ) { if ( entity != null ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.WatchdogAction.class , entity.getAction ( ) , true ) ; org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.WatchdogModel.class , entity.getModel ( ) , true ) ; } }