auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void executeQueryCommand ( ) { P params = org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getParameters ( ) ; setReturnValue ( org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getDbFacade ( ) . getVdsGroupDAO ( ) . getClustersWithPermittedAction ( org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getUserID ( ) , params.getActionGroup ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { P params = org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getParameters ( ) ; setReturnValue ( org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getDbFacade ( ) . getVdsGroupDao ( ) . getClustersWithPermittedAction ( org.ovirt.engine.core.bll.GetClustersWithPermittedActionQuery.getUserID ( ) , params.getActionGroup ( ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc fullList ( java.util.List < java.lang.String > vmIds ) ;
Source:
protected void executeCommand ( ) { setReturnValue ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . logoff ( new org.ovirt.engine.core.common.action.LogoutUserParameters ( user.getId ( ) ) ) ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( user.getId ( ) ) ; params.setSessionId ( org.ovirt.engine.core.bll.aaa.LogoutBySessionCommand.getParameters ( ) . getSessionId ( ) ) ; setReturnValue ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . logoff ( params ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.Provider > providers = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( result ) ) ; getExternalProviders ( ) . setItems ( providers ) ; selectExternalProvider ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.Provider > providers = getNonReadOnlyExternalNetworkProviders ( result ) ; getExternalProviders ( ) . setItems ( providers ) ; selectExternalProvider ( ) ; }
Source:
public void testCDAStoragePoolNotUp ( ) { storagePool.setStatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "validate did not fail on a Storage Pool which is not up" , command , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testCDAStoragePoolNotUp ( ) { storagePool.setStatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "validate did not fail on a Storage Pool which is not up" , command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_STATUS_ILLEGAL ) ; }
Source:
public void testGetRelevantVdsGroupQuotaForUserWithoutPrivileges ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForVdsGroup ( FixturesTool.VDS_GROUP_RHEL6_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( "Unprivileged user is not allowed to fetch for quota" , 0 , quotas.size ( ) ) ; }

Target:
public void testGetRelevantVdsGroupQuotaForUserWithoutPrivileges ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForVdsGroup ( FixturesTool.VDS_GROUP_RHEL6_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , true ) ; org.junit.Assert.assertEquals ( "Unprivileged user is not allowed to fetch for quota" , 0 , quotas.size ( ) ) ; }
Source:
public void testGetWithPermissionsUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.get ( existingVds.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithPermissionsUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.get ( existingVds.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
private java.lang.Integer getApplicationMode ( javax.servlet.http.HttpServletRequest request ) { return ( ( java.lang.Integer ) ( runPublicQuery ( VdcQueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ApplicationMode ) , request ) ) ) ; }

Target:
private java.lang.Integer getApplicationMode ( javax.servlet.http.HttpServletRequest request ) { return ( ( java.lang.Integer ) ( runPublicQuery ( VdcQueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ApplicationMode , org.ovirt.engine.core.common.config.Config.DefaultConfigurationVersion ) , request ) ) ) ; }
Source:
private void SearchAllRoles ( ) { setItemsFilter ( null ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
private void searchAdminRoles ( ) { setItemsFilter ( RoleType.ADMIN ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
public void updateStatusAndReasons ( org.ovirt.engine.core.common.businessentities.VdsDynamic host ) { update ( host ) ; }

Target:
public void updateExternalStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.ExternalStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "external_status" , status ) ; getCallsHandler ( ) . executeModification ( "UpdateHostExternalStatus" , parameterSource ) ; }
Source:
protected void EndWithFailure ( ) { endCommand ( ) ; rollbackQuota ( ) ; }

Target:
protected void endWithFailure ( ) { endCommand ( ) ; rollbackQuota ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { onLogin ( loginModel ) ; }

Target:
public void execute ( ) { performBootstrap ( ) ; }
Source:
public void setvm_pid ( java.lang.Integer value ) { this . mVmDynamic.setvm_pid ( value ) ; }

Target:
public void setVmHost ( java.lang.String value ) { this . vmDynamic.setvm_host ( value ) ; }
Source:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value ) { return value.stringValue ( ) ; }

Target:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return value.stringValue ( ) ; }
Source:
public org.ovirt.engine.api.model.VnicPassThrough adapt ( org.ovirt.engine.api.v3.types.V3VnicPassThrough from ) { org.ovirt.engine.api.model.VnicPassThrough to = new org.ovirt.engine.api.model.VnicPassThrough ( ) ; if ( from.isSetMode ( ) ) { to.setMode ( org.ovirt.engine.api.model.VnicPassThroughMode.valueOf ( from.getMode ( ) ) ) ; } return to ; }

Target:
public org.ovirt.engine.api.model.VnicPassThrough adapt ( org.ovirt.engine.api.v3.types.V3VnicPassThrough from ) { org.ovirt.engine.api.model.VnicPassThrough to = new org.ovirt.engine.api.model.VnicPassThrough ( ) ; if ( from.isSetMode ( ) ) { to.setMode ( org.ovirt.engine.api.model.VnicPassThroughMode.fromValue ( from.getMode ( ) ) ) ; } return to ; }
Source:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return getParameters ( ) . getVm ( ) . getId ( ) ; } return super . getVmId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { if ( org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . isImportAsNewEntity ( ) ) { return org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . getVm ( ) . getId ( ) ; } return super . getVmId ( ) ; }
Source:
public static org.jboss.shrinkwrap.api.spec.JavaArchive createDeployment ( ) { return org.jboss.shrinkwrap.api.ShrinkWrap.create ( org.jboss.shrinkwrap.api.spec.JavaArchive.class ) . addClasses ( org.ovirt.engine.core.bll.scheduling.TestDeps.class , org.ovirt.engine.core.bll.scheduling.SchedulingManager.class ) . addAsManifestResource ( EmptyAsset.INSTANCE , org.jboss.shrinkwrap.api.ArchivePaths.create ( "beans.xml" ) ) ; }

Target:
public static org.jboss.shrinkwrap.api.spec.JavaArchive createDeployment ( ) { return org.jboss.shrinkwrap.api.ShrinkWrap.create ( org.jboss.shrinkwrap.api.spec.JavaArchive.class ) . addClasses ( org.ovirt.engine.core.bll.scheduling.CommonTestMocks.class , org.ovirt.engine.core.bll.scheduling.SchedulingManager.class , org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscovery.class , org.ovirt.engine.core.bll.scheduling.BasicMigrationHandler.class ) . addAsManifestResource ( EmptyAsset.INSTANCE , org.jboss.shrinkwrap.api.ArchivePaths.create ( "beans.xml" ) ) ; }
Source:
private void onShutdown ( ) { onPowerAction ( VdcActionType.ShutdownVm , new org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.PowerActionParametersFactory < org.ovirt.engine.core.common.action.VdcActionParametersBase > ( ) { @ java.lang.Override public org.ovirt.engine.core.common.action.VdcActionParametersBase createActionParameters ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.common.action.ShutdownVmParameters ( vm.getId ( ) , true ) ; } } ) ; }

Target:
private void onClone ( ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.CloneVmModel ) ( getWindow ( ) ) ) . onClone ( this , false ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getCommandsWithCallBackEnabled ( ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getCommandsWithCallbackEnabled ( ) ;
Source:
public void setRunOnce ( boolean value ) { runOnce = value ; }

Target:
public boolean isRunOnce ( ) { return vmDynamic.isRunOnce ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( final org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VDS ... hosts ) { return inClusterUpgradeFilterPolicyUnit.filter ( java.util.Arrays.asList ( hosts ) , vm , null , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.scheduling.PerHostMessages.class ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( final org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VDS ... hosts ) { return inClusterUpgradeFilterPolicyUnit.filter ( new org.ovirt.engine.core.common.businessentities.Cluster ( ) , java.util.Arrays.asList ( hosts ) , vm , null , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.scheduling.PerHostMessages.class ) ) ; }
Source:
public static org.ovirt.engine.core.compat.Match Match ( java.lang.String string , java.lang.String pattern ) { return org.ovirt.engine.core.compat.Regex.Match ( string , pattern , 0 ) ; }

Target:
public static org.ovirt.engine.core.compat.Match match ( java.lang.String string , java.lang.String pattern ) { return org.ovirt.engine.core.compat.Regex.match ( string , pattern , 0 ) ; }
Source:
public void setVmBalloonInfo ( org.ovirt.engine.core.common.businessentities.VmBalloonInfo vmBalloonInfo ) { this . vmBalloonInfo = vmBalloonInfo ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData setVmBalloonInfo ( org.ovirt.engine.core.common.businessentities.VmBalloonInfo vmBalloonInfo ) { this . vmBalloonInfo = vmBalloonInfo ; return this ; }
Source:
protected void enableDisableByBootProtocol ( org.ovirt.engine.ui.uicommonweb.models.hosts.NetworkAttachmentModel model ) { boolean bootProtocolsAvailable = model.getBootProtocolsAvailable ( ) ; ipv4BootProtocolLabel.setEnabled ( bootProtocolsAvailable ) ; ipv4BootProtocol.setEnabled ( bootProtocolsAvailable ) ; ipv4BootProtocol.setEnabled ( NetworkBootProtocol.NONE , model.getNoneBootProtocolAvailable ( ) ) ; }

Target:
protected void enableDisableByBootProtocol ( org.ovirt.engine.ui.uicommonweb.models.hosts.NetworkAttachmentModel model ) { boolean bootProtocolsAvailable = model.getBootProtocolsAvailable ( ) ; ipv4BootProtocolLabel.setEnabled ( bootProtocolsAvailable ) ; ipv4BootProtocol.setEnabled ( bootProtocolsAvailable ) ; ipv4BootProtocol.setEnabled ( Ipv4BootProtocol.NONE , model.getNoneBootProtocolAvailable ( ) ) ; }
Source:
public int getnum_of_sockets ( ) { return this . mVmStatic.getnum_of_sockets ( ) ; }

Target:
public int getCpuPerSocket ( ) { return this . vmStatic.getCpuPerSocket ( ) ; }
Source:
java.lang.String noActiveStorageDomains ( ) ;

Target:
java.lang.String lunAlreadyPartOfStorageDomainWarning ( java.lang.String storageDomainName ) ;
Source:
private void logFailureToRestartVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase event = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; event.setVmId ( vmId ) ; auditLogDirector.log ( event , getExceededMaxNumOfRestartsAuditLogType ( ) ) ; }

Target:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable createVmEvent ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable event = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl ( ) ; event.setVmId ( vmId ) ; event.setVmName ( resourceManager.getVmManager ( vmId ) . getName ( ) ) ; return event ; }
Source:
public void Cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; CancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; UpdateActionAvailability ( ) ; }

Target:
public void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }
Source:
public void spiceSelected ( boolean selected ) { rdpPanel.setVisible ( selected ) ; }

Target:
public void rdpSelected ( boolean selected ) { rdpPanel.setVisible ( selected ) ; }
Source:
protected boolean RemoveVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid vmID , org.ovirt.engine.core.compat.Guid storageDomainId ) { return runVdsCommand ( VDSCommandType.RemoveVM , new org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters ( storagePoolId , vmID , storageDomainId ) ) . getSucceeded ( ) ; }

Target:
protected boolean removeVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid vmID , org.ovirt.engine.core.compat.Guid storageDomainId ) { return runVdsCommand ( VDSCommandType.RemoveVM , new org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters ( storagePoolId , vmID , storageDomainId ) ) . getSucceeded ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Provider < ? > generateNewEntity ( ) { org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > provider = new org.ovirt.engine.core.common.businessentities.Provider ( ) ; provider.setId ( generateNonExistingId ( ) ) ; provider.setName ( "brovider" ) ; provider.setUrl ( "http://brovider.com/" ) ; provider.setType ( ProviderType.OPENSTACK_NETWORK ) ; org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties additionalProperties = new org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties ( ) ; additionalProperties.setReadOnly ( java.lang.Boolean.FALSE ) ; additionalProperties.setTenantName ( "10ant" ) ; additionalProperties.setPluginType ( OpenstackNetworkPluginType.LINUX_BRIDGE.name ( ) ) ; provider.setAdditionalProperties ( additionalProperties ) ; provider.setAuthUrl ( "http://keystone-server:35357/v2.0/" ) ; return provider ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Provider < ? > generateNewEntity ( ) { org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > provider = new org.ovirt.engine.core.common.businessentities.Provider ( ) ; provider.setId ( generateNonExistingId ( ) ) ; provider.setName ( "brovider" ) ; provider.setUrl ( "http://brovider.com/" ) ; provider.setType ( ProviderType.OPENSTACK_NETWORK ) ; org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties additionalProperties = new org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties ( ) ; additionalProperties.setReadOnly ( java.lang.Boolean.FALSE ) ; additionalProperties.setTenantName ( "10ant" ) ; additionalProperties.setPluginType ( OpenstackNetworkPluginType.OPEN_VSWITCH.name ( ) ) ; provider.setAdditionalProperties ( additionalProperties ) ; provider.setAuthUrl ( "http://keystone-server:35357/v2.0/" ) ; return provider ; }
Source:
private void loadProviders ( ) { switch ( importSources.getSelectedItem ( ) ) { case VMWARE : loadVmwareProviders ( ) ; break ; default : } }

Target:
private void loadProviders ( ) { switch ( importSources.getSelectedItem ( ) ) { case VMWARE : loadVmwareProviders ( ) ; break ; case KVM : loadKvmProviders ( ) ; break ; default : } }
Source:
private org.ovirt.engine.core.common.businessentities.VM readVmFromOvf ( java.lang.String ovf ) { try { return new org.ovirt.engine.core.bll.OvfHelper ( ) . readVmFromOvf ( ovf ) ; } catch ( org.ovirt.engine.core.utils.ovf.OvfReaderException e ) { log.debug ( ( "failed to parse a given ovf configuration: \n" + ovf ) , e ) ; convertFailed ( ) ; return null ; } }

Target:
private void clearProgress ( ) { updateProgress ( null , ( - 1 ) ) ; }
Source:
public void testCDANonExistingVds ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vdsDAOMock ) . get ( vdsId ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail for non existing VDS" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessages ( command , VdcBllMessages.VDS_NOT_EXIST ) ; }

Target:
public void testCDANonExistingVds ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vdsDAOMock ) . get ( vdsId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail for non existing VDS" , command , VdcBllMessages.VDS_NOT_EXIST ) ; }
Source:
public void testAddIpv4BootProtocolWithNoAddressSet ( ) { final java.util.Map < java.lang.String , java.lang.Object > opts = new java.util.HashMap < > ( ) ; underTest.addIpv4BootProtocol ( opts , mockHostNetwork ) ; org.junit.Assert.assertTrue ( opts.isEmpty ( ) ) ; }

Target:
public void testAddIpv4BootProtocolWithNoAddressSet ( ) { final java.util.Map < java.lang.String , java.lang.Object > opts = new java.util.HashMap < > ( ) ; underTest.addIpv4BootProtocol ( opts , mockHostNetwork ) ; org.junit.jupiter.api.Assertions.assertTrue ( opts.isEmpty ( ) ) ; }
Source:
protected java.lang.String getDefaultDomain ( ) { return org.ovirt.engine.core.aaa.DirectoryManager.getInstance ( ) . getDirectories ( ) . get ( 0 ) . getName ( ) ; }

Target:
protected java.lang.String getDefaultDomain ( ) { return org.ovirt.engine.core.aaa.AuthenticationProfileRepository.getInstance ( ) . getProfiles ( ) . get ( 0 ) . getDirectory ( ) . getName ( ) ; }
Source:
private void setTooltipText ( java.lang.String text ) { tooltip.setText ( ( useItalic ? wrapItalic ( text ) : text ) ) ; }

Target:
public void setText ( com.google.gwt.safehtml.shared.SafeHtml text ) { tooltip.setHtml ( ( useItalic ? wrapItalic ( text ) : text ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockFirstStorageDomain ( int availabeDiskSize ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setavailable_disk_size ( availabeDiskSize ) ; storageDomain.setstatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( firstStorageDomainId ) ; storageDomain.setstorage_domain_type ( StorageDomainType.Data ) ; return storageDomain ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockFirstStorageDomain ( int availabeDiskSize ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setAvailableDiskSize ( availabeDiskSize ) ; storageDomain.setStatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( firstStorageDomainId ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; return storageDomain ; }
Source:
public void clearSession ( ) { container.removeSession ( ) ; container.removeSession ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( null ) ; }

Target:
public void clearSession ( ) { container.removeSessionOnLogout ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; }
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.storage.DiskImage > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }
Source:
static org.ovirt.engine.core.common.businessentities.VmNetworkInterface setUpEntityExpectations ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , org.ovirt.engine.core.common.businessentities.VmNetworkStatistics statistics , int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNicsResourceTest.setUpEntityExpectations ( entity , statistics , index , NAMES [ 2 ] ) ; }

Target:
static org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface setUpEntityExpectations ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics statistics , int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNicsResourceTest.setUpEntityExpectations ( entity , statistics , index , NAMES [ 2 ] ) ; }
Source:
public void testUrlWithFilterByTypes ( ) { org.ovirt.engine.core.common.queries.ErrataFilter errataFilter = new org.ovirt.engine.core.common.queries.ErrataFilter ( ) ; errataFilter.setErrataTypes ( java.util.EnumSet.of ( Erratum.ErrataType.BUGFIX , Erratum.ErrataType.SECURITY ) ) ; org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = createFilteredErrataRelativeUrlBuilder ( errataFilter ) ; org.junit.Assert.assertEquals ( "/katello/api/v2/systems/xxx/errata?search=type+%3D+bugfix+or+type+%3D+security" , underTest.build ( ) ) ; }

Target:
public void testUrlWithFilterByTypes ( ) { org.ovirt.engine.core.common.queries.ErrataFilter errataFilter = new org.ovirt.engine.core.common.queries.ErrataFilter ( ) ; errataFilter.setErrataTypes ( java.util.EnumSet.of ( Erratum.ErrataType.BUGFIX , Erratum.ErrataType.SECURITY ) ) ; org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = createFilteredErrataRelativeUrlBuilder ( errataFilter ) ; org.junit.jupiter.api.Assertions.assertEquals ( "/katello/api/v2/systems/xxx/errata?search=type+%3D+bugfix+or+type+%3D+security" , underTest.build ( ) ) ; }
Source:
protected abstract void setValueByKey ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueLineModel lineModel , java.lang.String key ) ;

Target:
protected abstract java.util.List < M > createLineModels ( java.util.Set < java.lang.String > usedKeys ) ;
Source:
public void setDisks ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > value ) { if ( ( disks ) != value ) { disks = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Disks" ) ) ; } }

Target:
public void setDisks ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > value ) { if ( ( disks ) != value ) { disks = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; } }
Source:
protected javax.ws.rs.core.Response doAction ( final org.ovirt.engine.core.common.action.VdcActionType task , final org.ovirt.engine.core.common.action.VdcActionParametersBase params , final org.ovirt.engine.api.model.Action action ) { return doAction ( task , params , action , PollingType.VDSM_TASKS ) ; }

Target:
protected javax.ws.rs.core.Response doAction ( final org.ovirt.engine.core.common.action.ActionType task , final org.ovirt.engine.core.common.action.VdcActionParametersBase params , final org.ovirt.engine.api.model.Action action ) { return doAction ( task , params , action , PollingType.VDSM_TASKS ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllForHost ( java.lang.String host ) { return getCallsHandler ( ) . executeReadList ( "GetVdsStaticByHostName" , new org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "host_name" , host ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByHostName ( java.lang.String host ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByHostName" , new org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "host_name" , host ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_server_connections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage_server_connections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getstorage ( ) ) } ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageServerConnections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getstorage ( ) ) } ) ) ; }
Source:
public void setLabelStyleName ( java.lang.String styleName ) { labelElement.setClassName ( styleName ) ; }

Target:
public void addLabelStyleName ( java.lang.String styleName ) { getLabelElement ( ) . addClassName ( styleName ) ; }
Source:
public org.ovirt.engine.api.restapi.rsdl.RsdlBuilder.LinkBuilder requestParameter ( final java.lang.String requestParameter ) { link.setRequest ( new org.ovirt.engine.api.model.Request ( ) ) ; link.getRequest ( ) . setBody ( new org.ovirt.engine.api.model.Body ( ) { { setType ( requestParameter ) ; } } ) ; return this ; }

Target:
public org.ovirt.engine.api.restapi.rsdl.RsdlBuilder.LinkBuilder requestParameter ( final java.lang.String requestParameter ) { org.ovirt.engine.api.model.Body body = new org.ovirt.engine.api.model.Body ( ) ; body.setType ( requestParameter ) ; org.ovirt.engine.api.model.Request request = new org.ovirt.engine.api.model.Request ( ) ; request.setBody ( body ) ; link.setRequest ( request ) ; return this ; }
Source:
public java.lang.String render ( java.util.Date object ) { if ( object == null ) { return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.CONSTANTS.notAvailableLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( object ) ; }

Target:
public java.lang.String render ( java.util.Date object ) { if ( object == null ) { return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.constants.notAvailableLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( object ) ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase createActionParameters ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.common.action.StopVmParameters ( vm.getId ( ) , org.ovirt.engine.core.common.action.StopVmTypeEnum.NORMAL , model.getReason ( ) . getEntity ( ) ) ; }
Source:
private void setSupportedFeatures ( ) { networkCustomPropertiesSupported = org.ovirt.engine.core.common.FeatureSupported.networkCustomProperties ( host.getVdsGroupCompatibilityVersion ( ) ) ; }

Target:
private void setSupportedFeatures ( ) { org.ovirt.engine.core.compat.Version clusterCompatibilityVersion = host.getVdsGroupCompatibilityVersion ( ) ; networkCustomPropertiesSupported = org.ovirt.engine.core.common.FeatureSupported.networkCustomProperties ( clusterCompatibilityVersion ) ; hostNetworkQosSupported = org.ovirt.engine.core.common.FeatureSupported.hostNetworkQos ( clusterCompatibilityVersion ) ; }
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 ) ) ; }

Target:
private boolean isTypeTenantOrAuthUrlAware ( ) { 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 ) ) ; }
Source:
public void setup ( ) { initAgents ( ) ; mockDbFacades ( ) ; initCommand ( ) ; mockBackend ( ) ; }

Target:
public void setup ( ) { dbFacade = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; initAgents ( ) ; mockDbFacades ( ) ; initCommand ( ) ; mockBackend ( ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand.getBroker ( ) . snapshot ( org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) , createSnapshotParameters ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = executeSnapshotVerb ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand.ProceedProxyReturnValue ( ) ; }
Source:
private org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) , getClusterVersion ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator ( interfaceDao , networkDao , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) , getClusterVersion ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.VmValidator getVmValidator ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.bll.validator.VmValidator ( vm ) ; }

Target:
private org.ovirt.engine.core.common.action.CreateAllSnapshotsFromVmParameters buildCreateSnapshotParametersForEndAction ( ) { org.ovirt.engine.core.common.action.CreateAllSnapshotsFromVmParameters parameters = buildCreateSnapshotParameters ( ) ; parameters.setImagesParameters ( org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) . getImagesParameters ( ) ) ; return parameters ; }
Source:
public void checkExecuteCommandWithNullVdsId ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; parameters.setVdsId ( null ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( command , org.mockito.Mockito.never ( ) ) . disconnectStorage ( ) ; }

Target:
public void checkExecuteCommandWithVdsId ( ) { parameters.setStorageServerConnection ( org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommandTest.NFSConnection ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . disconnectStorage ( ) ; command.executeCommand ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomainType getEnum ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { return storage.getstorage_domain_type ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainType getEnum ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { return storage.getStorageDomainType ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkPrefixValid ( ) { return network.getName ( ) . toLowerCase ( ) . startsWith ( "bond" ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_CANNOT_CONTAIN_BOND_NAME ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkPrefixValid ( ) { return network.getName ( ) . toLowerCase ( ) . startsWith ( "bond" ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_CONTAIN_BOND_NAME ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private boolean isSameSourceAndDest ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters ) { org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain = getImageSourceDomain ( parameters.getImageId ( ) ) ; if ( sourceDomain.getId ( ) . equals ( parameters.getTargetStorageDomainId ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_SOURCE_AND_TARGET_SAME ) ; } return true ; }

Target:
private boolean isSameSourceAndDest ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters ) { if ( parameters.getSourceStorageDomainId ( ) . equals ( parameters.getTargetStorageDomainId ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_SOURCE_AND_TARGET_SAME ) ; } return true ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return result.mStatus ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return result.getXmlRpcStatus ( ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return org.ovirt.engine.core.bll.storage.StorageHelperDirector.getInstance ( ) . getItem ( storageDomain.getStorageType ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.connection.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return org.ovirt.engine.core.bll.storage.connection.StorageHelperDirector.getInstance ( ) . getItem ( storageDomain.getStorageType ( ) ) ; }
Source:
public void persistCommandWithContext ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , getContext ( ) , enableCallBack ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallback ) { persistCommand ( parentCommand , getContext ( ) , enableCallback ) ; }
Source:
public void testNotContainsUnregisteredEntities ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_DOMAIN_ID ) ; org.junit.Assert.assertFalse ( storageDomain.isContainsUnregisteredEntities ( ) ) ; }

Target:
public void testNotContainsUnregisteredEntities ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = dao.get ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 ) ; org.junit.Assert.assertFalse ( storageDomain.isContainsUnregisteredEntities ( ) ) ; }
Source:
public void validateVmMemoryCanStartOnVds ( ) { boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCanStartOnVds ( ) { boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
private void _setCliEnvironmentIfNecessary ( java.lang.String name , java.lang.Object value ) throws java.io.IOException { if ( value == null ) { _deploy.getParser ( ) . cliNoop ( ) ; } else { _deploy.getParser ( ) . cliEnvironmentSet ( name , value ) ; } }

Target:
private void setCliEnvironmentIfNecessary ( java.lang.String name , java.lang.Object value ) throws java.io.IOException { if ( value == null ) { _deploy.getParser ( ) . cliNoop ( ) ; } else { _deploy.getParser ( ) . cliEnvironmentSet ( name , value ) ; } }
Source:
public void saveAll ( java.util.Collection < T > entities ) { for ( T entity : entities ) { org.ovirt.engine.core.dao.MassOperationsGenericDao.save ( entity ) ; } }

Target:
public void saveAll ( java.util.Collection < T > entities ) { entities.forEach ( this :: save ) ; }
Source:
private boolean wasQuotaEnforcementDisabled ( ) { return ( ( _oldStoragePool.getQuotaEnforcementType ( ) ) != ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum.DISABLED ) ) && ( ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePool ( ) . getQuotaEnforcementType ( ) ) == ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum.DISABLED ) ) ; }

Target:
private boolean wasQuotaEnforcementChanged ( ) { return ( _oldStoragePool.getQuotaEnforcementType ( ) ) != ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePool ( ) . getQuotaEnforcementType ( ) ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.api.model.NIC nic = get ( ) ; nic.setPlugged ( false ) ; update ( nic ) ; return actionSuccess ( action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.api.model.Nic nic = get ( ) ; nic.setPlugged ( false ) ; update ( nic ) ; return actionSuccess ( action ) ; }
Source:
public void testAddValueNull ( ) { paramSource.addValue ( paramName , null ) ; org.junit.Assert.assertNull ( "wrong value returned from parameter source" , paramSource.getValue ( paramName ) ) ; }

Target:
public void testAddValuePrimitive ( ) { int paramValue = this . random.nextInt ( ) ; paramSource.addValue ( paramName , paramValue ) ; org.junit.jupiter.api.Assertions.assertEquals ( paramValue , paramSource.getValue ( paramName ) , "wrong value returned from parameter source" ) ; }
Source:
public void labelAppearsOnlyOnceInParamsInBothLabelsAndRemoveLabels ( ) { org.ovirt.engine.core.common.action.HostSetupNetworksParameters params = setLabelsOnParams ( createSet ( createNicLabel ( "lbl1" ) ) , createSet ( "lbl1" ) ) ; asserThatLabelAppearsOnlyOnceInParamsFailed ( createNicLabelValidator ( params ) , new java.util.HashSet < java.lang.String > ( java.util.Arrays.asList ( "lbl1" ) ) ) ; }

Target:
public void labelAppearsOnlyOnceInParamsInBothLabelsAndRemoveLabels ( ) { org.ovirt.engine.core.common.action.HostSetupNetworksParameters params = setLabelsOnParams ( createSet ( createNicLabel ( "lbl1" ) ) , createSet ( "lbl1" ) ) ; asserThatLabelAppearsOnlyOnceInParamsFailed ( createNicLabelValidator ( params ) , new java.util.HashSet < > ( java.util.Collections.singletonList ( "lbl1" ) ) ) ; }
Source:
public void nameExists ( ) { newPoolNameIsAlreadyTaken ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NAME_ALREADY_EXIST ) ; }

Target:
public void nameExists ( ) { newPoolNameIsAlreadyTaken ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NAME_ALREADY_EXIST ) ; }
Source:
protected java.lang.String defaultImageName ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { return ( "otherOs" + ( nameUniquePart ) ) + ( org.ovirt.engine.ui.userportal.widget.basic.OsTypeImage.IMAGE ) ; }

Target:
protected java.lang.String defaultImageName ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { return ( "OtherOs" + ( nameUniquePart ) ) + ( org.ovirt.engine.ui.userportal.widget.basic.OsTypeImage.IMAGE ) ; }
Source:
public java.lang.Boolean getRawValue ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { return object.isPortMirroring ( ) ; }

Target:
public void setInSlot ( java.lang.Object slot , com.google.gwt.user.client.ui.IsWidget content ) { if ( slot == ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.TYPE_SetActionPanel ) ) { getContainer ( ) . insert ( content , 0 ) ; } else { super . setInSlot ( slot , content ) ; } }
Source:
public void updateNetConfigDirty ( org.ovirt.engine.core.compat.Guid id , java.lang.Boolean netConfigDirty ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setNetConfigDirty ( netConfigDirty ) ; update ( entity ) ; }

Target:
public void updateVdsDynamicPowerManagementPolicyFlag ( org.ovirt.engine.core.compat.Guid id , boolean controlledByPmPolicy ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) . addValue ( "controlled_by_pm_policy" , controlledByPmPolicy ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicPowerManagementPolicyFlag" , parameterSource ) ; }
Source:
public void testDatacenter ( ) { testValidSql ( "DataCenter: sortby name" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool ) ORDER BY name,name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "DataCenter: Clusters.name =Default" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool LEFT OUTER JOIN vds_groups_storage_domain ON storage_pool.id=vds_groups_storage_domain.storage_pool_id WHERE vds_groups_storage_domain.name LIKE Default ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testCluster ( ) { testValidSql ( "Cluster: " , "SELECT * FROM ((SELECT distinct cluster_view.* FROM cluster_view ) ORDER BY name ASC) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Cluster: storage.name = 111" , "SELECT * FROM (SELECT * FROM cluster_view WHERE ( cluster_id IN (SELECT distinct clusters_storage_domain.cluster_id FROM clusters_storage_domain LEFT OUTER JOIN storage_domains_with_hosts_view ON clusters_storage_domain.storage_id=storage_domains_with_hosts_view.id WHERE storage_domains_with_hosts_view.storage_name LIKE 111 )) ORDER BY name ASC) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
protected R populate ( R model , Q entity ) { return model ; }

Target:
protected R deprecatedPopulate ( R model , Q entity ) { return model ; }
Source:
protected void setVds ( final org.ovirt.engine.core.common.businessentities.VDS value ) { mVds = value ; mVdsName = null ; }

Target:
public void setVds ( final org.ovirt.engine.core.common.businessentities.VDS value ) { mVds = value ; mVdsName = null ; if ( value != null ) { mVdsId = value.getId ( ) ; } }
Source:
public org.ovirt.api.metamodel.tool.JavaClassName getBuilderName ( org.ovirt.api.metamodel.concepts.Type type ) { return getTypeName ( type , javaPackages.getBuildersPackageName ( ) , org.ovirt.api.metamodel.tool.PlainJavaTypes.BUILDER_SUFFIX ) ; }

Target:
public org.ovirt.api.metamodel.tool.JavaClassName getBuilderName ( org.ovirt.api.metamodel.concepts.Type type ) { return getTypeName ( type , javaPackages.getBuildersPackageName ( ) , null , org.ovirt.api.metamodel.tool.PlainJavaTypes.BUILDER_NAME ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment entity ) { verifyRelationWithHostNetworkQos ( entity ) ; verifyUnsetStoragePoolIdAndNameOnQos ( entity ) ; super . save ( entity ) ; hostNetworkQosDao.save ( entity.getHostNetworkQos ( ) ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment entity ) { verifyRelationWithHostNetworkQos ( entity ) ; verifyUnsetStoragePoolIdAndNameOnQos ( entity ) ; persistQosChanges ( entity ) ; super . save ( entity ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > validateStorageServerConnection ( int serverType , java.lang.String spUUID , java.util.Map < java.lang.String , java.lang.String > [ ] args ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterServicesGet ( java.lang.String [ ] serviceNames ) ;
Source:
public void testEvalNegative ( ) { org.mockito.Mockito.when ( mockNetwork.isExternal ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertFalse ( underTest.test ( mockNetwork ) ) ; }

Target:
public void testEvalNegative ( ) { org.mockito.Mockito.when ( mockNetwork.isExternal ( ) ) . thenReturn ( false ) ; org.junit.jupiter.api.Assertions.assertFalse ( underTest.test ( mockNetwork ) ) ; }
Source:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml ) { addColumn ( column , createHeader ( column , headerHtml , true ) ) ; }

Target:
public void addColumnAndSetWidth ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.user.cellview.client.Header < ? > header , java.lang.String width ) { addColumn ( column , header ) ; setColumnWidth ( column , width ) ; }