auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void execute ( ) { startRefresh ( ) ; }

Target:
public void onRefreshActiveModel ( org.ovirt.engine.ui.frontend.communication.RefreshActiveModelEvent event ) { if ( getTimer ( ) . isActive ( ) ) { syncSearch ( ) ; if ( event.isDoFastForward ( ) ) { getTimer ( ) . fastForward ( ) ; } } }
Source:
public void updateAllInBatch ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsDynamic > entities ) { updateAll ( entities ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { result = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDevicesVisibilityVDSCommand.getBroker ( ) . getDevicesVisibility ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetDevicesVisibilityVDSCommand.getParameters ( ) . getDevicesIds ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetDevicesVisibilityVDSCommand.ProceedProxyReturnValue ( ) ; setReturnValue ( result.getDevicesVisibilityResult ( ) ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { result = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDevicesVisibilityVDSCommand.getBroker ( ) . getDevicesVisibility ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetDevicesVisibilityVDSCommand.getParameters ( ) . getDevicesIds ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetDevicesVisibilityVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( result.getDevicesVisibilityResult ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage.DiskVmElement lookupEntity ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.core.common.businessentities.storage.DiskVmElement.class , VdcQueryType.GetDiskVmElementById , new org.ovirt.engine.core.common.queries.VmDeviceIdQueryParameters ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( id , vmId ) ) , id.toString ( ) , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.DiskVmElement lookupEntity ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.core.common.businessentities.storage.DiskVmElement.class , QueryType.GetDiskVmElementById , new org.ovirt.engine.core.common.queries.VmDeviceIdQueryParameters ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( id , vmId ) ) , id.toString ( ) , false ) ; }
Source:
public java.lang.Long getmem_shared ( ) { return this . mVdsStatistics.getmem_shared ( ) ; }

Target:
public java.lang.Long getMemShared ( ) { return this . mVdsStatistics.getmem_shared ( ) ; }
Source:
public void testGetFullPath_SaneParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( "/branding/test" ) ; org.junit.Assert.assertNotNull ( "Path should not be null" , fullPath ) ; org.junit.Assert.assertEquals ( "Path should be '/abs/test/branding/test'" , "/abs/test/branding/test" , fullPath ) ; }

Target:
public void testGetFullPath_SaneParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( mockFile , "/branding/test" ) ; org.junit.Assert.assertNotNull ( "Path should not be null" , fullPath ) ; org.junit.Assert.assertEquals ( "Path should be '/abs/test/branding/test'" , "/abs/test/branding/test" , fullPath ) ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "vds_spm_id" , getvds_spm_id ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "vds_spm_id" , getVdsSpmId ( ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDAO ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getbookmark_name ( ) ) ) != null ) { AddErrorMessages ( VdcBllMessages.VAR__ACTION__ADD , VdcBllMessages.ACTION_TYPE_FAILED_BOOKMARK_NAME_ALREADY_EXISTS ) ; return false ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getbookmark_name ( ) ) ) != null ) { AddErrorMessages ( VdcBllMessages.VAR__ACTION__ADD , VdcBllMessages.ACTION_TYPE_FAILED_BOOKMARK_NAME_ALREADY_EXISTS ) ; return false ; } return true ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectVncImplementation ( VncConsoleModel.ClientConsoleMode.NoVnc ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { boolean previousSpicePreference = getView ( ) . getSpiceProxy ( ) ; selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Html5 ) ; spiceProxyUserPreference = previousSpicePreference ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost object ) { if ( ! ( object.isMultiSelection ( ) ) ) table.setSelectionModel ( new com.google.gwt.view.client.SingleSelectionModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.guide.MoveHostPopupView.Driver.driver.edit ( object ) ; table.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost object ) { if ( ! ( object.isMultiSelection ( ) ) ) table.setSelectionModel ( new com.google.gwt.view.client.SingleSelectionModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ) ; driver.edit ( object ) ; table.edit ( object ) ; }
Source:
public void networkSet ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( validator.networkIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkSet ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private static void serializeRsdl ( org.ovirt.engine.api.model.RSDL rsdl , java.lang.String rsdlLocation ) { javax.xml.bind.JAXB.marshal ( rsdl , new java.io.File ( rsdlLocation ) ) ; }

Target:
private static void serializeRsdl ( org.ovirt.engine.api.model.RSDL rsdl , java.lang.String rsdlLocation ) { org.ovirt.engine.api.model.ObjectFactory factory = new org.ovirt.engine.api.model.ObjectFactory ( ) ; javax.xml.bind.JAXBElement < org.ovirt.engine.api.model.RSDL > element = factory.createRsdl ( rsdl ) ; javax.xml.bind.JAXB.marshal ( element , new java.io.File ( rsdlLocation ) ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( existing_bookmark.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existing_bookmark.getName ( ) , result.getName ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( existing_bookmark.getName ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( existing_bookmark.getName ( ) , result.getName ( ) ) ; }
Source:
private void allQueriesForVms ( ) { org.mockito.Mockito.when ( vmDao.getAllForCluster ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; }

Target:
private void allQueriesForVms ( ) { org.mockito.Mockito.when ( vmDao.getAllForCluster ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; }
Source:
public org.ovirt.engine.api.model.SELinux adapt ( org.ovirt.engine.api.v3.types.V3SELinux from ) { org.ovirt.engine.api.model.SELinux to = new org.ovirt.engine.api.model.SELinux ( ) ; if ( from.isSetMode ( ) ) { to.setMode ( org.ovirt.engine.api.model.SELinuxMode.fromValue ( from.getMode ( ) ) ) ; } return to ; }

Target:
public org.ovirt.engine.api.model.SeLinux adapt ( org.ovirt.engine.api.v3.types.V3SELinux from ) { org.ovirt.engine.api.model.SeLinux to = new org.ovirt.engine.api.model.SeLinux ( ) ; if ( from.isSetMode ( ) ) { to.setMode ( org.ovirt.engine.api.model.SeLinuxMode.fromValue ( from.getMode ( ) ) ) ; } return to ; }
Source:
public org.ovirt.engine.core.common.businessentities.ArchitectureType Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( org.ovirt.engine.core.common.businessentities.ArchitectureType ) ( source ) ) ; }

Target:
public java.lang.Object convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( returnValue == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.migration.MigrationPolicy > ( ) ; } return returnValue ; }
Source:
public void testIsInStatusValid ( ) { org.junit.Assert.assertThat ( validator.isInStatus ( StoragePoolStatus.Up , StoragePoolStatus.Contend ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; org.junit.Assert.assertThat ( validator.isNotInStatus ( StoragePoolStatus.Up , StoragePoolStatus.Contend ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_STATUS_ILLEGAL ) ) ; }

Target:
public void testIsInStatusValid ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.isInStatus ( StoragePoolStatus.Up , StoragePoolStatus.Contend ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isNotInStatus ( StoragePoolStatus.Up , StoragePoolStatus.Contend ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_STATUS_ILLEGAL ) ) ; }
Source:
public void testGetString ( ) throws java.lang.Exception { java.io.File file = writeConf ( "a=a" ) ; org.ovirt.engine.core.extensions.mgr.Configuration config = org.ovirt.engine.core.extensions.mgr.Configuration.loadFile ( file ) ; org.junit.Assert.assertNotNull ( config ) ; org.junit.Assert.assertEquals ( "a" , config.getString ( "a" ) ) ; }

Target:
public void testGetString ( ) throws java.lang.Exception { java.io.File file = writeConf ( "a=a" ) ; org.ovirt.engine.core.extensions.mgr.Configuration config = org.ovirt.engine.core.extensions.mgr.Configuration.loadFile ( file ) ; org.junit.jupiter.api.Assertions.assertNotNull ( config ) ; org.junit.jupiter.api.Assertions.assertEquals ( "a" , config.getString ( "a" ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public static void GetGlusterVolumeBrickDetails ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , java.lang.String volume , java.lang.String brick ) { org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters ( clusterId , volume , brick , true ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeAdvancedDetails , parameters , aQuery ) ; }
Source:
public org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }

Target:
public org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }
Source:
private void setPositive ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > positive ) { this . positive = positive ; }

Target:
private void setVmAffinityRule ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.scheduling.EntityAffinityRule > vmAffinityRule ) { this . vmAffinityRule = vmAffinityRule ; }
Source:
public boolean execute ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { sendRequest ( createRequest ( null ) , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; return true ; } else { return false ; } }

Target:
public boolean execute ( ) { boolean sessionInUse = ( restApiSessionId ) != null ; if ( sessionInUse && ( refreshRestApiSession ) ) { sendRequest ( createRequest ( null ) , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; refreshRestApiSession = false ; } return sessionInUse ; }
Source:
public void testGetFetchForSpecificStoragePool ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertEquals ( 5 , quotaList.size ( ) ) ; }

Target:
public void testGetFetchForSpecificStoragePool ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertEquals ( 6 , quotaList.size ( ) ) ; }
Source:
protected void setUpVersionExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAvailableStoragePoolVersions , org.ovirt.engine.core.common.queries.GetAvailableStoragePoolVersionsParameters.class , new java.lang.String [ ] { "StoragePoolId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getVersions ( ) ) ; }

Target:
protected void setUpVersionExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAvailableStoragePoolVersions , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getVersions ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllWithIpAddress ( java.lang.String address ) { return multipleResults ( entityManager.createNativeQuery ( "select * from GetVdsStaticByIp(:ip)" , org.ovirt.engine.core.common.businessentities.VdsStatic.class ) . setParameter ( "ip" , address ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllWithIpAddress ( java.lang.String address ) { return getCallsHandler ( ) . executeReadList ( "GetVdsStaticByIp" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "ip" , address ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createNewVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setName ( "Default" ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createNewVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setName ( "Default" ) ; return group ; }
Source:
public static boolean isFloppySupported ( int osId , org.ovirt.engine.core.compat.Version clusterVersion ) { return org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . isFloppySupported ( osId , clusterVersion ) ; }

Target:
public boolean isFloppySupported ( int osId , org.ovirt.engine.core.compat.Version clusterVersion ) { return osRepository.isFloppySupported ( osId , clusterVersion ) ; }
Source:
private boolean isMaintenanceCommandExecuted ( java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.compat.Guid maintenanceCommandId = getMaintenanceCmdId ( childCmdIds ) ; org.ovirt.engine.core.common.businessentities.CommandEntity maintenanceCmd = org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getCommandEntity ( maintenanceCommandId ) ; return ( maintenanceCmd != null ) && ( maintenanceCmd.isExecuted ( ) ) ; }

Target:
private boolean isMaintenanceCommandExecuted ( java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.compat.Guid maintenanceCommandId = getMaintenanceCmdId ( childCmdIds ) ; org.ovirt.engine.core.common.businessentities.CommandEntity maintenanceCmd = commandCoordinatorUtil.getCommandEntity ( maintenanceCommandId ) ; return ( maintenanceCmd != null ) && ( maintenanceCmd.isExecuted ( ) ) ; }
Source:
public void portMirroringChangeNotSupported ( ) { mockVnicProfilePortMirroringChange ( false ) ; mockVmsUsingVnicProfile ( java.util.Collections.singletonList ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) ; org.junit.Assert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.failsWithVnicProfileInUse ( ) ) ; }

Target:
public void portMirroringNotChanged ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public < T > void bind ( java.lang.Class < T > pureClsType , T instance ) { org.mockito.Mockito.when ( mockedInjector.instanceOf ( pureClsType ) ) . thenReturn ( instance ) ; }

Target:
public < T > void bind ( java.lang.Class < T > pureClsType , T instance ) { overrideInjector ( mockedInjector ) ; org.mockito.Mockito.when ( mockedInjector.instanceOf ( pureClsType ) ) . thenReturn ( instance ) ; }
Source:
private void storagePoolExists ( ) { org.mockito.Mockito.when ( cmd.checkStoragePool ( ) ) . thenReturn ( true ) ; }

Target:
private void storagePoolExists ( ) { cmd.setStoragePool ( new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendTemplateResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetConsoleAware ( boolean allContent ) throws java.lang.Exception { if ( allContent ) { setUpGetRngDeviceExpectations ( new int [ ] { 0 } ) ; } super . testGetConsoleAware ( allContent ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; mockInterfaceList ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > createVG ( java.lang.String sdUUID , java.lang.String [ ] deviceList ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > isolateVolume ( java.lang.String sdUUID , java.lang.String srcImgUUID , java.lang.String dstImgUUID , java.lang.String volumeID ) ;
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true ) ; quotaManager.updateUsage ( quotaList ) ; return quotaList ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( quotaDao , true ) ; quotaManager.updateUsage ( quotaList ) ; return quotaList ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllUpServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return org.ovirt.engine.core.bll.gluster.GlusterHookCommandBase.getClusterUtils ( ) . getAllUpServers ( clusterId ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllUpServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return org.ovirt.engine.core.bll.gluster.GlusterHookCommandBase.getGlusterUtils ( ) . getAllUpServers ( clusterId ) ; }
Source:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateFailsNullParameterForIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; command.getParameters ( ) . setoVirtIsoFile ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }
Source:
protected abstract int getEneitiesTotalCount ( ) ;

Target:
protected abstract int getEntitiesTotalCount ( ) ;
Source:
private void unplugFromExternalNetwork ( ) { getProviderProxy ( ) . deallocate ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) ) ; }

Target:
private void unplugFromExternalNetwork ( ) { new org.ovirt.engine.core.bll.network.ExternalNetworkManager ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) , getNetwork ( ) ) . deallocateIfExternal ( ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; boolean force = org.ovirt.engine.api.common.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendHostResource.FORCE , true , false ) ; return performAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( guid , force ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; boolean force = org.ovirt.engine.api.restapi.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendHostResource.FORCE , true , false ) ; return performAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( guid , force ) ) ; }
Source:
public void moveShareableDisk ( ) { initializeCommand ( ImageOperation.Move ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void moveShareableDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
protected void doEdit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmSessionsModel model ) { org.ovirt.engine.ui.common.widget.uicommon.vm.VmSessionsModelForm.Driver.driver.edit ( model ) ; }

Target:
protected void doEdit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmSessionsModel model ) { driver.edit ( model ) ; }
Source:
private void DataCenterVersion_SelectedItemChanged ( ) { org.ovirt.engine.core.compat.Version version = ( ( org.ovirt.engine.core.compat.Version ) ( getDataCenter ( ) . getVersion ( ) . getSelectedItem ( ) ) ) ; getCluster ( ) . getVersion ( ) . setSelectedItem ( version ) ; }

Target:
private void dataCenterVersion_SelectedItemChanged ( ) { org.ovirt.engine.core.compat.Version version = ( ( org.ovirt.engine.core.compat.Version ) ( getDataCenter ( ) . getVersion ( ) . getSelectedItem ( ) ) ) ; getCluster ( ) . getVersion ( ) . setSelectedItem ( version ) ; }
Source:
public org.ovirt.engine.api.model.Tags list ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > tags = getTags ( ) ; tags.add ( getRootTag ( ) ) ; return mapCollection ( tags ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Tags list ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > tags = getTags ( ) ; tags.add ( getRootTag ( ) ) ; return mapCollection ( tags ) ; }
Source:
public void remove ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , id ) ; getCallsHandler ( ) . executeModification ( "DeleteVdsGroup" , parameterSource ) ; }

Target:
public void remove ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , id ) ; getCallsHandler ( ) . executeModification ( "DeleteCluster" , parameterSource ) ; }
Source:
public java.lang.String getToken ( ) { return getValue ( ) ; }

Target:
public static java.lang.String getToken ( ) { return getValueFrom ( "ssoToken" ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) ; return storageDomains.isEmpty ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) ; return storageDomains.isEmpty ( ) ; } return source ; }
Source:
public java.lang.Integer getvm_migrating ( ) { return this . vm_migrating ; }

Target:
public java.lang.Integer getVmMigrating ( ) { return vmMigrating ; }
Source:
public void nullNetworkNameWhenUnlinkingNotSupported ( ) throws java.lang.Exception { networkNameTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.junit.matchers.JUnitMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , null ) ; }

Target:
public void nullVnicProfileWhenUnlinkingNotSupported ( ) throws java.lang.Exception { vnicProfileTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.junit.matchers.JUnitMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , null ) ; }
Source:
public void testGetAllWithNameUsingInvalidName ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllWithName ( "farkle" ) ; org.ovirt.engine.core.dao.VdsDAOTest.assertIncorrectGetResult ( result ) ; }

Target:
public void testGetUsingInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.getByName ( "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getCurrentTaskHandlerRevertTaskType ( ) { return getCurrentTaskHandler ( ) . getRevertTaskType ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }
Source:
public boolean isSmartcardEnabledOverriden ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel item ) { org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel consoleModel = item.getDefaultConsole ( ) ; if ( consoleModel instanceof org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) ( consoleModel ) ) . getspice ( ) . isSmartcardEnabledOverridden ( ) ; } return false ; }

Target:
public boolean isSmartcardEnabledOverriden ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel item ) { org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel consoleModel = item.getDefaultConsoleModel ( ) ; if ( consoleModel instanceof org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) ( consoleModel ) ) . getspice ( ) . isSmartcardEnabledOverridden ( ) ; } return false ; }
Source:
public void getSnaphsotByTypeAndStatusForNonExistingEntity ( ) { org.junit.Assert.assertNull ( dao.get ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.REGULAR , SnapshotStatus.LOCKED ) ) ; }

Target:
public void getSnaphsotByTypeAndStatusForNonExistingEntity ( ) { org.junit.jupiter.api.Assertions.assertNull ( dao.get ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.REGULAR , SnapshotStatus.LOCKED ) ) ; }
Source:
public void setAccessible ( boolean accessible ) { wrapperPanel.setVisible ( accessible ) ; }

Target:
public void setAccessible ( boolean accessible ) { wrapperPanel.setVisible ( renderer.render ( this , accessible ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return this . vdsGroupId ; }

Target:
public org.ovirt.engine.core.compat.Guid getClusterId ( ) { return this . clusterId ; }
Source:
public void onUncaughtException ( java.lang.Throwable t ) { rootLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; alertManager.showUncaughtExceptionAlert ( t ) ; }

Target:
public void onUncaughtException ( java.lang.Throwable t ) { rootLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; remoteLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; if ( org.ovirt.engine.ui.common.DisplayUncaughtUIExceptions.getValue ( ) ) { alertManager.showUncaughtExceptionAlert ( t ) ; } }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster ) { return networkCluster.isManagement ( ) ; }

Target:
public boolean isManagementNetwork ( org.ovirt.engine.core.compat.Guid networkId ) { final java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > networkClusters = networkClusterDao.getAllForNetwork ( networkId ) ; return networkClusters.stream ( ) . anyMatch ( NetworkCluster :: isManagement ) ; }
Source:
public java.lang.String getBookmarkValue ( ) { return ( getBookmark ( ) ) != null ? getBookmark ( ) . getValue ( ) : null ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Bookmark getBookmark ( ) { if ( ( bookmark ) == null ) { bookmark = bookmarkDao.get ( getBookmarkId ( ) ) ; } return bookmark ; }
Source:
public void canDoActionFailesOnVolumeWithRemoveBricksTaskCompleted ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskCompleted , getBricks ( volumeWithRemoveBricksTaskCompleted , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsWithEmptyBricksList ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > ( ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void setVmDomain ( java.lang.String value ) { this . vmStatic.setdomain ( value ) ; }

Target:
public void setVmDomain ( java.lang.String value ) { this . vmStatic.setDomain ( value ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3VirtualNumaNode node ) { return adaptAdd ( delegate :: add , node ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3VirtualNumaNode node ) { return adaptAdd ( getDelegate ( ) :: add , node ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookEnable ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
public boolean hasNicHotplugSupport ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
java.lang.String getProductKey ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.LUN ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }

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 ) { revealStorageView ( disk ) ; }
Source:
public boolean getRootPasswordEnabled ( ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( getRootPassword ( ) . getEntity ( ) ) ) ; }

Target:
public boolean getRootPasswordEnabled ( ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( getCloudInitRootPassword ( ) . getEntity ( ) ) ) ; }
Source:
private void acquireHostDevicesLock ( ) { if ( needsHostDevices ) { hostDeviceManager.acquireHostDevicesLock ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVds ( ) ) ; } }

Target:
private void releaseHostDevicesLock ( ) { if ( needsHostDevices ) { hostDeviceManager.releaseHostDevicesLock ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVdsList ( ) . get ( 0 ) ) ; } }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getVmCount ( ) ) < ( vmCountTemp * ( org.ovirt.engine.core.bll.scheduling.VdsSelector.getEffectiveCpuCores ( p ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getVmCount ( ) ) < ( vmCountTemp * ( org.ovirt.engine.core.bll.scheduling.SlaValidator.getEffectiveCpuCores ( p ) ) ) ; }
Source:
public boolean Validate ( ) { getStorage ( ) . ValidateSelectedItem ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) } ) ; return getStorage ( ) . getIsValid ( ) ; }

Target:
public boolean Validate ( ) { getStorage ( ) . validateSelectedItem ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) } ) ; return getStorage ( ) . getIsValid ( ) ; }
Source:
public boolean isStatusUp ( ) { return org.ovirt.engine.core.common.businessentities.VM.isStatusUp ( getStatus ( ) ) ; }

Target:
public boolean isRunning ( ) { return getStatus ( ) . isRunning ( ) ; }
Source:
private void mockStorageDomainSpaceCheckerRequest ( org.ovirt.engine.core.common.businessentities.storage_domains domain , boolean succeeded ) { org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.hasSpaceForRequest ( org.mockito.Matchers.eq ( domain ) , org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( succeeded ) ; }

Target:
private void mockStorageDomainSpaceChecker ( org.ovirt.engine.core.common.businessentities.storage_domains domain , boolean succeeded ) { org.mockito.Mockito.doReturn ( succeeded ) . when ( command ) . isStorageDomainBelowThresholds ( domain ) ; }
Source:
public void addColumn ( com.google.gwt.user.cellview.client.Column column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , java.lang.String width ) { addColumnAndSetWidth ( column , headerHtml , width ) ; }

Target:
public void addColumn ( com.google.gwt.user.cellview.client.Column column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , java.lang.String width ) { addColumnWithHtmlHeader ( column , headerHtml , width ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VdsStatistics modifyEntity ( org.ovirt.engine.core.common.businessentities.VdsStatistics entity ) { entity.setHighlyAvailableIsActive ( true ) ; return entity ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VdsStatistics result = dao.get ( existingVds.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds.getId ( ) , result.getId ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList ( ) ; }
Source:
public void validateFailsNullParameterForIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( null ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }

Target:
public void validateFailsMissingIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; command.getParameters ( ) . setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }
Source:
public void canDetectMissingVM ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.Matchers.eq ( vm.getId ( ) ) ) ) . thenReturn ( null ) ; mockCommandWithVmFromDb ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; }

Target:
public void canDetectMissingVM ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.ArgumentMatchers.eq ( vm.getId ( ) ) ) ) . thenReturn ( null ) ; mockCommandWithVmFromDb ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; behavior.setMaxVmsInPool ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; behavior.UpdateMaxNumOfVmCpus ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; behavior.setMaxVmsInPool ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; behavior.updateMaxNumOfVmCpus ( ) ; }
Source:
public void Template_SelectedItemChanged ( ) { super . Template_SelectedItemChanged ( ) ; getModel ( ) . setIsDisksAvailable ( true ) ; }

Target:
public void Template_SelectedItemChanged ( ) { super . Template_SelectedItemChanged ( ) ; getModel ( ) . setIsDisksAvailable ( true ) ; updateHostPinning ( pool.getMigrationSupport ( ) ) ; }
Source:
public void managementNetworkRequiredInvalid ( ) { testmanagementNetworkRequired ( true , false , org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_REQUIRED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.hasItem ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.NETWORK_NAME_REPLACEMENT ) ) ) ) ; }

Target:
public void managementNetworkRequiredInvalid ( ) { testmanagementNetworkRequired ( true , false , org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_REQUIRED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.hasItem ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.NETWORK_NAME_REPLACEMENT ) ) ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.buildSendDataToVdsm ( ) ; status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.getBroker ( ) . hotunplugDisk ( sendInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.buildSendDataToVdsm ( ) ; status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.getBroker ( ) . hotunplugDisk ( sendInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void validateVmMemoryCantRunOnVdsHighOverhead ( ) { vds.setGuestOverhead ( 1024 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantRunOnVdsHighOverhead ( ) { vds.setGuestOverhead ( 1024 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public void setkvm_enable ( java.lang.Boolean value ) { this . mVmDynamic.setkvm_enable ( value ) ; }

Target:
public void setAcpiEnable ( java.lang.Boolean value ) { this . vmDynamic.setacpi_enable ( value ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterServerServiceDaoDbFacadeImpl.serviceRowMapper ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( getJdbcTemplate ( ) ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterServerServiceDaoDbFacadeImpl.serviceRowMapper ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfo generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfo ( FixturesTool.STORAGE_DOAMIN_NFS_MASTER , null , FixturesTool.DISK_ID_2 , org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfoStatus.OUTDATED , null ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfo generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfo ( FixturesTool.STORAGE_DOMAIN_NFS_MASTER , null , FixturesTool.DISK_ID_2 , org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfoStatus.OUTDATED , null ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid NewGuid ( ) { return new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; }

Target:
public static org.ovirt.engine.core.compat.Guid newGuid ( ) { return new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; }
Source:
public void testGetRole ( ) { org.ovirt.engine.core.common.businessentities.roles result = dao.get ( existingRole.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingRole , result ) ; }

Target:
public void testGetRole ( ) { org.ovirt.engine.core.common.businessentities.Role result = dao.get ( existingRole.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingRole , result ) ; }
Source:
public void setIsDirectLunDiskAvaialable ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { isDirectLunDiskAvaialable = value ; }

Target:
public void setPreviousIsQuotaAvailable ( boolean previousIsQuotaAvailable ) { this . previousIsQuotaAvailable = previousIsQuotaAvailable ; }
Source:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getVdsGroupCompatibilityVersion ( ) , value ) ) { this . vdsGroupCompatibilityVersion = value ; } }

Target:
public org.ovirt.engine.core.common.businessentities.SsoMethod getSsoMethod ( ) { return vmStatic.getSsoMethod ( ) ; }
Source:
public void getTagIdAndChildrenIdsAsList ( java.util.HashSet < org.ovirt.engine.core.compat.Guid > tagIds ) { tagIds.add ( gettag_id ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.tags tag : _children ) { tag.getTagIdAndChildrenIdsAsList ( tagIds ) ; } }

Target:
public void getTagIdAndChildrenIdsAsList ( java.util.HashSet < org.ovirt.engine.core.compat.Guid > tagIds ) { tagIds.add ( gettag_id ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.Tags tag : _children ) { tag.getTagIdAndChildrenIdsAsList ( tagIds ) ; } }
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.VM ) ; 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 ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VM ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }