auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getFilteredWithPermissions ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = dao.get ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_SNAPSHOT_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( snapshot ) ; org.junit.Assert.assertEquals ( existingEntity , snapshot ) ; }

Target:
public void getFilteredWithPermissions ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = dao.get ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_SNAPSHOT_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( snapshot ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingEntity , snapshot ) ; }
Source:
public void testIsDefaultRouteWhenNetworkClusterDoesNotExist ( ) { org.mockito.Mockito.when ( networkClusterDao.get ( new org.ovirt.engine.core.common.businessentities.network.NetworkClusterId ( clusterId , networkId ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( underTest.isDefaultRouteNetwork ( networkId , clusterId ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testIsDefaultRouteWhenNetworkClusterDoesNotExist ( ) { org.mockito.Mockito.when ( networkClusterDao.get ( new org.ovirt.engine.core.common.businessentities.network.NetworkClusterId ( clusterId , networkId ) ) ) . thenReturn ( null ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.isDefaultRouteNetwork ( networkId , clusterId ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getTreeForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.VdcObjectType type , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { int appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ApplicationMode ) ; return getTreeForEntity ( id , type , userID , isFiltered , appMode ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getTreeForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.VdcObjectType type , long engineSessionSeqId , boolean isFiltered ) { int appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ApplicationMode ) ; return getTreeForEntity ( id , type , engineSessionSeqId , isFiltered , appMode ) ; }
Source:
public static boolean isPendingOvirt ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.VdsHandler.isPendingOvirt ( vds.getvds_type ( ) , vds.getstatus ( ) ) ; }

Target:
public static boolean isPendingOvirt ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.VdsHandler.isPendingOvirt ( vds.getVdsType ( ) , vds.getStatus ( ) ) ; }
Source:
org.ovirt.engine.core.bll.validator.UpdateHostValidator getUpdateHostValidator ( ) { return org.ovirt.engine.core.bll.validator.UpdateHostValidator.createInstance ( oldHost , org.ovirt.engine.core.bll.hostdeploy.UpdateVdsCommand.getParameters ( ) . getvds ( ) , org.ovirt.engine.core.bll.hostdeploy.UpdateVdsCommand.getParameters ( ) . isInstallHost ( ) ) ; }

Target:
org.ovirt.engine.core.bll.validator.UpdateHostValidator getUpdateHostValidator ( org.ovirt.engine.core.common.businessentities.VDS oldHost , org.ovirt.engine.core.common.businessentities.VDS updatedHost , boolean installHost ) { return org.ovirt.engine.core.bll.validator.UpdateHostValidator.createInstance ( oldHost , updatedHost , installHost ) ; }
Source:
public void testValidateImageDoesNotExist ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void testValidateImageDoesNotExist ( ) { org.mockito.Mockito.when ( diskDao.get ( diskImageGroupId ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
protected void AlertIfPowerManagementOperationFailed ( ) { Alert ( AuditLogType.VDS_ALERT_FENCE_OPERATION_FAILED ) ; }

Target:
protected void alertIfPowerManagementOperationFailed ( ) { Alert ( AuditLogType.VDS_ALERT_FENCE_OPERATION_FAILED ) ; }
Source:
public void setPath ( java.lang.String path ) { this . path = ( path == null ) ? new java.lang.String ( ) : path ; }

Target:
public void setPath ( java.lang.String path ) { this . path = ( path == null ) ? "" : path ; }
Source:
protected org.ovirt.engine.core.bll.utils.ClusterUtils getClusterUtils ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.utils.GlusterUtil getGlusterUtils ( ) { return org.ovirt.engine.core.bll.utils.GlusterUtil.getInstance ( ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.Disk , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.Disk , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public java.util.List < org.ovirt.api.metamodel.concepts.Parameter > getParameters ( ) { return parameters ; }

Target:
public org.ovirt.api.metamodel.concepts.Parameter getParameter ( org.ovirt.api.metamodel.concepts.Name name ) { return parameters.stream ( ) . filter ( named ( name ) ) . findFirst ( ) . orElse ( null ) ; }
Source:
private org.ovirt.engine.api.model.Disks createDisksCollection ( ) { org.ovirt.engine.api.model.Disks disks = new org.ovirt.engine.api.model.Disks ( ) ; disks.getDisks ( ) . add ( map ( createDiskList ( ) . get ( 0 ) , null ) ) ; return disks ; }

Target:
private org.ovirt.engine.api.model.DiskAttachments createDiskAttachmentsCollection ( ) { org.ovirt.engine.api.model.DiskAttachments diskAttachments = new org.ovirt.engine.api.model.DiskAttachments ( ) ; diskAttachments.getDiskAttachments ( ) . add ( map ( createDiskList ( ) . get ( 0 ) , null ) ) ; return diskAttachments ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVmsByDiskGuidQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetVmsByDiskGuidQuery.getDbFacade ( ) . getVmDao ( ) . getForDisk ( org.ovirt.engine.core.bll.GetVmsByDiskGuidQuery.getParameters ( ) . getId ( ) , true ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVmsByDiskGuidQuery.getQueryReturnValue ( ) . setReturnValue ( vmDao.getForDisk ( org.ovirt.engine.core.bll.GetVmsByDiskGuidQuery.getParameters ( ) . getId ( ) , true ) ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getAnyVdsToRunOn ( ) { return getVdsToRunOn ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getAnyVdsToRunOn ( boolean isMigrate ) { return getVdsToRunOn ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) , isMigrate ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( target ) ) ; model.setIsDiskHotPlugSupported ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( target ) ) ; model.getScanAlignmentCommand ( ) . setIsExecutionAllowed ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
public void testCanDoActionCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.RemoveQuotaCommand removeQuotaCommand = createCommand ( ) ; junit.framework.Assert.assertTrue ( removeQuotaCommand.canDoAction ( ) ) ; }

Target:
public void testCanDoActionCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.RemoveQuotaCommand removeQuotaCommand = createCommand ( ) ; org.junit.Assert.assertTrue ( removeQuotaCommand.canDoAction ( ) ) ; }
Source:
public void updateCpuFlags ( org.ovirt.engine.core.compat.Guid id , java.lang.String cpuFlags ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setCpuFlags ( cpuFlags ) ; update ( entity ) ; }

Target:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource getStatusSqlParameterSource ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "status" , status ) ; }
Source:
public void run ( org.ovirt.engine.core.common.businessentities.StoragePool item , org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetClusterList ( callback.getAsyncQuery ( ) , item.getId ( ) ) ; }

Target:
public void run ( org.ovirt.engine.core.common.businessentities.StoragePool item , org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getClusterList ( callback.getAsyncQuery ( ) , item.getId ( ) ) ; }
Source:
public void testExistingDiscardAfterDeleteFunctionalityPreservedNoDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( false ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 0L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) , storageDomain ) ) ; }

Target:
public void testGetLunsThatBreakDiscardAfterDeleteSupportDiscardAfterDeleteDoesntBreak ( ) { storageDomain.setDiscardAfterDelete ( true ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , java.util.Collections.emptyList ( ) ) ; }
Source:
private void doTestIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullForBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol dhcp ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachmentWithIpConfiguration = createNetworkAttachmentWithIpConfiguration ( dhcp , null , null ) ; org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator networkAttachmentValidator = createNetworkAttachmentValidator ( networkAttachmentWithIpConfiguration ) ; org.junit.Assert.assertThat ( networkAttachmentValidator.ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
private void doTestIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullForBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol bootProtocol ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachmentWithIpConfiguration = createNetworkAttachmentWithIpConfiguration ( bootProtocol , null , null ) ; org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator networkAttachmentValidator = createNetworkAttachmentValidator ( networkAttachmentWithIpConfiguration ) ; org.junit.Assert.assertThat ( networkAttachmentValidator.ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
java.lang.String vNumaName ( java.lang.String name , int index ) ;

Target:
java.lang.String numaNode ( int index ) ;
Source:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( command.getStorageDomainStaticDao ( ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }

Target:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( storageDomainStaticDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }
Source:
public void onManualRefresh ( ) { setLoadingState ( LoadingState.LOADING ) ; }

Target:
public void onManualRefresh ( ) { dataProvider.onManualRefresh ( ) ; setLoadingState ( LoadingState.LOADING ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Network.class , org.ovirt.engine.core.common.VdcObjectType.Network ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.QueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Network.class , org.ovirt.engine.core.common.VdcObjectType.Network ) ) ; }
Source:
public void run ( ) { getBackend ( ) . runInternalAction ( VdcActionType.PersistentSetupNetworks , params ) ; }

Target:
public void run ( ) { runInternalAction ( VdcActionType.PersistentSetupNetworks , params , cloneContextAndDetachFromParent ( ) ) ; }
Source:
protected boolean isDiskExists ( org.ovirt.engine.core.compat.Guid id ) { return getBaseDiskDao ( ) . exists ( id ) ; }

Target:
protected boolean isDiskExists ( org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.core.bll.ImportVmCommand.getBaseDiskDao ( ) . exists ( id ) ; }
Source:
public void onUserLogin ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { setLoggedUser ( loggedUser ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }

Target:
public void onUserLogin ( org.ovirt.engine.core.common.businessentities.DbUser loggedUser ) { setLoggedUser ( loggedUser ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }
Source:
protected abstract void setHostPort ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;

Target:
protected abstract void setPort ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
public void testGetDataAndSetDataWithEmptySession ( ) { org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.getData ( "" , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) ) ; clearSession ( ) ; }

Target:
public void testGetDataAndSetDataWithEmptySession ( ) { org.junit.jupiter.api.Assertions.assertNull ( container.getData ( "" , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) , "Get should return null with an empty session" ) ; clearSession ( ) ; }
Source:
public void vmNotHavingPassthroughVnicsValid ( ) { vmNotHavingPassthroughVnicsCommon ( vm.getId ( ) , 0 , 2 ) ; assertThatVmNotHavingPassthroughVnics ( true ) ; }

Target:
public void allPassthroughVnicsMigratable ( ) { mockVnics ( java.util.stream.Stream.concat ( createMigratablePassthroughNics ( 2 , false ) , createRegularNics ( 3 ) ) ) ; assertThatAllPassthroughVnicsMigratable ( true ) ; }
Source:
void clearCurrentSessionId ( ) { clientStorage.removeLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY ) ; }

Target:
void clearSessionId ( ) { clientStorage.removeLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY ) ; }
Source:
public void testGetAllForCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForCluster ( FixturesTool.CLUSTER ) ; org.ovirt.engine.core.dao.VmTemplateDaoTest.assertGetAllResult ( result ) ; for ( org.ovirt.engine.core.common.businessentities.VmTemplate template : result ) { org.junit.Assert.assertEquals ( FixturesTool.CLUSTER , template.getClusterId ( ) ) ; } }

Target:
public void testGetAllForCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForCluster ( FixturesTool.CLUSTER ) ; org.ovirt.engine.core.dao.VmTemplateDaoTest.assertGetAllResult ( result ) ; for ( org.ovirt.engine.core.common.businessentities.VmTemplate template : result ) { org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.CLUSTER , template.getClusterId ( ) ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.Bookmark getByName ( java.lang.String name ) { final javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.Bookmark > query = getEntityManager ( ) . createNamedQuery ( "Bookmark.byName" , org.ovirt.engine.core.common.businessentities.Bookmark.class ) ; query.setParameter ( "name" , name ) ; return singleResult ( query ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDaoImpl.BookmarkSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromBookmarks" , org.ovirt.engine.core.dao.BookmarkDaoImpl.BookmarkRowMapper.instance , parameterSource ) ; }
Source:
public void setUp ( ) { adUser = new org.ovirt.engine.core.common.businessentities.LdapUser ( "UserName" , "password" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , "DomainController" ) ; }

Target:
public void setUp ( ) { adUser = new org.ovirt.engine.core.common.businessentities.LdapUser ( ) ; adUser.setUserName ( "UserName" ) ; adUser.setPassword ( "password" ) ; adUser.setUserId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; adUser.setDomainControler ( "DomainController" ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, postZeros = %s, forceDelete = %s" , super . toString ( ) , getPostZeros ( ) , getForceDelete ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, postZeros = %s, forceDelete = %s" , super . toString ( ) , getPostZero ( ) , getForceDelete ( ) ) ; }
Source:
protected boolean validateImageNotActive ( ) { return ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getDiskImageDAO ( ) . get ( getSourceImages ( ) . get ( 0 ) . getImageId ( ) ) ) == null ; }

Target:
protected boolean validateImageNotActive ( ) { return ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getDiskImageDAO ( ) . get ( getRepresentativeSourceImageId ( ) ) ) == null ; }
Source:
< T > com.google.gwt.editor.client.LeafValueEditor < T > getActualEditor ( com.google.gwt.editor.client.LeafValueEditor < T > editor ) { if ( editor instanceof org.ovirt.engine.ui.common.widget.editor.WidgetWithLabelEditor ) { return ( ( org.ovirt.engine.ui.common.widget.editor.WidgetWithLabelEditor < T , ? > ) ( editor ) ) . getSubEditor ( ) ; } else { return editor ; } }

Target:
< T > com.google.gwt.editor.client.LeafValueEditor < T > getActualEditor ( com.google.gwt.editor.client.LeafValueEditor < T > editor ) { if ( editor instanceof org.ovirt.engine.ui.common.editor.UiCommonEditor ) { return ( ( org.ovirt.engine.ui.common.editor.UiCommonEditor < T > ) ( editor ) ) . getActualEditor ( ) ; } else { return editor ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = getDbFacade ( ) . getNetworkDao ( ) . get ( vnicProfile.getNetworkId ( ) ) ; } return network ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfile > getVnicProfiles ( ) { if ( ( vnicProfiles ) == null ) { vnicProfiles = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.network.VnicProfileDao.class ) . getAllForNetwork ( vnicProfile.getNetworkId ( ) ) ; } return vnicProfiles ; }
Source:
public void versionHigherThanCluster ( ) { storagePoolWithVersionHigherThanCluster ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS ) ; }

Target:
public void versionHigherThanCluster ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_2 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS ) ; }
Source:
public void canDoActionFailureOnMovingLunDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_LUN_DISK ) ; }

Target:
public void canDoActionFailureOnMovingLunDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
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:
public org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network network ) { network.setCluster ( new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; network.getCluster ( ) . setId ( clusterId ) ; return network ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getWatchdogs ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.WATCHDOG ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice ( vmId , deviceId , true , false , "" , false ) ; }
Source:
public int getNiceLevel ( ) { return this . vmStatic.getnice_level ( ) ; }

Target:
public void setDefaultBootSequence ( org.ovirt.engine.core.common.businessentities.BootSequence value ) { this . vmStatic.setDefaultBootSequence ( value ) ; }
Source:
public static void GetWatchdogByVmId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }

Target:
public static void getWatchdogByVmId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.DbUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getId ( ) ) ; params.setSessionId ( getSession ( ) . getId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . logoff ( params ) ; return returnValue ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.DbUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getId ( ) ) ; params.setSessionId ( getEngineSessionId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . logoff ( params ) ; return returnValue ; }
Source:
private void updateAuditLogFailedToUpdateVM ( java.lang.String vmName ) { org.ovirt.engine.core.bll.ExtendImageSizeCommand.addCustomValue ( "VmName" , vmName ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( this , AuditLogType.USER_EXTEND_DISK_SIZE_UPDATE_VM_FAILURE ) ; }

Target:
private void updateAuditLogFailedToUpdateVM ( java.lang.String vmName ) { org.ovirt.engine.core.bll.ExtendImageSizeCommand.addCustomValue ( "VmName" , vmName ) ; auditLogDirector.log ( this , AuditLogType.USER_EXTEND_DISK_SIZE_UPDATE_VM_FAILURE ) ; }
Source:
public void testGetAllVfsConfigByHostIdWithNoVfsConfigs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( org.ovirt.engine.core.dao.network.HostNicVfsConfigDaoTest.HOST_WITH_NO_VFS_CONFIGS_ID ) ; org.junit.Assert.assertTrue ( vfsConfigs.isEmpty ( ) ) ; }

Target:
public void testGetAllVfsConfigByHostIdWithNoVfsConfigs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( FixturesTool.HOST_WITH_NO_VFS_CONFIGS_ID ) ; org.junit.Assert.assertTrue ( vfsConfigs.isEmpty ( ) ) ; }
Source:
public java.lang.Double getElapsedTime ( ) { return this . elapsed_timeField ; }

Target:
public void setCpuSys ( java.lang.Double cpuSys ) { this . cpuSys = cpuSys ; }
Source:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BOND_NAME_EXISTS ) ; }

Target:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BOND_NAME_EXISTS ) ; }
Source:
public void testGetForHibernationImage ( ) { org.ovirt.engine.core.common.businessentities.VM result = dao.getForHibernationImage ( FixturesTool.IMAGE_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.IMAGE_ID.toString ( ) , result.gethibernation_vol_handle ( ) ) ; }

Target:
public void testGetForHibernationImage ( ) { org.ovirt.engine.core.common.businessentities.VM result = dao.getForHibernationImage ( FixturesTool.IMAGE_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.IMAGE_ID.toString ( ) , result.getHibernationVolHandle ( ) ) ; }
Source:
public void addToHistory_oneLimit ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 1 ) ) ; }

Target:
public void addToHistoryOneLimit ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 1 ) ) ; }
Source:
private void DataCenter_SelectedItemChanged ( ) { UpdateItemsAvailability ( ) ; UpdateFormat ( ) ; UpdateHost ( ) ; }

Target:
public void Initialize ( ) { super . Initialize ( ) ; setHash ( ( ( getHashName ( ) ) + ( new java.util.Date ( ) ) ) ) ; behavior.setHash ( getHash ( ) ) ; InitDataCenter ( ) ; }
Source:
public void testNonValidPatternName ( ) { org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.PoolNameValidationTest.TestablePoolNameValidation ( ) . validate ( "???" . replace ( '?' , VmPool.MASK_CHARACTER ) ) . getSuccess ( ) ) ; }

Target:
public void testNonValidPatternName ( ) { org.junit.Assert.assertFalse ( poolNameValidation.validate ( "???" . replace ( '?' , VmPool.MASK_CHARACTER ) ) . getSuccess ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { if ( text != null ) { return templates.nonResizeableColumnHeader ( text ) ; } return null ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { if ( ( text != null ) && ( applyResizableHeaderStyle ) ) { return templates.nonResizeableColumnHeader ( text ) ; } return text ; }
Source:
public void testServerKey ( ) throws java.lang.Exception { client.connect ( ) ; assertEquals ( TestCommon.sshd.getKey ( ) , client.getServerKey ( ) ) ; }

Target:
public void testServerKey ( ) throws java.lang.Exception { org.junit.Assume.assumeNotNull ( TestCommon.sshd ) ; client.connect ( ) ; assertEquals ( TestCommon.sshd.getKey ( ) , client.getServerKey ( ) ) ; }
Source:
private void localize ( ) { clusterEditor.setLabel ( constants.volumeClusterLabel ( ) ) ; snapshotConfigHeader.setText ( constants.snapshotConfigHeaderLabel ( ) ) ; }

Target:
private void localize ( ) { clusterEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GlusterClusterSnapshotConfigureOptionsPopupView.constants.volumeClusterLabel ( ) ) ; snapshotConfigHeader.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GlusterClusterSnapshotConfigureOptionsPopupView.constants.snapshotConfigHeaderLabel ( ) ) ; }
Source:
public boolean isQuotaDefault ( ) { return this . mVmStatic.isQuotaDefault ( ) ; }

Target:
public java.lang.String getVmDescription ( ) { return this . vmStatic.getDescription ( ) ; }
Source:
private static long anyLong ( ) { return org.apache.commons.lang.math.RandomUtils.nextLong ( ) ; }

Target:
private static long anyLong ( ) { return org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextLong ( ) ; }
Source:
public int getmem_size_mb ( ) { return this . getvm_mem_size_mb ( ) ; }

Target:
public java.lang.String getVmDomain ( ) { return this . vmStatic.getDomain ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.CpuProfile > getCpuProfilesCollection ( ) { return getBackendCollection ( VdcQueryType.GetAllCpuProfiles , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.CpuProfile > getCpuProfilesCollection ( ) { return getBackendCollection ( QueryType.GetAllCpuProfiles , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }
Source:
public void setAutoSuspend ( boolean value ) { this . vmStatic.setis_auto_suspend ( value ) ; }

Target:
public int getNumOfCpus ( ) { return this . vmStatic.getNumOfCpus ( ) ; }
Source:
public void testSave ( ) { dao.save ( newAsyncTask ) ; org.ovirt.engine.core.common.businessentities.AsyncTasks result = dao.get ( newAsyncTask.gettask_id ( ) ) ; org.junit.Assert.assertEquals ( newAsyncTask , result ) ; }

Target:
public void testSave ( ) { dao.save ( newAsyncTask ) ; org.ovirt.engine.core.common.businessentities.AsyncTasks result = dao.get ( newAsyncTask.getTaskId ( ) ) ; org.junit.Assert.assertEquals ( newAsyncTask , result ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.VmsService vmsService = connection.systemService ( ) . vmsService ( ) ; org.ovirt.engine.sdk4.types.Vm vm = vmsService.list ( ) . search ( "name=myvm" ) . send ( ) . vms ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.types.Cluster cluster = connection.followLink ( vm.cluster ( ) ) ; org.ovirt.engine.sdk4.types.Template template = connection.followLink ( vm.template ( ) ) ; java.lang.System.out.printf ( "cluster: %s\n" , cluster.name ( ) ) ; java.lang.System.out.printf ( "template: %s\n" , template.name ( ) ) ; connection.close ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.VmsService vmsService = connection.systemService ( ) . vmsService ( ) ; org.ovirt.engine.sdk4.types.Vm vm = vmsService.list ( ) . search ( "name=myvm" ) . send ( ) . vms ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.types.Cluster cluster = connection.followLink ( vm.cluster ( ) ) ; org.ovirt.engine.sdk4.types.Template template = connection.followLink ( vm.template ( ) ) ; java.util.List < org.ovirt.engine.sdk4.types.Permission > permissions = connection.followLink ( vm.permissions ( ) ) ; java.lang.System.out.printf ( "cluster: %s\n" , cluster.name ( ) ) ; java.lang.System.out.printf ( "template: %s\n" , template.name ( ) ) ; for ( org.ovirt.engine.sdk4.types.Permission permission : permissions ) { java.lang.System.out.printf ( "role: %s\n" , permission.role ( ) . id ( ) ) ; } connection.close ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmNetworkInterface getEntity ( int index ) { 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 ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getEntity ( int index ) { 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 ) ; }
Source:
protected void SearchNextPage ( ) { SetSearchStringPage ( getNextSearchPageNumber ( ) ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void searchPreviousPage ( ) { setSearchStringPage ( getPreviousSearchPageNumber ( ) ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
void freeMac ( java.lang.String mac ) ;

Target:
boolean isMacInUse ( java.lang.String mac ) ;
Source:
public void testGetUserIDWithNoUser ( ) { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; org.junit.Assert.assertNull ( "wrong guid" , query.getUserID ( ) ) ; }

Target:
public void testGetUserIDWithNoUser ( ) { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; org.junit.jupiter.api.Assertions.assertNull ( query.getUserID ( ) , "wrong guid" ) ; }
Source:
private void mockStorageDomainDynamicDAOGet ( ) { mockStorageDomainDynamicDAOGet ( AVAILABLE_SPACE_GB , USED_SPACE_GB ) ; }

Target:
private void mockConfig ( ) { mcr.mockConfigValue ( ConfigValues.PredefinedVMProperties , "3.0" , "" ) ; mcr.mockConfigValue ( ConfigValues.UserDefinedVMProperties , "3.0" , "" ) ; mcr.mockConfigValue ( ConfigValues.InitStorageSparseSizeInGB , 1 ) ; }
Source:
public void shouldDetectTooMuchVmNumaNodes ( ) { vm.setNumaTuneMode ( NumaTuneMode.PREFERRED ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_PREFERRED_NOT_PINNED_TO_SINGLE_NODE ) ; }

Target:
public void shouldDetectTooMuchVmNumaNodes ( ) { vm.setNumaTuneMode ( NumaTuneMode.PREFERRED ) ; assertValidationFailure ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_PREFERRED_NOT_PINNED_TO_SINGLE_NODE ) ; }
Source:
public static void init ( org.apache.commons.configuration.HierarchicalConfiguration keysConfig , java.util.Map < java.lang.String , java.lang.String > alternateKeysMap ) { org.ovirt.engine.core.config.entity.ConfigKeyFactory.instance.keysConfig = keysConfig ; org.ovirt.engine.core.config.entity.ConfigKeyFactory.instance.alternateKeysMap = alternateKeysMap ; }

Target:
public static void init ( org.apache.commons.configuration.HierarchicalConfiguration keysConfig , java.util.Map < java.lang.String , java.lang.String > alternateKeysMap , org.ovirt.engine.core.config.EngineConfigCLIParser parser ) { org.ovirt.engine.core.config.entity.ConfigKeyFactory.instance.keysConfig = keysConfig ; org.ovirt.engine.core.config.entity.ConfigKeyFactory.instance.alternateKeysMap = alternateKeysMap ; org.ovirt.engine.core.config.entity.ConfigKeyFactory.instance.parser = parser ; }
Source:
protected boolean validate ( ) { org.ovirt.engine.core.compat.Guid imageId = org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getParameters ( ) . getImageId ( ) ; if ( ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( imageId ) ) ) { return validateUploadToImage ( imageId ) ; } else { return validateCreateImage ( ) ; } }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.compat.Guid imageId = org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getParameters ( ) . getImageId ( ) ; if ( ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( imageId ) ) ) { return validateImageTransfer ( imageId ) ; } else { return validateCreateImage ( ) ; } }
Source:
private void initLunDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk lunDisk = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; org.mockito.Mockito.when ( diskDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( lunDisk ) ; }

Target:
private void initLunDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk lunDisk = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; org.mockito.Mockito.when ( diskDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( lunDisk ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getOsType ( ) { return getos ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getOsType ( ) { return getOs ( ) ; }
Source:
private void Cluster_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.Cluster_SelectedItemChanged ( ) ; UpdateMaximalVmMemSize ( ) ; }

Target:
private void cluster_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.cluster_SelectedItemChanged ( ) ; updateMaximalVmMemSize ( ) ; }
Source:
private org.ovirt.engine.core.dao.MacPoolDao getMacPoolDao ( ) { return getDbFacade ( ) . getMacPoolDao ( ) ; }

Target:
private org.ovirt.engine.core.dao.MacPoolDao getMacPoolDao ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.MacPoolDao.class ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , commandContext ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.ActionReturnValue > runInternalMultipleActions ( org.ovirt.engine.core.common.action.ActionType actionType , java.util.List < org.ovirt.engine.core.common.action.ActionParametersBase > parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , commandContext ) ; }
Source:
public int hashCode ( ) { return ( getid ( ) ) != null ? getid ( ) . hashCode ( ) : 0 ; }

Target:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( getid ( ) ) == null ? 0 : getid ( ) . hashCode ( ) ) ; return result ; }
Source:
public java.util.Map < java.lang.String , java.lang.String > getProperties ( ) { return values ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getProperties ( ) { return java.util.Collections.unmodifiableMap ( values ) ; }
Source:
public void testFailWhenReturningMacOutsideOfRange ( ) { rangeOf10Macs.freeMac ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_OUTSIDE_OF_RANGE ) ; }

Target:
public void testFailWhenReturningMacOutsideOfRange ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> rangeOf10Macs.freeMac ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_OUTSIDE_OF_RANGE ) ) ; }
Source:
public void testExistingDiscardFunctionalityIsPreservedSdHasNoDiscardFunctionality ( ) { setSdDiscardFunctionality ( false , true ) ; junit.framework.Assert.assertTrue ( discardHelper.isExistingDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }

Target:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDiscardFunctionality ( ) { setSdDiscardSupport ( false , true ) ; junit.framework.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }
Source:
void bindInfrastructure ( ) { bindCommonInfrastructure ( ) ; bind ( com.gwtplatform.mvp.client.proxy.PlaceManager.class ) . to ( org.ovirt.engine.ui.userportal.place.UserPortalPlaceManager.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.userportal.system.ApplicationInit.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.userportal.auth.CurrentUserRole.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
void bindInfrastructure ( ) { bindCommonInfrastructure ( org.ovirt.engine.ui.userportal.place.UserPortalPlaceManager.class ) ; bind ( org.ovirt.engine.ui.userportal.auth.LoggedInExtendedPlaceGatekeeper.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.userportal.system.ApplicationInit.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.userportal.auth.CurrentUserRole.class ) . in ( com.google.inject.Singleton.class ) ; }
Source:
protected void onNicsChanged ( ) { operationFactory = new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory ( getNetworks ( ) , getNics ( ) ) ; queryFreeBonds ( ) ; validate ( ) ; getNetworksChangedEvent ( ) . raise ( this , EventArgs.Empty ) ; }

Target:
protected void onNicsChanged ( ) { operationFactory = new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory ( getNetworks ( ) , getNics ( ) ) ; validate ( ) ; getNetworksChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
public void save ( T entity ) { org.ovirt.engine.core.dao.DefaultGenericDaoDbFacade.getCallsHandler ( ) . executeModification ( getProcedureNameForSave ( ) , createFullParametersMapper ( entity ) ) ; }

Target:
public void save ( T entity ) { org.ovirt.engine.core.dao.DefaultGenericDao.getCallsHandler ( ) . executeModification ( getProcedureNameForSave ( ) , createFullParametersMapper ( entity ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getOldNetwork ( ) { if ( ( oldNetwork ) == null ) { oldNetwork = org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetworkDAO ( ) . get ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . getId ( ) ) ; } return oldNetwork ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getOldNetwork ( ) { if ( ( oldNetwork ) == null ) { oldNetwork = org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetworkDao ( ) . get ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . getId ( ) ) ; } return oldNetwork ; }
Source:
public void setPassword ( java.lang.String password ) { this . password = password ; }

Target:
public void setPassword ( java.lang.String password ) { this . consoleOptions.setTicket ( password ) ; }
Source:
private java.util.Map < java.lang.String , java.lang.Object > getSharedConnections4REST ( ) { java.util.Map < java.lang.String , java.lang.Object > connections = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; return connections ; }

Target:
private java.util.Map < java.lang.String , java.lang.Object > getSharedConnections4REST ( ) { java.util.Map < java.lang.String , java.lang.Object > connections = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; connections.put ( "conn_tJDBCConnection_1" , globalMap.get ( "conn_tJDBCConnection_1" ) ) ; return connections ; }
Source:
public boolean canBeSelected ( ) { org.ovirt.engine.core.common.businessentities.DisplayType vmDisplayType = ( ( getEntity ( ) . getDisplayType ( ) ) != null ) ? getEntity ( ) . getDisplayType ( ) : getEntity ( ) . getDefaultDisplayType ( ) ; return vmDisplayType == ( org.ovirt.engine.core.common.businessentities.DisplayType.vnc ) ; }

Target:
public boolean canBeSelected ( ) { return getEntity ( ) . getGraphicsInfos ( ) . containsKey ( GraphicsType.VNC ) ; }
Source:
public void setSelectionAlgorithm ( org.ovirt.engine.core.common.businessentities.VdsSelectionAlgorithm value ) { this . selectionAlgorithm = value ; }

Target:
public java.lang.String getSshUsername ( ) { return this . mVdsStatic.getSshUsername ( ) ; }
Source:
private void resetIsFreeFlag ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > devices ) { for ( org.ovirt.engine.core.common.businessentities.gluster.StorageDevice device : devices ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDeviceDao ( ) . updateIsFreeFlag ( device.getId ( ) , false ) ; } }

Target:
private void resetIsFreeFlag ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > devices ) { for ( org.ovirt.engine.core.common.businessentities.gluster.StorageDevice device : devices ) { storageDeviceDao.updateIsFreeFlag ( device.getId ( ) , false ) ; } }
Source:
public void checkValidIpConfigurationDHCPBootProtocol ( ) { initIpConfigurationDetails ( Ipv4BootProtocol.DHCP , false , false ) ; org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , actual ) ; }

Target:
public void checkValidIpv6ConfigurationDHCPBootProtocol ( ) { initIpv6ConfigurationDetails ( Ipv6BootProtocol.AUTOCONF , false , false ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.VdsGroupDAO getVdsGroupDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VdsGroupDao getVdsGroupDao ( ) { return dbFacade.getVdsGroupDao ( ) ; }