auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static boolean entityHasTasks ( org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . entityHasTasks ( id ) ; }

Target:
public static boolean entityHasTasks ( org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . entityHasTasks ( id ) ; }
Source:
public void storageSpaceNotWithinThreshold ( ) { setupForStorageTests ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) . when ( multipleSdValidator ) . allDomainsWithinThresholds ( ) ; org.junit.Assert.assertFalse ( cmd.imagesRelatedChecks ( ) ) ; }

Target:
public void storageSpaceNotWithinThreshold ( ) { setupForStorageTests ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) . when ( multipleSdValidator ) . allDomainsWithinThresholds ( ) ; org.junit.Assert.assertFalse ( cmd.imagesRelatedChecks ( ) ) ; }
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.test ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.test ( storageDomain ) ) ; }
Source:
public final void removeSessionOnLogout ( java.lang.String sessionId ) { removeSessionImpl ( sessionId , Acct.ReportReason.PRINCIPAL_LOGOUT , "Prinicial %1$s has performed logout" , getPrincipalName ( sessionId ) ) ; }

Target:
public java.lang.String getUserName ( java.lang.String sessionId ) { return java.lang.String.format ( "%s@%s" , getPrincipalName ( sessionId ) , ( ( getProfile ( sessionId ) ) != null ? getProfile ( sessionId ) . getName ( ) : "N/A" ) ) ; }
Source:
public int getVmsCoresCount ( ) { return vmsCoresCount ; }

Target:
public void perform ( ) { try { lockVmsManager ( ) ; refreshVmStats ( ) ; saveVmsToDb ( ) ; afterVMsRefreshTreatment ( ) ; vdsManager.updateMetrics ( memCommited , vmsCoresCount ) ; } finally { unlockVmsManager ( ) ; } }
Source:
public void updateStartedExecutionEntitiesToUnknown ( java.util.Date updateTime ) { updateQueryGetResult ( getEntityManager ( ) . createNativeQuery ( "select cast(UpdateStartedExecutionEntitiesToUnknown as text) from UpdateStartedExecutionEntitiesToUnknown(?)" ) . setParameter ( 1 , updateTime ) ) ; }

Target:
public void updateStartedExecutionEntitiesToUnknown ( java.util.Date updateTime ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "end_time" , updateTime ) ; getCallsHandler ( ) . executeModification ( "UpdateStartedExecutionEntitiesToUnknown" , parameterSource ) ; }
Source:
public void addToSlot ( java.lang.Object slot , com.google.gwt.user.client.ui.Widget content ) { if ( slot == ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.basic.MainTabBasicListPresenterWidget.TYPE_VmListContent ) ) { vmPanel.add ( content ) ; } else { super . addToSlot ( slot , content ) ; } }

Target:
public void addToSlot ( java.lang.Object slot , com.google.gwt.user.client.ui.IsWidget content ) { if ( slot == ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.basic.MainTabBasicListPresenterWidget.TYPE_VmListContent ) ) { vmPanel.add ( content ) ; } else { super . addToSlot ( slot , content ) ; } }
Source:
public javax.ws.rs.core.Response commitSnapshot ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.RestoreAllSnapshotsParameters restoreParams = new org.ovirt.engine.core.common.action.RestoreAllSnapshotsParameters ( guid , org.ovirt.engine.core.common.businessentities.SnapshotActionEnum.COMMIT ) ; javax.ws.rs.core.Response response = doAction ( VdcActionType.RestoreAllSnapshots , restoreParams , action ) ; return response ; }

Target:
public javax.ws.rs.core.Response commitSnapshot ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.RestoreAllSnapshotsParameters restoreParams = new org.ovirt.engine.core.common.action.RestoreAllSnapshotsParameters ( guid , org.ovirt.engine.core.common.businessentities.SnapshotActionEnum.COMMIT ) ; javax.ws.rs.core.Response response = doAction ( ActionType.RestoreAllSnapshots , restoreParams , action ) ; return response ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml alertEventButton ( com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String text , java.lang.String start , java.lang.String stretch , java.lang.String end , java.lang.String contentStyleName ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml imageTextSetupNetworkUsage ( com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String text , com.google.gwt.safecss.shared.SafeStyles color ) ;
Source:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultNicType ( ) ) ; }

Target:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultNicType ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VmInterfaceType > ) ( getNicType ( ) . getItems ( ) ) ) ) ) ; }
Source:
protected void onHide ( ) { super . onHide ( ) ; ( org.ovirt.engine.ui.common.presenter.AbstractPopupPresenterWidget.activePopups ) -- ; }

Target:
public void execute ( ) { org.ovirt.engine.ui.common.utils.ElementTooltipUtils.reapPopupContentTooltips ( ) ; }
Source:
protected void initParametersForPassthroughVnics ( ) { org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . setPassthroughVnicToVfMap ( getVnicToVfMap ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ) ; vfScheduler.cleanVmData ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ; }

Target:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > flushPassthroughVnicToVfMap ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > passthroughVnicToVf = getVnicToVfMap ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; vfScheduler.cleanVmData ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ; return passthroughVnicToVf ; }
Source:
public void testAllEmpty ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_LOG_LEVEL , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }

Target:
public void testVerbosityLevelZero ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL0 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.IGNORE_SSH_CONFIG , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }
Source:
public void setForceLabel ( java.lang.String forceLabel ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( getForceLabel ( ) , forceLabel ) ) ) { this . forceLabel = forceLabel ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ForceLabel" ) ) ; } }

Target:
public void setForceLabel ( java.lang.String forceLabel ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( getForceLabel ( ) , forceLabel ) ) ) { this . forceLabel = forceLabel ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ForceLabel" ) ) ; } }
Source:
private void assertDiskToDiskVmElementsEquality ( ) { org.junit.Assert.assertTrue ( org.apache.commons.collections.CollectionUtils.isEqualCollection ( multipleDiskVmElementValidator.diskToDiskVmElements.entrySet ( ) , diskToDiskVmElements.entrySet ( ) ) ) ; }

Target:
private void assertDiskToDiskVmElementsEquality ( ) { org.junit.jupiter.api.Assertions.assertTrue ( org.apache.commons.collections.CollectionUtils.isEqualCollection ( multipleDiskVmElementValidator.diskToDiskVmElements.entrySet ( ) , diskToDiskVmElements.entrySet ( ) ) ) ; }
Source:
public org.ovirt.engine.api.model.InstanceType get ( ) { return performGet ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.InstanceType get ( ) { org.ovirt.engine.api.model.InstanceType instanceType = performGet ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( this , instanceType ) ; return instanceType ; }
Source:
private org.ovirt.engine.core.compat.Guid getMaintenanceCmdId ( java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { if ( ( maintenanceCmdId ) == null ) { maintenanceCmdId = findChildCommandByActionType ( VdcActionType.MaintenanceNumberOfVdss , childCmdIds ) ; } return maintenanceCmdId ; }

Target:
private org.ovirt.engine.core.compat.Guid getHostUpgradeInternalCmdId ( java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { if ( ( hostUpgradeInternalCmdId ) == null ) { hostUpgradeInternalCmdId = findChildCommandByActionType ( ActionType.UpgradeHostInternal , childCmdIds ) ; } return hostUpgradeInternalCmdId ; }
Source:
public void setValues ( java.util.List < org.ovirt.api.metamodel.concepts.EnumValue > newValues ) { values.clear ( ) ; values.addAll ( newValues ) ; }

Target:
public java.util.stream.Stream < org.ovirt.api.metamodel.concepts.EnumValue > values ( ) { return values.stream ( ) ; }
Source:
org.ovirt.engine.core.common.eventqueue.EventResult masterDomainNotOperational ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId ) ;

Target:
org.ovirt.engine.core.common.eventqueue.EventResult masterDomainNotOperational ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId , boolean isReconstructToInactiveDomains ) ;
Source:
public void testUpdateStatus ( ) { dao.updateStatus ( org.ovirt.engine.core.dao.ImageDaoTest.EXISTING_IMAGE_ID , ImageStatus.LOCKED ) ; org.ovirt.engine.core.common.businessentities.Image imageFromDb = dao.get ( org.ovirt.engine.core.dao.ImageDaoTest.EXISTING_IMAGE_ID ) ; org.junit.Assert.assertNotNull ( imageFromDb ) ; org.junit.Assert.assertEquals ( ImageStatus.LOCKED , imageFromDb.getStatus ( ) ) ; }

Target:
public void testUpdateStatus ( ) { dao.updateStatus ( org.ovirt.engine.core.dao.ImageDaoTest.EXISTING_IMAGE_ID , ImageStatus.LOCKED ) ; org.ovirt.engine.core.common.businessentities.storage.Image imageFromDb = dao.get ( org.ovirt.engine.core.dao.ImageDaoTest.EXISTING_IMAGE_ID ) ; org.junit.Assert.assertNotNull ( imageFromDb ) ; org.junit.Assert.assertEquals ( ImageStatus.LOCKED , imageFromDb.getStatus ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { saveNewOptions ( existingVolume , newOptionsSortedList ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { updateExistingOptions ( existingVolume , existingOptionsSortedList ) ; return null ; }
Source:
public java.lang.String getRelativePath ( ) { java.lang.String path = getPath ( ) ; return path.startsWith ( "/" ) ? path.substring ( 1 ) : path ; }

Target:
public static java.lang.String getRelativePath ( ) { java.lang.String path = org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getPath ( ) ; return path.startsWith ( "/" ) ? path.substring ( 1 ) : path ; }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity ) { return createIdParameterMapper ( entity.getId ( ) ) . addValue ( "gluster_server_uuid" , entity.getGlusterServerUuid ( ) ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity ) { return createIdParameterMapper ( entity.getId ( ) ) . addValue ( "gluster_server_uuid" , entity.getGlusterServerUuid ( ) ) . addValue ( "peer_status" , org.ovirt.engine.core.common.utils.EnumUtils.nameOrNull ( entity.getPeerStatus ( ) ) ) ; }
Source:
protected void updateCustomPropertySheet ( ) { if ( ( getModel ( ) . getSelectedCluster ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getModel ( ) . getSelectedCluster ( ) ; updateCustomPropertySheet ( cluster.getCompatibilityVersion ( ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = this ; behavior.maxThreadsPerCore = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.totalCpuCoresChanged ( ) ; }
Source:
public void testWrongPassword ( ) throws java.lang.Exception { sshDialog.setKeyPair ( null ) ; sshDialog.setPassword ( "bad" ) ; sshDialog.connect ( ) ; sshDialog.authenticate ( ) ; }

Target:
public void testWrongPassword ( ) throws java.lang.Exception { sshDialog.setKeyPair ( null ) ; sshDialog.setPassword ( "bad" ) ; sshDialog.connect ( ) ; org.junit.jupiter.api.Assertions.assertThrows ( javax.naming.AuthenticationException.class , sshDialog :: authenticate ) ; }
Source:
public void testStorageDomainForMemoryIsValid ( ) { org.junit.Assert.assertTrue ( filter.getPredicate ( disksList ) . eval ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsValid ( ) { org.junit.Assert.assertTrue ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatic loadStorageDomainStaticData ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getStorageDomainStaticDao ( ) . get ( domainId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatic loadStorageDomainStaticData ( org.ovirt.engine.core.compat.Guid domainId ) { return storageDomainStaticDao.get ( domainId ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getguest_cur_user_id ( ) { return this . mVmDynamic.getguest_cur_user_id ( ) ; }

Target:
public java.util.Date getGuestLastLoginTime ( ) { return this . vmDynamic.getguest_last_login_time ( ) ; }
Source:
private static java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > getQuotaVdsGroup ( org.ovirt.engine.core.common.businessentities.QuotaVdsGroup quotaVdsGroup ) { java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > quotaVdsGroupList = new java.util.ArrayList < > ( ) ; if ( quotaVdsGroup != null ) { quotaVdsGroupList.add ( quotaVdsGroup ) ; } return quotaVdsGroupList ; }

Target:
private static java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > getQuotaCluster ( org.ovirt.engine.core.common.businessentities.QuotaCluster quotaCluster ) { java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > quotaClusterList = new java.util.ArrayList < > ( ) ; if ( quotaCluster != null ) { quotaClusterList.add ( quotaCluster ) ; } return quotaClusterList ; }
Source:
public static void RunQuery ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , final org.ovirt.engine.ui.frontend.AsyncQuery callback , final boolean isPublic ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( queryType , parameters , callback , isPublic ) ; }

Target:
public static org.ovirt.engine.ui.frontend.Frontend getInstance ( ) { return org.ovirt.engine.ui.frontend.Frontend.InstanceHolder.instance ; }
Source:
public void canDoActionDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setOvfStore ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }

Target:
public void canDoActionDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( 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.GlusterGeoRepSession > ( ) ; }
Source:
public void testFromBackendToRest ( ) { testStatusMapping ( GlusterStatus.UP , GlusterState.UP ) ; testStatusMapping ( GlusterStatus.DOWN , GlusterState.DOWN ) ; }

Target:
public void testFromBackendToRest ( ) { testStatusMapping ( GlusterStatus.UP , GlusterVolumeStatus.UP ) ; testStatusMapping ( GlusterStatus.DOWN , GlusterVolumeStatus.DOWN ) ; }
Source:
private void addHotUnplugColumn ( ) { hotUnplugColumn = new org.ovirt.engine.ui.common.widget.uicommon.vm.HotUnplugColumn ( ) ; getTable ( ) . addColumn ( hotUnplugColumn , org.ovirt.engine.ui.common.widget.uicommon.vm.VmDevicesListModelTable.constants.hotUnplug ( ) , "83px" ) ; }

Target:
private void addHotUnplugColumn ( ) { hotUnplugColumn = new org.ovirt.engine.ui.common.widget.uicommon.vm.HotUnplugColumn ( ) ; getTable ( ) . addColumn ( hotUnplugColumn , org.ovirt.engine.ui.common.widget.uicommon.vm.VmDevicesListModelTable.constants.hotUnplug ( ) , "98px" ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.storage.ReconstructMasterDomainCommand.getSucceeded ( ) ? _isLastMaster ? org.ovirt.engine.core.common.AuditLogType.RECONSTRUCT_MASTER_FAILED_NO_MASTER : org.ovirt.engine.core.common.AuditLogType.RECONSTRUCT_MASTER_DONE : org.ovirt.engine.core.common.AuditLogType.RECONSTRUCT_MASTER_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.storage.ReconstructMasterDomainCommand.getSucceeded ( ) ? isLastMaster ? org.ovirt.engine.core.common.AuditLogType.RECONSTRUCT_MASTER_FAILED_NO_MASTER : org.ovirt.engine.core.common.AuditLogType.RECONSTRUCT_MASTER_DONE : org.ovirt.engine.core.common.AuditLogType.RECONSTRUCT_MASTER_FAILED ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult updatesAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NO_AVAILABLE_UPDATES_FOR_HOST ) . unless ( ( ( host.isOvirtNode ( ) ) || ( host.isUpdateAvailable ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult updatesAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NO_AVAILABLE_UPDATES_FOR_HOST ) . unless ( ( ( host.isOvirtNode ( ) ) || ( host.isUpdateAvailable ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > allForNetwork = getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) ; return new org.ovirt.engine.core.bll.validator.NetworkValidator.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__HOST , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__HOSTS ) . getNetworkInUse ( getEntitiesNames ( allForNetwork ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getVms ( ) , EngineMessage.VAR__ENTITIES__VMS , EngineMessage.VAR__ENTITIES__VM ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.Erratum > getErrataForHost ( org.ovirt.engine.core.common.businessentities.VdsStatic host ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.Erratum > getErrataForHost ( java.lang.String hostName ) ;
Source:
private void setNewMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.SPMAsyncTask > asyncTaskMap ) { _tasks = asyncTaskMap ; logChangedMap = true ; org.ovirt.engine.core.bll.AsyncTaskManager.log.infoFormat ( "Setting new tasks map. The map contains now {0} tasks" , _tasks.size ( ) ) ; }

Target:
private void setNewMap ( java.util.concurrent.ConcurrentMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.SPMAsyncTask > asyncTaskMap ) { _tasks = asyncTaskMap ; logChangedMap = true ; org.ovirt.engine.core.bll.AsyncTaskManager.log.infoFormat ( "Setting new tasks map. The map contains now {0} tasks" , _tasks.size ( ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { org.junit.Assert.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { org.junit.jupiter.api.Assertions.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.network.NetworkView selectedItem ) { org.ovirt.engine.ui.webadmin.section.main.view.tab.network.SubTabNetworkGeneralView.Driver.driver.edit ( getDetailModel ( ) ) ; formBuilder.showForm ( getDetailModel ( ) ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.network.NetworkView selectedItem ) { driver.edit ( getDetailModel ( ) ) ; formBuilder.showForm ( getDetailModel ( ) ) ; }
Source:
protected void postSaveAction ( org.ovirt.engine.core.compat.Guid networkGuid , boolean succeeded ) { if ( succeeded ) { cancel ( ) ; } StopProgress ( ) ; }

Target:
protected void postSaveAction ( org.ovirt.engine.core.compat.Guid networkGuid , boolean succeeded ) { if ( succeeded ) { cancel ( ) ; } stopProgress ( ) ; }
Source:
public void testRemoveIfUnusedWithUsed ( ) { dao.removeIfUnused ( FixturesTool.SMALL_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon survivor = dao.get ( FixturesTool.SMALL_ICON_ID ) ; org.junit.Assert.assertEquals ( FixturesTool.SMALL_ICON_ID , survivor.getId ( ) ) ; }

Target:
public void testRemoveIfUnusedWithUsed ( ) { dao.removeIfUnused ( FixturesTool.SMALL_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon survivor = dao.get ( FixturesTool.SMALL_ICON_ID ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.SMALL_ICON_ID , survivor.getId ( ) ) ; }
Source:
protected void saveDiskImageDynamic ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.DiskImageDynamic diskDynamic = new org.ovirt.engine.core.common.businessentities.DiskImageDynamic ( ) ; diskDynamic.setId ( disk.getImageId ( ) ) ; diskDynamic.setactual_size ( disk.getActualSizeInBytes ( ) ) ; getDiskImageDynamicDAO ( ) . save ( diskDynamic ) ; }

Target:
protected void saveDiskImageDynamic ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.DiskImageDynamic diskDynamic = new org.ovirt.engine.core.common.businessentities.DiskImageDynamic ( ) ; diskDynamic.setId ( disk.getImageId ( ) ) ; diskDynamic.setactual_size ( disk.getActualSizeInBytes ( ) ) ; org.ovirt.engine.core.bll.ImportVmCommand.getDiskImageDynamicDAO ( ) . save ( diskDynamic ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkProvidedForPortMirroring ( ) { return ( ( nic.getNetworkName ( ) ) == null ) && ( nic.isPortMirroring ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.PORT_MIRRORING_REQUIRES_NETWORK ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkProvidedForPortMirroring ( ) { return ( ( nic.getNetworkName ( ) ) == null ) && ( nic.isPortMirroring ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.PORT_MIRRORING_REQUIRES_NETWORK ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void testNotContainsUnregisteredEntities ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_DOMAIN_ID ) ; org.junit.Assert.assertFalse ( storageDomain.isContainsUnregisteredEntities ( ) ) ; }

Target:
public void testGetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , FixturesTool.STORAGE_POOL_NFS ) ; }
Source:
private void handleFinalizingSuccess ( final org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand < T > . StateContext context ) { log.info ( "Finalizing successful upload to {}" , getUploadDescription ( ) ) ; org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.unLockImage ( ) ; stopImageTransferSession ( context.entity ) ; updateEntityPhase ( ImageTransferPhase.FINISHED_SUCCESS ) ; }

Target:
private void handleFinalizingSuccess ( final org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand < T > . StateContext context ) { log.info ( "Finalizing successful upload to {}" , getUploadDescription ( ) ) ; stopImageTransferSession ( context.entity ) ; setVolumeLegalityInStorage ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.LEGAL_IMAGE ) ; org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.unLockImage ( ) ; updateEntityPhase ( ImageTransferPhase.FINISHED_SUCCESS ) ; }
Source:
public void validateNonExternalStepFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateNonExistingStepFails ( ) throws java.lang.Exception { parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExistingStepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }
Source:
java.lang.String vNumaName ( java.lang.String name , int index ) ;

Target:
java.lang.String principalLoginName ( java.lang.String name ) ;
Source:
public void Edit ( ) { commandType = org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType.Edit ; org.ovirt.engine.core.common.businessentities.Role role = ( ( org.ovirt.engine.core.common.businessentities.Role ) ( getSelectedItem ( ) ) ) ; InitRoleDialog ( role ) ; }

Target:
public void edit ( ) { commandType = org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType.Edit ; org.ovirt.engine.core.common.businessentities.Role role = ( ( org.ovirt.engine.core.common.businessentities.Role ) ( getSelectedItem ( ) ) ) ; initRoleDialog ( role ) ; }
Source:
public void setConsoleAddressPartiallyOverridden ( java.lang.Boolean consoleAddressPartiallyOverridden ) { if ( ( this . consoleAddressPartiallyOverridden ) != consoleAddressPartiallyOverridden ) { this . consoleAddressPartiallyOverridden = consoleAddressPartiallyOverridden ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "consoleAddressPartiallyOverridden" ) ) ; } }

Target:
public void setConsoleAddressPartiallyOverridden ( java.lang.Boolean consoleAddressPartiallyOverridden ) { if ( ( this . consoleAddressPartiallyOverridden ) != consoleAddressPartiallyOverridden ) { this . consoleAddressPartiallyOverridden = consoleAddressPartiallyOverridden ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "consoleAddressPartiallyOverridden" ) ) ; } }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < T > event ) { if ( ctx.canSetInModel ( ) ) { ctx.setInModel ( event.getValue ( ) ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < T > event ) { setInModel ( ctx , event.getSource ( ) , event.getValue ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.EngineSession session ) { return java.lang.Long.toString ( session.getId ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.UserSession session ) { return java.lang.Long.toString ( session.getId ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.IconWithOsDefault getValue ( ) { if ( ( ( icon ) == null ) || ( ( defaultIcon ) == null ) ) { return null ; } return new org.ovirt.engine.ui.uicommonweb.models.vms.IconWithOsDefault ( icon , defaultIcon , smallIconId ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.IconWithOsDefault getValue ( ) { if ( ( ( icon ) == null ) || ( ( defaultIcon ) == null ) ) { return null ; } return new org.ovirt.engine.ui.uicommonweb.models.vms.IconWithOsDefault ( icon , defaultIcon , smallIconId , validationResult ) ; }
Source:
public void testUpdateFieldsQuotaEnforcementType ( ) { vm.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.DISABLED ) ; vmStatic.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.SOFT_ENFORCEMENT ) ; org.junit.Assert.assertTrue ( "Quota enforcement type should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }

Target:
public void testUpdateFieldsQuotaEnforcementType ( ) { vm.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.DISABLED ) ; vmStatic.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.SOFT_ENFORCEMENT ) ; junit.framework.Assert.assertTrue ( "Quota enforcement type should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }
Source:
private static java.lang.String generateDiskAliasJsonEntry ( java.lang.String diskAlias ) { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateJsonEntry ( "DiskAlias" , diskAlias ) ; }

Target:
private static java.lang.String generateDiskAliasJsonEntry ( java.lang.String diskAlias ) { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) . generateJsonField ( "DiskAlias" , diskAlias ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( actionType , parameters ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters , context.clone ( ) . withExecutionContext ( executionContext ) ) ; }
Source:
private void mapIsEmpty ( final java.util.Map < java.lang.String , java.lang.String > map ) { junit.framework.Assert.assertEquals ( 0 , map.size ( ) ) ; }

Target:
private void mapIsEmpty ( final java.util.Map < java.lang.String , java.lang.String > map ) { org.junit.Assert.assertEquals ( 0 , map.size ( ) ) ; }
Source:
public static java.lang.String getMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { java.lang.String value = "" ; if ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.containsKey ( logType ) ) { value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.get ( logType ) ; } return value ; }

Target:
public static java.lang.String getMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { java.lang.String message = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.get ( logType ) ; return message == null ? "" : message ; }
Source:
public void validAuthenticationNotRequired ( ) { org.mockito.Mockito.when ( provider.isRequiringAuthentication ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertThat ( validator.validateAuthentication ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validAuthenticationNotRequired ( ) { org.mockito.Mockito.when ( provider.isRequiringAuthentication ( ) ) . thenReturn ( false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateAuthentication ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void handleError ( ) { addCanDoActionMessage ( org.ovirt.engine.core.common.errors.EngineMessage.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__TYPE__HOST ) ; addCanDoActionMessage ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__RESTART ) ; log.error ( "Failed to run RestartVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.pm.RestartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { addValidationMessage ( org.ovirt.engine.core.common.errors.EngineMessage.VDS_FENCE_OPERATION_FAILED ) ; addValidationMessage ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__TYPE__HOST ) ; addValidationMessage ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__RESTART ) ; log.error ( "Failed to run RestartVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.pm.RestartVdsCommand.getVdsName ( ) ) ; }
Source:
private void showDialog ( org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel model ) { parentModel.getParentListModel ( ) . setWindow ( null ) ; parentModel.getParentListModel ( ) . setWindow ( model ) ; }

Target:
private void setDiskModel ( org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel model ) { if ( ( parentModel.getParentListModel ( ) ) instanceof org.ovirt.engine.ui.uicommonweb.models.vms.HasDiskWindow ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.HasDiskWindow ) ( parentModel.getParentListModel ( ) ) ) . setDiskWindow ( model ) ; } }
Source:
public void ResetData ( ) { nics = null ; disks = null ; cluster = null ; }

Target:
public void resetData ( ) { nics = null ; disks = null ; cluster = null ; }
Source:
public void testNotExternalNetworkSucceedsForNonExternalNetwork ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNotExternalNetworkSucceedsForNonExternalNetwork ( ) { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public int getvmt_child_count ( ) { return this . vmt_child_countField ; }

Target:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getVdsGroupCompatibilityVersion ( ) , value ) ) { this . vdsGroupCompatibilityVersion = value ; } }
Source:
private void ProcessVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getstatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { DecreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmCommand.getVds ( ) . getId ( ) ) ; } }

Target:
private void processVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getstatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmCommand.getVds ( ) . getId ( ) ) ; } }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getnum_of_cpus ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getNumOfCpus ( ) ) ; }
Source:
private org.ovirt.engine.core.dao.SnapshotDao getSnapshotDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getSnapshotDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.SnapshotDao getSnapshotDao ( ) { return org.ovirt.engine.core.bll.RemoveSnapshotCommand.getDbFacade ( ) . getSnapshotDao ( ) ; }
Source:
public org.ovirt.engine.api.model.InstanceType update ( org.ovirt.engine.api.model.InstanceType incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmTemplate , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class ) , VdcActionType.UpdateVmTemplate , new org.ovirt.engine.api.restapi.resource.BackendInstanceTypeResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.InstanceType update ( org.ovirt.engine.api.model.InstanceType incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetInstanceType , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class ) , VdcActionType.UpdateVmTemplate , new org.ovirt.engine.api.restapi.resource.BackendInstanceTypeResource.UpdateParametersProvider ( ) ) ; }
Source:
public void markAsValid ( ) { valid = true ; getValidatedWidgetStyle ( ) . setBorderColor ( "none" ) ; }

Target:
public void markAsValid ( ) { valid = true ; if ( usePatternfly ) { removeStyleName ( org.ovirt.engine.ui.common.widget.AbstractValidatedWidget.HAS_ERROR ) ; } else { getValidatedWidgetStyle ( ) . setBorderColor ( "none" ) ; } }
Source:
private boolean isImportDataDomainEnabled ( org.ovirt.engine.core.common.businessentities.StoragePool dataCenter ) { boolean ovfStoreOnAnyDomainEnabled = ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.ImportDataStorageDomain , dataCenter.getcompatibility_version ( ) . getValue ( ) ) ) ) ; return ovfStoreOnAnyDomainEnabled ; }

Target:
private boolean isImportDataDomainEnabled ( org.ovirt.engine.core.common.businessentities.StoragePool dataCenter ) { boolean ovfStoreOnAnyDomainEnabled = ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.ImportDataStorageDomain , dataCenter.getCompatibilityVersion ( ) . getValue ( ) ) ) ) ; return ovfStoreOnAnyDomainEnabled ; }
Source:
public java.lang.Void runInTransaction ( ) { _vdsManager.setStatus ( parameters.getStatus ( ) , vds ) ; _vdsManager.UpdateDynamicData ( vds.getDynamicData ( ) ) ; _vdsManager.UpdateStatisticsData ( vds.getStatisticsData ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { _vdsManager.setStatus ( parameters.getStatus ( ) , vds ) ; _vdsManager.UpdateDynamicData ( vds.getDynamicData ( ) ) ; _vdsManager.updateStatisticsData ( vds.getStatisticsData ( ) ) ; return null ; }
Source:
public void testSave ( ) { dao.save ( newProfile ) ; org.ovirt.engine.core.common.businessentities.UserProfile result = dao.get ( newProfile.getId ( ) ) ; org.junit.Assert.assertEquals ( newProfile , result ) ; }

Target:
public void testSave ( ) { dao.save ( newProfile ) ; org.ovirt.engine.core.common.businessentities.UserProfile result = dao.get ( newProfile.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( newProfile , result ) ; }
Source:
protected void endWithFailure ( ) { RemoveNetwork ( ) ; RemoveImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDAO ( ) . remove ( getVmTemplateId ( ) ) ; rollbackQuota ( ) ; setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { removeNetwork ( ) ; removeImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( getVmTemplateId ( ) ) ; rollbackQuota ( ) ; setSucceeded ( true ) ; }
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.ServerCpu > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 0 ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; checkStorageStatus ( ) ; updateActionAvailability ( ) ; getSearchCommand ( ) . execute ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; checkStorageStatus ( ) ; updateActionAvailability ( ) ; org.ovirt.engine.ui.uicommonweb.models.storage.ManageBackupModel.getSearchCommand ( ) . execute ( ) ; }
Source:
public void setCpuType ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( cpuType , value ) ) ) { cpuType = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "CpuType" ) ) ; } }

Target:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spmDefaultPriorityValue = ( ( java.lang.Integer ) ( returnValue ) ) ; updateSpmPriorityValues ( ) ; updateSpmPriority ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.roles getRole ( ) { org.ovirt.engine.core.common.businessentities.roles role = new org.ovirt.engine.core.common.businessentities.roles ( ) ; role.setId ( GUIDS [ 1 ] ) ; return role ; }

Target:
private org.ovirt.engine.api.model.Role getRole ( ) { org.ovirt.engine.api.model.Role role = new org.ovirt.engine.api.model.Role ( ) ; role.setId ( GUIDS [ 1 ] ) ; return role ; }
Source:
public void setIsSameVdsMessageVisible ( boolean value ) { isSameVdsMessageVisible = ( value & ( gethasSameVdsMessage ( ) ) ) & ( ! ( getIsAutoSelect ( ) ) ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsSameVdsMessageVisible" ) ) ; }

Target:
public void setIsSameVdsMessageVisible ( boolean value ) { isSameVdsMessageVisible = ( value & ( gethasSameVdsMessage ( ) ) ) & ( ! ( getIsAutoSelect ( ) ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsSameVdsMessageVisible" ) ) ; }
Source:
public void updateBricksStatuses ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus newStatus ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : getGlusterBrickDao ( ) . getBricksOfVolume ( volumeId ) ) { getGlusterBrickDao ( ) . updateBrickStatus ( brick.getId ( ) , newStatus ) ; } }

Target:
public void updateVolumeStatus ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus newStatus ) { glusterVolumeDao.updateVolumeStatus ( volumeId , newStatus ) ; updateBricksStatuses ( volumeId , newStatus ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeBrickAdd ( java.lang.String volumeName , java.lang.String [ ] bricks , int replicaCount , int stripeCount ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc isolateVolume ( java.lang.String sdUUID , java.lang.String srcImageID , java.lang.String dstImageID , java.lang.String volumeID ) ;
Source:
private void shutdown ( ) { org.ovirt.engine.ui.uicompat.UIConstants constants = org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) ; powerAction ( "Shutdown" , constants.shutdownVirtualMachinesTitle ( ) , constants.areYouSureYouWantToShutDownTheFollowingVirtualMachinesMsg ( ) ) ; }

Target:
private void shutdown ( ) { org.ovirt.engine.ui.uicompat.UIConstants constants = org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) ; powerAction ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.SHUTDOWN , constants.shutdownVirtualMachinesTitle ( ) , constants.areYouSureYouWantToShutDownTheFollowingVirtualMachinesMsg ( ) ) ; }
Source:
public boolean getRefreshStatistics ( ) { if ( ( vmsRefresher ) == null ) { return false ; } return vmsRefresher.getRefreshStatistics ( ) ; }

Target:
public boolean getRefreshStatistics ( ) { return ( refreshIteration ) == ( NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ; }
Source:
protected void onLoggedInEvent ( T loginModel ) { org.ovirt.engine.ui.common.presenter.AbstractLoginPresenterWidget.getView ( ) . clearErrorMessage ( ) ; saveSelectedDomain ( loginModel ) ; }

Target:
protected void onLoggedInEvent ( T loginModel ) { org.ovirt.engine.ui.common.presenter.AbstractLoginPresenterWidget.getView ( ) . clearErrorMessages ( ) ; saveSelectedDomain ( loginModel ) ; }
Source:
public void testQuery ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; setUpGetGraphicsExpectations ( 3 ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testQuery ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; setUpGetGraphicsMultipleExpectations ( 3 ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_CPUS_PINNED ) ) ; }

Target:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_NOT_MIGRATABLE ) ; }
Source:
public void register ( ) { model.getItemsChangedEvent ( ) . addListener ( this ) ; }

Target:
public void unregister ( ) { model.getItemsChangedEvent ( ) . removeListener ( this ) ; }
Source:
private void initOSType ( ) { getOSType ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getOsIds ( ) ) ; getOSType ( ) . setSelectedItem ( OsRepository.DEFAULT_OS ) ; }

Target:
private void updateWatchdogModels ( ) { updateWatchdogModels ( ( ( java.lang.Integer ) ( getOSType ( ) . getSelectedItem ( ) ) ) ) ; }