auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getIpv6AddressOfNetworkReturnsNullWhenThereIsNoNetworkOfGivenName ( ) { nic.setIpv6Address ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.IPV6_ADDRESS ) ; org.junit.Assert.assertThat ( underTest.getIpv6AddressOfNetwork ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.NETWORK_NAME2 ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void getIpv6AddressOfNetworkReturnsNullWhenThereIsNoNetworkOfGivenName ( ) { nic.setIpv6Address ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.IPV6_ADDRESS ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.getIpv6AddressOfNetwork ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.NETWORK_NAME2 ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
public void setSSHKeyFingerprint ( java.lang.String sshKeyFingerprint ) { this . sshKeyFingerprint = sshKeyFingerprint ; }

Target:
public void setSshKeyFingerprint ( java.lang.String sshKeyFingerprint ) { this . sshKeyFingerprint = sshKeyFingerprint ; }
Source:
public static void initEventsHandler ( org.ovirt.engine.ui.frontend.IFrontendEventsHandler eventsHandler ) { org.ovirt.engine.ui.frontend.Frontend.eventsHandler = eventsHandler ; }

Target:
public static void setEventsHandler ( org.ovirt.engine.ui.frontend.IFrontendEventsHandler eventsHandler ) { org.ovirt.engine.ui.frontend.Frontend.eventsHandler = eventsHandler ; }
Source:
public void whenAllHostsAreOverriddenTheyAreNotMismatched ( org.ovirt.engine.core.bll.IsDisplayAddressConsistentInClusterQueryTest.OverriddenConsoleAddress overriddenAddress ) { org.junit.Assert.assertThat ( getQuery ( ) . isDisplayAddressPartiallyOverridden ( overriddenAddress.getAllVds ( ) ) , org.hamcrest.core.Is.is ( false ) ) ; }

Target:
public void whenAllHostsAreOverriddenTheyAreNotMismatched ( org.ovirt.engine.core.bll.IsDisplayAddressConsistentInClusterQueryTest.ConsoleTestAddresses c ) { org.hamcrest.MatcherAssert.assertThat ( getQuery ( ) . isDisplayAddressPartiallyOverridden ( new org.ovirt.engine.core.bll.IsDisplayAddressConsistentInClusterQueryTest.OverriddenConsoleAddress ( c.getNumConsoles ( ) ) . getAllVds ( ) ) , org.hamcrest.core.Is.is ( false ) ) ; }
Source:
public boolean containsKey ( T key ) { return ( get ( key ) ) != null ; }

Target:
public java.lang.String translate ( T key ) ;
Source:
public void checkClientTrusted ( java.security.cert.X509Certificate [ ] certs , java.lang.String authType ) { }

Target:
protected byte [ ] runHttpMethod ( org.ovirt.engine.core.bll.provider.BaseProviderProxy.HttpMethodType httpMethod , java.lang.String contentType , java.lang.String relativeUrl , java.lang.String body ) { org.ovirt.engine.core.bll.provider.BaseProviderProxy.ConnectionWrapper wrapper = createConnection ( relativeUrl ) ; return runHttpMethod ( httpMethod , contentType , relativeUrl , body , wrapper ) ; }
Source:
private void RemoveTemplateFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateCommand.RemoveNetwork ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDAO ( ) . remove ( org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }

Target:
private void RemoveTemplateFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateCommand.RemoveNetwork ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }
Source:
private java.lang.String generateVlanName ( java.lang.String iface ) { return ( iface + "." ) + ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( 100 ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVlan ( java.lang.String baseIfaceName ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.Vlan ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( 100 ) , baseIfaceName ) ; return iface ; }
Source:
private org.ovirt.engine.core.bll.quota.QuotaVdsGroup copyQuotaVdsGroupUsage ( org.ovirt.engine.core.bll.quota.QuotaVdsGroup quotaVdsGroup ) { return new org.ovirt.engine.core.bll.quota.QuotaVdsGroup ( null , null , null , quotaVdsGroup.getVirtualCpu ( ) , quotaVdsGroup.getVirtualCpuUsage ( ) , quotaVdsGroup.getMemSizeMB ( ) , quotaVdsGroup.getMemSizeMBUsage ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.QuotaVdsGroup copyQuotaVdsGroupUsage ( org.ovirt.engine.core.common.businessentities.QuotaVdsGroup quotaVdsGroup ) { return new org.ovirt.engine.core.common.businessentities.QuotaVdsGroup ( null , null , null , quotaVdsGroup.getVirtualCpu ( ) , quotaVdsGroup.getVirtualCpuUsage ( ) , quotaVdsGroup.getMemSizeMB ( ) , quotaVdsGroup.getMemSizeMBUsage ( ) ) ; }
Source:
protected T getOldQos ( ) { if ( ( ( oldQos ) == null ) && ( ( qos ) != null ) ) { oldQos = getQosDao ( ) . get ( qos.getId ( ) ) ; } return oldQos ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult qosExists ( ) { return ( ( qos ) != null ) && ( ( getOldQos ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_QOS_NOT_FOUND ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllHostsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAllHostsQuery.getDbFacade ( ) . getVdsDao ( ) . getAll ( org.ovirt.engine.core.bll.GetAllHostsQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetAllHostsQuery.getParameters ( ) . isFiltered ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllHostsQuery.getQueryReturnValue ( ) . setReturnValue ( vdsDao.getAll ( org.ovirt.engine.core.bll.GetAllHostsQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetAllHostsQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmAndVlanAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) , vmNetwork1 , vlanNetwork ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmAndNonVmAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM , NetworkType.NON_VM ) , vmNetwork1 , nonVmNetwork1 ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notRemovingManagementNetwork ( ) { return isManagementNetwork ( ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , getNetworkNameReplacement ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notRemovingManagementNetwork ( ) { return isManagementNetwork ( ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , getNetworkNameReplacement ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void testGetAllForTemplatesByNetwork ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.VmNetworkInterface > result = dao.getAllForTemplatesByNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertEquals ( existingVmInterface , result.get ( 0 ) ) ; }

Target:
public void testGetAllForTemplatesByNetwork ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.VmNetworkInterface > result = dao.getAllForTemplatesByNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertEquals ( existingTemplateInterface , result.get ( 0 ) ) ; }
Source:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml ) { table.addColumnWithHtmlHeader ( column , headerHtml ) ; tableHeader.addColumnWithHtmlHeader ( column , headerHtml ) ; }

Target:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml ) { table.addColumnWithHtmlHeader ( column , headerHtml ) ; tableHeader.addColumnWithHtmlHeader ( column , headerHtml ) ; }
Source:
public void freeMac ( long mac ) { org.ovirt.engine.core.bll.network.macpoolmanager.Range range = findIncludingRange ( mac ) ; if ( range == null ) { customMacs.remove ( mac ) ; } else { range.freeMac ( mac ) ; } }

Target:
public void freeMac ( long mac ) { org.ovirt.engine.core.bll.network.macpoolmanager.Range range = findIncludingRange ( mac ) ; if ( range == null ) { customMacs.decrease ( mac ) ; } else { range.freeMac ( mac ) ; } }
Source:
private boolean vmDeviceChanged ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType deviceType , boolean deviceEnabled ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > vmDevices = org.ovirt.engine.core.bll.UpdateVmCommand.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getVmId ( ) , deviceType ) ; return deviceEnabled == ( vmDevices.isEmpty ( ) ) ; }

Target:
protected boolean vmDeviceChanged ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType deviceType , boolean deviceEnabled ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceChanged ( vmId , deviceType , deviceEnabled ) ; }
Source:
public void SetupNetworks ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.hosts.HostSetupNetworksModel setupNetworksWindowModel = new org.ovirt.engine.ui.uicommonweb.models.hosts.HostSetupNetworksModel ( this ) ; setWindow ( setupNetworksWindowModel ) ; setupNetworksWindowModel.setEntity ( getEntity ( ) ) ; }

Target:
public void setupNetworks ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.hosts.HostSetupNetworksModel setupNetworksWindowModel = new org.ovirt.engine.ui.uicommonweb.models.hosts.HostSetupNetworksModel ( this ) ; setWindow ( setupNetworksWindowModel ) ; setupNetworksWindowModel.setEntity ( getEntity ( ) ) ; }
Source:
protected abstract boolean RunConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) ;

Target:
protected abstract boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) ;
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > result = dao.getAll ( ) ; assertEquals ( org.ovirt.engine.core.dao.BookmarkDAOTest.BOOKMARK_COUNT , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.BookmarkDAOTest.BOOKMARK_COUNT , result.size ( ) ) ; }
Source:
protected void itemsChanged ( ) { super . itemsChanged ( ) ; ResetIsEmpty ( ) ; UpdatePagingAvailability ( ) ; }

Target:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( ) ; }
Source:
private org.ovirt.engine.core.bll.FenceExecutor createFenceExecutor ( org.ovirt.engine.core.common.businessentities.FenceActionType actionType ) { return new org.ovirt.engine.core.bll.FenceExecutor ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getVds ( ) , actionType , org.ovirt.engine.core.bll.FenceVdsBaseCommand.getParameters ( ) . getFencingPolicy ( ) ) ; }

Target:
protected abstract org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue fenceConcurrently ( java.util.List < org.ovirt.engine.core.common.businessentities.FenceAgent > agents ) ;
Source:
public void removeAllCommandsBeforeDate ( final org.ovirt.engine.core.compat.DateTime cutoff ) { commandsCache.removeAllCommandsBeforeDate ( cutoff ) ; }

Target:
public void removeAllCommandsBeforeDate ( final org.ovirt.engine.core.compat.DateTime cutoff ) { commandsCache.removeAllCommandsBeforeDate ( cutoff ) ; synchronized ( LOCK ) { childHierarchyInitialized = false ; } }
Source:
org.ovirt.engine.core.common.job.Step getStep ( org.ovirt.engine.core.compat.Guid stepId ) ;

Target:
org.ovirt.engine.core.common.job.Step getStep ( org.ovirt.engine.core.compat.Guid stepId , boolean loadSubjectEntities ) ;
Source:
public void setaudit_log_id ( long value ) { this . auditLogId = value ; }

Target:
public void setAuditLogId ( long auditLogId ) { this . auditLogId = auditLogId ; }
Source:
private void mockDAOForQuery ( ) throws java.lang.Exception { org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVmDAO ( ) ) . thenReturn ( vmDAO ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getVmId ( ) ) . thenReturn ( vmId ) ; }

Target:
private void mockDAOForQuery ( ) throws java.lang.Exception { org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVmDao ( ) ) . thenReturn ( vmDAO ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getVmId ( ) ) . thenReturn ( vmId ) ; }
Source:
protected void saveBaseDisk ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.bll.ImportVmCommand.getBaseDiskDao ( ) . save ( disk ) ; }

Target:
protected void saveBaseDisk ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { org.ovirt.engine.core.bll.ImportVmCommand.getBaseDiskDao ( ) . save ( disk ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { invalidVM = newVM ( ) ; validVM = newVM ( ) ; oldHost = newHost ( "RHEL - 6.1 - 1.el6" ) ; newHost1 = newHost ( "RHEL - 7.2 - 1.el7" ) ; newHost2 = newHost ( "RHEL - 7.2 - 1.el7" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { invalidVM = newVM ( ) ; validVM = newVM ( ) ; oldHost = newHost ( "RHEV Hypervisor - 6.1 - 1.el6" ) ; newHost1 = newHost ( "RHEL - 7.2 - 1.el7" ) ; newHost2 = newHost ( "RHEL - 7.2 - 1.el7" ) ; }
Source:
void updateAllInBatch ( java.util.Collection < T > entities ) ;

Target:
void updateAllInBatch ( java.lang.String procedureName , java.util.Collection < T > paramValues , org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > mapper ) ;
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.bll.CommandBase < ? > action , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runAction ( action , true , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( executionContext ) ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.bll.CommandBase < ? > action , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { org.ovirt.engine.core.bll.job.ExecutionHandler.setExecutionContextForTasks ( action.getContext ( ) , executionContext , null ) ; return runAction ( action , true ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMStopTaskVDSCommand.getBroker ( ) . stopTask ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMStopTaskVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HSMStopTaskVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMStopTaskVDSCommand.getBroker ( ) . stopTask ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMStopTaskVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HSMStopTaskVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
protected java.lang.Object [ ] getRawValue ( org.ovirt.engine.core.common.businessentities.Permissions object ) { return new java.lang.Object [ ] { object.getObjectType ( ) , object.getObjectName ( ) } ; }

Target:
protected java.lang.Object [ ] getRawValue ( org.ovirt.engine.core.common.businessentities.Permission object ) { return new java.lang.Object [ ] { object.getObjectType ( ) , object.getObjectName ( ) } ; }
Source:
private org.ovirt.engine.core.common.businessentities.CommandEntity getHostUpgradeInternalCommand ( java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.compat.Guid upgradeCmdId = getHostUpgradeInternalCmdId ( childCmdIds ) ; return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getCommandEntity ( upgradeCmdId ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.CommandEntity getHostUpgradeInternalCommand ( java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.compat.Guid upgradeCmdId = getHostUpgradeInternalCmdId ( childCmdIds ) ; return commandCoordinatorUtil.getCommandEntity ( upgradeCmdId ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( id ) == null ? 0 : id.hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( id ) ; }
Source:
public void networkChanged ( ) { mockVnicProfileNetworkChange ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkChanged ( ) { mockVnicProfileNetworkChange ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkNotChanged ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void removeRepoDomainFileList ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.FileTypeExtension filetype ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "repo_domain_id" , id ) . addValue ( "file_type" , filetype.getValue ( ) ) ; getCallsHandler ( ) . executeModification ( "DeleteRepo_domain_file_list" , parameterSource ) ; }

Target:
public void removeRepoDomainFileList ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.ImageType filetype ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "repo_domain_id" , id ) . addValue ( "file_type" , filetype.getValue ( ) ) ; getCallsHandler ( ) . executeModification ( "DeleteRepo_domain_file_list" , parameterSource ) ; }
Source:
public void setUp ( ) { disk1 = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk2 = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; }

Target:
public void setUp ( ) { disk1 = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk2 = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk3 = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; }
Source:
private java.util.ArrayList < java.lang.String > splitPreserveAllTokens ( java.lang.String str ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( str ) ) { return null ; } return new java.util.ArrayList < java.lang.String > ( java.util.Arrays.asList ( org.apache.commons.lang.StringUtils.splitPreserveAllTokens ( str , org.ovirt.engine.core.dao.DiskImageDAODbFacadeImpl.DiskImageRowMapper.SEPARATOR ) ) ) ; }

Target:
private java.util.ArrayList < java.lang.String > splitPreserveAllTokens ( java.lang.String str ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( str ) ) { return null ; } return new java.util.ArrayList < java.lang.String > ( java.util.Arrays.asList ( org.apache.commons.lang.StringUtils.splitPreserveAllTokens ( str , org.ovirt.engine.core.dao.SEPARATOR ) ) ) ; }
Source:
public void clearStopReason ( org.ovirt.engine.core.compat.Guid vmGuid ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , vmGuid ) ; getCallsHandler ( ) . executeModification ( "ClearStopReason" , parameterSource ) ; }

Target:
public void clearMigratingToVds ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , id ) ; getCallsHandler ( ) . executeModification ( "ClearMigratingToVds" , parameterSource ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup createCluster ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.GlusterServiceSyncJobTest.CLUSTER_ID ) ; cluster.setGlusterService ( true ) ; cluster.setCompatibilityVersion ( Version.v3_3 ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster createCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.GlusterServiceSyncJobTest.CLUSTER_ID ) ; cluster.setGlusterService ( true ) ; cluster.setCompatibilityVersion ( Version.v3_3 ) ; return cluster ; }
Source:
public org.ovirt.engine.api.resource.LabelsResource getLabelsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResource ( asGuid ( id ) , parent.getHostId ( ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.NetworkLabelsResource getNetworkLabelsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResource ( asGuid ( id ) , parent.getHostId ( ) ) ) ; }
Source:
public void onlyInboundPeakPresent ( ) { qos.setInboundPeak ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_MEDIUM ) ; valuesPresentTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_QOS_MISSING_VALUES ) ) ; }

Target:
public void onlyInboundPeakPresent ( ) { qos.setInboundPeak ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_MEDIUM ) ; valuesPresentTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_QOS_MISSING_VALUES ) ) ; }
Source:
private static boolean needToRollback ( int status ) { return ( ( status == ( Status.STATUS_MARKED_ROLLBACK ) ) || ( status == ( Status.STATUS_ROLLEDBACK ) ) ) || ( status == ( Status.STATUS_ROLLING_BACK ) ) ; }

Target:
private static boolean needToRollback ( int status ) { return ( ( status == ( javax.transaction.Status.STATUS_MARKED_ROLLBACK ) ) || ( status == ( javax.transaction.Status.STATUS_ROLLEDBACK ) ) ) || ( status == ( javax.transaction.Status.STATUS_ROLLING_BACK ) ) ; }
Source:
protected void entityChanging ( java.lang.Object newValue , java.lang.Object oldValue ) { super . entityChanging ( newValue , oldValue ) ; entitiesChanged = calculateEntitiesChanged ( newValue , oldValue ) ; }

Target:
protected void entityChanging ( E newValue , E oldValue ) { super . entityChanging ( newValue , oldValue ) ; entitiesChanged = calculateEntitiesChanged ( newValue , oldValue ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult snapshotExists ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { return createSnapshotExistsResult ( ( snapshot != null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult snapshotExists ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { return org.ovirt.engine.core.bll.snapshots.SnapshotsValidator.createSnapshotExistsResult ( ( snapshot != null ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeSnapshotCreate ( java.lang.String volumeName , java.lang.String snapshotName , java.lang.String description , boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionResume ( java.lang.String volumeName , java.lang.String slaveHostName , java.lang.String slaveVolumeName , boolean force ) ;
Source:
public void breakBond ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel bonded : getBonded ( ) ) { bonded.getEntity ( ) . setBondName ( null ) ; } }

Target:
public void breakBond ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel bonded : getBonded ( ) ) { bonded.getIface ( ) . setBondName ( null ) ; } }
Source:
private org.ovirt.engine.ui.uicommonweb.validation.LengthValidation createNameLengthValidation ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( ( this . getBehavior ( ) ) instanceof org.ovirt.engine.ui.uicommonweb.models.vms.TemplateVmModelBehavior ) { return new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( 40 ) ; } return new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( ( org.ovirt.engine.ui.uicommonweb.DataProvider.IsWindowsOsType ( osType ) ? org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.WINDOWS_VM_NAME_MAX_LIMIT : org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NON_WINDOWS_VM_NAME_MAX_LIMIT ) ) ; }

Target:
private org.ovirt.engine.ui.uicommonweb.validation.LengthValidation createNameLengthValidation ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( ( this . getBehavior ( ) ) instanceof org.ovirt.engine.ui.uicommonweb.models.vms.TemplateVmModelBehavior ) { return new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( 40 ) ; } return new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.IsWindowsOsType ( osType ) ? org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.WINDOWS_VM_NAME_MAX_LIMIT : org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NON_WINDOWS_VM_NAME_MAX_LIMIT ) ) ; }
Source:
private static void auditLogExternalSchedulerError ( java.lang.String errorMessage ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; loggable.addCustomValue ( "ErrorMessage" , errorMessage ) ; org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerBrokerObjectBuilder.auditLogDirector.log ( loggable , AuditLogType.EXTERNAL_SCHEDULER_ERROR ) ; }

Target:
private static void auditLogExternalSchedulerError ( java.lang.String errorMessage ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; loggable.addCustomValue ( "ErrorMessage" , errorMessage ) ; org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerBrokerObjectBuilder.auditLogDirector.log ( loggable , AuditLogType.EXTERNAL_SCHEDULER_ERROR ) ; }
Source:
public final void setEventBus ( com.google.gwt.event.shared.EventBus eventBus ) { assert eventBus != null : "EventBus cannot be null" ; assert ( this . eventBus ) == null : "EventBus is already set" ; this . eventBus = eventBus ; registerHandlers ( ) ; }

Target:
protected void setApplicationPlace ( java.lang.String applicationPlace ) { this . applicationPlace = applicationPlace ; }
Source:
public void testGetPluggedForVMFilteredWithPermissionsNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_57 , true , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( "VM should have no disks viewable to the user" , disks.isEmpty ( ) ) ; }

Target:
public void testGetPluggedForVMFilteredWithPermissionsNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_57 , true , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( disks.isEmpty ( ) , "VM should have no disks viewable to the user" ) ; }
Source:
public java.lang.String getCpuId ( java.lang.String name , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.GetVDSVerbDataByCpuName ( name ) ; } return null ; }

Target:
public java.lang.String getCpuId ( java.lang.String name , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.getVDSVerbDataByCpuName ( name ) ; } return null ; }
Source:
protected boolean isPowerManagementLegal ( ) { return IsPowerManagementLegal ( org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getVdsStaticData ( ) , org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroup ( ) . getcompatibility_version ( ) . toString ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.HostValidator getHostValidator ( ) { return new org.ovirt.engine.core.bll.validator.HostValidator ( org.ovirt.engine.core.bll.AddVdsCommand.getDbFacade ( ) , org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getvds ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getGraphicsDevices ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.GRAPHICS , type.name ( ) . toLowerCase ( ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getGraphicsDevices ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.GRAPHICS , type.name ( ) . toLowerCase ( ) ) ; }
Source:
public void cpuIdIsNull ( ) { cpuId = 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 ( "cpuId" ) ; }

Target:
public void cpuIdIsNull ( ) { cpuId = 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 ( "cpuId" ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = getBroker ( ) . vmUpdateDevice ( getParameters ( ) . getVm ( ) . getId ( ) . toString ( ) , initDeviceStructure ( ) ) ; ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = getBroker ( ) . vmUpdateDevice ( getParameters ( ) . getVm ( ) . getId ( ) . toString ( ) , initDeviceStructure ( ) ) ; proceedProxyReturnValue ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { processOldImageFromDb ( ) ; newCinderVolume.setVolumeClassification ( VolumeClassification.Snapshot ) ; addDiskImageToDb ( newCinderVolume , getCompensationContext ( ) , java.lang.Boolean.FALSE ) ; setActionReturnValue ( newCinderVolume ) ; setSucceeded ( true ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { processOldImageFromDb ( ) ; addDiskImageToDb ( newCinderVolume , getCompensationContext ( ) , isStatelessSnapshot ( ) ) ; setActionReturnValue ( newCinderVolume ) ; setSucceeded ( true ) ; return null ; }
Source:
public void testGetObjectIdFromNull ( ) { org.junit.Assert.assertEquals ( "0" , org.ovirt.engine.core.utils.log.LoggedUtils.getObjectId ( null ) ) ; }

Target:
public void testGetObjectIdFromNull ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "0" , org.ovirt.engine.core.utils.log.LoggedUtils.getObjectId ( null ) ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Events: volume.name=" + ( getEntity ( ) . getName ( ) ) ) ) ; super . Search ( ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "Events: volume.name=" + ( getEntity ( ) . getName ( ) ) ) ) ; super . search ( ) ; } }
Source:
private void decreasePendingVms ( ) { decreasePendingVms ( org.ovirt.engine.core.bll.RunVmCommandBase.getVm ( ) . getStaticData ( ) ) ; }

Target:
private void decreasePendingVm ( ) { decreasePendingVm ( org.ovirt.engine.core.bll.RunVmCommandBase.getVm ( ) . getStaticData ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > searchDisk ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getDiskDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > searchDisk ( ) { return genericSearch ( diskDao , true ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . hostHookSubTabLabel ( ) , 3 , ginjector.getSubTabHostHookModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < java.util.Map < java.lang.String , java.lang.String > , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel , org.ovirt.engine.ui.uicommonweb.models.hosts.HostHooksListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.hostHookSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { if ( ( cluster ) == null ) { cluster = getDbFacade ( ) . getClusterDao ( ) . get ( getProfile ( ) . getClusterId ( ) ) ; } return cluster ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { if ( ( cluster ) == null ) { cluster = clusterDao.get ( getProfile ( ) . getClusterId ( ) ) ; } return cluster ; }
Source:
public org.ovirt.engine.core.compat.NGuid getGlusterVolumeId ( ) { return glusterVolumeId ; }

Target:
public org.ovirt.engine.core.compat.NGuid getGlusterVolumeId ( ) { return ( glusterVolumeId ) != null ? glusterVolumeId : org.ovirt.engine.core.compat.Guid.Empty ; }
Source:
private void setOvfUpdateStep ( org.ovirt.engine.core.common.action.ProcessOvfUpdateForStorageDomainCommandParameters.OvfUpdateStep step ) { org.ovirt.engine.core.bll.storage.ovfstore.ProcessOvfUpdateForStorageDomainCommand.getParameters ( ) . setOvfUpdateStep ( step ) ; persistCommand ( org.ovirt.engine.core.bll.storage.ovfstore.ProcessOvfUpdateForStorageDomainCommand.getParameters ( ) . getParentCommand ( ) , true ) ; }

Target:
private void setOvfUpdateStep ( org.ovirt.engine.core.common.action.ProcessOvfUpdateParameters.OvfUpdateStep step ) { org.ovirt.engine.core.bll.storage.ovfstore.ProcessOvfUpdateForStorageDomainCommand.getParameters ( ) . setOvfUpdateStep ( step ) ; persistCommand ( org.ovirt.engine.core.bll.storage.ovfstore.ProcessOvfUpdateForStorageDomainCommand.getParameters ( ) . getParentCommand ( ) , true ) ; }
Source:
public void setPmPassword ( java.lang.String value ) { mVdsStatic.setPmPassword ( value ) ; }

Target:
public void setOnlineCpus ( java.lang.String value ) { this . mVdsDynamic.setOnlineCpus ( value ) ; }
Source:
public boolean getRefreshStatistics ( ) { return this . refresher.getRefreshStatistics ( ) ; }

Target:
public boolean getRefreshStatistics ( ) { if ( ( vmsRefresher ) == null ) { return false ; } return vmsRefresher.getRefreshStatistics ( ) ; }
Source:
public void testUpdate ( ) { existingDomain.setstorage_name ( "UpdatedName" ) ; dao.update ( existingDomain ) ; org.ovirt.engine.core.common.businessentities.StorageDomainStatic after = dao.get ( existingDomain.getId ( ) ) ; org.junit.Assert.assertEquals ( after , existingDomain ) ; }

Target:
public void testUpdate ( ) { existingDomain.setStorageName ( "UpdatedName" ) ; dao.update ( existingDomain ) ; org.ovirt.engine.core.common.businessentities.StorageDomainStatic after = dao.get ( existingDomain.getId ( ) ) ; org.junit.Assert.assertEquals ( after , existingDomain ) ; }
Source:
public void testNotRemovingUsedPoolRecordNotUsed ( ) { macPool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertThat ( macPoolValidator.notRemovingUsedPool ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNotRemovingUsedPoolRecordNotUsed ( ) { macPool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( macPoolValidator.notRemovingUsedPool ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected java.lang.String [ ] getDefaultFileLocations ( ) { return defaultFileLocations ; }

Target:
protected java.lang.String [ ] getDefaultFileLocations ( ) { return new java.lang.String [ ] { new java.io.File ( EngineConfig.DEFAULT_CONFIG_PATH , org.ovirt.engine.core.config.AppConfig.CONFIG_CONF ) . getAbsolutePath ( ) } ; }
Source:
public void testAddGroupWithImplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ":: name=" ) + ( NAMES [ 0 ] ) ) , SearchType.DirectoryGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.AddGroupParameters.class , new java.lang.String [ ] { "GroupToAdd" } , new java.lang.Object [ ] { new org.ovirt.engine.core.common.businessentities.aaa.DbGroup ( getDirectoryGroup ( 0 ) ) } , true , true , GUIDS [ 0 ] , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testAddGroupWithImplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ":: name=" ) + ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES_WITH_NO_DOMAIN [ 0 ] ) ) , SearchType.DirectoryGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.AddGroupParameters.class , new java.lang.String [ ] { "GroupToAdd" } , new java.lang.Object [ ] { new org.ovirt.engine.core.common.businessentities.aaa.DbGroup ( getDirectoryGroup ( 0 ) ) } , true , true , GUIDS [ 0 ] , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }
Source:
java.lang.String rebalanceFileSizeMb ( java.lang.String size ) ;

Target:
java.lang.String percentWithValueInGB ( int percent , int value ) ;
Source:
private void addPermission ( ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( new org.ovirt.engine.core.common.businessentities.Permissions ( org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.DISK_PROFILE_USER.getId ( ) , getProfileId ( ) , org.ovirt.engine.core.common.VdcObjectType.DiskProfile ) ) ; }

Target:
private void addPermission ( ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( new org.ovirt.engine.core.common.businessentities.Permission ( org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.DISK_PROFILE_USER.getId ( ) , getProfileId ( ) , org.ovirt.engine.core.common.VdcObjectType.DiskProfile ) ) ; }
Source:
private static void assertGetVMDeviceByIdTypeAndDeviceFullResult ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices ) { org.junit.Assert.assertEquals ( ( ( "there should only be " + ( org.ovirt.engine.core.dao.VmDeviceDAOTest.TOTAL_DEVICES_FOR_EXISTING_VM ) ) + " disks" ) , org.ovirt.engine.core.dao.VmDeviceDAOTest.TOTAL_DEVICES_FOR_EXISTING_VM , devices.size ( ) ) ; }

Target:
private static void assertGetVMDeviceByIdResult ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices ) { org.junit.Assert.assertEquals ( ( ( "there should only be " + ( org.ovirt.engine.core.dao.VmDeviceDAOTest.TOTAL_DEVICES_FOR_EXISTING_VM ) ) + " devices" ) , org.ovirt.engine.core.dao.VmDeviceDAOTest.TOTAL_DEVICES_FOR_EXISTING_VM , devices.size ( ) ) ; }
Source:
public boolean equals ( java.lang.Object o ) { return ( super . equals ( o ) ) && ( equalValues ( ( ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS ) ( o ) ) ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , inboundAverage , inboundPeak , inboundBurst , outboundAverage , outboundPeak , outboundBurst ) ; }
Source:
public java.lang.String getHibernationVolHandle ( ) { return this . vmDynamic.getHibernationVolHandle ( ) ; }

Target:
public java.lang.String getHibernationVolHandle ( ) { return hibernationVolHandle ; }
Source:
public void validateFailsOnNull ( ) { initTestCommand ( null , null , 0 , 0 , false ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { initTestCommand ( null , null , 0 , 0 , false ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void setaction_type ( org.ovirt.engine.core.common.action.VdcActionType value ) { actionType = value.getValue ( ) ; }

Target:
public void setActionType ( org.ovirt.engine.core.common.action.VdcActionType value ) { actionType = value.getValue ( ) ; }
Source:
private static void checkReturnValueEmpty ( org.ovirt.engine.core.bll.hostdeploy.GetoVirtISOsQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > query ) { java.util.List < org.ovirt.engine.core.compat.RpmVersion > isosList = query.getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.Assert.assertTrue ( isosList.isEmpty ( ) ) ; }

Target:
private static void checkReturnValueEmpty ( org.ovirt.engine.core.bll.hostdeploy.GetoVirtISOsQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > query ) { java.util.List < org.ovirt.engine.core.compat.RpmVersion > isosList = query.getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( isosList.isEmpty ( ) ) ; }
Source:
protected void buildVmNumaProperties ( ) { addNumaSetting ( ) ; }

Target:
private java.lang.String graphicsTypeToLegacyDisplayType ( org.ovirt.engine.core.common.businessentities.GraphicsType graphicsType ) { switch ( graphicsType ) { case SPICE : return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.QXL ; case VNC : return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.VNC ; default : return null ; } }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addCdDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addCdDevice ( vmId , "" ) ; }

Target:
public boolean hasCdDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( getCdDevices ( vmId ) . isEmpty ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > refreshStoragePool ( java.lang.String spUUID , java.lang.String msdUUID , int masterVersion ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > prepareImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID , boolean allowIllegal ) ;
Source:
public void reuseSession ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , sessionId ) ; scheduleKeepAliveHeartbeat ( ) ; } else { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; } }

Target:
private void processSessionIdException ( ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; }
Source:
public void stpWhenNonVmNetwork ( ) throws java.lang.Exception { stpTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) , false , true ) ; }

Target:
public void noStpWhenVmNetwork ( ) throws java.lang.Exception { stpTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , false ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return n.getName ( ) . equals ( iface.getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return org.apache.commons.lang.ObjectUtils.equals ( n.getId ( ) , network.getId ( ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.String retval = org.ovirt.engine.core.searchbackend.StringFormat.format ( "body = '%1$s' , startPos = %2$s , endPos = %3$s, type = %4$s" , mBody , mPos [ 0 ] , mPos [ 1 ] , mType ) ; return retval ; }

Target:
public java.lang.String toString ( ) { java.lang.String retval = org.ovirt.engine.core.compat.StringFormat.format ( "body = '%1$s' , startPos = %2$s , endPos = %3$s, type = %4$s" , mBody , mPos [ 0 ] , mPos [ 1 ] , mType ) ; return retval ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { processSessionIdException ( ) ; }

Target:
public void onSuccess ( java.lang.String result ) { if ( result != null ) { restApiSessionId = result ; processSessionId ( result ) ; } else { processSessionIdException ( ) ; } }
Source:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomain ( int idx ) { org.ovirt.engine.api.model.StorageDomain dom = new org.ovirt.engine.api.model.StorageDomain ( ) ; dom.setId ( GUIDS [ idx ] ) ; dom.setstorage_name ( NAMES [ idx ] ) ; return dom ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomain ( int idx ) { org.ovirt.engine.api.model.StorageDomain dom = new org.ovirt.engine.api.model.StorageDomain ( ) ; dom.setId ( GUIDS [ idx ] ) ; dom.setStorageName ( NAMES [ idx ] ) ; return dom ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getExistingHosts ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAll ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getExistingHosts ( ) { return vdsDao.getAll ( ) ; }