auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void lowerVersionHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void Search ( ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getEntity ( ) ) ) ; if ( ( getEntity ( ) ) != null ) { preSearchCalled ( vm ) ; super . Search ( ) ; } }

Target:
public void search ( ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getEntity ( ) ) ) ; if ( ( getEntity ( ) ) != null ) { preSearchCalled ( vm ) ; super . search ( ) ; } }
Source:
private org.ovirt.engine.core.compat.Guid getClusterIdByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Cluster: name=" + name ) ) . getId ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getClusterIdByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , QueryType.GetClusterByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Cluster: name=" + name ) ) . getId ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.storage.StorageHelperDirector.getInstance ( ) . getItem ( domain.getStorageType ( ) ) . storageDomainRemoved ( domain.getStorageStaticData ( ) ) ; getStorageDomainDAO ( ) . remove ( domain.getId ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.storage.StorageHelperDirector.getInstance ( ) . getItem ( domain.getStorageType ( ) ) . storageDomainRemoved ( domain.getStorageStaticData ( ) ) ; getStorageDomainDao ( ) . remove ( domain.getId ( ) ) ; return null ; }
Source:
public void typeMatchesProfileTypePassthroughProfileIsNull ( ) { typeMatchesProfileCommon ( true , null ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }

Target:
public void typeMatchesProfileTypePassthroughProfileIsNull ( ) { typeMatchesProfileCommon ( true , null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }
Source:
public void doPolling ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { return ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { }
Source:
public java.lang.String getappList ( ) { return this . appList ; }

Target:
public void setStorageIds ( java.util.ArrayList < org.ovirt.engine.core.compat.Guid > storageIds ) { this . storageIds = storageIds ; }
Source:
protected void doEdit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel model ) { org.ovirt.engine.ui.common.widget.uicommon.vm.VmGeneralModelForm.Driver.driver.edit ( model ) ; monitorCount.setText ( java.lang.Integer.toString ( getModel ( ) . getMonitorCount ( ) ) ) ; }

Target:
protected void doEdit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel model ) { driver.edit ( model ) ; monitorCount.setText ( java.lang.Integer.toString ( getModel ( ) . getMonitorCount ( ) ) ) ; }
Source:
public final void disconnect ( ) { postDisconnect ( ) ; closeChannel ( ) ; }

Target:
public final void disconnect ( java.lang.String message ) { postDisconnect ( ) ; closeChannel ( ) ; emitOnMessageReceived ( buildNetworkResponse ( message ) ) ; }
Source:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { warningLabel.setText ( constants.removeBricksWarning ( ) ) ; migrateEditor.setLabel ( constants.removeBricksMigrateData ( ) ) ; }

Target:
private void localize ( ) { warningLabel.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.RemoveBrickPopupView.constants.removeBricksWarning ( ) ) ; migrateEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.RemoveBrickPopupView.constants.removeBricksMigrateData ( ) ) ; }
Source:
public void testRemoveAllOfTypeForVds ( ) throws java.lang.Exception { dao.removeAllOfTypeForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , AuditLogType.IRS_DISK_SPACE_LOW_ERROR.getValue ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testRemoveAllOfTypeForVds ( ) throws java.lang.Exception { dao.removeAllOfTypeForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , AuditLogType.IRS_DISK_SPACE_LOW_ERROR.getValue ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( 3 , result.size ( ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( actionType , correlationId , endTime , id , isVisible , jobSubjectEntities , lastUpdateTime , ownerId , startTime , status , steps , external , autoCleared ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( actionType , engineSessionSeqId , correlationId , endTime , id , isVisible , jobSubjectEntities , lastUpdateTime , ownerId , startTime , status , steps , external , autoCleared ) ; }
Source:
public javax.ws.rs.core.Response remove ( org.ovirt.engine.api.v3.types.V3Action action ) { try { return adaptResponse ( delegate.remove ( org.ovirt.engine.api.v3.adapters.V3InAdapters.adaptIn ( action ) ) ) ; } catch ( javax.ws.rs.WebApplicationException exception ) { throw adaptException ( exception ) ; } }

Target:
public javax.ws.rs.core.Response remove ( org.ovirt.engine.api.v3.types.V3Action action ) { try { return adaptResponse ( getDelegate ( ) . remove ( org.ovirt.engine.api.v3.adapters.V3InAdapters.adaptIn ( action ) ) ) ; } catch ( javax.ws.rs.WebApplicationException exception ) { throw adaptException ( exception ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.HostDeviceView > hostDevice ) { return org.ovirt.engine.ui.uicompat.external.StringUtils.join ( hostDevice.getEntity ( ) . getAttachedVmNames ( ) , ", " ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.HostDeviceView > hostDevice ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.HostDeviceColumnHelper.renderVmNamesList ( hostDevice.getEntity ( ) . getAttachedVmNames ( ) ) ; }
Source:
protected int compareCpuLevels ( org.ovirt.engine.core.common.businessentities.VDSGroup otherGroup ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.compareCpuLevels ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , otherGroup.getcpu_name ( ) , otherGroup.getcompatibility_version ( ) ) ; }

Target:
protected boolean checkIfCpusSameManufacture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusSameManufacture ( group.getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
protected long GigabyteToBytes ( long gb ) { return gb * ( org.ovirt.engine.core.utils.ovf.OvfReader.BYTES_IN_GB ) ; }

Target:
protected long convertGigabyteToBytes ( long gb ) { return gb * ( org.ovirt.engine.core.utils.ovf.OvfReader.BYTES_IN_GB ) ; }
Source:
public void nullVnicProfileWhenUnlinkingNotSupported ( ) throws java.lang.Exception { vnicProfileTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.junit.matchers.JUnitMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , null ) ; }

Target:
public void nullVnicProfileWhenUnlinkingNotSupported ( ) throws java.lang.Exception { vnicProfileLinkingTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.junit.matchers.JUnitMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , null ) ; }
Source:
protected void fetchDocumentationFile ( ) { fetchFile ( ( ( getDocumentationBaseURL ( ) ) + "DocumentationPath.csv" ) , documentationFileFetchedEvent ) ; }

Target:
protected void fetchDocumentationFile ( ) { fetchFile ( ( ( getHelpTagMappingBaseURL ( ) ) + "webadmin.json" ) , documentationFileFetchedEvent ) ; }
Source:
protected boolean hasParentCommand ( ) { return ( getParentCommandType ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ; }

Target:
protected boolean hasParentCommand ( ) { return ( getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMTemplateName ( java.lang.String vmTemplateName ) { return null ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMTemplateId ( org.ovirt.engine.core.compat.Guid vmTemplateId ) { return null ; }
Source:
org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) ; }

Target:
org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.interfaces.BackendInternal.class ) ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmTemplate , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; }

Target:
private void setUpGetEntityExpectations ( int index ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmTemplate , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ index ] } , getEntity ( index ) ) ; }
Source:
public void setClusterPolicyModel ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterPolicyModel clusterPolicyModel ) { this . clusterPolicyModel = clusterPolicyModel ; }

Target:
public void setEnableBallooning ( org.ovirt.engine.ui.uicommonweb.models.EntityModel enableBallooning ) { this . enableBallooning = enableBallooning ; }
Source:
public void setcompatibility_version ( org.ovirt.engine.core.compat.Version value ) { compatibilityVersion = value.toString ( ) ; version = null ; }

Target:
public void setCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { compatibilityVersion = value.toString ( ) ; version = null ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( java.lang.String networkName ) { return new org.ovirt.engine.core.common.businessentities.network.Network ( "" , "" , org.ovirt.engine.core.compat.Guid.NewGuid ( ) , networkName , "" , "" , 0 , null , false , 0 , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( java.lang.String networkName ) { return new org.ovirt.engine.core.common.businessentities.network.Network ( "" , "" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , networkName , "" , "" , 0 , null , false , 0 , true ) ; }
Source:
public void setHighlyAvailableIsConfigured ( boolean value ) { this . mVdsStatistics.setHighlyAvailableIsConfigured ( value ) ; }

Target:
public void setHighlyAvailableLocalMaintenance ( boolean value ) { vdsStatistics.setHighlyAvailableLocalMaintenance ( value ) ; }
Source:
public void setGuestRequestedMemory ( java.lang.Integer value ) { this . vmDynamic.setguest_requested_memory ( value ) ; }

Target:
public java.lang.Integer getUtcDiff ( ) { return this . vmDynamic.getUtcDiff ( ) ; }
Source:
public java.lang.String getBondOptions ( ) { return getEntity ( ) . getBondOptions ( ) ; }

Target:
public java.lang.String getBondOptions ( ) { return getIface ( ) . getBondOptions ( ) ; }
Source:
public void setCertificateSubject ( java.lang.String certificateSubject ) { vdsStatic.setCertificateSubject ( certificateSubject ) ; }

Target:
public boolean isHostedEngineConfigured ( ) { return vdsDynamic.isHostedEngineConfigured ( ) ; }
Source:
public void setactive ( java.lang.Boolean value ) { getImage ( ) . setActive ( java.lang.Boolean.TRUE.equals ( value ) ) ; }

Target:
public void setActive ( boolean active ) { getImage ( ) . setActive ( active ) ; }
Source:
protected void executeCommand ( ) { getOldVnicProfile ( ) ; org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.getVnicProfileDao ( ) . update ( org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.getVnicProfile ( ) ) ; org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { getOldVnicProfile ( ) ; vnicProfileDao.update ( org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.getVnicProfile ( ) ) ; org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.setSucceeded ( true ) ; }
Source:
java.lang.String getCdInterface ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
boolean isHypervEnabled ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void testEvalPositive ( ) { org.mockito.Mockito.when ( mockExternalNetworkPredicate.eval ( mockNetwork ) ) . thenReturn ( false ) ; org.junit.Assert.assertTrue ( underTest.eval ( mockNetwork ) ) ; }

Target:
public void testEvalPositive ( ) { mockExternalNetworkPredicate.setTestResult ( false ) ; org.junit.Assert.assertTrue ( underTest.test ( mockNetwork ) ) ; }
Source:
public void afterCompletion ( int status ) { if ( ! ( org.ovirt.engine.core.utils.transaction.TransactionSupport.needToRollback ( status ) ) ) return ; rollbackHandler.Rollback ( ) ; }

Target:
public void afterCompletion ( int status ) { if ( ! ( org.ovirt.engine.core.utils.transaction.TransactionSupport.needToRollback ( status ) ) ) return ; rollbackHandler.rollback ( ) ; }
Source:
public void setIsVolumeFormatChangable ( boolean isVolumeFormatChangable ) { if ( ( this . isVolumeFormatChangable ) != isVolumeFormatChangable ) { this . isVolumeFormatChangable = isVolumeFormatChangable ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VolumeFormat" ) ) ; } }

Target:
public void setIsVolumeFormatAvailable ( boolean isVolumeFormatAvailable ) { this . volumeFormatAvailable = isVolumeFormatAvailable ; }
Source:
public void testMemoryDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.utils.ovf.xml.XmlDocument xmlDocument = new org.ovirt.engine.core.utils.ovf.xml.XmlDocument ( getXmlOvfData ( ) ) ; java.util.Set < org.ovirt.engine.core.compat.Guid > memoryDisks = ovfUtils.fetchMemoryDisks ( xmlDocument ) ; org.junit.Assert.assertFalse ( "The list of memory disks for snapshot should not be empty" , memoryDisks.isEmpty ( ) ) ; }

Target:
public void testMemoryDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.utils.ovf.xml.XmlDocument xmlDocument = new org.ovirt.engine.core.utils.ovf.xml.XmlDocument ( getXmlOvfData ( ) ) ; java.util.Set < org.ovirt.engine.core.compat.Guid > memoryDisks = ovfUtils.fetchMemoryDisks ( xmlDocument ) ; org.junit.jupiter.api.Assertions.assertFalse ( memoryDisks.isEmpty ( ) , "The list of memory disks for snapshot should not be empty" ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult validateVmStatusUsingMatrix ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ! ( org.ovirt.engine.core.common.VdcActionUtils.CanExecute ( java.util.Arrays.asList ( vm ) , org.ovirt.engine.core.common.businessentities.VM.class , VdcActionType.RunVm ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VM_STATUS_ILLEGAL ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult validateVmStatusUsingMatrix ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ! ( org.ovirt.engine.core.common.VdcActionUtils.CanExecute ( java.util.Arrays.asList ( vm ) , org.ovirt.engine.core.common.businessentities.VM.class , VdcActionType.RunVm ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_STATUS_ILLEGAL ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private static org.ovirt.engine.core.common.businessentities.DiskImage getNewDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; diskImage.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return diskImage ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage getNewDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; diskImage.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return diskImage ; }
Source:
public java.lang.Integer getpending_vcpus_count ( ) { return mVdsDynamic.getpending_vcpus_count ( ) ; }

Target:
public java.lang.Integer getPendingVcpusCount ( ) { return mVdsDynamic.getpending_vcpus_count ( ) ; }
Source:
public void networkPrefixInnocent ( ) throws java.lang.Exception { networkPrefixValidTest ( ValidationResult.VALID , DEFAULT_NETWORK_NAME ) ; }

Target:
public void networkPrefixInnocent ( ) throws java.lang.Exception { networkPrefixValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , DEFAULT_NETWORK_NAME ) ; }
Source:
protected boolean doesStorageDomainhaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , long totalImagesSize ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainHasSpaceForRequest ( totalImagesSize ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.StorageDomainValidator createStorageDomainValidator ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks ) ;
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . displayAllEvents ( ) ; org.ovirt.engine.core.bll.DisplayAllAuditLogEventsCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { auditLogDao.displayAllEvents ( ) ; org.ovirt.engine.core.bll.DisplayAllAuditLogEventsCommand.setSucceeded ( true ) ; }
Source:
private java.lang.String resolveSystemHostName ( ) { try { return java.net.InetAddress.getLocalHost ( ) . getHostName ( ) ; } catch ( java.net.UnknownHostException e ) { org.ovirt.engine.core.bll.host.provider.foreman.SystemProviderFinder.log.error ( "Failed to resolve hostname for the ovir-engine server" , e ) ; return null ; } }

Target:
private java.lang.String resolveSystemHostName ( ) { try { return java.net.InetAddress.getLocalHost ( ) . getHostName ( ) ; } catch ( java.net.UnknownHostException e ) { org.ovirt.engine.core.bll.host.provider.foreman.SystemProviderFinder.log.error ( "Failed to resolve hostname for the engine server" , e ) ; return null ; } }
Source:
public void testGetSystemStatisticsValueWithSpecifiedStatus ( ) { int numOfVmWithStatusMigratingFrom = dbFacade.GetSystemStatisticsValue ( "VM" , java.lang.Integer.toString ( VMStatus.MigratingFrom.getValue ( ) ) ) ; org.junit.Assert.assertTrue ( ( numOfVmWithStatusMigratingFrom == ( org.ovirt.engine.core.dao.DbFacadeDAOTest.NUM_OF_VM_IN_FIXTURES_WITH_STATUS_MIGRATING_FROM ) ) ) ; }

Target:
public void testGetSystemStatisticsValueWithSpecifiedStatus ( ) { int numOfVmWithStatusMigratingFrom = dbFacade.getSystemStatisticsValue ( "VM" , java.lang.Integer.toString ( VMStatus.MigratingFrom.getValue ( ) ) ) ; org.junit.Assert.assertTrue ( ( numOfVmWithStatusMigratingFrom == ( org.ovirt.engine.core.dao.DbFacadeDAOTest.NUM_OF_VM_IN_FIXTURES_WITH_STATUS_MIGRATING_FROM ) ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.Cluster createNewCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster group = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.VERSION_1_1 ) ; group.setName ( "Default" ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.Cluster createNewCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster group = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.VERSION_1_1 ) ; group.setName ( "Default" ) ; group.setClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return group ; }
Source:
public void testInvalidStatusForEnrollCertificate ( ) { validator = mockHostForActivation ( VDSStatus.Up ) ; org.junit.Assert.assertThat ( validator.validateStatusForEnrollCertificate ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.CANNOT_ENROLL_CERTIFICATE_HOST_STATUS_ILLEGAL ) ) ; }

Target:
public void testValidateStatusUpForActivation ( ) { mockHostForActivation ( VDSStatus.Up ) ; org.junit.Assert.assertThat ( validator.validateStatusForActivation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_ALREADY_UP ) ) ; }
Source:
protected void LogEndTaskSuccess ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.infoFormat ( "BaseAsyncTask::OnTaskEndSuccess: Task '{0}' (Parent Command {1}, Parameters Type {2}) ended successfully." , getVdsmTaskId ( ) , getParameters ( ) . getDbAsyncTask ( ) . getaction_type ( ) , getParameters ( ) . getClass ( ) . getName ( ) ) ; }

Target:
protected void logEndTaskSuccess ( ) { org.ovirt.engine.core.bll.tasks.SPMAsyncTask.log.infoFormat ( "BaseAsyncTask::onTaskEndSuccess: Task '{0}' (Parent Command {1}, Parameters Type {2}) ended successfully." , getVdsmTaskId ( ) , getParameters ( ) . getDbAsyncTask ( ) . getaction_type ( ) , getParameters ( ) . getClass ( ) . getName ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > fenceSpmStorage ( java.lang.String spUUID , int prevID , java.lang.String prevLVER ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > connectStoragePool ( java.lang.String spUUID , int hostSpmId , java.lang.String SCSIKey , java.lang.String masterdomainId , int masterVersion , java.util.Map < java.lang.String , java.lang.String > storageDomains ) ;
Source:
public void saveGlusterServerHook ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid hostId , java.lang.String checksum , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) ;

Target:
public void updateGlusterHookStatus ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) ;
Source:
private void debugAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Action type '{}', Parameters '{}'" , actionType , params ) ; }

Target:
private void debugAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Action type '{}', Parameters '{}'" , actionType , params ) ; }
Source:
public int getTasksCountCurrentActionType ( ) { int returnValue = 0 ; synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; returnValue = CurrentActionTypeTasks.size ( ) ; } return returnValue ; }

Target:
public int getTasksCountCurrentActionType ( ) { int returnValue = 0 ; synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.CommandAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; returnValue = CurrentActionTypeTasks.size ( ) ; } return returnValue ; }
Source:
protected void removeVmSnapshots ( ) { new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }

Target:
protected void removeVmSnapshots ( ) { getSnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }
Source:
protected void removeNodeSpi ( ) { throw new java.lang.UnsupportedOperationException ( "Not supported for sake of simplicity, non blocking API" ) ; }

Target:
protected void removeNodeSpi ( ) { if ( ( parent ( ) ) == null ) { throw new java.lang.IllegalArgumentException ( "Cannot remove root node" ) ; } parent ( ) . remove ( this . name ( ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.RegisterLibvirtSecretsVDSCommand.getBroker ( ) . registerSecrets ( buildStructFromLibvirtSecretsList ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.RegisterLibvirtSecretsVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.RegisterLibvirtSecretsVDSCommand.getBroker ( ) . registerSecrets ( buildStructFromLibvirtSecretsList ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.RegisterLibvirtSecretsVDSCommand.getParameters ( ) . isClearUnusedSecrets ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.RegisterLibvirtSecretsVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public java.util.HashSet < org.ovirt.engine.core.compat.Version > getSupportedClusterVersionsSet ( ) { return supportedClusterVersionsSet ; }

Target:
public java.util.HashSet < org.ovirt.engine.core.compat.Version > getSupportedClusterVersionsSet ( ) { if ( ( supportedClusterVersionsSet ) == null ) { supportedClusterVersionsSet = parseSupportedVersions ( getSupportedClusterLevels ( ) ) ; } return supportedClusterVersionsSet ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getDbFacade ( ) . getNetworkProviderDao ( ) . remove ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.provider.RemoveProviderCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { getProviderDao ( ) . remove ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.provider.RemoveProviderCommand.setSucceeded ( true ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( true ) ; revealDiskPanel ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.IMAGE ) ; revealDiskPanel ( disk ) ; }
Source:
public void testCanDoFailReadOnlyOnInterface ( ) { org.mockito.Mockito.when ( diskValidator.isReadOnlyPropertyCompatibleWithInterface ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR ) ; org.mockito.Mockito.verify ( diskValidator ) . isReadOnlyPropertyCompatibleWithInterface ( ) ; }

Target:
public void testCanDoFailReadOnlyOnInterface ( ) { org.mockito.Mockito.when ( diskValidator.isReadOnlyPropertyCompatibleWithInterface ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR ) ; org.mockito.Mockito.verify ( diskValidator ) . isReadOnlyPropertyCompatibleWithInterface ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > add_image_ticket ( java.lang.String ticketId , java.lang.String [ ] ops , long timeout , long size , java.lang.String url ) ;
Source:
public void passthroughNotChangedNotUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( false , false , true ) ; org.junit.Assert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughChangedUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( true , false , true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.failsWithVnicProfileInUse ( ) ) ; }
Source:
private boolean isTypeTenantAware ( ) { org.ovirt.engine.core.common.businessentities.ProviderType type = getType ( ) . getSelectedItem ( ) ; return ( ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) || ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_IMAGE ) ) ) || ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_VOLUME ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > getReadOnly ( ) { return readOnly ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn createVolumeContainer ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > createVolumeInfo ) ;

Target:
java.util.concurrent.FutureTask < java.util.Map < java.lang.String , java.lang.Object > > timeBoundPoll ( long timeout , java.util.concurrent.TimeUnit unit ) ;
Source:
public org.ovirt.engine.core.common.errors.VdcFault getFault ( ) { if ( ( fault ) == null ) { fault = new org.ovirt.engine.core.common.errors.VdcFault ( ) ; fault.setError ( EngineError.ENGINE ) ; fault.setMessage ( EngineError.ENGINE.name ( ) ) ; } return fault ; }

Target:
public org.ovirt.engine.core.common.errors.EngineFault getFault ( ) { if ( ( fault ) == null ) { fault = new org.ovirt.engine.core.common.errors.EngineFault ( ) ; fault.setError ( EngineError.ENGINE ) ; fault.setMessage ( EngineError.ENGINE.name ( ) ) ; } return fault ; }
Source:
public void stopProgress ( ) { org.ovirt.engine.ui.common.view.popup.AbstractModelBoundPopupView.asWidget ( ) . setContent ( popupContent ) ; org.ovirt.engine.ui.common.view.popup.AbstractModelBoundPopupView.asWidget ( ) . setFooterPanelVisible ( true ) ; focusInput ( ) ; }

Target:
public void stopProgress ( ) { org.ovirt.engine.ui.common.view.popup.AbstractModelBoundPopupView.asWidget ( ) . setContent ( popupContent ) ; org.ovirt.engine.ui.common.view.popup.AbstractModelBoundPopupView.asWidget ( ) . setFooterPanelVisible ( true ) ; updateTabIndexes ( ) ; focusInput ( ) ; }
Source:
public void getPlaceHolderListTestNoPlaceHolder ( ) { java.lang.String testMessage = "This is a test without place holders" ; java.util.List < java.lang.Integer > result = testMessages.getPlaceHolderList ( testMessage ) ; org.junit.Assert.assertTrue ( "Result should be empty" , result.isEmpty ( ) ) ; }

Target:
public void getPlaceHolderListTestNoPlaceHolder ( ) { java.lang.String testMessage = "This is a test without place holders" ; java.util.List < java.lang.Integer > result = testMessages.getPlaceHolderList ( testMessage ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) , "Result should be empty" ) ; }
Source:
public java.lang.String getValue ( java.util.Map < java.lang.String , java.lang.String > object ) { return object.get ( "PropertyValue" ) ; }

Target:
public java.lang.String getValue ( java.util.Map < java.lang.String , java.lang.String > object ) { return object.get ( org.ovirt.engine.ui.webadmin.section.main.view.tab.host.SubTabHostHookView.PROPERTY_NAME ) ; }
Source:
public void testMacIsNotContainedInRange ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( rangeOf10Macs.contains ( org.ovirt.engine.core.bll.network.macpoolmanager.RangeTest.MAC_OUTSIDE_OF_RANGE ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testMacIsNotContainedInRange ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( rangeOf10Macs.contains ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_OUTSIDE_OF_RANGE ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
public void testIsNetworkInSyncWhenBootProtocolEqual ( ) throws java.lang.Exception { initIpConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4BootProtocolEqual ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void testAddUser_4 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( NAMES [ 0 ] ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setId ( new org.ovirt.engine.core.compat.Guid ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN.getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) , true ) . toString ( ) ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }

Target:
public void testAddUser_2 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) ; domain.setId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( domain.getName ( ) ) ) ; model.setDomain ( domain ) ; model.setUserName ( NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.FenceVdsBaseCommand.createFenceExclusiveLocksMap ( getProblematicVdsId ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.createFenceExclusiveLocksMap ( getProblematicVdsId ( ) ) ; }
Source:
public void passwordIsEmpty ( ) { org.junit.Assert.assertThat ( validator.passwordNotEmpty ( false , AuthenticationMethod.Password , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.VDS_CANNOT_INSTALL_EMPTY_PASSWORD ) ) ; }

Target:
public void passwordIsEmpty ( ) { org.junit.Assert.assertThat ( validator.passwordNotEmpty ( false , AuthenticationMethod.Password , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_EMPTY_PASSWORD ) ) ; }
Source:
public org.ovirt.engine.api.resource.openstack.OpenStackVolumeTypesResource getOpenStackVolumeTypes ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeTypesResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.openstack.OpenstackVolumeTypesResource getVolumeTypesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeTypesResource ( id ) ) ; }
Source:
public void testGetAllVfsConfigByHostIdWithNoVfsConfigs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( org.ovirt.engine.core.dao.network.HostNicVfsConfigDaoTest.HOST_WITH_NO_VFS_CONFIGS_ID ) ; org.junit.Assert.assertEquals ( vfsConfigs.size ( ) , 0 ) ; }

Target:
public void testGetAllVfsConfigByHostId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( org.ovirt.engine.core.dao.network.HostNicVfsConfigDaoTest.HOST_ID ) ; org.junit.Assert.assertEquals ( 2 , vfsConfigs.size ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; } return source ; }

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.ExternalComputeResource > ( ) ; } return source ; }
Source:
public static boolean isVmTemlateWithSameNameExist ( java.lang.String name ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . getByName ( name , null , false ) ) != null ; }

Target:
public boolean isVmTemlateWithSameNameExist ( java.lang.String name , org.ovirt.engine.core.compat.Guid datacenterId ) { return ( vmTemplateDao.getByName ( name , datacenterId , null , false ) ) != null ; }
Source:
public final boolean ConnectToServer ( java.lang.String server ) { return ConnectToServer ( server , org.ovirt.engine.core.common.config.Config.resolveKeyStorePath ( ) , org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.keystorePass ) ) ; }

Target:
public final boolean connect ( java.lang.String server ) { return connect ( server , org.ovirt.engine.core.common.config.Config.resolveKeyStorePath ( ) , org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.keystorePass ) ) ; }
Source:
public java.lang.Integer getdisplay ( ) { return this . mVmDynamic.getdisplay ( ) ; }

Target:
public void setAppList ( java.lang.String value ) { this . vmDynamic.setapp_list ( value ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new org.ovirt.engine.core.bll.RemoveAllCinderDisksCommandCallBack ( ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback ( ) ; }
Source:
public static void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.persistCommand ( commandId , rootCommandId , actionType , params , status , enableCallBack ) ; }

Target:
public static org.ovirt.engine.core.compat.CommandStatus getCommandStatus ( org.ovirt.engine.core.compat.Guid commandId ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.getCommandStatus ( commandId ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { logSsoOnDesktopFailedAgentNonResp ( spiceConsoleModel.getLogger ( ) , ( logonCommandReturnValue != null ? logonCommandReturnValue.getDescription ( ) : "" ) ) ; spiceConsoleModel.ExecuteQuery ( getEntity ( ) ) ; parentModel.setWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { logSsoOnDesktopFailedAgentNonResp ( spiceConsoleModel.getLogger ( ) , ( logonCommandReturnValue != null ? logonCommandReturnValue.getDescription ( ) : "" ) ) ; spiceConsoleModel.executeQuery ( getEntity ( ) ) ; parentModel.setWindow ( null ) ; }
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:
protected void doNetworkOperation ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue , java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.NicWithLogicalNetworks > nicWithLogicalNetworks ) { networkCreatingManager.updateNetworks ( idToUpdate , nicWithLogicalNetworks ) ; }

Target:
protected void doNetworkOperation ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue , java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType > nicWithLogicalNetworks ) { networkCreatingManager.updateVnics ( idToUpdate , nicWithLogicalNetworks ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockSecondStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setStatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( secondStorageDomainId ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; return storageDomain ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomainList ( ) { return java.util.stream.Stream.of ( firstStorageDomainId , secondStorageDomainId ) . map ( this :: mockDomain ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public boolean getIsStaticAddress ( ) { return ( getBootProtocol ( ) ) == ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol.StaticIp ) ; }

Target:
public boolean getIsStaticAddress ( ) { return ( getBootProtocol ( ) ) == ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol.STATIC_IP ) ; }
Source:
public void validateChangeNamePoolNotUp ( ) { sd.setStorageName ( org.apache.commons.lang.StringUtils.reverse ( sd.getStorageName ( ) ) ) ; sp.setStatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void validateChangeNamePoolNotUp ( ) { sd.setStorageName ( org.apache.commons.lang.StringUtils.reverse ( sd.getStorageName ( ) ) ) ; sp.setStatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_STATUS_ILLEGAL ) ; }
Source:
public void onPowerringUp ( ) { decreasePendingVm ( org.ovirt.engine.core.bll.RunVmCommand.getVmStaticDAO ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ) ; }

Target:
public void onPowerringUp ( ) { decreasePendingVm ( org.ovirt.engine.core.bll.RunVmCommand.getVmStaticDao ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ) ; }
Source:
public void testRemove ( ) { dao.remove ( existingAuditLog.getaudit_log_id ( ) ) ; org.ovirt.engine.core.common.businessentities.AuditLog result = dao.get ( existingAuditLog.getaudit_log_id ( ) ) ; org.junit.Assert.assertTrue ( result.isDeleted ( ) ) ; }

Target:
public void testRemove ( ) { dao.remove ( existingAuditLog.getAuditLogId ( ) ) ; org.ovirt.engine.core.common.businessentities.AuditLog result = dao.get ( existingAuditLog.getAuditLogId ( ) ) ; org.junit.Assert.assertTrue ( result.isDeleted ( ) ) ; }
Source:
public static org.ovirt.engine.core.bll.context.CommandContext createInternalJobContext ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.modifyContextForIntenralJob ( new org.ovirt.engine.core.bll.context.CommandContext ( new org.ovirt.engine.core.bll.context.EngineContext ( ) ) , lock ) ; }

Target:
public static org.ovirt.engine.core.bll.context.CommandContext createInternalJobContext ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.modifyContextForInternalJob ( new org.ovirt.engine.core.bll.context.CommandContext ( new org.ovirt.engine.core.bll.context.EngineContext ( ) ) , lock ) ; }
Source:
public java.lang.String getstorage_pool_name ( ) { return this . storage_pool_nameField ; }

Target:
public void setCpuOverCommitDurationMinutes ( int value ) { this . cpuOverCommitDurationMinutes = value ; }
Source:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ; }

Target:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ; }
Source:
public void setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { this . migrationSupport = migrationSupport ; }

Target:
public void setVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { this . vm = vm ; }
Source:
public void testMacToLong ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( "00:1a:4a:01:00:00" ) , org.hamcrest.CoreMatchers.is ( 112910729216L ) ) ; }

Target:
public void testMacToLong ( ) { org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( "00:1a:4a:01:00:00" ) , org.hamcrest.CoreMatchers.is ( 112910729216L ) ) ; }