auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap entity = new org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap ( ) ; entity.setLunId ( rs.getString ( "lun_id" ) ) ; entity.setstorage_server_connection ( rs.getString ( "storage_server_connection" ) ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap entity = new org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap ( ) ; entity.setLunId ( rs.getString ( "lun_id" ) ) ; entity.setStorageServerConnection ( rs.getString ( "storage_server_connection" ) ) ; return entity ; }
Source:
protected void refreshNetworks ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { if ( ! ( parameters.isEmpty ( ) ) ) { org.ovirt.engine.core.bll.network.HostSetupNetworksParametersBuilder.updateParametersSequencing ( parameters ) ; runInternalMultipleActions ( VdcActionType.PersistentHostSetupNetworks , parameters ) ; } }

Target:
protected void refreshNetworks ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { if ( ! ( parameters.isEmpty ( ) ) ) { org.ovirt.engine.core.bll.network.HostSetupNetworksParametersBuilder.updateParametersSequencing ( parameters ) ; runInternalMultipleActions ( ActionType.PersistentHostSetupNetworks , parameters ) ; } }
Source:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }

Target:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getClusterCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }
Source:
public java.lang.Short getKsm_shared_memory_percent ( ) { return this . ksm_shared_memory_percent ; }

Target:
public java.lang.Long getKsm_shared_memory_mb ( ) { return this . ksm_shared_memory_mb ; }
Source:
public org.ovirt.engine.api.v3.types.V3VmPool update ( org.ovirt.engine.api.v3.types.V3VmPool pool ) { return adaptUpdate ( delegate :: update , pool ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VmPool update ( org.ovirt.engine.api.v3.types.V3VmPool pool ) { return adaptUpdate ( getDelegate ( ) :: update , pool ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.ad_groups > getGroupsFromDomain ( ) { return asCollection ( org.ovirt.engine.core.common.businessentities.ad_groups.class , getEntity ( java.util.ArrayList.class , SearchType.AdGroup , getSearchPattern ( "*" ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LdapGroup > getGroupsFromDomain ( ) { return asCollection ( org.ovirt.engine.core.common.businessentities.LdapGroup.class , getEntity ( java.util.ArrayList.class , SearchType.AdGroup , getSearchPattern ( "*" ) ) ) ; }
Source:
public void run ( org.ovirt.engine.core.common.businessentities.StoragePool item , org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetLocalStorageHost ( callback.getAsyncQuery ( ) , item.getname ( ) ) ; }

Target:
public void run ( org.ovirt.engine.core.common.businessentities.StoragePool item , org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getLocalStorageHost ( callback.getAsyncQuery ( ) , item.getname ( ) ) ; }
Source:
public java.lang.String getNewParentTagName ( ) { org.ovirt.engine.core.common.businessentities.Tags newParent = org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . getTagById ( org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getNewParentId ( ) ) ; if ( newParent != null ) { return newParent.getTagName ( ) ; } return "[null]" ; }

Target:
public java.lang.String getNewParentTagName ( ) { org.ovirt.engine.core.common.businessentities.Tags newParent = tagsDirector.getTagById ( org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getNewParentId ( ) ) ; if ( newParent != null ) { return newParent.getTagName ( ) ; } return "[null]" ; }
Source:
public void setvm_mem_size_mb ( int value ) { this . mVmStatic.setmem_size_mb ( value ) ; }

Target:
public java.lang.String getVmDomain ( ) { return this . vmStatic.getdomain ( ) ; }
Source:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_USER_ID , ActionGroup.CONSUME_QUOTA , new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringWithoutPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID , VmDeviceGeneralType.DISK , "disk" , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( "A user without any permissions should not see any devices" , devices.isEmpty ( ) ) ; }

Target:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringWithoutPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID , VmDeviceGeneralType.DISK , "disk" , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( devices.isEmpty ( ) , "A user without any permissions should not see any devices" ) ; }
Source:
public void validateFailesOnVolumeWithRebalanceTaskCompleted ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeWithRebalanceTaskCompleted ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnVolumeWithoutAsyncTask ( ) { cmd.setGlusterVolumeId ( volumeWithoutAsyncTask ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected org.ovirt.engine.core.utils.lock.LockManager getLockManager ( ) { return org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) ; }

Target:
private boolean acquireLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { return org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) . acquireLock ( lock ) . getFirst ( ) ; }
Source:
protected boolean isStorageDomainBelowThresholds ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { return org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isBelowThresholds ( storageDomain ) ; }

Target:
protected boolean isStorageDomainWithinThresholds ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { return org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isWithinThresholds ( storageDomain ) ; }
Source:
protected java.lang.String removeModulName ( java.lang.String moduleName ) { return ( moduleName.replace ( org.ovirt.engine.ui.userportal.uicommon.USERPORTAL_ROOT_FOLDER , "" ) ) + "/" ; }

Target:
protected void onUpdateDocumentationBaseURL ( ) { fetchFile ( ( ( getDocumentationBaseURL ( ) ) + "UserPortalDocumentationPath.csv" ) , documentationFileFetchedEvent ) ; }
Source:
public void markAsValid ( ) { markValidation ( false , null ) ; }

Target:
public void markAsValid ( ) { lunsListPanel.markAsValid ( ) ; targetsToLunsPanel.markAsValid ( ) ; }
Source:
protected java.lang.String getColorByProgress ( int progress ) { return org.ovirt.engine.ui.common.widget.table.column.DiskUploadImageProgressColumn.color.asCode ( ) ; }

Target:
protected java.lang.String getColorByProgress ( int progress ) { return org.ovirt.engine.ui.common.widget.table.column.DiskTransferProgressColumn.color.asCode ( ) ; }
Source:
public void testQuery ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.QUERY ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public void testValidateUniqueId ( ) { org.mockito.Mockito.when ( host.getUniqueId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateUniqueId ( ) { org.mockito.Mockito.when ( host.getUniqueId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.CinderBroker getCinderBroker ( ) { if ( ( cinderBroker ) == null ) { cinderBroker = new org.ovirt.engine.core.bll.storage.CinderBroker ( getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommand.getReturnValue ( ) . getExecuteFailedMessages ( ) ) ; } return cinderBroker ; }

Target:
private void lockDiskIfNecessary ( ) { if ( ( getDisk ( ) . getImageStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus.LOCKED ) ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getDisk ( ) . getId ( ) , ImageStatus.LOCKED ) ; } }
Source:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; if ( e.propertyName.equals ( "Disks" ) ) { updateStorageDomainsAvailability ( ) ; updateQuotaAvailability ( ) ; } }

Target:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; if ( ( e.propertyName.equals ( "Disks" ) ) || ( e.propertyName.equals ( "VolumeFormat" ) ) ) { updateStorageDomainsAvailability ( ) ; updateQuotaAvailability ( ) ; } }
Source:
protected void syncSearch ( ) { onEntityChanged ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getStatusRemoveBricksCommand ( ) { return statusRemoveBricksCommand ; }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase notAllowedInPrepForMaintMode ( org.ovirt.engine.core.common.action.VdcActionType action ) { java.lang.Class < ? > clazz = org.ovirt.engine.core.bll.CommandsFactory.getCommandClass ( action.name ( ) ) ; if ( clazz.isAnnotationPresent ( org.ovirt.engine.core.bll.DisableInPrepareMode.class ) ) { return getErrorCommandReturnValue ( EngineMessage.ENGINE_IS_RUNNING_IN_PREPARE_MODE ) ; } return null ; }

Target:
private org.ovirt.engine.core.common.action.VdcReturnValueBase notAllowedInPrepForMaintMode ( org.ovirt.engine.core.common.action.ActionType action ) { java.lang.Class < ? > clazz = org.ovirt.engine.core.bll.CommandsFactory.getCommandClass ( action.name ( ) ) ; if ( clazz.isAnnotationPresent ( org.ovirt.engine.core.bll.DisableInPrepareMode.class ) ) { return getErrorCommandReturnValue ( EngineMessage.ENGINE_IS_RUNNING_IN_PREPARE_MODE ) ; } return null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return ( network.isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return ( network.isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) ; }
Source:
private boolean doesUserHavePermissionsOnStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.repoimage.GetImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStoragePoolDao ( ) . get ( getStoragePoolId ( ) , org.ovirt.engine.core.bll.storage.repoimage.GetImagesListByStoragePoolIdQuery.getUserID ( ) , org.ovirt.engine.core.bll.storage.repoimage.GetImagesListByStoragePoolIdQuery.getParameters ( ) . isFiltered ( ) ) ; return pool != null ; }

Target:
private boolean doesUserHavePermissionsOnStoragePool ( ) { return ( storagePoolDao.get ( getStoragePoolId ( ) , org.ovirt.engine.core.bll.storage.repoimage.GetImagesListByStoragePoolIdQuery.getUserID ( ) , org.ovirt.engine.core.bll.storage.repoimage.GetImagesListByStoragePoolIdQuery.getParameters ( ) . isFiltered ( ) ) ) != null ; }
Source:
protected int getEntitiesTotalCount ( ) { return 2 ; }

Target:
protected int getEntitiesTotalCount ( ) { return 3 ; }
Source:
private void bindEventBus ( ) { bind ( com.google.gwt.event.shared.EventBus.class ) . to ( com.google.gwt.event.shared.EventBus.class ) ; bind ( com.google.gwt.event.shared.EventBus.class ) . to ( com.google.gwt.event.shared.SimpleEventBus.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
private void bindEventBus ( ) { bind ( com.google.web.bindery.event.shared.EventBus.class ) . to ( com.google.gwt.event.shared.EventBus.class ) ; bind ( com.google.gwt.event.shared.EventBus.class ) . to ( com.google.gwt.event.shared.SimpleEventBus.class ) . in ( com.google.inject.Singleton.class ) ; }
Source:
public org.ovirt.engine.core.compat.Guid createTask ( 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 super . createTask ( asyncTaskCreationInfo , parentCommand , entityType , entityIds ) ; }

Target:
public 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 ) { return super . createTask ( taskId , asyncTaskCreationInfo , parentCommand ) ; }
Source:
public void networkNotLabeled ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( validator.notLabeled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkNotLabeled ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.notLabeled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.api.model.VnicProfile update ( org.ovirt.engine.api.model.VnicProfile resource ) { return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVnicProfileById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateVnicProfile , new org.ovirt.engine.api.restapi.resource.BackendVnicProfileResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.VnicProfile update ( org.ovirt.engine.api.model.VnicProfile resource ) { validateEnums ( org.ovirt.engine.api.model.VnicProfile.class , resource ) ; return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVnicProfileById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateVnicProfile , new org.ovirt.engine.api.restapi.resource.BackendVnicProfileResource.UpdateParametersProvider ( ) ) ; }
Source:
public void testMarkHostDevicesUsedByVmId ( ) { dao.markHostDevicesUsedByVmId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , FixturesTool.VDS_RHEL6_NFS_SPM ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = dao.getHostDeviceByHostIdAndDeviceName ( FixturesTool.VDS_RHEL6_NFS_SPM , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , hostDevice.getVmId ( ) ) ; }

Target:
public void testMarkHostDevicesUsedByVmId ( ) { dao.markHostDevicesUsedByVmId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , FixturesTool.VDS_RHEL6_NFS_SPM ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = dao.getHostDeviceByHostIdAndDeviceName ( FixturesTool.VDS_RHEL6_NFS_SPM , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , hostDevice.getVmId ( ) ) ; }
Source:
public void testStorage ( ) { testValidSql ( "Storage: " , "SELECT * FROM ((SELECT storage_domains_for_search.* FROM storage_domains_for_search ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: datacenter = Default" , "SELECT * FROM ((SELECT storage_domains_for_search.* FROM storage_domains_for_search WHERE storage_domains_for_search.storage_pool_name::text LIKE Default ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: host.name = fake1" , "SELECT * FROM ((SELECT storage_domains_for_search.* FROM storage_domains_for_search LEFT OUTER JOIN vds_with_tags ON storage_domains_for_search.id=vds_with_tags.storage_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testDatacenter ( ) { testValidSql ( "DataCenter: sortby name" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool ) ORDER BY name,name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "DataCenter: Clusters.name =Default" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool LEFT OUTER JOIN vds_groups_storage_domain ON storage_pool.id=vds_groups_storage_domain.storage_pool_id WHERE vds_groups_storage_domain.name LIKE Default ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void updateAllDiskImageDynamicWithDiskIdByVmId ( java.util.Collection < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImageDynamic > > diskImageDynamicForVm ) { getCallsHandler ( ) . executeStoredProcAsBatch ( "Updatedisk_image_dynamic_by_disk_id_and_vm_id" , diskImageDynamicForVm , getBatchImageGroupMapper ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImageDynamic > o1 , org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImageDynamic > o2 ) { return o1.getFirst ( ) . compareTo ( o2.getFirst ( ) ) ; }
Source:
public boolean isSpiceFileTransferToggleSupported ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.SpiceFileTransferToggleSupported , version ) ) ) ; }

Target:
public java.util.List < java.lang.String > getMigrationPoliciesSupportedVersions ( ) { return getSupportedVersions ( ConfigurationValues.MigrationPoliciesSupported ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel object ) { table.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel object ) { table.asEditor ( ) . edit ( object ) ; }
Source:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { if ( ( getVdsDestinationId ( ) ) != null ) { decreasePendingVms ( getVdsDestinationId ( ) ) ; } org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected void setDestinationVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { destinationVds = ( vdsId != null ) ? org.ovirt.engine.core.bll.MigrateVmCommand.getVdsDAO ( ) . get ( vdsId ) : null ; }
Source:
public void setUsePatternFly ( final boolean use ) { if ( use ) { getContentWidgetElement ( ) . removeClassName ( Styles.FORM_CONTROL ) ; removeContentWidgetStyleName ( Styles.FORM_CONTROL ) ; } }

Target:
public void setUsePatternFly ( final boolean use ) { if ( use ) { noPaddingNoFixes ( ) ; } }
Source:
public void testNotExternalNetworkFailsForExternalNetwork ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_FOR_EXTERNAL_NETWORK ) ) ; }

Target:
public void testNotExternalNetworkFailsForExternalNetwork ( ) { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_FOR_EXTERNAL_NETWORK ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage_domains a ) { return ( a.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( a.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }
Source:
protected void updateActionAvailability ( ) { }

Target:
public abstract boolean canBeSelected ( ) ;
Source:
public org.ovirt.engine.api.resource.WatchdogsResource getWatchdogsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendWatchdogsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.WatchdogsResource getWatchdogsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateWatchdogsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }
Source:
public void setRoundedElapsedTime ( java.lang.Double value ) { this . mVmStatistics.setRoundedElapsedTime ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "roundedElapsedTime" ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getInterfaces ( ) { return vmStatic.getInterfaces ( ) ; }
Source:
private void manageSwift ( java.lang.String action ) { org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters parameters = new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( getEntity ( ) . getVdsGroupId ( ) , getEntity ( ) . getId ( ) , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.GLUSTER_SWIFT , action ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ManageGlusterService , parameters ) ; }

Target:
private void manageSwift ( java.lang.String action ) { org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters parameters = new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( getEntity ( ) . getClusterId ( ) , getEntity ( ) . getId ( ) , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.GLUSTER_SWIFT , action ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ManageGlusterService , parameters ) ; }
Source:
protected void executeQuery ( ) { org.ovirt.engine.core.common.businessentities.LdapGroup group = org.ovirt.engine.core.bll.adbroker.InternalBrokerUtils.getGroupByGroupGuid ( getGroupId ( ) ) ; setReturnValue ( group ) ; if ( group != null ) { setSucceeded ( true ) ; } else { setSucceeded ( false ) ; } }

Target:
protected void executeQuery ( ) { org.ovirt.engine.core.common.businessentities.LdapGroup group = org.ovirt.engine.core.bll.adbroker.InternalBrokerUtils.getGroupById ( getGroupId ( ) ) ; setReturnValue ( group ) ; if ( group != null ) { setSucceeded ( true ) ; } else { setSucceeded ( false ) ; } }
Source:
public java.lang.Object Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( returnValue != null ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert.putAll ( ( ( java.util.HashMap < org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > , java.lang.Object > ) ( returnValue ) ) ) ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert ; }

Target:
public java.lang.Boolean Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.lang.Boolean ) ( returnValue ) ) ; }
Source:
public static org.ovirt.vdsm.jsonrpc.client.reactors.Reactor getReactor ( org.ovirt.vdsm.jsonrpc.client.reactors.ManagerProvider provider ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( provider == null ) { return org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getNioReactor ( ) ; } return org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getSslReactor ( provider ) ; }

Target:
public static org.ovirt.vdsm.jsonrpc.client.reactors.Reactor getReactor ( org.ovirt.vdsm.jsonrpc.client.reactors.ManagerProvider provider , org.ovirt.vdsm.jsonrpc.client.reactors.ReactorType type ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( ReactorType.STOMP.equals ( type ) ) { return org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getStompReactor ( provider ) ; } else { return null ; } }
Source:
public boolean isVmManaged ( ) { org.ovirt.engine.core.common.businessentities.VM vm = getVm ( ) ; return ( vm != null ) && ( vm.isManagedVm ( ) ) ; }

Target:
public static boolean isHostedEngineDomain ( final org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.HostedEngineStorageDomainName ) . equals ( storageDomain.getName ( ) ) ; }
Source:
public void setvm_id ( org.ovirt.engine.core.compat.Guid value ) { this . id.vmId = value ; }

Target:
public void setVmId ( org.ovirt.engine.core.compat.Guid value ) { this . id.vmId = value ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > getFenceAgents ( ) { return getBackendCollection ( VdcQueryType.GetFenceAgentsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( new org.ovirt.engine.core.compat.Guid ( hostId ) ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > getFenceAgents ( ) { return getBackendCollection ( QueryType.GetFenceAgentsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( new org.ovirt.engine.core.compat.Guid ( hostId ) ) ) ; }
Source:
public void discardAfterDeleteLegalForExistingStorageDomainPredicateNull ( ) { domain.setSupportsDiscard ( null ) ; org.junit.Assert.assertFalse ( validator.discardAfterDeleteLegalForExistingStorageDomainPredicate ( ) ) ; }

Target:
public void discardAfterDeleteLegalForExistingStorageDomainPredicateNull ( ) { domain.setSupportsDiscard ( null ) ; org.junit.jupiter.api.Assertions.assertFalse ( validator.discardAfterDeleteLegalForExistingStorageDomainPredicate ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.sdk.entities.CPU > getCPUs ( ) { if ( ( cpUs ) == null ) { cpUs = new java.util.ArrayList < org.ovirt.engine.sdk.entities.CPU > ( ) ; } return this . cpUs ; }

Target:
public java.util.List < org.ovirt.engine.sdk.entities.BlockStatistic > getBlockStatistics ( ) { if ( ( blockStatistics ) == null ) { blockStatistics = new java.util.ArrayList < org.ovirt.engine.sdk.entities.BlockStatistic > ( ) ; } return this . blockStatistics ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
public java.lang.Integer getpm_port ( ) { return pmPort ; }

Target:
public java.lang.Integer getPmPort ( ) { return pmPort ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.StorageDomainGuidListReturnForXmlRpc getImageDomainsList ( java.lang.String spUUID , java.lang.String imgUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc uploadImage ( java.util.Map methodInfo , java.lang.String spUUID , java.lang.String sdUUID , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain loadTargetedMasterDomain ( ) { return getStorageDomainDAO ( ) . get ( getParameters ( ) . getNewMasterDomainId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain loadTargetedMasterDomain ( ) { return getStorageDomainDao ( ) . get ( getParameters ( ) . getNewMasterDomainId ( ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Provider > ( ) ; } return source ; }

Target:
public java.lang.Boolean convert ( java.lang.Object source ) { if ( source != null ) { return ! ( ( ( java.util.Collection < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }
Source:
public boolean equals ( java.lang.Object obj ) { return ( ( org.ovirt.engine.core.common.businessentities.Disk ) ( obj ) ) . isWipeAfterDelete ( ) ; }

Target:
private boolean isVmContainsWipeAfterDeleteDisk ( ) { for ( org.ovirt.engine.core.common.businessentities.Disk disk : vm.getDiskMap ( ) . values ( ) ) { if ( disk.isWipeAfterDelete ( ) ) { return true ; } } return false ; }
Source:
protected boolean canDoAction ( ) { return org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.CanRemoveVmFromPool ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getParameters ( ) . getVmId ( ) , org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.canRemoveVmFromPool ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getParameters ( ) . getVmId ( ) , org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
public void testCanDoActionCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.AddQuotaCommand addQuotaCommand = createCommand ( ) ; addQuotaCommand.canDoAction ( ) ; }

Target:
public void testValidateCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.AddQuotaCommand addQuotaCommand = createCommand ( ) ; addQuotaCommand.validate ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Cluster lookupClusterByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , "GetClusterByName" ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster lookupClusterByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , QueryType.GetClusterByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , "GetClusterByName" ) ; }
Source:
protected abstract org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask executeAndReturnTask ( ) ;

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getGlusterVolumeId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.GLUSTER , VdcBllMessages.ACTION_TYPE_FAILED_VOLUME_OPERATION_IN_PROGRESS ) ) ; }
Source:
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 ( ) : "" ) ) ) ; }

Target:
private java.lang.String getDiskIsBeingMigratedMessage ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return ( EngineMessage.ACTION_TYPE_FAILED_DISK_IS_BEING_MIGRATED.name ( ) ) + ( java.lang.String.format ( "$DiskName %1$s" , ( disk != null ? disk.getDiskAlias ( ) : "" ) ) ) ; }
Source:
public void networkExists ( ) throws java.lang.Exception { org.mockito.Mockito.when ( networkDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( network ) ; org.junit.Assert.assertThat ( validator.networkExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkExists ( ) throws java.lang.Exception { org.mockito.Mockito.when ( networkDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( network ) ; org.junit.Assert.assertThat ( validator.networkExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setGuestMemoryCached ( java.lang.Long guestMemoryCached ) { vmDynamic.setGuestMemoryCached ( guestMemoryCached ) ; }

Target:
public void setGuestMemoryCached ( java.lang.Long guestMemoryCached ) { vmStatistics.setGuestMemoryCached ( guestMemoryCached ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 4 ) , isPostZero ( ) , false ) ; }

Target:
protected abstract org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryImageParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) ;
Source:
public void update ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { getCallsHandler ( ) . executeModification ( "UpdateVmTemplate" , getInsertOrUpdateParameters ( template ) ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vmt_guid" , id ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkAttachment newNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface baseNic , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vlanDevice , java.util.List < java.lang.String > networksToSync ) { return org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.newNetworkAttachment ( network , baseNic , vlanDevice , null , networksToSync ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkAttachment newNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface baseNic , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vlanDevice , java.util.Set < java.lang.String > networksToSync ) { return org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.newNetworkAttachment ( network , baseNic , vlanDevice , null , networksToSync , null ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc reset ( java.lang.String vmId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks , java.lang.String memory ) ;
Source:
public java.lang.Void runInTransaction ( ) { getVmDeviceDao ( ) . update ( oldVmDevice ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( getVm ( ) ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDevice ( getVm ( ) . getStaticData ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getVmDeviceDao ( ) . updateAll ( "UpdateVmDeviceForHotPlugDisk" , devices ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( getVm ( ) ) ; return null ; }
Source:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( getDocumentationBasePath ( ) ) ) + "/" ; }

Target:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.DOCUMENTATION_ROOT ) ) + "/" ; }
Source:
public void setvm_pid ( java.lang.Integer value ) { this . vm_pid = value ; }

Target:
public java.lang.String getVmIp ( ) { return this . vmIp ; }
Source:
public static org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus getCommandExecutionStatus ( org.ovirt.engine.core.compat.Guid commandId ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.getCommandEntity ( commandId ) ; return cmdEntity == null ? org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus.UNKNOWN : cmdEntity.isExecuted ( ) ? org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus.EXECUTED : org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus.NOT_EXECUTED ; }

Target:
public static org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus getCommandExecutionStatus ( org.ovirt.engine.core.compat.Guid commandId ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.getCommandEntity ( commandId ) ; return cmdEntity == null ? org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus.UNKNOWN : cmdEntity.isExecuted ( ) ? org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus.EXECUTED : org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus.NOT_EXECUTED ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkStatus getStatus ( ) { return ( getEntity ( ) . getCluster ( ) ) == null ? null : getEntity ( ) . getCluster ( ) . getStatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkStatus getStatus ( ) { return ( getNetwork ( ) . getCluster ( ) ) == null ? null : getNetwork ( ) . getCluster ( ) . getStatus ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkQoSModel object ) { this . model = object ; driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkQoSModel object ) { qosWidget.edit ( object ) ; driver.edit ( object ) ; }
Source:
private void setUpMockUser ( ) { userID = new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; user = org.ovirt.engine.core.bll.AbstractUserQueryTest.mock ( org.ovirt.engine.core.common.interfaces.IVdcUser.class ) ; org.mockito.Mockito.when ( user.getUserId ( ) ) . thenReturn ( userID ) ; }

Target:
private void setUpMockUser ( ) { userID = new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; user = org.ovirt.engine.core.bll.AbstractUserQueryTest.mock ( org.ovirt.engine.core.common.users.VdcUser.class ) ; org.mockito.Mockito.when ( user.getUserId ( ) ) . thenReturn ( userID ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.CdRom cdrom = resource.get ( ) ; verifyModel ( cdrom ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.Cdrom cdrom = resource.get ( ) ; verifyModel ( cdrom ) ; }
Source:
protected boolean prepareFailureMessageForDomains ( java.lang.String domainNames ) { org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.addCanDoActionMessage ( java.lang.String.format ( "$domainNames %1$s" , domainNames ) ) ; return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS ) ; }

Target:
protected boolean prepareFailureMessageForDomains ( java.lang.String domainNames ) { org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.addCanDoActionMessageVariable ( "domainNames" , domainNames ) ; return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS ) ; }
Source:
public void legalArchitectureChange ( ) { createCommandWithDefaultCluster ( ) ; cpuExists ( ) ; architectureIsUpdatable ( ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void legalArchitectureChange ( ) { createCommandWithDefaultCluster ( ) ; cpuExists ( ) ; architectureIsUpdatable ( ) ; initAndAssertValidation ( true ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getInterfaceStatistics ( ) { return this . interfaceStatisticsField ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getInterfaceStatistics ( ) { return this . interfaceStatistics ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { int numOfDisks = getEntity ( object ) . getDiskMap ( ) . size ( ) ; return java.lang.String.valueOf ( numOfDisks ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData importVmData ) { int numOfDisks = importVmData.getVm ( ) . getDiskMap ( ) . size ( ) ; return java.lang.String.valueOf ( numOfDisks ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { onRestoreFromExportDomain ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { setWindow ( null ) ; }
Source:
private void doLoad ( org.ovirt.engine.api.extensions.ExtMap inputMap , org.ovirt.engine.api.extensions.ExtMap outputMap ) { org.ovirt.engine.api.extensions.ExtMap context = inputMap.< org.ovirt.engine.api.extensions.ExtMap > get ( Base.InvokeKeys.CONTEXT ) . mput ( Base.ContextKeys.AUTHOR , "The oVirt Project" ) . mput ( Base.ContextKeys.EXTENSION_NAME , "Log4jLogger" ) . mput ( Base.ContextKeys.LICENSE , "ASL 2.0" ) . mput ( Base.ContextKeys.HOME_URL , "http://www.ovirt.org" ) . mput ( Base.ContextKeys.VERSION , Config.PACKAGE_VERSION ) . mput ( Base.ContextKeys.EXTENSION_NOTES , java.lang.String.format ( "Display name: %s" , Config.PACKAGE_DISPLAY_NAME ) ) . mput ( Base.ContextKeys.BUILD_INTERFACE_VERSION , Base.INTERFACE_VERSION_CURRENT ) ; }

Target:
private void doLoad ( org.ovirt.engine.api.extensions.ExtMap inputMap , org.ovirt.engine.api.extensions.ExtMap outputMap ) { org.ovirt.engine.api.extensions.ExtMap context = inputMap.< org.ovirt.engine.api.extensions.ExtMap > get ( Base.InvokeKeys.CONTEXT ) . mput ( Base.ContextKeys.AUTHOR , "The oVirt Project" ) . mput ( Base.ContextKeys.EXTENSION_NAME , "ovirt-engine-extension-logger-log4j" ) . mput ( Base.ContextKeys.LICENSE , "ASL 2.0" ) . mput ( Base.ContextKeys.HOME_URL , "http://www.ovirt.org" ) . mput ( Base.ContextKeys.VERSION , Config.PACKAGE_VERSION ) . mput ( Base.ContextKeys.EXTENSION_NOTES , java.lang.String.format ( "Display name: %s" , Config.PACKAGE_DISPLAY_NAME ) ) . mput ( Base.ContextKeys.BUILD_INTERFACE_VERSION , Base.INTERFACE_VERSION_CURRENT ) ; }
Source:
public void setcpu_sys ( java.lang.Double value ) { this . cpu_sysField = value ; }

Target:
public void setCpuSys ( java.lang.Double value ) { this . cpu_sysField = value ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetExternalSubnetsOnProviderByNetwork , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } }
Source:
public void SaveIsInitialized ( org.ovirt.engine.core.compat.Guid vmid , boolean isInitialized ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , vmid ) . addValue ( "is_initialized" , isInitialized ) ; new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( "UpdateIsInitialized" ) . execute ( parameterSource ) ; }

Target:
public org.ovirt.engine.core.dao.provider.ProviderDao getProviderDao ( ) { return getDao ( org.ovirt.engine.core.dao.provider.ProviderDao.class ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : "" ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public void setdisplay_type ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . mVmDynamic.setdisplay_type ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "display_type" ) ) ; }

Target:
public void setDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . vmDynamic.setdisplay_type ( value ) ; }