auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.util.List < org.ovirt.engine.api.model.Network > getNetworks ( ) { return getBackendCollection ( VdcQueryType.GetNetworksByStoragePoolId , getQueryParameters ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.Network > getNetworks ( ) { return getBackendCollection ( VdcQueryType.GetNetworksByDataCenterId , getQueryParameters ( ) ) ; }
Source:
protected void updateLastIncomingHeartbeat ( ) { this . lastIncomingHeartbeat = java.lang.System.currentTimeMillis ( ) ; }

Target:
protected void updateLastIncomingHeartbeat ( ) { this . half = true ; this . lastIncomingHeartbeat = java.lang.System.currentTimeMillis ( ) ; }
Source:
public void setIsAvailable ( boolean isAvailable ) { this . isAvailable = isAvailable ; }

Target:
public void setIsAvailable ( boolean isAvailable ) { this . isAvailable = isAvailable ; update ( ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { actionButton.setVisible ( false ) ; this . onAction ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { actionButton.setVisible ( false ) ; dragImage.setVisible ( false ) ; this . onAction ( ) ; }
Source:
public void testAddDisk ( ) throws java.lang.Exception { testAddDiskImpl ( getModel ( 0 ) ) ; }

Target:
public void testAddDisk ( ) throws java.lang.Exception { testAddDiskImpl ( org.ovirt.engine.api.restapi.resource.BackendVmDisksResourceTest.getModel ( 0 ) ) ; }
Source:
public void testExtractProperIpv6AddressWithoutSlash ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Address ( "::" ) , org.hamcrest.Matchers.is ( "::" ) ) ; }

Target:
public void testExtractIpv4SubnetEmptyString ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractSubnet ( com.google.common.collect.ImmutableMap.of ( VdsProperties.NETMASK , "" ) ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
public void testGetViolationMessage ( ) { org.junit.Assert.assertThat ( underTest.getViolationMessage ( ) , org.hamcrest.CoreMatchers.is ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_UNTAGGED_NETWORK ) ) ; }

Target:
public void testGetViolationMessage ( ) { org.hamcrest.MatcherAssert.assertThat ( underTest.getViolationMessage ( ) , org.hamcrest.CoreMatchers.is ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_UNTAGGED_NETWORK ) ) ; }
Source:
private boolean networkExists ( ) { return ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkClusterDAO ( ) . get ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) . getId ( ) ) ) != null ; }

Target:
private boolean networkExists ( ) { return ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkClusterDao ( ) . get ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) . getId ( ) ) ) != null ; }
Source:
public void invalidCpuSelection ( ) { createCommandWithDefaultVdsGroup ( ) ; canDoActionFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CPU_NOT_FOUND ) ; }

Target:
public void invalidCpuSelection ( ) { createCommandWithDefaultVdsGroup ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CPU_NOT_FOUND ) ; }
Source:
public void testGetAllFromDisksIncludingSnapshotsByDiskIdForPrivilegedUserWithoutFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllFromDisksIncludingSnapshotsByDiskId ( FixturesTool.IMAGE_GROUP_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , false ) ; org.junit.Assert.assertEquals ( "wrong number of returned disks" , 4 , result.size ( ) ) ; }

Target:
public void testGetAllFromDisksIncludingSnapshotsByDiskIdForPrivilegedUserWithoutFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllFromDisksIncludingSnapshotsByDiskId ( FixturesTool.IMAGE_GROUP_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , false ) ; org.junit.jupiter.api.Assertions.assertEquals ( 4 , result.size ( ) , "wrong number of returned disks" ) ; }
Source:
private void endUnlockOps ( ) { if ( isVmInDb ) { org.ovirt.engine.core.bll.VmHandler.UnLockVm ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; } org.ovirt.engine.core.bll.VmTemplateHandler.UnLockVmTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVmTemplateId ( ) ) ; }

Target:
private void endUnlockOps ( ) { if ( isVmInDb ) { org.ovirt.engine.core.bll.VmHandler.unLockVm ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; } org.ovirt.engine.core.bll.VmTemplateHandler.UnLockVmTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVmTemplateId ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { onRadioButtonSelection ( false ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { onRadioButtonSelection ( false ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml imageTextSetupNetwork ( com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String text ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml imageWithText ( com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String text ) ;
Source:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__STOP ) ; org.ovirt.engine.core.bll.pm.StopVdsCommand.log.error ( "Failed to run StopVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.pm.StopVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { addCanDoActionMessage ( EngineMessage.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__HOST ) ; addCanDoActionMessage ( EngineMessage.VAR__ACTION__STOP ) ; org.ovirt.engine.core.bll.pm.StopVdsCommand.log.error ( "Failed to run StopVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.pm.StopVdsCommand.getVdsName ( ) ) ; }
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 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.vmDeviceDao.remove ( device.getId ( ) ) ; } }
Source:
private org.ovirt.engine.core.common.job.Job makeNonExternalTestJob ( org.ovirt.engine.core.compat.Guid jobId ) { org.ovirt.engine.core.common.job.Job job = new org.ovirt.engine.core.common.job.Job ( ) ; job.setId ( jobId ) ; job.setDescription ( "Sample Job" ) ; job.setExternal ( false ) ; return job ; }

Target:
private org.ovirt.engine.core.common.job.Job makeNonExternalTestJob ( ) { org.ovirt.engine.core.common.job.Job job = new org.ovirt.engine.core.common.job.Job ( ) ; job.setId ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ; job.setDescription ( "Sample Job" ) ; job.setExternal ( false ) ; return job ; }
Source:
public boolean isClusterUpgradePolicy ( ) { return ( filters ) != null ? filters.contains ( org.ovirt.engine.core.common.scheduling.ClusterPolicy.UPGRADE_POLICY_UNIT_GUID ) : false ; }

Target:
public boolean isClusterUpgradePolicy ( ) { return ( id ) == ( org.ovirt.engine.core.common.scheduling.ClusterPolicy.UPGRADE_POLICY_GUID ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogonVDSCommand.getBroker ( ) . desktopLogin ( mVmId.toString ( ) , mDomain , mUserName , mPassword ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogonVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogonVDSCommand.getBroker ( ) . desktopLogin ( mVmId.toString ( ) , mDomain , mUserName , mPassword ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogonVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.network.ReportedConfiguration reportedConfiguration , org.ovirt.engine.core.common.businessentities.network.ReportedConfiguration t1 ) { return reportedConfiguration.getType ( ) . getName ( ) . compareTo ( t1.getType ( ) . getName ( ) ) ; }

Target:
private void sortReportedConfigurationList ( ) { java.util.Collections.sort ( reportedConfigurationList , java.util.Comparator.comparing ( ( r ) -> r.getType ( ) . getName ( ) ) ) ; }
Source:
public java.lang.Double getCpuSys ( ) { return this . vmStatistics.getcpu_sys ( ) ; }

Target:
public void setUsageNetworkPercent ( java.lang.Integer value ) { this . vmStatistics.setUsageNetworkPercent ( value ) ; }
Source:
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 ) { return super . runVdsCommand ( commandType , parameters ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__ADD ) ; addValidationMessage ( EngineMessage.VAR__TYPE__STORAGE__DOMAIN ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . addVmToPool ( new org.ovirt.engine.core.common.businessentities.VmPoolMap ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolId ( ) ) ) ; org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolDAO ( ) . addVmToPool ( new org.ovirt.engine.core.common.businessentities.VmPoolMap ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolId ( ) ) ) ; org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( ) ;
Source:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskStartVDSCommand.getBroker ( ) . diskReplicateStart ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskStartVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskStartVDSCommand.getSrcDiskXmlRpc ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskStartVDSCommand.getDstDiskXmlRpc ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskStartVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskStartVDSCommand.getBroker ( ) . diskReplicateStart ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskStartVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskStartVDSCommand.getSrcDisk ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskStartVDSCommand.getDstDisk ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskStartVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createSnapshotMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_ALIAS ) ; image.setDescription ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_DESCRIPTION ) ; return image ; }

Target:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createSnapshotMetadataDisk ( java.lang.String diskDescription ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( diskDescription ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_SNAPSHOT_METADATA_DISK_ALIAS ) ; return image ; }
Source:
private org.ovirt.engine.core.bll.validator.storage.DiskValidator spyDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { org.ovirt.engine.core.bll.validator.storage.DiskValidator diskValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk ) ) ; org.mockito.Mockito.doReturn ( diskValidator ) . when ( command ) . getDiskValidator ( disk ) ; return diskValidator ; }

Target:
private org.ovirt.engine.core.bll.validator.storage.DiskValidator spyDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { org.ovirt.engine.core.bll.validator.storage.DiskValidator diskValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk , vmDeviceUtils ) ) ; org.mockito.Mockito.doReturn ( diskValidator ) . when ( command ) . getDiskValidator ( disk ) ; return diskValidator ; }
Source:
protected void setActionMessageParameters ( ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageOperation.Copy ) ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__COPY ) ; } else { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__MOVE ) ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM_DISK ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageOperation.Copy ) ? org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__COPY : org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__MOVE ) ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM_DISK ) ; }
Source:
public void isNetworkDeviceNegtive ( ) { org.junit.Assert.assertEquals ( true , isNetworkDevice ( netDevice ) ) ; }

Target:
public void isNetworkDeviceNegtive ( ) { org.junit.Assert.assertTrue ( hostNicVfsConfigHelper.isNetworkDevice ( netDevice ) ) ; }
Source:
public void testGetFilteredByPermissions ( ) { checkResults ( dao.getAllForCluster ( FixturesTool.CLUSTER_RHEL6_ISCSI , org.ovirt.engine.core.dao.profiles.PRIVILEGED_USER_ID , true ) ) ; }

Target:
public void testGetFilteredByPermissions ( ) { checkResults ( dao.getAllForCluster ( FixturesTool.CLUSTER_RHEL6_ISCSI , org.ovirt.engine.core.dao.profiles.PRIVILEGED_USER_ID , true , ActionGroup.ASSIGN_CPU_PROFILE ) ) ; }
Source:
public void shouldNotElectActiveHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Active , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME ) ; org.mockito.Mockito.when ( hostedEngineHelper.isHostedEngineStorageDomain ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageDomain.class ) ) ) . thenReturn ( true ) ; org.junit.Assert.assertEquals ( null , cmd.electNewMaster ( ) ) ; }

Target:
public void shouldNotElectActiveHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Active , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME ) ; org.mockito.Mockito.when ( hostedEngineHelper.isHostedEngineStorageDomain ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageDomain.class ) ) ) . thenReturn ( true ) ; org.junit.Assert.assertNull ( cmd.electNewMaster ( ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getname ( ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getDiskList ( ) . 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 passthroughChangedNotUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( false , true , false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private static java.lang.String superField ( java.lang.String required ) { return org.ovirt.engine.api.common.util.ReflectionHelper.capitalize ( required.substring ( 0 , required.indexOf ( "." ) ) ) ; }

Target:
private static java.lang.String superField ( java.lang.String required ) { return org.ovirt.engine.api.utils.ReflectionHelper.capitalize ( required.substring ( 0 , required.indexOf ( "." ) ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( ! ( super . canDoAction ( ) ) ) { return false ; } if ( ( getGeoRepSession ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.gluster.GeoRepSessionStatus.PASSIVE ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_GEOREP_SESSION_ALREADY_PAUSED ) ; } return true ; }

Target:
protected boolean validate ( ) { if ( ! ( super . validate ( ) ) ) { return false ; } if ( ( getGeoRepSession ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.gluster.GeoRepSessionStatus.PASSIVE ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_GEOREP_SESSION_ALREADY_PAUSED ) ; } return true ; }
Source:
protected com.google.gwt.user.cellview.client.CellTree createDataDisplayWidget ( org.ovirt.engine.ui.webadmin.uicommon.model.SystemTreeModelProvider modelProvider ) { org.ovirt.engine.ui.webadmin.widget.tree.SystemTree.SystemTreeResources res = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.webadmin.widget.tree.SystemTree.SystemTreeResources.class ) ; display = new com.google.gwt.user.cellview.client.CellTree ( modelProvider , null , res ) ; display.setAnimationEnabled ( true ) ; display.setKeyboardSelectionPolicy ( KeyboardSelectionPolicy.BOUND_TO_SELECTION ) ; return display ; }

Target:
protected void onLoad ( ) { expandTree ( display.getRootTreeNode ( ) , false , 2 ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDAO ( ) . getAllForVmPools ( org.ovirt.engine.core.bll.VmPoolCommandBase.getParameters ( ) . getVmPoolId ( ) . toString ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForVmPools ( org.ovirt.engine.core.bll.VmPoolCommandBase.getParameters ( ) . getVmPoolId ( ) . toString ( ) ) ; }
Source:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; UpdateProperties ( ) ; }

Target:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; updateProperties ( ) ; }
Source:
public void logServerMessage ( final org.ovirt.engine.core.common.businessentities.VDS server , final org.ovirt.engine.core.common.AuditLogType logType ) { logAuditMessage ( null , null , server , logType , null ) ; }

Target:
public void logServerMessage ( final org.ovirt.engine.core.common.businessentities.VDS server , final org.ovirt.engine.core.common.AuditLogType logType ) { logAuditMessage ( null , null , server , logType , java.util.Collections.< java.lang.String , java.lang.String > emptyMap ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getStorageConnectionsList ( java.lang.String spUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByExternalId ( org.ovirt.engine.core.compat.Guid externalId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "external_id" , externalId ) ; return getCallsHandler ( ) . executeReadList ( "GetStepsByExternalTaskId" , createEntityRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getExternalIdsForRunningSteps ( org.ovirt.engine.core.common.job.ExternalSystemType systemType ) { return multipleResults ( entityManager.createNamedQuery ( "Step.getExternalIdsForRunningSteps" ) . setParameter ( "status" , JobExecutionStatus.STARTED ) . setParameter ( "type" , systemType ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return ( object.getvm_active ( ) ) != null ? object.getvm_active ( ) . toString ( ) : "0" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return java.lang.String.valueOf ( object.getvm_count ( ) ) ; }
Source:
public void storagePoolIdNull ( ) { b.setStoragePoolId ( null ) ; final org.ovirt.engine.core.compat.Guid n = b.getStoragePoolId ( ) ; org.junit.Assert.assertNull ( n ) ; }

Target:
public void storagePoolIdNull ( ) { b.setStoragePoolId ( null ) ; final org.ovirt.engine.core.compat.Guid n = b.getStoragePoolId ( ) ; org.junit.jupiter.api.Assertions.assertNull ( n ) ; }
Source:
public void checkAndExecute ( ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( this . executed.compareAndSet ( false , true ) ) { execute ( ) ; } }

Target:
public void checkAndExecute ( ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( this . executed.compareAndSet ( false , true ) ) { execute ( ) ; latch.countDown ( ) ; } }
Source:
public < P extends org.ovirt.engine.core.common.action.VdcActionParametersBase > org.ovirt.engine.core.bll.CommandBase < P > createCommand ( org.ovirt.engine.core.common.action.VdcActionType action , P parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( action , parameters ) ; }

Target:
public < P extends org.ovirt.engine.core.common.action.VdcActionParametersBase > org.ovirt.engine.core.bll.CommandBase < P > createCommand ( org.ovirt.engine.core.common.action.ActionType action , P parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( action , parameters ) ; }
Source:
public javax.ws.rs.core.Response allocatevm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . get ( org.ovirt.engine.core.common.businessentities.aaa.DbUser.class ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response allocatevm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . getUser ( ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
protected org.ovirt.engine.core.dao.BookmarkDAO getDao ( ) { return dao ; }
Source:
private java.util.Map < java.lang.String , java.lang.Object > executeImpl ( java.lang.String procedureName , org.springframework.jdbc.core.namedparam.MapSqlParameterSource paramsSource , org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator callCreator ) { org.springframework.jdbc.core.simple.SimpleJdbcCall call = getCall ( procedureName , callCreator ) ; return call.execute ( paramsSource ) ; }

Target:
private < T > java.util.Map < java.lang.String , java.lang.Object > executeImpl ( java.lang.String procedureName , org.springframework.jdbc.core.namedparam.MapSqlParameterSource paramsSource , org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator callCreator , org.springframework.jdbc.core.RowMapper < T > mapper ) { org.springframework.jdbc.core.simple.SimpleJdbcCall call = getCall ( procedureName , callCreator , mapper ) ; return call.execute ( paramsSource ) ; }
Source:
public void addToHistoryNullBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 12 ) , statistics.addToHistory ( null , 12 , 100 ) ) ; }

Target:
public void addToHistoryNullBefore ( ) { org.junit.Assert.assertEquals ( java.util.Collections.singletonList ( 12 ) , statistics.addToHistory ( null , 12 , 100 ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup lookupClusterById ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( id ) ) , id ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDSGroup lookupClusterById ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( id ) ) , id ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase createQueryParams ( java.lang.String sessionId , boolean isFiltered ) { org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; queryParams.setSessionId ( sessionId ) ; queryParams.setHttpSessionId ( sessionId ) ; queryParams.setFiltered ( isFiltered ) ; return queryParams ; }

Target:
protected void initQueryParams ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , javax.servlet.http.HttpServletRequest request ) { java.lang.String sessionId = request.getSession ( ) . getId ( ) ; queryParams.setSessionId ( sessionId ) ; queryParams.setHttpSessionId ( sessionId ) ; queryParams.setFiltered ( false ) ; }
Source:
public final boolean ConnectToServer ( java.lang.String server , java.lang.String rootPassword , long timeout ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = prepareCredentials ( rootPassword ) ; return _do_connect ( server , creds , timeout ) ; }

Target:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long timeout ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = prepareCredentials ( rootPassword ) ; return _do_connect ( server , creds , timeout ) ; }
Source:
public static boolean isClusterItemExistInList ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > items , org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.common.businessentities.Cluster a : items ) { if ( id.equals ( a.getId ( ) ) ) { return true ; } } return false ; }

Target:
public static boolean isClusterItemExistInList ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > items , org.ovirt.engine.core.compat.Guid id ) { return ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( items , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate ( id ) ) ) != null ; }
Source:
private boolean isInitVmRequired ( ) { return java.util.EnumSet.of ( org.ovirt.engine.core.bll.RunVmCommand.RunVmFlow.RUN , org.ovirt.engine.core.bll.RunVmCommand.RunVmFlow.RESUME_HIBERNATE ) . contains ( getFlow ( ) ) ; }

Target:
private boolean isInitVmRequired ( ) { return java.util.EnumSet.of ( RunVmFlow.RUN , RunVmFlow.RESUME_HIBERNATE ) . contains ( getFlow ( ) ) ; }
Source:
public void shouldCreateAsMuchNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldDetectIndicesNotStartingWithZero ( ) { vmNumaNodes.get ( 0 ) . setIndex ( 2 ) ; vmNumaNodes.get ( 1 ) . setIndex ( 3 ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_NON_CONTINUOUS_INDEX ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM mockVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStatus ( VMStatus.Down ) ; vm.setVmtGuid ( vmTemplateId ) ; vm.setStaticData ( getVmStatic ( ) ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM mockVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStatus ( VMStatus.Down ) ; vm.setVmtGuid ( vmTemplateId ) ; vm.setStaticData ( getVmStatic ( ) ) ; vm.setClusterArch ( ArchitectureType.x86_64 ) ; return vm ; }
Source:
private void setVnicProfiles ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > vnicProfiles ) { this . vnicProfiles = vnicProfiles ; }

Target:
public void setSpiceProxyEnabled ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > spiceProxyEnabled ) { this . spiceProxyEnabled = spiceProxyEnabled ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Network object ) { return object.getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.NetworkView object ) { return object.getNetwork ( ) . getName ( ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addNetworks ( org.ovirt.engine.core.common.businessentities.network.Network ... networks ) { if ( ( networks.length ) == 0 ) { return this ; } addNetworks ( java.util.Arrays.asList ( networks ) ) ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addExistingInterfaces ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > existingInterfaces ) { if ( existingInterfaces == null ) { return this ; } this . existingInterfaces.addAll ( existingInterfaces ) ; return this ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StoragePool setUpStoragePool ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = control.createMock ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) ; org.easymock.EasyMock.expect ( pool.getId ( ) ) . andReturn ( id ) . anyTimes ( ) ; return pool ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StoragePool setUpStoragePool ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) ; org.mockito.Mockito.when ( pool.getId ( ) ) . thenReturn ( id ) ; return pool ; }
Source:
protected void build ( org.ovirt.engine.core.common.businessentities.VmBase source , org.ovirt.engine.core.common.businessentities.VmBase destination ) { destination.setMigrationSupport ( source.getMigrationSupport ( ) ) ; destination.setMigrationDowntime ( source.getMigrationDowntime ( ) ) ; }

Target:
protected void build ( org.ovirt.engine.core.common.businessentities.VmBase source , org.ovirt.engine.core.common.businessentities.VmBase destination ) { destination.setMigrationSupport ( source.getMigrationSupport ( ) ) ; destination.setMigrationDowntime ( source.getMigrationDowntime ( ) ) ; destination.setMigrationPolicyId ( source.getMigrationPolicyId ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.network.macpool.MacPool getPoolById ( org.ovirt.engine.core.compat.Guid macPoolId ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { return getPoolWithoutLocking ( macPoolId ) ; } }

Target:
public org.ovirt.engine.core.bll.network.macpool.MacPool getMacPoolById ( org.ovirt.engine.core.compat.Guid macPoolId ) { return getMacPoolById ( macPoolId , java.util.Collections.emptyList ( ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml progressBar ( int progress , java.lang.String text , java.lang.String color , java.lang.String style , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml progressBar ( com.google.gwt.safecss.shared.SafeStyles styles , java.lang.String text , java.lang.String cssClass , java.lang.String id ) ;
Source:
public void writeCharacters ( java.lang.String text ) { try { writer.writeCharacters ( text ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( ( ( "Can\'t write text \"" + text ) + "\"" ) , exception ) ; } }

Target:
public void writeCharacters ( java.lang.String text ) { try { writer.writeCharacters ( text ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "Can\'t write text \"" + text ) + "\"" ) , exception ) ; } }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( user.getId ( ) ) ; params.setSessionId ( org.ovirt.engine.core.bll.aaa.LogoutBySessionCommand.getParameters ( ) . getSessionId ( ) ) ; setReturnValue ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . logoff ( params ) ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.action.VdcActionParametersBase params = new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ; params.setSessionId ( org.ovirt.engine.core.bll.aaa.LogoutBySessionCommand.getParameters ( ) . getSessionId ( ) ) ; setReturnValue ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . logoff ( params ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain dom ) { return ( ( dom.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) || ( ( dom.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Locked ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain dom ) { return ( ( dom.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) || ( dom.getStatus ( ) . isStorageDomainInProcess ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Snapshot getBaselineSnapshot ( ) { return getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , ( isVmRunningStateless ( ) ? org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.STATELESS : org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.ACTIVE ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Snapshot getActiveSnapshot ( ) { return getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.ACTIVE ) ; }
Source:
public void statusIsNull ( ) { setStorageDomainStatus ( null ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Inactive ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusIsNull ( ) { setStorageDomainStatus ( null ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Inactive ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
public boolean validate ( ) { getBrickDirectory ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) } ) ; return ( getServers ( ) . getIsValid ( ) ) && ( getBrickDirectory ( ) . getIsValid ( ) ) ; }

Target:
public boolean validate ( ) { getBrickDirectory ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) } ) ; return ( getServers ( ) . getIsValid ( ) ) && ( getBrickDirectory ( ) . getIsValid ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc changeDisk ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.Object > driveSpec ) ;
Source:
public void clusterEmulatedMachineIsNull ( ) { emulatedMachine = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , images , version , emulatedMachine , cpuId ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "emulated machine" ) ; }

Target:
public void clusterEmulatedMachineIsNull ( ) { emulatedMachine = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , images , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "emulated machine" ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( getGlobalClusterQuota ( ) . getEntity ( ) ) ) == true ) { getSpecificClusterQuota ( ) . setEntity ( false ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( getSpecificStorageQuota ( ) . getEntity ( ) ) ) == true ) { getGlobalStorageQuota ( ) . setEntity ( false ) ; } }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { return storage.getstorage_name ( ) ; }

Target:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { return storage.getStorageName ( ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionType getActionType ( ) { return ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? super . getActionType ( ) : org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getParentCommand ( ) ; }

Target:
private boolean isMemoryRemovable ( ) { return ( ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getMemoryVolumes ( ) ) ) == 1 ) || ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . isForceRemove ( ) ) ; }
Source:
public void replaceProductKeyDefinedKeyShouldBeReplaced ( ) { java.lang.String res = org.ovirt.engine.core.vdsbroker.vdsbroker.SysprepHandler.replaceProductKey ( sysprepFile , "someKey" , false ) ; org.junit.Assert.assertThat ( res , org.hamcrest.core.StringContains.containsString ( "<Key><![CDATA[someKey]]></Key>" ) ) ; }

Target:
public void replaceProductKeyDefinedKeyShouldBeReplaced ( ) { java.lang.String res = org.ovirt.engine.core.vdsbroker.vdsbroker.SysprepHandler.replaceProductKey ( sysprepFile , "someKey" , false ) ; org.hamcrest.MatcherAssert.assertThat ( res , org.hamcrest.core.StringContains.containsString ( "<Key><![CDATA[someKey]]></Key>" ) ) ; }
Source:
public void shouldFailWhenVmNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.console.ConsoleOptions options = new org.ovirt.engine.core.common.console.ConsoleOptions ( org.ovirt.engine.core.common.businessentities.GraphicsType.SPICE ) ; org.ovirt.engine.core.common.queries.ConsoleOptionsParams params = new org.ovirt.engine.core.common.queries.ConsoleOptionsParams ( options ) ; org.ovirt.engine.core.bll.GetConsoleDescriptorFileQuery query = new org.ovirt.engine.core.bll.GetConsoleDescriptorFileQuery ( params ) ; org.junit.Assert.assertFalse ( query.validateInputs ( ) ) ; }

Target:
public void shouldFailWhenVmNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.console.ConsoleOptions options = new org.ovirt.engine.core.common.console.ConsoleOptions ( org.ovirt.engine.core.common.businessentities.GraphicsType.SPICE ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getOptions ( ) ) . thenReturn ( options ) ; org.junit.Assert.assertFalse ( getQuery ( ) . validateInputs ( ) ) ; }
Source:
public void setvmt_cpu_per_socket ( int value ) { this . vmt_cpu_per_socketField = value ; }

Target:
public void setVmtCpuPerSocket ( int value ) { this . vmtCpuPerSocket = value ; }
Source:
private org.ovirt.engine.core.dao.VdsStaticDAO getVdsStaticDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDAO ( ) ; }

Target:
public org.ovirt.engine.core.dao.VdsStaticDAO getVdsStaticDao ( ) { return org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getDbFacade ( ) . getVdsStaticDAO ( ) ; }
Source:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { if ( ( getVdsDestinationId ( ) ) != null ) { decreasePendingVms ( getVdsDestinationId ( ) ) ; } org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected org.ovirt.engine.core.compat.Guid getCurrentVdsId ( ) { org.ovirt.engine.core.compat.Guid destinationVdsId = getDestinationVdsId ( ) ; return destinationVdsId != null ? destinationVdsId : super . getCurrentVdsId ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondWithNoNetworks ( ) { org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = new org.ovirt.engine.core.common.businessentities.IscsiBond ( ) ; iscsiBond.setId ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.ISCSI_BOND_ID ) ; return iscsiBond ; }

Target:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondWithNoNetworks ( ) { org.ovirt.engine.api.restapi.resource.IscsiBond iscsiBond = new org.ovirt.engine.api.restapi.resource.IscsiBond ( ) ; iscsiBond.setId ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.ISCSI_BOND_ID ) ; return iscsiBond ; }
Source:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper createHelper ( org.ovirt.engine.core.common.action.SetupNetworksParameters params ) { return createHelper ( params , Version.v3_3 ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper createHelper ( org.ovirt.engine.core.common.action.SetupNetworksParameters params , org.ovirt.engine.core.common.businessentities.VDS vds ) { return createHelper ( params , vds , Version.v4_0 ) ; }
Source:
protected com.gwtplatform.mvp.client.proxy.PlaceRequest getSideTabRequest ( ) { return org.ovirt.engine.ui.common.place.PlaceRequestFactory.get ( ApplicationPlaces.extendedVirtualMachineSideTabPlace ) ; }

Target:
protected com.gwtplatform.mvp.shared.proxy.PlaceRequest getSideTabRequest ( ) { return org.ovirt.engine.ui.common.place.PlaceRequestFactory.get ( UserPortalApplicationPlaces.extendedVirtualMachineSideTabPlace ) ; }
Source:
public static void RemoveVdsAlert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.Guid vdsId , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.DbFacade.getInstance ( ) . getAuditLogDAO ( ) . removeAllOfTypeForVds ( vdsId , type.getValue ( ) ) ; }

Target:
public static void RemoveVdsAlert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.Guid vdsId , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllOfTypeForVds ( vdsId , type.getValue ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Nic update ( org.ovirt.engine.api.model.Nic nic ) { return performUpdate ( nic , new org.ovirt.engine.api.restapi.resource.BackendVmNicResource.NicResolver ( ) , VdcActionType.UpdateVmInterface , new org.ovirt.engine.api.restapi.resource.BackendVmNicResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Nic update ( org.ovirt.engine.api.model.Nic nic ) { return performUpdate ( nic , new org.ovirt.engine.api.restapi.resource.BackendVmNicResource.NicResolver ( ) , ActionType.UpdateVmInterface , new org.ovirt.engine.api.restapi.resource.BackendVmNicResource.UpdateParametersProvider ( ) ) ; }
Source:
public void invalidPropertyValue ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v3_3 , VmDeviceGeneralType.DISK , utils.convertProperties ( "bootable=x" ) ) ; org.ovirt.engine.core.utils.customprop.PropertiesUtilsTestHelper.validateFailure ( errors , ValidationFailureReason.INCORRECT_VALUE ) ; }

Target:
public void invalidPropertyValue2 ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v3_3 , VmDeviceGeneralType.DISK , utils.convertProperties ( "bootable=x" ) ) ; org.ovirt.engine.core.utils.customprop.PropertiesUtilsTestHelper.validateFailure ( errors , ValidationFailureReason.INCORRECT_VALUE ) ; }
Source:
private void fillRemovedNetworks ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct networks ) { for ( java.lang.String net : org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand.getParameters ( ) . getRemovedNetworks ( ) ) { networks.add ( net , org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand.REMOVE_OBJ ) ; } }

Target:
private static void putIfNotEmpty ( java.util.Map < java.lang.String , java.lang.String > map , java.lang.String key , java.lang.String value ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( value ) ) ) { map.put ( key , value ) ; } }
Source:
protected void executeVmCommand ( ) { setActionReturnValue ( VMStatus.Down ) ; initVm ( ) ; perform ( ) ; }

Target:
protected void executeVmCommand ( ) { resourceManager.getVmManager ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) . setPowerOffTimeout ( java.lang.System.nanoTime ( ) ) ; setActionReturnValue ( VMStatus.Down ) ; initVm ( ) ; perform ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.VM > cast ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.IVdcQueryable > ) ( source ) ) ) ; return vms ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( ) ; } return source ; }