auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean validateStorageDomainAvailableSpace ( ) { return validate ( getStorageDomainValidator ( ) . hasSpaceForRemovingDiskSnapshots ( getImages ( ) ) ) ; }

Target:
protected boolean validateStorageDomainAvailableSpace ( ) { return validate ( getStorageDomainValidator ( ) . hasSpaceForClonedDisks ( getImages ( ) ) ) ; }
Source:
public boolean showNetworkProviderTab ( ) { return true ; }

Target:
public boolean showNetworkProviderTab ( ) { return ( org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.getUiMode ( ) ) != ( org.ovirt.engine.core.common.mode.ApplicationMode.GlusterOnly ) ; }
Source:
public static boolean hasSpaceForRequest ( final org.ovirt.engine.core.common.businessentities.storage_domains domain , final long requestedSize ) { return ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.hasSpace ( domain , requestedSize ) ) && ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.hasSpacePct ( domain , requestedSize ) ) ; }

Target:
public static boolean hasSpaceForRequest ( final org.ovirt.engine.core.common.businessentities.storage_domains domain , final long requestedSize ) { return ( ( domain.getavailable_disk_size ( ) ) != null ) && ( ( ( domain.getavailable_disk_size ( ) ) - requestedSize ) >= ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.getLowDiskSpaceThreshold ( ) ) ) ; }
Source:
public void checkIncompatibleIpAddressDetailsBootProtocolNone ( ) { checkIncompatibleIpAddressDetailsBootProtocol ( Ipv4BootProtocol.NONE ) ; }

Target:
public void checkMissingPrimaryIpv6Address ( ) { initIpConfiguration ( ) ; initIpv4ConfigurationDetails ( Ipv4BootProtocol.DHCP , false , false ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private java.util.List < java.lang.String > getDomainList ( ) { return getBackendCollection ( java.lang.String.class , VdcQueryType.GetDomainList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }

Target:
private java.util.List < java.lang.String > getDomainList ( ) { return getBackendCollection ( java.lang.String.class , QueryType.GetDomainList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getSessionList ( ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookAdd ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum , java.lang.Boolean enabled ) ;
Source:
public void afterCompensation ( ) { macsToReleaseOnCommit.clear ( ) ; }

Target:
public void afterCompensation ( ) { log.debug ( "Compensation occurred, clearing macs to be released after commit: {}" , macsToReleaseOnCommit ) ; macsToReleaseOnCommit.clear ( ) ; }
Source:
public void setGuestOs ( java.lang.String value ) { this . vmDynamic.setguest_os ( value ) ; }

Target:
public java.lang.String getGuestCurentUserName ( ) { return this . vmDynamic.getGuestCurrentUserName ( ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.HostUpgradeCheckInternal , org.ovirt.engine.core.bll.hostdeploy.HostUpgradeCheckCommand.withRootCommandInfo ( new org.ovirt.engine.core.common.action.VdsActionParameters ( org.ovirt.engine.core.bll.hostdeploy.HostUpgradeCheckCommand.getVdsId ( ) ) ) , org.ovirt.engine.core.bll.hostdeploy.HostUpgradeCheckCommand.cloneContext ( ) ) ; org.ovirt.engine.core.bll.hostdeploy.HostUpgradeCheckCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { commandCoordinatorUtil.executeAsyncCommand ( ActionType.HostUpgradeCheckInternal , org.ovirt.engine.core.bll.hostdeploy.HostUpgradeCheckCommand.withRootCommandInfo ( new org.ovirt.engine.core.common.action.VdsActionParameters ( org.ovirt.engine.core.bll.hostdeploy.HostUpgradeCheckCommand.getVdsId ( ) ) ) , org.ovirt.engine.core.bll.hostdeploy.HostUpgradeCheckCommand.cloneContext ( ) ) ; org.ovirt.engine.core.bll.hostdeploy.HostUpgradeCheckCommand.setSucceeded ( true ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.network.NetworkProviderProxy proxy = org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) . create ( getProvider ( ) ) ; proxy.removeSubnet ( getSubnet ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.provider.network.RemoveSubnetFromProviderCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.network.NetworkProviderProxy proxy = providerProxyFactory.create ( getProvider ( ) ) ; proxy.removeSubnet ( getSubnet ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.provider.network.RemoveSubnetFromProviderCommand.setSucceeded ( true ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants ) { return new com.gwtplatform.mvp.client.TabDataBasic ( applicationConstants.basicMainTabLabel ( ) , 0 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new com.gwtplatform.mvp.client.TabDataBasic ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.MainTabBasicPresenter.constants.basicMainTabLabel ( ) , 0 ) ; }
Source:
protected org.ovirt.engine.api.model.Disk populate ( org.ovirt.engine.api.model.Disk model , org.ovirt.engine.api.model.Disk entity ) { return ( ( org.ovirt.engine.api.restapi.resource.BackendVmDisksResource ) ( collection ) ) . addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.Disk doPopulate ( org.ovirt.engine.api.model.Disk model , org.ovirt.engine.api.model.Disk entity ) { return ( ( org.ovirt.engine.api.restapi.resource.BackendVmDisksResource ) ( collection ) ) . doPopulate ( model , entity ) ; }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getDiskProfileDao ( ) . getAllForStorageDomain ( getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getDiskProfileDao ( ) . getAllForStorageDomain ( getParameters ( ) . getId ( ) , getUserID ( ) , getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public void testIsNetworkInSyncWhenBootProtocolNotStaticAddressDifferent ( ) throws java.lang.Exception { initIpConfigurationBootProtocolAddress ( NetworkBootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenBootProtocolNotStaticAddressDifferent ( ) throws java.lang.Exception { initIpConfigurationBootProtocolAddress ( Ipv4BootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected void failedToRunVm ( ) { if ( memoryFromSnapshotIrrelevant ) { removeMemoryFromSnapshot ( ) ; } super . failedToRunVm ( ) ; }

Target:
protected void failedToRunVm ( ) { if ( memoryFromSnapshotIrrelevant ) { removeMemoryFromActiveSnapshot ( ) ; } super . failedToRunVm ( ) ; }
Source:
public void addTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget , int index ) { mainTabContainer.insert ( tabWidget , index ) ; }

Target:
public void addTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget , int index ) { mainTabContainer.appendChild ( tabWidget.asWidget ( ) . getElement ( ) ) ; }
Source:
public static boolean copyNonEditableFieldsToDestination ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.copyNonEditableFieldsToDestination ( source , destination ) ; }

Target:
public static java.util.List < java.lang.String > getChangedFieldsForStatus ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.getChangedFieldsForStatus ( source , destination , status ) ; }
Source:
protected boolean canDoAction ( ) { boolean canDoAction = super . canDoAction ( ) ; if ( ! canDoAction ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( this , AuditLogType.USER_MOVED_VM_DISK_FINISHED_FAILURE ) ; } return canDoAction ; }

Target:
protected boolean canDoAction ( ) { boolean canDoAction = super . canDoAction ( ) ; if ( ! canDoAction ) { new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( this , AuditLogType.USER_MOVED_VM_DISK_FINISHED_FAILURE ) ; } return canDoAction ; }
Source:
public javax.ws.rs.core.Response iscsiDiscover ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "iscsi.address" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > result = getBackendCollection ( org.ovirt.engine.core.common.businessentities.storage_server_connections.class , VdcQueryType.DiscoverSendTargets , createDiscoveryQueryParams ( action ) ) ; return actionSuccess ( mapTargets ( action , result ) ) ; }

Target:
public javax.ws.rs.core.Response iscsiDiscover ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "iscsi.address" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > result = getBackendCollection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class , VdcQueryType.DiscoverSendTargets , createDiscoveryQueryParams ( action ) ) ; return actionSuccess ( mapTargets ( action , result ) ) ; }
Source:
public void canDoActionNoDisksSpecified ( ) { org.junit.Assert.assertFalse ( command.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED.toString ( ) ) ) ; }

Target:
public void validateNoDisksSpecified ( ) { org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED.toString ( ) ) ) ; }
Source:
protected void init ( ) { org.ovirt.engine.core.bll.AddClusterCommand.updateMigrateOnError ( ) ; }

Target:
protected void init ( ) { setStoragePoolId ( org.ovirt.engine.core.bll.AddClusterCommand.getCluster ( ) . getStoragePoolId ( ) ) ; org.ovirt.engine.core.bll.AddClusterCommand.updateMigrateOnError ( ) ; }
Source:
public java.lang.String getVdcUserName ( ) { return org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getUserName ( ) ; }

Target:
public java.lang.String getUserName ( ) { return org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getLoginName ( ) ; }
Source:
public boolean isLink ( java.lang.Object object ) { if ( object instanceof org.ovirt.engine.sdk4.types.Identified ) { return ( ( ( org.ovirt.engine.sdk4.types.Identified ) ( object ) ) . href ( ) ) != null ; } return false ; }

Target:
public boolean isLink ( java.lang.Object object ) { return ( getHref ( object ) ) != null ; }
Source:
protected boolean canDoAction ( ) { return validate ( org.ovirt.engine.core.bll.validator.storage.StorageServerConnectionExtensionValidator.isConnectionExtensionExists ( org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionExtensionCommand.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected boolean canDoAction ( ) { return validate ( org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionExtensionCommand.getConnectionExtensionValidator ( ) . isConnectionExtensionExists ( org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionExtensionCommand.getParameters ( ) . getId ( ) ) ) ; }
Source:
public void sethypervisor_type ( org.ovirt.engine.core.common.businessentities.HypervisorType value ) { mVdsDynamic.sethypervisor_type ( value ) ; }

Target:
public void setlibvirt_version ( java.lang.String value ) { this . mVdsDynamic.setlibvirt_version ( value ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getStorageDomainDao ( ) ) ; existingDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID ) ; newStaticDomain = new org.ovirt.engine.core.common.businessentities.storage_domain_static ( ) ; newStaticDomain.setstorage ( "fDMzhE-wx3s-zo3q-Qcxd-T0li-yoYU-QvVePl" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getStorageDomainDao ( ) ) ; existingDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID ) ; newStaticDomain = new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ; newStaticDomain.setstorage ( "fDMzhE-wx3s-zo3q-Qcxd-T0li-yoYU-QvVePl" ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . storageVmBackupSubTabLabel ( ) , 2 , ginjector.getSubTabStorageVmBackupModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.VmBackupModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storageVmBackupSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
protected void processResponse ( com.google.gwt.http.client.Response response ) { java.lang.String sessionIdFromHeader = response.getHeader ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_HEADER ) ; if ( sessionIdFromHeader != null ) { setSessionId ( sessionIdFromHeader ) ; } reuseSession ( ) ; }

Target:
protected void processResponse ( com.google.gwt.http.client.Response response ) { java.lang.String sessionIdFromHeader = org.ovirt.engine.ui.common.utils.HttpUtils.getHeader ( response , org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_HEADER ) ; if ( sessionIdFromHeader != null ) { setSessionId ( sessionIdFromHeader ) ; } reuseSession ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsDao ( ) ; existingVds = dao.get ( FixturesTool.HOST_ID ) ; existingVds2 = dao.get ( FixturesTool.VDS_RHEL6_NFS_SPM ) ; newVmId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }

Target:
private void prepareHostWithDifferentStatus ( ) { vdsDynamicDao.updateStatus ( existingVds.getId ( ) , VDSStatus.Maintenance ) ; existingVds.setStatus ( VDSStatus.Maintenance ) ; org.junit.Assert.assertNotEquals ( existingVds.getStatus ( ) , existingVds2.getStatus ( ) ) ; }
Source:
protected boolean validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams , java.util.List < java.lang.String > reasons ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( org.ovirt.engine.core.bll.VmCommand.getEffectiveCompatibilityVersion ( ) , vmStaticFromParams.getCustomProperties ( ) , reasons ) ; }

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 testRemove ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate before = dao.get ( FixturesTool.VM_TEMPLATE_RHEL5_2 ) ; org.junit.Assert.assertNotNull ( before ) ; dao.remove ( FixturesTool.VM_TEMPLATE_RHEL5_2 ) ; org.ovirt.engine.core.common.businessentities.VmTemplate after = dao.get ( FixturesTool.VM_TEMPLATE_RHEL5_2 ) ; org.junit.Assert.assertNull ( after ) ; }

Target:
public void testRemove ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate before = dao.get ( FixturesTool.VM_TEMPLATE_RHEL5_2 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( before ) ; dao.remove ( FixturesTool.VM_TEMPLATE_RHEL5_2 ) ; org.ovirt.engine.core.common.businessentities.VmTemplate after = dao.get ( FixturesTool.VM_TEMPLATE_RHEL5_2 ) ; org.junit.jupiter.api.Assertions.assertNull ( after ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult networkNotUsed ( java.util.List < ? extends org.ovirt.engine.core.common.businessentities.Nameable > entities , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementPlural , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementSingular ) { final java.util.Collection < java.lang.String > entitiesNames = getEntitiesNames ( entities ) ; return networkNotUsed ( entitiesNames , entitiesReplacementPlural , entitiesReplacementSingular ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = getVms ( ) ; return networkNotUsedByVms ( getEntitiesNames ( vms ) ) ; }
Source:
protected void performLogout ( ) { getLoginModel ( ) . resetAfterLogout ( ) ; user.onUserLogout ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.clearCache ( ) ; org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent.fire ( eventBus ) ; }

Target:
public void onApplicationFocusChange ( org.ovirt.engine.ui.common.system.ApplicationFocusChangeEvent event ) { localStorageLogHandler.setActive ( event.isInFocus ( ) ) ; }
Source:
public void setHashName ( java.lang.String value ) { sethashName ( value ) ; setOpenDocumentationCommand ( new org.ovirt.engine.ui.uicommonweb.UICommand ( "OpenDocumentation" , this ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HashName" ) ) ; }

Target:
public void setHelpTag ( org.ovirt.engine.ui.uicommonweb.help.HelpTag helpTag ) { this . helpTag = helpTag ; setOpenDocumentationCommand ( new org.ovirt.engine.ui.uicommonweb.UICommand ( "OpenDocumentation" , this ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HelpTag" ) ) ; }
Source:
public void testGetGlusterOnly ( ) { doTestGlusterOnlyGet ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) ; }

Target:
public void testGet ( ) { doTestGet ( ApplicationMode.AllModes ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid clusterPolicyId ) { return getCallsHandler ( ) . executeReadList ( "GetVdsGroupsByClusterPolicyId" , org.ovirt.engine.core.dao.VdsGroupDaoImpl.VdsGroupRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_policy_id" , clusterPolicyId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid clusterPolicyId ) { return getCallsHandler ( ) . executeReadList ( "GetClustersByClusterPolicyId" , org.ovirt.engine.core.dao.ClusterDaoImpl.ClusterRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_policy_id" , clusterPolicyId ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { getSearchCommand ( ) . Execute ( ) ; }

Target:
private void remove ( ) { if ( ( getConfirmWindow ( ) ) != null ) { return ; } setConfirmWindow ( new org.ovirt.engine.ui.uicommonweb.models.providers.RemoveProvidersModel ( this ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DisplayType getDefaultDisplayType ( ) { return vmStatic.getdefault_display_type ( ) ; }

Target:
public java.lang.String getTimeZone ( ) { return vmStatic.getTimeZone ( ) ; }
Source:
public void appendButton ( com.google.gwt.user.client.ui.PushButton button ) { buttons.add ( button ) ; remove ( div ) ; append ( button , ( ! ( usePatternFly ) ) ) ; add ( div ) ; }

Target:
public void appendButton ( org.gwtbootstrap3.client.ui.Button button ) { buttons.add ( button ) ; remove ( div ) ; append ( button , ( ! ( usePatternFly ) ) ) ; add ( div ) ; }
Source:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( host.getId ( ) ) , null , null , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks , org.ovirt.engine.core.common.action.HostSetupNetworksParameters params ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . setHost ( host ) . setParams ( params ) . setNetworkBusinessEntityMap ( new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) ) . build ( ) ; }
Source:
protected void setVdsmErrorsTranslator ( final org.ovirt.engine.ui.frontend.ErrorTranslator translator ) { vdsmErrorsTranslator = translator ; }

Target:
public java.lang.String getCurrentContext ( ) { return currentContext ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.common.widget.popup.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { swithAccordingToMode ( model ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { storeAdvancedModeToLocalStorage ( model ) ; swithAccordingToMode ( model ) ; }
Source:
public void validate_notOkCorner ( ) { assertValidationWorks ( 13 , 10 , false ) ; }

Target:
public void validate_notOkCorner ( ) { assertValidationWorks ( 62 , 10 , false ) ; }
Source:
public void onRefreshActiveModel ( org.ovirt.engine.ui.frontend.communication.RefreshActiveModelEvent event ) { if ( getTimer ( ) . isActive ( ) ) { getForceRefreshCommand ( ) . execute ( ) ; if ( event.isDoFastForward ( ) ) { getTimer ( ) . fastForward ( ) ; } } }

Target:
public void onRefreshActiveModel ( org.ovirt.engine.ui.frontend.communication.RefreshActiveModelEvent event ) { if ( getTimer ( ) . isActive ( ) ) { syncSearch ( ) ; if ( event.isDoFastForward ( ) ) { getTimer ( ) . fastForward ( ) ; } } }
Source:
public void mockVdsDAO ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setvds_type ( VDSType.oVirtNode ) ; org.mockito.Mockito.when ( vdsDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vds ) ; }

Target:
public void mockVdsDAO ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setVdsType ( VDSType.oVirtNode ) ; org.mockito.Mockito.when ( vdsDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vds ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isShareable ( ) ? constants.shareable ( ) : null ) ) ; return object.isShareable ( ) ? resources.shareableDiskIcon ( ) : null ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( com.google.gwt.user.client.ui.RadioButton ) ( event.getSource ( ) ) ) . getValue ( ) ) { handleRadioButtonClick ( event ) ; } }
Source:
public void updatesAvailable ( ) { host.getDynamicData ( ) . setUpdateAvailable ( true ) ; org.junit.Assert.assertThat ( validator.updatesAvailable ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void updatesAvailable ( ) { host.getDynamicData ( ) . setUpdateAvailable ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.updatesAvailable ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.qos.StorageQos loadStorageQos ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { if ( ( diskImage.getDiskProfileId ( ) ) == null ) { return null ; } return getDbFacade ( ) . getStorageQosDao ( ) . getQosByDiskProfileId ( diskImage.getDiskProfileId ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.qos.StorageQos loadStorageQos ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { if ( ( diskImage.getDiskProfileId ( ) ) == null ) { return null ; } return storageQosDao.getQosByDiskProfileId ( diskImage.getDiskProfileId ( ) ) ; }
Source:
public void testAllMacsAreAvailableAfterCreation ( ) { org.junit.Assert.assertThat ( rangeOf10Macs.getAvailableCount ( ) , org.hamcrest.CoreMatchers.is ( org.ovirt.engine.core.bll.network.macpoolmanager.RangeTest.NUMBER_OF_MACS ) ) ; }

Target:
public void testAllMacsAreAvailableAfterCreation ( ) { org.junit.Assert.assertThat ( rangeOf10Macs.getAvailableCount ( ) , org.hamcrest.CoreMatchers.is ( org.ovirt.engine.core.bll.network.macpool.RangeTest.NUMBER_OF_MACS ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( org.ovirt.engine.core.common.businessentities.network.Network managementNetwork ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getId ( ) , managementNetwork.getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true , false ) ; return networkCluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( org.ovirt.engine.core.common.businessentities.network.Network managementNetwork ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.UpdateClusterCommand.getCluster ( ) . getId ( ) , managementNetwork.getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true , false ) ; return networkCluster ; }
Source:
private void debugQuery ( org.ovirt.engine.core.common.queries.QueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Query type '{}', Parameters '{}'" , queryType , parameters ) ; }

Target:
private void debugQuery ( org.ovirt.engine.core.common.queries.QueryType queryType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Query type '{}', Parameters '{}'" , queryType , parameters ) ; }
Source:
protected void updateTagInBackend ( org.ovirt.engine.core.common.businessentities.Tags tag ) { backend.runInternalAction ( VdcActionType.UpdateTag , new org.ovirt.engine.core.common.action.TagsOperationParameters ( tag ) ) ; }

Target:
protected void updateTagInBackend ( org.ovirt.engine.core.common.businessentities.Tags tag ) { backend.runInternalAction ( ActionType.UpdateTag , new org.ovirt.engine.core.common.action.TagsOperationParameters ( tag ) ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ExportVmTemplateCommand.getVmTemplateId ( ) . toString ( ) , LockMessagesMatchUtil.TEMPLATE ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ExportVmTemplateCommand.getVmTemplateId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_TEMPLATE , getTemplateIsBeingExportedMessage ( ) ) ) ; }
Source:
public void attachmentAndNicLabelReferenceSameLabelConflict ( ) { attachmentAndNicLabelReferenceSameLabelCommonTest ( false , false ) ; }

Target:
public void testValidateQosNotPartiallyConfiguredWhenOnlyOneHasQos ( ) { testValidateQosNotPartiallyConfigured ( true , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INTERFACES_WITHOUT_QOS ) ) ; }
Source:
public void testGet ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( ) ; org.ovirt.engine.api.model.Application application = resource.get ( ) ; org.junit.Assert.assertEquals ( NAMES [ org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.APPLICATION_INDEX ] , application.getName ( ) ) ; verifyLinks ( application ) ; }

Target:
public void testGet ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( ) ; org.ovirt.engine.api.model.Application application = resource.get ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( NAMES [ org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.APPLICATION_INDEX ] , application.getName ( ) ) ; verifyLinks ( application ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase getReturnValue ( ) { return super . getReturnValue ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionType getActionType ( ) { return super . getActionType ( ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.StopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }
Source:
private java.util.concurrent.Callable < org.ovirt.engine.core.common.action.VdcReturnValueBase > buildCanDoActionAsynchronously ( final int currentCanDoActionId , final int totalSize ) { return new java.util.concurrent.Callable < org.ovirt.engine.core.common.action.VdcReturnValueBase > ( ) { @ java.lang.Override public org.ovirt.engine.core.common.action.VdcReturnValueBase call ( ) { return runCanDoActionOnly ( currentCanDoActionId , totalSize ) ; } } ; }

Target:
protected void invokeCommands ( ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { runCommands ( ) ; } } ) ; }
Source:
public void setGuestHostName ( java.lang.String guestHostName ) { this . guestHostName = guestHostName ; }

Target:
public void setHostSubject ( java.lang.String hostSubject ) { this . consoleOptions.setHostSubject ( hostSubject ) ; }
Source:
public java.lang.String getClusterName ( ) { return this . clusterpName ; }

Target:
public java.lang.String getClusterName ( ) { return this . clusterName ; }
Source:
public static java.lang.String format ( java.lang.String pattern , java.lang.Object ... args ) { java.lang.String message = new org.ovirt.engine.core.compat.FormatterJava ( ) . format ( pattern , args ) . toString ( ) ; org.ovirt.engine.core.compat.StringFormat.log.debugFormat ( "Formatting Java pattern: {0} With result: {1}" , pattern , message ) ; return message ; }

Target:
public static java.lang.String format ( java.lang.String pattern , java.lang.Object ... args ) { java.lang.String message = new org.ovirt.engine.core.compat.FormatterJava ( ) . format ( pattern , args ) . toString ( ) ; org.ovirt.engine.core.compat.StringFormat.log.debug ( "Formatting Java pattern: '{}' With result: {}" , pattern , message ) ; return message ; }
Source:
org.ovirt.engine.core.dao.VmNetworkInterfaceDAO getVmNetworkInterfaceDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmNetworkInterfaceDAO ( ) ; }

Target:
org.ovirt.engine.core.dao.VmNetworkInterfaceDAO getVmNetworkInterfaceDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmNetworkInterfaceDao ( ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveParameters ( org.ovirt.engine.api.model.Network entity ) { return new org.ovirt.engine.core.common.action.RemoveNetworkParameters ( entity.getId ( ) ) ; }

Target:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.quota.SubTabQuotaVmPresenter.constants.quotaVmSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.quota.SubTabQuotaVmPresenter.constants.quotaVmSubTabLabel ( ) , 2 ) ; }
Source:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getAsyncTaskType ( ) { if ( ( getTaskType ( ) ) == ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType.notSupported ) ) { throw new java.lang.UnsupportedOperationException ( ) ; } return getTaskType ( ) ; }
Source:
public void removeStoragePoolFromCache ( org.ovirt.engine.core.compat.Guid storagePoolId ) { lock.writeLock ( ) . lock ( ) ; try { storagePoolQuotaMap.remove ( storagePoolId ) ; } finally { lock.writeLock ( ) . unlock ( ) ; } }

Target:
public void removeStoragePoolFromCache ( org.ovirt.engine.core.compat.Guid storagePoolId ) { lock.writeLock ( ) . lock ( ) ; try { storagePoolQuotaMap.remove ( storagePoolId ) ; storagePoolDefaultQuotaIdMap.remove ( storagePoolId ) ; } finally { lock.writeLock ( ) . unlock ( ) ; } }
Source:
public void processOnVmStop ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.VmPoolHandler.processVmPoolOnStopVm ( vmId , null ) ; }

Target:
public void processOnVmStop ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( vmId ) ) ; }
Source:
public void setConsole_current_user_name ( java.lang.String console_cur_user_name ) { this . console_cur_user_name = console_cur_user_name ; }

Target:
public java.lang.String getGuestCurrentUserName ( ) { return this . guestCurUserName ; }
Source:
public void setcpu_per_socket ( int value ) { this . mVmStatic.setcpu_per_socket ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "cpu_per_socket" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_cpus" ) ) ; }

Target:
public java.lang.String getTimeZone ( ) { return vmStatic.getTimeZone ( ) ; }
Source:
private void logFailureToGetVms ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "URL" , org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.getParameters ( ) . getUrl ( ) ) ; auditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_GET_EXTERNAL_VMS_INFO_FAILED ) ; }

Target:
private void logFailureToGetVms ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; logable.addCustomValue ( "URL" , org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.getParameters ( ) . getUrl ( ) ) ; auditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_GET_EXTERNAL_VMS_INFO_FAILED ) ; }
Source:
public abstract void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header ) ;

Target:
void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header , java.lang.String width ) ;
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public void canDoActionNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.nonExternalJobId ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.canDoAction ( ) ) ) ) ; }

Target:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.nonExternalJobId ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
public int getvm_mem_size_mb ( ) { return this . mVmStatic.getmem_size_mb ( ) ; }

Target:
public void setVmMemSizeMb ( int value ) { this . vmStatic.setmem_size_mb ( value ) ; }
Source:
public void setWatchdog ( org.ovirt.engine.core.common.businessentities.VmWatchdog watchdog ) { this . watchdog = watchdog ; }

Target:
public void setValue ( T value ) { this . value = value ; }
Source:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryUser > findPrincipalsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryPrincipals ( extension , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.PRINCIPAL ) , false ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryUser > findPrincipalsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryPrincipals ( extension , namespace , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.PRINCIPAL ) , false ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult networkActuallyExists ( org.ovirt.engine.core.compat.Guid networkId ) { if ( ( networkBusinessEntityMap.get ( networkId ) ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS ) ; } else { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getNetworkByNetworkId ( org.ovirt.engine.core.compat.Guid networkId ) { return networkBusinessEntityMap.get ( networkId ) ; }
Source:
private static org.ovirt.engine.api.restapi.resource.BackendDeviceResource < org.ovirt.engine.api.model.WatchDog , org.ovirt.engine.api.model.WatchDogs , org.ovirt.engine.core.common.businessentities.VmWatchdog > getResource ( ) { return new org.ovirt.engine.api.restapi.resource.BackendWatchdogResource ( GUIDS [ 1 ] , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.collection , org.ovirt.engine.core.common.action.VdcActionType.UpdateWatchdog , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.getUpdateParams ( ) , new java.lang.String [ ] { "action" , "model" } ) ; }

Target:
private static org.ovirt.engine.api.restapi.resource.BackendDeviceResource < org.ovirt.engine.api.model.WatchDog , org.ovirt.engine.api.model.WatchDogs , org.ovirt.engine.core.common.businessentities.VmWatchdog > getResource ( ) { return new org.ovirt.engine.api.restapi.resource.BackendWatchdogResource ( true , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.VM_ID , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.WATCHDOG_ID , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.getCollection ( ) , org.ovirt.engine.core.common.action.VdcActionType.UpdateWatchdog , org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.getUpdateParams ( ) , new java.lang.String [ ] { "action" , "model" } ) ; }
Source:
public void testCanDoActionInstanceNameDuplicate ( ) { cmd.getParameters ( ) . setTemplateType ( VmEntityType.INSTANCE_TYPE ) ; org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isInstanceWithSameNameExists ( "templateName" ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testValidateDuplicateTemplateName ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isVmTemlateWithSameNameExist ( "templateName" , spId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
public static void setTasksMap ( java.lang.String hostName , java.lang.String taskId ) { org.ovirt.vdsmfake.task.TaskProcessor.tasksmap.put ( hostName , taskId ) ; }

Target:
public void setTasksMap ( java.lang.String hostName , java.lang.String taskId ) { tasksmap.put ( hostName , taskId ) ; }
Source:
public boolean getis_display ( ) { return this . isDisplay ; }

Target:
public boolean isDisplay ( ) { return this . display ; }
Source:
public void testRemoveNonExistant ( ) { setUpGetEntityExpectations ( GUIDS [ 0 ] , true ) ; try { resource.remove ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNonExistant ( ) { setUpGetEntityExpectations ( GUIDS [ 0 ] , true ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.aaa.resource.remove ( ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; initSpmPriorities1 ( ) ; }

Target:
public void onSuccess ( java.lang.Integer returnValue ) { maxSpmPriority = returnValue ; initSpmPriorities1 ( ) ; }
Source:
private static void addToAuditLogSuccessMessage ( java.lang.String IsoDomain , java.lang.String fileTypeExt ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.AddCustomValue ( "isoDomains" , java.lang.String.format ( "%s (%s file type)" , IsoDomain , fileTypeExt ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_FILE_LIST_SUCCEEDED ) ; }

Target:
private static void addToAuditLogSuccessMessage ( java.lang.String IsoDomain , java.lang.String fileTypeExt ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "isoDomains" , java.lang.String.format ( "%s (%s file type)" , IsoDomain , fileTypeExt ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_FILE_LIST_SUCCEEDED ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > getOvfEntityList ( org.ovirt.engine.core.common.businessentities.VmEntityType vmEntityType ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > entityList = org.ovirt.engine.core.bll.storage.domain.GetUnregisteredEntitiesQuery.getDbFacade ( ) . getUnregisteredOVFDataDao ( ) . getAllForStorageDomainByEntityType ( org.ovirt.engine.core.bll.storage.domain.GetUnregisteredEntitiesQuery.getParameters ( ) . getId ( ) , vmEntityType ) ; return entityList ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > getOvfEntityList ( org.ovirt.engine.core.common.businessentities.VmEntityType vmEntityType ) { return unregisteredOVFDataDao.getAllForStorageDomainByEntityType ( org.ovirt.engine.core.bll.storage.domain.GetUnregisteredEntitiesQuery.getParameters ( ) . getId ( ) , vmEntityType ) ; }
Source:
public void checkEmptyStringNotAllowedFromConstructor ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , false ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "" ) ; org.junit.Assert.assertEquals ( failureValidationResultEmptyNotAllowed , validationResult ) ; }

Target:
public void checkEmptyStringNotAllowedFromConstructor ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , false ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyNotAllowed , validationResult ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.network_cluster , org.ovirt.engine.core.common.businessentities.VDSGroup > object ) { return object.getSecond ( ) . getdescription ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network_cluster > object ) { return object.getFirst ( ) . getdescription ( ) ; }
Source:
public void testValidationFailsStoragePoolNotUp ( ) { storagePool.setStatus ( StoragePoolStatus.NotOperational ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testValidationFailsStoragePoolNotUp ( ) { storagePool.setStatus ( StoragePoolStatus.NotOperational ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_STATUS_ILLEGAL ) ; }
Source:
public void setPassword ( java.lang.String sessionId , java.lang.String password ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , password ) ; }

Target:
public void setPassword ( java.lang.String sessionId , java.lang.String password ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PASSWORD_PARAMETER_NAME , password ) ; }