auphong2707/dl4se-code-review-dataset huggingface dataset:
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.VmGuestAgentInterface > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( ) ; } return source ; }
Source:
private org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ... hostInterfaces ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister ( networkAttachmentDao , hostId , new java.util.ArrayList ( java.util.Arrays.asList ( hostInterfaces ) ) , userNetworkAttachments , clusterNetworks ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments , java.util.Set < org.ovirt.engine.core.compat.Guid > removedNetworkAttachments , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ... hostInterfaces ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister ( networkAttachmentDao , hostId , new java.util.ArrayList ( java.util.Arrays.asList ( hostInterfaces ) ) , userNetworkAttachments , removedNetworkAttachments , clusterNetworks ) ; }
Source:
public void nicSriovEnabled ( ) { simulateNicExists ( ) ; org.junit.Assert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nicSriovEnabled ( ) { simulateNicExists ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setUnmanagedDeviceList ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > list ) { this . vmUnManagedDeviceList = list ; }

Target:
public int getNumOfCpus ( ) { return ( this . getCpuPerSocket ( ) ) * ( this . getNumOfSockets ( ) ) ; }
Source:
public void setGuestLastLogoutTime ( java.util.Date value ) { this . guestLastLogoutTime = value ; }

Target:
public void setGraphicsInfos ( java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsInfo > graphicsInfos ) { this . graphicsInfos = graphicsInfos ; }
Source:
private void handleCanDoActionFailure ( ) { org.ovirt.engine.core.bll.RemoveSnapshotCommand.getReturnValue ( ) . setCanDoAction ( false ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__SNAPSHOT ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__SNAPSHOT ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; }
Source:
public void testAdjustLegacySecureChannelsWithNullChannels ( ) { java.lang.String legacyChannels = null ; java.lang.String correctChannels = null ; org.junit.Assert.assertEquals ( correctChannels , org.ovirt.engine.core.common.console.ConsoleOptions.adjustLegacySecureChannels ( legacyChannels ) ) ; }

Target:
public void testAdjustLegacySecureChannelsWithNullChannels ( ) { java.lang.String legacyChannels = null ; java.lang.String correctChannels = null ; org.junit.jupiter.api.Assertions.assertEquals ( correctChannels , org.ovirt.engine.core.common.console.ConsoleOptions.adjustLegacySecureChannels ( legacyChannels ) ) ; }
Source:
public org.ovirt.engine.api.resource.NetworkFiltersResource getNetworkFiltersResource ( ) { return null ; }

Target:
public org.ovirt.engine.api.resource.NetworkFiltersResource getNetworkFiltersResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendNetworkFiltersResource ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ErrataData getErrataForHost ( java.lang.String hostName , org.ovirt.engine.core.common.queries.ErrataFilter errataFilter ) { return new org.ovirt.engine.core.bll.host.provider.foreman.KatelloV21Provider ( this ) . getErrataForHost ( hostName , errataFilter ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.ErrataData getErrataForHost ( java.lang.String hostName , org.ovirt.engine.core.common.queries.ErrataFilter errataFilter ) { return getContentHostProvider ( ) . getErrataForHost ( hostName , errataFilter ) ; }
Source:
public static void GetHostList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetHostListByStatus ( aQuery , null ) ; }

Target:
public static void GetWatchdogByVmId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }
Source:
protected void executeCommand ( ) { createJob ( VdcActionType.AddExternalJob , true ) ; }

Target:
protected void executeCommand ( ) { createJob ( ActionType.AddExternalJob , true ) ; }
Source:
public boolean checkIfCpusExist ( java.lang.String cpuName , 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.checkIfCpusExist ( cpuName ) ; } return false ; }

Target:
public boolean checkIfCpusExist ( java.lang.String cpuName , 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 ) ; return cpuFlagsManager != null ? cpuFlagsManager.checkIfCpusExist ( cpuName ) : false ; }
Source:
public void setAdditionalConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( additionalConsoleModel ) != value ) { additionalConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AdditionalConsoleModel" ) ) ; } }

Target:
private boolean isConsoleCommandsExecutionAllowed ( ) { org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol = consoleUtils.determineConnectionProtocol ( this ) ; return consoleUtils.canShowConsole ( protocol , this ) ; }
Source:
protected boolean failPassthroughVnicHotPlug ( ) { if ( ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pciPassthrough ) == ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.forValue ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) . getType ( ) ) ) ) { addCanDoActionMessage ( EngineMessage.HOT_PLUG_UNPLUG_PASSTHROUGH_VNIC_NOT_SUPPORTED ) ; return true ; } return false ; }

Target:
private boolean isPassthrough ( ) { return ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pciPassthrough ) == ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.forValue ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) . getType ( ) ) ) ; }
Source:
public void setDataCenterName ( java.lang.String name ) { messageLabel.setText ( messages.theNetworkWillBeAddedToTheDataCenterAsWell ( name ) ) ; }

Target:
public void setDataCenterName ( java.lang.String name ) { messageLabel.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.cluster.NewClusterNetworkPopupView.messages.theNetworkWillBeAddedToTheDataCenterAsWell ( name ) ) ; }
Source:
public void nonInternalLockedDisallowed ( ) { testExecution ( StorageDomainStatus.Locked ) ; canDoActionFails ( ) ; hasIllegalStatusMessage ( ) ; }

Target:
public void nonInternalLockedDisallowed ( ) { testExecution ( StorageDomainStatus.Locked ) ; canDoActionFails ( ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.CinderDisk getCinderDisk ( ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommand.getDisk ( ) ) ) ; }

Target:
protected java.lang.String getDiskAlias ( ) { if ( ( getDisk ( ) ) != null ) { return getDisk ( ) . getDiskAlias ( ) ; } return org.apache.commons.lang.StringUtils.EMPTY ; }
Source:
private void refreshVDSM ( org.ovirt.engine.api.model.StorageDomain incoming ) { getEntity ( java.lang.Object.class , VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( getHostId ( incoming ) , org.ovirt.engine.core.common.businessentities.StorageType.ISCSI ) , "" ) ; }

Target:
private void refreshVDSM ( org.ovirt.engine.api.model.StorageDomain incoming ) { getEntity ( java.lang.Object.class , VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( getHostId ( incoming ) , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI ) , "" ) ; }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; log.error ( "Disk has been successfully added to Cinder. ID: {}" , getDiskId ( ) ) ; getCommand ( ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; log.info ( "Disk has been successfully added to Cinder. ID: {}" , getDiskId ( ) ) ; getCommand ( ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }
Source:
private boolean isVmRunning ( ) { switch ( getEntity ( ) . getStatus ( ) ) { case PoweringUp : case Up : case RebootInProgress : case PoweringDown : case Paused : return true ; default : return false ; } }

Target:
public boolean canConnect ( ) { if ( ! ( canBeSelected ( ) ) ) { return false ; } return getForceVmStatusUp ( ) ? ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) : getEntity ( ) . isQualifiedForConsoleConnect ( ) ; }
Source:
protected void failedToMigrate ( ) { try { determineMigrationFailureForAuditLog ( ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmCommand.log ( ) ; failedToRunVm ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
private int getMaximumMigrationDowntime ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getMigrationDowntime ( ) ) != null ) { return org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getMigrationDowntime ( ) ; } return org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.DefaultMaximumMigrationDowntime ) ; }
Source:
public void getHostDevicesByHostId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetExtendedHostDevicesByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) , aQuery ) ; }

Target:
public void getHostDevicesByHostId ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.HostDeviceView > > aQuery , org.ovirt.engine.core.compat.Guid hostId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetExtendedHostDevicesByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) , aQuery ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getExternalIdsForRunningSteps ( org.ovirt.engine.core.common.job.ExternalSystemType systemType ) { return multipleResults ( entityManager.createNamedQuery ( "Step.getExternalIdsForRunningSteps" ) . setParameter ( "status" , JobExecutionStatus.STARTED ) . setParameter ( "type" , systemType ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getExternalIdsForRunningSteps ( org.ovirt.engine.core.common.job.ExternalSystemType systemType ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Step.getExternalIdsForRunningSteps" ) . setParameter ( "status" , JobExecutionStatus.STARTED ) . setParameter ( "type" , systemType ) ) ; }
Source:
protected java.lang.String getDefaultDisplayTypeStringRepresentation ( ) { return "default_display_type" ; }

Target:
protected java.lang.String getDefaultDisplayTypeStringRepresentation ( ) { return OvfProperties.TEMPLATE_DEFAULT_DISPLAY_TYPE ; }
Source:
public org.ovirt.engine.api.model.GlusterHooks list ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > entities = getBackendCollection ( VdcQueryType.GetGlusterHooks , new org.ovirt.engine.core.common.queries.gluster.GlusterParameters ( asGuid ( parent.get ( ) . getId ( ) ) ) ) ; return mapCollection ( entities ) ; }

Target:
public org.ovirt.engine.api.model.GlusterHooks list ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > entities = getBackendCollection ( QueryType.GetGlusterHooks , new org.ovirt.engine.core.common.queries.gluster.GlusterParameters ( asGuid ( parent.get ( ) . getId ( ) ) ) ) ; return mapCollection ( entities ) ; }
Source:
protected void setUpNetworkQueryExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetNetworkById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { NETWORK_ID } , new org.ovirt.engine.core.common.businessentities.network.Network ( ) ) ; }

Target:
protected void setUpNetworkQueryExpectations ( ) { setUpEntityQueryExpectations ( QueryType.GetNetworkById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { NETWORK_ID } , new org.ovirt.engine.core.common.businessentities.network.Network ( ) ) ; }
Source:
public void testNonExistingCpuProfile ( ) { org.ovirt.engine.core.common.businessentities.VmBase vmBase = createVmBase ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidationResult res = cpuProfileHelper.setAndValidateCpuProfile ( vmBase , org.ovirt.engine.core.bll.profiles.CpuProfileHelperTest.USER_1_ID ) ; org.junit.Assert.assertThat ( res , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_CPU_PROFILE_NOT_FOUND ) ) ; }

Target:
public void testNonExistingCpuProfile ( ) { org.ovirt.engine.core.common.businessentities.VmBase vmBase = createVmBase ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidationResult res = cpuProfileHelper.setAndValidateCpuProfile ( vmBase , org.ovirt.engine.core.bll.profiles.CpuProfileHelperTest.USER_1_ID ) ; org.hamcrest.MatcherAssert.assertThat ( res , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_CPU_PROFILE_NOT_FOUND ) ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.BusinessEntity < org.ovirt.engine.core.compat.Guid > entity ) { return ( entity != null ) && ( java.util.Objects.equals ( entity.getId ( ) , id ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.BusinessEntity < T > entity ) { return ( entity != null ) && ( java.util.Objects.equals ( entity.getId ( ) , id ) ) ; }
Source:
org.ovirt.engine.core.common.businessentities.qos.CpuQos getCpuQosByVmId ( org.ovirt.engine.core.compat.Guid vmId ) ;

Target:
java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.qos.CpuQos > getCpuQosByVmIds ( java.util.Collection < org.ovirt.engine.core.compat.Guid > vmIds ) ;
Source:
public void storageDomain ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain s = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; b.setStorageDomain ( s ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain st = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( s , st ) ; }

Target:
public void storageDomain ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain s = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; b.setStorageDomain ( s ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain st = b.getStorageDomain ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( s , st ) ; }
Source:
public void testExtractIpv6PrefixNull ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Prefix ( null ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractIpv6PrefixNull ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( null ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { httpTask = org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand.getBroker ( ) . poll ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { httpTask = org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand.getBroker ( ) . poll ( ) ; }
Source:
private static java.lang.String getErrorMessage ( org.ovirt.engine.core.bll.EntityMultiAsyncTasks entityInfo ) { return java.lang.String.format ( "[within thread]: EndAction for action type %1$s threw an exception." , entityInfo.getActionType ( ) ) ; }

Target:
private java.lang.String getErrorMessage ( ) { return java.lang.String.format ( "[within thread]: EndAction for action type %1$s threw an exception." , getParameters ( ) . getDbAsyncTask ( ) . getActionParameters ( ) . getCommandType ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName ) ;
Source:
java.util.List < java.lang.String > ResolveMessages ( java.util.List < java.lang.String > translatedMessages ) ;

Target:
java.util.List < java.lang.String > resolveMessages ( java.util.List < java.lang.String > translatedMessages ) ;
Source:
private boolean containsLun ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > luns , org.ovirt.engine.core.common.businessentities.storage.LUNs lunToFind ) { for ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun : luns ) { if ( lun.getLUN_id ( ) . equals ( lunToFind.getLUN_id ( ) ) ) { return true ; } } return false ; }

Target:
private boolean containsLun ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > luns , org.ovirt.engine.core.common.businessentities.storage.LUNs lunToFind ) { for ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun : luns ) { if ( lun.getLUNId ( ) . equals ( lunToFind.getLUNId ( ) ) ) { return true ; } } return false ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] snapParams ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookAdd ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum , java.lang.Boolean enabled ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.aaa.LdapUser populateUserData ( org.ovirt.engine.core.common.businessentities.aaa.LdapUser user , java.lang.String domain ) { return populateUserData ( user , domain , true , true ) ; }

Target:
protected org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapUser populateUserData ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapUser user , java.lang.String domain ) { return populateUserData ( user , domain , true , true ) ; }
Source:
private boolean isAnyRoleReadOnly ( java.util.List roles ) { for ( java.lang.Object item : roles ) { org.ovirt.engine.core.common.businessentities.Role r = ( ( org.ovirt.engine.core.common.businessentities.Role ) ( item ) ) ; if ( r.getis_readonly ( ) ) { return true ; } } return false ; }

Target:
private boolean isAnyRoleReadOnly ( java.util.List roles ) { for ( java.lang.Object item : roles ) { org.ovirt.engine.core.common.businessentities.Role r = ( ( org.ovirt.engine.core.common.businessentities.Role ) ( item ) ) ; if ( r.isReadonly ( ) ) { return true ; } } return false ; }
Source:
protected org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters createParameters ( org.ovirt.engine.core.compat.Guid sourceStorageDomainGuid , org.ovirt.engine.core.compat.Guid destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.DiskImage disk ) { return new org.ovirt.engine.core.common.action.MoveDiskParameters ( disk.getImageId ( ) , sourceStorageDomainGuid , destStorageDomainGuid ) ; }

Target:
protected org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters createParameters ( org.ovirt.engine.core.compat.Guid sourceStorageDomainGuid , org.ovirt.engine.core.compat.Guid destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { return new org.ovirt.engine.core.common.action.MoveDiskParameters ( disk.getImageId ( ) , sourceStorageDomainGuid , destStorageDomainGuid ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.VDSGroup source ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.SupportCustomDeviceProperties , source.getCompatibilityVersion ( ) . getValue ( ) ) ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.Cluster source ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.SupportCustomDeviceProperties , source.getCompatibilityVersion ( ) . getValue ( ) ) ) ) ; }
Source:
private void assertValidateFailure ( final java.lang.String messageToVerify ) { org.junit.Assert.assertFalse ( underTest.validate ( ) ) ; org.junit.Assert.assertTrue ( underTest.getReturnValue ( ) . getValidationMessages ( ) . contains ( messageToVerify ) ) ; }

Target:
public void networkDoesntExist ( ) { simulateClusterExists ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( underTest , EngineMessage.NETWORK_NOT_EXISTS ) ; }
Source:
public void testIsNetworkInSyncWhenGatewayEqual ( ) { initIpConfigurationBootProtocolGateway ( NetworkBootProtocol.STATIC_IP , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv6BootProtocolEqual ( ) { initIpv6ConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void setParentCommandId ( org.ovirt.engine.core.compat.Guid parentCommandId ) { this . parentCommandId = parentCommandId ; }

Target:
public void setRootCommandId ( org.ovirt.engine.core.compat.Guid rootCommandId ) { this . rootCommandId = rootCommandId ; }
Source:
private static void raiseQueryStartedEvent ( final java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.lang.String context ) { for ( org.ovirt.engine.core.common.queries.VdcQueryType queryType : queryTypeList ) { org.ovirt.engine.ui.frontend.Frontend.raiseQueryStartedEvent ( queryType , context ) ; } }

Target:
private static void raiseQueryCompleteEvent ( final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.lang.String context ) { for ( org.ovirt.engine.core.common.queries.VdcQueryType queryType : queryTypeList ) { org.ovirt.engine.ui.frontend.Frontend.raiseQueryCompleteEvent ( queryType , context ) ; } }
Source:
private void checkLabels ( java.util.Set < java.lang.String > labels , int numOfLabels ) { org.junit.Assert.assertEquals ( "num of labels" , numOfLabels , getListSize ( labels ) ) ; }

Target:
private void checkLabels ( java.util.Set < java.lang.String > labels , int numOfLabels ) { org.junit.jupiter.api.Assertions.assertEquals ( numOfLabels , getListSize ( labels ) , "num of labels" ) ; }
Source:
protected java.lang.String getRemoveVnicProfileFullMsg ( org.ovirt.engine.core.common.businessentities.network.VnicProfile profile ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . vnicProfileFromNetwork ( profile.getName ( ) , profile.getNetworkId ( ) . toString ( ) ) ; }

Target:
protected java.lang.String getRemoveVnicProfileFullMsg ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView profile ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . vnicProfileFromNetwork ( profile.getName ( ) , profile.getNetworkName ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getMonitoredTaskIDsInDB ( ) { return null ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getMonitoredTaskIDsInDB ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > externalIds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStepDao ( ) . getExternalIdsForRunningSteps ( ExternalSystemType.GLUSTER ) ; return externalIds ; }
Source:
public static org.ovirt.engine.api.model.ConfigurationType map ( org.ovirt.engine.api.model.ConfigurationType configurationType , org.ovirt.engine.api.model.ConfigurationType template ) { switch ( configurationType ) { case OVF : return org.ovirt.engine.api.model.ConfigurationType.OVF ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.ConfigurationType map ( org.ovirt.engine.api.model.ConfigurationType configurationType , org.ovirt.engine.api.model.ConfigurationType template ) { switch ( configurationType ) { case OVF : return org.ovirt.engine.api.model.ConfigurationType.OVF ; case OVA : return org.ovirt.engine.api.model.ConfigurationType.OVA ; default : return null ; } }
Source:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status ) { InternalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY , VmExitReason.Unknown , vm.getStatusUpdatedTime ( ) ) ; }

Target:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status , org.ovirt.engine.core.common.businessentities.VmExitStatus exitStatus ) { InternalSetVmStatus ( vm , status , exitStatus , StringUtils.EMPTY , VmExitReason.Unknown ) ; }
Source:
private boolean isEveryoneUserPortalBasedVmPermission ( org.ovirt.engine.core.common.businessentities.Permissions permission ) { return ( permission.getad_element_id ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getrole_id ( ) . equals ( ApplicationGuids.userTemplateBasedVM.asGuid ( ) ) ) ; }

Target:
private boolean isEveryoneUserPortalBasedVmPermission ( org.ovirt.engine.core.common.businessentities.Permission permission ) { return ( permission.getAdElementId ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getRoleId ( ) . equals ( ApplicationGuids.userTemplateBasedVM.asGuid ( ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotConfigReturnForXmlRpc glusterVolumeSnapshotConfigGet ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String volumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepConfigSet ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String configValue ) ;
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , memoryVolume , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , java.lang.String memoryVolume , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disks , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , "Active VM" , snapshotStatus , SnapshotType.ACTIVE , vm , false , memoryVolume , disks , compensationContext ) ; }
Source:
void setEmulatedMachine ( org.ovirt.engine.core.compat.Guid vdsGroupId , java.lang.String emulatedMachine ) ;

Target:
void setEmulatedMachine ( org.ovirt.engine.core.compat.Guid vdsGroupId , java.lang.String emulatedMachine , boolean detectEmulatedMachine ) ;
Source:
public void validateFailsMissingIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.assertFailsWithValidateMessage ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }

Target:
public void validateFailsMissingIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }
Source:
public void testSave ( ) { dao.save ( networkAttachment ) ; org.ovirt.engine.core.common.businessentities.network.NetworkAttachment result = dao.get ( networkAttachment.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; assertNetworkAttachmentEquals ( networkAttachment , result ) ; }

Target:
public void testSave ( ) { dao.save ( networkAttachment ) ; org.ovirt.engine.core.common.businessentities.network.NetworkAttachment result = dao.get ( networkAttachment.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; assertNetworkAttachmentEquals ( networkAttachment , result ) ; }
Source:
private void removeOptionInDb ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity option ) { getGlusterOptionDao ( ) . removeVolumeOption ( option.getId ( ) ) ; }

Target:
private void removeOptionInDb ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity option ) { glusterOptionDao.removeVolumeOption ( option.getId ( ) ) ; }
Source:
public void setIsExpanded ( boolean value ) { isExpanded = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsExpanded" ) ) ; }

Target:
public void setIsExpanded ( boolean value ) { isExpanded = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsExpanded" ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm.getDynamicData ( ) ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm.getDynamicData ( ) ) ; org.ovirt.engine.core.bll.VmHandler.unLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
public void RemoveAsyncRunningVm ( org.ovirt.engine.core.compat.Guid vmId ) { asyncRunningVms.remove ( vmId ) ; getEventListener ( ) . removeAsyncRunningCommand ( vmId ) ; }

Target:
public void removeAsyncRunningVm ( org.ovirt.engine.core.compat.Guid vmId ) { asyncRunningVms.remove ( vmId ) ; getEventListener ( ) . removeAsyncRunningCommand ( vmId ) ; }
Source:
private void doFinish ( ) { stopProgress ( ) ; cancel ( ) ; sourceListModel.forceRefresh ( ) ; }

Target:
private void doFinish ( ) { if ( ( needsAttach ) || ( needsDetach ) ) { return ; } stopProgress ( ) ; cancel ( ) ; sourceListModel.forceRefresh ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.MigrationSupport getMigrationSupport ( ) { org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport = org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getParameters ( ) . getMigrationSupport ( ) ; if ( migrationSupport != null ) { return migrationSupport ; } return org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getVm ( ) . getMigrationSupport ( ) ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getVm ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; } return validate ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getVm ( ) , getVmNumaNodesForValidation ( ) ) ) ; }
Source:
public void internalNetworkProvidedByChanged ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = mockExternalNetwork ( ) ; org.mockito.Mockito.when ( network.getProvidedBy ( ) ) . thenReturn ( null ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createExternalNetwork ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; org.ovirt.engine.core.common.businessentities.network.ProviderNetwork providerNetwork = createProviderNetwork ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; network.setProvidedBy ( providerNetwork ) ; externalNetwork.setProvidedBy ( providerNetwork ) ; return externalNetwork ; }
Source:
public java.lang.String getReactorName ( ) { return "SSL Reactor" ; }

Target:
public java.lang.String getReactorName ( ) { return org.ovirt.vdsm.jsonrpc.client.reactors.SSLReactor.REACTOR_NAME ; }
Source:
public void setSpiceProxy ( java.lang.String spiceProxy ) { this . spiceProxy = spiceProxy ; }

Target:
public void setWANColorDepth ( org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth colorDepth ) { this . consoleOptions.setWanColorDepth ( colorDepth ) ; getWANColorDepthChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
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 ; mVdsId = ( value == null ) ? org.ovirt.engine.core.compat.Guid.Empty : value.getId ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VdsNumaNode > ( ) ; } return source ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vdsId = %s, storagePoolId = %s, masterVersion = %d" , super . toString ( ) , vds.getId ( ) . toString ( ) , storagePool.getId ( ) . toString ( ) , storagePool.getMasterDomainVersion ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "vdsId" , vds.getId ( ) ) . append ( "storagePoolId" , storagePool.getId ( ) ) . append ( "masterVersion" , storagePool.getMasterDomainVersion ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllBookmarksQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getAll ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllBookmarksQuery.getQueryReturnValue ( ) . setReturnValue ( bookmarkDao.getAll ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllOfType ( org.ovirt.engine.core.common.businessentities.VDSType vds ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > found = vdsStaticDAO.findByCriteria ( org.hibernate.criterion.Restrictions.eq ( "vdsType" , vds.getValue ( ) ) ) ; return convertToVdsList ( found ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getVdsToRun ( org.ovirt.engine.core.common.businessentities.VDSType type , org.ovirt.engine.core.compat.Guid groupId , org.ovirt.engine.core.common.businessentities.VDSStatus status , int minNrOfCpus ) { return null ; }
Source:
public void nullVersion ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.bll.utils.VersionSupport.checkVersionSupported ( null ) ) ; }

Target:
public void nullVersion ( ) { org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.bll.utils.VersionSupport.checkVersionSupported ( null ) ) ; }
Source:
public void versionDecreaseLowerVersionThanDC ( ) { createCommandWithOlderVersion ( ) ; org.mockito.Mockito.when ( storagePoolDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.createStoragePoolLocalFSOldVersion ( ) ) ; setupCpu ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION_UNDER_DC ) ; }

Target:
public void versionDecreaseLowerVersionThanDC ( ) { createCommandWithOlderVersion ( ) ; org.mockito.Mockito.when ( storagePoolDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.createStoragePoolLocalFSOldVersion ( ) ) ; setupCpu ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION_UNDER_DC ) ; }
Source:
java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > runMultipleQueries ( java.util.ArrayList < org.ovirt.engine.core.common.queries.QueryType > vdcQueryTypeList , java.util.ArrayList < org.ovirt.engine.core.common.queries.QueryParametersBase > paramsList ) ;

Target:
java.util.ArrayList < org.ovirt.engine.core.common.queries.QueryReturnValue > runMultipleQueries ( java.util.ArrayList < org.ovirt.engine.core.common.queries.QueryType > queryTypeList , java.util.ArrayList < org.ovirt.engine.core.common.queries.QueryParametersBase > paramsList ) ;
Source:
public void setQuotaId ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setQuotaId ( value ) ; }

Target:
public void setQuotaId ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setQuotaId ( value ) ; }
Source:
public void testIsCollection ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.api.utils.EntityHelper.isCollection ( new org.ovirt.engine.api.model.Vms ( ) ) ) ; org.junit.Assert.assertFalse ( org.ovirt.engine.api.utils.EntityHelper.isCollection ( new org.ovirt.engine.api.model.Vm ( ) ) ) ; }

Target:
public void testIsCollection ( ) { org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.api.utils.EntityHelper.isCollection ( new org.ovirt.engine.api.model.Vms ( ) ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.api.utils.EntityHelper.isCollection ( new org.ovirt.engine.api.model.Vm ( ) ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VM createVM ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStatus ( VMStatus.Down ) ; vm.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return vm ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VM createVM ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStatus ( VMStatus.Down ) ; vm.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; vm.setVmOs ( 1 ) ; return vm ; }
Source:
public void testEvents ( ) { testValidSql ( "Events: " , "SELECT * FROM ((SELECT audit_log.* FROM audit_log WHERE not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testEvent ( ) { testValidSql ( "Event: " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=error " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE audit_log.severity = '2' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=alert " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE audit_log.severity = '10' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: host.name = \"host1\" " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log LEFT OUTER JOIN vds_with_tags ON audit_log.vds_id=vds_with_tags.vds_id WHERE vds_with_tags.vds_name LIKE host1 AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult macAvailable ( ) { java.lang.String macAddress = org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) . getMacAddress ( ) ; return new org.ovirt.engine.core.bll.validator.MacAddressValidator ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getMacPool ( ) , macAddress ) . isMacAssignableValidator ( ) ; }

Target:
private boolean isPassthrough ( ) { return ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pciPassthrough ) == ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.forValue ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) . getType ( ) ) ) ; }
Source:
public void setEntity ( java.lang.Object value ) { updateIsMemorySnapshotSupported ( value ) ; updateIsLiveMergeSupported ( value ) ; super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; }

Target:
public void setEntity ( java.lang.Object value ) { updateIsMemorySnapshotSupported ( value ) ; updateIsLiveMergeSupported ( value ) ; super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; updateVmActiveDisks ( ) ; }
Source:
public void testNoDiskStats ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.getVds ( ) ; vdsBrokerObjectsBuilder.updateLocalDisksUsage ( vds , new java.util.HashMap < > ( ) ) ; org.junit.Assert.assertNull ( vds.getLocalDisksUsage ( ) ) ; }

Target:
public void testNoDiskStats ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.getVds ( ) ; vdsBrokerObjectsBuilder.updateLocalDisksUsage ( vds , new java.util.HashMap < > ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( vds.getLocalDisksUsage ( ) ) ; }
Source:
public int compare ( java.lang.String str1 , java.lang.String str2 ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( str1 , str2 ) ; }

Target:
public int compare ( java.lang.String str1 , java.lang.String str2 ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( str1 , str2 , caseSensitive ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { super . verifyModel ( model , index ) ; assertTrue ( model.isMutable ( ) ) ; assertTrue ( model.isAdministrative ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { super . verifyModel ( model , index ) ; org.junit.Assert.assertTrue ( model.isMutable ( ) ) ; org.junit.Assert.assertTrue ( model.isAdministrative ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStage getRawValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity object ) { return object.getGlusterHookStage ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStage getRawValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity object ) { return object.getStage ( ) ; }
Source:
public void writeStartElement ( java.lang.String name ) { try { writer.writeStartElement ( name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }

Target:
public void writeElement ( java.lang.String name , java.lang.String value ) { writeStartElement ( name ) ; writeCharacters ( value ) ; writeEndElement ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePoolLocalFSOldVersion ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setIsLocal ( true ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_2 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePoolLocalFSOldVersion ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setIsLocal ( true ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.VERSION_1_2 ) ; return pool ; }
Source:
private static void assertAuditLogNotWritten ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_NO_AUDIT_LOG_MESSAGE , org.ovirt.engine.core.bll.quota.QuotaManagerTest.auditLogWritten ) ; }

Target:
private void assertAuditLogNotWritten ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_NO_AUDIT_LOG_MESSAGE , auditLogWritten ) ; }