auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testIsNetworkInSyncWhenBootProtocolEqual ( ) throws java.lang.Exception { initIpConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpConfigurationIsNull ( ) throws java.lang.Exception { this . testedNetworkAttachment.setIpConfiguration ( null ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void setKernelParams ( java.lang.String value ) { vmStatic.setkernel_params ( value ) ; }

Target:
public void setGuestAgentNicsHash ( int guestAgentNicsHash ) { vmDynamic.setGuestAgentNicsHash ( guestAgentNicsHash ) ; }
Source:
public void passthroughNotChangedNotUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( false , false , true ) ; org.junit.Assert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughNotChangedNotUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( false , false , true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void updateModelClusterFromVds ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters , org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( clusters != null ) { getCluster ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( clusters , new org.ovirt.engine.ui.uicommonweb.Linq.ClusterPredicate ( vds.getVdsGroupId ( ) ) ) ) ; } }

Target:
protected void updateModelClusterFromVds ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters , org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( clusters != null ) { getCluster ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( clusters , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate < > ( vds.getVdsGroupId ( ) ) ) ) ; } }
Source:
private void addAlarm ( org.ovirt.engine.core.compat.Guid hostId , boolean isConcurrent , org.ovirt.engine.core.common.AuditLogType conAlert , org.ovirt.engine.core.common.AuditLogType seqAlert ) { if ( isConcurrent ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.AddVdsAlert ( hostId , conAlert ) ; } else { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.AddVdsAlert ( hostId , seqAlert ) ; } }

Target:
private void removeAlert ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.AuditLogType auditMessage ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.RemoveVdsAlert ( hostId , auditMessage ) ; }
Source:
public void testSave ( ) { dao.save ( newAsyncTask ) ; org.ovirt.engine.core.common.businessentities.async_tasks result = dao.get ( newAsyncTask.gettask_id ( ) ) ; org.junit.Assert.assertEquals ( newAsyncTask , result ) ; }

Target:
public void testSave ( ) { dao.save ( newAsyncTask ) ; org.ovirt.engine.core.common.businessentities.AsyncTasks result = dao.get ( newAsyncTask.gettask_id ( ) ) ; org.junit.Assert.assertEquals ( newAsyncTask , result ) ; }
Source:
protected void saveBaseDisk ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { getBaseDiskDao ( ) . save ( disk ) ; }

Target:
protected void saveBaseDisk ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.bll.ImportVmCommand.getBaseDiskDao ( ) . save ( disk ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { setWindow ( null ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { setWindow ( null ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName ) ;
Source:
public org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceModel flush ( ) { return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceModel flush ( ) { qosWidget.flush ( ) ; return driver.flush ( ) ; }
Source:
public java.lang.String serializeUnformattedJson ( java.io.Serializable payload ) throws org.ovirt.engine.core.utils.SerializationExeption { org.codehaus.jackson.map.ObjectMapper mapper = new org.codehaus.jackson.map.ObjectMapper ( ) ; return writeJsonAsString ( payload , mapper ) ; }

Target:
public java.lang.String serialize ( java.lang.Object payload ) throws org.ovirt.engine.core.utils.SerializationExeption { return writeJsonAsString ( payload , org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer.formattedMapper ) ; }
Source:
public void onSuccess ( java.lang.Integer returnValue ) { maxCpus = returnValue ; postUpdateNumOfSockets2 ( ) ; }

Target:
public void onSuccess ( java.lang.Integer returnValue ) { setMaxVmsInPool ( returnValue ) ; updateMaxNumOfVmCpus ( ) ; }
Source:
public static < R extends org.ovirt.engine.api.model.BaseResource > javax.ws.rs.core.UriBuilder getUriBuilder ( javax.ws.rs.core.UriInfo uriInfo , R model ) { return org.ovirt.engine.api.utils.LinkHelper.getUriBuilder ( uriInfo , model , null ) ; }

Target:
public static < R extends org.ovirt.engine.api.model.BaseResource > javax.ws.rs.core.UriBuilder getUriBuilder ( javax.ws.rs.core.UriInfo uriInfo , R model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.getUriBuilder ( uriInfo , model , null ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.HashMap < org.ovirt.engine.core.compat.Version , java.lang.String > ) ( source ) ) : null ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > ( ) ; }
Source:
private void newInstanceType ( ) { createWindow ( new org.ovirt.engine.ui.uicommonweb.models.vms.NewInstanceTypeModelBehavior ( ) , "new_instance_type" , "OnNewInstanceType" , true , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newInstanceTypeTitle ( ) ) ; }

Target:
private void newInstanceType ( ) { createWindow ( new org.ovirt.engine.ui.uicommonweb.models.vms.NewInstanceTypeModelBehavior ( ) , "new_instance_type" , "OnNewInstanceType" , true , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newInstanceTypeTitle ( ) , HelpTag.new_instance_type ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getAllDisksByStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.GetVmsByStorageDomainQuery.getBackend ( ) . runQuery ( VdcQueryType.GetAllDisksByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( domainId ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getAllDisksByStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.GetVmsByStorageDomainQuery.getBackend ( ) . runInternalQuery ( VdcQueryType.GetAllDisksByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( domainId ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllInterfacesByClusterId ( org.ovirt.engine.core.compat.Guid clusterId ) { return getCallsHandler ( ) . executeReadList ( "GetInterfacesByClusterId" , org.ovirt.engine.core.dao.network.InterfaceDaoDbFacadeImpl.vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllInterfacesByClusterId ( org.ovirt.engine.core.compat.Guid clusterId ) { return getCallsHandler ( ) . executeReadList ( "GetInterfacesByClusterId" , vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult labelInVfsConfig ( java.lang.String label ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_LABEL_NOT_IN_VFS_CONFIG , getNicNameReplacement ( ) , java.lang.String.format ( org.ovirt.engine.core.bll.validator.VfsConfigValidator.LABEL_REPLACEMENT , label ) ) . unless ( oldVfsConfig.getNetworkLabels ( ) . contains ( label ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult labelInVfsConfig ( java.lang.String label ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_LABEL_NOT_IN_VFS_CONFIG , getNicNameReplacement ( ) , java.lang.String.format ( org.ovirt.engine.core.bll.validator.VfsConfigValidator.LABEL_REPLACEMENT , label ) ) . unless ( oldVfsConfig.getNetworkLabels ( ) . contains ( label ) ) ; }
Source:
protected void ExecuteVDSCommand ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.ResetISOPathVDSCommand.getCurrentIrsProxyData ( ) . setIsoPrefix ( "" ) ; }

Target:
protected void executeVDSCommand ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.ResetISOPathVDSCommand.getCurrentIrsProxyData ( ) . setIsoPrefix ( "" ) ; }
Source:
public void testCanDoActionFloatingDisk ( ) { org.mockito.Mockito.when ( vmDao.getVmsListForDisk ( diskId , java.lang.Boolean.FALSE ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VM > emptyList ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_IS_NOT_VM_DISK ) ; }

Target:
public void testValidateFloatingDisk ( ) { org.mockito.Mockito.when ( vmDao.getVmsListForDisk ( diskId , java.lang.Boolean.FALSE ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VM > emptyList ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_IS_NOT_VM_DISK ) ; }
Source:
protected boolean isImageExclusiveLockNeeded ( ) { return ( ( getDiskType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( getDisk ( ) ) ) . getVolumeFormat ( ) ) != ( org.ovirt.engine.core.common.businessentities.VolumeFormat.RAW ) ) ; }

Target:
protected boolean isImageExclusiveLockNeeded ( ) { return ( ( getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getDisk ( ) ) ) . getVolumeFormat ( ) ) != ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.RAW ) ) ; }
Source:
private boolean isIncomingHeartbeatExeeded ( ) { return ( ( this . lastIncomingHeartbeat ) + ( this . policy.getIncomingHeartbeat ( ) ) ) < ( java.lang.System.currentTimeMillis ( ) ) ; }

Target:
private boolean isIncomingHeartbeatExceeded ( ) { return ( ( this . lastIncomingHeartbeat ) + ( this . policy.getIncomingHeartbeat ( ) ) ) < ( java.lang.System.currentTimeMillis ( ) ) ; }
Source:
protected int getEneitiesTotalCount ( ) { return 0 ; }

Target:
protected int getEntitiesTotalCount ( ) { return 0 ; }
Source:
private org.ovirt.engine.core.common.businessentities.AsyncTasks createAsyncTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.createAsyncTask ( this , asyncTaskCreationInfo , parentCommand ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.AsyncTasks createAsyncTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.createAsyncTask ( this , asyncTaskCreationInfo , parentCommand ) ; }
Source:
protected void addDividerToKebab ( ) { actionPanel.addDividerToKebab ( ) ; }

Target:
private void addActionSearchPanel ( com.google.gwt.user.client.ui.FlowPanel container ) { container.insert ( actionSearchPanel , 1 ) ; }
Source:
public boolean accept ( java.io.File dir , java.lang.String name ) { return name.matches ( ( ( "^" + fileNamePrefix ) + "_[a-zA-Z]{2}.*\\.properties$" ) ) ; }

Target:
private static java.io.File [ ] getMessagesLocalePropertiesFiles ( final java.io.File currentDir , final java.lang.String fileNamePrefix ) throws java.net.URISyntaxException { return currentDir.listFiles ( ( dir , name ) -> name.matches ( ( ( "^" + fileNamePrefix ) + "_[a-zA-Z]{2}.*\\.properties$" ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , null , networkName , true , null , false , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , null , networkName , true , null , false , null , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; }
Source:
private void updateVolumeStatusInDb ( org.ovirt.engine.core.compat.Guid volumeId ) { getGlusterVolumeDao ( ) . updateVolumeStatus ( volumeId , GlusterVolumeStatus.UP ) ; updateBrickStatus ( GlusterBrickStatus.UP ) ; }

Target:
private void updateVolumeStatusInDb ( org.ovirt.engine.core.compat.Guid volumeId ) { getGlusterVolumeDao ( ) . updateVolumeStatus ( volumeId , GlusterStatus.UP ) ; updateBrickStatus ( GlusterStatus.UP ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . getTagById ( org.ovirt.engine.core.bll.GetTagByTagIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagIdQuery.getQueryReturnValue ( ) . setReturnValue ( tagsDirector.getTagById ( org.ovirt.engine.core.bll.GetTagByTagIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addConsoleDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONSOLE , VmDeviceType.CONSOLE , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getConsoleDeviceSpecParams ( ) , true , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , org.ovirt.engine.core.bll.utils.VmDeviceUtils.EMPTY_SPEC_PARAMS , true , false ) ; }
Source:
protected static < T extends org.ovirt.engine.core.common.vdscommands.StorageDomainIdParametersBase & org.ovirt.engine.core.common.vdscommands.PostZero > T fixParametersWithPostZero ( T parameters , boolean isFileDomain ) { if ( isFileDomain ) { parameters.setPostZero ( false ) ; } return parameters ; }

Target:
protected static < T extends org.ovirt.engine.core.common.vdscommands.StorageDomainIdParametersBase & org.ovirt.engine.core.common.vdscommands.PostDeleteAction > T fixParameters ( T parameters , boolean isFileDomain ) { if ( isFileDomain ) { parameters.setPostZero ( false ) ; } return parameters ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1 ; }
Source:
private void initSearchDependencies ( ) { org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getUniqueOsNames ( ) ) ) ; }

Target:
private void initSearchDependencies ( ) { org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getUniqueOsNames ( ) ) ) ; }
Source:
protected boolean isGhost ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > value ) { return ( ( value == null ) || ( ( value.getEntity ( ) ) == null ) ) || ( "" . equals ( value.getEntity ( ) ) ) ; }

Target:
protected boolean isGhost ( org.ovirt.engine.ui.uicommonweb.models.hosts.FenceProxyModel value ) { return ( ( value == null ) || ( ( value.getEntity ( ) ) == null ) ) || ( "" . equals ( value.getEntity ( ) ) ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.Permissions result = dao.get ( org.ovirt.engine.core.dao.PermissionDAOTest.EXISTING_PERMISSION_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.PermissionDAOTest.EXISTING_PERMISSION_ID , result.getId ( ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.Permission result = dao.get ( org.ovirt.engine.core.dao.PermissionDAOTest.EXISTING_PERMISSION_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.PermissionDAOTest.EXISTING_PERMISSION_ID , result.getId ( ) ) ; }
Source:
public void testDefaultPoolFlagIsNotSetValidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( false ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.MacPoolValidator ( macPool ) . defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { this . macPoolValidator = createMacPoolValidator ( macPool ) ; org.mockito.Mockito.when ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getMacPoolDao ( ) ) . thenReturn ( macPoolDaoMock ) ; org.mockito.Mockito.when ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) ) . thenReturn ( storagePoolDao ) ; }
Source:
public void testCDAVdsNotUp ( ) { vds.setStatus ( VDSStatus.Down ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail for a VDS with a status different from UP" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessagesContains ( command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_NOT_UP ) ; }

Target:
public void testCDAStoragePoolValid ( ) { vds.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on mismatch Storage Pool" , command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_NOT_IN_POOL ) ; }
Source:
private void mockJobDao ( org.ovirt.engine.core.common.job.Job job ) { org.mockito.Mockito.when ( jobDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( job ) ; }

Target:
private void mockJobDao ( org.ovirt.engine.core.common.job.Job job ) { job.setJobSubjectEntities ( org.ovirt.engine.core.bll.job.JobRepositoryTest.JOB_SUBJECT_ENTITIES_MAP ) ; org.mockito.Mockito.when ( jobDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( job ) ; }
Source:
public void failCreateMoreNumaNodesThanVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 1 ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }

Target:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( "DiskAlias" , null ) ; }

Target:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { disk1.setDiskAlias ( "DiskAlias" ) ; disk1.setDiskDescription ( null ) ; org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( disk1 ) ; }
Source:
public boolean getIsNew ( ) { return privateIsNew ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmBase getVm ( ) { return vm ; }
Source:
public java.lang.String getSearchPrefixString ( ) { return searchStringPrefixLabel.getText ( ) ; }

Target:
public void enableSearchBar ( boolean status ) { searchStringInput.setEnabled ( status ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.LunDisk createLunDisk ( ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = new org.ovirt.engine.core.common.businessentities.LunDisk ( ) ; org.ovirt.engine.core.common.businessentities.LUNs lun = new org.ovirt.engine.core.common.businessentities.LUNs ( ) ; lun.setLUN_id ( "lun_id" ) ; lun.setLunType ( StorageType.ISCSI ) ; disk.setLun ( lun ) ; return disk ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.LunDisk createLunDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lun = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; lun.setLUN_id ( "lun_id" ) ; lun.setLunType ( StorageType.ISCSI ) ; disk.setLun ( lun ) ; return disk ; }
Source:
public void testHostedEngineConstraintsIneffectiveOnRegularVm ( ) { vmStatic.setOrigin ( OriginType.OVIRT ) ; boolean validInput = command.validateInputs ( ) ; org.junit.Assert.assertThat ( validInput , org.hamcrest.core.Is.is ( true ) ) ; }

Target:
public void testHostedEngineConstraintsIneffectiveOnRegularVm ( ) { vmStatic.setOrigin ( OriginType.OVIRT ) ; boolean validInput = command.validateInputs ( ) ; org.hamcrest.MatcherAssert.assertThat ( validInput , org.hamcrest.core.Is.is ( true ) ) ; }
Source:
protected void executeCommand ( ) { getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { registerRollbackHandler ( new org.ovirt.engine.core.bll.RemoveMacPoolCommand.CustomTransactionCompletionListener ( ) ) ; getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public static java.net.URI buildSsoUrlKerberos ( java.lang.String url ) { try { java.net.URI uri = new java.net.URI ( url ) ; org.apache.http.client.utils.URIBuilder uriBuilder = new org.apache.http.client.utils.URIBuilder ( java.lang.String.format ( "%1$s://%2$s/ovirt-engine/sso/oauth/%3$s" , uri.getScheme ( ) , uri.getAuthority ( ) , org.ovirt.engine.sdk4.internal.SsoUtils.ENTRY_POINT_HTTP ) ) ; uriBuilder.addParameter ( "grant_type" , org.ovirt.engine.sdk4.internal.SsoUtils.GRANT_TYPE_HTTP ) ; uriBuilder.addParameter ( "scope" , org.ovirt.engine.sdk4.internal.SsoUtils.SCOPE ) ; return uriBuilder.build ( ) ; } catch ( java.net.URISyntaxException ex ) { throw new java.lang.Error ( "Failed to build SSO authentication URL" , ex ) ; } }

Target:
public static java.net.URI buildSsoUrlKerberos ( java.lang.String url ) { try { java.net.URI uri = new java.net.URI ( url ) ; org.apache.http.client.utils.URIBuilder uriBuilder = new org.apache.http.client.utils.URIBuilder ( java.lang.String.format ( "%1$s://%2$s/ovirt-engine/sso/oauth/%3$s" , uri.getScheme ( ) , uri.getAuthority ( ) , org.ovirt.engine.sdk4.internal.SsoUtils.ENTRY_POINT_HTTP ) ) ; return uriBuilder.build ( ) ; } catch ( java.net.URISyntaxException ex ) { throw new java.lang.Error ( "Failed to build SSO authentication URL" , ex ) ; } }
Source:
public static void addDiskToVmIfNotExists ( org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk , org.ovirt.engine.core.compat.Guid vmId ) { if ( ! ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBaseDiskDao ( ) . exists ( disk.getId ( ) ) ) ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.addDiskToVm ( disk , vmId ) ; } }

Target:
public void addDisk ( org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk ) { if ( ! ( baseDiskDao.exists ( disk.getId ( ) ) ) ) { baseDiskDao.save ( disk ) ; } }
Source:
protected void executeQueryCommand ( ) { java.lang.Boolean isEmpty = org.ovirt.engine.core.bll.IsClusterEmptyQuery.getDbFacade ( ) . getClusterDao ( ) . getIsEmpty ( org.ovirt.engine.core.bll.IsClusterEmptyQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.IsClusterEmptyQuery.getQueryReturnValue ( ) . setReturnValue ( isEmpty ) ; }

Target:
protected void executeQueryCommand ( ) { java.lang.Boolean isEmpty = clusterDao.getIsEmpty ( org.ovirt.engine.core.bll.IsClusterEmptyQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.IsClusterEmptyQuery.getQueryReturnValue ( ) . setReturnValue ( isEmpty ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { table.ensureColumnPresent ( column , headerText , present ) ; tableHeader.ensureColumnPresent ( column , headerText , present ) ; }

Target:
public void ensureColumnVisible ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean visible ) { table.ensureColumnVisible ( column , headerText , visible ) ; tableHeader.ensureColumnVisible ( column , headerText , visible ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.domain.IsoDomainListSyncronizer getIsoDomainListSyncronizer ( ) { return org.ovirt.engine.core.bll.storage.domain.IsoDomainListSyncronizer.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.domain.IsoDomainListSynchronizer getIsoDomainListSynchronizer ( ) { return isoDomainListSynchronizer ; }
Source:
public void UpdateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDAO ( ) . update ( dynamicData ) ; }

Target:
public void UpdateStatisticsData ( org.ovirt.engine.core.common.businessentities.VdsStatistics statisticsData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStatisticsDao ( ) . update ( statisticsData ) ; }
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.DiskImage > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; }

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:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }

Target:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > osDisplayTypes = getDisplayTypes ( osId , version ) ; return osDisplayTypes == null ? false : osDisplayTypes.contains ( DisplayType.qxl ) ; }
Source:
public void serializable ( ) { java.lang.String serialized = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) . serialize ( vm ) ; org.ovirt.engine.core.common.businessentities.VM deserialized = new org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer ( ) . deserialize ( serialized , org.ovirt.engine.core.common.businessentities.VM.class ) ; org.junit.Assert.assertEquals ( vm , deserialized ) ; }

Target:
public void serializable ( ) { java.lang.String serialized = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) . serialize ( vm ) ; org.ovirt.engine.core.common.businessentities.VM deserialized = new org.ovirt.engine.core.utils.serialization.json.JsonObjectDeserializer ( ) . deserialize ( serialized , org.ovirt.engine.core.common.businessentities.VM.class ) ; org.junit.jupiter.api.Assertions.assertEquals ( vm , deserialized ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; mockInterfaceList ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] snapParams ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookAdd ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum , java.lang.Boolean enabled ) ;
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallBack ( ) { return new org.ovirt.engine.core.bll.RemoveSnapshotCommandCallback ( ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallBack ( ) { return org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVm ( ) . isQualifiedForLiveSnapshotMerge ( ) ? new org.ovirt.engine.core.bll.RemoveSnapshotCommandCallback ( ) : null ; }
Source:
private void setUpGetEntityExpectations ( boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetHostListFromExternalProvider , org.ovirt.engine.core.common.queries.GetHostListFromExternalProviderParameters.class , new java.lang.String [ ] { "ProviderId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , ( notFound ? null : getHosts ( ) ) ) ; }

Target:
private void setUpGetEntityExpectations ( boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetHostListFromExternalProvider , org.ovirt.engine.core.common.queries.GetHostListFromExternalProviderParameters.class , new java.lang.String [ ] { "ProviderId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , ( notFound ? null : getHosts ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig getHostNicVfsConfigToRemove ( org.ovirt.engine.core.common.businessentities.HostDevice device ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = hostNicVfsConfigHelper.getNicByPciDevice ( device ) ; if ( nic == null ) { return null ; } return hostNicVfsConfigDao.getByNicId ( nic.getId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig getHostNicVfsConfigToRemove ( org.ovirt.engine.core.common.businessentities.HostDevice device ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = hostNicVfsConfigHelper.getNicByPciDevice ( device , oldMap.values ( ) ) ; if ( nic == null ) { return null ; } return hostNicVfsConfigDao.getByNicId ( nic.getId ( ) ) ; }
Source:
protected void endMoveOrCopyCommand ( ) { org.ovirt.engine.core.bll.VmTemplateHandler.UnLockVmTemplate ( getVmTemplateId ( ) ) ; endActionOnAllImageGroups ( ) ; setSucceeded ( true ) ; }

Target:
protected void endMoveOrCopyCommand ( ) { org.ovirt.engine.core.bll.VmTemplateHandler.unlockVmTemplate ( getVmTemplateId ( ) ) ; endActionOnAllImageGroups ( ) ; setSucceeded ( true ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { ensureColumnPresent ( column , headerText , present , null ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present , java.lang.String width ) { table.ensureColumnPresent ( column , headerText , present , width ) ; tableHeader.ensureColumnPresent ( column , headerText , present , width ) ; }
Source:
public void setItems ( java.lang.Iterable value ) { if ( value != null ) { java.util.Collections.sort ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > ) ( value ) ) , new org.ovirt.engine.ui.uicommonweb.Linq.ExternalSubnetComparator ( ) ) ; } super . setItems ( value ) ; }

Target:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.lang.Integer.valueOf ( 0 ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( source == null ) || ( ( java.lang.Boolean ) ( source ) ) ; }
Source:
public void displayAllAlerts ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.DisplayAllAuditLogAlerts , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ) ; }

Target:
public void displayAllAlerts ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( ActionType.DisplayAllAuditLogAlerts , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { populateProfiles ( ( ( java.util.List < org.ovirt.engine.core.aaa.ProfileEntry > ) ( result ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { populateNamespaces ( ) ; }
Source:
org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.lang.String key ) ;

Target:
org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( java.lang.String taskKey ) ;
Source:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommandTest.VALID_OVIRT_VERSION ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommandTest.VALID_OVIRT_VERSION ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }
Source:
public void setSpiceProxyEnabled ( boolean enabled ) { this . spiceProxyEnabled = enabled ; }

Target:
public void setOverrideEnabledSmartcard ( boolean enabled ) { this . consoleOptions.setSmartcardEnabledOverridden ( enabled ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.Boolean isPlugged , java.lang.Boolean isReadOnly , boolean isUsingScsiReservation ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice ( vmId , deviceId , isPlugged , isReadOnly , "" , isUsingScsiReservation ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.String address ) { return addDiskDevice ( vmId , deviceId , true , false , address , false ) ; }
Source:
public void showStatus ( java.lang.String status ) { setTitle ( status ) ; }

Target:
public void setTooltipText ( java.lang.String status ) { tooltip.setText ( status ) ; tooltip.reconfigure ( ) ; }
Source:
protected void UpdateTasksWithActionParameters ( ) { for ( org.ovirt.engine.core.compat.Guid taskID : getReturnValue ( ) . getTaskIdList ( ) ) { getAsyncTaskManager ( ) . UpdateTaskWithActionParameters ( taskID , getParameters ( ) ) ; } }

Target:
protected void updateTasksWithActionParameters ( ) { for ( org.ovirt.engine.core.compat.Guid taskID : getReturnValue ( ) . getTaskIdList ( ) ) { getAsyncTaskManager ( ) . UpdateTaskWithActionParameters ( taskID , getParameters ( ) ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup getTargetCluster ( ) { if ( ( targetCluster ) == null ) { targetCluster = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDAO ( ) . get ( org.ovirt.engine.core.bll.ChangeVDSClusterCommand.getParameters ( ) . getClusterId ( ) ) ; } return targetCluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDSGroup getTargetCluster ( ) { if ( ( targetCluster ) == null ) { targetCluster = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . get ( org.ovirt.engine.core.bll.ChangeVDSClusterCommand.getParameters ( ) . getClusterId ( ) ) ; } return targetCluster ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator getStorageDomainValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = org.ovirt.engine.core.bll.UpdateVmDiskCommand.getStorageDomainDAO ( ) . getForStoragePool ( diskImage.getStorageIds ( ) . get ( 0 ) , diskImage.getStoragePoolId ( ) ) ; return new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( storageDomain ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator getStorageDomainValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = org.ovirt.engine.core.bll.UpdateVmDiskCommand.getStorageDomainDao ( ) . getForStoragePool ( diskImage.getStorageIds ( ) . get ( 0 ) , diskImage.getStoragePoolId ( ) ) ; return new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( storageDomain ) ; }
Source:
public void asMapOneConvItem ( ) { schedule.addStallingStep ( new org.ovirt.engine.core.common.migration.ConvergenceItemWithStallingLimit ( 8 , "action" , 10 ) ) ; org.junit.Assert.assertEquals ( new org.ovirt.engine.core.bll.migration.ConvergenceScheduleTest.ExpectedConvergence ( ) . addStalling ( 8 , "action" , 10 ) , schedule.asMap ( ) ) ; }

Target:
public void asMapOneConvItem ( ) { schedule.addStallingStep ( new org.ovirt.engine.core.common.migration.ConvergenceItemWithStallingLimit ( 8 , "action" , 10 ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( new org.ovirt.engine.core.bll.migration.ConvergenceScheduleTest.ExpectedConvergence ( ) . addStalling ( 8 , "action" , 10 ) , schedule.asMap ( ) ) ; }
Source:
public void testGetLastSuccessfulEngineBackupWithWrongDbName ( ) { existingEngineBackupLog = dao.getLastSuccessfulEngineBackup ( org.ovirt.engine.core.dao.EngineBackupLogDaoTest.NON_EXISTING_DB_NAME ) ; org.junit.Assert.assertNull ( existingEngineBackupLog ) ; }

Target:
public void testGetLastSuccessfulEngineBackupWithWrongDbName ( ) { existingEngineBackupLog = dao.getLastSuccessfulEngineBackup ( org.ovirt.engine.core.dao.EngineBackupLogDaoTest.NON_EXISTING_SCOPE ) ; org.junit.Assert.assertNull ( existingEngineBackupLog ) ; }
Source:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; UpdateMinAllocatedMemory ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( null , "" ) ; updateCpuPinningVisibility ( ) ; }

Target:
public void defaultHost_SelectedItemChanged ( ) { updateCdImage ( ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml lineChart ( com.google.gwt.safehtml.shared.SafeUri chartData , int chartMarginRight , int textWidth , java.lang.String textColor , java.lang.String fontWeight , int percentage ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml lineChart ( com.google.gwt.safehtml.shared.SafeUri chartData , com.google.gwt.safecss.shared.SafeStyles styles , int percentage ) ;
Source:
public void setTitle ( java.lang.String title ) { this . title = title ; }

Target:
public void setOptions ( org.ovirt.engine.core.common.console.ConsoleOptions consoleOptions ) { this . consoleOptions = consoleOptions ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.templates.CopyDiskModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.templates.CopyDiskModel ) ( result.getState ( ) ) ) ; localModel.cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.templates.CopyDiskModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.templates.CopyDiskModel ) ( result.getState ( ) ) ) ; localModel.cancel ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneMapReturnForXmlRpc GetImageTransferSessionStats ( java.lang.String ticketId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc remove_image_ticket ( java.lang.String ticketId ) ;
Source:
public void markAsValid ( ) { markValidation ( false , null ) ; }

Target:
public void markAsValid ( ) { contentPanel.markAsValid ( ) ; }
Source:
private boolean labelRenamed ( ) { return ( ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( getOldNetwork ( ) ) ) && ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) ) ) ) && ( labelChanged ( ) ) ; }

Target:
private static boolean labelRenamed ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.Network oldNetwork ) { return ( ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( oldNetwork ) ) && ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( network ) ) ) && ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.labelChanged ( network , oldNetwork ) ) ; }
Source:
public void renameXenImage ( ) { java.lang.String alias = org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.renameDiskAlias ( OriginType.XEN , "/home/vdsm/Fedora22.img" ) ; org.junit.Assert.assertEquals ( "Fedora22" , alias ) ; }

Target:
public void renameXenImage ( ) { java.lang.String alias = org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.renameDiskAlias ( OriginType.XEN , "/home/vdsm/Fedora22.img" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Fedora22" , alias ) ; }
Source:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . getVmType ( ) . setIsChangable ( true ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . getVmType ( ) . setIsChangable ( true ) ; getModel ( ) . getMaxAssignedVmsPerUser ( ) . setIsChangable ( false ) ; }
Source:
public void execute ( ) { getLoginModel ( ) . AutoLogin ( vdcUser ) ; }

Target:
public void execute ( ) { lockInteractionManager.showLoadingIndicator ( ) ; getLoginModel ( ) . AutoLogin ( vdcUser ) ; }
Source:
public void jsonInvalidJson ( ) { provider.initMigrationPolicies ( "this is not a valid json" , org.ovirt.engine.core.bll.migration.ConvergenceConfigProviderTest.VERSION ) ; org.ovirt.engine.core.common.migration.MigrationPolicy policy = provider.getMigrationPolicy ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.bll.migration.ConvergenceConfigProviderTest.VERSION ) ; org.junit.Assert.assertTrue ( ( policy instanceof org.ovirt.engine.core.common.migration.NoMigrationPolicy ) ) ; }

Target:
public void jsonInvalidJson ( ) { provider.initMigrationPolicies ( "this is not a valid json" , org.ovirt.engine.core.bll.migration.ConvergenceConfigProviderTest.VERSION ) ; org.ovirt.engine.core.common.migration.MigrationPolicy policy = provider.getMigrationPolicy ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.bll.migration.ConvergenceConfigProviderTest.VERSION ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( policy instanceof org.ovirt.engine.core.common.migration.NoMigrationPolicy ) ) ; }
Source:
public static boolean versionSupported ( java.lang.String version ) { return ( java.lang.Integer.parseInt ( org.ovirt.engine.core.sso.utils.SSOUtils.SSO_VERSION ) ) >= ( java.lang.Integer.parseInt ( version ) ) ; }

Target:
public static java.util.List < java.lang.String > scopeAsList ( java.lang.String scope ) { return org.apache.commons.lang.StringUtils.isEmpty ( scope ) ? java.util.Collections.< java.lang.String > emptyList ( ) : java.util.Arrays.asList ( scope.trim ( ) . split ( "\\s *" ) ) ; }
Source:
private void OnSystemTreeSelectedItemChanged ( ) { UpdateActionAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public java.lang.Integer getPmPort ( ) { return mVdsStatic.getPmPort ( ) ; }

Target:
public java.util.Date getCpuOverCommitTimestamp ( ) { return mVdsStatistics.getCpuOverCommitTimeStamp ( ) ; }
Source:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.pool.AfterDeactivateSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) , isLastMaster , newMasterStorageDomainId ) ; }

Target:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.storage.pool.AfterDeactivateSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) , isLastMaster , newMasterStorageDomainId ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . removeButtons ( ) ; addFooterButtons ( model ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . removeButtons ( ) ; addFooterButtons ( model ) ; getView ( ) . updateTabIndexes ( ) ; }
Source:
public org.ovirt.engine.core.dao.VdsGroupDao getClusterDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.ClusterDao getClusterDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getClusterDao ( ) ; }