auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > ( ) ; }

Target:
public void getGlusterVolumeSnapshotsForVolume ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > > aQuery , org.ovirt.engine.core.compat.Guid volumeId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterVolumeSnapshotsByVolumeId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( volumeId ) , aQuery ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { org.junit.Assert.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; org.junit.Assert.assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; org.junit.Assert.assertNotNull ( model.getDomain ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) , model.getDomain ( ) . getId ( ) ) ; org.junit.Assert.assertTrue ( model.isSetGroups ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS.length , model.getGroups ( ) . getGroups ( ) . size ( ) ) ; java.util.Set < java.lang.String > groupNames = model.getGroups ( ) . getGroups ( ) . stream ( ) . map ( Group :: getName ) . collect ( java.util.stream.Collectors.toSet ( ) ) ; org.junit.Assert.assertEquals ( new java.util.HashSet < > ( java.util.Arrays.asList ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS ) ) , groupNames ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { org.junit.jupiter.api.Assertions.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( model.getDomain ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) , model.getDomain ( ) . getId ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( model.isSetGroups ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS.length , model.getGroups ( ) . getGroups ( ) . size ( ) ) ; java.util.Set < java.lang.String > groupNames = model.getGroups ( ) . getGroups ( ) . stream ( ) . map ( Group :: getName ) . collect ( java.util.stream.Collectors.toSet ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( new java.util.HashSet < > ( java.util.Arrays.asList ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS ) ) , groupNames ) ; verifyLinks ( model ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; cleanConnection ( storageListModel.fileConnection , storageListModel.hostId ) ; storageListModel.fileConnection = null ; }
Source:
protected void vdsNonOperational ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , Guid.Empty , customLogValues ) ; }

Target:
public void processHardwareCapabilities ( org.ovirt.engine.core.common.businessentities.VDS vds ) { getEventListener ( ) . processOnCpuFlagsChange ( vds.getId ( ) ) ; }
Source:
public static void openUrlInNewWindow ( final java.lang.String name , final java.lang.String url ) { org.ovirt.engine.ui.common.utils.WebUtils.openUrlInNewWindow ( name , url , null ) ; }

Target:
public static void openUrlInNewWindow ( final java.lang.String name , final java.lang.String url ) { org.ovirt.engine.ui.common.utils.WebUtils.openUrlInNewWindow ( name , url , org.ovirt.engine.ui.common.utils.WebUtils.DEFAULT_OPTIONS ) ; }
Source:
private void assertStorageLimitsFound ( org.ovirt.engine.api.model.QuotaStorageLimits storageLimits , int resultsNum ) { org.junit.Assert.assertNotNull ( storageLimits ) ; org.junit.Assert.assertNotNull ( storageLimits.getQuotaStorageLimits ( ) ) ; org.junit.Assert.assertEquals ( storageLimits.getQuotaStorageLimits ( ) . size ( ) , resultsNum ) ; }

Target:
private void assertStorageLimitsFound ( org.ovirt.engine.api.model.QuotaStorageLimits storageLimits , int resultsNum ) { org.junit.jupiter.api.Assertions.assertNotNull ( storageLimits ) ; org.junit.jupiter.api.Assertions.assertNotNull ( storageLimits.getQuotaStorageLimits ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( storageLimits.getQuotaStorageLimits ( ) . size ( ) , resultsNum ) ; }
Source:
public org.ovirt.engine.api.resource.ClusterNetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( clusterId , id ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) , clusterId ) ; }
Source:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDiscardFunctionality ( ) { setSdDiscardSupport ( false , true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedNoDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( false ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 0L ) , createLunWithDiscardSupport ( 0L ) ) , storageDomain ) ) ; }
Source:
private void readNetworkItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = getNetwotkInterface ( node ) ; updateSingleNic ( node , iface ) ; vmBase.getInterfaces ( ) . add ( iface ) ; readManagedVmDevice ( node , iface.getId ( ) ) ; }

Target:
private void readNetworkItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = getNetworkInterface ( node ) ; updateSingleNic ( node , iface ) ; vmBase.getInterfaces ( ) . add ( iface ) ; readManagedVmDevice ( node , iface.getId ( ) ) ; }
Source:
public void run ( ) { org.ovirt.engine.ui.common.uicommon.TimerImpl.logger.info ( "Timer execution" ) ; tickEvent.raise ( this , EventArgs.Empty ) ; }

Target:
public void run ( ) { org.ovirt.engine.ui.common.uicommon.TimerImpl.logger.info ( "Timer execution" ) ; tickEvent.raise ( this , EventArgs.EMPTY ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . hideRoleSelection ( java.lang.Boolean.parseBoolean ( model.getIsRoleListHiddenModel ( ) . getEntity ( ) . toString ( ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { model.populateNamespaces ( ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.scheduling.SchedulingManager.getInstance ( ) . removeClusterPolicy ( getParameters ( ) . getClusterPolicyId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { schedulingManager.removeClusterPolicy ( getParameters ( ) . getClusterPolicyId ( ) ) ; setSucceeded ( true ) ; }
Source:
public void addToHistory_twoOverLimitValuesBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 11 , 12 , 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 3 ) ) ; }

Target:
public void addToHistoryTwoOverLimitValuesBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 11 , 12 , 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 3 ) ) ; }
Source:
protected void LogTaskCleanFailure ( ) { org.ovirt.engine.core.bll.SPMAsyncTask.log.errorFormat ( "SPMAsyncTask::ClearAsyncTask: Clearing task '{0}' failed." , getTaskID ( ) ) ; }

Target:
protected void LogTaskCleanFailure ( ) { org.ovirt.engine.core.bll.SPMAsyncTask.log.errorFormat ( "SPMAsyncTask::ClearAsyncTask: Clearing task '{0}' failed." , getVdsmTaskId ( ) ) ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { return constants.dismissAlert ( ) ; }

Target:
protected java.lang.String getTitle ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { return org.ovirt.engine.ui.webadmin.widget.footer.AlertsEventsFooterView.constants.dismissAlert ( ) ; }
Source:
private boolean isBalloonActiveOnHost ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getDbFacade ( ) . getVdsGroupDao ( ) . get ( _vds.getVdsGroupId ( ) ) ; return ( cluster != null ) && ( cluster.isEnableBallooning ( ) ) ; }

Target:
private boolean isBalloonActiveOnHost ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getDbFacade ( ) . getVdsGroupDao ( ) . getFromCache ( _vds.getVdsGroupId ( ) ) ; return ( cluster != null ) && ( cluster.isEnableBallooning ( ) ) ; }
Source:
public void validateFailsOnNoBrick ( ) { cmd.setGlusterVolumeId ( volumeId4 ) ; cmd.getParameters ( ) . setNewBrick ( getBricks ( volumeId4 , "" , 1 ) . get ( 0 ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNoBrick ( ) { cmd.setGlusterVolumeId ( volumeId4 ) ; cmd.getParameters ( ) . setNewBrick ( getBricks ( volumeId4 , "" , 1 ) . get ( 0 ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.VM getEntityWithProvidedId ( int index , org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.VM.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VmStatistics.class ) , index , vmId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmTemplate getTemplateEntity ( int index ) { org.ovirt.engine.api.restapi.resource.VmTemplate template = new org.ovirt.engine.api.restapi.resource.VmTemplate ( ) ; return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( template , index ) ; }
Source:
public void setVncPort ( java.lang.String vncPort ) { this . vncPort = vncPort ; }

Target:
public java.lang.String getVncPort ( ) { java.lang.Integer port = consoleOptions.getPort ( ) ; return port == null ? null : port.toString ( ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Frontend: sucessfully executed RunAction, determining result!" ) ; org.ovirt.engine.ui.frontend.Frontend.handleActionResult ( actionType , parameters , result , null , null ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Frontend: sucessfully executed RunAction, determining result!" ) ; org.ovirt.engine.ui.frontend.Frontend.handleActionResult ( actionType , parameters , result , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK , null ) ; }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "name" ) ) { getSearchCommand ( ) . Execute ( ) ; } }

Target:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "name" ) ) { getSearchCommand ( ) . Execute ( ) ; } }
Source:
public org.ovirt.engine.sdk.utils.UrlBuilder add ( java.lang.String key , org.ovirt.engine.sdk.web.UrlParameterType type ) { this . params.add ( new org.ovirt.engine.sdk.utils.UrlBuilder.UrlParsameter ( key , null , type ) ) ; return this ; }

Target:
public org.ovirt.engine.sdk.utils.UrlBuilder add ( java.lang.String key , org.ovirt.engine.sdk.web.UrlParameterType type ) { this . params.add ( new org.ovirt.engine.sdk.utils.UrlBuilder.UrlParameter ( key , null , type ) ) ; return this ; }
Source:
public org.ovirt.engine.ui.uicommonweb.UiAction getCloseAction ( ) { return new org.ovirt.engine.ui.uicommonweb.UiAction ( this , "CloseSetupNetworksDialog" ) { @ java.lang.Override protected void onActionExecuted ( ) { sourceListModel.setWindow ( null ) ; sourceListModel.search ( ) ; } } ; }

Target:
public org.ovirt.engine.ui.uicommonweb.action.SimpleAction getCloseAction ( ) { return new org.ovirt.engine.ui.uicommonweb.action.SimpleAction ( ) { @ java.lang.Override public void execute ( ) { sourceListModel.setWindow ( null ) ; sourceListModel.search ( ) ; } } ; }
Source:
protected org.ovirt.engine.api.model.VM getEntityWithProvidedId ( int index , org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.VM.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VmStatistics.class ) , index , vmId ) ; }

Target:
protected org.ovirt.engine.api.model.VM getEntityWithProvidedId ( int index , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.api.model.VM vm = new org.ovirt.engine.api.model.VM ( ) ; return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( vm , vm.getStatisticsData ( ) , index , vmId ) ; }
Source:
public java.lang.Boolean getAcpiEnable ( ) { return this . vmDynamic.getacpi_enable ( ) ; }

Target:
public void setGuestOs ( java.lang.String value ) { this . vmDynamic.setGuestOs ( value ) ; }
Source:
public void setrun_on_vds ( org.ovirt.engine.core.compat.NGuid value ) { this . mVmDynamic.setrun_on_vds ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "run_on_vds" ) ) ; }

Target:
public void setConsoleUserId ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setConsoleUserId ( value ) ; }
Source:
public void dispose ( ) { synchronized ( syncObj ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.info ( "IrsProxyData::disposing" ) ; resetIrs ( ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( storagePoolRefreshJobId ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( domainRecoverOnHostJobId ) ; _disposed = true ; } }

Target:
public void dispose ( ) { synchronized ( syncObj ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.info ( "IrsProxyData::disposing" ) ; resetIrs ( ) ; getSchedulUtil ( ) . deleteJob ( storagePoolRefreshJobId ) ; getSchedulUtil ( ) . deleteJob ( domainRecoverOnHostJobId ) ; _disposed = true ; } }
Source:
protected org.ovirt.engine.core.common.action.ProfileParametersBase < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getParameters ( ) { return new org.ovirt.engine.core.common.action.CpuProfileParameters ( getProfile ( ) , getProfile ( ) . getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.ProfileParametersBase < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getParameters ( ) { org.ovirt.engine.core.common.action.CpuProfileParameters cpuProfileParameters = new org.ovirt.engine.core.common.action.CpuProfileParameters ( getProfile ( ) , getProfile ( ) . getId ( ) ) ; cpuProfileParameters.setAddPermissions ( true ) ; return cpuProfileParameters ; }
Source:
protected boolean performImagesChecks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImagesToCheck = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getImagesList ( ) , true , false , true ) ; org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator ( diskImagesToCheck ) ; return validate ( diskImagesValidator.diskImagesNotLocked ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createStorageDomainValidator ( ) { java.util.Set < org.ovirt.engine.core.compat.Guid > storageIds = org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getAllStorageIdsForImageIds ( getImagesList ( ) ) ; return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.snapshots.RestoreAllSnapshotsCommand.getStoragePoolId ( ) , storageIds ) ; }
Source:
public void setvm_mem_size_mb ( int value ) { this . mVmStatic.setmem_size_mb ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_mem_size_mb" ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getVmOs ( ) { return this . vmStatic.getOs ( ) ; }
Source:
private static void setHookId ( org.ovirt.engine.api.model.Hook hook , java.lang.String hookName , java.lang.String eventName , java.lang.String md5 ) { org.ovirt.engine.core.compat.Guid guid = org.ovirt.engine.api.restapi.types.HostMapper.generateHookId ( eventName , hookName , md5 ) ; hook.setId ( guid.toString ( ) ) ; }

Target:
private static void setHookId ( org.ovirt.engine.api.model.Hook hook , java.lang.String hookName , java.lang.String eventName , java.lang.String md5 ) { org.ovirt.engine.core.compat.Guid guid = org.ovirt.engine.api.restapi.utils.GuidUtils.generateGuidUsingMd5 ( eventName , hookName , md5 ) ; hook.setId ( guid.toString ( ) ) ; }
Source:
public void canDoActionFails ( ) { cmd = createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public void updateCallbackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = get ( commandId ) ; if ( cmdEntity != null ) { cmdEntity.setCallbackNotified ( true ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . updateNotified ( commandId ) ; } }

Target:
public void updateCallbackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = get ( commandId ) ; if ( cmdEntity != null ) { cmdEntity.setCallbackNotified ( true ) ; commandEntityDao.updateNotified ( commandId ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.VmNetworkInterface getEntity ( int index , java.lang.String networkName ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNicsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VmNetworkStatistics.class ) , index , networkName ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getEntity ( int index , java.lang.String networkName ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNicsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics.class ) , index , networkName ) ; }
Source:
private boolean isImagesExists ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : getDisksList ( ) ) { if ( ( diskImage.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) { return true ; } } return false ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.CinderDisksValidator getCinderDisksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderDisk > cinderDisks ) { return new org.ovirt.engine.core.bll.validator.storage.CinderDisksValidator ( cinderDisks ) ; }
Source:
public void nonActiveVdsDisallowed ( ) { testNonActiveVdsExecution ( StorageDomainStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NO_VDS_IN_POOL ) ; }

Target:
public void nonActiveVdsDisallowed ( ) { testNonActiveVdsExecution ( StorageDomainStatus.Maintenance ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NO_VDS_IN_POOL ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3StorageDomain storageDomain ) { return adaptAdd ( delegate :: add , storageDomain ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3StorageDomain storageDomain ) { return adaptAdd ( getDelegate ( ) :: add , storageDomain ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel determineConsoleModelFromVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > cachedModels ) { return ( vm.getDisplayType ( ) ) == ( org.ovirt.engine.core.common.businessentities.DisplayType.vnc ) ? cachedModels.get ( org.ovirt.engine.ui.uicommonweb.models.userportal.IUserPortalListModel.VNC_INDEX ) : cachedModels.get ( org.ovirt.engine.ui.uicommonweb.models.userportal.IUserPortalListModel.SPICE_INDEX ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel determineConsoleModelFromVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > cachedModels ) { return ( vm.getDefaultDisplayType ( ) ) == ( org.ovirt.engine.core.common.businessentities.DisplayType.vnc ) ? cachedModels.get ( org.ovirt.engine.ui.uicommonweb.models.userportal.IUserPortalListModel.VNC_INDEX ) : cachedModels.get ( org.ovirt.engine.ui.uicommonweb.models.userportal.IUserPortalListModel.SPICE_INDEX ) ; }
Source:
public void setAuthn ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }

Target:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getAuthn ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , false ) ) ) ; }
Source:
public boolean disconnectStorageFromDomainByStoragePoolId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runForSingleConnectionInHost ( storageDomain , storagePoolId , VdcActionType.RemoveStorageServerConnection.getValue ( ) ) ; }

Target:
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.DisconnectStorageServerConnection.getValue ( ) , lun , Guid.Empty ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmPopupWidgetConfigMap createWidgetConfiguration ( ) { return super . createWidgetConfiguration ( ) . putAll ( poolSpecificFields ( ) , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmPopupWidgetConfig.hiddenField ( ) ) . update ( consoleTab , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmPopupWidgetConfig.simpleField ( ) . visibleInAdvancedModeOnly ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap createWidgetConfiguration ( ) { return super . createWidgetConfiguration ( ) . putAll ( poolSpecificFields ( ) , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) . update ( consoleTab , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.simpleField ( ) . visibleInAdvancedModeOnly ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.snapshots.SnapshotsManager getSnapshotManager ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.snapshots.SnapshotsManager.class ) ; }

Target:
public org.ovirt.engine.core.bll.snapshots.SnapshotsManager getSnapshotManager ( ) { return snapshotsManager ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { }

Target:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) { executeDiskModifications ( vmId , unitVmModel ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ad_groups lookupEntity ( org.ovirt.engine.core.compat.Guid nullId ) { return lookupGroupById ( id ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.LdapGroup lookupEntity ( org.ovirt.engine.core.compat.Guid nullId ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return lookupGroupById ( this . id ) ; }
Source:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemovePermission , new org.ovirt.engine.core.common.action.PermissionsOperationsParametes ( getPermission ( id ) ) ) ; }

Target:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return ( getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? getReturnValue ( ) . getInternalTaskIdList ( ) : getReturnValue ( ) . getTaskIdList ( ) ; }

Target:
public org.ovirt.engine.core.bll.SPMAsyncTask CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.AsyncTaskFactory.construct ( taskType , taskParameters , false ) ; }
Source:
public void setChildren ( java.util.List < org.ovirt.engine.core.common.businessentities.tags > children ) { _children = children ; }

Target:
public void setChildren ( java.util.List < org.ovirt.engine.core.common.businessentities.Tags > children ) { _children = children ; }
Source:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidator ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.validator.StorageDomainValidator.class ) ; org.mockito.Mockito.when ( storageDomainValidator.isDomainExistAndActive ( ) ) . thenReturn ( ValidationResult.VALID ) ; org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidator ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator.class ) ; org.mockito.Mockito.when ( storageDomainValidator.isDomainExistAndActive ( ) ) . thenReturn ( ValidationResult.VALID ) ; org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }
Source:
public void isVariableDeclaration_simpleReferenceToVariable ( ) { org.junit.Assert.assertFalse ( translator.isVariableDeclaration ( "${x} aaa" ) ) ; }

Target:
public void isVariableDeclaration_simpleReferenceToVariable ( ) { org.junit.jupiter.api.Assertions.assertFalse ( translator.isVariableDeclaration ( "${x} aaa" ) ) ; }
Source:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotScheduleRecurrence object ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . recurrenceType ( object ) ; }

Target:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotScheduleRecurrence object ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( object ) ; }
Source:
void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool , boolean isNewSpm ) ;

Target:
void runFailedAutoStartVMs ( java.util.List < org.ovirt.engine.core.compat.Guid > vmIds ) ;
Source:
org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomains ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) ;
Source:
private boolean virtIoScsiDiskValidation ( ) { org.ovirt.engine.core.bll.validator.DiskValidator diskValidator = getDiskValidator ( disk ) ; return validate ( diskValidator.isVirtIoScsiValid ( org.ovirt.engine.core.bll.HotPlugDiskToVmCommand.getVm ( ) ) ) ; }

Target:
private boolean virtIoScsiDiskValidation ( ) { org.ovirt.engine.core.bll.validator.storage.DiskValidator diskValidator = getDiskValidator ( disk ) ; return validate ( diskValidator.isVirtIoScsiValid ( org.ovirt.engine.core.bll.HotPlugDiskToVmCommand.getVm ( ) ) ) ; }
Source:
public void Template_SelectedItemChanged ( ) { super . Template_SelectedItemChanged ( ) ; getModel ( ) . setIsDisksAvailable ( true ) ; updateHostPinning ( pool.getMigrationSupport ( ) ) ; }

Target:
public void template_SelectedItemChanged ( ) { super . template_SelectedItemChanged ( ) ; getModel ( ) . setIsDisksAvailable ( true ) ; updateHostPinning ( pool.getMigrationSupport ( ) ) ; }
Source:
public void onSuccess ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > idToIconMap ) { finishSearch ( all ) ; }

Target:
protected boolean fetchLargeIcons ( ) { return false ; }
Source:
protected org.ovirt.engine.core.dao.StorageServerConnectionLunMapDao setUpStorageServerConnectionLunMapDao ( ) { storageServerConnectionLunMapDao = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.StorageServerConnectionLunMapDao.class ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getStorageServerConnectionLunMapDao ( ) ) . thenReturn ( storageServerConnectionLunMapDao ) ; return storageServerConnectionLunMapDao ; }

Target:
protected void expectGetLunsForVg ( java.lang.String vgId , boolean withDummyLun ) { org.mockito.Mockito.when ( lunDao.getAllForVolumeGroup ( vgId ) ) . thenReturn ( setUpLuns ( withDummyLun ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeSnapshotDelete ( java.lang.String snapshotName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeSnapshotDelete ( java.lang.String volumeName ) ;
Source:
public void warn ( java.lang.Object arg0 ) { log.warn ( addPrefixToLogMessage ( arg0 ) ) ; }

Target:
public void warn ( java.lang.Object msg ) { log.warn ( addPrefixToLogMessage ( msg ) ) ; }
Source:
public void setkvm_enable ( java.lang.Boolean value ) { this . kvm_enable = value ; }

Target:
public java.lang.String getDisplayIp ( ) { return this . displayIp ; }
Source:
private java.lang.String getConfiguration ( final javax.servlet.http.HttpServletRequest request ) { org.codehaus.jackson.node.ObjectNode node = mapper.createObjectNode ( ) ; node.put ( "value" , org.ovirt.engine.core.utils.servlet.ServletUtils.getBaseContextPath ( request ) ) ; return node.toString ( ) ; }

Target:
protected java.lang.String getEngineSessionId ( final javax.servlet.http.HttpServletRequest request ) { return ( ( java.lang.String ) ( request.getSession ( ) . getAttribute ( SessionConstants.HTTP_SESSION_ENGINE_SESSION_ID_KEY ) ) ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { getCallsHandler ( ) . executeModification ( "UpdateAuditLog" , getSqlMapper ( event ) ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { getCallsHandler ( ) . executeModification ( "InsertAuditLog" , getSqlMapper ( event ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn allocateVolume ( java.lang.String spUUID , java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String volUUID , java.lang.String size ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn glusterWebhookAdd ( java.lang.String url , java.lang.String bearerToken ) ;
Source:
public static void setGatewayIfNecessary ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String gateway ) { iface.setGateway ( gateway ) ; }

Target:
public static void setGatewayIfNecessary ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String gateway ) { iface.setIpv4Gateway ( gateway ) ; }
Source:
public boolean getis_initialized ( ) { return this . mVmStatic.getis_initialized ( ) ; }

Target:
public void setInitialized ( boolean value ) { this . vmStatic.setis_initialized ( value ) ; }
Source:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl > getPolicyUnitsMap ( ) { return policyUnits ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl > getPolicyUnitsMap ( ) { synchronized ( policyUnitsLock ) { return policyUnits ; } }
Source:
protected void setActionMessageParameters ( ) { addValidationMessage ( ( ( org.ovirt.engine.core.bll.storage.disk.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Copy ) ? org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__COPY : org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__MOVE ) ) ; addValidationMessage ( EngineMessage.VAR__TYPE__VM_DISK ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( ( ( org.ovirt.engine.core.bll.storage.disk.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Copy ) ? org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__COPY : org.ovirt.engine.core.common.errors.EngineMessage.VAR__ACTION__MOVE ) ) ; addValidationMessage ( EngineMessage.VAR__TYPE__DISK ) ; }
Source:
public void setfail_back ( boolean value ) { this . mVmStatic.setfail_back ( value ) ; }

Target:
public void setVdsGroupCpuName ( java.lang.String value ) { this . vdsGroupCpuName = value ; }
Source:
public static java.lang.String getUnsupportedVersionMessage ( ) { return VdcBllMessages.ACTION_TYPE_FAILED_GIVEN_VERSION_NOT_SUPPORTED.toString ( ) ; }

Target:
public static org.ovirt.engine.core.common.errors.VdcBllMessages getUnsupportedVersionMessage ( ) { return org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_GIVEN_VERSION_NOT_SUPPORTED ; }
Source:
public void testGetAllByVMTemplateNameUnprivilegedUserFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameInvalidResults ( dao.getAllByVMTemplateName ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_NAME , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ) ; }

Target:
public void testGetAllByVMTemplateIdUnprivilegedUserNoFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameValidResults ( dao.getAllByVMTemplateId ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ) ; }
Source:
public void iscsiBondDoesNotExist ( ) { org.ovirt.engine.core.bll.ValidationResult res = validator.isIscsiBondExist ( null ) ; org.junit.Assert.assertThat ( res , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ISCSI_BOND_NOT_EXIST ) ) ; }

Target:
public void iscsiBondDoesNotExist ( ) { org.ovirt.engine.core.bll.ValidationResult res = validator.isIscsiBondExist ( null ) ; org.hamcrest.MatcherAssert.assertThat ( res , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ISCSI_BOND_NOT_EXIST ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.RepoFileMetaData > getActiveIsoDomain ( ) { return repoFileMetaDataDao.getRepoListForStorageDomain ( FixturesTool.SHARED_ISO_STORAGE_DOAMIN_FOR_SP2_AND_SP3 , ImageType.ISO ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.RepoFileMetaData > getActiveIsoDomain ( ) { return repoFileMetaDataDao.getRepoListForStorageDomain ( FixturesTool.SHARED_ISO_STORAGE_DOAMIN_FOR_SP2_AND_SP3 , ImageFileType.ISO ) ; }
Source:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.DetachUserFromVmFromPoolCommand.getVmPoolId ( ) ) != null ) { DetachVmFromUser ( ) ; } org.ovirt.engine.core.bll.DetachUserFromVmFromPoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.DetachUserFromVmFromPoolCommand.getVmPoolId ( ) ) != null ) { detachVmFromUser ( ) ; } org.ovirt.engine.core.bll.DetachUserFromVmFromPoolCommand.setSucceeded ( true ) ; }
Source:
public void onUiCommonInit ( org.ovirt.engine.ui.common.uicommon.model.UiCommonInitEvent event ) { addSelectionChangeListener ( itemSelectionChangeHandler ) ; }

Target:
void registerSelectionChangeHandler ( final org.ovirt.engine.ui.common.widget.action.ActionButtonDefinition < T > buttonDef ) { final org.ovirt.engine.ui.uicompat.IEventListener itemSelectionChangeHandler = new org.ovirt.engine.ui.uicompat.IEventListener ( ) { @ java.lang.Override public void eventRaised ( org.ovirt.engine.ui.common.widget.action.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { buttonDef.update ( ) ; } } ; addSelectionChangeListener ( itemSelectionChangeHandler ) ; }
Source:
public org.ovirt.engine.core.compat.Guid gettag_id ( ) { return this . id.tagId ; }

Target:
public org.ovirt.engine.core.compat.Guid getTagId ( ) { return this . id.tagId ; }
Source:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.StoragePoolQueryParametersBase.class , new java.lang.String [ ] { "StoragePoolId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }

Target:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }
Source:
protected int getMaxClonedNameLength ( java.lang.Object object ) { return org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.VM_TEMPLATE_NAME_MAX_LIMIT ; }

Target:
protected int getMaxClonedNameLength ( java.lang.Object object ) { return org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.VM_TEMPLATE_AND_INSTANCE_TYPE_NAME_MAX_LIMIT ; }
Source:
public void testGetWithRunningVms ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.getWithRunningVms ( existingCluster.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; }

Target:
public void testGetWithRunningVms ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.getWithRunningVms ( existingCluster.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getAllRelevantQuotasForStorage ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getAllRelevantQuotasForStorage ( org.ovirt.engine.core.compat.Guid storageId , long engineSessionSeqId , boolean isFiltered ) ;
Source:
public final void setBrandingManager ( final org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager manager ) { brandingManager = manager ; }

Target:
void init ( org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager brandingManager ) { this . brandingManager = brandingManager ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByJobIdForVdsmAndGluster ( org.ovirt.engine.core.compat.Guid jobId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Step.getStepsByJobIdForVdsmAndGluster" , org.ovirt.engine.core.common.job.Step.class ) . setParameter ( "jobId" , jobId ) . setParameter ( "systemType" , java.util.EnumSet.of ( ExternalSystemType.VDSM , ExternalSystemType.GLUSTER ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByJobId ( org.ovirt.engine.core.compat.Guid jobId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "job_id" , jobId ) ; return getCallsHandler ( ) . executeReadList ( "GetStepsByJobId" , createEntityRowMapper ( ) , parameterSource ) ; }
Source:
private boolean wasSkippedDueToStatus ( org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue result ) { return ( ( result != null ) && ( result.isSkipped ( ) ) ) && ( ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.RestartVds ) ) ; }

Target:
private boolean wasSkippedDueToStatus ( org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue result ) { return ( ( result != null ) && ( result.isSkippedDueToStatus ( ) ) ) && ( ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.RestartVds ) ) ; }
Source:
public void testGetBySlaveHostNameAndVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session = dao.getGeoRepSession ( FixturesTool.GLUSTER_VOLUME_UUID1 , "192.168.122.17" , "slave-replica" ) ; org.junit.Assert.assertNotNull ( session ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_GEOREP_SESSION_ID , session.getId ( ) ) ; }

Target:
public void testGetBySlaveHostNameAndVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session = dao.getGeoRepSession ( FixturesTool.GLUSTER_VOLUME_UUID1 , "192.168.122.17" , "slave-replica" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( session ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.GLUSTER_GEOREP_SESSION_ID , session.getId ( ) ) ; }
Source:
public static java.lang.String getCpuIdle ( java.lang.String idle ) { return java.lang.String.valueOf ( ( 100 - ( java.lang.Integer.valueOf ( idle ) ) ) ) ; }

Target:
public static java.lang.String getCpuIdle ( java.lang.String idle ) { return java.lang.Integer.toString ( ( 100 - ( java.lang.Integer.parseInt ( idle ) ) ) ) ; }
Source:
private void updateGuestAgentInterfacesChanges ( org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic , java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > vmGuestAgentInterfaces , int guestAgentNicHash ) { vmDynamic.setGuestAgentNicsHash ( guestAgentNicHash ) ; vmDynamic.setvm_ip ( extractVmIpsFromGuestAgentInterfaces ( vmGuestAgentInterfaces ) ) ; }

Target:
private void updateGuestAgentInterfacesChanges ( org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic , java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > vmGuestAgentInterfaces , int guestAgentNicHash ) { vmDynamic.setGuestAgentNicsHash ( guestAgentNicHash ) ; vmDynamic.setVmIp ( extractVmIpsFromGuestAgentInterfaces ( vmGuestAgentInterfaces ) ) ; }
Source:
public void setWarning ( java.lang.String msg ) { if ( ! ( getInfoMessage ( ) . getIsValid ( ) ) ) { return ; } getInfoMessage ( ) . setIsValid ( true ) ; getInfoMessage ( ) . setEntity ( msg ) ; }

Target:
public void clearProblem ( ) { getProblemDescription ( ) . setIsValid ( true ) ; getProblemDescription ( ) . setEntity ( null ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > startSpice ( java.lang.String vdsIp , int port , java.lang.String ticket ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;
Source:
public org.ovirt.engine.core.compat.Guid getIsoStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid pool ) { return getStorageDomainId ( pool , StorageDomainType.ISO ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getIsoStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { return getStorageDomainId ( poolId , StorageDomainType.ISO , status ) ; }
Source:
public void setmem_shared ( java.lang.Long value ) { this . mVdsStatistics.setmem_shared ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_shared" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_shared_percent" ) ) ; }

Target:
public java.lang.String getPmSecondaryPassword ( ) { return mVdsStatic.getPmSecondaryPassword ( ) ; }
Source:
private org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters createParameters ( ) { org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters parameters = new org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters ( vmId , diskId ) ; parameters.setReadOnly ( true ) ; return parameters ; }

Target:
private org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters createParameters ( ) { org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters parameters = new org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( diskId , vmId ) ) ; parameters.setReadOnly ( true ) ; return parameters ; }