auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetAllVfsConfigByHostId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( org.ovirt.engine.core.dao.network.HostNicVfsConfigDaoTest.HOST_ID ) ; org.junit.Assert.assertEquals ( 2 , vfsConfigs.size ( ) ) ; }

Target:
public void testGetAllVfsConfigByHostId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( FixturesTool.HOST_ID ) ; org.junit.Assert.assertEquals ( 2 , vfsConfigs.size ( ) ) ; }
Source:
public void canDoActionSucceeds ( ) { 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.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void validateSucceeds ( ) { 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.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
private void removeEntry ( org.ovirt.engine.core.common.utils.Pair < T , V > item ) { items.remove ( item ) ; contentPanel.remove ( item.getSecond ( ) . getParent ( ) ) ; }

Target:
private void removeEntry ( org.ovirt.engine.core.common.utils.Pair < T , V > item ) { items.remove ( item ) ; removeWidget ( item.getSecond ( ) ) ; }
Source:
public void testPersistentAuthWithValue ( ) { org.junit.Assert.assertTrue ( isPersistentAuth ( "persistent-auth=false" ) ) ; org.junit.Assert.assertTrue ( isPersistentAuth ( "persistent-auth=true" ) ) ; org.junit.Assert.assertTrue ( isPersistentAuth ( "persistent-auth=junk" ) ) ; }

Target:
public void testPersistentAuthOtherPreferencesInSameHeader ( ) { org.junit.Assert.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "persistent-auth, x, y" ) ) ; org.junit.Assert.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "x, persistent-auth, y" ) ) ; org.junit.Assert.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "x, y, persistent-auth" ) ) ; }
Source:
private boolean destinationHasSpace ( ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveVmCommand.getStorageDomain ( ) ) . isDomainHasSpaceForRequest ( ( ( long ) ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getActualDiskWithSnapshotsSize ( ) ) ) ) ) ; }

Target:
private boolean destinationHasSpace ( java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveVmCommand.getStorageDomain ( ) ) . isDomainHasSpaceForRequest ( ( ( long ) ( org.ovirt.engine.core.bll.ImagesHandler.sumImagesTotalSizeWithSnapshotSize ( diskImages ) ) ) ) ) ; }
Source:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > getImagesToCheckDestinationStorageDomains ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getDiskMap ( ) . values ( ) ; }

Target:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > getImagesToCheckDestinationStorageDomains ( ) { return vmDisksSource.getDiskTemplateMap ( ) . values ( ) ; }
Source:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvds_group_id ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_id" ) ) ; }

Target:
public void setDedicatedVmForVds ( org.ovirt.engine.core.compat.NGuid value ) { vmStatic.setDedicatedVmForVds ( value ) ; }
Source:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvds_group_id ( value ) ; }

Target:
public java.lang.String getTimeZone ( ) { return vmStatic.gettime_zone ( ) ; }
Source:
public void onSuccess ( ) { log.debug ( "Command succeeded, releasing macs {}." , super . macs ) ; releaseMacs ( ) ; }

Target:
public void releaseMacsInCaseOfRollback ( java.util.List < java.lang.String > macs ) { registerRollbackHandler ( ( ( org.ovirt.engine.core.utils.transaction.TransactionRollbackListener ) ( ( ) -> { log.debug ( "Rollback occurred, releasing macs {}." , macs ) ; org.ovirt.engine.core.bll.network.macpool.macPool.freeMacs ( macs ) ; } ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return ( ( network.getMtu ( ) ) == 0 ) || ( org.ovirt.engine.core.common.FeatureSupported.mtuSpecification ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return ( ( network.getMtu ( ) ) == 0 ) || ( org.ovirt.engine.core.common.FeatureSupported.mtuSpecification ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.DiskImage x , org.ovirt.engine.core.common.businessentities.DiskImage y ) { return org.ovirt.engine.ui.uicompat.DateTimeUtils.getTimeOfDay ( x.getlastModified ( ) ) . compareTo ( org.ovirt.engine.ui.uicompat.DateTimeUtils.getTimeOfDay ( y.getlastModified ( ) ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.DiskImage x , org.ovirt.engine.core.common.businessentities.DiskImage y ) { return org.ovirt.engine.ui.uicompat.DateTimeUtils.getTimeOfDay ( x.getLastModified ( ) ) . compareTo ( org.ovirt.engine.ui.uicompat.DateTimeUtils.getTimeOfDay ( y.getLastModified ( ) ) ) ; }
Source:
public void testValidateFieldValueWithEnum ( ) { org.ovirt.engine.core.searchbackend.IConditionFieldAutoCompleter comp = new org.ovirt.engine.core.searchbackend.DiskConditionFieldAutoCompleter ( ) ; assertTrue ( comp.validateFieldValue ( "FORMAT" , "RAW" ) ) ; }

Target:
public void testValidateFieldValueWithEnum ( ) { org.ovirt.engine.core.searchbackend.IConditionFieldAutoCompleter comp = new org.ovirt.engine.core.searchbackend.DiskConditionFieldAutoCompleter ( ) ; org.junit.Assert.assertTrue ( comp.validateFieldValue ( "FORMAT" , "RAW" ) ) ; }
Source:
private void removeTemplateFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateCommand.RemoveNetwork ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }

Target:
private void removeTemplateFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateCommand.removeNetwork ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }
Source:
private javax.net.ssl.SSLEngine createSSLEngine ( boolean clientMode ) { final javax.net.ssl.SSLContext ctx = this . sslContext ; if ( ctx == null ) { return null ; } final javax.net.ssl.SSLEngine engine = ctx.createSSLEngine ( ) ; engine.setUseClientMode ( clientMode ) ; return engine ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createConnectedClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , java.nio.channels.SocketChannel channel ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient ( reactor , selector , hostname , port , this . sslContext , channel ) ; }
Source:
public static java.lang.String linkHref ( java.lang.String ... segments ) { java.lang.StringBuilder href = org.ovirt.engine.api.v3.helpers.V3LinkHelper.linkBuffer ( ) ; for ( java.lang.String segment : segments ) { href.append ( "/" ) ; href.append ( segment ) ; } return href.toString ( ) ; }

Target:
public static java.lang.String linkHref ( java.lang.String ... segments ) { org.ovirt.engine.api.restapi.invocation.Current current = org.ovirt.engine.api.restapi.invocation.CurrentManager.get ( ) ; return current.getAbsolutePath ( segments ) ; }
Source:
private void clearCanDoActionMessages ( ) { command.getReturnValue ( ) . getCanDoActionMessages ( ) . clear ( ) ; }

Target:
private void clearValidationMessages ( ) { command.getReturnValue ( ) . getValidationMessages ( ) . clear ( ) ; }
Source:
java.lang.String vnicTypeDoesntMatchPassthroughProfile ( java.lang.String type ) ;

Target:
java.lang.String testFailedWithErrorMsg ( java.lang.String errorMessage ) ;
Source:
public void resetStatusUpdateTime ( org.ovirt.engine.core.compat.Guid id ) { this . vmStatusUpdated.remove ( id ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.V2VJobInfo removeV2VJobInfoForVm ( org.ovirt.engine.core.compat.Guid vmId ) { synchronized ( vmIdToV2VJob ) { return vmIdToV2VJob.remove ( vmId ) ; } }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . showRdpPanel ( event.getValue ( ) ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { boolean previousSpicePreference = getView ( ) . getSpiceProxy ( ) ; selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Html5 ) ; spiceProxyUserPreference = previousSpicePreference ; }
Source:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RESTART ) ; log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__RESTART ) ; log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }
Source:
protected java.lang.String getRemoveVnicFullMsg ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface vnic ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . vnicFromVm ( vnic.getName ( ) , vnic.getVmName ( ) ) ; }

Target:
protected java.lang.String getRemoveVnicFullMsg ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vnic ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . vnicFromVm ( vnic.getName ( ) , vnic.getVmName ( ) ) ; }
Source:
protected void SelectedItemsChanged ( ) { super . SelectedItemsChanged ( ) ; UpdateActionAvailability ( ) ; UpdateConsoleModels ( ) ; }

Target:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; updateConsoleModels ( ) ; UpdateActionAvailability ( ) ; }
Source:
public void stop ( ) { com.google.gwt.core.client.GWT.log ( ( ( "GridTimer[" + ( name ) ) + "].stop()" ) ) ; active = false ; doStop ( ) ; }

Target:
public void stop ( ) { org.ovirt.engine.ui.uicommonweb.models.GridTimer.logger.fine ( ( ( "GridTimer[" + ( name ) ) + "].stop()" ) ) ; active = false ; doStop ( ) ; }
Source:
public void AddNetwork ( ) { if ( ( getEntity ( ) ) != null ) { StartProgress ( null ) ; AddNetworkUpdateData ( ) ; } }

Target:
public void addNetwork ( ) { if ( ( getEntity ( ) ) != null ) { startProgress ( null ) ; addNetworkUpdateData ( ) ; } }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { if ( ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( VdsmEnv.OVIRT_NODE ) ) ) ) { _messages.post ( InstallerMessages.Severity.INFO , "Host is ovirt-node" ) ; setNode ( ) ; } return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { if ( ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( VdsmEnv.OVIRT_NODE ) ) ) ) { _messages.post ( InstallerMessages.Severity.INFO , "Host is ovirt-node" ) ; _setNode ( ) ; } return null ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( actionType , parameters , executionContext ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters , context.clone ( ) . withExecutionContext ( executionContext ) ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3User user ) { return adaptAdd ( delegate :: add , user ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3User user ) { return adaptAdd ( getDelegate ( ) :: add , user ) ; }
Source:
void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { searchButton.setLabel ( constants.goPermissionsPopup ( ) ) ; }

Target:
void localize ( ) { searchButton.setLabel ( org.ovirt.engine.ui.common.view.popup.permissions.AbstractPermissionsPopupView.constants.goPermissionsPopup ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return getVdsBroker ( ) . runVdsCommand ( commandType , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return vdsBroker.runVdsCommand ( commandType , parameters ) ; }
Source:
public void setModel ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) { this . consoleModel = model ; }

Target:
public void setVmConsoles ( org.ovirt.engine.ui.uicommonweb.models.VmConsoles vmConsoles ) { this . vmConsoles = vmConsoles ; }
Source:
public void onUiCommonInit ( org.ovirt.engine.ui.common.uicommon.model.UiCommonInitEvent event ) { updateController ( ) ; }

Target:
public void onApplicationFocusChange ( org.ovirt.engine.ui.common.system.ApplicationFocusChangeEvent event ) { onWindowFocusChange ( event.isInFocus ( ) ) ; }
Source:
public void checkInvalidAddress ( ) { org.junit.Assert.assertFalse ( underTest.test ( generateVdsNetworkInterface ( getINVALID ( ) ) ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface generateVdsNetworkInterface ( java.lang.String value ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; setIfaceProperty ( iface , value ) ; return iface ; }
Source:
protected org.ovirt.engine.core.compat.Version getClusterCompatibilityVersion ( ) { return latestCluster ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Version getCompatibilityVersion ( ) { return latestCluster ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.BootSequence getdefault_boot_sequence ( ) { return this . mVmStatic.getdefault_boot_sequence ( ) ; }

Target:
public boolean isFailBack ( ) { return this . vmStatic.getfail_back ( ) ; }
Source:
private boolean validateFreeSpaceOnDestinationDomain ( org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return validate ( storageDomainValidator.hasSpaceForClonedDisks ( disksList ) ) ; }

Target:
private boolean validateFreeSpaceOnDestinationDomain ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return validate ( storageDomainValidator.hasSpaceForClonedDisks ( disksList ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( runOnceCommand ) ) { if ( Validate ( ) ) { onRunOnce ( ) ; } } else if ( command == ( cancelCommand ) ) { commandTarget.ExecuteCommand ( command ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( runOnceCommand ) ) { if ( Validate ( ) ) { onRunOnce ( ) ; } } else if ( command == ( cancelCommand ) ) { commandTarget.executeCommand ( command ) ; } }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.isBoot ( ) ? resources.bootableDiskIcon ( ) : null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getSerial ( ) ; }
Source:
public void testSendInvalidFile ( ) throws java.lang.Exception { client.sendFile ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1.getAbsolutePath ( ) , ( ( remote ) + "'" ) ) ; }

Target:
public void testSendInvalidFile ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> client.sendFile ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1.getAbsolutePath ( ) , ( ( remote ) + "'" ) ) ) ; }
Source:
public void setstorage_ids ( java.util.ArrayList < org.ovirt.engine.core.compat.Guid > value ) { storageIds = value ; }

Target:
public java.lang.String getAppList ( ) { return appList ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return getTagDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; }

Target:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( VdcBllMessages.HOT_PLUG_IS_NOT_SUPPORTED ) ; }
Source:
protected void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { latch.setLabel ( constants.permanentlyRemoveLabel ( ) ) ; }

Target:
protected void localize ( ) { latch.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.VmDiskRemovePopupView.constants.permanentlyRemoveLabel ( ) ) ; }
Source:
public void testInterfaceByNameExistsWhenInterfacesNameIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( null ) ) . interfaceByNameExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) ) ; }

Target:
public void testInterfaceByNameExistsWhenInterfacesNameIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( null ) ) . interfaceHasNameSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOST_NETWORK_INTERFACE_DOES_NOT_HAVE_NAME_SET ) ) ; }
Source:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "status" , status ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicStatus" , parameterSource ) ; }

Target:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getStatusSqlParameterSource ( id , status ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicStatus" , parameterSource ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Permission > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Permission > ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( commandId , phase , type , active , lastUpdated , message , vdsId , diskId , imagedTicketId , proxyUri , signedTicket , bytesSent , bytesTotal ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( commandId , phase , type , active , lastUpdated , message , vdsId , diskId , imagedTicketId , proxyUri , signedTicket , bytesSent , bytesTotal , clientInactivityTimeout ) ; }
Source:
public boolean isSpiceFileTransferToggleSupported ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.SpiceFileTransferToggleSupported , version ) ) ) ; }

Target:
public boolean isEnableDeprecatedClientModeSpicePlugin ( ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.EnableDeprecatedClientModeSpicePlugin , getDefaultConfigurationVersion ( ) ) ) ) ; }
Source:
public java.util.HashSet < org.ovirt.engine.core.compat.Guid > GetTagIdAndChildrenIdsAsSet ( org.ovirt.engine.core.compat.Guid tagId ) { org.ovirt.engine.core.common.businessentities.Tags tag = GetTagById ( tagId ) ; java.util.HashSet < org.ovirt.engine.core.compat.Guid > set = new java.util.HashSet < > ( ) ; tag.getTagIdAndChildrenIdsAsList ( set ) ; return set ; }

Target:
public java.util.HashSet < org.ovirt.engine.core.compat.Guid > getTagIdAndChildrenIdsAsSet ( org.ovirt.engine.core.compat.Guid tagId ) { org.ovirt.engine.core.common.businessentities.Tags tag = getTagById ( tagId ) ; java.util.HashSet < org.ovirt.engine.core.compat.Guid > set = new java.util.HashSet < > ( ) ; tag.getTagIdAndChildrenIdsAsList ( set ) ; return set ; }
Source:
protected org.ovirt.engine.core.bll.IsoDomainListSyncronizer getIsoDomainListSyncronizer ( ) { return new org.ovirt.engine.core.bll.IsoDomainListSyncronizer ( ) { @ java.lang.Override protected void init ( ) { } @ java.lang.Override public org.ovirt.engine.core.compat.Guid findActiveISODomain ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return null ; } } ; }

Target:
public void testVmFailNoDisks ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , null , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) ) , false , VdcBllMessages.VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK ) ; }
Source:
org.ovirt.engine.core.common.businessentities.VDSStatus [ ] statuses ( ) default { VDSStatus.NonResponsive , VDSStatus.Maintenance , VDSStatus.Down , VDSStatus.Unassigned , VDSStatus.InstallFailed , VDSStatus.PendingApproval } ;

Target:
org.ovirt.engine.core.common.businessentities.VDSStatus [ ] statuses ( ) default { VDSStatus.NonResponsive , VDSStatus.Maintenance , VDSStatus.Down , VDSStatus.Unassigned , VDSStatus.InstallFailed , VDSStatus.PendingApproval , VDSStatus.InstallingOS } ;
Source:
public void hostIsPoweredOffWhenFenceStatusReturnsOff ( ) { mockFenceAgent ( ) ; mockFenceResult ( agentExecutor1 , new org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult ( org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult.Status.SUCCESS , org.ovirt.engine.core.common.businessentities.pm.PowerStatus.OFF ) ) ; org.junit.Assert.assertTrue ( executor.isHostPoweredOff ( ) ) ; }

Target:
public void hostIsPoweredOffWhenFenceStatusReturnsOff ( ) { mockFenceAgent ( ) ; mockFenceResult ( agentExecutor1 , new org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult ( org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult.Status.SUCCESS , org.ovirt.engine.core.common.businessentities.pm.PowerStatus.OFF ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( executor.isHostPoweredOff ( ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getVmName ( ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getVmName ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType getDiskStorageType ( ) { return imagesButton.getValue ( ) ? org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE : lunsButton.getValue ( ) ? org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.LUN : null ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType getDiskStorageType ( ) { return imagesButton.getValue ( ) ? org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE : lunsButton.getValue ( ) ? org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.LUN : null ; }
Source:
public org.ovirt.engine.core.common.users.VdcUser getUser ( java.lang.String sessionId , boolean refresh ) { return ( ( org.ovirt.engine.core.common.users.VdcUser ) ( GetData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.VDC_USER_PARAMETER_NAME , refresh ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser getUser ( java.lang.String sessionId , boolean refresh ) { return ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( GetData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , refresh ) ) ) ; }
Source:
public void WriteRaw ( java.lang.String string ) { try { if ( string == null ) string = "" ; writer.writeCharacters ( string ) ; } catch ( javax.xml.stream.XMLStreamException e ) { throw new java.lang.RuntimeException ( "Failed to write CDATA" , e ) ; } }

Target:
public void writeRaw ( java.lang.String string ) { try { if ( string == null ) string = "" ; writer.writeCharacters ( string ) ; } catch ( javax.xml.stream.XMLStreamException e ) { throw new java.lang.RuntimeException ( "Failed to write CDATA" , e ) ; } }
Source:
private void SearchAllRoles ( ) { setItemsFilter ( null ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
private void searchAllRoles ( ) { setItemsFilter ( null ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
public void unlinkedWhenUnlinkingSupported ( ) throws java.lang.Exception { unlinkingTest ( ValidationResult.VALID , true , false ) ; }

Target:
public void linkedWhenUnlinkingNotSupported ( ) throws java.lang.Exception { unlinkingTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , false , true ) ; }
Source:
public void networkLabeled ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.getLabel ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextPropertyString ( 10 ) ) ; org.junit.Assert.assertThat ( validator.notLabeled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) ) ; }

Target:
public void networkLabeled ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.getLabel ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextPropertyString ( 10 ) ) ; org.junit.Assert.assertThat ( validator.notLabeled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) ) ; }
Source:
private static boolean isEnoughFreePct ( final org.ovirt.engine.core.common.businessentities.storage_domains domain ) { return ( domain.getStorageDynamicData ( ) . getfreeDiskPercent ( ) ) > ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.getLowDiskPercentThreshold ( ) ) ; }

Target:
public static boolean hasSpaceForRequest ( final org.ovirt.engine.core.common.businessentities.storage_domains domain , final long requestedSize ) { return ( ( domain.getavailable_disk_size ( ) ) != null ) && ( ( ( domain.getavailable_disk_size ( ) ) - requestedSize ) >= ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.getLowDiskSpaceThreshold ( ) ) ) ; }
Source:
public void testGetAllForUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForUser ( org.ovirt.engine.core.dao.VmDAOTest.USER_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void getAllRunningOnOrMigratingToVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllRunningOnOrMigratingToVds ( FixturesTool.VDS_RHEL6_NFS_SPM ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void testGetByUsername ( ) { org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsernameAndDomain ( existingUser.getLoginName ( ) , existingUser.getDomain ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingUser , result ) ; }

Target:
public void testGetByUsername ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser result = dao.getByUsernameAndDomain ( existingUser.getLoginName ( ) , existingUser.getDomain ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingUser , result ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.String > getPredefinedProperties ( org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.VmStatic vmStatic ) { java.util.Map < java.lang.String , java.lang.String > map = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; getPredefinedProperties ( version , vmStatic , map ) ; return map ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getUserDefinedProperties ( org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.VmStatic vmStatic ) { java.util.Map < java.lang.String , java.lang.String > map = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; getUserDefinedProperties ( version , vmStatic , map ) ; return map ; }
Source:
private void initModel ( org.ovirt.engine.ui.uicommonweb.models.ConsolePopupModel model ) { consoleOptionsPersister.loadFromLocalStorage ( model.getModel ( ) ) ; }

Target:
private void initModel ( org.ovirt.engine.ui.uicommonweb.models.ConsolePopupModel model ) { consoleOptionsPersister.loadFromLocalStorage ( model.getVmConsoles ( ) ) ; }
Source:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView value ) { super . setSelectedItem ( value ) ; getNicType ( ) . setSelectedItem ( getDeafultNicTypeByProfile ( ) ) ; updateLinkChangability ( ) ; }

Target:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView value ) { super . setSelectedItem ( value ) ; getNicType ( ) . setSelectedItem ( getDefaultNicTypeByProfile ( ) ) ; updateLinkChangability ( ) ; }
Source:
private void writeServiceLocator ( org.ovirt.api.metamodel.concepts.Locator locator ) { writeStartElement ( "locator" ) ; writeCommon ( locator ) ; locator.parameters ( ) . forEach ( this :: writeParameter ) ; writeEndElement ( ) ; }

Target:
private void writeServiceLocator ( org.ovirt.api.metamodel.concepts.Locator locator ) { writer.writeStartElement ( "locator" ) ; writeCommon ( locator ) ; locator.parameters ( ) . forEach ( this :: writeParameter ) ; writer.writeEndElement ( ) ; }
Source:
public void breakBond ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel bonded : getBonded ( ) ) { bonded.getIface ( ) . setBondName ( null ) ; } }

Target:
public java.util.List < org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel > getSlaves ( ) { return slaves ; }
Source:
protected org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase checkAndPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.bll.context.CommandContext context ) { return attemptRollback ( commandType , params , context ) ; }
Source:
private void addSwitchTypeIfSpecified ( java.util.Map < java.lang.String , java.lang.Object > resultMap ) { if ( ( this . switchType ) != null ) { resultMap.put ( VdsProperties.SWITCH_KEY , this . switchType.getOptionValue ( ) ) ; } }

Target:
private void addSwitchTypeIfSpecified ( java.util.Map < java.lang.String , java.lang.Object > resultMap ) { org.ovirt.engine.core.common.network.SwitchType switchType = org.ovirt.engine.core.vdsbroker.vdsbroker.HostSetupNetworksVDSCommand.getParameters ( ) . getClusterSwitchType ( ) ; if ( switchType != null ) { resultMap.put ( VdsProperties.SWITCH_KEY , switchType.getOptionValue ( ) ) ; } }
Source:
public java.lang.Integer getDisplay ( ) { return this . vmDynamic.getDisplay ( ) ; }

Target:
public void setEmulatedMachine ( java.lang.String value ) { this . vmDynamic.setEmulatedMachine ( value ) ; }
Source:
public static boolean isCD ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return ( device.getType ( ) . equals ( VmDeviceType.DISK.getName ( ) ) ) && ( device.getDevice ( ) . equals ( VmDeviceType.CDROM.getName ( ) ) ) ; }

Target:
public static boolean isCD ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return ( ( device.getType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType.DISK ) ) && ( device.getDevice ( ) . equals ( VmDeviceType.CDROM.getName ( ) ) ) ; }
Source:
public void onDrop ( com.google.gwt.event.dom.client.DropEvent event ) { doDrag ( event , true ) ; animatedPanel.getElement ( ) . removeClassName ( style.networkGroupDragOver ( ) ) ; }

Target:
public void onDrop ( com.google.gwt.event.dom.client.DropEvent event ) { event.preventDefault ( ) ; doDrag ( event , true ) ; animatedPanel.getElement ( ) . removeClassName ( style.networkGroupDragOver ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionType getaction_type ( ) { return actionType ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionType getActionType ( ) { return rootCmdEntity.getCommandType ( ) ; }
Source:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }

Target:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getClusterCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }
Source:
public void warn ( java.lang.Object arg0 , java.lang.Throwable arg1 ) { log.warn ( addPrefixToLogMessage ( arg0 ) , arg1 ) ; }

Target:
public void warn ( java.lang.Object msg , java.lang.Throwable t ) { log.warn ( addPrefixToLogMessage ( msg ) , t ) ; }
Source:
public com.google.gwt.event.shared.HandlerRegistration addKeyDownHandler ( com.google.gwt.event.dom.client.KeyDownHandler handler ) { return asSuggestBox ( ) . addKeyDownHandler ( handler ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addKeyDownHandler ( com.google.gwt.event.dom.client.KeyDownHandler handler ) { com.google.gwt.event.shared.HandlerRegistration handlerRegistration = asSuggestBox ( ) . addKeyDownHandler ( handler ) ; handlerRegistrations.add ( handlerRegistration ) ; return handlerRegistration ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { test ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { updateProvisionedHosts ( ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSaveInternal ( result.getReturnValue ( ) . get ( 0 ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel ) ( result.getState ( ) ) ) ; localModel.postOnSaveInternal ( result.getReturnValue ( ) . get ( 0 ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser getVdcUser ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setId ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( getId ( ) ) ) ; user.setDomain ( getDomain ( ) ) ; user.setLoginName ( getUserName ( ) ) ; return user ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser getDbUser ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setId ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( getId ( ) ) ) ; user.setDomain ( getDomain ( ) ) ; user.setLoginName ( getUserName ( ) ) ; return user ; }
Source:
protected org.ovirt.engine.core.compat.Guid generateNonExistingId ( ) { return new org.ovirt.engine.core.compat.Guid ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid generateNonExistingId ( ) { return org.ovirt.engine.core.compat.Guid.Empty ; }
Source:
protected org.ovirt.engine.core.dao.SnapshotDao getSnapshotDao ( ) { return org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery.getDbFacade ( ) . getSnapshotDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.SnapshotDao getSnapshotDao ( ) { return snapshotDao ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.BrickProperties getBrickProperties ( ) { org.ovirt.engine.core.common.businessentities.gluster.BrickProperties brickProperties = new org.ovirt.engine.core.common.businessentities.gluster.BrickProperties ( ) ; brickProperties.setBrickId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; brickProperties.setPort ( 24009 ) ; brickProperties.setStatus ( GlusterStatus.UP ) ; brickProperties.setPid ( 1459 ) ; return brickProperties ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.BrickProperties getBrickProperties ( ) { org.ovirt.engine.core.common.businessentities.gluster.BrickProperties brickProperties = new org.ovirt.engine.core.common.businessentities.gluster.BrickProperties ( ) ; brickProperties.setBrickId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; brickProperties.setPort ( 24009 ) ; brickProperties.setStatus ( GlusterStatus.UP ) ; brickProperties.setPid ( 1459 ) ; return brickProperties ; }
Source:
public static java.util.Map < java.lang.String , java.lang.Object > getSessionData ( javax.servlet.ServletContext ctx , java.lang.String token ) { return ( ( java.util.Map < java.lang.String , java.util.Map < java.lang.String , java.lang.Object > > ) ( ctx.getAttribute ( org.ovirt.engine.core.sso.utils.SSOUtils.SSO_SESSIONS ) ) ) . get ( token ) ; }

Target:
public static org.ovirt.engine.core.sso.utils.SSOContext getSsoContext ( javax.servlet.ServletContext ctx ) { return ( ( org.ovirt.engine.core.sso.utils.SSOContext ) ( ctx.getAttribute ( SSOConstants.OVIRT_SSO_CONTEXT ) ) ) ; }
Source:
public java.lang.String getLabelViaAttached ( ) { return labelModel.computeSelecetedLabels ( ) . contains ( getEntity ( ) . getLabel ( ) ) ? getEntity ( ) . getLabel ( ) : null ; }

Target:
public java.lang.String getLabelViaAttached ( ) { return labelModel.computeSelectedLabels ( ) . contains ( getEntity ( ) . getLabel ( ) ) ? getEntity ( ) . getLabel ( ) : null ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetPermissionsByAdElementId , new org.ovirt.engine.core.common.queries.MultilevelAdministrationByAdElementIdParameters ( getEntity ( ) . getuser_id ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetPermissionsByAdElementId , new org.ovirt.engine.core.common.queries.MultilevelAdministrationByAdElementIdParameters ( getEntity ( ) . getuser_id ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getStorageDomainDao ( ) . getForStoragePool ( domainId , org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getStoragePool ( ) . getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return storageDomainDao.getForStoragePool ( domainId , org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getStoragePool ( ) . getId ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmInterfaces ( ) ; addVmStatistics ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
protected org.ovirt.engine.core.bll.validator.ImportValidator getImportValidator ( ) { if ( ( importValidator ) == null ) { importValidator = new org.ovirt.engine.core.bll.validator.ImportValidator ( getParameters ( ) ) ; } return importValidator ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > getInterfaces ( ) { if ( ( interfaces ) == null ) { interfaces = org.ovirt.engine.core.bll.VmCommand.getVmNicDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; } return interfaces ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > getInterfaces ( ) { if ( ( interfaces ) == null ) { interfaces = vmNicDao.getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; } return interfaces ; }
Source:
public void networkSet ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkSet ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return org.ovirt.engine.core.compat.Guid.createGuidFromString ( rs.getString ( 1 ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( rs.getString ( 1 ) ) ; }
Source:
public java.lang.String getCandidateDisplayName ( ) { return getVmData ( ) . getvm_name ( ) ; }

Target:
public java.lang.String getCandidateDisplayName ( ) { return getVmData ( ) . getVmName ( ) ; }
Source:
protected void executeCommand ( ) { initOldParentTagName ( ) ; org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . moveTag ( org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getTagId ( ) , org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getNewParentId ( ) ) ; org.ovirt.engine.core.bll.MoveTagCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { initOldParentTagName ( ) ; tagsDirector.moveTag ( org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getTagId ( ) , org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getNewParentId ( ) ) ; org.ovirt.engine.core.bll.MoveTagCommand.setSucceeded ( true ) ; }
Source:
protected void cancelConfirm ( ) { setConfirmWindow ( null ) ; }

Target:
protected void cancelConfirm ( ) { org.ovirt.engine.ui.uicommonweb.models.storage.ManageBackupModel.setConfirmWindow ( null ) ; }
Source:
public static boolean isDiskInterfaceSupportedByOs ( int osId , org.ovirt.engine.core.compat.Version clusterVersion , org.ovirt.engine.core.common.businessentities.storage.DiskInterface diskInterface ) { java.util.List < java.lang.String > diskInterfaces = org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getDiskInterfaces ( osId , clusterVersion ) ; return diskInterfaces.contains ( diskInterface.name ( ) ) ; }

Target:
public boolean isDiskInterfaceSupportedByOs ( int osId , org.ovirt.engine.core.compat.Version clusterVersion , org.ovirt.engine.core.common.businessentities.storage.DiskInterface diskInterface ) { java.util.List < java.lang.String > diskInterfaces = osRepository.getDiskInterfaces ( osId , clusterVersion ) ; return diskInterfaces.contains ( diskInterface.name ( ) ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.common.businessentities.Tags result = dao.get ( existing.gettag_id ( ) ) ; org.junit.Assert.assertEquals ( existing , result ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.common.businessentities.Tags result = dao.get ( existing.getTagId ( ) ) ; org.junit.Assert.assertEquals ( existing , result ) ; }