auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.api.resource.NetworkLabelsResource getNetworkLabelsResource ( ) { return null ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = parent.getIscsiBond ( ) ; iscsiBond.getNetworkIds ( ) . remove ( guid ) ; return performAction ( VdcActionType.EditIscsiBond , new org.ovirt.engine.core.common.action.EditIscsiBondParameters ( iscsiBond ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.DiskVmElement getDiskVmElement ( org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk ) { return org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery.getDbFacade ( ) . getDiskVmElementDao ( ) . get ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( disk.getId ( ) , org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.DiskVmElement getDiskVmElement ( org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk ) { return diskVmElementDao.get ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( disk.getId ( ) , org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( result.getState ( ) ) ) ; dataCenterGuideModel.removeConnection = false ; dataCenterGuideModel.OnFinish ( dataCenterGuideModel.context , true , dataCenterGuideModel.storageModel ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( result.getState ( ) ) ) ; dataCenterGuideModel.removeConnection = false ; dataCenterGuideModel.OnFinish ( dataCenterGuideModel.context , true , dataCenterGuideModel.storageModel ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Disk get ( ) { return adaptGet ( getDelegate ( ) :: get ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Disk get ( ) { org.ovirt.engine.api.v3.types.V3Disk disk = adaptGet ( getDelegate ( ) :: get ) ; org.ovirt.engine.api.v3.helpers.V3TemplateHelper.fixDiskLinks ( templateId , disk ) ; return disk ; }
Source:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getBroker ( ) . getCapabilities ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVDSDynamicData ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) , infoReturn.mInfo ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getBroker ( ) . getCapabilities ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVDSDynamicData ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) , infoReturn.mInfo ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) ) ; }
Source:
public void storageDomainName ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain s = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; s.setStorageName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; b.setStorageDomain ( s ) ; final java.lang.String n = b.getStorageDomainName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , n ) ; }

Target:
public void storageDomainName ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain s = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; s.setStorageName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; b.setStorageDomain ( s ) ; final java.lang.String n = b.getStorageDomainName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , n ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAll ( ) { return recoreds ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAll ( org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return recoreds ; }
Source:
public void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.setWindow ( null ) ; updateActionAvailability ( ) ; }
Source:
public org.ovirt.engine.core.compat.Guid runInTransaction ( ) { getCompensationContext ( ) . resetCompensation ( ) ; return createTaskInCurrentTransaction ( ret1.getCreationInfo ( ) , VdcActionType.HibernateVm , VdcObjectType.Storage , getStorageDomainId ( ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid runInTransaction ( ) { getCompensationContext ( ) . resetCompensation ( ) ; return createTaskInCurrentTransaction ( taskId1 , ret1.getCreationInfo ( ) , VdcActionType.HibernateVm , VdcObjectType.Storage , getStorageDomainId ( ) ) ; }
Source:
public void tearDown ( ) { java.util.Locale.setDefault ( locale ) ; control.verify ( ) ; }

Target:
public void tearDown ( ) { java.util.Locale.setDefault ( locale ) ; control.verify ( ) ; org.ovirt.engine.api.common.invocation.CurrentManager.remove ( ) ; }
Source:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , getParent ( ) . getNetworkIdResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , getParent ( ) . getNetworkIdResolver ( ) , ActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.VmDAO getVmDAO ( ) { return getDbFacade ( ) . getVmDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VmDao getVmDao ( ) { return getDbFacade ( ) . getVmDao ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants ) { return new com.gwtplatform.mvp.client.TabDataBasic ( applicationConstants.extendedTemplateEventsSubTabLabel ( ) , 3 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new com.gwtplatform.mvp.client.TabDataBasic ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.extended.template.SubTabExtendedTemplateEventsPresenter.constants.extendedTemplateEventsSubTabLabel ( ) , 3 ) ; }
Source:
public void discardAfterDeleteSupportedByDcVersion ( ) { domain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertThat ( validator.isDiscardAfterDeleteSupportedByDcVersion ( Version.v4_1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void discardAfterDeleteSupportedByDcVersion ( ) { domain.setDiscardAfterDelete ( true ) ; org.ovirt.engine.core.bll.validator.storage.StorageDomainValidatorTest.mcr.mockConfigValue ( ConfigValues.DiscardAfterDeleteSupported , Version.v4_1 , true ) ; org.junit.Assert.assertThat ( validator.isDiscardAfterDeleteSupportedByDcVersion ( Version.v4_1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setstorage_domain_type ( org.ovirt.engine.core.common.businessentities.StorageDomainType value ) { getStorageStaticData ( ) . setstorage_domain_type ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "storage_domain_type" ) ) ; }

Target:
public long getLastTimeUsedAsMaster ( ) { return _staticData.getLastTimeUsedAsMaster ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileNotUsedByTemplates ( ) { return vnicProfileNotUsed ( getDbFacade ( ) . getVmTemplateDao ( ) . getAllForVnicProfile ( vnicProfile.getId ( ) ) , VdcBllMessages.VAR__ENTITIES__VM_TEMPLATES , VdcBllMessages.VAR__ENTITIES__VM_TEMPLATE ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileNotUsedByTemplates ( ) { return vnicProfileNotUsed ( getDbFacade ( ) . getVmTemplateDao ( ) . getAllForVnicProfile ( vnicProfile.getId ( ) ) , EngineMessage.VAR__ENTITIES__VM_TEMPLATES , EngineMessage.VAR__ENTITIES__VM_TEMPLATE ) ; }
Source:
private void initHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.TagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.ovirt.engine.core.bll.VdsHandler.Init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }

Target:
private void initHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.ovirt.engine.core.bll.VdsHandler.Init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
public void testGetBySlaveHostAndVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session = dao.getGeoRepSession ( FixturesTool.GLUSTER_VOLUME_UUID1 , "192.168.122.17" , "slave-replica" ) ; org.junit.Assert.assertNotNull ( session ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_GEOREP_SESSION_ID , session.getId ( ) ) ; }

Target:
public void testGetBySlaveHostAndVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session = dao.getGeoRepSession ( FixturesTool.GLUSTER_VOLUME_UUID1 , new org.ovirt.engine.core.compat.Guid ( "44f645f6-3fe9-4b35-a30c-be0d1a835ea8" ) , "slave-replica" ) ; org.junit.Assert.assertNotNull ( session ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_GEOREP_SESSION_ID , session.getId ( ) ) ; }
Source:
private void init ( ) { setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newLogicalNetworkTitle ( ) ) ; setHelpTag ( HelpTag.new_logical_network ) ; setHashName ( "new_logical_network" ) ; }

Target:
private void init ( ) { setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newLogicalNetworkTitle ( ) ) ; setHelpTag ( HelpTag.new_logical_network ) ; setHashName ( "new_logical_network" ) ; initMtu ( ) ; }
Source:
protected void moveOrCopyAllImageGroups ( ) { moveOrCopyAllImageGroups ( getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getVm ( ) . getDiskMap ( ) . values ( ) , false , false ) ) ; }

Target:
protected void moveOrCopyAllImageGroups ( ) { moveOrCopyAllImageGroups ( getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getVm ( ) . getDiskMap ( ) . values ( ) , false , false ) ) ; copyAllMemoryImages ( getVm ( ) . getId ( ) ) ; }
Source:
public boolean isBlockDomain ( ) { return ( ( this ) == ( org.ovirt.engine.core.common.businessentities.StorageType.FCP ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.StorageType.ISCSI ) ) ; }

Target:
public boolean isBlockDomain ( ) { return ( subtype ) == ( org.ovirt.engine.core.common.businessentities.StorageType.Subtype.BLOCK ) ; }
Source:
protected void buildChildCommandInfos ( ) { org.ovirt.engine.core.compat.Guid vmSnapshotId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; for ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage : mImages ) { addChildCommandInfo ( diskImage.getImageId ( ) , VdcActionType.CreateImageTemplate , buildChildCommandParameters ( diskImage , vmSnapshotId ) ) ; } }

Target:
protected void separateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic parameterMasterVm ) { if ( ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVdsGroup ( ) ) != null ) { org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . separateCustomPropertiesToUserAndPredefined ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) , parameterMasterVm ) ; } }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Cluster.class , org.ovirt.engine.core.common.VdcObjectType.VdsGroups ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.core.common.businessentities.Cluster.class , org.ovirt.engine.core.common.VdcObjectType.Cluster ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }

Target:
public java.lang.Boolean convert ( java.lang.Object source ) { if ( source != null ) { return ! ( ( ( java.util.Collection < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }
Source:
org.ovirt.engine.core.bll.host.provider.foreman.ContentHost findContentHost ( org.ovirt.engine.core.common.businessentities.VdsStatic host ) ;

Target:
org.ovirt.engine.core.bll.host.provider.foreman.ContentHost findContentHost ( java.lang.String hostName ) ;
Source:
public void doPolling ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . proceedCommandExecution ( ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getRemoveSnapshotCommand ( cmdId ) . onFailed ( ) ; super . onFailed ( cmdId , childCmdIds ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.quota.ChangeQuotaModel model ) { org.ovirt.engine.ui.common.widget.uicommon.popup.quota.ChangeQuotaView.Driver.driver.edit ( model ) ; initListerners ( model ) ; updateListHeader ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.quota.ChangeQuotaModel model ) { driver.edit ( model ) ; initListerners ( model ) ; updateListHeader ( model ) ; }
Source:
public static org.ovirt.engine.api.model.User map ( org.ovirt.engine.core.common.businessentities.aaa.DbUser entity , org.ovirt.engine.api.model.User template ) { org.ovirt.engine.api.model.User model = ( template != null ) ? template : new org.ovirt.engine.api.model.User ( ) ; model.setName ( entity.getFirstName ( ) ) ; model.setUserName ( ( ( ( entity.getLoginName ( ) ) + "@" ) + ( entity.getDomain ( ) ) ) ) ; model.setId ( entity.getId ( ) . toString ( ) ) ; model.setLastName ( entity.getLastName ( ) ) ; model.setEmail ( entity.getEmail ( ) ) ; model.setDepartment ( entity.getDepartment ( ) ) ; model.setDomainEntryId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( entity.getExternalId ( ) ) ) ; model.setNamespace ( entity.getNamespace ( ) ) ; if ( ( ( entity.getGroupNames ( ) ) != null ) && ( ( entity.getGroupNames ( ) . size ( ) ) > 0 ) ) { model.setGroups ( new org.ovirt.engine.api.model.Groups ( ) ) ; for ( java.lang.String name : entity.getGroupNames ( ) ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setName ( name ) ; model.getGroups ( ) . getGroups ( ) . add ( group ) ; } } if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( entity.getDomain ( ) ) ) ) { org.ovirt.engine.api.model.Domain dom = new org.ovirt.engine.api.model.Domain ( ) ; dom.setId ( new org.ovirt.engine.core.compat.Guid ( entity.getDomain ( ) . getBytes ( ) , true ) . toString ( ) ) ; model.setDomain ( dom ) ; } return model ; }

Target:
public static org.ovirt.engine.api.model.User map ( org.ovirt.engine.core.common.businessentities.aaa.DbUser entity , org.ovirt.engine.api.model.User template ) { org.ovirt.engine.api.model.User model = ( template != null ) ? template : new org.ovirt.engine.api.model.User ( ) ; model.setName ( entity.getFirstName ( ) ) ; model.setUserName ( ( ( ( entity.getLoginName ( ) ) + "@" ) + ( entity.getDomain ( ) ) ) ) ; model.setId ( entity.getId ( ) . toString ( ) ) ; model.setLastName ( entity.getLastName ( ) ) ; model.setEmail ( entity.getEmail ( ) ) ; model.setDepartment ( entity.getDepartment ( ) ) ; model.setDomainEntryId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( entity.getExternalId ( ) ) ) ; model.setNamespace ( entity.getNamespace ( ) ) ; if ( ( ( entity.getGroupNames ( ) ) != null ) && ( ( entity.getGroupNames ( ) . size ( ) ) > 0 ) ) { model.setGroups ( new org.ovirt.engine.api.model.Groups ( ) ) ; for ( java.lang.String name : entity.getGroupNames ( ) ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setName ( name ) ; model.getGroups ( ) . getGroups ( ) . add ( group ) ; } } if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( entity.getDomain ( ) ) ) ) { org.ovirt.engine.api.model.Domain dom = new org.ovirt.engine.api.model.Domain ( ) ; dom.setId ( new org.ovirt.engine.core.compat.Guid ( entity.getDomain ( ) . getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) , true ) . toString ( ) ) ; model.setDomain ( dom ) ; } return model ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notManagementNetwork ( ) { return org.ovirt.engine.core.utils.NetworkUtils.isManagementNetwork ( network ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , getNetworkNameReplacement ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
protected boolean isManagementNetwork ( ) { return getManagementNetworkUtil ( ) . isManagementNetwork ( network.getId ( ) ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( getVm ( ) . getId ( ) ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( getExecutionContext ( ) ) ) ; }

Target:
public void run ( ) { runInternalActionWithTasksContext ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( getVm ( ) . getId ( ) ) ) ; }
Source:
public static void removeVmDevices ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices ) { for ( org.ovirt.engine.core.common.businessentities.VmDevice device : devices ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.remove ( device.getId ( ) ) ; } }

Target:
public void removeVmDevices ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices ) { for ( org.ovirt.engine.core.common.businessentities.VmDevice device : devices ) { vmDeviceDao.remove ( device.getId ( ) ) ; } }
Source:
public void testGetNotFound ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.WatchDog watchDog = resource.get ( ) ; verifyModel ( watchDog , 1 ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmWatchdog getWatchdog ( ) { org.ovirt.engine.core.common.businessentities.VmWatchdog watchDog = new org.ovirt.engine.core.common.businessentities.VmWatchdog ( ) ; watchDog.setId ( org.ovirt.engine.api.restapi.resource.BackendWatchdogResourceTest.WATCHDOG_ID ) ; watchDog.setAction ( VmWatchdogAction.RESET ) ; watchDog.setModel ( VmWatchdogType.i6300esb ) ; return watchDog ; }
Source:
protected org.ovirt.engine.core.compat.Guid asGuid ( java.lang.String id ) { try { return new org.ovirt.engine.core.compat.Guid ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.resource.BaseBackendResource.MalformedIdException ( e ) ; } }

Target:
protected java.lang.Long asLong ( java.lang.String id ) { try { return new java.lang.Long ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.utils.MalformedIdException ( e ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.VDS getVds ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeRebalanceStatusQueryTest.SERVER_ID ) ; vds.setVdsName ( "gfs1" ) ; vds.setVdsGroupId ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeRebalanceStatusQueryTest.CLUSTER_ID ) ; vds.setStatus ( status ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDS getVds ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeRebalanceStatusQueryTest.SERVER_ID ) ; vds.setVdsName ( "gfs1" ) ; vds.setClusterId ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeRebalanceStatusQueryTest.CLUSTER_ID ) ; vds.setStatus ( status ) ; return vds ; }
Source:
protected void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.DETACH_NETWORK.getCommand ( op1 , op2 , allNics ) . execute ( ) ; }

Target:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return op1 instanceof org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkLabelModel.NewNetworkLabelModel ? org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newLabel ( ) : org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . label ( op1.getName ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setStoragePool ( ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( returnValue ) ) ) ; callback.onSuccess ( model , returnValue ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateWindowsWarningMessage ( ) ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return constants.suspendVmLabel ( ) ; }

Target:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.powerOffVm ( ) ; }
Source:
protected void initUiCommon ( ) { org.ovirt.engine.ui.uicommonweb.TypeResolver.Initialize ( typeResolver ) ; }

Target:
protected void initUiCommon ( ) { org.ovirt.engine.ui.uicommonweb.TypeResolver.initialize ( typeResolver ) ; }
Source:
public void interfaceBasedOnNullIface ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( generateVlanName ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) , null ) ) ; }

Target:
public void interfaceBasedOnNullIface ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createVlan ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) , null ) ) ; }
Source:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.action.CreateOrUpdateBond createOrUpdateBond = createNewCreateOrUpdateBond ( null , "bond1" , "slaveA" , "slaveB" ) ; doTestValidModifiedBonds ( createOrUpdateBond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }
Source:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDao ( ) ; command.postConstruct ( ) ; }

Target:
public void setupMocks ( ) { setUpCommand ( ) ; mockVds ( ) ; mockDbDao ( ) ; command.init ( ) ; }
Source:
public void setBootSequence ( org.ovirt.engine.core.common.businessentities.BootSequence value ) { this . vmDynamic.setboot_sequence ( value ) ; }

Target:
public java.lang.String getDisplayIp ( ) { return this . vmDynamic.getDisplayIp ( ) ; }
Source:
private org.ovirt.engine.core.bll.ConvertVmCommand < org.ovirt.engine.core.common.action.ConvertVmParameters > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.VdsManager getVdsManager ( ) { return getResourceManager ( ) . GetVdsManager ( org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( existingVds.getVdsName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds.getVdsName ( ) , result.getVdsName ( ) ) ; }

Target:
public void testGetByVdsName ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.getByVdsName ( existingVds.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds.getName ( ) , result.getName ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getQemuImageInfo ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
protected void buildVmCD ( ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( vm.getCdPath ( ) ) ) ) { createInfo.add ( VdsProperties.CDRom , vm.getCdPath ( ) ) ; } }

Target:
protected void buildVmCD ( ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( vm.getCdPath ( ) ) ) ) { createInfo.add ( VdsProperties.CDRom , vm.getCdPath ( ) ) ; } }
Source:
public void testValidateGatewayWhenRelatedNetworkIsManagementNetwork ( ) throws java.lang.Exception { doTestValidateGateway ( "someGateway" , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateGatewayIsNotManagementNetworkAndMultipleGatewaysSupported ( ) { doTestValidateGateway ( "someGateway" , false , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void raceConditionVdsGroupRemoved ( ) { simulateVdsGroupExists ( ) ; simulateVdsGroupWasRemoved ( ) ; assertExecuteActionFailure ( ) ; }

Target:
public void raceConditionClusterRemoved ( ) { simulateClusterExists ( ) ; simulateClusterWasRemoved ( ) ; assertExecuteActionFailure ( ) ; }
Source:
private void addMissingLinks ( org.ovirt.engine.sdk.entities.RSDL rsdl ) { addMissingLink ( rsdl , "users/{user:id}/roles/{role:id}" , "Role" ) ; addMissingLink ( rsdl , "users/{user:id}/roles/{role:id}/permits/{permit:id}" , "Permit" ) ; addMissingLink ( rsdl , "groups/{group:id}/roles/{role:id}" , "Role" ) ; addMissingLink ( rsdl , "groups/{group:id}/roles/{role:id}/permits/{permit:id}" , "Permit" ) ; }

Target:
private void addMissingLinks ( org.ovirt.engine.sdk.entities.Rsdl rsdl ) { addMissingLink ( rsdl , "users/{user:id}/roles/{role:id}" , "Role" ) ; addMissingLink ( rsdl , "users/{user:id}/roles/{role:id}/permits/{permit:id}" , "Permit" ) ; addMissingLink ( rsdl , "groups/{group:id}/roles/{role:id}" , "Role" ) ; addMissingLink ( rsdl , "groups/{group:id}/roles/{role:id}/permits/{permit:id}" , "Permit" ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getChildCmdsByParentCmdId ( org.ovirt.engine.core.compat.Guid cmdId ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getChildCmdsByRootCmdId ( org.ovirt.engine.core.compat.Guid cmdId ) ;
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getFilteredDisksForSnapshot ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > filteredDisksForSnapshot = getDiskImagesForVm ( ) ; return filteredDisksForSnapshot ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getDiskImages ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { if ( ( cachedImagesDisks ) == null ) { cachedImagesDisks = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( disks , true , true , true ) ; } return cachedImagesDisks ; }
Source:
protected java.lang.String specialCharacters ( ) { return "_-" ; }

Target:
protected java.lang.String specialCharacters ( ) { return "._-" ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.hostDataCenter = ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( returnValue ) ) ; SetDefaultNames2 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.hostDataCenter = ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( returnValue ) ) ; setDefaultNames2 ( ) ; }
Source:
protected void startPollingAsyncTasks ( ) { startPollingAsyncTasks ( getReturnValue ( ) . getTaskIdList ( ) ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return ( getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? getReturnValue ( ) . getInternalVdsmTaskIdList ( ) : getReturnValue ( ) . getVdsmTaskIdList ( ) ; }
Source:
public java.lang.String getVdcUserName ( ) { return org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getUserName ( ) ; }

Target:
public java.lang.String getUserName ( ) { return org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . getLoggedInUser ( ) . getLoginName ( ) ; }
Source:
public void getManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }

Target:
public void isClusterEmpty ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { runQueryByIdParameter ( VdcQueryType.IsClusterEmpty , aQuery , clusterId ) ; }
Source:
protected void fetchVmDisksFromDb ( ) { if ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDiskMap ( ) . isEmpty ( ) ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } }

Target:
protected void fetchVmDisksFromDb ( ) { if ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDiskMap ( ) . isEmpty ( ) ) { vmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } }
Source:
java.lang.String passthroughPropertyNotSupported ( java.lang.String version ) ;

Target:
java.lang.String removeStorageQoSItem ( java.lang.String qosName , java.lang.String diskProfileNames ) ;
Source:
java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllCanDoPass ) ;

Target:
java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllValidationPass ) ;
Source:
private void updateConnectionsTypeMap ( ) { connectionsTypeMap = new java.util.HashMap < > ( ) ; for ( org.ovirt.engine.core.common.businessentities.StorageServerConnections conn : _connections ) { org.ovirt.engine.core.common.businessentities.storage.StorageType connType = conn.getstorage_type ( ) ; org.ovirt.engine.core.utils.collections.MultiValueMapUtils.addToMap ( connType , conn , connectionsTypeMap ) ; } }

Target:
private void updateConnectionsTypeMap ( ) { connectionsTypeMap = new java.util.HashMap < > ( ) ; for ( org.ovirt.engine.core.common.businessentities.StorageServerConnections conn : _connections ) { org.ovirt.engine.core.common.businessentities.storage.StorageType connType = conn.getStorageType ( ) ; org.ovirt.engine.core.utils.collections.MultiValueMapUtils.addToMap ( connType , conn , connectionsTypeMap ) ; } }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.GetSystemStatisticsQueryParameters.class , new java.lang.String [ ] { "SessionId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.SESSION_ID } ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqParams ( org.ovirt.engine.core.common.queries.GetSystemStatisticsQueryParameters.class , new java.lang.String [ ] { "SessionId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.SESSION_ID } ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.hosts.InstallModel model ) { driver.edit ( model ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPassPkWindow ( true ) ; }
Source:
public void sortDisks ( ) { org.ovirt.engine.ui.uicommonweb.Linq.Sort ( disks , new org.ovirt.engine.ui.uicommonweb.Linq.DiskModelByAliasComparer ( ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; }

Target:
public void sortDisks ( ) { org.ovirt.engine.ui.uicommonweb.Linq.sort ( disks , new org.ovirt.engine.ui.uicommonweb.Linq.DiskModelByAliasComparer ( ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; }
Source:
public abstract void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid parentCommandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status ) ;

Target:
public void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) ;
Source:
public void canDoActionFailsUnsupportedFormat ( ) { sp.setcompatibility_version ( Version.v3_0 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_FORMAT_ILLEGAL ) ; }

Target:
public void canDoActionFailsUnsupportedFormat ( ) { sp.setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_FORMAT_ILLEGAL ) ; }
Source:
public java.lang.String getDisplayStringNullSafe ( java.lang.String data ) { return templates.typeAheadNameDescription ( ( data == null ? constants.empty ( ) : data ) , constants.empty ( ) ) . asString ( ) ; }

Target:
public java.lang.String getDisplayStringNullSafe ( Pair < java.lang.String , org.ovirt.engine.core.compat.Guid > data ) { return templates.typeAheadNameDescription ( ( data == null ? constants.empty ( ) : data.getFirst ( ) ) , constants.empty ( ) ) . asString ( ) ; }
Source:
public < T extends java.io.Serializable > T deserializeUnformattedJson ( java.lang.Object source , java.lang.Class < T > type ) throws org.ovirt.engine.core.utils.SerializationExeption { org.codehaus.jackson.map.ObjectMapper mapper = new org.codehaus.jackson.map.ObjectMapper ( ) ; return readJsonString ( source , type , mapper ) ; }

Target:
public < T extends java.io.Serializable > T deserialize ( java.lang.Object source , java.lang.Class < T > type ) throws org.ovirt.engine.core.utils.SerializationExeption { if ( source == null ) { return null ; } return readJsonString ( source , type , org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer.formattedMapper ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.scheduling.PolicyUnit policyUnit ) { return policyUnit.getName ( ) ; }

Target:
private void initListBoxEditors ( ) { loadBalanceListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxOnlyEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.scheduling.PolicyUnit > ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.compat.Guid diskId : diskIds ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; } compensationContext.stateChanged ( ) ; return null ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig result = dao.get ( Guid.Empty ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig result = dao.get ( Guid.Empty ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void persistCommandWithContext ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , getContext ( ) , enableCallBack ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return getVdsBroker ( ) . runVdsCommand ( commandType , parameters ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, masterDomainId = %s, masterVersion = %s" , super . toString ( ) , getMasterDomainId ( ) , getMasterVersion ( ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsId ( ) { return vds.getId ( ) ; }
Source:
private void auditLogFailedToConnect ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( loggable , AuditLogType.FAILED_TO_CONNECT_TO_SCHEDULER_PROXY ) ; }

Target:
private void auditLogFailedToConnect ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( loggable , AuditLogType.FAILED_TO_CONNECT_TO_SCHEDULER_PROXY ) ; }
Source:
public void setAttachedTagsToEntities ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Boolean > value ) { if ( ( attachedTagsToEntities ) != value ) { attachedTagsToEntities = value ; AttachedTagsToEntitiesChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AttachedTagsToEntities" ) ) ; } }

Target:
public void setAttachedTagsToEntities ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Boolean > value ) { if ( ( attachedTagsToEntities ) != value ) { attachedTagsToEntities = value ; AttachedTagsToEntitiesChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AttachedTagsToEntities" ) ) ; } }
Source:
public void concreteStartPollingTask ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = getCommandMultiAsyncTasks ( ) ; entityInfo.StartPollingTask ( getVdsmTaskId ( ) ) ; }

Target:
public void concreteStartPollingTask ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = getCommandMultiAsyncTasks ( ) ; entityInfo.startPollingTask ( getVdsmTaskId ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult qosExists ( ) { return ( getOldQos ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_QOS_NOT_FOUND ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult qosExists ( ) { return ( ( qos ) != null ) && ( ( getOldQos ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_QOS_NOT_FOUND ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void statusNotInList ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.Active , StorageDomainStatus.Unknown ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusNotInList ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Locked , StorageDomainStatus.Active , StorageDomainStatus.Unknown ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.action.AddDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setDiskInterface ( DiskInterface.IDE ) ; org.ovirt.engine.core.common.action.AddDiskParameters parameters = new org.ovirt.engine.core.common.action.AddDiskParameters ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , image ) ; return parameters ; }

Target:
private static org.ovirt.engine.core.common.action.AddDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setDiskInterface ( DiskInterface.IDE ) ; org.ovirt.engine.core.common.action.AddDiskParameters parameters = new org.ovirt.engine.core.common.action.AddDiskParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , image ) ; return parameters ; }
Source:
public void detachedClusterMovesToDcWithExistingManagementNetwork ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultClusterID , Guid.Empty ) ; createCommandWithDefaultCluster ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; storagePoolIsLocalFS ( ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void detachedClusterMovesToDcWithExistingManagementNetwork ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultClusterID , Guid.Empty ) ; createCommandWithDefaultCluster ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; storagePoolIsLocalFS ( ) ; initAndAssertValidation ( true ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StorageDomainListReturnForXmlRpc reconstructMaster ( java.lang.String spUUID , java.lang.String msdUUID , java.lang.String masterVersion ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StorageDomainListReturnForXmlRpc reconstructMaster ( java.lang.String spUUID , int hostSpmId , java.lang.String msdUUID , java.lang.String masterVersion ) ;
Source:
protected void mockStoragePool ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.mockito.Mockito.when ( storagePoolDao.get ( org.mockito.Mockito.eq ( storagePool.getId ( ) ) ) ) . thenReturn ( storagePool ) ; }

Target:
protected void mockStoragePool ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.mockito.Mockito.when ( storagePoolDao.get ( org.mockito.Matchers.eq ( storagePool.getId ( ) ) ) ) . thenReturn ( storagePool ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Snapshot , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineSnapshotPresenter.constants.virtualMachineSnapshotSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineSnapshotPresenter.constants.virtualMachineSnapshotSubTabLabel ( ) , 3 ) ; }
Source:
private java.util.List < java.lang.String > getFsTypesFilter ( ) { return java.util.Arrays.asList ( org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.GlusterStorageDeviceListFileSystemTypesToIgore ) . split ( "," ) ) ; }

Target:
private java.util.List < java.lang.String > getFsTypesFilter ( ) { return java.util.Arrays.asList ( org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.GlusterStorageDeviceListFileSystemTypesToIgnore ) . split ( "," ) ) ; }