auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testIsUsingScsiReservationValidWhenSgioIsFiltered ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.FILTERED , true ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_SGIO_IS_FILTERED ) ) ; }

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

Target:
public int getMemSizeMb ( ) { return this . getVmMemSizeMb ( ) ; }
Source:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; org.ovirt.engine.core.bll.ValidationResult notABondValidationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND , org.ovirt.engine.core.bll.validator.HostInterfaceValidator.VAR_NETWORK_INTERFACE_IS_NOT_BOND_ENTITY , bond.getName ( ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , notABondValidationResult , notABondValidationResult , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT ) , ValidationResult.VALID ) ; }
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:
public void updateExternalStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.ExternalStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "external_status" , status ) ; getCallsHandler ( ) . executeModification ( "UpdateHostExternalStatus" , parameterSource ) ; }
Source:
protected void addCanDoActionMessage ( java.lang.String message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message ) ; }

Target:
protected void addValidationMessage ( java.lang.String message ) { getReturnValue ( ) . getValidationMessages ( ) . add ( message ) ; }
Source:
public void testNoRepeats ( ) { java.lang.String sample = org.ovirt.engine.core.utils.Ticketing.generateOTP ( ) ; for ( int x = 0 ; x < 1000 ; x ++ ) { java.lang.String other = org.ovirt.engine.core.utils.Ticketing.generateOTP ( ) ; org.junit.jupiter.api.Assertions.assertNotSame ( sample , other ) ; } }

Target:
public void testNoRepeats ( ) { java.lang.String sample = org.ovirt.engine.core.utils.Ticketing.generateOTP ( ) ; for ( int x = 0 ; x < 1000 ; x ++ ) { java.lang.String other = org.ovirt.engine.core.utils.Ticketing.generateOTP ( ) ; org.junit.jupiter.api.Assertions.assertNotEquals ( sample , other ) ; } }
Source:
protected boolean isStorageDomainWithinThresholds ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainWithinThresholds ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.StorageDomainValidator createStorageDomainValidator ( ) { return new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.AddDiskCommand.getStorageDomain ( ) ) ; }
Source:
public void iscsiBondDoesNotExist ( ) { org.ovirt.engine.core.bll.ValidationResult res = validator.isIscsiBondExist ( null ) ; org.junit.Assert.assertEquals ( VdcBllMessages.ISCSI_BOND_NOT_EXIST , res.getMessage ( ) ) ; }

Target:
public void iscsiBondDoesNotExist ( ) { org.ovirt.engine.core.bll.ValidationResult res = validator.isIscsiBondExist ( null ) ; org.junit.Assert.assertEquals ( EngineMessage.ISCSI_BOND_NOT_EXIST , res.getMessage ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Hosts list ( ) { org.ovirt.engine.core.common.mode.ApplicationMode appMode = getCurrent ( ) . get ( org.ovirt.engine.core.common.mode.ApplicationMode.class ) ; if ( appMode == ( org.ovirt.engine.core.common.mode.ApplicationMode.GlusterOnly ) ) { return listGlusterOnly ( ) ; } else { return listAll ( ) ; } }

Target:
public org.ovirt.engine.api.model.Hosts list ( ) { org.ovirt.engine.core.common.mode.ApplicationMode appMode = getCurrent ( ) . getApplicationMode ( ) ; if ( appMode == ( org.ovirt.engine.core.common.mode.ApplicationMode.GlusterOnly ) ) { return listGlusterOnly ( ) ; } else { return listAll ( ) ; } }
Source:
public java.lang.String getVar_value ( ) { return this . var_value ; }

Target:
public int compareTo ( ovirt_engine_dwh.aggregationtodaily_3_4.AggregationToDaily.row11Struct other ) { int returnValue = - 1 ; returnValue = checkNullsAndCompare ( this . var_name , other.var_name ) ; if ( returnValue != 0 ) { return returnValue ; } return returnValue ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( source ) ) : null ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { return ! ( masterVolume.getClusterId ( ) . equals ( slaveVolume.getClusterId ( ) ) ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { return ! ( masterVolume.getClusterId ( ) . equals ( slaveVolume.getClusterId ( ) ) ) ; }
Source:
protected boolean isDisksAliasNotEmpty ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : diskInfoDestinationMap.values ( ) ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( diskImage.getDiskAlias ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_CANNOT_BE_CREATED_WITH_EMPTY_DISK_ALIAS ) ; } } return true ; }

Target:
protected boolean isDisksAliasNotEmpty ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : diskInfoDestinationMap.values ( ) ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( diskImage.getDiskAlias ( ) ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_CANNOT_BE_CREATED_WITH_EMPTY_DISK_ALIAS ) ; } } return true ; }
Source:
private void setNewMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.SPMAsyncTask > asyncTaskMap ) { _tasks = asyncTaskMap ; logChangedMap = true ; org.ovirt.engine.core.bll.AsyncTaskManager.log.infoFormat ( "AsyncTaskManager::SetNewMap: The map contains now {0} tasks" , _tasks.size ( ) ) ; }

Target:
private void setNewMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.SPMAsyncTask > asyncTaskMap ) { _tasks = asyncTaskMap ; logChangedMap = true ; org.ovirt.engine.core.bll.AsyncTaskManager.log.infoFormat ( "Setting new tasks map. The map contains now {0} tasks" , _tasks.size ( ) ) ; }
Source:
public org.ovirt.engine.api.model.CpuProfile update ( org.ovirt.engine.api.model.CpuProfile resource ) { return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetCpuProfileById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , ActionType.UpdateCpuProfile , new org.ovirt.engine.api.restapi.resource.BackendCpuProfileResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.CpuProfile update ( org.ovirt.engine.api.model.CpuProfile resource ) { return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.QueryType.GetCpuProfileById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , ActionType.UpdateCpuProfile , new org.ovirt.engine.api.restapi.resource.BackendCpuProfileResource.UpdateParametersProvider ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = parent.getIscsiBond ( ) ; iscsiBond.getNetworkIds ( ) . remove ( guid ) ; return performAction ( VdcActionType.EditIscsiBond , new org.ovirt.engine.core.common.action.EditIscsiBondParameters ( iscsiBond ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getNic ( ) { if ( ( nic ) == null ) { nic = org.ovirt.engine.core.bll.network.host.LabelNicCommand.getDbFacade ( ) . getInterfaceDao ( ) . get ( org.ovirt.engine.core.bll.network.host.LabelNicCommand.getParameters ( ) . getNicId ( ) ) ; } return nic ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getNic ( ) { if ( ( nic ) == null ) { nic = interfaceDao.get ( org.ovirt.engine.core.bll.network.host.LabelNicCommand.getParameters ( ) . getNicId ( ) ) ; } return nic ; }
Source:
protected java.lang.String generateVmMetadata ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > AllVmImages ) { return ovfManager.exportVm ( vm , AllVmImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vm ) ) ; }

Target:
protected java.lang.String generateVmMetadata ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > AllVmImages ) { return ovfManager.exportVm ( vm , AllVmImages , clusterUtils.getCompatibilityVersion ( vm ) ) ; }
Source:
protected void SearchNextPage ( ) { SetSearchStringPage ( getNextSearchPageNumber ( ) ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void searchNextPage ( ) { setSearchStringPage ( getNextSearchPageNumber ( ) ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
private org.ovirt.engine.core.aaa.DirectoryUser getDirectoryUser ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }

Target:
private org.ovirt.engine.core.aaa.DirectoryUser getDirectoryUser ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , org.ovirt.engine.api.restapi.resource.BackendUsersResourceTest.NAMESPACE , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel model ) { driver.edit ( model ) ; publicInfo.setVisible ( model.getPublicUse ( ) . getIsAvailable ( ) ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Object > event ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , model ) ; }
Source:
public void testDescriptionField ( ) { org.ovirt.engine.core.searchbackend.VmConditionFieldAutoCompleter comp = new org.ovirt.engine.core.searchbackend.VmConditionFieldAutoCompleter ( ) ; org.junit.Assert.assertTrue ( comp.validationDict.containsKey ( "DESCRIPTION" ) ) ; org.junit.Assert.assertTrue ( comp.validateFieldValue ( "DESCRIPTION" , "bar" ) ) ; }

Target:
public void testDescriptionField ( ) { org.ovirt.engine.core.searchbackend.VmConditionFieldAutoCompleter comp = new org.ovirt.engine.core.searchbackend.VmConditionFieldAutoCompleter ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( comp.validationDict.containsKey ( "DESCRIPTION" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( comp.validateFieldValue ( "DESCRIPTION" , "bar" ) ) ; }
Source:
protected java.util.Collection < org.ovirt.engine.api.model.VM > getEntitiesFromExportDomain ( ) { org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParamenters params = new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParamenters ( getDataCenterId ( storageDomainId ) , storageDomainId ) ; params.setGetAll ( true ) ; return getBackendCollection ( VdcQueryType.GetVmsFromExportDomain , params ) ; }

Target:
protected java.util.Collection < org.ovirt.engine.api.model.VM > getEntitiesFromExportDomain ( ) { org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters params = new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( getDataCenterId ( storageDomainId ) , storageDomainId ) ; params.setGetAll ( true ) ; return getBackendCollection ( VdcQueryType.GetVmsFromExportDomain , params ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageType getEnum ( org.ovirt.engine.core.common.businessentities.StoragePool storage ) { return storage.getStorageType ( ) ; }

Target:
protected java.lang.String getText ( org.ovirt.engine.core.common.businessentities.StoragePool entity ) { return entity.isLocal ( ) ? constants.storageTypeLocal ( ) : constants.storageTypeShared ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterHostSubTabLabel ( ) , 2 , ginjector.getSubTabClusterHostModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterHostSubTabLabel ( ) , 3 , ginjector.getSubTabClusterHostModelProvider ( ) ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( cpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getUserId ( ) ) ) ; }
Source:
public void setUp ( ) { vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; validator = new org.ovirt.engine.core.bll.validator.VmValidator ( vm ) ; }

Target:
public void setUp ( ) { vm = createVm ( ) ; validator = new org.ovirt.engine.core.bll.validator.VmValidator ( vm ) ; org.mockito.Mockito.when ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmNetworkInterfaceDao ( ) ) . thenReturn ( vmNetworkInterfaceDao ) ; }
Source:
protected void endWithFailure ( ) { endCommand ( ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getEntityId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.DISK , getDiskIsBeingRemovedLockMessage ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM readVmFromOvf ( java.lang.String ovf ) { try { return new org.ovirt.engine.core.bll.OvfHelper ( ) . readVmFromOvf ( ovf ) ; } catch ( org.ovirt.engine.core.utils.ovf.OvfReaderException e ) { log.debug ( ( "failed to parse a given ovf configuration: \n" + ovf ) , e ) ; convertFailed ( ) ; return null ; } }

Target:
private void updateProgress ( org.ovirt.engine.core.common.businessentities.V2VJobInfo jobInfo ) { updateProgress ( ( StringUtils.EMPTY.equals ( jobInfo.getDescription ( ) ) ? "Initializing" : jobInfo.getDescription ( ) ) , jobInfo.getProgress ( ) ) ; }
Source:
public void validateNonExistingJobFails ( ) { org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }

Target:
public void validateNonExistingJobFails ( ) { org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( null ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map > getLunConnections ( java.lang.String lunId ) { return org.ovirt.engine.core.bll.GetLunsByVgIdQuery.getDbFacade ( ) . getStorageServerConnectionLunMapDAO ( ) . getAll ( lunId ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map > getLunsMap ( java.lang.String lunId ) { return org.ovirt.engine.core.bll.GetLunsByVgIdQuery.getDbFacade ( ) . getStorageServerConnectionLunMapDAO ( ) . getAll ( lunId ) ; }
Source:
public static int callRemoveTaskFromDbByTaskId ( org.ovirt.engine.core.compat.Guid taskId ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.removeTaskFromDbByTaskId ( taskId ) ; }

Target:
public static int callRemoveTaskFromDbByTaskId ( org.ovirt.engine.core.compat.Guid taskId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.removeTaskFromDbByTaskId ( taskId ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . update ( vm.getDynamicData ( ) ) ; return null ; }

Target:
private org.ovirt.engine.core.dao.VmDynamicDAO getVmDynamicDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > getAllForDataCenter ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVnicProfileViewsByDataCenterId" , org.ovirt.engine.core.dao.network.VnicProfileViewDaoDbFacadeImpl.VnicProfileViewRowMapper.INSTANCE , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.VnicProfileView get ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid userId , boolean filtered ) { return getCallsHandler ( ) . executeRead ( getProcedureNameForGet ( ) , org.ovirt.engine.core.dao.network.VnicProfileViewDaoDbFacadeImpl.VnicProfileViewRowMapper.INSTANCE , createIdParameterMapper ( id ) . addValue ( "user_id" , userId ) . addValue ( "is_filtered" , filtered ) ) ; }
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.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }

Target:
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.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , plugged , vmNames , templateVersionNames , vmEntityType , numberOfVms , logicalName ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , plugged , vmNames , templateVersionNames , vmEntityType , numberOfVms , logicalName , imageTransferPhase , imageTransferBytesSent , imageTransferBytesTotal ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml span ( java.lang.String id , java.lang.String styleClass , com.google.gwt.safehtml.shared.SafeHtml html ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml span ( java.lang.String id , java.lang.String classNames , com.google.gwt.safehtml.shared.SafeHtml html ) ;
Source:
public org.ovirt.engine.core.common.businessentities.Role get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetRolsByid" , RolesRowMapper.instance , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Role get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetRolsByid" , org.ovirt.engine.core.dao.RoleDAODbFacadeImpl.RolesRowMapper.instance , parameterSource ) ; }
Source:
public static boolean CheckIfCpusExist ( java.lang.String cpuName , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.CheckIfCpusExist ( cpuName ) ; } return false ; }

Target:
public static boolean checkIfCpusExist ( java.lang.String cpuName , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.CheckIfCpusExist ( cpuName ) ; } return false ; }
Source:
void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants , org.ovirt.engine.ui.webadmin.ApplicationDynamicMessages dynamicMessages ) { closeButton.setText ( constants.closeButtonLabel ( ) ) ; copyrightNotice.setText ( dynamicMessages.copyRightNotice ( ) ) ; }

Target:
void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants , org.ovirt.engine.ui.webadmin.ApplicationDynamicMessages dynamicMessages ) { closeButton.setText ( constants.closeButtonLabel ( ) ) ; titleLabel.setText ( constants.aboutPopupCaption ( ) ) ; copyrightNotice.setText ( dynamicMessages.copyRightNotice ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.GraphicsConsole addParents ( org.ovirt.engine.api.model.GraphicsConsole model ) { model.setVm ( new org.ovirt.engine.api.model.Vm ( ) ) ; model.getVm ( ) . setId ( getGuid ( ) . toString ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.GraphicsConsole addParents ( org.ovirt.engine.api.model.GraphicsConsole model ) { model.setVm ( new org.ovirt.engine.api.model.Vm ( ) ) ; model.getVm ( ) . setId ( guid.toString ( ) ) ; return model ; }
Source:
public void testClusterAppliedBeforeConfig ( ) { setupClusterWithSerialNumber ( SerialNumberPolicy.VM_ID , null ) ; setupConfigWithSerialNumber ( SerialNumberPolicy.CUSTOM , org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_CONFIG_SERIAL ) ; assertSerialNumber ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.VM_ID.toString ( ) ) ; }

Target:
public static java.util.stream.Stream < org.ovirt.engine.core.utils.MockConfigDescriptor < ? > > mockConfigForSerial ( ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.mockConfigWithSerialNumber ( SerialNumberPolicy.CUSTOM , org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_CONFIG_SERIAL ) ; }
Source:
private boolean isNextRunRequested ( ) { return org.ovirt.engine.api.common.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendVmResource.NEXT_RUN , true , false ) ; }

Target:
private boolean isNextRunRequested ( ) { return org.ovirt.engine.api.restapi.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendVmResource.NEXT_RUN , true , false ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( java.lang.String volumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName ) ;
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getBehavior ( ) . updateTimeZone ( ) ; }

Target:
public void setWatchdogModel ( org.ovirt.engine.ui.uicommonweb.models.ListModel watchdogModel ) { this . watchdogModel = watchdogModel ; }
Source:
public void setCpuName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( cpuName , value ) ) ) { cpuName = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "CpuName" ) ) ; } }

Target:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spmMaxPriorityValue = ( ( java.lang.Integer ) ( returnValue ) ) ; retrieveDefaultSpmPriority ( ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; setParentEntity ( ( ( T ) ( org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.AffinityGroupListModel.getEntity ( ) ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.AffinityGroupListModel.getSearchCommand ( ) . execute ( ) ; }

Target:
protected void syncSearch ( ) { if ( ( org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.AffinityGroupListModel.getEntity ( ) ) != null ) { super . syncSearch ( queryType , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.AffinityGroupListModel.getEntity ( ) . getId ( ) ) ) ; } }
Source:
public java.lang.String getClusterName ( ) { if ( ( getCluster ( ) ) != null ) { return getCluster ( ) . getName ( ) ; } return "" ; }

Target:
public java.lang.String getClusterName ( ) { if ( ( clusterName ) == null ) { if ( ( getCluster ( ) ) != null ) { clusterName = getCluster ( ) . getName ( ) ; } else { clusterName = "" ; } } return clusterName ; }
Source:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) , org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) ) , diskInfoDestinationMap , destStorages , false ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getPoolDomains ( ) { if ( ( poolDomains ) == null ) { poolDomains = org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( vmDisksSource.getStoragePoolId ( ) ) ; } return poolDomains ; }
Source:
public void validateFailsOnVolumeWithoutRemoveBricksTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , getBricks ( volumeWithoutRemoveBricksTask ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { setVolume ( volumeWithRemoveBricksTaskNull ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase createActionParameters ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.common.action.VmOperationParameterBase ( vm.getId ( ) ) ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > getStoragePoolTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageType [ ] { org.ovirt.engine.core.common.businessentities.StorageType.NFS , org.ovirt.engine.core.common.businessentities.StorageType.ISCSI , org.ovirt.engine.core.common.businessentities.StorageType.FCP , org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS , org.ovirt.engine.core.common.businessentities.StorageType.POSIXFS , org.ovirt.engine.core.common.businessentities.StorageType.GLUSTERFS } ) ) ; }

Target:
public int compare ( java.lang.Integer o1 , java.lang.Integer o2 ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o1 ) . compareTo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o2 ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY , null ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getIso ( ) . setIsChangeable ( getAttachDrivers ( ) . getEntity ( ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getIso ( ) . setIsChangeable ( getAttachDrivers ( ) . getEntity ( ) ) ; updateWindowsWarningMessage ( ) ; }
Source:
public void testGetRelevantQuotasExistingVdsGroup ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForVdsGroup ( FixturesTool.VDS_GROUP_RHEL6_NFS , org.ovirt.engine.core.dao.QuotaDaoTest.VDS_GRUOP_NUM_QUOTAS ) ; }

Target:
public void testGetRelevantQuotasExistingCluster ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForCluster ( FixturesTool.CLUSTER_RHEL6_NFS , org.ovirt.engine.core.dao.QuotaDaoTest.VDS_GRUOP_NUM_QUOTAS ) ; }
Source:
public void testChangeClusterForbidden ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setVdsGroupId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with cant change cluster." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.VM_CANNOT_UPDATE_CLUSTER ) ; }

Target:
public void testChangeClusterForbidden ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setVdsGroupId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with cant change cluster." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.VM_CANNOT_UPDATE_CLUSTER ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_server_connections getStorageServerConnection ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.storage_server_connections.class , VdcQueryType.GetStorageServerConnectionById , new org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase ( id ) , ( "Storage server connection: id=" + id ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections getStorageServerConnection ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class , VdcQueryType.GetStorageServerConnectionById , new org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase ( id ) , ( "Storage server connection: id=" + id ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { createSpmControls ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( ( e.PropertyName ) == "IsAvailable" ) { setPkPasswordSectionVisiblity ( false ) ; } }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface iface ) { return iface.getId ( ) . equals ( guid ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) { return iface.getId ( ) . equals ( guid ) ; }
Source:
public void initTemplate ( ) { setupTemplate ( pool.getVmtGuid ( ) , pool.isUseLatestVersion ( ) ) ; }

Target:
public void initTemplate ( ) { setupTemplateWithVersion ( pool.getVmtGuid ( ) , pool.isUseLatestVersion ( ) , true ) ; }
Source:
private void refresh ( org.ovirt.engine.core.bll.session.SessionDataContainer.SessionInfo sessionInfo ) { int softLimitValue = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.UserSessionTimeOutInterval ) ; if ( softLimitValue > 0 ) { sessionInfo.contentOfSession.put ( org.ovirt.engine.core.bll.session.SessionDataContainer.SOFT_LIMIT_PARAMETER_NAME , org.apache.commons.lang.time.DateUtils.addMinutes ( new java.util.Date ( ) , softLimitValue ) ) ; } }

Target:
private void refresh ( org.ovirt.engine.core.bll.aaa.SessionDataContainer.SessionInfo sessionInfo ) { int softLimitValue = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.UserSessionTimeOutInterval ) ; if ( softLimitValue > 0 ) { sessionInfo.contentOfSession.put ( org.ovirt.engine.core.bll.aaa.SessionDataContainer.SOFT_LIMIT_PARAMETER_NAME , org.apache.commons.lang.time.DateUtils.addMinutes ( new java.util.Date ( ) , softLimitValue ) ) ; } }
Source:
types.Label [ ] labels ( ) ;

Target:
types.NetworkLabel [ ] networkLabels ( ) ;
Source:
public java.lang.String getValue ( java.lang.Object object ) { return getEntity ( object ) . getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData importVmData ) { return importVmData.getVm ( ) . getName ( ) ; }
Source:
public void setKsmCpuPercent ( java.lang.Integer value ) { this . mVdsStatistics.setksm_cpu_percent ( value ) ; }

Target:
public void setSwapFree ( java.lang.Long value ) { this . mVdsStatistics.setSwapFree ( value ) ; }
Source:
public void testExecuteQueryWithInValidVmIdOrMissingPermissions ( ) throws java.lang.Exception { mockDaoForQuery ( ) ; vm = mockVm ( ) ; getQuery ( ) . executeQueryCommand ( ) ; org.junit.Assert.assertEquals ( null , getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ; }

Target:
public void testExecuteQueryWithInValidVmIdOrMissingPermissions ( ) throws java.lang.Exception { mockDaoForQuery ( ) ; vm = mockVm ( ) ; getQuery ( ) . executeQueryCommand ( ) ; org.junit.Assert.assertNull ( getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ; }
Source:
public void checkRemoveNotExistingConnection ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.mockito.Mockito.when ( storageServerConnectionDao.get ( NFSConnection.getId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }

Target:
public void checkRemoveNotExistingConnection ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.mockito.Mockito.when ( storageServerConnectionDao.get ( NFSConnection.getId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid lookupStorageDomainIdByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic.class , VdcQueryType.GetStorageDomainByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Storage: name=" + name ) ) . getId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid lookupStorageDomainIdByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic.class , QueryType.GetStorageDomainByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Storage: name=" + name ) ) . getId ( ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; initAllModels ( true ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; initAllModels ( true ) ; }
Source:
public org.ovirt.engine.api.extensions.ExtMap getPrincipalRecord ( java.lang.String engineSessionId ) { return ( ( org.ovirt.engine.api.extensions.ExtMap ) ( getData ( engineSessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_RECORD_PARAMETER_NAME , false ) ) ) ; }

Target:
public java.lang.String getSsoAccessToken ( java.lang.String engineSessionId ) { return ( ( java.lang.String ) ( getData ( engineSessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SSO_ACCESS_TOKEN_PARAMETER_NAME , false ) ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.VM > cast ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.IVdcQueryable > ) ( source ) ) ) ; return vms ; }
Source:
private boolean isCinderDisksExist ( ) { return ! ( org.ovirt.engine.core.bll.ImagesHandler.filterDisksBasedOnCinder ( getDisksList ( ) ) . isEmpty ( ) ) ; }

Target:
private boolean isCinderDisksExist ( ) { return ! ( org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.filterDisksBasedOnCinder ( getDisksList ( ) ) . isEmpty ( ) ) ; }
Source:
public void execute ( ) { for ( org.ovirt.engine.ui.webadmin.plugin.Plugin plugin : getPlugins ( ) ) { initPlugin ( plugin ) ; } }

Target:
public void execute ( ) { initAllPlugins ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.event_map mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.event_map entity = new org.ovirt.engine.core.common.businessentities.event_map ( ) ; entity.setevent_up_name ( rs.getString ( "event_up_name" ) ) ; entity.setevent_down_name ( rs.getString ( "event_down_name" ) ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.EventMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.EventMap entity = new org.ovirt.engine.core.common.businessentities.EventMap ( ) ; entity.setEventUpName ( rs.getString ( "event_up_name" ) ) ; entity.setEventDownName ( rs.getString ( "event_down_name" ) ) ; return entity ; }
Source:
public void testPersistentAuthDisabled ( ) { org.junit.Assert.assertEquals ( 0 , getPrefer ( ) ) ; org.junit.Assert.assertEquals ( 0 , getPrefer ( "x" , "y" ) ) ; org.junit.Assert.assertEquals ( 0 , getPrefer ( "x" , "y" ) ) ; }

Target:
public void testPersistentAuthDisabled ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 0 , getPrefer ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , getPrefer ( "x" , "y" ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , getPrefer ( "x" , "y" ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ; }

Target:
protected java.util.function.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( final java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return ( storageDomain ) -> ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ; }
Source:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword ) { return _doConnect ( server , _prepareCredentials ( rootPassword ) ) ; }

Target:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword ) { return _doConnect ( server , "root" , rootPassword , null , null ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.LUNs lun ) { for ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection : lun.getLunConnections ( ) ) { if ( org.apache.commons.collections.CollectionUtils.exists ( targetIQNs , new org.apache.commons.collections.functors.EqualPredicate ( connection.getiqn ( ) ) ) ) { return true ; } } return false ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { for ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection : lun.getLunConnections ( ) ) { if ( org.apache.commons.collections.CollectionUtils.exists ( targetIQNs , new org.apache.commons.collections.functors.EqualPredicate ( connection.getiqn ( ) ) ) ) { return true ; } } return false ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsVersion GetHostVersion ( org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.core.common.businessentities.VDS host = org.ovirt.engine.ui.uicommonweb.DataProvider.GetHostById ( hostId ) ; return host != null ? host.getVersion ( ) : new org.ovirt.engine.core.common.businessentities.VdsVersion ( ) ; }

Target:
private org.ovirt.engine.core.compat.RpmVersion GetHostVersion ( org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.core.common.businessentities.VDS host = org.ovirt.engine.ui.uicommonweb.DataProvider.GetHostById ( hostId ) ; return host != null ? host.getVersion ( ) : new org.ovirt.engine.core.compat.RpmVersion ( ) ; }
Source:
private org.ovirt.engine.core.bll.storage.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { return org.ovirt.engine.core.bll.storage.StorageHelperDirector.getInstance ( ) . getItem ( storageType ) ; }

Target:
private org.ovirt.engine.core.bll.storage.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return org.ovirt.engine.core.bll.storage.StorageHelperDirector.getInstance ( ) . getItem ( storageType ) ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand o1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand o2 ) { return o1.getName ( ) . compareTo ( o2.getName ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand com1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand com2 ) { return lexoNumeric.compare ( com1.getName ( ) , com2.getName ( ) ) ; }
Source:
private void checkJson ( java.lang.String json ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) final java.util.HashMap < java.lang.String , java.lang.Boolean > map = new org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer ( ) . deserialize ( json , java.util.HashMap.class ) ; junit.framework.Assert.assertTrue ( map.get ( "success" ) ) ; }

Target:
private void checkJson ( java.lang.String json ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) final java.util.HashMap < java.lang.String , java.lang.Boolean > map = new org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer ( ) . deserialize ( json , java.util.HashMap.class ) ; org.junit.Assert.assertTrue ( map.get ( "success" ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createDefaultStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createHigherVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_2 ) ; return pool ; }
Source:
private void initHandlers ( ) { org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = tagsDirector ; serviceLoader.load ( org.ovirt.engine.core.bll.VmHandler.class ) ; org.ovirt.engine.core.bll.VdsHandler.init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }

Target:
private void initHandlers ( ) { org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = tagsDirector ; serviceLoader.load ( org.ovirt.engine.core.bll.VmHandler.class ) ; serviceLoader.load ( org.ovirt.engine.core.bll.VdsHandler.class ) ; serviceLoader.load ( org.ovirt.engine.core.bll.VmTemplateHandler.class ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
public void getSnaphsotByTypeAndStatusForExistingEntity ( ) { org.junit.Assert.assertEquals ( existingEntity , dao.get ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.REGULAR , SnapshotStatus.OK ) ) ; }

Target:
public void getSnaphsotByTypeAndStatusForExistingEntity ( ) { org.junit.jupiter.api.Assertions.assertEquals ( existingEntity , dao.get ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.REGULAR , SnapshotStatus.OK ) ) ; }
Source:
protected void endImportCommand ( ) { endActionOnAllImageGroups ( ) ; endVmRelatedOps ( ) ; org.ovirt.engine.core.bll.ImportVmCommand.setSucceeded ( true ) ; }

Target:
protected void endSuccessfully ( ) { checkTrustedService ( ) ; endActionOnAllImageGroups ( ) ; org.ovirt.engine.core.bll.VmHandler.unLockVm ( getVm ( ) ) ; org.ovirt.engine.core.bll.ImportVmCommand.setSucceeded ( true ) ; }