auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean checkImagesStatus ( ) { return org.ovirt.engine.core.bll.ImagesHandler.checkImagesLocked ( getVm ( ) , org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean checkImagesStatus ( ) { return org.ovirt.engine.core.bll.ImagesHandler.checkImagesLocked ( org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getVmId ( ) , org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
private void invokeHostUpgrade ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.action.hostdeploy.UpgradeHostParameters parameters ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.UpgradeHostInternal , createUpgradeParameters ( parameters ) , command.cloneContextAndDetachFromParent ( ) ) ; }

Target:
private void invokeHostUpgrade ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.action.hostdeploy.UpgradeHostParameters parameters ) { commandCoordinatorUtil.executeAsyncCommand ( ActionType.UpgradeHostInternal , createUpgradeParameters ( parameters ) , command.cloneContextAndDetachFromParent ( ) ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.createFenceExclusiveLocksMap ( org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVdsId ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return hostLocking.getPowerManagementLock ( org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVdsId ( ) ) ; }
Source:
public void forceAddMac ( java.lang.String mac ) { macsStorage.useMacNoDuplicityCheck ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; }

Target:
private void forceAddMac ( java.lang.String mac ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.debug ( "Forcibly allocating custom mac address from {}" , mac , this ) ; macsStorage.useMacNoDuplicityCheck ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; }
Source:
private void setUpGetEntityExcpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetTagByTagId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; }

Target:
private void setUpGetEntityExcpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetTagByTagId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; }
Source:
org.ovirt.engine.core.common.businessentities.DbUser getByUsername ( java.lang.String username ) ;

Target:
org.ovirt.engine.core.common.businessentities.DbUser getByUsernameAndDomain ( java.lang.String username , java.lang.String domainName ) ;
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterServiceModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterServicePresenter.constants.clusterServiceSubTabLabel ( ) , 4 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterServicePresenter.constants.clusterServiceSubTabLabel ( ) , 4 ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { if ( ( cachedStoragePool ) == null ) { cachedStoragePool = getStoragePoolDao ( ) . get ( params.getStoragePoolId ( ) ) ; } return cachedStoragePool ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { loadDc ( ) ; return cachedStoragePool ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 0 ; }

Target:
public void getClusterServerMemoryOverCommit ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Integer > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( 0 ) ; getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.MaxVdsMemOverCommitForServers , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.ReportedConfiguration reportEqualSwitchType ( ) { return new org.ovirt.engine.core.common.businessentities.network.ReportedConfiguration ( org.ovirt.engine.core.common.businessentities.network.ReportedConfigurationType.SWITCH_TYPE , org.ovirt.engine.core.common.SwitchType.LEGACY , org.ovirt.engine.core.common.SwitchType.LEGACY , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.ReportedConfiguration reportEqualSwitchType ( ) { return new org.ovirt.engine.core.common.businessentities.network.ReportedConfiguration ( org.ovirt.engine.core.common.businessentities.network.ReportedConfigurationType.SWITCH_TYPE , org.ovirt.engine.core.common.network.SwitchType.LEGACY , org.ovirt.engine.core.common.network.SwitchType.LEGACY , true ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createHigherVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_2 ) ; return pool ; }

Target:
public void versionHigherThanCluster ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_2 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( vmDynamic , vmGuestAgentInterfaces , vmStatistics , lunsMap ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( vmDynamic , vmGuestAgentInterfaces , vmStatistics , lunsMap , interfaceStatistics ) ; }
Source:
public void EditHost ( ) { getRequestEditEvent ( ) . raise ( this , EventArgs.Empty ) ; }

Target:
public void editHost ( ) { getRequestEditEvent ( ) . raise ( this , EventArgs.Empty ) ; }
Source:
public void setSessionItem ( java.lang.String key , java.lang.String value ) { if ( ( org.ovirt.engine.ui.common.system.ClientStorageImpl.sessionStorage ) != null ) { org.ovirt.engine.ui.common.system.ClientStorageImpl.sessionStorage.setItem ( key , value ) ; } else { com.google.gwt.user.client.Cookies.setCookie ( key , value ) ; } }

Target:
void setSessionItemImpl ( java.lang.String key , java.lang.String value ) { if ( ( org.ovirt.engine.ui.common.system.ClientStorageImpl.sessionStorage ) != null ) { org.ovirt.engine.ui.common.system.ClientStorageImpl.sessionStorage.setItem ( key , value ) ; } else { com.google.gwt.user.client.Cookies.setCookie ( key , value ) ; } }
Source:
public void setMessageLabel ( java.lang.String label ) { messageLabel.setText ( label ) ; }

Target:
public void setMessageLabel ( java.lang.String label ) { messageLabel.setHTML ( label ) ; }
Source:
private void decrementVdsPendingVmsCount ( ) { synchronized ( _vds_pending_vm_count ) { int i = _vds_pending_vm_count.get ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; _vds_pending_vm_count.put ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , ( i - 1 ) ) ; } }

Target:
protected org.ovirt.engine.core.compat.Guid getActiveIsoDomainId ( ) { if ( ( cachedActiveIsoDomainId ) == null ) { cachedActiveIsoDomainId = getIsoDomainListSyncronizer ( ) . findActiveISODomain ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getStoragePoolId ( ) ) ; } return cachedActiveIsoDomainId ; }
Source:
private void ResetIsEmpty ( ) { if ( ( getItems ( ) ) != null ) { java.util.Iterator enumerator = getItems ( ) . iterator ( ) ; if ( enumerator.hasNext ( ) ) { setIsEmpty ( false ) ; } } }

Target:
private void resetIsEmpty ( ) { if ( ( getItems ( ) ) != null ) { java.util.Iterator enumerator = getItems ( ) . iterator ( ) ; if ( enumerator.hasNext ( ) ) { setIsEmpty ( false ) ; } } }
Source:
public java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > byNicName ( ) { return group ( new org.ovirt.engine.core.common.utils.MapNetworkAttachments.ByNicName ( ) , networkAttachments ) ; }

Target:
public java.util.Set < java.lang.String > nicNames ( ) { java.util.Set < java.lang.String > result = new java.util.HashSet < > ( ) ; for ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment : networkAttachments ) { result.add ( new org.ovirt.engine.core.common.utils.MapNetworkAttachments.ByNicName ( ) . keyFrom ( attachment ) ) ; } return result ; }
Source:
public int getmethod_id ( ) { return this . id.methodId ; }

Target:
public void setevent_notification_method ( org.ovirt.engine.core.common.EventNotificationMethods eventNotificationMethod ) { this . id.eventNotificationMethod = eventNotificationMethod ; }
Source:
public void testNoStringSubstitutionWithSuffix ( ) { doTestNoStringSubstitution ( org.ovirt.engine.core.utils.ErrorTranslatorTest.FILENAME_WITH_SUFFIX ) ; }

Target:
public void testNoStringSubstitutionWithSuffix ( ) { org.ovirt.engine.core.utils.ErrorTranslatorTest.doTestNoStringSubstitution ( org.ovirt.engine.core.utils.ErrorTranslatorTest.FILENAME_WITH_SUFFIX ) ; }
Source:
public java.util.Set < java.lang.String > getUnsupportedCpus ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
java.lang.String getOsName ( int osId ) ;
Source:
public java.util.Date AddMinutes ( int i ) { java.util.Calendar cal = java.util.Calendar.getInstance ( ) ; cal.setTime ( this ) ; cal.add ( java.util.Calendar.MINUTE , i ) ; return new org.ovirt.engine.core.compat.DateTime ( cal.getTime ( ) ) ; }

Target:
public java.util.Date addMinutes ( int i ) { java.util.Calendar cal = java.util.Calendar.getInstance ( ) ; cal.setTime ( this ) ; cal.add ( java.util.Calendar.MINUTE , i ) ; return new org.ovirt.engine.core.compat.DateTime ( cal.getTime ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; objectID = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; org.ovirt.engine.core.common.businessentities.permissions permission = new org.ovirt.engine.core.common.businessentities.permissions ( ) ; permission.setObjectId ( objectID ) ; mockedPermissions = java.util.Collections.singletonList ( permission ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; objectID = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.ovirt.engine.core.common.businessentities.permissions permission = new org.ovirt.engine.core.common.businessentities.permissions ( ) ; permission.setObjectId ( objectID ) ; mockedPermissions = java.util.Collections.singletonList ( permission ) ; }
Source:
public java.lang.String getPrincipal ( ) { return ( ( java.lang.String ) ( getData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , false ) ) ) ; }

Target:
public void setPrincipal ( java.lang.String sessionId , java.lang.String principal ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , principal ) ; }
Source:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableTrustedServiceEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableBallooning = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableBallooning.getContentWidgetContainer ( ) . setWidth ( "350px" ) ; }

Target:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableTrustedServiceEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableBallooning = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableBallooning.getContentWidgetContainer ( ) . setWidth ( "350px" ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ADD ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( java.lang.String.format ( "$server %1$s" , org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getvds ( ) . getHostName ( ) ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ADD ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessageVariable ( "server" , org.ovirt.engine.core.bll.AddVdsCommand.getParameters ( ) . getvds ( ) . getHostName ( ) ) ; }
Source:
public void testAddValuePrimitive ( ) { int paramValue = this . random.nextInt ( ) ; paramSource.addValue ( paramName , paramValue ) ; org.junit.Assert.assertEquals ( "wrong value returned from parameter source" , paramValue , 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:
protected final void decreasePendingVm ( org.ovirt.engine.core.common.businessentities.VmStatic vm ) { org.ovirt.engine.core.compat.Guid vdsId = getCurrentVdsId ( ) ; org.ovirt.engine.core.bll.scheduling.SchedulingManager.getInstance ( ) . clearPendingVm ( vm ) ; getBlockingQueue ( vdsId ) . offer ( java.lang.Boolean.TRUE ) ; }

Target:
protected final void decreasePendingVm ( org.ovirt.engine.core.common.businessentities.VmStatic vm ) { org.ovirt.engine.core.compat.Guid vdsId = getCurrentVdsId ( ) ; schedulingManager.clearPendingVm ( vm ) ; getBlockingQueue ( vdsId ) . offer ( java.lang.Boolean.TRUE ) ; }
Source:
public void testInterfaceAlreadyLabeledWithWhenLabelsIsNull ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; vdsNetworkInterface.setLabels ( null ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . interfaceAlreadyLabeledWith ( "labelA" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testInterfaceAlreadyLabeledWithWhenLabelsIsNull ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; vdsNetworkInterface.setLabels ( null ) ; org.hamcrest.MatcherAssert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . interfaceAlreadyLabeledWith ( "labelA" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getEntity ( ) { return super . getEntity ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > getSelectedDataCentersForAttach ( ) { return selectedDataCentersForAttach ; }
Source:
public void validateEnoughSpace ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmForSpace ( ) ; initVmDiskImage ( false ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }

Target:
public void validateEnoughSpace ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; initVmForSpace ( ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
protected org.ovirt.engine.core.dao.StorageDomainDAO getStorageDomainDao ( ) { return org.ovirt.engine.core.bll.VmCommand.getDbFacade ( ) . getStorageDomainDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.ImageDao getImageDao ( ) { return org.ovirt.engine.core.bll.VmCommand.getDbFacade ( ) . getImageDao ( ) ; }
Source:
public boolean isSetStorage ( ) { return ( ( this . storage ) != null ) && ( ! ( this . storage.isEmpty ( ) ) ) ; }

Target:
public void setType ( java.lang.String value ) { this . type = value ; }
Source:
private boolean isSetupNetworkSupported ( org.ovirt.engine.core.compat.Guid clusterId ) { final org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getVdsGroupDao ( ) . get ( clusterId ) ; return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.setupNetworkSupported ( cluster.getCompatibilityVersion ( ) ) ; }

Target:
private boolean isSetupNetworkSupported ( org.ovirt.engine.core.compat.Guid clusterId ) { final org.ovirt.engine.core.common.businessentities.Cluster cluster = getClusterDao ( ) . get ( clusterId ) ; return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.setupNetworkSupported ( cluster.getCompatibilityVersion ( ) ) ; }
Source:
public void setProtocol ( org.ovirt.engine.core.common.businessentities.VdsProtocol value ) { vdsStatic.setProtocol ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.DnsResolverConfiguration getReportedDnsResolverConfiguration ( ) { return vdsDynamic.getReportedDnsResolverConfiguration ( ) ; }
Source:
public java.lang.Long getDbGeneration ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetDbGeneration" , getLongMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , id ) ) ; }

Target:
public java.lang.Long getDbGeneration ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetDbGeneration" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.Long.class ) , getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , id ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateFunctions ( model ) ; clusterPolicyPropertiesZone.setVisible ( showClusterPolicyPropertiesZone ( model ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateTooltips ( model ) ; clusterPolicyPropertiesZone.setVisible ( showClusterPolicyPropertiesZone ( model ) ) ; }
Source:
public void testConvertFieldEnumValueToActualValue ( ) { org.junit.Assert.assertEquals ( "MACE" , "4" , comp.convertFieldEnumValueToActualValue ( "MACE" ) ) ; org.junit.Assert.assertEquals ( "mace" , "4" , comp.convertFieldEnumValueToActualValue ( "mace" ) ) ; }

Target:
public void testConvertFieldEnumValueToActualValue ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "4" , comp.convertFieldEnumValueToActualValue ( "MACE" ) , "MACE" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "4" , comp.convertFieldEnumValueToActualValue ( "mace" ) , "mace" ) ; }
Source:
public void setAdvancedMode ( org.ovirt.engine.ui.uicommonweb.models.EntityModel advancedMode ) { this . advancedMode = advancedMode ; }

Target:
private void setDataCenterWithClustersList ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NotChangableForVmInPoolListModel dataCenterWithClustersList ) { this . dataCenterWithClustersList = dataCenterWithClustersList ; }
Source:
public void updateAllInBatch ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsDynamic > entities ) { updateAll ( entities ) ; }

Target:
public void remove ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ; getCallsHandler ( ) . executeModification ( "DeleteVdsDynamic" , parameterSource ) ; }
Source:
public boolean accept ( java.io.File dir , java.lang.String name ) { return ( name.startsWith ( fileNamePrefix ) ) && ( name.endsWith ( ".properties" ) ) ; }

Target:
public boolean accept ( java.io.File dir , java.lang.String name ) { return name.matches ( ( ( "^" + fileNamePrefix ) + "_[a-zA-Z]{2}.*\\.properties$" ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.String user = java.lang.String.format ( "%s@%s" , org.apache.commons.lang.StringUtils.defaultIfEmpty ( username , "" ) , org.apache.commons.lang.StringUtils.defaultIfEmpty ( profile , "" ) ) ; return "@" . equals ( user ) ? "" : " for user " + user ; }

Target:
public java.lang.String toString ( ) { java.lang.String user = getUsernameWithProfile ( ) ; return "N/A" . equals ( user ) ? "" : " for user " + user ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileIsSet ( ) { return ( vnicProfile ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.VNIC_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileIsSet ( ) { return ( vnicProfile ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllRunningVdssInPool ( ) { return org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.GetAllRunningVdssInPool ( getBackend ( ) , org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllRunningVdssInPool ( ) { return org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getVdsDAO ( ) . getAllForStoragePoolAndStatus ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) . getId ( ) , VDSStatus.Up ) ; }
Source:
public boolean isStateless ( ) { return ( ( this ) == ( org.ovirt.engine.core.bll.RunVmCommand.RunVmFlow.CREATE_STATELESS_IMAGES ) ) || ( ( this ) == ( org.ovirt.engine.core.bll.RunVmCommand.RunVmFlow.REMOVE_STATELESS_IMAGES ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getPredefinedVdsIdListToRunOn ( ) { return java.util.Collections.emptyList ( ) ; }
Source:
protected boolean validateQuota ( ) { return true ; }

Target:
protected org.ovirt.engine.core.bll.quota.QuotaManager getQuotaManager ( ) { return org.ovirt.engine.core.bll.quota.QuotaManager.getInstance ( ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final boolean showErrorDialog ) { runMultipleAction ( actionType , parameters , callback , null , showErrorDialog ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final boolean isRunOnlyIfAllCanDoPass , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , isRunOnlyIfAllCanDoPass , callback , state , true , false ) ; }
Source:
public void testPool ( ) { testValidSql ( "Pool: " , "SELECT * FROM ((SELECT vm_pools_full_view.* FROM vm_pools_full_view ) ORDER BY vm_pool_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testGroups ( ) { testValidSql ( "Groups:" , "SELECT * FROM ((SELECT distinct ad_groups.* FROM ad_groups ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void externalNetworkNameChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setName ( "aaa" ) ; network.setName ( "bbb" ) ; org.junit.Assert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void externalNetworkNameChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setName ( "aaa" ) ; network.setName ( "bbb" ) ; org.junit.Assert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_DETAILS_CANNOT_BE_EDITED ) ) ; }
Source:
protected boolean updateReadOnlyRequested ( ) { return ! ( vmDeviceForVm.getIsReadOnly ( ) . equals ( getNewDisk ( ) . getReadOnly ( ) ) ) ; }

Target:
protected boolean updateReadOnlyRequested ( ) { java.lang.Boolean readOnlyNewValue = getNewDisk ( ) . getReadOnly ( ) ; return ( readOnlyNewValue != null ) && ( ! ( vmDeviceForVm.getIsReadOnly ( ) . equals ( readOnlyNewValue ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc stopImageTransferSession ( java.lang.String ticketId , java.lang.String spId , java.lang.String sdId , java.lang.String imgId , java.lang.String volId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc extend_image_ticket ( java.lang.String ticketId , long timeout ) ;
Source:
public abstract void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header , java.lang.String width ) ;

Target:
void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml ) ;
Source:
public org.ovirt.engine.core.bll.ValidationResult notLabeled ( ) { return ! ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( network ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notLabeled ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) . when ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( network ) ) ; }
Source:
protected void callbackFailed ( java.lang.String message ) { if ( haveCallback ( ) ) { callback.Failed ( message ) ; } }

Target:
protected void callbackFailed ( java.lang.String message ) { if ( haveCallback ( ) ) { callback.failed ( message ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) . unless ( ( ( network.isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( getDataCenter ( ) . getCompatibilityVersion ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) . unless ( ( ( network.isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( getDataCenter ( ) . getCompatibilityVersion ( ) ) ) ) ) ; }
Source:
protected void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.ADD_TO_BOND.getCommand ( op2 , op1 , allNics ) . execute ( ) ; }

Target:
protected void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.DataFromHostSetupNetworksModel dataFromHostSetupNetworksModel , java.lang.Object ... params ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.ADD_TO_BOND.getCommand ( op2 , op1 , dataFromHostSetupNetworksModel ) . execute ( ) ; }
Source:
public static org.ovirt.engine.core.compat.Match Match ( java.lang.String input , java.lang.String pattern ) { return org.ovirt.engine.core.compat.Regex.Match ( input , pattern , RegexOptions.None ) ; }

Target:
public static org.ovirt.engine.core.compat.Match match ( java.lang.String input , java.lang.String pattern ) { return org.ovirt.engine.core.compat.Regex.match ( input , pattern , RegexOptions.None ) ; }
Source:
public static org.ovirt.engine.core.dao.DbUserDAO getDbUserDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDAO ( ) ; }

Target:
public static org.ovirt.engine.core.dao.DbUserDAO getDbUserDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) ; }
Source:
public void parse ( java.lang.String [ ] args ) { org.ovirt.engine.core.config.EngineConfigCLIParser.log.debug ( "parse: beginning to parse arguments." ) ; validateNonEmpty ( args ) ; parseAction ( args ) ; parseArguments ( args ) ; org.ovirt.engine.core.config.EngineConfigCLIParser.log.debug ( "parse: Finished parsing arguments." ) ; }

Target:
public void parse ( java.lang.String [ ] args ) { org.ovirt.engine.core.config.EngineConfigCLIParser.log.debug ( "parse: beginning to parse passed arguments." ) ; validateNonEmpty ( args ) ; parseAction ( args ) ; parseArguments ( args ) ; org.ovirt.engine.core.config.EngineConfigCLIParser.log.debug ( "parse: Finished parsing arguments." ) ; }
Source:
public void validateVmMemoryCantRunOnVdsSmallHost ( ) { vds.setPhysicalMemMb ( 5000 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantRunOnVdsNotEnoughMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public void testHostLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Host host = new org.ovirt.engine.api.model.Host ( ) ; host.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( host ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_HREF , host.getHref ( ) ) ; }

Target:
public void testHostLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Host host = new org.ovirt.engine.api.model.Host ( ) ; host.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( host ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.HOST_HREF , host.getHref ( ) ) ; }
Source:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( EngineMessage.VAR__ACTION__SYNC ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__STORAGE_DEVICE ) ; addCanDoActionMessageVariable ( "VdsName" , org.ovirt.engine.core.bll.gluster.SyncStorageDevicesCommand.getVds ( ) . getName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addValidationMessage ( EngineMessage.VAR__ACTION__SYNC ) ; addValidationMessage ( EngineMessage.VAR__TYPE__STORAGE_DEVICE ) ; addValidationMessageVariable ( "VdsName" , org.ovirt.engine.core.bll.gluster.SyncStorageDevicesCommand.getVds ( ) . getName ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isForceCreateVolumeAllowed ( org.ovirt.engine.core.compat.Version clusterVersion , boolean isForce ) { if ( isForce && ( ! ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterForceCreateVolumeSupported ( clusterVersion ) ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_GLUSTER_VOLUME_ADD_BRICK_FORCE_NOT_SUPPORTED ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isForceCreateVolumeAllowed ( org.ovirt.engine.core.compat.Version clusterVersion , boolean isForce ) { if ( isForce && ( ! ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterForceCreateVolumeSupported ( clusterVersion ) ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_GLUSTER_VOLUME_ADD_BRICK_FORCE_NOT_SUPPORTED ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommandParameters params = new org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommandParameters ( org.ovirt.engine.core.bll.ForceSelectSPMCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.ForceSelectSPMCommand.getParameters ( ) . getPreferredSPMId ( ) ) ; runVdsCommand ( VDSCommandType.SpmStopOnIrs , params ) ; org.ovirt.engine.core.bll.ForceSelectSPMCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommandParameters params = new org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommandParameters ( getStoragePoolForVds ( ) . getId ( ) , org.ovirt.engine.core.bll.ForceSelectSPMCommand.getParameters ( ) . getPreferredSPMId ( ) ) ; runVdsCommand ( VDSCommandType.SpmStopOnIrs , params ) ; org.ovirt.engine.core.bll.ForceSelectSPMCommand.setSucceeded ( true ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult nicActuallyExistsOrReferencesNewBond ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { boolean nicActuallyExistsOrReferencesNewBond = isNicActuallyExistsOrReferencesNewBond ( attachment.getNicName ( ) , attachment.getNicId ( ) ) ; if ( nicActuallyExistsOrReferencesNewBond ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) ; }

Target:
private boolean isNicActuallyExistsOrReferencesNewBond ( java.lang.String nicName , org.ovirt.engine.core.compat.Guid nicId ) { return hostSetupNetworksValidatorHelper.isNicActuallyExistsOrReferencesNewBond ( existingInterfacesMap , createOrUpdateBondBusinessEntityMap , nicName , nicId ) ; }
Source:
public void initTemplate ( ) { setupTemplate ( vm , getModel ( ) . getTemplate ( ) ) ; }

Target:
protected void initTemplate ( ) { setupTemplate ( vm.getVmtGuid ( ) , vm.isUseLatestVersion ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.LUN ) ? ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( object ) ) . getLun ( ) . getSerial ( ) : null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN ) ? ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( object ) ) . getLun ( ) . getSerial ( ) : null ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Group model , int index ) { assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Group model , int index ) { org.junit.Assert.assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
public void testGetFullPath_SaneParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( mockFile , "/branding/test" ) ; org.junit.Assert.assertNotNull ( "Path should not be null" , fullPath ) ; org.junit.Assert.assertEquals ( "Path should be '/abs/test/branding/test'" , "/abs/test/branding/test" , fullPath ) ; }

Target:
public void testGetFullPath_nullParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , null ) ; org.junit.Assert.assertNull ( "Path should be null" , file ) ; }
Source:
public final void setSoftLimit ( java.util.Date softLimit ) { setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.SOFT_LIMIT_PARAMETER_NAME , softLimit ) ; }

Target:
public final void setSoftLimit ( java.lang.String sessionId , java.util.Date softLimit ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.SOFT_LIMIT_PARAMETER_NAME , softLimit ) ; }
Source:
public void invalidCorrelationId ( ) { org.ovirt.engine.core.common.action.ActionParametersBase parameters = new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ; parameters.setCorrelationId ( "INVALID_CORRELATION_@#$%@#" ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase result = org.ovirt.engine.core.bll.job.ExecutionHandler.evaluateCorrelationId ( parameters ) ; org.junit.Assert.assertNotNull ( "Correlation id is invalid" , result ) ; org.junit.Assert.assertFalse ( "Correlation id is invalid" , result.getSucceeded ( ) ) ; }

Target:
public void invalidCorrelationId ( ) { org.ovirt.engine.core.common.action.ActionParametersBase parameters = new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ; parameters.setCorrelationId ( "INVALID_CORRELATION_@#$%@#" ) ; org.ovirt.engine.core.common.action.ActionReturnValue result = org.ovirt.engine.core.bll.job.ExecutionHandler.evaluateCorrelationId ( parameters ) ; org.junit.Assert.assertNotNull ( "Correlation id is invalid" , result ) ; org.junit.Assert.assertFalse ( "Correlation id is invalid" , result.getSucceeded ( ) ) ; }
Source:
protected boolean IsStorageWithSameNameExists ( ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDAO ( ) . getByName ( getStorageDomain ( ) . getstorage_name ( ) ) ) != null ; }

Target:
protected boolean IsStorageWithSameNameExists ( ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDao ( ) . getByName ( getStorageDomain ( ) . getstorage_name ( ) ) ) != null ; }
Source:
private void updateLUNConnectionsInfo ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { lun.setLunConnections ( new java.util.ArrayList ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) . getAllForLun ( lun.getLUNId ( ) ) ) ) ; }

Target:
private void updateLUNConnectionsInfo ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { lun.setLunConnections ( new java.util.ArrayList ( storageServerConnectionDao.getAllForLun ( lun.getLUNId ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.ImageStatus getRawValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return object.getimageStatus ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.ImageStatus getRawValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return object.getImageStatus ( ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.network.NetworkView value ) { super . setEntity ( value ) ; }

Target:
private void setNewCommand ( org.ovirt.engine.ui.uicommonweb.UICommand newCommand ) { this . newCommand = newCommand ; }
Source:
public void saveOrUpdate ( org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { setIdIfNeeded ( user ) ; new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( "InsertOrUpdateUser" ) . execute ( new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserMapSqlParameterSource ( user ) ) ; }

Target:
public void saveOrUpdate ( org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { setIdIfNeeded ( user ) ; new org.springframework.jdbc.core.simple.SimpleJdbcCall ( getJdbcTemplate ( ) ) . withProcedureName ( "InsertOrUpdateUser" ) . execute ( new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserMapSqlParameterSource ( user ) ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNicFilterParameter > parameters = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( parameters ) ; org.junit.Assert.assertEquals ( FixturesTool.NUMBER_OF_VM_NETWORK_FILTER_PARAMETERS , parameters.size ( ) ) ; }

Target:
protected org.ovirt.engine.core.dao.network.VmNicFilterParameterDao prepareDao ( ) { return dao ; }
Source:
protected org.ovirt.engine.core.vdsbroker.VmsListFetcher getVmsFetcher ( ) { return getRefreshStatistics ( ) ? new org.ovirt.engine.core.vdsbroker.VmsStatisticsFetcher ( vdsManager ) : new org.ovirt.engine.core.vdsbroker.VmsListFetcher ( vdsManager ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.VmsListFetcher getVmsFetcher ( ) { return isTimeToRefreshStatistics ( ) ? new org.ovirt.engine.core.vdsbroker.VmsStatisticsFetcher ( vdsManager ) : new org.ovirt.engine.core.vdsbroker.VmsListFetcher ( vdsManager ) ; }
Source:
protected org.ovirt.engine.ui.webadmin.section.main.presenter.DynamicUrlContentTabPresenter createPresenter ( ) { return new org.ovirt.engine.ui.webadmin.section.main.presenter.DynamicUrlContentTabPresenter ( eventBus , viewProvider.get ( ) , this , getPlaceManager ( ) , slot , isMainTab , contentUrl ) ; }

Target:
protected org.ovirt.engine.ui.webadmin.section.main.presenter.DynamicUrlContentTabPresenter createPresenter ( ) { return new org.ovirt.engine.ui.webadmin.section.main.presenter.DynamicUrlContentTabPresenter ( eventBus , viewProvider.get ( ) , this , getPlaceManager ( ) , slot , isMainTab , contentUrl , commonModelProvider ) ; }
Source:
public boolean isSetCustomProperties ( ) { return ( this . customProperties ) != null ; }

Target:
public boolean isSetRunOnce ( ) { return ( this . runOnce ) != null ; }
Source:
protected boolean canDoAction ( ) { if ( org.ovirt.engine.core.bll.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( org.ovirt.engine.core.bll.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return verifyNoLunDisks ( ) ; }
Source:
public void execute ( ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.logger.fine ( ( ( this . getClass ( ) . getName ( ) ) + ": Executing search" ) ) ; syncSearch ( ) ; }

Target:
public void execute ( ) { doGridTimerExecute ( ) ; }
Source:
public void testForValue ( ) { org.junit.Assert.assertEquals ( "wrong value" , QueryType.GetAgentFenceOptions , org.ovirt.engine.core.common.queries.QueryType.forValue ( QueryType.GetAgentFenceOptions.getValue ( ) ) ) ; }

Target:
public void testForValue ( ) { org.junit.jupiter.api.Assertions.assertEquals ( QueryType.GetAgentFenceOptions , org.ovirt.engine.core.common.queries.QueryType.forValue ( QueryType.GetAgentFenceOptions.getValue ( ) ) , "wrong value" ) ; }
Source:
private boolean isUpdateRequired ( org.ovirt.vdsmfake.domain.VM.VMStatus status ) { return status == ( VM.VMStatus.Up ) ? true : status == ( VM.VMStatus.PoweringDown ) ? true : status == ( VM.VMStatus.Paused ) ? true : false ; }

Target:
private boolean isUpdateRequired ( org.ovirt.vdsmfake.domain.VM.VMStatus status ) { switch ( status ) { case Up : case PoweringDown : case Paused : return true ; default : return false ; } }
Source:
protected void endStepJobAborted ( ) { endStepJob ( JobExecutionStatus.ABORTED , getStepMessageMap ( JobExecutionStatus.ABORTED ) , false ) ; }

Target:
protected void endStepJobAborted ( java.lang.String jobInfo ) { endStepJob ( JobExecutionStatus.ABORTED , getStepMessageMap ( JobExecutionStatus.ABORTED , jobInfo ) , false ) ; }
Source:
public void addToHistory_oneValueBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 10 , 12 ) , statistics.addToHistory ( java.util.Arrays.asList ( 10 ) , 12 , 100 ) ) ; }

Target:
public void addToHistoryOneValueBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 10 , 12 ) , statistics.addToHistory ( java.util.Arrays.asList ( 10 ) , 12 , 100 ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ListModel getProviderPluginType ( ) { return getNeutronAgentModel ( ) . getPluginType ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.providers.HostNetworkProviderModel getNetworkProviderModel ( ) { return networkProviderModel ; }
Source:
public boolean isCloudInitUsed ( ) { return ( ( getInitializationType ( ) ) == ( InitializationType.CloudInit ) ) && ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . isLinux ( getVmOsId ( ) ) ) ; }

Target:
public boolean isCloudInitUsed ( ) { return ( ( getInitializationType ( ) ) == ( InitializationType.CloudInit ) ) && ( ! ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . isWindows ( getVmOsId ( ) ) ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntity ( getStorageDomain ( ) . getStorageDynamicData ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDynamicDAO ( ) . update ( sd.getStorageDynamicData ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntity ( getStorageDomain ( ) . getStorageDynamicData ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDynamicDao ( ) . update ( sd.getStorageDynamicData ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeBrickAdd ( java.lang.String volumeName , java.lang.String [ ] bricks , int replicaCount , int stripeCount ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesHealInfoReturnForXmlRpc glusterVolumeHealInfo ( java.lang.String volumeName ) ;