auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( session ) ; }

Target:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( session ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( session ) ; }
Source:
private org.ovirt.engine.core.common.action.RecoveryStoragePoolParameters getRecoveryStoragePoolParametersData ( ) { org.ovirt.engine.core.common.action.VdcActionParametersBase tempVar = getParameters ( ) ; return ( ( org.ovirt.engine.core.common.action.RecoveryStoragePoolParameters ) ( tempVar instanceof org.ovirt.engine.core.common.action.RecoveryStoragePoolParameters ? tempVar : null ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RECOVER_POOL ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__STORAGE__DOMAIN ) ; }
Source:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Tags > returnValue ) { allAttachedTags.addAll ( returnValue ) ; ( selectedItemsCounter ) ++ ; if ( ( selectedItemsCounter ) == ( getSelectedItems ( ) . size ( ) ) ) { postGetAttachedTags ( model ) ; } }

Target:
private void setDisableGlobalHaMaintenanceCommand ( org.ovirt.engine.ui.uicommonweb.UICommand value ) { privateDisableGlobalHaMaintenanceCommand = value ; }
Source:
private java.lang.String writeJsonAsString ( java.lang.Object payload , org.codehaus.jackson.map.ObjectMapper mapper ) { try { return mapper.writeValueAsString ( payload ) ; } catch ( java.io.IOException e ) { throw new org.apache.commons.lang.SerializationException ( e ) ; } }

Target:
private java.lang.String writeJsonAsString ( java.lang.Object payload , org.codehaus.jackson.map.ObjectMapper mapper ) { try { return mapper.writeValueAsString ( payload ) ; } catch ( java.io.IOException e ) { throw new org.ovirt.engine.core.utils.SerializationException ( e ) ; } }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > multipleParams , boolean isRunOnlyIfAllCanDoPass ) ;

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > multipleParams , boolean isRunOnlyIfAllValidationPass ) ;
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetErrataForSystem , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getErrata ( ) , failure ) ; control.replay ( ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetErrataForEngine , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getErrata ( ) , failure ) ; control.replay ( ) ; }
Source:
protected void setErrorMessageLabel ( org.gwtbootstrap3.client.ui.Label errorMessage , com.google.gwt.safehtml.shared.SafeHtml text ) { if ( text != null ) { errorMessage.getElement ( ) . setInnerSafeHtml ( text ) ; } else { errorMessage.getElement ( ) . setInnerHTML ( null ) ; } }

Target:
public void clearErrorMessages ( ) { com.google.gwt.user.client.ui.IsWidget errorIconWidget = errorMessagePanel.getWidget ( 0 ) ; errorMessagePanel.clear ( ) ; errorMessagePanel.add ( errorIconWidget ) ; errorMessagePanel.setVisible ( false ) ; }
Source:
public void getJobsBySessionSeqIdAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.job.Job > jobsList = dao.getJobsBySessionSeqIdAndStatus ( org.ovirt.engine.core.dao.JobDaoTest.ENGINE_SESSION_SEQ_ID , JobExecutionStatus.STARTED ) ; org.junit.Assert.assertEquals ( "Verify jobs are associated with the engine-session-seq-ID and status" , org.ovirt.engine.core.dao.JobDaoTest.NUMBER_OF_JOBS_FOR_ENGINE_SESSION_SEQ_ID_AND_STATUS , jobsList.size ( ) ) ; }

Target:
public void getJobsBySessionSeqIdAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.job.Job > jobsList = dao.getJobsBySessionSeqIdAndStatus ( org.ovirt.engine.core.dao.JobDaoTest.ENGINE_SESSION_SEQ_ID , JobExecutionStatus.STARTED ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.JobDaoTest.NUMBER_OF_JOBS_FOR_ENGINE_SESSION_SEQ_ID_AND_STATUS , jobsList.size ( ) , "Verify jobs are associated with the engine-session-seq-ID and status" ) ; }
Source:
private boolean isPartiallySubmittedCommand ( java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks ) { for ( org.ovirt.engine.core.common.businessentities.AsyncTask task : tasks ) { if ( ! ( org.ovirt.engine.core.bll.tasks.AsyncTaskManager.hasEmptyVdsmId ( task ) ) ) { return true ; } } return false ; }

Target:
private boolean isPartiallyExecutedCommand ( java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks ) { return tasks.isEmpty ( ) ? false : ! ( tasks.get ( 0 ) . getRootCmdEntity ( ) . isExecuted ( ) ) ; }
Source:
public void replace_valueContainsDollar ( ) { runAndCheck ( sb ( "AdminPassword=$AdminPassword$" ) , "$AdminPassword$" , "$A$AA$" , "AdminPassword=$A$AA$" ) ; }

Target:
public void replace_callReplaceTwoTimes ( ) { java.lang.String text = "AdminName=$AdminName$ AdminPassword=$AdminPassword$" ; java.lang.String firstPart = runAndCheck ( text , "$AdminPassword$" , "$A$AA$" , "AdminName=$AdminName$ AdminPassword=$A$AA$" ) ; runAndCheck ( firstPart , "$AdminName$" , "$B$BB$" , "AdminName=$B$BB$ AdminPassword=$A$AA$" ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetTemplateInterfacesByTemplateId , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void SyncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . SyncSearch ( VdcQueryType.GetTemplateInterfacesByTemplateId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ; }
Source:
protected void TestVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalQuery ( VdcQueryType.GetVdsFenceStatus , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( vdsStatic.getId ( ) ) ) ; } }

Target:
protected void testVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { runInternalQuery ( VdcQueryType.GetVdsFenceStatus , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( vdsStatic.getId ( ) ) ) ; } }
Source:
public java.lang.String getvm_domain ( ) { return this . mVmStatic.getdomain ( ) ; }

Target:
public void setVmOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmStatic.setOs ( value ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.ServerConnectionListReturnForXmlRpc getStorageConnectionsList ( java.lang.String spUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getDiskList ( ) . size ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getMemSizeMb ( ) ) ) + " MB" ; }
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 ( ) { org.ovirt.engine.core.bll.tasks.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:
public static synchronized java.lang.String getEntity ( org.apache.http.HttpEntity entity ) throws java.io.IOException , org.apache.http.ParseException { if ( entity != null ) { return org.apache.http.util.EntityUtils.toString ( entity ) ; } else { return null ; } }

Target:
public static synchronized java.lang.String getEntity ( org.apache.http.HttpEntity entity ) throws java.io.IOException , org.apache.http.ParseException { if ( entity != null ) { return org.apache.http.util.EntityUtils.toString ( entity , StringUtils.UTF8 ) ; } else { return null ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return java.lang.String.valueOf ( disk.getLun ( ) . getPathCount ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return java.lang.String.valueOf ( disk.getLun ( ) . getPathCount ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . poolForDataCenter ( storagePoolId ) ; }

Target:
private org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return poolPerDc.poolForDataCenter ( storagePoolId ) ; }
Source:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return isRequiredChangeable ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel ) ( model ) ) ; networkClusterModel.setAttached ( value ) ; refreshClustersTable ( ) ; }
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.common.widget.popup.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { storeAdvancedModeToLocalStorage ( model ) ; swithAccordingToMode ( model ) ; }
Source:
public void setEntity ( java.lang.Object value , boolean fireEvents ) { if ( fireEvents ) { setEntity ( value ) ; } else { entity = value ; } }

Target:
public void setEntity ( T value , boolean fireEvents ) { if ( fireEvents ) { setEntity ( value ) ; } else { entity = value ; } }
Source:
public void setGuestLastLoginTime ( java.util.Date value ) { this . guestLastLoginTime = value ; }

Target:
public void setGuestOsArch ( org.ovirt.engine.core.common.businessentities.ArchitectureType guestOsArch ) { this . guestOsArch = guestOsArch ; }
Source:
public void testGetAllForEntityFilteredWithNoPermissionsFilteringDisabled ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , false ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertGetAllForEntityResult ( result ) ; }

Target:
public void testGetAllForEntityFilteredWithPermissions ( ) { org.junit.Assert.assertNotNull ( privilegedUserSession ) ; java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID , privilegedUserSession.getId ( ) , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertGetAllForEntityResult ( result ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , nicName , false , null , null , networkName , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true ) ; }
Source:
private com.google.gwt.view.client.MultiSelectionModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel > getSelectionModelForButton ( com.google.gwt.user.client.ui.Button button ) { return button == ( downButton ) ? topSelectionModel : bottomSelectionModel ; }

Target:
private com.google.gwt.user.client.ui.ButtonBase getButton ( boolean down ) { return down ? downButton : upButton ; }
Source:
public boolean isMixedTypesAllowedInDC ( ) { return org.ovirt.engine.core.common.FeatureSupported.mixedDomainTypesOnDataCenter ( storagePool.getcompatibility_version ( ) ) ; }

Target:
public boolean isMixedTypesAllowedInDC ( ) { return org.ovirt.engine.core.common.FeatureSupported.mixedDomainTypesOnDataCenter ( storagePool.getCompatibilityVersion ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueModel flush ( ) { for ( org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget lineWidget : widgetList ) { lineWidget.flush ( ) ; } return org.ovirt.engine.ui.common.widget.form.key_value.KeyValueWidget.Driver.driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueModel flush ( ) { for ( org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget lineWidget : widgetList ) { lineWidget.flush ( ) ; } return driver.flush ( ) ; }
Source:
public void oldHostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , oldHost , null , false ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.VDS_INVALID_SERVER_ID ) ) ; }

Target:
public void oldHostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , oldHost , null , false ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap a ) { return a.getLunId ( ) . equals ( lunId ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap > getAll ( final java.lang.String lunId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lun_id" , lunId ) ; return getCallsHandler ( ) . executeReadList ( "GetLUN_storage_server_connection_mapByLUN" , org.ovirt.engine.core.dao.StorageServerConnectionLunMapDaoImpl.StorageServerConnectionLunMapRowMapper.instance , parameterSource ) ; }
Source:
public static boolean isLinuxOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getLinuxOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames = ( ( java.util.HashMap < java.lang.Integer , java.lang.String > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.initOsIds ( ) ; }
Source:
private java.lang.String getDiskIsBeingMigratedMessage ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_IS_BEING_MIGRATED.name ( ) ) + ( java.lang.String.format ( "$DiskName %1$s" , ( disk != null ? disk.getDiskAlias ( ) : "" ) ) ) ; }

Target:
private java.lang.String getDiskIsBeingMigratedMessage ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_IS_BEING_MIGRATED.name ( ) ) + ( java.lang.String.format ( "$DiskName %1$s" , ( disk != null ? disk.getDiskAlias ( ) : "" ) ) ) ; }
Source:
public void testNoStoreFilterPatternMatches_PositiveMatch ( ) { org.mockito.Mockito.when ( mockRequest.getRequestURI ( ) ) . thenReturn ( "RPCService" ) ; org.junit.Assert.assertTrue ( testFilter.noStoreFilterPatternMatches ( mockRequest ) ) ; }

Target:
public void testCacheFilterPatternMatches_PositiveMatch5 ( ) { org.mockito.Mockito.when ( mockRequest.getRequestURI ( ) ) . thenReturn ( "/something/in/a/theme/hello.html" ) ; org.junit.Assert.assertTrue ( testFilter.cacheFilterPatternMatches ( mockRequest ) ) ; }
Source:
protected void setupSelectedTemplate ( org.ovirt.engine.ui.uicommonweb.models.ListModel model , java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > templates ) { setupTemplate ( pool , model ) ; }

Target:
public void initTemplate ( ) { setupTemplate ( pool.getVmtGuid ( ) , pool.isUseLatestVersion ( ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment model ) { org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.HOST_NIC_ID.toString ( ) , model.getHostNic ( ) . getId ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment model ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.resource.HOST_NIC_ID.toString ( ) , model.getHostNic ( ) . getId ( ) ) ; }
Source:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.AsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.AsyncCallback < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > ( ) { @ java.lang.Override public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { doInit ( ) ; } } , externalVms ) ; }
Source:
protected void fetchDocumentationFile ( ) { fetchFile ( ( ( getDocumentationBaseURL ( ) ) + "DocumentationPath.csv" ) , documentationFileFetchedEvent ) ; }

Target:
protected void fetchDocumentationFile ( ) { fetchFile ( ( ( getDocumentationBaseURL ( ) ) + "webadmin.json" ) , documentationFileFetchedEvent ) ; }
Source:
public void testCanDoActionVdsNotFound ( ) { org.mockito.Mockito.when ( vdsDao.getAllForVdsGroupWithStatus ( groupId , VDSStatus.Up ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VDS > emptyList ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NO_VDS_IN_POOL ) ; }

Target:
public void testValidateVdsNotFound ( ) { org.mockito.Mockito.when ( vdsDao.getAllForVdsGroupWithStatus ( groupId , VDSStatus.Up ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VDS > emptyList ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NO_VDS_IN_POOL ) ; }
Source:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , vmId ) , VmDeviceType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false ) ; }

Target:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false ) ; }
Source:
private boolean isVmMigratingToThisVds ( ) { return isVmMigratingToThisVds ( dbVm.getStatus ( ) , dbVm.getMigratingToVds ( ) ) ; }

Target:
private boolean isVmMigratingToThisVds ( ) { return ( ( dbVm.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.MigratingFrom ) ) && ( getVdsManager ( ) . getVdsId ( ) . equals ( dbVm.getMigratingToVds ( ) ) ) ; }
Source:
public void stringToVCpupinIntervalsList ( ) { org.ovirt.engine.api.model.VcpuPin pin = org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "1#1-4,6" ) ; assertEquals ( 1 , ( ( int ) ( pin.getVcpu ( ) ) ) ) ; assertEquals ( "1-4,6" , pin.getCpuSet ( ) ) ; }

Target:
public void stringToVCpupinIntervalsList ( ) { org.ovirt.engine.api.model.VcpuPin pin = org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "1#1-4,6" ) ; org.junit.Assert.assertEquals ( 1 , ( ( int ) ( pin.getVcpu ( ) ) ) ) ; org.junit.Assert.assertEquals ( "1-4,6" , pin.getCpuSet ( ) ) ; }
Source:
protected void SyncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . SyncSearch ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.GetVmTemplatesDisksParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.GetVmTemplatesDisksParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ; }
Source:
public void testRemoveVmFromAffinityGroups ( ) { org.junit.Assert.assertFalse ( dao.getAllAffinityGroupsByVmId ( FixturesTool.VM_RHEL5_POOL_50 ) . isEmpty ( ) ) ; dao.removeVmFromAffinityGroups ( FixturesTool.VM_RHEL5_POOL_50 ) ; org.junit.Assert.assertTrue ( dao.getAllAffinityGroupsByVmId ( FixturesTool.VM_RHEL5_POOL_50 ) . isEmpty ( ) ) ; }

Target:
public void testRemoveVmFromAffinityGroups ( ) { org.junit.jupiter.api.Assertions.assertFalse ( dao.getAllAffinityGroupsByVmId ( FixturesTool.VM_RHEL5_POOL_50 ) . isEmpty ( ) ) ; dao.removeVmFromAffinityGroups ( FixturesTool.VM_RHEL5_POOL_50 ) ; org.junit.jupiter.api.Assertions.assertTrue ( dao.getAllAffinityGroupsByVmId ( FixturesTool.VM_RHEL5_POOL_50 ) . isEmpty ( ) ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.StoragePool , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.StoragePool , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void setSelectedStorageDomainString ( java.lang.String value ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain : getStorageDomains ( ) ) { if ( storageDomain.getstorage_name ( ) . equals ( value ) ) { setSelectedStorageDomain ( storageDomain ) ; break ; } } }

Target:
public void setSelectedStorageDomainString ( java.lang.String value ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain : getStorageDomains ( ) ) { if ( storageDomain.getStorageName ( ) . equals ( value ) ) { setSelectedStorageDomain ( storageDomain ) ; break ; } } }
Source:
public static org.ovirt.engine.api.restapi.types.WatchdogModel map ( org.ovirt.engine.core.common.businessentities.VmWatchdogType model , org.ovirt.engine.api.restapi.types.WatchdogModel incoming ) { switch ( model ) { case i6300esb : return WatchdogModel.I6300ESB ; case ib700 : return WatchdogModel.IB700 ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.WatchdogModel map ( org.ovirt.engine.core.common.businessentities.VmWatchdogType model , org.ovirt.engine.api.model.WatchdogModel incoming ) { switch ( model ) { case i6300esb : return org.ovirt.engine.api.model.WatchdogModel.I6300ESB ; case ib700 : return org.ovirt.engine.api.model.WatchdogModel.IB700 ; default : return null ; } }
Source:
public void testExceptionForCommandWithNoTasks ( ) { org.ovirt.engine.core.common.action.PermissionsOperationsParametes params = new org.ovirt.engine.core.common.action.PermissionsOperationsParametes ( ) ; org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > ( params ) ) ; cmd.concreteCreateTask ( Guid.Empty , org.ovirt.engine.core.bll.BackwardCompatibilityTaskCreationTest.nextAsyncTaskCreationInfo ( ) , VdcActionType.Unknown ) ; }

Target:
public void testExceptionForCommandWithNoTasks ( ) { org.ovirt.engine.core.common.action.PermissionsOperationsParameters params = new org.ovirt.engine.core.common.action.PermissionsOperationsParameters ( ) ; org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParameters > cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParameters > ( params ) ) ; cmd.concreteCreateTask ( Guid.Empty , org.ovirt.engine.core.bll.BackwardCompatibilityTaskCreationTest.nextAsyncTaskCreationInfo ( ) , VdcActionType.Unknown ) ; }
Source:
public void testGetUserIDWithNoUser ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; junit.framework.Assert.assertEquals ( "wrong guid" , null , query.getUserID ( ) ) ; }

Target:
public void testGetUserIDWithNoUser ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; org.junit.Assert.assertEquals ( "wrong guid" , null , query.getUserID ( ) ) ; }
Source:
void handleMouseOver ( com.google.gwt.event.dom.client.MouseOverEvent event ) { container.addStyleName ( style.panelOver ( ) ) ; dragHandle.setVisible ( true ) ; }

Target:
void handleMouseOver ( com.google.gwt.event.dom.client.MouseOverEvent event ) { if ( ! ( dragEnabled ) ) { return ; } container.addStyleName ( style.panelOver ( ) ) ; dragHandle.setVisible ( true ) ; }
Source:
protected boolean isLocalStorage ( org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel storage ) { return ( storage.getType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS ) ; }

Target:
protected boolean isLocalStorage ( org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel storage ) { return ( storage.getType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.StorageType.LOCALFS ) ; }
Source:
public java.lang.String getpm_user ( ) { return mVdsStatic.getpm_user ( ) ; }

Target:
public boolean getpm_enabled ( ) { return mVdsStatic.isPmEnabled ( ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { return performAction ( VdcActionType.RemoveLabel , new org.ovirt.engine.core.common.action.LabelActionParametersBase ( guid ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { return performAction ( ActionType.RemoveLabel , new org.ovirt.engine.core.common.action.LabelActionParametersBase ( guid ) ) ; }
Source:
public void testLimitX86 ( ) { java.lang.Integer maxVCpu = org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( ArchitectureType.x86 , new java.lang.Integer ( 16 ) , new java.lang.Integer ( 240 ) , 2 , 16 ) ; org.junit.Assert.assertEquals ( new java.lang.Integer ( 224 ) , maxVCpu ) ; }

Target:
public void testLimitX86 ( ) { java.lang.Integer maxVCpu = org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( ArchitectureType.x86 , new java.lang.Integer ( 16 ) , new java.lang.Integer ( 240 ) , 2 , 16 ) ; org.junit.jupiter.api.Assertions.assertEquals ( new java.lang.Integer ( 224 ) , maxVCpu ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getvm_count ( ) ) < ( vmCountTemp * ( p.getcpu_cores ( ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getvm_count ( ) ) < ( vmCountTemp * ( org.ovirt.engine.core.bll.VdsSelector.getEffectiveCpuCores ( p ) ) ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentIdentification ( attachment.getId ( ) , attachment.getNicId ( ) , attachment.getNicName ( ) , VdcBllMessages.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY , existingInterfacesMap ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentIdentification ( attachment.getId ( ) , attachment.getNicId ( ) , attachment.getNicName ( ) , EngineMessage.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY , existingInterfacesMap ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { modelCommandInvoker.invokeDefaultCommand ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . fireChangeEventsOnFields ( ) ; getView ( ) . flush ( ) ; modelCommandInvoker.invokeDefaultCommand ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , java.util.List < java.lang.String > messages ) { return org.ovirt.engine.core.bll.scheduling.policyunits.VmAffinityFilterPolicyUnit.getAcceptableHosts ( true , hosts , vm , messages ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { return org.ovirt.engine.core.bll.scheduling.policyunits.VmAffinityFilterPolicyUnit.getAcceptableHosts ( true , hosts , vm , messages ) ; }
Source:
public void updateGlusterServerHookChecksum ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid hostId , java.lang.String checksum ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterServerHookChecksum" , getCustomMapSqlParameterSource ( ) . addValue ( "hook_id" , hookId ) . addValue ( "host_id" , hostId ) . addValue ( "checksum" , checksum ) ) ; }

Target:
public void removeGlusterServerHook ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "DeleteGlusterHookById" , createIdParameterMapper ( id ) ) ; }
Source:
public java.util.List < java.lang.String > getAllMacsForMacPool ( org.ovirt.engine.core.compat.Guid macPoolId ) { return getCallsHandler ( ) . executeReadList ( "GetAllMacsByMacPoolId" , getStringMapper ( ) , createIdParameterMapper ( macPoolId ) ) ; }

Target:
public java.util.List < java.lang.String > getAllMacsForMacPool ( org.ovirt.engine.core.compat.Guid macPoolId ) { return getCallsHandler ( ) . executeReadList ( "GetAllMacsByMacPoolId" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.String.class ) , createIdParameterMapper ( macPoolId ) ) ; }
Source:
public void setSshUsername ( java.lang.String value ) { this . mVdsStatic.setSshUsername ( value ) ; }

Target:
public void setSshUsername ( java.lang.String value ) { vdsStatic.setSshUsername ( value ) ; }
Source:
public static void initAsyncTaskManager ( ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . initAsyncTaskManager ( ) ; }

Target:
public static void initAsyncTaskManager ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . initAsyncTaskManager ( ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getManagementNetworkId ( ) { return org.ovirt.engine.core.bll.AddVdsGroupCommand.getParameters ( ) . getManagementNetworkId ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getManagementNetworkId ( ) { return org.ovirt.engine.core.bll.AddClusterCommand.getParameters ( ) . getManagementNetworkId ( ) ; }
Source:
protected void executeCommand ( ) { registerRollbackHandler ( new org.ovirt.engine.core.bll.RemoveMacPoolCommand.CustomTransactionCompletionListener ( ) ) ; getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; macPoolPerCluster.removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { registerRollbackHandler ( new org.ovirt.engine.core.bll.RemoveMacPoolCommand.CustomTransactionCompletionListener ( ) ) ; macPoolDao.remove ( getMacPoolId ( ) ) ; macPoolPerCluster.removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDisks ( ) { setSdFullDiscardSupport ( ) ; junit.framework.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }

Target:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDisks ( ) { setSdFullDiscardSupport ( ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }
Source:
public static boolean isSDItemExistInList ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > items , org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain b : items ) { if ( b.getId ( ) . equals ( id ) ) { return true ; } } return false ; }

Target:
public static boolean isSDItemExistInList ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > items , org.ovirt.engine.core.compat.Guid id ) { return ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( items , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate ( id ) ) ) != null ; }
Source:
private boolean isFirstTaskHandler ( ) { return ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . getExecutionIndex ( ) ) == 0 ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return null ; }
Source:
public long getNumberOfImagesInStorageDomain ( org.ovirt.engine.core.compat.Guid storageDomainId ) { return getCallsHandler ( ) . executeRead ( "GetNumberOfImagesInStorageDomain" , getLongMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "storage_domain_id" , storageDomainId ) ) ; }

Target:
public long getNumberOfImagesInStorageDomain ( org.ovirt.engine.core.compat.Guid storageDomainId ) { return getCallsHandler ( ) . executeRead ( "GetNumberOfImagesInStorageDomain" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.Long.class ) , getCustomMapSqlParameterSource ( ) . addValue ( "storage_domain_id" , storageDomainId ) ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StoragePool returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.AsyncCallback < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > ( ) { @ java.lang.Override public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { doInit ( ) ; } } , externalVms ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateWindowsWarningMessage ( ) ; }
Source:
protected boolean canPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getDiskImageDao ( ) . get ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getParameters ( ) . getDestinationImageId ( ) ) ) != null ; }

Target:
protected boolean canPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return ( org.ovirt.engine.core.bll.CopyImageGroupCommand.getDiskImageDao ( ) . get ( org.ovirt.engine.core.bll.CopyImageGroupCommand.getParameters ( ) . getDestinationImageId ( ) ) ) != null ; }
Source:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return super . persistAsyncTaskPlaceHolder ( parentCommand ) ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( java.lang.String taskKey ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) , taskKey ) ; }
Source:
public void testVmDiskWithPassDiscardAndWadExistsFails ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( true , false ) ; createVmDiskOnSd ( false , true ) ; org.junit.Assert.assertFalse ( discardHelper.vmDiskWithPassDiscardAndWadExists ( storageDomainDisks , storageDomainVmDisks ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedNoDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( false ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 0L ) , createLunWithDiscardSupport ( 0L ) ) , storageDomain ) ) ; }
Source:
public void testParseOnlyReloadableFlag ( ) { parser.parse ( new java.lang.String [ ] { "--list" , "--only-reloadable" } ) ; org.junit.Assert.assertTrue ( parser.isOnlyReloadable ( ) ) ; }

Target:
public void testParseOnlyReloadableFlag ( ) { parser.parse ( new java.lang.String [ ] { "--list" , "--only-reloadable" } ) ; org.junit.jupiter.api.Assertions.assertTrue ( parser.isOnlyReloadable ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase call ( ) { return runCanDoActionOnly ( currentCanDoActionId , totalSize ) ; }

Target:
public void run ( ) { runCommands ( ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel model ) { return org.ovirt.engine.ui.webadmin.widget.table.column.NetworkRoleColumnHelper.getValue ( java.util.Collections.singletonList ( ( model.isVmNetwork ( ) ? vmImage : emptyImage ) ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return org.ovirt.engine.ui.webadmin.widget.table.column.NetworkRoleColumnHelper.getValue ( java.util.Collections.singletonList ( ( clusterNetworkModel.isVmNetwork ( ) ? vmImage : emptyImage ) ) ) ; }
Source:
public void testConnection ( ) { getAll ( ) ; }

Target:
public void testConnection ( ) { try { getClient ( ) . execute ( new com.woorea.openstack.base.client.OpenStackRequest ( getClient ( ) , com.woorea.openstack.base.client.HttpMethod.GET , "" , null , org.ovirt.engine.core.bll.provider.network.openstack.OpenstackNetworkProviderProxy.ApiRootResponse.class ) ) ; } catch ( java.lang.RuntimeException e ) { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.PROVIDER_FAILURE , e ) ; } }
Source:
public java.lang.String getVmName ( ) { return this . vmStatic.getVmName ( ) ; }

Target:
public void setName ( java.lang.String value ) { this . vmStatic.setName ( value ) ; }
Source:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.DisconnectStorageServer.getValue ( ) , lun , Guid.Empty ) . getFirst ( ) ; }

Target:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.DisconnectStorageServer.getValue ( ) , lun , Guid.Empty ) . getFirst ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections getConnectionFromDbById ( java.lang.String connectionId ) { return org.ovirt.engine.core.bll.storage.connection.AddStorageServerConnectionCommand.getStorageConnDao ( ) . get ( connectionId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections getConnectionFromDbById ( java.lang.String connectionId ) { return storageServerConnectionDao.get ( connectionId ) ; }
Source:
public void setUsageNetworkPercent ( java.lang.Integer value ) { this . vmStatistics.setusage_network_percent ( value ) ; }

Target:
public void setUsageMemPercent ( java.lang.Integer value ) { this . vmStatistics.setUsageMemPercent ( value ) ; }
Source:
private void updateDomainInProblemData ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.debugFormat ( "domain {0} still in problem. vds: {1}" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.getDomainIdTuple ( domainId ) , vdsName ) ; _domainsInProblem.get ( domainId ) . add ( vdsId ) ; }

Target:
private void updateDomainInProblemData ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.debug ( "domain '{}' still in problem. vds: '{}'" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.getDomainIdTuple ( domainId ) , vdsName ) ; _domainsInProblem.get ( domainId ) . add ( vdsId ) ; }
Source:
org.ovirt.engine.core.common.businessentities.VdsStatic get ( java.lang.String name ) ;

Target:
org.ovirt.engine.core.common.businessentities.VdsStatic getByVdsName ( java.lang.String name ) ;
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.commonModel = null ; loginModel.resetAfterLogout ( ) ; user.onUserLogout ( ) ; frontendFailureEventListener.hide ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.commonModel = null ; loginModel.resetAfterLogout ( ) ; user.onUserLogout ( ) ; }
Source:
private void setHostEventListModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostEventListModel value ) { privateHostEventListModel = value ; }

Target:
public void setNumaSupportCommand ( org.ovirt.engine.ui.uicommonweb.UICommand numaSupportCommand ) { this . numaSupportCommand = numaSupportCommand ; }
Source:
public javax.ws.rs.core.Response setupNetworks ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HostSetupNetworksParameters parameters = toParameters ( action ) ; return performAction ( VdcActionType.HostSetupNetworks , parameters , action ) ; }

Target:
public javax.ws.rs.core.Response setupNetworks ( org.ovirt.engine.api.model.Action action ) { getVdsByVdsId ( ) ; org.ovirt.engine.core.common.action.HostSetupNetworksParameters parameters = toParameters ( action ) ; return performAction ( VdcActionType.HostSetupNetworks , parameters , action ) ; }
Source:
java.lang.String decrypt ( java.lang.String value ) throws java.lang.Exception { return org.ovirt.engine.core.engineencryptutils.EncryptionUtils.decrypt ( value , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.keyStoreURL , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.keyStorePass , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.certAlias ) ; }

Target:
java.lang.String decrypt ( java.lang.String value ) throws java.lang.Exception { return org.ovirt.engine.core.utils.crypt.EncryptionUtils.decrypt ( value , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.keyStoreURL , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.keyStorePass , org.ovirt.engine.core.config.entity.helper.PasswordValueHelper.certAlias ) ; }
Source:
protected boolean checkTemplateImages ( java.util.List < java.lang.String > reasons ) { return true ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) ; }
Source:
public void testIsNetworkInSyncWhenAverageRealTimeDifferent ( ) throws java.lang.Exception { ifaceQos.setOutAverageRealtime ( 1 ) ; networkQos.setOutAverageRealtime ( 2 ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testIsNetworkInSyncWhenAverageRealTimeDifferent ( ) { ifaceQos.setOutAverageRealtime ( 1 ) ; networkQos.setOutAverageRealtime ( 2 ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }