auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static org.ovirt.engine.api.model.GlusterState map ( org.ovirt.engine.api.restapi.types.GlusterStatus glusterBrickStatus , java.lang.String template ) { switch ( glusterBrickStatus ) { case UP : return org.ovirt.engine.api.model.GlusterState.UP ; case DOWN : return org.ovirt.engine.api.model.GlusterState.DOWN ; case UNKNOWN : return org.ovirt.engine.api.model.GlusterState.UNKNOWN ; default : return null ; } }

Target:
private static org.ovirt.engine.api.model.GlusterBrickStatus mapBrickStatus ( org.ovirt.engine.api.restapi.types.GlusterStatus status ) { switch ( status ) { case UP : return org.ovirt.engine.api.model.GlusterBrickStatus.UP ; case DOWN : return org.ovirt.engine.api.model.GlusterBrickStatus.DOWN ; case UNKNOWN : return org.ovirt.engine.api.model.GlusterBrickStatus.UNKNOWN ; default : return null ; } }
Source:
public static void addPermission ( org.ovirt.engine.core.common.businessentities.Permission ... permissions ) { for ( org.ovirt.engine.core.common.businessentities.Permission perms : permissions ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.getPermissionDao ( ) . save ( perms ) ; } }

Target:
public void addPermission ( org.ovirt.engine.core.common.businessentities.Permission ... permissions ) { for ( org.ovirt.engine.core.common.businessentities.Permission perms : permissions ) { permissionDao.save ( perms ) ; } }
Source:
public void getUserIdVdcUserDefault ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.compat.Guid g = b.getUserId ( ) ; org.junit.Assert.assertNull ( g ) ; }

Target:
public void getUserIdVdcUserDefault ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.compat.Guid g = b.getUserId ( ) ; org.junit.jupiter.api.Assertions.assertNull ( g ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : null ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } getSearchCommand ( ) . Execute ( ) ; updateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } getSearchCommand ( ) . execute ( ) ; updateActionAvailability ( ) ; }
Source:
public void testExceptionForCommandWithNoTasks ( ) { org.ovirt.engine.core.common.action.PermissionsOperationsParametes params = new org.ovirt.engine.core.common.action.PermissionsOperationsParametes ( ) ; org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > ( params ) ) ; cmd.concreteCreateTask ( org.ovirt.engine.core.bll.BackwardCompatibilityTaskCreationTest.nextAsyncTaskCreationInfo ( ) , VdcActionType.Unknown ) ; }

Target:
public void testExceptionForCommandWithNoTasks ( ) { org.ovirt.engine.core.common.action.PermissionsOperationsParametes params = new org.ovirt.engine.core.common.action.PermissionsOperationsParametes ( ) ; org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddPermissionCommand < org.ovirt.engine.core.common.action.PermissionsOperationsParametes > ( params ) ) ; cmd.concreteCreateTask ( Guid.Empty , org.ovirt.engine.core.bll.BackwardCompatibilityTaskCreationTest.nextAsyncTaskCreationInfo ( ) , VdcActionType.Unknown ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult macAddressValid ( ) { return java.util.regex.Pattern.matches ( ValidationUtils.INVALID_NULLABLE_MAC_ADDRESS , getMacAddress ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_INVALID_MAC_ADDRESS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult macAddressValid ( ) { return java.util.regex.Pattern.matches ( ValidationUtils.INVALID_NULLABLE_MAC_ADDRESS , getMacAddress ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_INVALID_MAC_ADDRESS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > ) ( source ) ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Plugin ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectVncImplementation ( VncConsoleModel.ClientConsoleMode.NoVnc ) ; }
Source:
public org.ovirt.engine.api.resource.DiskResource getDiskResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainDiskResource ( id , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.StorageDomainDiskResource getDiskResource ( java.lang.String diskId ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainDiskResource ( storageDomainId , diskId ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.VDS > object ) { return object.getEntity ( ) . getHostName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHostData object ) { return object.getEntity ( ) . getHostName ( ) ; }
Source:
public void setUp ( ) { disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; }

Target:
public void setUp ( ) { disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; metadataDiskDescriptionHandler = org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) ; }
Source:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDisks ( ) { storageDomain.setSupportsDiscard ( true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }

Target:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDisks ( ) { storageDomain.setSupportsDiscard ( true ) ; org.junit.jupiter.api.Assertions.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSStatus PowerUpVDS ( int vdsId ) { return org.ovirt.engine.core.common.businessentities.VDSStatus.Up ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { return runAction ( VdcActionType.LogoutUser , parameters ) ; }
Source:
private boolean areDisksLocked ( org.ovirt.engine.core.common.action.VdcReturnValueBase vdcReturnValue ) { return vdcReturnValue.getCanDoActionMessages ( ) . contains ( VdcBllMessages.ACTION_TYPE_FAILED_DISKS_LOCKED.name ( ) ) ; }

Target:
private boolean areDisksLocked ( org.ovirt.engine.core.common.action.VdcReturnValueBase vdcReturnValue ) { return vdcReturnValue.getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_DISKS_LOCKED.name ( ) ) ; }
Source:
public org.ovirt.engine.api.model.NetworkAttachment get ( ) { org.ovirt.engine.api.model.NetworkAttachment model = performGet ( VdcQueryType.GetNetworkAttachmentById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , parent.getParentClass ( ) ) ; model = parent.addParents ( model ) ; return addLinks ( model ) ; }

Target:
public org.ovirt.engine.api.model.NetworkAttachment get ( ) { org.ovirt.engine.api.model.NetworkAttachment model = performGet ( QueryType.GetNetworkAttachmentById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , parent.getParentClass ( ) ) ; model = parent.addParents ( model ) ; return addLinks ( model ) ; }
Source:
public void canCreateAsMuchNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }

Target:
public void canCreateLessNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 5 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }
Source:
public void vnicProfileExists ( ) { org.junit.Assert.assertThat ( validator.vnicProfileExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void vnicProfileDoesNotExist ( ) { org.mockito.Mockito.when ( vnicProfileDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.vnicProfileExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }
Source:
public void addHost ( org.ovirt.engine.core.compat.Guid host , java.lang.Integer score ) { if ( ( hostsWithScores ) == null ) { hostsWithScores = new java.util.ArrayList < > ( ) ; } hostsWithScores.add ( new org.ovirt.engine.core.common.utils.Pair ( host , score ) ) ; }

Target:
public void addHost ( java.lang.String policyUnit , org.ovirt.engine.core.compat.Guid host , java.lang.Integer score ) { if ( ( hostsWithScores ) == null ) { hostsWithScores = new java.util.ArrayList < > ( ) ; } hostsWithScores.add ( new org.ovirt.engine.core.bll.scheduling.external.WeightResultEntry ( host , score , policyUnit ) ) ; }
Source:
public void testValidateFieldValueWithEnum ( ) { org.ovirt.engine.core.searchbackend.IConditionFieldAutoCompleter comp = new org.ovirt.engine.core.searchbackend.AuditLogConditionFieldAutoCompleter ( ) ; org.junit.Assert.assertTrue ( "VDC_START" , comp.validateFieldValue ( "TYPE" , "1" ) ) ; org.junit.Assert.assertFalse ( "SOME_RANDOM_TEXT" , comp.validateFieldValue ( "TYPE" , "SOME_RANDOM_TEXT" ) ) ; }

Target:
public void testValidateFieldValueWithEnum ( ) { org.ovirt.engine.core.searchbackend.IConditionFieldAutoCompleter comp = new org.ovirt.engine.core.searchbackend.AuditLogConditionFieldAutoCompleter ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( comp.validateFieldValue ( "TYPE" , "1" ) , "VDC_START" ) ; org.junit.jupiter.api.Assertions.assertFalse ( comp.validateFieldValue ( "TYPE" , "SOME_RANDOM_TEXT" ) , "SOME_RANDOM_TEXT" ) ; }
Source:
public static boolean IsSDItemExistInList ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > items , org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain b : items ) { if ( b.getId ( ) . equals ( id ) ) { return true ; } } return false ; }

Target:
public static boolean isSDItemExistInList ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > items , org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain b : items ) { if ( b.getId ( ) . equals ( id ) ) { return true ; } } return false ; }
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.VmTemplate ) ; 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 ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VmTemplate ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void interfaceBasedOnNullProposedVlan ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( null , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }

Target:
public void interfaceBasedOnNullProposedVlan ( ) { org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( null , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }
Source:
protected org.ovirt.engine.core.utils.lock.LockManager getLockManager ( ) { return org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) ; }

Target:
protected java.lang.String getLockMessage ( ) { return VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ; }
Source:
public void testGetStorageDomainIdWithNoPermissions ( ) { mockStoragePoolDao ( null ) ; org.junit.Assert.assertNull ( "No storage domains should have been returned" , getQuery ( ) . getStorageDomainIdForQuery ( ) ) ; }

Target:
public void testGetStorageDomainIdWithNoPermissions ( org.ovirt.engine.core.common.businessentities.storage.ImageFileType expectedType ) { org.mockito.Mockito.when ( getQueryParameters ( ) . getImageType ( ) ) . thenReturn ( expectedType ) ; mockStoragePoolDao ( null ) ; org.junit.jupiter.api.Assertions.assertNull ( getQuery ( ) . getStorageDomainIdForQuery ( ) , "No storage domains should have been returned" ) ; }
Source:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTasks task , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.AsyncTaskManager.logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }

Target:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTasks task , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }
Source:
public void testTemplateUsers ( ) { testValidSql ( "Templates: Users.usrname = *" , "SELECT * FROM ((SELECT distinct vm_templates_view.* FROM vm_templates_view LEFT OUTER JOIN vms_with_tags ON vm_templates_view.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN vdc_users_with_tags ON vms_with_tags.vm_guid=vdc_users_with_tags.vm_guid WHERE vdc_users_with_tags.username LIKE % ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testTemplateUsersUserName ( ) { testValidSql ( "Templates: Users.usrname = *" , "SELECT * FROM ((SELECT distinct vm_templates_view.* FROM vm_templates_view LEFT OUTER JOIN vms_with_tags ON vm_templates_view.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN vdc_users_with_tags ON vms_with_tags.vm_guid=vdc_users_with_tags.vm_guid WHERE vdc_users_with_tags.username LIKE % ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
protected org.ovirt.engine.core.dao.StorageServerConnectionDAO getStorageConnDao ( ) { return org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue getStatsForDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return runVdsCommand ( VDSCommandType.GetStorageDomainStats , new org.ovirt.engine.core.common.vdscommands.GetStorageDomainStatsVDSCommandParameters ( org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getVds ( ) . getId ( ) , storageDomain.getId ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , null , org.ovirt.engine.core.bll.CommandBase.EMPTY_GUID_ARRAY ) ; }

Target:
private void addToReturnValueTaskPlaceHolderIdList ( org.ovirt.engine.core.compat.Guid taskId ) { if ( ! ( getReturnValue ( ) . getTaskPlaceHolderIdList ( ) . contains ( taskId ) ) ) { getReturnValue ( ) . getTaskPlaceHolderIdList ( ) . add ( taskId ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VolumeType getSelectedVolumeType ( ) { if ( ( ( java.lang.Boolean ) ( collapseSnapshots.getEntity ( ) ) ) && ( ( selectedVolumeType ) != null ) ) { return selectedVolumeType ; } return getVolumeType ( ) ; }

Target:
public void setVolumeType ( org.ovirt.engine.core.common.businessentities.VolumeType type ) { volumeType = type ; setSelectedVolumeType ( type ) ; }
Source:
public void testStorage ( ) { testValidSql ( "Storage: " , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: datacenter = Default" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search WHERE storage_domains_for_search.storage_pool_name::text LIKE Default ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: host.name = fake1" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search LEFT OUTER JOIN vds_with_tags ON storage_domains_for_search.id=vds_with_tags.storage_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testStorage ( ) { testValidSql ( "Storage: " , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: datacenter = Default" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search WHERE Default LIKE ANY(string_to_array(storage_domains_for_search.storage_pool_name::text, ','))) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: host.name = fake1" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search LEFT OUTER JOIN vds_with_tags ON storage_domains_for_search.id=vds_with_tags.storage_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
protected java.security.KeyPair [ ] loadKeys ( ) { return new java.security.KeyPair [ ] { _keyPair } ; }

Target:
public java.security.KeyPair loadKey ( java.lang.String type ) { return _keyPair ; }
Source:
private boolean isEntityModelEmpty ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > model ) { return ! ( ( ( model.getEntity ( ) ) != null ) && ( ! ( model.getEntity ( ) . equals ( "" ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends T > ev , java.lang.Object sender , T args ) { if ( ( enabled ) && ( ( delegate ) != null ) ) { delegate.eventRaised ( ev , sender , args ) ; } }
Source:
private void storeRootPassword ( ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( params.getRootPassword ( ) ) ) ) { metaData.put ( passwordKey , params.getRootPassword ( ) ) ; } }

Target:
private void storeRootPassword ( ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( params.getRootPassword ( ) ) ) ) { userData.put ( passwordKey , params.getRootPassword ( ) ) ; } }
Source:
protected org.ovirt.engine.ui.uicommonweb.Configurator lookupConfigurator ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.Configurator ) ( org.ovirt.engine.ui.uicommonweb.TypeResolver.getInstance ( ) . Resolve ( org.ovirt.engine.ui.uicommonweb.Configurator.class ) ) ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.Configurator lookupConfigurator ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.Configurator ) ( org.ovirt.engine.ui.uicommonweb.TypeResolver.getInstance ( ) . resolve ( org.ovirt.engine.ui.uicommonweb.Configurator.class ) ) ) ; }
Source:
private int calculateHeight ( int point , int drawingAreaHeight ) { int topPadding = ( org.ovirt.engine.ui.webadmin.widget.table.column.LineChartProgressBarColumn.lineEndShapeSize ) / 2 ; return drawingAreaHeight - ( ( ( point * ( ( drawingAreaHeight - ( org.ovirt.engine.ui.webadmin.widget.table.column.LineChartProgressBarColumn.bottomPadding ) ) - topPadding ) ) / 100 ) + ( org.ovirt.engine.ui.webadmin.widget.table.column.LineChartProgressBarColumn.bottomPadding ) ) ; }

Target:
private int calculateHeight ( int point , int drawingAreaHeight ) { int topPadding = ( org.ovirt.engine.ui.webadmin.widget.table.column.AbstractLineChartProgressBarColumn.lineEndShapeSize ) / 2 ; return drawingAreaHeight - ( ( ( point * ( ( drawingAreaHeight - ( org.ovirt.engine.ui.webadmin.widget.table.column.AbstractLineChartProgressBarColumn.bottomPadding ) ) - topPadding ) ) / 100 ) + ( org.ovirt.engine.ui.webadmin.widget.table.column.AbstractLineChartProgressBarColumn.bottomPadding ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ; }
Source:
protected java.lang.String imageName ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { return ( ( value.name ( ) ) + ( nameUniquePart ) ) + ( org.ovirt.engine.ui.userportal.widget.basic.OsTypeImage.IMAGE ) ; }

Target:
protected java.lang.String imageName ( java.lang.Integer value ) { return ( ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getOsUniqueOsNames ( ) . get ( value ) ) + ( nameUniquePart ) ) + ( org.ovirt.engine.ui.userportal.widget.basic.OsTypeImage.IMAGE ) ; }
Source:
public void setSSOSessionValidaor ( org.ovirt.engine.core.bll.aaa.SessionDataContainer.SSOSessionValidator ssoSessionValidator ) { this . ssoSessionValidator = ssoSessionValidator ; }

Target:
public final void setSessionStartTime ( java.lang.String sessionId ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SESSION_START_TIME , new java.util.Date ( ) ) ; }
Source:
public void setUp ( ) { createParameters ( ) ; createCommandContext ( ) ; createCommand ( ) ; mockBackend ( ) ; }

Target:
public void executeCommandTest ( ) { addCpuProfileCommand.executeCommand ( ) ; org.mockito.Mockito.verify ( addCpuProfileCommand ) . addPermissions ( ) ; org.junit.Assert.assertTrue ( addCpuProfileCommand.getReturnValue ( ) . getSucceeded ( ) ) ; }
Source:
public static org.ovirt.engine.api.restapi.util.VmHelper getInstance ( ) { return org.ovirt.engine.api.restapi.util.VmHelper.instance ; }

Target:
public static java.util.List < java.lang.String > getVirtioScsiControllersForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource resource , org.ovirt.engine.core.compat.Guid id ) { return resource.getEntity ( java.util.List.class , VdcQueryType.GetVirtioScsiControllers , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetVirtioScsiControllers" , true ) ; }
Source:
public void testGetFullPathNullParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , null ) ; org.junit.Assert.assertNull ( "Path should be null" , file ) ; }

Target:
public void testGetFullPathNullParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , null ) ; org.junit.jupiter.api.Assertions.assertNull ( file , "Path should be null" ) ; }
Source:
protected boolean isPowerManagementLegal ( boolean pmEnabled , java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > fenceAgents , java.lang.String clusterCompatibilityVersion ) { return super . isPowerManagementLegal ( pmEnabled , fenceAgents , clusterCompatibilityVersion ) ; }

Target:
protected boolean isPowerManagementLegal ( boolean pmEnabled , java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > fenceAgents , java.lang.String clusterCompatibilityVersion , boolean validateAgents ) { return super . isPowerManagementLegal ( pmEnabled , fenceAgents , clusterCompatibilityVersion , validateAgents ) ; }
Source:
private void setSubnetCidr ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > subnetCidr ) { this . subnetCidr = subnetCidr ; }

Target:
private void setCreateSubnet ( org.ovirt.engine.ui.uicommonweb.models.EntityModel createSubnet ) { this . createSubnet = createSubnet ; }
Source:
public void testSyncSuccess ( ) { setupProviderDao ( getProvider ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; command.executeCommand ( ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getSucceeded ( ) ) ; verifyCalls ( ) ; }

Target:
public void testSyncSuccess ( ) { setupProviderDao ( getProvider ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; command.executeCommand ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.getReturnValue ( ) . getSucceeded ( ) ) ; verifyCalls ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult imageProvidedForOvirtNode ( java.lang.String image ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) . when ( ( ( host.isOvirtNode ( ) ) && ( org.apache.commons.lang.StringUtils.isBlank ( image ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult imageProvidedForOvirtNode ( java.lang.String image ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) . when ( ( ( host.isOvirtNode ( ) ) && ( org.apache.commons.lang.StringUtils.isBlank ( image ) ) ) ) ; }
Source:
public void testGetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomainStatic > result = dao.getAllForStoragePool ( FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomainStatic > result = dao.getAllForStoragePool ( FixturesTool.DATA_CENTER ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void passthroughProfileValidProprerties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.lang.Boolean > getNicHotplugSupportMap ( ) ;

Target:
boolean isBalloonEnabled ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeBrickModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeBrickModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; setWindow ( null ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeBrickListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeBrickListModel ) ( result.getState ( ) ) ) ; localModel.postOnAddBricks ( result.getReturnValue ( ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Role role ) { if ( role.getis_readonly ( ) ) { return getApplicationResources ( ) . lockImage ( ) ; } return null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Role role ) { if ( role.isReadonly ( ) ) { return getApplicationResources ( ) . lockImage ( ) ; } return null ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentPool ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DC_ID2 ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.Cluster createClusterWithDifferentPool ( ) { org.ovirt.engine.core.common.businessentities.Cluster group = org.ovirt.engine.core.bll.UpdateClusterCommandTest.createNewCluster ( ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.DC_ID2 ) ; return group ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return ( object.getorigin ( ) ) == null ? constants.notSpecifiedLabel ( ) : object.getorigin ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return ( object.getorigin ( ) ) == null ? org.ovirt.engine.ui.webadmin.section.main.view.tab.storage.SubTabStorageTemplateBackupView.messageConstants.notSpecifiedLabel ( ) : object.getorigin ( ) . toString ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( returnValue ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsVirtioScsiEnabled ( ) . setEntity ( returnValue ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.isAddVmsSucceded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VM_POOL_WITH_VMS : org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VM_POOL_WITH_VMS_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.UpdateVmPoolCommand.isAddVmsSucceded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VM_POOL_WITH_VMS : org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VM_POOL_WITH_VMS_FAILED ; }
Source:
private void init ( ) { plurals.put ( "display" , "displays" ) ; plurals.put ( "erratum" , "errata" ) ; plurals.put ( "key" , "keys" ) ; }

Target:
private void init ( ) { plurals.put ( "display" , "displays" ) ; plurals.put ( "erratum" , "errata" ) ; plurals.put ( "key" , "keys" ) ; singulars.put ( "errata" , "erratum" ) ; }
Source:
protected com.google.gwt.user.client.ui.IsWidget createBodyPanel ( java.lang.String header , org.ovirt.engine.core.common.businessentities.Snapshot entity ) { descriptionHeaderPanel.getElement ( ) . setInnerHTML ( header ) ; createAdditionalInfoPanel ( ) ; return bodyPanel ; }

Target:
protected com.google.gwt.user.client.ui.IsWidget createBodyPanel ( com.google.gwt.safehtml.shared.SafeHtml header , org.ovirt.engine.core.common.businessentities.Snapshot entity ) { descriptionHeaderPanel.getElement ( ) . setInnerSafeHtml ( header ) ; createAdditionalInfoPanel ( ) ; return bodyPanel ; }
Source:
protected void initWidget ( com.google.gwt.user.client.ui.DecoratedPopupPanel widget ) { super . initWidget ( widget ) ; setAutoHideOnNavigationEventEnabled ( true ) ; }

Target:
protected void initWidget ( org.ovirt.engine.ui.common.widget.dialog.DialogBoxWithKeyHandlers widget ) { super . initWidget ( widget ) ; setAutoHideOnNavigationEventEnabled ( true ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . isExistsInSystem ( ) ? getCommonResources ( ) . logNormalImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . isExistsInSystem ( ) ? org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.resources.logNormalImage ( ) : null ; }
Source:
public void SetDefaultNames ( org.ovirt.engine.core.common.businessentities.VDS host ) { context.host = host ; setCommonName ( org.ovirt.engine.core.compat.StringFormat.format ( "%1$s-Local" , host.getvds_name ( ) . replace ( '.' , '-' ) ) ) ; SetDefaultNames1 ( ) ; }

Target:
public void SetDefaultNames ( org.ovirt.engine.core.common.businessentities.VDS host ) { context.host = host ; setCommonName ( ( ( host.getvds_name ( ) . replace ( '.' , '-' ) ) + "-Local" ) ) ; SetDefaultNames1 ( ) ; }
Source:
public void setExecutionContext ( org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { super . setExecutionContext ( executionContext ) ; }

Target:
public void taskEndSuccessfully ( ) { }
Source:
private void toggleActive ( ) { if ( ( ( vm ) != null ) && ( ! ( org.ovirt.engine.core.common.validation.VmActionByVmOriginTypeValidator.isCommandAllowed ( vm , VdcActionType.UpdateVmDisk ) ) ) ) { active = false ; } }

Target:
private void toggleActive ( ) { if ( ( ( vm ) != null ) && ( ! ( org.ovirt.engine.core.common.validation.VmActionByVmOriginTypeValidator.isCommandAllowed ( vm , ActionType.UpdateVmDisk ) ) ) ) { active = false ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VdsSelectionAlgorithm getSelectionAlgorithm ( ) { return this . selectionAlgorithm ; }

Target:
public void setMemFree ( java.lang.Long value ) { this . mVdsStatistics.setMemFree ( value ) ; }
Source:
public void wrapperShutdown ( ) { if ( ( session ) != null ) { session.close ( true ) ; session = null ; } if ( ( client ) != null ) { client.stop ( ) ; client = null ; } }

Target:
public void shutdown ( ) { if ( ( session ) != null ) { session.close ( true ) ; session = null ; } if ( ( client ) != null ) { client.stop ( ) ; client = null ; } }
Source:
public java.lang.String getAddress ( ) { return null ; }

Target:
public java.lang.String getAddress ( ) { return address ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; }

Target:
public void getHostsForStorageOperation ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.VDS > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean localFsOnly ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetHostsForStorageOperation , new org.ovirt.engine.core.common.queries.GetHostsForStorageOperationParameters ( storagePoolId , localFsOnly ) , aQuery ) ; }
Source:
public void testHasUniqueNamePersistingNewRecordWithNullIdAndSameName ( ) throws java.lang.Exception { final java.lang.String macPoolName = "macPool1" ; org.junit.Assert.assertThat ( callHasUniqueName ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , null , macPoolName , macPoolName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ) ; }

Target:
public void testHasUniqueNamePersistingNewRecordWithNullIdAndSameName ( ) throws java.lang.Exception { final java.lang.String macPoolName = "macPool1" ; org.junit.Assert.assertThat ( callHasUniqueName ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , null , macPoolName , macPoolName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ) ; }
Source:
public void testLongName ( ) { vmStatic.setName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; org.junit.Assert.assertFalse ( "canDoAction should fail for too long vm name." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }

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:
public org.ovirt.engine.api.model.Nic addParents ( org.ovirt.engine.api.model.Nic device ) { device.setTemplate ( new org.ovirt.engine.api.model.Template ( ) ) ; device.getTemplate ( ) . setId ( parentId.toString ( ) ) ; return device ; }

Target:
public org.ovirt.engine.api.model.Nic addParents ( org.ovirt.engine.api.model.Nic nic ) { org.ovirt.engine.api.model.Template template = new org.ovirt.engine.api.model.Template ( ) ; template.setId ( templateId.toString ( ) ) ; nic.setTemplate ( template ) ; return nic ; }
Source:
protected java.lang.String [ ] getRequiredAddFields ( ) { return new java.lang.String [ ] { "size" } ; }

Target:
protected java.lang.String [ ] getRequiredAddFields ( ) { return new java.lang.String [ ] { "provisionedSize|size" , "format" , "interface" } ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ListModel setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) { super . setIsChangable ( value ) ; } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel < T > setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) { super . setIsChangable ( value ) ; } return this ; }
Source:
public void testIsNetworkInSyncWhenIpv4GatewayDifferent ( ) { initIpv4ConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayBothNull ( ) { initIpv4ConfigurationStaticBootProtocol ( Ipv4BootProtocol.STATIC_IP ) ; ipv4Address.setGateway ( null ) ; iface.setIpv4Gateway ( null ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private void cancel ( ) { sourceListModel.setWindow ( null ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel getRequiresAuthentication ( ) { return privateRequiresAuthentication ; }
Source:
public java.lang.String getDefaultTitle ( ) { return constants.bootableDisk ( ) ; }

Target:
public java.lang.String getDefaultTitle ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.bootableDisk ( ) ; }
Source:
public void verifyNoDomainForMemoryWhenDomainHasLowSpace ( ) { org.mockito.Mockito.when ( validStorageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; verifyNoDomainForMemory ( java.util.Arrays.asList ( validStorageDomain ) ) ; }

Target:
public void verifyNoDomainForMemoryWhenDomainHasLowSpace ( ) { org.mockito.Mockito.when ( validStorageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; verifyNoDomainForMemory ( java.util.Collections.singletonList ( validStorageDomain ) ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { runMultipleAction ( actionType , parameters , callback , null , true ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final boolean showErrorDialog , final boolean waitForResult ) { runMultipleAction ( actionType , parameters , false , callback , null , showErrorDialog , waitForResult ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > fenceSpmStorage ( java.lang.String spUUID , int prevID , java.lang.String prevLVER ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > fenceNode ( java.lang.String ip , java.lang.String port , java.lang.String type , java.lang.String user , java.lang.String password , java.lang.String action , java.lang.String secured , java.lang.String options , java.util.Map < java.lang.String , java.lang.Object > fencingPolicy ) ;
Source:
public void canDoActionSucceedsOnVolumeWithRemoveBricksTaskCompleted ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskCompleted , getBricks ( volumeWithRemoveBricksTaskCompleted , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult networkClusterAttachmentExists ( ) { return ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkClusterDAO ( ) . get ( getNetworkCluster ( ) . getId ( ) ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult networkClusterAttachmentExists ( ) { return ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkClusterDAO ( ) . get ( getNetworkCluster ( ) . getId ( ) ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private void mockStorageDomainDAOGetForStoragePool ( ) { mockStorageDomainDAOGetForStoragePool ( AVAILABLE_SPACE_GB ) ; }

Target:
private void mockStorageDomainDAOGetForStoragePool ( ) { mockStorageDomainDAOGetForStoragePool ( org.ovirt.engine.core.bll.AddVmCommandTest.AVAILABLE_SPACE_GB ) ; }
Source:
public int setTabIndexes ( int nextTabIndex ) { return nextTabIndex ; }

Target:
public int setTabIndexes ( int nextTabIndex ) { setTabIndex ( nextTabIndex ) ; return ++ nextTabIndex ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getvm_name ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { return object.getSecond ( ) . getvm_name ( ) ; }
Source:
public void setvm_creation_date ( java.util.Date value ) { this . mVmStatic.setcreation_date ( value ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return this . vmStatic.getQuotaId ( ) ; }
Source:
public java.util.LinkedList < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = new java.util.LinkedList < org.ovirt.engine.core.compat.Guid > ( ) ; } return groupIds ; }

Target:
public java.util.Collection < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = java.util.Collections.emptyList ( ) ; } return java.util.Collections.unmodifiableCollection ( groupIds ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ( ) ; }

Target:
public java.util.List < T > convert ( java.lang.Object source ) { return source != null ? ( ( java.util.List < T > ) ( source ) ) : new java.util.ArrayList < T > ( ) ; }
Source:
public java.lang.String getMessage ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 ) { return getVerb ( op1 ) ; }

Target:
protected void ExecuteNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.ADD_TO_BOND.getCommand ( op2 , op1 , allNics ) . Execute ( ) ; }
Source:
public final java.lang.Object GetData ( java.lang.String key , boolean refresh ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId == null ) { return null ; } return GetData ( sessionId , key , refresh ) ; }

Target:
public final java.lang.Object getData ( java.lang.String key , boolean refresh ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId == null ) { return null ; } return getData ( sessionId , key , refresh ) ; }
Source:
public void isValidVmNetworkForNetworkNotInVds ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = createNewInterface ( ) ; iface.setNetworkName ( NETWORK_NAME ) ; org.junit.Assert.assertFalse ( vmInterfaceManager.isValidVmNetwork ( iface , java.util.Collections.< java.lang.String , org.ovirt.engine.core.common.businessentities.network.Network > emptyMap ( ) ) ) ; }

Target:
public void isValidVmNetworkForNetworkNotInVds ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = createNewViewableInterface ( ) ; iface.setNetworkName ( NETWORK_NAME ) ; org.junit.Assert.assertFalse ( vmInterfaceManager.isValidVmNetwork ( iface , java.util.Collections.< java.lang.String , org.ovirt.engine.core.common.businessentities.network.Network > emptyMap ( ) , version ) ) ; }