auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDAO ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmDynamic , compensationContext ) ; }

Target:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmDynamic , compensationContext ) ; }
Source:
private static java.util.Map < java.lang.String , java.lang.Object > setDisksStatsInXmlRpc ( java.lang.Object disksStatsData ) { java.util.Map < java.lang.String , java.lang.Object > map = new java.util.HashMap < > ( ) ; map.put ( VdsProperties.DISK_STATS , disksStatsData ) ; return map ; }

Target:
private static java.util.Map < java.lang.String , java.lang.Object > setDisksStats ( java.lang.Object disksStatsData ) { java.util.Map < java.lang.String , java.lang.Object > map = new java.util.HashMap < > ( ) ; map.put ( VdsProperties.DISK_STATS , disksStatsData ) ; return map ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getStatus ( ) { return status ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.Status getStatus ( ) { return status ; }
Source:
protected org.ovirt.engine.core.bll.utils.GlusterUtil getGlusterUtil ( ) { return org.ovirt.engine.core.bll.utils.GlusterUtil.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.utils.GlusterUtil getGlusterUtils ( ) { return super . getGlusterUtils ( ) ; }
Source:
private void mockQueryParameters ( org.ovirt.engine.core.compat.Guid requestedUser , boolean includeDiskData ) { org.mockito.Mockito.when ( getQueryParameters ( ) . getUserId ( ) ) . thenReturn ( requestedUser ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getIncludeDiskData ( ) ) . thenReturn ( includeDiskData ) ; }

Target:
private void mockQueryParameters ( org.ovirt.engine.core.compat.Guid requestedUser , boolean includeDiskData ) { org.mockito.Mockito.when ( getQuery ( ) . getUserID ( ) ) . thenReturn ( requestedUser ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getIncludeDiskData ( ) ) . thenReturn ( includeDiskData ) ; }
Source:
public void getVmTemplateNull ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setVmTemplate ( null ) ; final org.ovirt.engine.core.common.businessentities.VmTemplate t = b.getVmTemplate ( ) ; org.junit.Assert.assertNull ( t ) ; }

Target:
public void getVmTemplateDefault ( ) { final org.ovirt.engine.core.common.businessentities.VmTemplate t = b.getVmTemplate ( ) ; org.junit.Assert.assertNull ( t ) ; }
Source:
public void macAddressTooLongForCreate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS ) + ":00" ) , org.ovirt.engine.core.common.validation.group.CreateEntity.class , true ) ; }

Target:
public void macAddressTooLongForUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS ) + ":00" ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , true ) ; }
Source:
public void checkNullIpConfiguration ( ) { org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_MISSING_IP_CONFIGURATION , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_NETWORK_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_INTERFACE_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.INTERFACE_NAME ) ) ) ; }

Target:
public void checkNullIpConfiguration ( ) { org.hamcrest.MatcherAssert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_MISSING_IP_CONFIGURATION , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_NETWORK_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_INTERFACE_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.INTERFACE_NAME ) ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.ReportCommand addOpenReportCommand ( java.lang.String idParamName , boolean isMultiple , java.lang.String uriId ) { return addOpenReportCommand ( new org.ovirt.engine.ui.uicommonweb.ReportCommand ( "OpenReport" , idParamName , isMultiple , uriId , this ) ) ; }

Target:
public void syncSearch ( org.ovirt.engine.core.common.queries.VdcQueryType vdcQueryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase vdcQueryParametersBase ) { vdcQueryParametersBase.setRefresh ( getIsQueryFirstTime ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( vdcQueryType , vdcQueryParametersBase , new SetItemsAsyncQuery ( ) ) ; setIsQueryFirstTime ( false ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( java.lang.String volumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusDetailForXmlRpc glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;
Source:
public void hostAttachedToLocalStorageWithoutDataCenter ( ) { org.junit.Assert.assertThat ( validator.validateSingleHostAttachedToLocalStorage ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void hostAttachedToLocalStorageWithoutDataCenter ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.validateSingleHostAttachedToLocalStorage ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; initTabAvailabilityListeners ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; initTabAvailabilityListeners ( object ) ; if ( object.isVmAttachedToPool ( ) ) disableAllWidgetsExceptNameEditor ( ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetStorageDomainListById , new org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase ( getEntity ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetStorageDomainListById , new org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase ( getEntity ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void init ( ) { org.ovirt.engine.core.common.businessentities.VmStatic vmStatic = vmStaticDao.get ( vmId ) ; if ( vmStatic != null ) { updateStaticFields ( vmStatic ) ; } }

Target:
public void init ( ) { setPowerOffTimeout ( java.lang.System.nanoTime ( ) ) ; org.ovirt.engine.core.common.businessentities.VmStatic vmStatic = vmStaticDao.get ( vmId ) ; if ( vmStatic != null ) { updateStaticFields ( vmStatic ) ; } }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return getDbFacade ( ) . getVmDao ( ) . getAllForDiskProfile ( getProfile ( ) . getId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return getDbFacade ( ) . getVmDao ( ) . getAllForDiskProfiles ( java.util.Collections.singletonList ( getProfile ( ) . getId ( ) ) ) ; }
Source:
org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface createNetworkInSyncWithVdsNetworkInterface ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.HostNetworkQos networkQos , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { return new org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface ( nic , network , networkQos ) ; }

Target:
org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface createNetworkInSyncWithVdsNetworkInterface ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic , org.ovirt.engine.core.common.businessentities.network.Network network ) { org.ovirt.engine.core.common.businessentities.network.HostNetworkQos hostNetworkQos = effectiveHostNetworkQos.getQos ( networkAttachment , network ) ; return new org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface ( nic , network , hostNetworkQos ) ; }
Source:
public void addVmToRun ( org.ovirt.engine.core.compat.Guid vmId ) { autoStartVmsToRun.add ( new org.ovirt.engine.core.common.utils.Pair ( org.ovirt.engine.core.compat.DateTime.getNow ( ) , vmId ) ) ; }

Target:
private org.ovirt.engine.core.utils.lock.EngineLock createEngineLockForRunVm ( org.ovirt.engine.core.compat.Guid vmId , java.lang.String lockMessage ) { return new org.ovirt.engine.core.utils.lock.EngineLock ( org.ovirt.engine.core.bll.RunVmCommandBase.getExclusiveLocksForRunVm ( vmId , lockMessage ) , org.ovirt.engine.core.bll.RunVmCommandBase.getSharedLocksForRunVm ( ) ) ; }
Source:
protected void BaseRollback ( ) { super . Rollback ( ) ; }

Target:
protected void BaseRollback ( ) { super . rollback ( ) ; }
Source:
public void setMainTabBarOffset ( int left ) { getView ( ) . setMainTabBarOffset ( left ) ; }

Target:
public void addTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget , int index ) { tabBar.addTabWidget ( tabWidget , index ) ; }
Source:
private boolean templateExists ( ) { if ( ( ( org.ovirt.engine.core.bll.ImportVmCommand.getVmTemplate ( ) ) == null ) && ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . getCopyCollapse ( ) ) ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; } return true ; }

Target:
private boolean templateExists ( ) { if ( ( ( org.ovirt.engine.core.bll.ImportVmCommand.getVmTemplate ( ) ) == null ) && ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . getCopyCollapse ( ) ) ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; } return true ; }
Source:
private boolean updateFloppyListFromVDSM ( org.ovirt.engine.core.compat.Guid repoStoragePoolId , org.ovirt.engine.core.compat.Guid repoStorageDomainId ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue fileStats = getFileStats ( repoStoragePoolId , repoStorageDomainId , org.ovirt.engine.core.bll.IsoDomainListSyncronizer.FLOPPY_FILE_PATTERN , VDSCommandType.GetFloppyList ) ; return refreshVdsmFileList ( repoStoragePoolId , repoStorageDomainId , null , ImageFileType.Floppy , fileStatsFromVDSReturnValue ( fileStats ) ) ; }

Target:
private boolean updateFloppyListFromVDSM ( org.ovirt.engine.core.compat.Guid repoStoragePoolId , org.ovirt.engine.core.compat.Guid repoStorageDomainId ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue fileStats = getFileStats ( repoStoragePoolId , repoStorageDomainId , org.ovirt.engine.core.bll.IsoDomainListSyncronizer.FLOPPY_VDSM_FILE_PATTERN , VDSCommandType.GetFloppyList ) ; return updateFloppyListFromVDSM ( repoStoragePoolId , repoStorageDomainId , fileStatsFromVDSReturnValue ( fileStats ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return null ; }

Target:
private org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand createImportVmTemplateCommandSpy ( final org.ovirt.engine.core.common.action.ImportVmTemplateParameters parameters ) { return org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand ( parameters , org.ovirt.engine.core.bll.context.CommandContext.createContext ( parameters.getSessionId ( ) ) ) ) ; }
Source:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }
Source:
public void setDisks ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel > value ) { if ( ( disks ) != value ) { disks = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; } }

Target:
public void setDisks ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel > value ) { if ( ( disks ) != value ) { disks = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; } }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VDS , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
public void cancel ( ) { cancelConfirm ( ) ; setWindow ( null ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; }
Source:
public void testGetTagTemplateMapByTag ( ) { org.ovirt.engine.core.common.businessentities.TagsTemplateMap result = dao.getTagTemplateByTagIdAndByTemplateId ( existingTemplateTag.gettag_id ( ) , existingTemplateTag.gettemplate_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; assertEqualsTagsTemplateMap ( existingTemplateTag , result ) ; }

Target:
public void testGetTagTemplateMapByTag ( ) { org.ovirt.engine.core.common.businessentities.TagsTemplateMap result = dao.getTagTemplateByTagIdAndByTemplateId ( existingTemplateTag.getTagId ( ) , existingTemplateTag.getTemplateId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; assertEqualsTagsTemplateMap ( existingTemplateTag , result ) ; }
Source:
public org.ovirt.engine.sdk.entities.JobOwner createJobOwner ( ) { return new org.ovirt.engine.sdk.entities.JobOwner ( ) ; }

Target:
public javax.xml.bind.JAXBElement < java.lang.Boolean > createSoundcardEnabled ( java.lang.Boolean value ) { return new javax.xml.bind.JAXBElement < java.lang.Boolean > ( org.ovirt.engine.sdk.entities.ObjectFactory._SoundcardEnabled_QNAME , java.lang.Boolean.class , null , value ) ; }
Source:
private void assertCanDoActionFailure ( final java.lang.String messageToVerify ) { org.junit.Assert.assertFalse ( underTest.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( underTest.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( messageToVerify ) ) ; }

Target:
private void assertValidateFailure ( final java.lang.String messageToVerify ) { org.junit.Assert.assertFalse ( underTest.validate ( ) ) ; org.junit.Assert.assertTrue ( underTest.getReturnValue ( ) . getValidationMessages ( ) . contains ( messageToVerify ) ) ; }
Source:
public void testParseStrayColons ( ) { try { org.ovirt.engine.api.restapi.util.FencingOptionsParser.parse ( "foo:::one=1,two=2,three=3" , "one=bool,two=int,three=bool" ) ; fail ( "expected IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException iae ) { } }

Target:
public void testParseStrayColons ( ) { try { org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:::one=1,two=2,three=3" , "one=bool,two=int,three=bool" ) ; fail ( "expected IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException iae ) { } }
Source:
private void providerChanged ( ) { clearValidations ( ) ; switch ( importSources.getSelectedItem ( ) ) { case VMWARE : vmwareProviderChanged ( ) ; break ; case KVM : kvmProviderChanged ( ) ; break ; default : } }

Target:
private void providerChanged ( ) { clearValidations ( ) ; switch ( importSources.getSelectedItem ( ) ) { case VMWARE : vmwareProviderChanged ( ) ; break ; case KVM : kvmProviderChanged ( ) ; break ; case XEN : xenProviderChanged ( ) ; break ; default : } }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.events.EventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.eventMainTabLabel ( ) , 14 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.events.EventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabEventPresenter.constants.eventMainTabLabel ( ) , 14 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc refreshStoragePool ( java.lang.String spUUID , java.lang.String msdUUID , int masterVersion ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc refreshVolume ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.get ( getExistingEntityId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.get ( getExistingEntityId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public static void LogoffAsync ( final org.ovirt.engine.core.common.businessentities.DbUser dbUser , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . logoffAsync ( dbUser , callback ) ; }

Target:
public void fireEvent ( com.google.gwt.event.shared.GwtEvent < ? > event ) { eventBus.fireEvent ( event ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vmModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; vmModel.set_MinMemSize ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; }

Target:
public void activated ( ) { if ( ( getBehavior ( ) . getInstanceTypeManager ( ) ) != null ) { getBehavior ( ) . getInstanceTypeManager ( ) . updateFields ( ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public void addOrUpdateTaskInDB ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . saveOrUpdate ( asyncTask ) ; }

Target:
public void addOrUpdateTaskInDB ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { coCoAsyncTaskHelper.addOrUpdateTaskInDB ( asyncTask ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.network.IPv4Address createDefaultIpAddress ( ) { org.ovirt.engine.core.common.businessentities.network.IPv4Address output = new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ; output.setBootProtocol ( Ipv4BootProtocol.NONE ) ; return output ; }

Target:
private static org.ovirt.engine.core.common.businessentities.network.IPv4Address createDefaultIpv4Address ( ) { org.ovirt.engine.core.common.businessentities.network.IPv4Address ipv4Address = new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ; ipv4Address.setBootProtocol ( Ipv4BootProtocol.NONE ) ; return ipv4Address ; }
Source:
public void setVmMemSizeMb ( int value ) { this . vmStatic.setmem_size_mb ( value ) ; }

Target:
public void setVmMemSizeMb ( int value ) { this . vmStatic.setMemSizeMb ( value ) ; }
Source:
private void handleSaslException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response , java.lang.Throwable cause ) { response.setServerScore ( Score.LOW ) . setTranslatedException ( new org.ovirt.engine.core.bll.adbroker.EngineDirectoryServiceException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.CONNECTION_ERROR , ( "General connection problem due to " + cause ) ) ) . setTryNextServer ( true ) ; }

Target:
private void handleSaslException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response , java.lang.Throwable cause ) { response.setServerScore ( Score.LOW ) . setTranslatedException ( new org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.CONNECTION_ERROR , ( "General connection problem due to " + cause ) ) ) . setTryNextServer ( true ) ; }
Source:
public org.ovirt.engine.core.bll.CommandBase < ? > retrieveCommand ( org.ovirt.engine.core.compat.Guid commandId ) { return buildCommand ( commandsCache.get ( commandId ) ) ; }

Target:
public org.ovirt.engine.core.bll.CommandBase < ? > retrieveCommand ( org.ovirt.engine.core.compat.Guid commandId ) { return buildCommand ( commandsCache.get ( commandId ) , contextsCache.get ( commandId ) ) ; }
Source:
public void setCustomSerialNumber ( java.lang.String customSerialNumber ) { vmStatic.setCustomSerialNumber ( customSerialNumber ) ; }

Target:
public void setGuestCpuCount ( int guestCpuCount ) { getDynamicData ( ) . setGuestCpuCount ( guestCpuCount ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; StopProgress ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { cancel ( ) ; stopProgress ( ) ; }
Source:
public void testCDAStoragePoolValid ( ) { vds.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail on mismatch Storage Pool" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessagesContains ( command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_NOT_IN_POOL ) ; }

Target:
public void testCDAVdsIsSPM ( ) { vds.setSpmStatus ( VdsSpmStatus.SPM ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on a VDS that is already set as SPM" , command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_ALREADY_SPM ) ; }
Source:
public org.ovirt.engine.api.resource.aaa.SSHPublicKeysResource getSSHPublicKeysResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.aaa.BackendSSHPublicKeysResource ( guid ) ) ; }

Target:
public org.ovirt.engine.api.resource.aaa.SshPublicKeysResource getSshPublicKeysResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.aaa.BackendSSHPublicKeysResource ( guid ) ) ; }
Source:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > getImagesToCheckDestinationStorageDomains ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getDiskTemplateMap ( ) . values ( ) ; }

Target:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > getImagesToCheckDestinationStorageDomains ( ) { return vmDisksSource.getDiskTemplateMap ( ) . values ( ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetTemplateInterfacesByTemplateId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetTemplateInterfacesByTemplateId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
protected boolean isDataCenterWithSpm ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { return ! ( org.ovirt.engine.core.common.FeatureSupported.dataCenterWithoutSpm ( storagePool.getCompatibilityVersion ( ) ) ) ; }

Target:
protected boolean isDataOperationsBySpm ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { return ! ( org.ovirt.engine.core.common.FeatureSupported.dataOperationsByHSM ( storagePool.getCompatibilityVersion ( ) ) ) ; }
Source:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > snapshots ) { java.util.Collections.sort ( snapshots , new org.ovirt.engine.ui.uicommonweb.Linq.GlusterVolumeSnapshotComparer ( ) ) ; setItems ( snapshots ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > snapshots ) { java.util.Collections.sort ( snapshots , java.util.Comparator.comparing ( GlusterVolumeSnapshotEntity :: getSnapshotName ) ) ; setItems ( snapshots ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = this ; behavior.maxCpusPerSocket = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.totalCpuCoresChanged ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = this ; behavior.maxThreadsPerCore = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.totalCpuCoresChanged ( ) ; }
Source:
protected void executeCommand ( ) { networkClusterHelper.removeNetworkAndReassignRoles ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.getParameters ( ) . getNetworkCluster ( ) ) ; org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { networkClusterHelper.removeNetworkAndReassignRoles ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.getParameters ( ) . getNetworkCluster ( ) ) ; networkHelper.setVdsmNamesInVdsInterfaces ( getNetwork ( ) , org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.getClusterId ( ) ) ; org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.setSucceeded ( true ) ; }
Source:
private static void assertGetAllForClusterResult ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.ovirt.engine.core.dao.network.NetworkDaoTest.assertIsSorted ( result ) ; }

Target:
private static void assertGetAllForClusterResult ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; org.ovirt.engine.core.dao.network.NetworkDaoTest.assertIsSorted ( result ) ; }
Source:
public void testDefaultRouteWhenInSync ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testDefaultRouteWhenInSync ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void testProtectRhel6InRhel7 ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = createBaseVds ( ) ; vdsFromDb.setHostOs ( "RHEL - 7Server - 1.el7" ) ; vds.setHostOs ( "RHEL - 6Server - 6.5.0.1.el6" ) ; virtStrategy.processSoftwareCapabilities ( vds ) ; org.junit.Assert.assertEquals ( VDSStatus.NonOperational , vds.getStatus ( ) ) ; }

Target:
public void testProtectRhel6InRhel7 ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = createBaseVds ( ) ; vdsFromDb.setHostOs ( "RHEL - 7Server - 1.el7" ) ; vds.setHostOs ( "RHEL - 6Server - 6.5.0.1.el6" ) ; virtStrategy.processSoftwareCapabilities ( vds ) ; org.junit.jupiter.api.Assertions.assertEquals ( VDSStatus.NonOperational , vds.getStatus ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.MacPool getByDataCenterId ( org.ovirt.engine.core.compat.Guid dataCenterId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "id" , dataCenterId ) ; return getCallsHandler ( ) . executeRead ( "GetMacPoolByDataCenterId" , new org.ovirt.engine.core.dao.MacPoolDaoImpl.MacPoolRowMapper ( ) , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.MacPool getByClusterId ( org.ovirt.engine.core.compat.Guid dataCenterId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , dataCenterId ) ; return getCallsHandler ( ) . executeRead ( "GetMacPoolByClusterId" , new org.ovirt.engine.core.dao.MacPoolDaoImpl.MacPoolRowMapper ( ) , parameterSource ) ; }
Source:
private void updateButtonText ( org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImageLineModel model ) { java.lang.String text = ( ( model.getDiskModel ( ) . getEntity ( ) ) != null ) ? constants.editInstanceImages ( ) : constants.addInstanceImages ( ) ; createEditButton.setLabel ( text ) ; }

Target:
private void updateButtonText ( org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImageLineModel model ) { java.lang.String text = ( ( model.getDiskModel ( ) . getEntity ( ) ) != null ) ? org.ovirt.engine.ui.common.widget.uicommon.instanceimages.InstanceImageLineEditor.constants.editInstanceImages ( ) : org.ovirt.engine.ui.common.widget.uicommon.instanceimages.InstanceImageLineEditor.constants.addInstanceImages ( ) ; createEditButton.setLabel ( text ) ; }
Source:
private void initAllPlugins ( ) { for ( org.ovirt.engine.ui.webadmin.plugin.Plugin plugin : getPlugins ( ) ) { initPlugin ( plugin ) ; } org.ovirt.engine.ui.webadmin.plugin.UiPluginsInitializedEvent.fire ( this ) ; }

Target:
void maybeInvokePluginsReadyCallback ( ) { if ( ( ( ( pluginsReadyCallback ) != null ) && ( ! ( pluginsReadyCallbackInvoked ) ) ) && ( ! ( pluginsToPreLoad.containsValue ( false ) ) ) ) { pluginsReadyCallback.onPluginsReady ( ) ; pluginsReadyCallbackInvoked = true ; } }
Source:
public void testQuotaClusterByQuotaGuidWithGeneralDefaultWithEmpty ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > quotaClusterList = dao.getQuotaClusterByQuotaGuidWithGeneralDefault ( FixturesTool.QUOTA_EMPTY ) ; org.junit.Assert.assertNotNull ( quotaClusterList ) ; org.junit.Assert.assertEquals ( "wrong number of quotas returned" , 0 , quotaClusterList.size ( ) ) ; }

Target:
public void testQuotaClusterByQuotaGuidWithGeneralDefaultWithEmpty ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > quotaClusterList = dao.getQuotaClusterByQuotaGuidWithGeneralDefault ( FixturesTool.QUOTA_EMPTY ) ; org.junit.jupiter.api.Assertions.assertNotNull ( quotaClusterList ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , quotaClusterList.size ( ) , "wrong number of quotas returned" ) ; }
Source:
int getNumOfSnapshotsByMemory ( java.lang.String memoryVolume ) ;

Target:
int getNumOfSnapshotsByDisks ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) ;
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RunVmCommandBase.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , getVmLockMessage ( ) ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.RunVmCommandBase.getExclusiveLocksForRunVm ( org.ovirt.engine.core.bll.RunVmCommandBase.getVmId ( ) , getLockMessage ( ) ) ; }
Source:
public void testRemoveAllServerHooks ( ) { dao.removeGlusterServerHooks ( FixturesTool.HOOK_ID ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getById ( FixturesTool.HOOK_ID , true ) ; org.junit.Assert.assertTrue ( hook.getServerHooks ( ) . isEmpty ( ) ) ; }

Target:
public void testRemoveAllServerHooks ( ) { dao.removeGlusterServerHooks ( FixturesTool.HOOK_ID ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getById ( FixturesTool.HOOK_ID , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( hook.getServerHooks ( ) . isEmpty ( ) ) ; }
Source:
public void forceRefresh ( ) { stopRefresh ( ) ; setIsQueryFirstTime ( true ) ; syncSearch ( ) ; if ( ! ( getIsTimerDisabled ( ) ) ) { startRefresh ( ) ; } }

Target:
public void forceRefresh ( ) { getTimer ( ) . stop ( ) ; setIsQueryFirstTime ( true ) ; syncSearch ( ) ; if ( ! ( getIsTimerDisabled ( ) ) ) { getTimer ( ) . start ( ) ; } }
Source:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( org.ovirt.engine.core.searchbackend.StringHelper.EqOp ( fieldName , "STATUS" ) ) { retval = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.searchbackend.AdRefStatus.class ) ; } return retval ; }

Target:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( org.ovirt.engine.core.searchbackend.StringHelper.EqOp ( fieldName , "STATUS" ) ) { retval = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.searchbackend.LdapRefStatus.class ) ; } return retval ; }
Source:
protected boolean canDoAction ( ) { return ( ( ( ( networkNotAttachedToCluster ( ) ) && ( vdsGroupExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ) && ( validateAttachment ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return ( ( ( ( networkNotAttachedToCluster ( ) ) && ( vdsGroupExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ) && ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.validateAttachment ( ) ) ; }
Source:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_CPUS_PINNED ) ) ; }

Target:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( EngineMessage.CLUSTER_UPGRADE_DETAIL_VM_CPUS_PINNED.name ( ) ) ) ; }
Source:
public java.lang.String getVdcUserPassword ( ) { java.lang.String password = org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getPassword ( ) ; return password == null ? "" : password ; }

Target:
public java.lang.String getUserPassword ( ) { return org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . getLoginPassword ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.SessionsListReturnForXmlRpc getSessionList ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterHooksListReturnForXmlRpc glusterHooksList ( ) ;
Source:
public org.ovirt.engine.ui.frontend.AsyncCallback < T > getDel ( ) { return asyncCallback ; }

Target:
public org.ovirt.engine.ui.frontend.AsyncCallback < T > getAsyncCallback ( ) { return asyncCallback ; }
Source:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.DirectorySearchParameters ( ( ( ( "ADGROUP@" + ( ( ( org.ovirt.engine.core.aaa.ProfileEntry ) ( getProfile ( ) . getSelectedItem ( ) ) ) . getAuthz ( ) ) ) + ": " ) + searchString ) , org.ovirt.engine.core.common.interfaces.SearchType.DirectoryGroup , getNamespace ( ) . getSelectedItem ( ) ) , query ) ; }

Target:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.SearchParameters ( ( ( ( ( ( "ADGROUP@" + ( ( ( org.ovirt.engine.core.aaa.ProfileEntry ) ( getProfile ( ) . getSelectedItem ( ) ) ) . getAuthz ( ) ) ) + ":" ) + ( getNamespace ( ) . getSelectedItem ( ) ) ) + ": " ) + searchString ) , org.ovirt.engine.core.common.interfaces.SearchType.DirectoryGroup ) , query ) ; }
Source:
public void testChangeToExistingName ( ) { prepareVmToPassCanDoAction ( ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with vm name already in use." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testLongName ( ) { vmStatic.setName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; org.junit.Assert.assertFalse ( "validate should fail for too long vm name." , command.validate ( ) ) ; assertValidateMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getImages ( ) { return getVm ( ) . getImages ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getImages ( ) { return org.ovirt.engine.core.bll.ImportVmCommand.getVm ( ) . getImages ( ) ; }
Source:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.QuotaStorage , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaStorageListModel > getQuotaStorageListProvider ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < org.ovirt.engine.core.common.businessentities.QuotaStorage , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaStorageListModel > ( ginjector , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel.class , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaStorageListModel.class ) ; }

Target:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.QuotaStorage , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaStorageListModel > getQuotaStorageListProvider ( com.google.gwt.event.shared.EventBus eventBus , com.google.inject.Provider < org.ovirt.engine.ui.common.presenter.popup.DefaultConfirmationPopupPresenterWidget > defaultConfirmPopupProvider ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < org.ovirt.engine.core.common.businessentities.QuotaStorage , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaStorageListModel > ( eventBus , defaultConfirmPopupProvider , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel.class , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaStorageListModel.class ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { return ( obj != null ) && ( ( ( org.ovirt.engine.core.common.businessentities.Disk ) ( obj ) ) . isWipeAfterDelete ( ) ) ; }

Target:
protected boolean isPostZero ( ) { if ( ( cachedPostZero ) == null ) { cachedPostZero = isDiskWithWipeAfterDeleteExist ( getDiskDao ( ) . getAllForVm ( vmId ) ) ; } return cachedPostZero ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.AlignmentScanReturn getDiskAlignment ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > driveSpecs ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn glusterVolumeResetBrickStart ( java.lang.String volumeName , java.lang.String existingBrickDir ) ;
Source:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setName ( "vm1" ) ; vmStatic.setMemSizeMb ( 256 ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; }

Target:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setName ( "vm1" ) ; vmStatic.setMemSizeMb ( 256 ) ; vmStatic.setSingleQxlPci ( false ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; mockValidatePciAndIdeLimit ( ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult hostExists ( ) { return ( org.ovirt.engine.core.bll.RefreshHostInfoCommandBase.getVds ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) : ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult hostExists ( ) { return ( org.ovirt.engine.core.bll.RefreshHostInfoCommandBase.getVds ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) : ValidationResult.VALID ; }
Source:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > existingInterfaces ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( host.getId ( ) ) , existingInterfaces , null , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil ) ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao , mockNetworkExclusivenessValidatorResolver ) ; }
Source:
public java.lang.String getTemplate ( ) { return getTemplate ( org.ovirt.engine.sdk.codegen.templates.DeleteMethodTemplate.DOC_SEPARATOR , "" , "" , "" ) ; }

Target:
public java.lang.String getTemplate ( ) { return getTemplate ( org.ovirt.engine.sdk.codegen.templates.DOC_SEPARATOR , "" , "" , "" ) ; }
Source:
org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid pool , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) ;

Target:
org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) ;
Source:
public void testGetAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > result = dao.getAllForVm ( FixturesTool.VM_TEMPLATE_RHEL5 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetPluggedForVMFilteredWithPermissionsNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > disks = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_57 , true , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( "VM should have no disks viewable to the user" , disks.isEmpty ( ) ) ; }
Source:
public void setStreams ( java.io.InputStream incoming , java.io.OutputStream outgoing ) { _incoming = ( incoming == null ) ? null : new java.io.BufferedReader ( new java.io.InputStreamReader ( incoming , java.nio.charset.Charset.forName ( "UTF-8" ) ) , org.ovirt.engine.core.bll.hostdeploy.OVirtNodeUpgrade.BUFFER_SIZE ) ; }

Target:
public void setStreams ( java.io.InputStream incoming , java.io.OutputStream outgoing ) { _incoming = ( incoming == null ) ? null : new java.io.BufferedReader ( new java.io.InputStreamReader ( incoming , java.nio.charset.StandardCharsets.UTF_8 ) , org.ovirt.engine.core.bll.hostdeploy.OVirtNodeUpgrade.BUFFER_SIZE ) ; }
Source:
private boolean isRunAndPaused ( ) { return ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . isRunAndPause ( ) ) && ( ( org.ovirt.engine.core.bll.RunVmCommand.getVmDynamicDao ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Paused ) ) ; }

Target:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { org.ovirt.engine.core.bll.RunVmCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.StartEntity.class ) ; return super . getValidationGroups ( ) ; }