auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void validateWrongVersion ( ) { sp.setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_REFRESH_LUNS_UNSUPPORTED_ACTION ) ; sp.setCompatibilityVersion ( Version.v3_6 ) ; }

Target:
public void validateWrongVersion ( ) { sp.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.domain.RefreshLunsSizeCommandTest.UNSUPPORTED_VERSION ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_REFRESH_LUNS_UNSUPPORTED_ACTION ) ; sp.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.domain.RefreshLunsSizeCommandTest.SUPPORTED_VERSION ) ; }
Source:
java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value ) ;

Target:
java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) ;
Source:
private void logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "ResourceManager::refreshVdsRunTimeInfo::Failed to AfterRefreshTreatment VDS error = '{0}', continuing." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getName ( ) , ex ) ; }
Source:
public boolean ConnectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.ConnectStorageServer.getValue ( ) , lun , storagePoolId ) ; }

Target:
public boolean connectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.ConnectStorageServer.getValue ( ) , lun , storagePoolId ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { parentModel.setWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { parentModel.setWindow ( null ) ; }
Source:
public static org.ovirt.engine.core.compat.Version getCompatilibilyVersion ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatilibilyVersion ( vm.getStaticData ( ) ) ; }

Target:
public static org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vm.getStaticData ( ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpBasicUriExpectations ( ) ; setUriInfo ( uriInfo ) ; setUpEntityQueryExpectations ( 1 ) ; initParetResource ( resource.parent , uriInfo ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }

Target:
protected void init ( ) { super . init ( ) ; setUpParentExpectations ( ) ; }
Source:
public java.lang.String getDiskAlias ( ) { if ( ( disk ) != null ) { return disk.getDiskAlias ( ) ; } return "" ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Disk getDisk ( ) { if ( ( disk ) == null ) { disk = getDiskDao ( ) . get ( ( ( org.ovirt.engine.core.compat.Guid ) ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getEntityId ( ) ) ) ) ; } return disk ; }
Source:
protected void configure ( ) { }

Target:
protected void configure ( ) { bind ( org.ovirt.engine.ui.uicommonweb.models.events.EventListModel.class ) . in ( com.google.inject.Singleton.class ) ; }
Source:
public void setItems ( java.lang.Iterable value ) { ignoreStorageDomains = true ; super . setItems ( value ) ; }

Target:
public void setItems ( java.util.Collection value ) { ignoreStorageDomains = true ; super . setItems ( value ) ; }
Source:
protected void executeIrsBrokerCommand ( ) { resourceManager.runVdsCommand ( VDSCommandType.HSMStopTask , new org.ovirt.engine.core.common.vdscommands.HSMTaskGuidBaseVDSCommandParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getParameters ( ) . getTaskId ( ) ) ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { resourceManager.runVdsCommand ( VDSCommandType.HSMStopTask , new org.ovirt.engine.core.common.vdscommands.HSMTaskGuidBaseVDSCommandParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getCurrentIrsProxy ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SPMStopTaskVDSCommand.getParameters ( ) . getTaskId ( ) ) ) ; }
Source:
protected R newModel ( ) { return org.ovirt.engine.api.common.util.ReflectionHelper.newModel ( this ) ; }

Target:
protected R newModel ( ) { return org.ovirt.engine.api.utils.ReflectionHelper.newModel ( this ) ; }
Source:
private void enableEditPoolFields ( ) { descriptionEditor.setEnabled ( true ) ; numOfDesktopsEditor.setEnabled ( true ) ; prestartedVmsEditor.setEnabled ( true ) ; quotaEditor.setEnabled ( true ) ; }

Target:
private void enableEditPoolFields ( ) { descriptionEditor.setEnabled ( true ) ; prestartedVmsEditor.setEnabled ( true ) ; quotaEditor.setEnabled ( true ) ; editPrestartedVmsEditor.setEnabled ( true ) ; incraseNumOfVmsEditor.setEnabled ( true ) ; }
Source:
public void testAccepts01 ( ) { org.junit.Assert.assertEquals ( org.ovirt.engine.api.utils.BooleanParser.parseBoolean ( "1" ) , true ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.utils.BooleanParser.parseBoolean ( "0" ) , false ) ; }

Target:
public void testAccepts01 ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.api.utils.BooleanParser.parseBoolean ( "1" ) ) ; org.junit.Assert.assertFalse ( org.ovirt.engine.api.utils.BooleanParser.parseBoolean ( "0" ) ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getModel ( ) . getUndoCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getModel ( ) . getNewCommand ( ) ; }
Source:
public java.lang.Object runInTransaction ( ) { boolean isPartiallySubmittedCommand = isPartiallySubmittedCommand ( tasks ) ; for ( org.ovirt.engine.core.common.businessentities.AsyncTasks task : tasks ) { handleTaskOfCommandWithEmptyVdsmId ( isPartiallySubmittedCommand , task ) ; } return null ; }

Target:
public java.lang.Object runInTransaction ( ) { try { boolean isPartiallySubmittedCommand = isPartiallySubmittedCommand ( tasks ) ; for ( org.ovirt.engine.core.common.businessentities.AsyncTasks task : tasks ) { handleTaskOfCommandWithEmptyVdsmId ( isPartiallySubmittedCommand , task ) ; } return null ; } finally { irsBrokerLatch.countDown ( ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > stopImageTransferSession ( java.lang.String ticketId , java.lang.String spId , java.lang.String sdId , java.lang.String imgId , java.lang.String volId ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > teardownImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID ) ;
Source:
protected abstract void setupSelectedTemplate ( org.ovirt.engine.ui.uicommonweb.models.ListModel model , java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > templates ) ;

Target:
protected abstract java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > filterClusters ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters ) ;
Source:
private void UserName_EntityChanged ( ) { getDomain ( ) . setIsChangable ( GetDomainAvailability ( ) ) ; }

Target:
private void userName_EntityChanged ( ) { getDomain ( ) . setIsChangable ( getDomainAvailability ( ) ) ; }
Source:
private void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; setWindow ( null ) ; }

Target:
private void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; cancelConfirmation ( ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > GetTagsAttachedToObject ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDAO ( ) . getAllForVmPools ( org.ovirt.engine.core.bll.VmPoolCommandBase.getParameters ( ) . getVmPoolId ( ) . toString ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDAO ( ) . getAllForVmPools ( org.ovirt.engine.core.bll.VmPoolCommandBase.getParameters ( ) . getVmPoolId ( ) . toString ( ) ) ; }
Source:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.RemoveStorageServerConnection.getValue ( ) , lun , Guid.Empty ) ; }

Target:
public boolean storageDomainRemoved ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return true ; }
Source:
public void setCurrentRefreshRate ( int newRefreshRate ) { getModelTimer ( ) . setRefreshRate ( newRefreshRate ) ; saveRefreshRate ( newRefreshRate ) ; }

Target:
public void setCurrentRefreshRate ( int newRefreshRate ) { saveRefreshRate ( newRefreshRate ) ; getModelTimer ( ) . setRefreshRate ( readRefreshRate ( ) ) ; updateTimer ( ) ; }
Source:
private void assertExpected ( java.lang.Integer ... values ) { for ( java.lang.Integer v : values ) { org.junit.Assert.assertEquals ( v , map.get ( org.ovirt.engine.core.utils.ReapedMapTest.MAPPER.getKey ( v ) ) ) ; } }

Target:
private void assertExpected ( java.lang.Integer ... values ) { for ( java.lang.Integer v : values ) { org.junit.jupiter.api.Assertions.assertEquals ( v , map.get ( org.ovirt.engine.core.utils.ReapedMapTest.MAPPER.getKey ( v ) ) ) ; } }
Source:
public static boolean isDisplayStringCustom ( java.lang.String displayString ) { return ! ( org.ovirt.engine.ui.uicommonweb.models.providers.NeutronPluginTranslator.pluginForDisplay.containsKey ( displayString ) ) ; }

Target:
public static java.lang.String getPluginNameForDisplayString ( java.lang.String displayString ) { org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType pluginType = org.ovirt.engine.ui.uicommonweb.models.providers.NeutronPluginTranslator.pluginForDisplay.get ( displayString.toLowerCase ( ) ) ; return pluginType == null ? displayString : pluginType.name ( ) ; }
Source:
private void OnAssignTags ( ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( getWindow ( ) ) ) ; GetAttachedTagsToSelectedVMs ( model ) ; }

Target:
private void onAssignTags ( ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( getWindow ( ) ) ) ; getAttachedTagsToSelectedVMs ( model ) ; }
Source:
private boolean isStorageDomainValid ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.common.businessentities.ImageFileType imageType , boolean forceRefresh ) { if ( storageDomainId == null ) { org.ovirt.engine.core.bll.IsoDomainListSyncronizer.log.error ( "Storage domain ID received from command query is null." ) ; return false ; } if ( forceRefresh ) { return refreshRepos ( storageDomainId , imageType ) ; } return true ; }

Target:
private boolean isStorageDomainValid ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageType , boolean forceRefresh ) { if ( storageDomainId == null ) { org.ovirt.engine.core.bll.IsoDomainListSyncronizer.log.error ( "Storage domain ID received from command query is null." ) ; return false ; } if ( forceRefresh ) { return refreshRepos ( storageDomainId , imageType ) ; } return true ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Integer > event ) { getView ( ) . setRefreshButtonVisibility ( ( ! ( getModelProvider ( ) . getModel ( ) . getTimer ( ) . isActive ( ) ) ) ) ; }

Target:
public void onGridTimerStateChange ( org.ovirt.engine.ui.uicommonweb.models.GridTimerStateChangeEvent event ) { getView ( ) . setRefreshButtonVisibility ( ( ! ( getModelProvider ( ) . getModel ( ) . getTimer ( ) . isActive ( ) ) ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.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.Disk.DiskStorageType.LUN ) ? ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( object ) ) . getLun ( ) . getSerial ( ) : null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult securityKeysExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_TRY_CREATE_SECURE_CERTIFICATE_NOT_FOUND ) . when ( ( ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.EncryptHostCommunication ) ) && ( ! ( haveSecurityKey ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult securityKeysExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_TRY_CREATE_SECURE_CERTIFICATE_NOT_FOUND ) . when ( ( ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.EncryptHostCommunication ) ) && ( ! ( haveSecurityKey ( ) ) ) ) ) ; }
Source:
private boolean checkFreeSpaceOnDestinationDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain domain , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( domain ) . hasSpaceForClonedDisks ( disksList ) ) ; }

Target:
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 ) ) ; }
Source:
private void readUsbItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { vmBase.setUsbPolicy ( org.ovirt.engine.core.common.businessentities.UsbPolicy.forStringValue ( node.SelectSingleNode ( "rasd:UsbPolicy" , _xmlNS ) . innerText ) ) ; }

Target:
private void readMemoryItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { vmBase.setMemSizeMb ( java.lang.Integer.parseInt ( selectSingleNode ( node , "rasd:VirtualQuantity" , _xmlNS ) . innerText ) ) ; }
Source:
protected void writeBuffer ( java.nio.ByteBuffer buff ) throws java.io.IOException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { if ( ! ( isOpen ( ) ) ) { connect ( ) ; } write ( buff ) ; }

Target:
public java.util.concurrent.Future < java.lang.Void > close ( ) { return scheduleTask ( this . disconnectCallable ) ; }
Source:
protected void addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { addCanDoActionMessage ( message.name ( ) ) ; }

Target:
protected void addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message.name ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMName ( java.lang.String vmName ) { return null ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMId ( org.ovirt.engine.core.compat.Guid vmId ) { return null ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { actionButtonInterface.onClick ( ) . invoke ( org.ovirt.engine.ui.webadmin.plugin.entity.EntityObject.arrayFrom ( table.getSelectedItems ( ) ) , null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { actionButtonInterface.onClick ( ) . invoke ( org.ovirt.engine.ui.webadmin.plugin.entity.EntityObject.arrayFrom ( table.getSelectedItems ( ) ) , null ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDS getProxyVds ( ) { if ( ( proxyVds ) == null ) { proxyVds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( org.ovirt.engine.core.vdsbroker.vdsbroker.FenceVdsVDSCommand.getParameters ( ) . getVdsId ( ) ) ; } return proxyVds ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getProxyVds ( ) { if ( ( proxyVds ) == null ) { proxyVds = org.ovirt.engine.core.vdsbroker.vdsbroker.FenceVdsVDSCommand.getDbFacade ( ) . getVdsDao ( ) . get ( org.ovirt.engine.core.vdsbroker.vdsbroker.FenceVdsVDSCommand.getParameters ( ) . getVdsId ( ) ) ; } return proxyVds ; }
Source:
private void addTypeColumn ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { org.ovirt.engine.ui.common.widget.uicommon.permissions.PermissionListModelTable.getTable ( ) . addColumn ( new org.ovirt.engine.ui.common.widget.table.column.PermissionTypeColumn ( ) , constants.empty ( ) , "30px" ) ; }

Target:
private void addTypeColumn ( ) { org.ovirt.engine.ui.common.widget.uicommon.permissions.PermissionListModelTable.getTable ( ) . addColumn ( new org.ovirt.engine.ui.common.widget.table.column.PermissionTypeColumn ( ) , org.ovirt.engine.ui.common.widget.uicommon.permissions.PermissionListModelTable.constants.empty ( ) , "30px" ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmInterfaceType GetDefaultNicType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { return org.ovirt.engine.core.common.businessentities.VmInterfaceType.pv ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.VmInterfaceType GetDefaultNicType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { return org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pv ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDS getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( super . getEntity ( ) ) ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mockVdsDbFacadeAndDao ( ) ; setupExpectedGlusterVolumeOptionInfo ( ) ; setupMock ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mockDependencies ( ) ; setupExpectedGlusterVolumeOptionInfo ( ) ; setupMock ( ) ; }
Source:
public static int GetClusterDefaultMemoryOverCommit ( ) { return 100 ; }

Target:
public static int getClusterDefaultMemoryOverCommit ( ) { return 100 ; }
Source:
public void testMissingJobMessages ( ) { org.ovirt.engine.core.dal.job.ExecutionMessageDirector messageDirector = org.ovirt.engine.core.dal.job.ExecutionMessageDirector.getInstance ( ) ; messageDirector.initialize ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.TEST_BUNDLE_NAME ) ; org.junit.Assert.assertEquals ( ActionType.Unknown.name ( ) , messageDirector.getJobMessage ( ActionType.Unknown ) ) ; }

Target:
public void testMissingJobMessages ( ) { org.ovirt.engine.core.dal.job.ExecutionMessageDirector messageDirector = org.ovirt.engine.core.dal.job.ExecutionMessageDirector.getInstance ( ) ; messageDirector.initialize ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.TEST_BUNDLE_NAME ) ; org.junit.jupiter.api.Assertions.assertEquals ( ActionType.Unknown.name ( ) , messageDirector.getJobMessage ( ActionType.Unknown ) ) ; }
Source:
public void testGetEntitySearchInfo ( ) { org.junit.Assert.assertNotNull ( org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( SearchObjects.AUDIT_PLU_OBJ_NAME ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( SearchObjects.AUDIT_PLU_OBJ_NAME ) , org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( SearchObjects.AUDIT_OBJ_NAME ) ) ; org.junit.Assert.assertNull ( org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( "RANDOM_NOTEXISTING_KEY" ) ) ; }

Target:
public void testGetEntitySearchInfo ( ) { org.junit.jupiter.api.Assertions.assertNotNull ( org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( SearchObjects.AUDIT_PLU_OBJ_NAME ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( SearchObjects.AUDIT_PLU_OBJ_NAME ) , org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( SearchObjects.AUDIT_OBJ_NAME ) ) ; org.junit.jupiter.api.Assertions.assertNull ( org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( "RANDOM_NOTEXISTING_KEY" ) ) ; }
Source:
public org.ovirt.engine.api.model.WatchDog addParents ( org.ovirt.engine.api.model.WatchDog device ) { device.setTemplate ( new org.ovirt.engine.api.model.Template ( ) ) ; device.getTemplate ( ) . setId ( templateId.toString ( ) ) ; return device ; }

Target:
public org.ovirt.engine.api.model.Watchdog addParents ( org.ovirt.engine.api.model.Watchdog device ) { device.setTemplate ( new org.ovirt.engine.api.model.Template ( ) ) ; device.getTemplate ( ) . setId ( templateId.toString ( ) ) ; return device ; }
Source:
public void setReleaseCursorHotKey ( java.lang.String releaseCursorHotKey ) { this . releaseCursorHotKey = releaseCursorHotKey ; }

Target:
public void setReleaseCursorHotKey ( java.lang.String releaseCursorHotKey ) { this . consoleOptions.setReleaseCursorHotKey ( releaseCursorHotKey ) ; }
Source:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters ) ; }

Target:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters , engineContext ) ; }
Source:
public void setRunOnce ( boolean value ) { runOnce = value ; }

Target:
public void setRunOnce ( boolean value ) { vmDynamic.setRunOnce ( value ) ; }
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 ) ; if ( vdsId != null ) { getBlockingQueue ( vdsId ) . offer ( java.lang.Boolean.TRUE ) ; } }
Source:
public static boolean isModeSupported ( org.ovirt.engine.core.common.mode.ApplicationMode mode ) { return ( ( mode.getValue ( ) ) & ( org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.UI_MODE.getValue ( ) ) ) > 0 ; }

Target:
public static boolean isModeSupported ( org.ovirt.engine.core.common.mode.ApplicationMode mode ) { return org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.isAvailableInMode ( mode.getValue ( ) ) ; }
Source:
public java.lang.Integer getDisplaySecurePort ( ) { return this . vmDynamic.getDisplaySecurePort ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.OsType getGuestOsType ( ) { return vmDynamic.getGuestOsType ( ) ; }
Source:
public void getVdsGroupId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setVdsGroupId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsGroupId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }

Target:
public void getClusterId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setClusterId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid g = b.getClusterId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }
Source:
public static java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert.get ( key ) ; }

Target:
public java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , version ) ; return cachedConfigValuesPreConvert.get ( key ) ; }
Source:
public void testExtractProperIpv6AddressWithTooLongPrefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Address ( "::/1234" ) , org.hamcrest.Matchers.is ( "::/1234" ) ) ; }

Target:
public void testExtractProperIpv6AddressWithTooLongPrefix ( ) { org.hamcrest.MatcherAssert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Address ( "::/1234" ) , org.hamcrest.Matchers.is ( "::/1234" ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return getClusterUtils ( ) . getRandomUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getClusterId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return getGlusterUtils ( ) . getRandomUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getClusterId ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.DbUser object ) { return org.ovirt.engine.ui.frontend.utils.FormatUtils.getFullLoginName ( object ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.aaa.DbUser object ) { return org.ovirt.engine.ui.frontend.utils.FormatUtils.getFullLoginName ( object ) ; }
Source:
public void setVdsName ( java.lang.String value ) { name = value ; }

Target:
public void setName ( java.lang.String value ) { name = value ; }
Source:
private org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.ManagementNetworkUtil getManagementNetworkUtil ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.cluster.ManagementNetworkUtil.class ) ; }
Source:
public void testGetNonexistingPluginType ( ) { java.lang.String result = dao.get ( FixturesTool.PROVIDER_BINDING_HOST_ID_HOST_ID , "anything" ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetNonexistingPluginType ( ) { java.lang.String result = dao.get ( FixturesTool.PROVIDER_BINDING_HOST_ID_HOST_ID , "anything" ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void testValidateImageNotInTemplateTrue ( ) { org.mockito.Mockito.when ( vmTemplateDao.get ( mockSourceImageAndGetId ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( "validation should succeed" , cmd.validateImageNotInTemplate ( ) ) ; }

Target:
public void testValidateImageNotInTemplateTrue ( ) { org.mockito.Mockito.when ( vmTemplateDao.get ( mockSourceImageAndGetId ( ) ) ) . thenReturn ( null ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.validateImageNotInTemplate ( ) , "validation should succeed" ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.ImportValidator getImportValidator ( ) { return new org.ovirt.engine.core.bll.validator.ImportValidator ( getParameters ( ) ) ; }

Target:
private boolean verifyDisksIfNeeded ( ) { if ( ( ! ( getParameters ( ) . isImportAsNewEntity ( ) ) ) && ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.isImagesAlreadyOnTarget ( ) ) ) ) { return checkIfDisksExist ( imageList ) ; } return true ; }
Source:
public static void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.persistCommand ( cmdEntity ) ; }

Target:
public static void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.persistCommand ( cmdEntity , cmdContext ) ; }
Source:
void wireEvents ( ) { expander.addClickHandler ( new com.google.gwt.event.dom.client.ClickHandler ( ) { @ java.lang.Override public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { expanderContent.getStyle ( ) . setDisplay ( ( expander.isDown ( ) ? Style.Display.BLOCK : Style.Display.NONE ) ) ; } } ) ; }

Target:
private void initExpander ( ) { expander.initWithContent ( expanderContent ) ; }
Source:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { assertDiskDescriptionMap ( "DiskAlias" , null ) ; }

Target:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { disk1.setDiskAlias ( "DiskAlias" ) ; disk1.setDiskDescription ( null ) ; org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( disk1 ) ; }
Source:
protected org.ovirt.engine.api.model.Host populate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { return parent.addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.Host populate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { org.ovirt.engine.api.model.Host host = parent.addStatistics ( model , entity , uriInfo , httpHeaders ) ; parent.addCertificateInfo ( host ) ; return host ; }
Source:
public void setDiskInterface ( org.ovirt.engine.core.common.businessentities.storage.DiskInterface diskInterface ) { this . diskInterface = diskInterface ; }

Target:
public void setDiskVmElements ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskVmElement > diskVmElements ) { diskVmElementsMap = new java.util.HashMap < > ( ) ; for ( org.ovirt.engine.core.common.businessentities.storage.DiskVmElement element : diskVmElements ) { diskVmElementsMap.put ( element.getId ( ) . getVmId ( ) , element ) ; } }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPoolDAO ( ) . save ( vmPool ) ; return vmPool.getVmPoolId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getVmPoolId ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeSnapshotCreate ( java.lang.String volumeName , java.lang.String snapshotName , java.lang.String description , boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterSnapshotInfo ( java.lang.String snapshotName , java.lang.String volumeName ) ;
Source:
private void setUpEntityQueryExpectations ( org.ovirt.engine.core.common.businessentities.VM result ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendVmCdromResourceTest.VM_ID } , result ) ; }

Target:
private void setUpEntityQueryExpectations ( org.ovirt.engine.core.common.businessentities.VM result ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendVmCdromResourceTest.VM_ID } , result ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.StorageDomain > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storagePermissionSubTabLabel ( ) , 10 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.StorageDomain > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStoragePermissionPresenter.constants.storagePermissionSubTabLabel ( ) , 10 , modelProvider ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getDbFacade ( ) . getVmDao ( ) . getAllForNetwork ( network.getId ( ) ) , VdcBllMessages.VAR__ENTITIES__VMS ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVms ( ) { if ( ( vms ) == null ) { vms = getDbFacade ( ) . getVmDao ( ) . getAllForNetwork ( network.getId ( ) ) ; } return vms ; }
Source:
public void testMd5Hash ( ) throws java.lang.Exception { java.lang.String fingerprint1 = "1b:d3:aa:c3:67:4b:b5:55:a9:ff:19:0c:16:7e:d1:de" ; java.lang.String goodfingerprint1 = "MD5:" + fingerprint1 ; org.junit.Assert.assertEquals ( goodfingerprint1 , org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.fixupKeyFingerprintHash ( fingerprint1 ) ) ; org.junit.Assert.assertEquals ( goodfingerprint1 , org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.fixupKeyFingerprintHash ( goodfingerprint1 ) ) ; }

Target:
public void testFingerprintStringsMD5 ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.checkKeyFingerprint ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.KEYS [ 0 ] [ 1 ] . replace ( "MD5:" , "" ) , org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.decodeKey ( org.ovirt.engine.core.uutils.ssh.OpenSSHUtilsTest.KEYS [ 0 ] [ 0 ] ) , null ) ) ; }
Source:
public void writeStartDocument ( java.lang.String encoding , java.lang.String version ) { try { writer.writeStartDocument ( encoding , version ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( "Can't write start of document" , exception ) ; } }

Target:
public void writeStartElement ( java.lang.String name ) { try { writer.writeStartElement ( name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }
Source:
private void updateSnapshotOvf ( org.ovirt.engine.core.common.businessentities.VM vm ) { vm.setSnapshots ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getSnapshotDao ( ) . getAllWithConfiguration ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) ) ) ; updateVmImSpm ( ) ; }

Target:
private void updateSnapshotOvf ( org.ovirt.engine.core.common.businessentities.VM vm ) { vm.setSnapshots ( org.ovirt.engine.core.bll.ExportVmCommand.getDbFacade ( ) . getSnapshotDao ( ) . getAllWithConfiguration ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) ) ) ; updateVmImSpm ( ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getDiskMap ( ) . size ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getDiskMap ( ) . size ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { dcLabels = ( ( java.util.SortedSet < java.lang.String > ) ( returnValue ) ) ; initNicModels ( ) ; stopProgress ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { dcLabels = ( ( java.util.SortedSet < java.lang.String > ) ( returnValue ) ) ; initLabelModels ( ) ; queryNetworks ( ) ; }
Source:
public static org.ovirt.engine.core.common.queries.SearchParameters eqSearchParams ( org.ovirt.engine.core.common.queries.SearchParameters expected ) { org.easymock.classextension.EasyMock.reportMatcher ( new org.ovirt.engine.api.restapi.test.util.TestHelper.SearchParametersEquals ( expected ) ) ; return null ; }

Target:
public static org.ovirt.engine.core.common.queries.SearchParameters eqSearchParams ( org.ovirt.engine.core.common.queries.SearchParameters expected ) { org.easymock.EasyMock.reportMatcher ( new org.ovirt.engine.api.restapi.test.util.TestHelper.SearchParametersEquals ( expected ) ) ; return null ; }
Source:
public boolean getIsSkipped ( ) { return org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue.SKIPPED.equalsIgnoreCase ( _status ) ; }

Target:
public boolean getIsSkippedDueToStatus ( ) { return org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue.SKIPPED_DUE_TO_STATUS.equalsIgnoreCase ( _status ) ; }
Source:
protected org.ovirt.engine.core.common.action.ActionType getVdcAction ( ) { return org.ovirt.engine.core.common.action.ActionType.UpdateCpuQos ; }

Target:
protected org.ovirt.engine.core.common.action.ActionType getAction ( ) { return org.ovirt.engine.core.common.action.ActionType.UpdateCpuQos ; }
Source:
public java.util.List < java.lang.String > validatePassthroughVnics ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid hostId , java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > vnics ) ;

Target:
public java.util.List < java.lang.String > validatePassthroughVnics ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid hostId , java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > allVmNics ) ;
Source:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( ) ; }

Target:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( session ) ; }
Source:
public void testHotsetUpdateableWhenHotsetRequested ( ) { org.ovirt.engine.core.utils.ObjectIdentityChecker oic = new org.ovirt.engine.core.utils.ObjectIdentityChecker ( org.ovirt.engine.core.utils.Jedi.class ) ; oic.AddHotsetFields ( "name" ) ; org.junit.Assert.assertTrue ( "hot set requested for hot set fields should be true" , oic.IsFieldUpdatable ( null , "name" , null , true ) ) ; }

Target:
public void testHotsetUpdateableWhenHotsetRequested ( ) { org.ovirt.engine.core.utils.ObjectIdentityChecker oic = new org.ovirt.engine.core.utils.ObjectIdentityChecker ( org.ovirt.engine.core.utils.Jedi.class ) ; oic.addHotsetFields ( "name" ) ; org.junit.Assert.assertTrue ( "hot set requested for hot set fields should be true" , oic.isFieldUpdatable ( null , "name" , null , true ) ) ; }
Source:
private void initParetResource ( org.ovirt.engine.api.restapi.resource.AbstractBackendGroupsResource resource , javax.ws.rs.core.UriInfo uriInfo ) { initResource ( resource ) ; resource.setUriInfo ( uriInfo ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Group model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
public org.ovirt.api.metamodel.concepts.Service getService ( org.ovirt.api.metamodel.concepts.Name name ) { return services.stream ( ) . filter ( org.ovirt.api.metamodel.concepts.Concept.named ( name ) ) . findFirst ( ) . orElse ( null ) ; }

Target:
public org.ovirt.api.metamodel.concepts.Service getService ( org.ovirt.api.metamodel.concepts.Name name ) { return services.stream ( ) . filter ( org.ovirt.api.metamodel.concepts.Named.named ( name ) ) . findFirst ( ) . orElse ( null ) ; }
Source:
public void setAddPending ( boolean value ) { pending = value ; }

Target:
public void setPending ( boolean pending ) { this . pending = pending ; }
Source:
protected boolean canDoAction ( ) { super . canDoAction ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( getParameters ( ) . getHostnameOrIp ( ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_SERVER_NAME_REQUIRED ) ; return false ; } return true ; }

Target:
protected boolean canDoAction ( ) { super . canDoAction ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( getParameters ( ) . getHostnameOrIp ( ) ) ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_SERVER_NAME_REQUIRED ) ; return false ; } return true ; }
Source:
java.lang.String getSearchPrefixString ( ) ;

Target:
void enableSearchBar ( boolean status ) ;
Source:
void localize ( org.ovirt.engine.ui.userportal.ApplicationConstants constants , org.ovirt.engine.ui.userportal.ApplicationDynamicConstants dynamicConstants ) { titleLabel.setText ( constants.aboutPopupCaption ( ) ) ; closeButton.setText ( constants.closeButtonLabel ( ) ) ; copyrightNotice.setText ( dynamicConstants.copyRightNotice ( ) ) ; }

Target:
void localize ( org.ovirt.engine.ui.userportal.ApplicationConstants constants , org.ovirt.engine.ui.userportal.ApplicationDynamicMessages dynamicMessages ) { titleLabel.setText ( constants.aboutPopupCaption ( ) ) ; closeButton.setText ( constants.closeButtonLabel ( ) ) ; copyrightNotice.setText ( dynamicMessages.copyRightNotice ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.VdcQueryParametersBase tempVar = org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getParameters ( ) ; org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDAO ( ) . getAllForUsers ( org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getParameters ( ) . getUserId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.VdcQueryParametersBase tempVar = org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getParameters ( ) ; org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForUsers ( org.ovirt.engine.core.bll.GetTagsByUserIdQuery.getParameters ( ) . getUserId ( ) ) ) ; }
Source:
public void run ( ) { try { org.ovirt.engine.core.utils.ISingleAsyncOperation operation = _factory.CreateSingleAsyncOperation ( ) ; operation.execute ( currentEventId ) ; } finally { latch.countDown ( ) ; } }

Target:
public void run ( ) { try { org.ovirt.engine.core.utils.ISingleAsyncOperation operation = _factory.createSingleAsyncOperation ( ) ; operation.execute ( currentEventId ) ; } finally { latch.countDown ( ) ; } }
Source:
public void remove ( java.lang.String id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "LUN_id" , id ) ; getCallsHandler ( ) . executeModification ( "DeleteLUN" , parameterSource ) ; }

Target:
public void remove ( java.lang.String id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lun_id" , id ) ; getCallsHandler ( ) . executeModification ( "DeleteLUN" , parameterSource ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ArchitectureType Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( org.ovirt.engine.core.common.businessentities.ArchitectureType ) ( source ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.ArchitectureType convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( org.ovirt.engine.core.common.businessentities.ArchitectureType ) ( source ) ) ; }
Source:
public void testGetWithInvalidExternalId ( ) { byte [ ] externalId = new byte [ ] { ( ( byte ) ( 0 ) ) } ; org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByExternalId ( "testportal.redhat.com" , externalId ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidExternalId ( ) { org.ovirt.engine.core.common.utils.ExternalId externalId = new org.ovirt.engine.core.common.utils.ExternalId ( 0 ) ; org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByExternalId ( "testportal.redhat.com" , externalId ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
protected void init ( ) { super . init ( ) ; }

Target:
protected void init ( ) { super . init ( ) ; helper = new org.ovirt.engine.api.restapi.resource.gluster.GlusterTestHelper ( control ) ; }