auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; setUpDAOMocks ( ) ; org.mockito.Mockito.doReturn ( "config" ) . when ( getQuery ( ) ) . generateOvfConfig ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; setUpDaoMocks ( ) ; org.mockito.Mockito.doReturn ( "config" ) . when ( getQuery ( ) ) . generateOvfConfig ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ; }
Source:
public static org.ovirt.engine.core.dao.PermissionDAO getPermissionDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getPermissionDao ( ) ; }

Target:
public static org.ovirt.engine.core.dao.PermissionDao getPermissionDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getPermissionDao ( ) ; }
Source:
void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable , org.ovirt.engine.core.common.AuditLogType logType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , logType ) ; }

Target:
void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable , org.ovirt.engine.core.common.AuditLogType logType ) { auditLogDirector.log ( logable , logType ) ; }
Source:
public void asConsoleIdInverseOfAsGraphicsType ( java.lang.String consoleId ) { org.junit.Assert.assertEquals ( consoleId , org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.asConsoleId ( org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.asGraphicsType ( consoleId ) ) ) ; }

Target:
public void asConsoleIdInverseOfAsGraphicsType ( java.lang.String consoleId ) { org.junit.jupiter.api.Assertions.assertEquals ( consoleId , org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.asConsoleId ( org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.asGraphicsType ( consoleId ) ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setIsEveryoneSelected ( true ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryone ( true ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setIsEveryoneSelected ( true ) ; model.setIsMyGroupsSelected ( false ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryoneOrMyGroups ( true , false ) ; }
Source:
public void updateStatusAndReasons ( org.ovirt.engine.core.common.businessentities.VdsDynamic host ) { update ( host ) ; }

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 int getExternalHttpsPort ( ) { return isProxyEnabled ( ) ? getProxyHttpsPort ( ) : getHttpsPort ( ) ; }

Target:
public java.lang.String [ ] getSensitiveKeys ( ) { return getProperty ( "SENSITIVE_KEYS" ) . split ( "," ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1 ; }

Target:
public void getMaxNumOfThreadsPerCpu ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Integer > aQuery , java.lang.String version ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( 1 ) ; org.ovirt.engine.core.common.queries.GetConfigurationValueParameters tempVar = new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.MaxNumOfThreadsPerCpu ) ; tempVar.setVersion ( version ) ; getConfigFromCache ( tempVar , aQuery ) ; }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDSGroup selectedItem ) { driver.edit ( getDetailModel ( ) ) ; form.update ( ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDSGroup selectedItem ) { driver.edit ( getDetailModel ( ) ) ; form.update ( ) ; glusterSwiftPanel.setVisible ( selectedItem.supportsGlusterService ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; beforeCommandExecuted ( button.getCommand ( ) ) ; button.getCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; beforeCommandExecuted ( button.getCommand ( ) ) ; button.getCommand ( ) . execute ( ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { return runAction ( VdcActionType.LogoutUser , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runAction ( VdcActionType.LogoutSession , parameters ) ; }
Source:
public void testIsUsingScsiReservationValidWhenSgioIsFiltered ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.FILTERED , true ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_SGIO_IS_FILTERED ) ) ; }

Target:
public void testIsUsingScsiReservationValidWhenSgioIsFiltered ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.FILTERED , true ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_SGIO_IS_FILTERED ) ) ; }
Source:
public void DefaultHost_SelectedItemChanged ( ) { UpdateCdImage ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; }
Source:
public void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { initChildHierarchy ( ) ; if ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( cmdEntity.getId ( ) ) ) { return ; } persistCommand ( cmdEntity ) ; saveCommandContext ( cmdEntity.getId ( ) , cmdContext ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getCommandIdsByEntityId ( org.ovirt.engine.core.compat.Guid entityId ) { return commandsRepository.getCommandIdsByEntityId ( entityId ) ; }
Source:
org.ovirt.engine.core.dao.network.NetworkDao getNetworkDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkDao ( ) ; }

Target:
org.ovirt.engine.core.dao.network.NetworkDao getNetworkDao ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.network.NetworkDao.class ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( null , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ATTACHMENT_NOT_EXISTS ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ) ) ; }
Source:
public void contextDestroyed ( javax.servlet.ServletContextEvent event ) { org.ovirt.vdsmfake.AppLifecycleListener.log.info ( "Application destroyed." ) ; final org.ovirt.vdsmfake.task.TaskProcessor taskProcessor = org.ovirt.vdsmfake.task.TaskProcessor.getInstance ( ) ; taskProcessor.destroy ( ) ; }

Target:
public void contextDestroyed ( javax.servlet.ServletContextEvent event ) { org.ovirt.vdsmfake.AppLifecycleListener.log.info ( "Application destroyed." ) ; final org.ovirt.vdsmfake.task.TaskProcessor taskProcessor = org.ovirt.vdsmfake.task.TaskProcessor.getInstance ( ) ; taskProcessor.destroy ( ) ; org.ovirt.vdsmfake.rpc.json.JsonRpcServer.shutdown ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { networkProfiles = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ; initNetworksList ( ) ; initClusterAndStorage ( dataCenter ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.common.VdcObjectType.Storage , org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.getActionType ( ) . getActionGroup ( ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.common.VdcObjectType.Storage , org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getActionType ( ) . getActionGroup ( ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > > score ( org.ovirt.engine.core.common.businessentities.Cluster cluster , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters ) { return reverseEvenDistributionScore ( cluster , hosts , vm , parameters ) ; }

Target:
protected int calcHostScore ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.VM vm , boolean countThreadsAsCores ) { int maxScore = ( MaxSchedulerWeight ) - 1 ; return maxScore - ( super . calcHostScore ( vds , vm , countThreadsAsCores ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface findInterfaceByNetworkName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i : items ) { if ( java.util.Objects.equals ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return java.util.Objects.equals ( i.getNetworkName ( ) , name ) ; }
Source:
public void testGetAllForClusterWithInvalidCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAllForCluster ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForClusterWithInvalidCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAllForCluster ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void validateFailedWrongPlugStatus ( ) throws java.lang.Exception { mockVmStatusUp ( ) ; mockInterfaceList ( ) ; cretaeDiskWrongPlug ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.HOT_PLUG_DISK_IS_NOT_UNPLUGGED ) ; }

Target:
public void validateFailedWrongPlugStatus ( ) throws java.lang.Exception { mockVmStatusUp ( ) ; mockInterfaceList ( ) ; createDiskWrongPlug ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.HOT_PLUG_DISK_IS_NOT_UNPLUGGED ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.TagsType gettype ( ) { return this . type ; }

Target:
public org.ovirt.engine.core.common.businessentities.TagsType getType ( ) { return this . type ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Integer > event ) { onRefresh ( modelTimer.getTimerRefreshStatus ( ) ) ; }

Target:
public void onGridTimerStateChange ( org.ovirt.engine.ui.uicommonweb.models.GridTimerStateChangeEvent event ) { onRefresh ( modelTimer.getTimerRefreshStatus ( ) ) ; }
Source:
public void setdisplay_type ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . mVmDynamic.setdisplay_type ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "display_type" ) ) ; }

Target:
public java.lang.Integer getUtcDiff ( ) { return this . vmDynamic.getutc_diff ( ) ; }
Source:
public void validateIsoPrefixWithTrippleSlash ( ) throws java.lang.Exception { java.lang.String initrd = ( org.ovirt.engine.core.bll.RunVmCommandTest.ISO_PREFIX ) + "/" ; org.ovirt.engine.core.common.businessentities.VM vm = createVmForTesting ( initrd , null ) ; org.junit.Assert.assertEquals ( vm.getinitrd_url ( ) , ( ( org.ovirt.engine.core.bll.RunVmCommandTest.ACTIVE_ISO_PREFIX ) + "/" ) ) ; }

Target:
public void validateIsoPrefixWithTrippleSlash ( ) throws java.lang.Exception { java.lang.String initrd = ( org.ovirt.engine.core.bll.RunVmCommandTest.ISO_PREFIX ) + "/" ; org.ovirt.engine.core.common.businessentities.VM vm = createVmForTesting ( initrd , null ) ; org.junit.Assert.assertEquals ( vm.getInitrdUrl ( ) , ( ( org.ovirt.engine.core.bll.RunVmCommandTest.ACTIVE_ISO_PREFIX ) + "/" ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DbUser getUserByIdx ( int idx ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setId ( GUIDS [ idx ] ) ; user.setFirstName ( NAMES [ idx ] ) ; user.setLoginName ( NAMES [ idx ] ) ; return user ; }

Target:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser getUserByIdx ( int idx ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; user.setId ( GUIDS [ idx ] ) ; user.setFirstName ( NAMES [ idx ] ) ; user.setLoginName ( NAMES [ idx ] ) ; return user ; }
Source:
protected void copyVmDevices ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.copyVmDevices ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateId ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) , newDiskImages , _vmInterfaces ) ; }

Target:
protected void copyVmDevices ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.copyVmDevices ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateId ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) , newDiskImages , _vmInterfaces , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ) ; }
Source:
public int getlow_utilization ( ) { return this . low_utilizationField ; }

Target:
public int getLowUtilization ( ) { return this . lowUtilization ; }
Source:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.moveImage ; }

Target:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { if ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupCommand.isDataOperationsBySpm ( ) ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.moveImage ; } return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.notSupported ; }
Source:
private void doTest ( java.lang.String value , boolean valid , org.ovirt.engine.ui.uicommonweb.validation.HostAddressValidation underTest ) { org.junit.Assert.assertThat ( underTest.validate ( value ) , org.hamcrest.CoreMatchers.is ( ( valid ? org.ovirt.engine.ui.uicommonweb.validation.ValidationResult.ok ( ) : org.ovirt.engine.ui.uicommonweb.validation.ValidationResult.fail ( org.ovirt.engine.ui.uicommonweb.validation.HostAddressValidationTest.TEST_VIOLATION_MESSAGE ) ) ) ) ; }

Target:
private void doTest ( java.lang.String value , boolean valid , org.ovirt.engine.ui.uicommonweb.validation.HostAddressValidation underTest ) { org.hamcrest.MatcherAssert.assertThat ( underTest.validate ( value ) , org.hamcrest.CoreMatchers.is ( ( valid ? org.ovirt.engine.ui.uicommonweb.validation.ValidationResult.ok ( ) : org.ovirt.engine.ui.uicommonweb.validation.ValidationResult.fail ( org.ovirt.engine.ui.uicommonweb.validation.HostAddressValidationTest.TEST_VIOLATION_MESSAGE ) ) ) ) ; }
Source:
private void setUpGetBallooningExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.IsBalloonEnabled , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true ) ; }

Target:
private void setUpGetCertuficateExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVdsCertificateSubjectByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , org.ovirt.engine.api.restapi.resource.BackendVmResourceTest.CERTIFICATE ) ; }
Source:
private void initContent ( ) { expanderContent.getStyle ( ) . setDisplay ( Style.Display.NONE ) ; }

Target:
private void initContent ( ) { expanderContent.getStyle ( ) . setDisplay ( Display.NONE ) ; }
Source:
public java.lang.String getGroupIds ( ) { return groupIds ; }

Target:
public java.util.HashSet < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = new java.util.HashSet < org.ovirt.engine.core.compat.Guid > ( ) ; } return groupIds ; }
Source:
public void setEntity ( java.lang.Object value ) { super . setEntity ( value ) ; setBootProtocolsAvailable ( ( ( java.lang.Boolean ) ( value ) ) ) ; UpdateCanSpecify ( ) ; }

Target:
public void setEntity ( java.lang.Object value ) { super . setEntity ( value ) ; if ( getIsToSync ( ) . getIsChangable ( ) ) { setBootProtocolsAvailable ( ( ( java.lang.Boolean ) ( value ) ) ) ; } }
Source:
protected java.lang.String getProgressText ( org.ovirt.engine.core.common.businessentities.VDS object ) { int numOfActiveVMs = ( ( object.getvm_active ( ) ) != null ) ? object.getvm_active ( ) : 0 ; return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . numberOfVmsForHostsLoad ( numOfActiveVMs ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return ( object.getvm_active ( ) ) != null ? object.getvm_active ( ) . toString ( ) : "0" ; }
Source:
protected void InitDetailModels ( ) { super . InitDetailModels ( ) ; org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel ( ) ) ; setDetailModels ( list ) ; }

Target:
protected void initDetailModels ( ) { super . initDetailModels ( ) ; org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel ( ) ) ; setDetailModels ( list ) ; }
Source:
public void shouldCreateAsMuchNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldCreateAsMuchNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
java.lang.String pressKeyToReleaseCursor ( java.lang.String key ) ;

Target:
java.lang.String numberValidationNumberLessInvalidReason ( java.lang.String prefixMsg , java.lang.String max ) ;
Source:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { getAsyncTaskManager ( ) . startPollingTask ( taskID ) ; } }

Target:
protected org.ovirt.engine.core.common.action.LockProperties getLockProperties ( ) { org.ovirt.engine.core.common.action.LockProperties lockProperties = _parameters.getLockProperties ( ) ; if ( lockProperties == null ) { lockProperties = applyLockProperties ( getLockingPropertiesSettings ( ) ) ; _parameters.setLockProperties ( lockProperties ) ; } return lockProperties ; }
Source:
public void testVmUnderMinNumOfSockets ( ) { setVmCpuValues ( 1 , ( - 2 ) , 1 ) ; org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIN_CPU_PER_SOCKET ) ) ; }

Target:
public void testVmUnderMinNumOfSockets ( ) { setVmCpuValues ( 1 , ( - 2 ) , 1 ) ; org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIN_CPU_PER_SOCKET ) ) ; }
Source:
public void qosCommitmentMissingNicSpeed ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosCommitmentNicSetup ( ( ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) / 2 ) , null ) ; validateAndExpectViolation ( helper , VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INVALID_INTERFACE_SPEED , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }

Target:
public void qosCommitmentMissingNicSpeed ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosCommitmentNicSetup ( ( ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) / 2 ) , null ) ; validateAndExpectViolation ( helper , EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INVALID_INTERFACE_SPEED , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }
Source:
private boolean ovfOnAnyDomainSupported ( ) { return org.ovirt.engine.core.common.FeatureSupported.ovfStoreOnAnyDomain ( org.ovirt.engine.core.bll.storage.DeactivateStorageDomainWithOvfUpdateCommand.getStoragePool ( ) . getcompatibility_version ( ) ) ; }

Target:
private boolean ovfOnAnyDomainSupported ( ) { return org.ovirt.engine.core.common.FeatureSupported.ovfStoreOnAnyDomain ( org.ovirt.engine.core.bll.storage.DeactivateStorageDomainWithOvfUpdateCommand.getStoragePool ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void setDetailModels ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.HasEntity < D > > value ) { if ( ( detailModels ) != value ) { detailModels = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "DetailModels" ) ) ; } }

Target:
public void setDetailModels ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.HasEntity < D > > value ) { if ( ( detailModels ) != value ) { detailModels = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.ListWithDetailsModel.DETAIL_MODELS ) ) ; } }
Source:
public void trace ( java.lang.Object msg , java.lang.Throwable t ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( msg ) , t ) ; } }

Target:
public void warn ( java.lang.Object msg , java.lang.Throwable t ) { log.warn ( convertToString ( msg ) , t ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { loginModel.getLoginCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { modelCommandInvoker.invokeDefaultCommand ( ) ; }
Source:
public void setValue ( java.lang.Object listModelValues ) { }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel model ) { edit ( model , null ) ; }
Source:
public void setSpiceDriverVersion ( org.ovirt.engine.core.compat.Version spiceDriverVersion ) { if ( ( this . spiceDriverVersion ) != spiceDriverVersion ) { this . spiceDriverVersion = spiceDriverVersion ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "spiceDriverVersion" ) ) ; } }

Target:
public void setSpiceDriverVersion ( org.ovirt.engine.core.compat.Version spiceDriverVersion ) { if ( ( this . spiceDriverVersion ) != spiceDriverVersion ) { this . spiceDriverVersion = spiceDriverVersion ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "spiceDriverVersion" ) ) ; } }
Source:
public void renameVmdkImage ( ) { java.lang.String alias = org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.renameDiskAlias ( "[datastore] Fedora21/Fedora21.vmdk" ) ; org.junit.Assert.assertEquals ( alias , "Fedora21" ) ; }

Target:
public void renameVmdkImage ( ) { java.lang.String alias = org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.renameDiskAlias ( OriginType.VMWARE , "[datastore] Fedora21/Fedora21.vmdk" ) ; org.junit.Assert.assertEquals ( alias , "Fedora21" ) ; }
Source:
protected boolean canDoAction ( ) { boolean retValue = super . canDoAction ( ) ; if ( ( org.ovirt.engine.core.bll.AddInternalJobCommand.getParameters ( ) . getActionType ( ) ) == null ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_EMPTY_ACTION_TYPE ) ; retValue = false ; } return retValue ; }

Target:
protected boolean canDoAction ( ) { boolean retValue = super . canDoAction ( ) ; if ( ( org.ovirt.engine.core.bll.AddInternalJobCommand.getParameters ( ) . getActionType ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_EMPTY_ACTION_TYPE ) ; retValue = false ; } return retValue ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( source ) ) : null ; }

Target:
public void getStorageDomainById ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.StorageDomain > aQuery , org.ovirt.engine.core.compat.Guid storageDomainId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , aQuery ) ; }
Source:
private static void validateInvalidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.dal.VdcBllMessages message ) { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateResult ( validationResult , false , message ) ; }

Target:
private static void validateInvalidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.VdcBllMessages message ) { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateResult ( validationResult , false , message ) ; }
Source:
private void addStyles ( ) { keyField.addContentWidgetStyleName ( style.fieldWidth ( ) ) ; valueField.addContentWidgetStyleName ( style.fieldWidth ( ) ) ; hideLabels ( ) ; }

Target:
private void addStyles ( ) { keyField.addContentWidgetStyleName ( style.fieldWidth ( ) ) ; valueField.addContentWidgetStyleName ( style.fieldWidth ( ) ) ; valuesField.addContentWidgetStyleName ( style.fieldWidth ( ) ) ; hideLabels ( ) ; }
Source:
public void testSeverityAndEventCombo ( ) { java.lang.String expected = "test@example.com" ; filter.clearFilterEntries ( ) ; filter.addFilterEntries ( org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.parse ( ( ( ( ( ( ( "include:normal_message:ERROR(smtp:" + expected ) + ") " ) + "include:error_message:NORMAL(smtp:" ) + expected ) + ") " ) + "exclude:*" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "normal_message" , org.ovirt.engine.core.common.AuditLogSeverity.NORMAL ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "error_message" , org.ovirt.engine.core.common.AuditLogSeverity.ERROR ) ) ; org.junit.Assert.assertTrue ( smtp.getEvents ( ) . contains ( ( "error_message-->" + expected ) ) ) ; org.junit.Assert.assertEquals ( 1 , smtp.getEvents ( ) . size ( ) ) ; }

Target:
public void testSeverityAndEventCombo ( ) { java.lang.String expected = "test@example.com" ; filter.clearFilterEntries ( ) ; filter.addFilterEntries ( org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.parse ( ( ( ( ( ( ( "include:normal_message:ERROR(smtp:" + expected ) + ") " ) + "include:error_message:NORMAL(smtp:" ) + expected ) + ") " ) + "exclude:*" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "normal_message" , org.ovirt.engine.core.common.AuditLogSeverity.NORMAL ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "error_message" , org.ovirt.engine.core.common.AuditLogSeverity.ERROR ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( smtp.getEvents ( ) . contains ( ( "error_message-->" + expected ) ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , smtp.getEvents ( ) . size ( ) ) ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) . isDisplayNetwork ( ) ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return clusterNetworkModel.isMigrationNetwork ( ) ; }
Source:
public void addVmToPool ( org.ovirt.engine.core.common.businessentities.VmPoolMap map ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , map.getvm_guid ( ) ) . addValue ( "vm_pool_id" , map.getvm_pool_id ( ) ) ; getCallsHandler ( ) . executeModification ( "InsertVm_pool_map" , parameterSource ) ; }

Target:
public void addVmToPool ( org.ovirt.engine.core.common.businessentities.VmPoolMap map ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , map.getVmId ( ) ) . addValue ( "vm_pool_id" , map.getVmPoolId ( ) ) ; getCallsHandler ( ) . executeModification ( "InsertVm_pool_map" , parameterSource ) ; }
Source:
public static org.ovirt.engine.core.common.queries.CommandVersionsInfo GetCommandVersionsInfo ( org.ovirt.engine.core.common.action.VdcActionType vdcActionType ) { if ( ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedCommandsCompatibilityVersions ) == null ) { return null ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedCommandsCompatibilityVersions.get ( vdcActionType ) ; }

Target:
public static org.ovirt.engine.core.common.queries.CommandVersionsInfo getCommandVersionsInfo ( org.ovirt.engine.core.common.action.VdcActionType vdcActionType ) { if ( ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedCommandsCompatibilityVersions ) == null ) { return null ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedCommandsCompatibilityVersions.get ( vdcActionType ) ; }
Source:
public void addToHistoryEmptyBefore ( ) { org.junit.Assert.assertEquals ( java.util.Collections.singletonList ( 12 ) , statistics.addToHistory ( new java.util.ArrayList < java.lang.Integer > ( ) , 12 , 100 ) ) ; }

Target:
public void addToHistoryEmptyBefore ( ) { org.junit.jupiter.api.Assertions.assertEquals ( java.util.Collections.singletonList ( 12 ) , statistics.addToHistory ( new java.util.ArrayList < java.lang.Integer > ( ) , 12 , 100 ) ) ; }
Source:
void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command != null ) { command.Execute ( ) ; } }

Target:
void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command != null ) { command.execute ( ) ; } }
Source:
protected void executeVmCommand ( ) { removeVmInSpm ( ) ; removeDiskImages ( ) ; removeMemoryImages ( ) ; org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.setSucceeded ( true ) ; }

Target:
protected void executeVmCommand ( ) { removeVmInSpm ( ) ; removeDiskImages ( ) ; removeMemoryImages ( ) ; org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.setSucceeded ( true ) ; }
Source:
private void updateQuotaCache ( ) { if ( wasQuotaEnforcementDisabled ( ) ) { org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getQuotaManager ( ) . removeStoragePoolFromCache ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePool ( ) . getId ( ) ) ; } }

Target:
private void updateQuotaCache ( ) { if ( wasQuotaEnforcementChanged ( ) ) { org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getQuotaManager ( ) . removeStoragePoolFromCache ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePool ( ) . getId ( ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > vdsList = jdbcTemplate.query ( query , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance ) ; return uniteAgents ( vdsList ) ; }
Source:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; bond.setName ( "bond0" ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND ) , VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND , false , false ) ; }

Target:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; org.ovirt.engine.core.bll.ValidationResult notABondValidationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND , org.ovirt.engine.core.bll.validator.HostInterfaceValidator.VAR_NETWORK_INTERFACE_IS_NOT_BOND_ENTITY , bond.getName ( ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , notABondValidationResult , notABondValidationResult , ValidationResult.VALID ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSStatus getStatusOnReboot ( ) { return VDSStatus.Maintenance.equals ( vdsInitialStatus ) ? org.ovirt.engine.core.common.businessentities.VDSStatus.Maintenance : org.ovirt.engine.core.common.businessentities.VDSStatus.NonResponsive ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDSStatus getStatusOnReboot ( ) { if ( org.ovirt.engine.core.bll.UpgradeOvirtNodeInternalCommand.getParameters ( ) . getActivateHost ( ) ) { return org.ovirt.engine.core.common.businessentities.VDSStatus.NonResponsive ; } return VDSStatus.Maintenance.equals ( vdsInitialStatus ) ? org.ovirt.engine.core.common.businessentities.VDSStatus.Maintenance : org.ovirt.engine.core.common.businessentities.VDSStatus.NonResponsive ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . save ( vmPool ) ; setActionReturnValue ( vmPool.getvm_pool_id ( ) ) ; org.ovirt.engine.core.bll.AddVmPoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . save ( vmPool ) ; setActionReturnValue ( vmPool.getVmPoolId ( ) ) ; org.ovirt.engine.core.bll.AddVmPoolCommand.setSucceeded ( true ) ; }
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) ) ; }
Source:
void setSessionId ( java.lang.String sessionId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . storeInHttpSession ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , sessionId ) ; restApiSessionId = sessionId ; }

Target:
void setSessionId ( java.lang.String sessionId , boolean storeInHttpSession ) { if ( storeInHttpSession ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . storeInHttpSession ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , sessionId ) ; } this . restApiSessionId = sessionId ; }
Source:
public java.lang.String getSysprepPath ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.util.Set < java.lang.String > > getDiskHotpluggableInterfacesMap ( ) ;
Source:
public void setCompensationContext ( org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { context.setCompensationContext ( compensationContext ) ; }

Target:
public void setCompensationContext ( org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { context.withCompensationContext ( compensationContext ) ; }
Source:
public void UpdateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDAO ( ) . update ( dynamicData ) ; }

Target:
public void UpdateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . update ( dynamicData ) ; }
Source:
protected void endSuccessfully ( ) { endCommand ( ) ; }

Target:
protected void endSuccessfully ( ) { org.ovirt.engine.core.bll.RemoveImageCommand.setSucceeded ( true ) ; }
Source:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText ) { addColumn ( column , getHeader ( column , headerText , false ) ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present , java.lang.String width ) { table.ensureColumnPresent ( column , headerText , present , width ) ; tableHeader.ensureColumnPresent ( column , headerText , present , width ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { setPanel ( object ) ; }

Target:
protected void init ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueModel model ) { this . model = model ; widgets.clear ( ) ; super . init ( model ) ; if ( ! ( enabled ) ) { removeWidget ( widgets.getLast ( ) ) ; } }
Source:
private void cancel ( ) { setWindow ( null ) ; }

Target:
private void cancel ( ) { org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel.setWindow ( null ) ; }
Source:
private void initPanels ( ) { usedFilterPanel = new org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitListPanel ( ) ; unusedFilterPanel = new org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitListPanel ( ) ; usedFunctionPanel = new org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitListPanel ( ) ; unusedFunctionPanel = new org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitListPanel ( ) ; }

Target:
private void initPanels ( ) { usedFilterPanel = new org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitListPanel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitPanel.FILTER , true ) ; unusedFilterPanel = new org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitListPanel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitPanel.FILTER , false ) ; usedFunctionPanel = new org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitListPanel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.FunctionPolicyUnitPanel.FUNCTION , true ) ; unusedFunctionPanel = new org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.PolicyUnitListPanel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.panels.FunctionPolicyUnitPanel.FUNCTION , false ) ; }
Source:
protected boolean isNetworkInCluster ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.compat.Guid clusterId ) { return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.isNetworkInCluster ( network , clusterId ) ; }

Target:
protected boolean isNetworkInCluster ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.compat.Guid clusterId ) { return getNetworkHelper ( ) . isNetworkInCluster ( network , clusterId ) ; }
Source:
public java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( java.util.Map networks , java.util.Map bonds , java.util.Map options ) { return vdsServer.futureSetupNetworks ( networks , bonds , options ) ; }

Target:
public java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( java.util.Map networks , java.util.Map bonds , java.util.Map options , boolean isPolicyReset ) { return vdsServer.futureSetupNetworks ( networks , bonds , options ) ; }
Source:
private void prepareManagementNetworkMocks ( ) { newDefaultManagementNetworkFound ( ) ; org.mockito.Mockito.when ( networkClusterValidator.managementNetworkChange ( ) ) . thenReturn ( ValidationResult.VALID ) ; }

Target:
public void defaultClusterInLocalFs ( ) { newDefaultManagementNetworkFound ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultClusterID , org.ovirt.engine.core.bll.UpdateClusterCommandTest.DEFAULT_CLUSTER_ID ) ; createCommandWithDefaultCluster ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; architectureIsUpdatable ( ) ; validateFailedWithReason ( EngineMessage.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }
Source:
public org.ovirt.vdsmfake.service.Host getActiveHostByName ( java.lang.String serverName ) { return org.ovirt.vdsmfake.service.VdsmManager.getInstance ( ) . getHostByName ( serverName ) ; }

Target:
public org.ovirt.vdsmfake.domain.Host getActiveHostByName ( java.lang.String serverName ) { return org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . getHostByName ( serverName ) ; }
Source:
public boolean getserver_SSL_enabled ( ) { return this . mVdsStatic.getserver_SSL_enabled ( ) ; }

Target:
public boolean isServerSslEnabled ( ) { return this . mVdsStatic.isServerSslEnabled ( ) ; }
Source:
org.ovirt.engine.core.common.businessentities.Disk getVmBootDisk ( org.ovirt.engine.core.compat.Guid vmId ) ;

Target:
org.ovirt.engine.core.common.businessentities.Disk getVmBootActiveDisk ( org.ovirt.engine.core.compat.Guid vmId ) ;
Source:
public void onModelInitialized ( org.ovirt.engine.ui.common.uicommon.model.ModelInitializedEvent event ) { initializeModelHandlers ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { java.lang.String propName = args.propertyName ; if ( "WidgetModel" . equals ( propName ) ) { modelBoundWidgetChange ( ) ; } }
Source:
private void IsAutoAssign_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( getIsAutoAssign ( ) . getEntity ( ) ) ) == false ) { getDefaultHost ( ) . setIsChangable ( true ) ; } }

Target:
private void isAutoAssign_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( getIsAutoAssign ( ) . getEntity ( ) ) ) == false ) { getDefaultHost ( ) . setIsChangable ( true ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult call ( ) { return executor.fence ( fenceAction ) ; }

Target:
protected java.util.concurrent.Callable < org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult > createTask ( final org.ovirt.engine.core.bll.pm.FenceActionExecutor executor , final org.ovirt.engine.core.common.businessentities.pm.FenceActionType fenceAction ) { return ( ) -> executor.fence ( fenceAction ) ; }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.Disk selectedItem ) { org.ovirt.engine.ui.webadmin.section.main.view.tab.disk.SubTabDiskGeneralView.Driver.driver.edit ( getDetailModel ( ) ) ; formBuilder.showForm ( getDetailModel ( ) ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.Disk selectedItem ) { driver.edit ( getDetailModel ( ) ) ; formBuilder.update ( getDetailModel ( ) ) ; }
Source:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.gluster.NfsProfileDetails object ) { return object.getNfsServerIp ( ) ; }

Target:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeProfileStats object ) { return object.getName ( ) ; }