auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void executeVdsIdCommand ( ) { if ( ( _vdsManager ) != null ) { _vdsManager.updateVmDynamic ( org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getParameters ( ) . getVmDynamic ( ) ) ; } else { org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getVDSReturnValue ( ) . setSucceeded ( false ) ; } }

Target:
protected void executeVmCommand ( ) { vmManager.update ( org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getParameters ( ) . getVmDynamic ( ) ) ; org.ovirt.engine.core.vdsbroker.UpdateVmDynamicDataVDSCommand.getVDSReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public void searchQueryByExistentType ( ) { org.junit.Assert.assertEquals ( FixturesTool.PROVIDER_NAME , dao.getAllWithQuery ( java.lang.String.format ( "SELECT * FROM providers WHERE provider_type = '%s'" , FixturesTool.PROVIDER_TYPE.name ( ) ) ) . get ( 0 ) . getName ( ) ) ; }

Target:
public void searchQueryByExistentType ( ) { org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.PROVIDER_NAME , dao.getAllWithQuery ( java.lang.String.format ( "SELECT * FROM providers WHERE provider_type = '%s'" , FixturesTool.PROVIDER_TYPE.name ( ) ) ) . get ( 0 ) . getName ( ) ) ; }
Source:
private void SearchStringPrefixChanged ( ) { setHasSearchStringPrefix ( ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( getSearchStringPrefix ( ) ) ) ) ) ; getAutoCompleteModel ( ) . setPrefix ( getSearchStringPrefix ( ) ) ; }

Target:
private void searchStringPrefixChanged ( ) { setHasSearchStringPrefix ( ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( getSearchStringPrefix ( ) ) ) ) ) ; getAutoCompleteModel ( ) . setPrefix ( getSearchStringPrefix ( ) ) ; }
Source:
private void initInfoImages ( org.ovirt.engine.ui.common.CommonApplicationResources resources ) { infoImage = new com.google.gwt.user.client.ui.Image ( resources.dialogIconHelp ( ) ) ; infoImageHover = new com.google.gwt.user.client.ui.Image ( resources.dialogIconHelpRollover ( ) ) ; }

Target:
private void initInfoImages ( ) { infoImage = new com.google.gwt.user.client.ui.Image ( org.ovirt.engine.ui.common.widget.dialog.InfoIcon.resources.dialogIconHelp ( ) ) ; infoImageHover = new com.google.gwt.user.client.ui.Image ( org.ovirt.engine.ui.common.widget.dialog.InfoIcon.resources.dialogIconHelpRollover ( ) ) ; }
Source:
public void getJobsByOffsetAndPageSize ( ) { java.util.List < org.ovirt.engine.core.common.job.Job > jobsList = dao.getJobsByOffsetAndPageSize ( 0 , 20 ) ; org.junit.Assert.assertTrue ( ( ! ( jobsList.isEmpty ( ) ) ) ) ; }

Target:
public void getJobsByOffsetAndPageSize ( ) { java.util.List < org.ovirt.engine.core.common.job.Job > jobsList = dao.getJobsByOffsetAndPageSize ( 0 , 20 ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( jobsList.isEmpty ( ) ) ) ) ; }
Source:
public boolean Validate ( ) { getEmail ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.EmailValidation ( ) } ) ; return getEmail ( ) . getIsValid ( ) ; }

Target:
public boolean Validate ( ) { getEmail ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.EmailValidation ( ) } ) ; return getEmail ( ) . getIsValid ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return getTagDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > getInterfaces ( ) { if ( ( interfaces ) == null ) { interfaces = getVmNicDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; } return interfaces ; }
Source:
private void addStyles ( ) { overrideIpTablesEditor.addContentWidgetContainerStyleName ( style.overrideIpStyle ( ) ) ; activateHostAfterInstallEditor.addContentWidgetContainerStyleName ( style.activateHostAfterInstallStyle ( ) ) ; publicKeyEditor.setCustomStyle ( style.pkStyle ( ) ) ; }

Target:
private void hideLabels ( ) { passwordEditor.hideLabel ( ) ; publicKeyEditor.hideLabel ( ) ; overrideIpTablesEditor.hideLabel ( ) ; activateHostAfterInstallEditor.hideLabel ( ) ; }
Source:
public void addContentWidgetStyleName ( java.lang.String styleName ) { contentWidgetContainer.addStyleName ( styleName ) ; }

Target:
public void addContentWidgetStyleName ( java.lang.String styleName ) { if ( usePatternFly ) { getContentWidgetElement ( ) . addClassName ( styleName ) ; } else { contentWidgetContainer.addStyleName ( styleName ) ; } }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } }
Source:
public void setCanDoActionMsg ( org.ovirt.engine.core.common.errors.EngineMessage canDoActionMsg ) { this . canDoActionMsg = canDoActionMsg ; }

Target:
public void setValidateMsg ( org.ovirt.engine.core.common.errors.EngineMessage validateMsg ) { this . validateMsg = validateMsg ; }
Source:
protected void onCommonModelChange ( ) { super . onCommonModelChange ( ) ; if ( ( taskHandler ) != null ) { taskHandler.updateTree ( ) ; } }

Target:
protected void initializeModelHandlers ( ) { super . initializeModelHandlers ( ) ; if ( ( taskHandler ) != null ) { taskHandler.updateTree ( ) ; } }
Source:
public void setVmIp ( java.lang.String value ) { this . vmDynamic.setvm_ip ( value ) ; }

Target:
public void setVmOs ( int value ) { this . vmStatic.setOsId ( value ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmTemplate getBaseTemplate ( ) { if ( ( cachedBaseTemplate ) == null ) { cachedBaseTemplate = org.ovirt.engine.core.bll.AddVmTemplateCommand.getVmTemplateDAO ( ) . get ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getParameters ( ) . getBaseTemplateId ( ) ) ; } return cachedBaseTemplate ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmTemplate getBaseTemplate ( ) { if ( ( cachedBaseTemplate ) == null ) { cachedBaseTemplate = org.ovirt.engine.core.bll.AddVmTemplateCommand.getVmTemplateDao ( ) . get ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getParameters ( ) . getBaseTemplateId ( ) ) ; } return cachedBaseTemplate ; }
Source:
protected org.ovirt.engine.api.model.HostDevice addParents ( org.ovirt.engine.api.model.HostDevice model ) { model.setVm ( new org.ovirt.engine.api.model.VM ( ) ) ; model.getVm ( ) . setId ( vmId.toString ( ) ) ; return super . addParents ( model ) ; }

Target:
protected org.ovirt.engine.api.model.HostDevice addParents ( org.ovirt.engine.api.model.HostDevice model ) { model.setVm ( new org.ovirt.engine.api.model.Vm ( ) ) ; model.getVm ( ) . setId ( vmId.toString ( ) ) ; return super . addParents ( model ) ; }
Source:
public void setMaxVdsMemoryOverCommit ( int value ) { maxVdsMemoryOverCommit = value ; }

Target:
public void setMaxVdsMemoryOverCommit ( int value ) { maxVdsMemoryOverCommit = value ; calculateFreeSchedulingMemoryCache ( ) ; }
Source:
private void SetIsExpandedRecursively ( boolean value , org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel root ) { root.setIsExpanded ( value ) ; for ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel model : root.getChildren ( ) ) { SetIsExpandedRecursively ( value , model ) ; } }

Target:
private void setIsExpandedRecursively ( boolean value , org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel root ) { root.setIsExpanded ( value ) ; for ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel model : root.getChildren ( ) ) { setIsExpandedRecursively ( value , model ) ; } }
Source:
public void testGetClusterByClusterPolicyIdNegative ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertTrue ( ( ( result == null ) || ( ( result.size ( ) ) == 0 ) ) ) ; }

Target:
public void testGetClusterByClusterPolicyIdNegative ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertTrue ( ( ( result == null ) || ( ( result.size ( ) ) == 0 ) ) ) ; }
Source:
public abstract org.ovirt.engine.core.common.businessentities.AsyncTask getByVdsmTaskId ( org.ovirt.engine.core.compat.Guid vdsmTaskId ) ;

Target:
int removeByVdsmTaskId ( org.ovirt.engine.core.compat.Guid vdsmTaskId ) ;
Source:
private void setDiskStorageDomainInfo ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { java.util.ArrayList < org.ovirt.engine.core.compat.Guid > storageDomain = new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( ) ; storageDomain.add ( imageToDestinationDomainMap.get ( disk.getId ( ) ) ) ; disk.setStorageIds ( storageDomain ) ; }

Target:
private void setDiskStorageDomainInfo ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { java.util.ArrayList < org.ovirt.engine.core.compat.Guid > storageDomain = new java.util.ArrayList < > ( ) ; storageDomain.add ( imageToDestinationDomainMap.get ( disk.getId ( ) ) ) ; disk.setStorageIds ( storageDomain ) ; }
Source:
public void testGetAllForStorageEmpty ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > result = dao.getAllForCluster ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForClusterEmpty ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > result = dao.getAllForCluster ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
void provisionHost ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.ExternalHostGroup hg , org.ovirt.engine.core.common.businessentities.ExternalComputeResource computeResource , java.lang.String mac , java.lang.String discoverName , java.lang.String rootPassword ) ;

Target:
void provisionHost ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.ExternalHostGroup hg , org.ovirt.engine.core.common.businessentities.ExternalComputeResource computeResource , java.lang.String mac , java.lang.String discoverName , java.lang.String rootPassword , java.lang.String ip ) ;
Source:
public java.lang.Void runInTransaction ( ) { AddVmStatic ( ) ; AddVmDynamic ( ) ; addVmInterfaces ( ) ; AddVmStatistics ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmInterfaces ( ) ; addVmStatistics ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public void insufficientStorageSpace ( ) { setupForStorageTests ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) . when ( multipleSdValidator ) . allDomainsHaveSpaceForClonedDisks ( org.mockito.Matchers.anyList ( ) ) ; org.junit.Assert.assertFalse ( cmd.imagesRelatedChecks ( ) ) ; }

Target:
public void insufficientStorageSpace ( ) { setupForStorageTests ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) . when ( multipleSdValidator ) . allDomainsHaveSpaceForClonedDisks ( org.mockito.Matchers.anyList ( ) ) ; org.junit.Assert.assertFalse ( cmd.imagesRelatedChecks ( ) ) ; }
Source:
public void executeCommandWhenFailed ( ) { setupMocks ( ) ; mockBackendStatusChange ( false ) ; cmd.executeCommand ( ) ; org.junit.Assert.assertFalse ( cmd.getReturnValue ( ) . getSucceeded ( ) ) ; org.junit.Assert.assertEquals ( AuditLogType.GLUSTER_HOOK_DISABLE_FAILED , cmd.getAuditLogTypeValue ( ) ) ; }

Target:
public void executeCommandWhenFailed ( ) { setupMocks ( ) ; mockBackendStatusChange ( false ) ; cmd.executeCommand ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.getReturnValue ( ) . getSucceeded ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( AuditLogType.GLUSTER_HOOK_DISABLE_FAILED , cmd.getAuditLogTypeValue ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getAsyncTaskIdsByEntity ( org.ovirt.engine.core.compat.Guid entityId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; parameterSource.addValue ( "entity_id" , entityId ) ; return getCallsHandler ( ) . executeReadList ( "GetAsyncTasksByEntityId" , org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.IdRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getAsyncTaskIdsByEntity ( org.ovirt.engine.core.compat.Guid entityId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "entity_id" , entityId ) ; return getCallsHandler ( ) . executeReadList ( "GetAsyncTasksIdsByEntityId" , org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.IdRowMapper.instance , parameterSource ) ; }
Source:
private org.ovirt.engine.api.restapi.types.Mapper < org.ovirt.engine.api.model.Cluster , org.ovirt.engine.core.common.businessentities.VDSGroup > getMapper ( ) { org.ovirt.engine.api.restapi.types.MappingLocator mappingLocator = new org.ovirt.engine.api.restapi.types.MappingLocator ( ) ; mappingLocator.populate ( ) ; return mappingLocator.getMapper ( org.ovirt.engine.api.model.Cluster.class , org.ovirt.engine.core.common.businessentities.VDSGroup.class ) ; }

Target:
private org.ovirt.engine.api.restapi.types.Mapper < org.ovirt.engine.core.common.businessentities.Cluster , org.ovirt.engine.core.common.businessentities.Cluster > getMapper ( ) { org.ovirt.engine.api.restapi.types.MappingLocator mappingLocator = new org.ovirt.engine.api.restapi.types.MappingLocator ( ) ; mappingLocator.populate ( ) ; return mappingLocator.getMapper ( org.ovirt.engine.core.common.businessentities.Cluster.class , org.ovirt.engine.core.common.businessentities.Cluster.class ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup ) { return multipleResults ( entityManager.createNamedQuery ( "VdsStatic.getAllForVdsGroup" , org.ovirt.engine.core.common.businessentities.VdsStatic.class ) . setParameter ( "vdsGroupId" , vdsGroup ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup ) { return getCallsHandler ( ) . executeReadList ( "GetVdsStaticByVdsGroupId" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , vdsGroup ) ) ; }
Source:
private static void mapIPv4Addresses ( org.ovirt.engine.api.model.IpConfiguration entityIpConfiguration , org.ovirt.engine.api.model.IPv4S iPv4Configuration ) { for ( org.ovirt.engine.core.common.businessentities.network.IPv4Address iPv4Address : entityIpConfiguration.getIPv4Addresses ( ) ) { iPv4Configuration.getIPv4Addresses ( ) . add ( org.ovirt.engine.api.restapi.types.NetworkAttachmentMapper.mapIPv4Address ( iPv4Address ) ) ; } }

Target:
private static org.ovirt.engine.api.model.HostNIC getModelHostNic ( org.ovirt.engine.api.model.NetworkAttachment model ) { org.ovirt.engine.api.model.HostNIC hostNic = model.getHostNic ( ) ; if ( hostNic == null ) { hostNic = new org.ovirt.engine.api.model.HostNIC ( ) ; model.setHostNic ( hostNic ) ; } return hostNic ; }
Source:
public void testGroupLinks ( ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.GROUP_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( group ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.GROUP_HREF , group.getHref ( ) ) ; }

Target:
public void testGroupLinks ( ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.GROUP_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( group ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.GROUP_HREF , group.getHref ( ) ) ; }
Source:
public void setDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . vmDynamic.setDisplayType ( value ) ; }

Target:
public void addCpuUsageHistory ( java.lang.Integer cpuUsageHistory , int limit ) { this . vmStatistics.addCpuUsageHistory ( cpuUsageHistory , limit ) ; }
Source:
int readRefreshRate ( ) { java.lang.String refreshRate = clientStorage.getLocalItem ( getRefreshRateItemKey ( ) ) ; try { return new java.lang.Integer ( refreshRate ) . intValue ( ) ; } catch ( java.lang.NumberFormatException e ) { return org.ovirt.engine.ui.common.widget.refresh.AbstractRefreshManager.DEFAULT_REFRESH_RATE ; } }

Target:
protected int getDefaultRefreshRate ( ) { return org.ovirt.engine.ui.common.widget.refresh.AbstractRefreshManager.DEFAULT_REFRESH_RATE ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentIdentification ( attachment.getId ( ) , attachment.getNicId ( ) , attachment.getNicName ( ) , EngineMessage.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY , existingInterfacesMap ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return hostSetupNetworksValidatorHelper.validateCoherentIdentification ( java.lang.String.valueOf ( attachment.getId ( ) ) , attachment.getNicId ( ) , attachment.getNicName ( ) , EngineMessage.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY , existingInterfacesMap ) ; }
Source:
public void put ( org.ovirt.engine.core.compat.Guid stepId , org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid parentCommandId , org.ovirt.engine.core.bll.tasks.SPMAsyncTask task ) ;

Target:
public void put ( 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 ) ;
Source:
private void Provisioning_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.Provisioning_SelectedItemChanged ( ) ; }

Target:
private void memSize_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.updateMinAllocatedMemory ( ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < T > event ) { ctx.setInModel ( event.getValue ( ) ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < T > event ) { if ( ctx.canSetInModel ( ) ) { ctx.setInModel ( event.getValue ( ) ) ; } }
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.gettag_name ( ) ; } return "[null]" ; }

Target:
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.gettag_name ( ) ; } return "[null]" ; }
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 targetNic ) { return org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.newNetworkAttachment ( network , targetNic , null ) ; }

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 targetNic , java.util.List < java.lang.String > networksToSync ) { return org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.newNetworkAttachment ( network , targetNic , null , networksToSync ) ; }
Source:
public void testExceptionForCommandWithNoTasks ( ) { org.ovirt.engine.core.common.action.PermissionsOperationsParametes params = new org.ovirt.engine.core.common.action.PermissionsOperationsParametes ( ) ; org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > cmd = new org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > ( params ) ; cmd.ConcreteCreateTask ( org.ovirt.engine.core.bll.BackwardCompatibilityTaskCreationTest.nextAsyncTaskCreationInfo ( ) , VdcActionType.Unknown ) ; }

Target:
public void testExceptionForCommandWithNoTasks ( ) { org.ovirt.engine.core.common.action.PermissionsOperationsParametes params = new org.ovirt.engine.core.common.action.PermissionsOperationsParametes ( ) ; org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > cmd = new org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > ( params ) ; cmd.concreteCreateTask ( org.ovirt.engine.core.bll.BackwardCompatibilityTaskCreationTest.nextAsyncTaskCreationInfo ( ) , VdcActionType.Unknown ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup ) { return multipleResults ( entityManager.createNamedQuery ( "VdsStatic.getAllForVdsGroup" , org.ovirt.engine.core.common.businessentities.VdsStatic.class ) . setParameter ( "vdsGroupId" , vdsGroup ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllWithIpAddress ( java.lang.String address ) { return getCallsHandler ( ) . executeReadList ( "GetVdsStaticByIp" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "ip" , address ) ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters params = new org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.UNPLUG ) ; params.setVmId ( ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) . parentId ) ; return performAction ( VdcActionType.HotPlugUnplugVmNic , params ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters params = new org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.UNPLUG ) ; params.setVmId ( ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) . parentId ) ; return doAction ( VdcActionType.HotPlugUnplugVmNic , params , action ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.vdsbroker.VDSExceptionBase createException ( ) { final java.lang.String errorMessage = java.lang.String.format ( "Failed to %1$s, error = %2$s" , org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.getCommandName ( ) , getReturnStatus ( ) . mMessage ) ; return createDefaultConcreteException ( errorMessage ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.vdsbroker.VDSExceptionBase createException ( ) { final java.lang.String errorMessage = java.lang.String.format ( "Failed to %1$s, error = %2$s, code = %3$s" , org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.getCommandName ( ) , getReturnStatus ( ) . mMessage , getReturnStatus ( ) . mCode ) ; return createDefaultConcreteException ( errorMessage ) ; }
Source:
public void nameExists ( ) { newPoolNameIsAlreadyTaken ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_NAME_ALREADY_EXIST.toString ( ) ) ; }

Target:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public void setEntity ( java.lang.Object value ) { if ( ( value == null ) || ( ! ( value.equals ( getEntity ( ) ) ) ) ) { super . setEntity ( value ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
public static long greatestCommonDivisor ( long a , long b ) { while ( b != 0 ) { a = b ; b = a % b ; } return a ; }

Target:
public static long greatestCommonDivisor ( long a , long b ) { while ( b != 0 ) { long c = b ; b = a % b ; a = c ; } return a ; }
Source:
protected boolean IsUserAutorizedToRunAction ( ) { if ( log.isDebugEnabled ( ) ) { log.debugFormat ( "IsUserAutorizedToRunAction: Login - no permission check" ) ; } return true ; }

Target:
protected boolean isUserAuthorizedToRunAction ( ) { if ( log.isDebugEnabled ( ) ) { log.debugFormat ( "IsUserAutorizedToRunAction: Login - no permission check" ) ; } return true ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatusDetail ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionList ( java.lang.String volumeName ) ;
Source:
private static void logException ( final java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "ResourceManager::refreshVdsRunTimeInfo" , ex ) ; }

Target:
private void logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warn ( "Failed to AfterRefreshTreatment VDS, continuing: {}" , ex.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.VdsManager.log.debug ( "Exception" , ex ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServiceManage ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String [ ] serviceList , java.lang.String actionType , boolean failOnError ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServicesAction ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String [ ] serviceList , java.lang.String actionType ) ;
Source:
public final void SetStringValue ( java.lang.String name , java.lang.String value ) { SetValue ( name , value , ConfigCommon.defaultConfigurationVersion ) ; }

Target:
public final void setStringValue ( java.lang.String name , java.lang.String value ) { setValue ( name , value , ConfigCommon.defaultConfigurationVersion ) ; }
Source:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { nameEditor.setLabel ( constants.clusterPolicyNameLabel ( ) ) ; descriptionEditor.setLabel ( constants.clusterPolicyDescriptionLabel ( ) ) ; }

Target:
private void localize ( ) { nameEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.ClusterPolicyPopupView.constants.clusterPolicyNameLabel ( ) ) ; descriptionEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.ClusterPolicyPopupView.constants.clusterPolicyDescriptionLabel ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBondSlave ( org.ovirt.engine.core.common.businessentities.network.Bond bond , java.lang.String slaveName ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface slaveA = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; slaveA.setName ( slaveName ) ; slaveA.setBondName ( bond.getName ( ) ) ; slaveA.setBonded ( true ) ; return slaveA ; }

Target:
private void assertValidateSlaveHasNoLabelsFailed ( org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator , java.lang.String slaveName ) { org.junit.Assert.assertThat ( validator.validateSlaveHasNoLabels ( slaveName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.LABEL_ATTACH_TO_IMPROPER_INTERFACE , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( "LABEL_ATTACH_TO_IMPROPER_INTERFACE_ENTITY" , slaveName ) ) ) ; }
Source:
public void testValidate ( ) { org.ovirt.engine.core.bll.UpdateRngDeviceCommand command = mockCommand ( ) ; org.junit.Assert.assertEquals ( true , command.validate ( ) ) ; }

Target:
public void testValidate ( ) { org.ovirt.engine.core.bll.UpdateRngDeviceCommand command = mockCommand ( ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public static boolean isMemorySizeLegal ( org.ovirt.engine.core.common.businessentities.VmOsType osType , int memSizeInMB , java.lang.String clusterVersion ) { return ( memSizeInMB >= ( org.ovirt.engine.core.common.utils.VmValidationUtils.getMinMemorySizeInMb ( ) ) ) && ( memSizeInMB <= ( org.ovirt.engine.core.common.utils.VmValidationUtils.getMaxMemorySizeInMb ( osType , clusterVersion ) ) ) ; }

Target:
public static boolean isMemorySizeLegal ( org.ovirt.engine.core.common.businessentities.VmOsType osType , int memSizeInMB , java.lang.String clusterVersion ) { return ( memSizeInMB >= ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getMinMemorySizeInMb ( ) ) ) && ( memSizeInMB <= ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getMaxMemorySizeInMb ( osType , clusterVersion ) ) ) ; }
Source:
public void snapshotExistsBySnapshotReturnsInvalidResultWhenNoSnapshot ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.snapshotExists ( null ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST ) ; }

Target:
public void snapshotExistsBySnapshotReturnsInvalidResultWhenNoSnapshot ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.snapshotExists ( null ) , EngineMessage.ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.getBroker ( ) . getAllTasksInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( ParseTaskInfoList ( _result.TaskInfoList ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.getBroker ( ) . getAllTasksInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksInfoVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( ParseTaskInfoList ( _result.TaskInfoList ) ) ; }
Source:
private boolean isOvirtReInstallOrUpgrade ( ) { return ( org.ovirt.engine.core.bll.InstallVdsCommand.getParameters ( ) . getIsReinstallOrUpgrade ( ) ) && ( ( org.ovirt.engine.core.bll.InstallVdsCommand.getVds ( ) . getvds_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ) ) ; }

Target:
private boolean isOvirtReInstallOrUpgrade ( ) { return ( org.ovirt.engine.core.bll.InstallVdsCommand.getParameters ( ) . getIsReinstallOrUpgrade ( ) ) && ( ( org.ovirt.engine.core.bll.InstallVdsCommand.getVds ( ) . getVdsType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return diskImage.getId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return diskImage.getId ( ) ; }
Source:
public java.lang.Object call ( ) { getStoragePoolIsoMapDAO ( ) . remove ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( mapToRemove.getstorage_id ( ) , mapToRemove.getstorage_pool_id ( ) ) ) ; return null ; }

Target:
public java.lang.Object call ( ) { getStoragePoolIsoMapDao ( ) . remove ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( mapToRemove.getstorage_id ( ) , mapToRemove.getstorage_pool_id ( ) ) ) ; return null ; }
Source:
java.lang.String pressKeyToReleaseCursor ( java.lang.String key ) ;

Target:
java.lang.String passthroughPropertyNotSupported ( java.lang.String version ) ;
Source:
public void testSimpleMatches ( ) { org.ovirt.engine.core.compat.Regex regex = new org.ovirt.engine.core.compat.Regex ( "[0-9]" ) ; org.junit.Assert.assertTrue ( "A number should match" , regex.IsMatch ( "1" ) ) ; org.junit.Assert.assertFalse ( "A letter should not match" , regex.IsMatch ( "a" ) ) ; }

Target:
public void testSimpleMatches ( ) { org.ovirt.engine.core.compat.Regex regex = new org.ovirt.engine.core.compat.Regex ( "[0-9]" ) ; org.junit.Assert.assertTrue ( "A number should match" , regex.isMatch ( "1" ) ) ; org.junit.Assert.assertFalse ( "A letter should not match" , regex.isMatch ( "a" ) ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel > GetUpVms ( java.lang.Iterable items ) { return GetUpVms ( items , false ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel > getUpVms ( java.lang.Iterable items ) { return getUpVms ( items , false ) ; }
Source:
public void onUiCommonInit ( org.ovirt.engine.ui.common.uicommon.model.UiCommonInitEvent event ) { this . onCommonModelChange ( ) ; }

Target:
public void onModelInitialized ( org.ovirt.engine.ui.common.uicommon.model.ModelInitializedEvent event ) { initializeModelHandlers ( ) ; }
Source:
org.ovirt.engine.core.common.businessentities.StoragePool getForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup ) ;

Target:
org.ovirt.engine.core.common.businessentities.StoragePool getForCluster ( org.ovirt.engine.core.compat.Guid cluster ) ;
Source:
private org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > spySearchQuery ( org.ovirt.engine.core.common.queries.SearchParameters searchParam ) { org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > searchQuery = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > ( searchParam ) ) ; return searchQuery ; }

Target:
private org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > spySearchQuery ( org.ovirt.engine.core.common.queries.SearchParameters searchParam ) { org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > searchQuery = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.SearchQuery < org.ovirt.engine.core.common.queries.SearchParameters > ( searchParam ) ) ; mockInjections ( searchQuery ) ; return searchQuery ; }
Source:
public void validateFailsOnNullCluster ( ) { cmd.setClusterId ( null ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_CLUSTER_IS_NOT_VALID.toString ( ) ) ) ; }

Target:
public void validateFailsOnNullCluster ( ) { cmd.setClusterId ( null ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_CLUSTER_IS_NOT_VALID.toString ( ) ) ) ; }
Source:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value ) { return java.util.Base64.encode ( value.getValue ( ) ) ; }

Target:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return java.util.Base64.encode ( value.getValue ( ) ) ; }
Source:
public org.ovirt.engine.api.model.StorageConnectionExtension update ( org.ovirt.engine.api.model.StorageConnectionExtension incoming ) { org.ovirt.engine.api.restapi.resource.QueryIdResolver resolver = new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionExtensionById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ; return performUpdate ( incoming , resolver , ActionType.UpdateStorageServerConnectionExtension , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionExtensionResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageConnectionExtension update ( org.ovirt.engine.api.model.StorageConnectionExtension incoming ) { org.ovirt.engine.api.restapi.resource.QueryIdResolver resolver = new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.QueryType.GetStorageServerConnectionExtensionById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ; return performUpdate ( incoming , resolver , ActionType.UpdateStorageServerConnectionExtension , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionExtensionResource.UpdateParametersProvider ( ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
protected org.ovirt.engine.core.dao.DiskImageDynamicDao getDiskImageDynamicDao ( ) { return org.ovirt.engine.core.bll.ImportVmCommandBase.getDbFacade ( ) . getDiskImageDynamicDao ( ) ; }

Target:
protected void setEffectiveCompatibilityVersion ( org.ovirt.engine.core.compat.Version effectiveCompatibilityVersion ) { this . effectiveCompatibilityVersion = effectiveCompatibilityVersion ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.storage_domains x , org.ovirt.engine.core.common.businessentities.storage_domains y ) { return x.getstorage_name ( ) . compareTo ( y.getstorage_name ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.StorageDomain x , org.ovirt.engine.core.common.businessentities.StorageDomain y ) { return x.getStorageName ( ) . compareTo ( y.getStorageName ( ) ) ; }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "name" ) ) { getSearchCommand ( ) . Execute ( ) ; } }

Target:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "name" ) ) { getSearchCommand ( ) . Execute ( ) ; } }
Source:
private boolean balloonEnabled ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { return ( model.getMemoryBalloonDeviceEnabled ( ) . getEntity ( ) ) && ( ( model.getSelectedCluster ( ) . getcompatibility_version ( ) . compareTo ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.BALLOON_DEVICE_MIN_VERSION ) ) >= 0 ) ; }

Target:
private boolean balloonEnabled ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { return ( model.getMemoryBalloonDeviceEnabled ( ) . getEntity ( ) ) && ( ( model.getSelectedCluster ( ) . getCompatibilityVersion ( ) . compareTo ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.BALLOON_DEVICE_MIN_VERSION ) ) >= 0 ) ; }
Source:
private void selectAsSPM ( ) { org.ovirt.engine.core.common.action.ForceSelectSPMParameters params = new org.ovirt.engine.core.common.action.ForceSelectSPMParameters ( ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( getSelectedItem ( ) ) ) . getId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.ForceSelectSPM , params ) ; }

Target:
private void selectAsSPM ( ) { org.ovirt.engine.core.common.action.ForceSelectSPMParameters params = new org.ovirt.engine.core.common.action.ForceSelectSPMParameters ( ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( getSelectedItem ( ) ) ) . getId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ForceSelectSPM , params ) ; }
Source:
public < T > org.ovirt.engine.core.common.businessentities.network.ReportedConfigurations add ( org.ovirt.engine.core.common.businessentities.network.ReportedConfigurationType type , T actual , T expected ) { final boolean inSync = org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( actual , expected ) ; return add ( type , actual , expected , inSync ) ; }

Target:
public < T > org.ovirt.engine.core.common.businessentities.network.ReportedConfigurations add ( org.ovirt.engine.core.common.businessentities.network.ReportedConfigurationType type , T actual , T expected ) { final boolean inSync = java.util.Objects.equals ( actual , expected ) ; return add ( type , actual , expected , inSync ) ; }
Source:
public void testValidateGatewayWhenGatewayIsNotSpecified ( ) throws java.lang.Exception { doTestValidateGateway ( "" , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateGatewayIsManagementNetworkAndMultipleGatewayIsNotSupported ( ) { doTestValidateGateway ( "someGateway" , true , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void onResponseReceived ( com.google.gwt.http.client.Request request , com.google.gwt.http.client.Response response ) { java.lang.String tokenValue = org.ovirt.engine.ui.common.utils.HttpUtils.getHeader ( response , "OVIRT-SSO-TOKEN" ) ; if ( tokenValue != null ) { org.ovirt.engine.ui.frontend.communication.SSOTokenChangeEvent.fire ( eventBus , tokenValue ) ; } callback.onResponseReceived ( request , response ) ; }

Target:
public void onResponseReceived ( com.google.gwt.http.client.Request request , com.google.gwt.http.client.Response response ) { java.lang.String tokenValue = org.ovirt.engine.ui.common.utils.HttpUtils.getHeader ( response , "OVIRT-SSO-TOKEN" ) ; if ( tokenValue != null ) { org.ovirt.engine.ui.frontend.communication.SsoTokenChangeEvent.fire ( eventBus , tokenValue ) ; } callback.onResponseReceived ( request , response ) ; }
Source:
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 ) { getCommonPassword ( ) . setIsChangable ( getUseCommonPassword ( ) . getEntity ( ) ) ; getApplyPasswordCommand ( ) . setIsExecutionAllowed ( getUseCommonPassword ( ) . getEntity ( ) ) ; }

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 ) { getCommonPassword ( ) . setIsChangeable ( getUseCommonPassword ( ) . getEntity ( ) ) ; getApplyPasswordCommand ( ) . setIsExecutionAllowed ( getUseCommonPassword ( ) . getEntity ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.HashMap ( ) ; }

Target:
public void getClusterEditWarnings ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetClusterEditWarnings , new org.ovirt.engine.core.common.queries.ClusterEditParameters ( cluster ) , aQuery ) ; }
Source:
public void setactual_size ( long size ) { this . actualSize = size ; }

Target:
public void setActualSize ( long size ) { this . actualSize = size ; }
Source:
public void passthroughChangedNotUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( false , true , false ) ; org.junit.Assert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughNotChangedNotUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( false , false , true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineVirtualDiskPresenter.constants.virtualMachineVirtualDiskSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineVirtualDiskPresenter.constants.virtualMachineVirtualDiskSubTabLabel ( ) , 2 ) ; }
Source:
public org.ovirt.engine.api.resource.HostNumaNodeResource getHostNumaNodeSubResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) ;

Target:
public org.ovirt.engine.api.resource.HostNumaNodeResource getHostNumaNodeResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) ;
Source:
protected org.ovirt.engine.core.compat.Guid getEntityGuid ( ) { return org.ovirt.engine.ui.uicommonweb.DataProvider.GetEntityGuid ( getEntity ( ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getEntityGuid ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetEntityGuid ( getEntity ( ) ) ; }
Source:
public void saveAll ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsDynamic > entities ) { updateAll ( entities ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.VdsDynamic vds ) { getCallsHandler ( ) . executeModification ( "UpdateVdsDynamic" , createFullParametersMapper ( vds ) ) ; }
Source:
public void goForward ( ) { org.ovirt.engine.ui.common.uicommon.model.DataBoundTabModelProvider.getModel ( ) . getSearchNextPageCommand ( ) . Execute ( ) ; }

Target:
public void goForward ( ) { org.ovirt.engine.ui.common.uicommon.model.DataBoundTabModelProvider.getModel ( ) . getSearchNextPageCommand ( ) . execute ( ) ; }