auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, syncType=%b" , super . toString ( ) , getSyncType ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, syncType=%s" , super . toString ( ) , getSyncType ( ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { glusterHostUUID = org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getBroker ( ) . glusterHostUUIDGet ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.proceedProxyReturnValue ( ) ; if ( org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { setReturnValue ( glusterHostUUID.mUuid ) ; } }

Target:
protected void executeVdsBrokerCommand ( ) { glusterHostUUID = org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getBroker ( ) . glusterHostUUIDGet ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.proceedProxyReturnValue ( ) ; if ( org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { setReturnValue ( glusterHostUUID.mUuid ) ; } }
Source:
public void testValidModifiedBondsFailsWhenBondIsNullOrUnnamed ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; doTestValidModifiedBonds ( bond , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID , VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST , false , false ) ; }

Target:
public void testValidModifiedBondsFailsWhenBondIsUnnamed ( ) throws java.lang.Exception { doTestValidModifiedBonds ( new org.ovirt.engine.core.common.businessentities.network.Bond ( ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.diskMainTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabDiskPresenter.constants.diskMainTabLabel ( ) , 5 , modelProvider ) ; }
Source:
public int getNiceLevel ( ) { return this . vmStatic.getnice_level ( ) ; }

Target:
public long getDbGeneration ( ) { return vmStatic.getDbGeneration ( ) ; }
Source:
public void setup ( ) { validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.UpdateNetworkValidator ( network ) ) ; }

Target:
public void setup ( ) { mockConfigRule.mockConfigValue ( ConfigValues.ChangeNetworkUnderBridgeInUseSupported , Version.v3_5 , false ) ; mockConfigRule.mockConfigValue ( ConfigValues.ChangeNetworkUnderBridgeInUseSupported , Version.v3_6 , true ) ; validator = new org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.UpdateNetworkValidator ( network , vmNetworkInterfaceDao , vdsGroupDao , vmDao ) ; }
Source:
public static java.lang.Integer getMaxMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version clusterVersion ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getMaximumRam ( osId , clusterVersion ) ; }

Target:
public static boolean isDiskInterfaceSupportedByOs ( int osId , org.ovirt.engine.core.compat.Version clusterVersion , org.ovirt.engine.core.common.businessentities.DiskInterface diskInterface ) { java.util.List < java.lang.String > diskInterfaces = org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getDiskInterfaces ( osId , clusterVersion ) ; return diskInterfaces.contains ( diskInterface.name ( ) ) ; }
Source:
public void setGuestLastLoginTime ( java.util.Date value ) { this . vmDynamic.setGuestLastLoginTime ( value ) ; }

Target:
public java.lang.String getEmulatedMachine ( ) { return this . vmDynamic.getEmulatedMachine ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getOvaInfo ( java.lang.String ovaPath ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getExternalVmFromOva ( java.lang.String ovaPath ) ;
Source:
public void networkCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; updateActionAvailability ( ) ; }

Target:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; updateActionAvailability ( ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ) ; }

Target:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ) ; }
Source:
public static org.ovirt.engine.ui.uicompat.Task Create ( org.ovirt.engine.ui.uicompat.ITaskTarget target , java.lang.Object state ) { return new org.ovirt.engine.ui.uicompat.Task ( target , state ) ; }

Target:
public static org.ovirt.engine.ui.uicompat.Task create ( org.ovirt.engine.ui.uicompat.ITaskTarget target , java.lang.Object state ) { return new org.ovirt.engine.ui.uicompat.Task ( target , state ) ; }
Source:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getExtensionByName ( java.lang.String name ) throws org.ovirt.engine.core.extensions.mgr.ConfigurationException { org.ovirt.engine.core.extensions.mgr.ExtensionsManager.ExtensionEntry entry = loadedEntries.get ( name ) ; org.ovirt.engine.core.extensions.mgr.ExtensionProxy result = null ; if ( ( entry != null ) && ( entry.activated ) ) { result = entry.extension ; } return result ; }

Target:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getExtensionByName ( java.lang.String name ) throws org.ovirt.engine.core.extensions.mgr.ConfigurationException { org.ovirt.engine.core.extensions.mgr.ExtensionsManager.ExtensionEntry entry = initializedEntries.get ( name ) ; if ( entry == null ) { throw new org.ovirt.engine.core.extensions.mgr.ConfigurationException ( java.lang.String.format ( "Extension %1$s could not be found" , name ) ) ; } return entry.extension ; }
Source:
public java.util.List < java.lang.String > getStorageConnectionIdsByIscsiBondId ( org.ovirt.engine.core.compat.Guid iscsiBondId ) { return getCallsHandler ( ) . executeReadList ( "GetConnectionsByIscsiBondId" , getStringMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "iscsi_bond_id" , iscsiBondId ) ) ; }

Target:
public java.util.List < java.lang.String > getStorageConnectionIdsByIscsiBondId ( org.ovirt.engine.core.compat.Guid iscsiBondId ) { return getCallsHandler ( ) . executeReadList ( "GetConnectionsByIscsiBondId" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.String.class ) , getCustomMapSqlParameterSource ( ) . addValue ( "iscsi_bond_id" , iscsiBondId ) ) ; }
Source:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { macs.forEach ( macPool :: freeMac ) ; }

Target:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { log.debug ( "Non-tx, non-compensation state, immediately releasing macs {}." , macs ) ; macPool.freeMacs ( macs ) ; }
Source:
public void testIsUpInvalid ( ) { storagePool.setStatus ( StoragePoolStatus.NonResponsive ) ; org.junit.Assert.assertThat ( validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ) ; }

Target:
public void testExistAndUpInvalid ( ) { storagePool.setStatus ( StoragePoolStatus.NonResponsive ) ; org.junit.Assert.assertThat ( validator.existsAndUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ) ; }
Source:
private static java.lang.String generateEncodingJsonEntry ( int encoding ) { return org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandler.getInstance ( ) . generateJsonField ( "Enc" , java.lang.String.valueOf ( encoding ) ) ; }

Target:
private java.lang.String generateEncodingJsonEntry ( int encoding ) { return metadataDiskDescriptionHandler.generateJsonField ( "Enc" , java.lang.String.valueOf ( encoding ) ) ; }
Source:
protected void updateTagInBackend ( org.ovirt.engine.core.common.businessentities.Tags tag ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.UpdateTag , new org.ovirt.engine.core.common.action.TagsOperationParameters ( tag ) ) ; }

Target:
protected void updateTagInBackend ( org.ovirt.engine.core.common.businessentities.Tags tag ) { backend.runInternalAction ( VdcActionType.UpdateTag , new org.ovirt.engine.core.common.action.TagsOperationParameters ( tag ) ) ; }
Source:
public java.lang.String getparameters ( ) { switch ( getvm_pool_type ( ) ) { case TimeLease : { return org.ovirt.engine.core.compat.StringFormat.format ( "%1$s,%2$s:%3$s,%4$s:%5$s" , defaultTimeInDays , defaultStartTime.Hours , defaultStartTime.Minutes , defaultEndTime.Hours , defaultEndTime.Minutes ) ; } default : { return parameters ; } } }

Target:
public java.lang.String getParameters ( ) { switch ( getVmPoolType ( ) ) { case TimeLease : { return org.ovirt.engine.core.compat.StringFormat.format ( "%1$s,%2$s:%3$s,%4$s:%5$s" , defaultTimeInDays , defaultStartTime.Hours , defaultStartTime.Minutes , defaultEndTime.Hours , defaultEndTime.Minutes ) ; } default : { return parameters ; } } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageServerConnectionLunMapDao ( ) ; existingLUNStorageMap = dao.get ( new org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMapId ( "1IET_00180001" , FixturesTool.STORAGE_CONNECTION_ID ) ) ; newLUNStorageMap = new org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap ( org.ovirt.engine.core.dao.StorageServerConnectionLunMapDaoTest.FREE_LUN_ID , FixturesTool.STORAGE_CONNECTION_ID ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageServerConnectionLunMapDao ( ) ; existingLUNStorageMap = dao.get ( new org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMapId ( FixturesTool.LUN_ID1 , FixturesTool.STORAGE_CONNECTION_ID ) ) ; newLUNStorageMap = new org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap ( org.ovirt.engine.core.dao.StorageServerConnectionLunMapDaoTest.FREE_LUN_ID , FixturesTool.STORAGE_CONNECTION_ID ) ; }
Source:
public void setbookmark_name ( java.lang.String name ) { this . name = name ; }

Target:
public void setName ( java.lang.String name ) { this . name = name ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getTreeForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.VdcObjectType type , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered , int appMode ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getTreeForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.VdcObjectType type , long engineSessionSeqId , boolean isFiltered , int appMode ) ;
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { super . verifyModel ( model , index ) ; org.junit.Assert.assertTrue ( model.isMutable ( ) ) ; org.junit.Assert.assertTrue ( model.isAdministrative ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { super . verifyModel ( model , index ) ; org.junit.jupiter.api.Assertions.assertTrue ( model.isMutable ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( model.isAdministrative ( ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > ( ) ; }

Target:
public void getGlusterSwiftServerServices ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > > aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterServerServicesByClusterId , new org.ovirt.engine.core.common.queries.gluster.GlusterServiceQueryParameters ( clusterId , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.GLUSTER_SWIFT ) , aQuery ) ; }
Source:
protected void executeQueryCommand ( ) { try { log.info ( "Running Command: RegisterVds" ) ; ExecuteRegisterVdsCommand ( ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::ExecuteWithoutTransaction: An exception has been thrown." , ex ) ; } finally { writeToAuditLog ( ) ; } }

Target:
protected void executeQueryCommand ( ) { try { log.info ( "Running Command: RegisterVds" ) ; executeRegisterVdsCommand ( ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::ExecuteWithoutTransaction: An exception has been thrown." , ex ) ; } finally { writeToAuditLog ( ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.VM createVmStatusDown ( org.ovirt.engine.core.common.businessentities.VM ... otherPluggedVMs ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStatus ( VMStatus.Down ) ; vm.setGuestOs ( "rhel6" ) ; vm.setId ( vmId ) ; vm.setVdsGroupCompatibilityVersion ( Version.v3_1 ) ; return vm ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM createVm ( org.ovirt.engine.core.common.businessentities.VMStatus status ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStatus ( status ) ; vm.setGuestOs ( "rhel6" ) ; vm.setId ( vmId ) ; vm.setVdsGroupCompatibilityVersion ( Version.v3_1 ) ; return vm ; }
Source:
private boolean connectStorage ( ) { return getStorageHelper ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) ) . connectStorageToDomainByVdsId ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) , org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getVds ( ) . getId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.errors.VdcFault > connectStorage ( ) { return getStorageHelper ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) ) . connectStorageToDomainByVdsIdDetails ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) , org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getVds ( ) . getId ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.qos.QosDao < org.ovirt.engine.core.common.businessentities.qos.StorageQos > getQosDao ( ) { return getDbFacade ( ) . getStorageQosDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.qos.QosDao < org.ovirt.engine.core.common.businessentities.qos.StorageQos > getQosDao ( ) { return dbFacade.getStorageQosDao ( ) ; }
Source:
private void mockVdcCommand ( org.ovirt.engine.core.common.action.VdcActionType vdcActionType , org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { org.mockito.Mockito.doReturn ( returnValue ) . when ( backend ) . runInternalAction ( org.mockito.Matchers.eq ( vdcActionType ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.action.VdcActionParametersBase.class ) ) ; }

Target:
private void mockVdcCommand ( org.ovirt.engine.core.common.action.VdcActionType vdcActionType , org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { org.mockito.Mockito.doReturn ( returnValue ) . when ( backend ) . runInternalAction ( org.mockito.ArgumentMatchers.eq ( vdcActionType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.VdcActionParametersBase.class ) ) ; }
Source:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmsModel model ) { super . init ( model ) ; }

Target:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmsModel model ) { super . init ( model ) ; addDataCenterListener ( ) ; addImportSourceListener ( ) ; updateExportDomainLoadButtonEnabledState ( ) ; }
Source:
public void compensate ( ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( enclosingCommand.getParameters ( ) . getImageId ( ) , ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( enclosingCommand.getParameters ( ) . getDestinationImageId ( ) , ImageStatus.OK ) ; }

Target:
public void compensate ( ) { for ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters : enclosingCommand.getParameters ( ) . getParametersList ( ) ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( parameters.getImageId ( ) , ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( parameters.getDestinationImageId ( ) , ImageStatus.OK ) ; } }
Source:
protected boolean isValidTemplate ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) . equals ( org.ovirt.engine.core.bll.AddVmCommand.getStoragePoolId ( ) ) ; }

Target:
protected boolean isTemplateInValidDc ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) . equals ( org.ovirt.engine.core.bll.AddVmCommand.getStoragePoolId ( ) ) ; }
Source:
protected boolean hasIommu ( org.ovirt.engine.core.common.businessentities.HostDevice hostDevice ) { return ( org.ovirt.engine.core.bll.hostdev.AbstractVmHostDevicesCommand.CAPABILITY_PCI.equals ( hostDevice.getCapability ( ) ) ) && ( ( hostDevice.getIommuGroup ( ) ) != null ) ; }

Target:
protected boolean hasIommu ( org.ovirt.engine.core.common.businessentities.HostDevice hostDevice ) { return ( hostDevice.isPci ( ) ) && ( ( hostDevice.getIommuGroup ( ) ) != null ) ; }
Source:
public org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) { if ( isVdsFailedToRunVm ( vds.getId ( ) ) ) { sb.append ( "have failed running this VM in the current selection cycle" ) ; return org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_CLUSTER ; } return null ; }

Target:
public org.ovirt.engine.core.common.errors.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) { if ( isVdsFailedToRunVm ( vds.getId ( ) ) ) { sb.append ( "have failed running this VM in the current selection cycle" ) ; return org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_CLUSTER ; } return null ; }
Source:
protected java.lang.String getBarPanelStyleName ( ) { return org.ovirt.engine.ui.userportal.widget.table.column.UserPortalSimpleActionTable.style.mainBarPanel ( ) ; }

Target:
protected java.lang.String getBarPanelStyleName ( ) { return org.ovirt.engine.ui.userportal.widget.table.column.UserPortalSimpleActionTable.style.obrand_mainBarPanel ( ) ; }
Source:
protected abstract javax.ws.rs.core.Response performRemove ( java.lang.String id ) ;

Target:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public static org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > makeLockingPair ( org.ovirt.engine.core.common.locks.LockingGroup group , org.ovirt.engine.core.dal.VdcBllMessages message ) { return org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( group , message.name ( ) ) ; }

Target:
public static org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > makeLockingPair ( org.ovirt.engine.core.common.locks.LockingGroup group , org.ovirt.engine.core.common.errors.VdcBllMessages message ) { return org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( group , message.name ( ) ) ; }
Source:
public java.lang.String getTagIdAndChildrenIds ( java.lang.String tagName ) { org.ovirt.engine.core.common.businessentities.Tags tag = getTagByName ( tagName ) ; java.lang.StringBuilder sb = tag.getTagIdAndChildrenIds ( ) ; return sb.toString ( ) ; }

Target:
public java.lang.String getTagIdAndChildrenIds ( java.lang.String tagName ) { org.ovirt.engine.core.common.businessentities.Tags tag = getTagByTagName ( tagName ) ; java.lang.StringBuilder sb = tag.getTagIdAndChildrenIds ( ) ; return sb.toString ( ) ; }
Source:
private void addTemplates ( java.util.List < org.ovirt.engine.core.compat.Guid > templatesGuids , int diskCount , org.ovirt.engine.core.common.businessentities.VmTemplateStatus templateStatus , org.ovirt.engine.core.common.businessentities.ImageStatus templateImageStatus , org.ovirt.engine.core.compat.Guid poolId ) { templates.putAll ( generateVmTemplatesMapByGuids ( templatesGuids , diskCount , templateStatus , templateImageStatus , poolId ) ) ; }

Target:
private void addTemplates ( java.util.List < org.ovirt.engine.core.compat.Guid > templatesGuids , int diskCount , org.ovirt.engine.core.common.businessentities.VmTemplateStatus templateStatus , org.ovirt.engine.core.common.businessentities.storage.ImageStatus templateImageStatus , org.ovirt.engine.core.compat.Guid poolId ) { templates.putAll ( generateVmTemplatesMapByGuids ( templatesGuids , diskCount , templateStatus , templateImageStatus , poolId ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult linkedCorrectly ( ) { return ( ! ( org.ovirt.engine.core.bll.validator.FeatureSupported.networkLinking ( version ) ) ) && ( ! ( nic.isLinked ( ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult linkedCorrectly ( ) { return ( ! ( org.ovirt.engine.core.common.FeatureSupported.networkLinking ( version ) ) ) && ( ! ( nic.isLinked ( ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public java.lang.String getConstantStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return name.words ( ) . map ( java.lang.String :: toUpperCase ) . collect ( java.util.stream.Collectors.joining ( "_" ) ) ; }

Target:
public java.lang.String getConstantStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return avoidReservedWord ( names.getUpperJoined ( name , "_" ) ) ; }
Source:
public static void checkSucceeded ( org.ovirt.engine.core.bll.CommandBase < ? > cmd , boolean expected ) { org.junit.Assert.assertEquals ( expected , cmd.getReturnValue ( ) . getSucceeded ( ) ) ; }

Target:
public static void checkSucceeded ( org.ovirt.engine.core.bll.CommandBase < ? > cmd , boolean expected ) { org.junit.jupiter.api.Assertions.assertEquals ( expected , cmd.getReturnValue ( ) . getSucceeded ( ) ) ; }
Source:
protected boolean isBalloonEnabled ( org.ovirt.engine.core.compat.Guid vmId ) { return getVmDeviceUtils ( ) . hasMemoryBalloon ( vmId ) ; }

Target:
protected boolean isSoundDeviceEnabled ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVmDeviceUtils ( ) . hasSoundDevice ( vmId ) ; }
Source:
public void testGetLunsThatBreakDiscardAfterDeleteSupportDiscardAfterDeleteDoesntBreak ( ) { storageDomain.setDiscardAfterDelete ( true ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) ) , java.util.Collections.emptyList ( ) ) ; }

Target:
public void testGetLunsThatBreakPassDiscardFunctionalityDiscardFunctionalityDoesntBreak ( ) { createVmDiskOnSd ( false , false ) ; createVmDiskOnSd ( false , true ) ; assertGetLunsThatBreakPassDiscardFunctionalityContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , java.util.Collections.emptyList ( ) ) ; }
Source:
public void testGetEntityPermissions ( ) { org.junit.Assert.assertNotNull ( dbFacade.getEntityPermissions ( org.ovirt.engine.core.dao.DbFacadeDAOTest.USER_ID_WITH_BASIC_PERMISSIONS , ActionGroup.VM_BASIC_OPERATIONS , org.ovirt.engine.core.dao.DbFacadeDAOTest.VMT_ID , VdcObjectType.VM ) ) ; org.junit.Assert.assertNull ( dbFacade.getEntityPermissions ( org.ovirt.engine.core.dao.DbFacadeDAOTest.USER_ID_WITH_BASIC_PERMISSIONS , ActionGroup.CREATE_TEMPLATE , org.ovirt.engine.core.dao.DbFacadeDAOTest.VMT_ID , VdcObjectType.VM ) ) ; }

Target:
public void testGetEntityPermissions ( ) { org.junit.Assert.assertNotNull ( dbFacade.getEntityPermissions ( org.ovirt.engine.core.dao.DbFacadeDAOTest.DIRECTORY_ELEMENT_ID_WITH_BASIC_PERMISSIONS , ActionGroup.VM_BASIC_OPERATIONS , org.ovirt.engine.core.dao.DbFacadeDAOTest.VMT_ID , VdcObjectType.VM ) ) ; org.junit.Assert.assertNull ( dbFacade.getEntityPermissions ( org.ovirt.engine.core.dao.DbFacadeDAOTest.DIRECTORY_ELEMENT_ID_WITH_BASIC_PERMISSIONS , ActionGroup.CREATE_TEMPLATE , org.ovirt.engine.core.dao.DbFacadeDAOTest.VMT_ID , VdcObjectType.VM ) ) ; }
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 ) { updateCloudInitVisibility ( object ) ; }

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 ) { updateCloudInitVisibility ( object ) ; updateInitialRunTabVisibility ( object ) ; }
Source:
public java.lang.String getJavaConstantStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return name.words ( ) . map ( java.lang.String :: toUpperCase ) . collect ( java.util.stream.Collectors.joining ( "_" ) ) ; }

Target:
java.lang.String getJavaClassStyleName ( org.ovirt.api.metamodel.concepts.Name name ) ;
Source:
public final void setUser ( java.lang.String sessionId , org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }

Target:
public final void setUser ( java.lang.String sessionId , org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.USER_PARAMETER_NAME , user ) ; persistEngineSession ( sessionId ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3Network network ) { return adaptAdd ( delegate :: add , network ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3Network network ) { return adaptAdd ( getDelegate ( ) :: add , network ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( ( "Server: RunPublicQuery invoked! " + queryType ) ) ; debugQuery ( queryType , params ) ; return getBackend ( ) . RunPublicQuery ( queryType , params ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( ( "Server: runPublicQuery invoked! " + queryType ) ) ; debugQuery ( queryType , params ) ; return getBackend ( ) . runPublicQuery ( queryType , params ) ; }
Source:
public void prepareMocks ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . findConnectionWithSameDetails ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class ) ) ; }

Target:
public void prepareMocks ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . findConnectionWithSameDetails ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class ) ) ; }
Source:
private void vmBalloonDriverIsNotRequestedOrAvailable ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.vdsbroker.VmsMonitoring.vmsWithBalloonDriverProblem.remove ( vmId ) ; }

Target:
protected void addVmInterfaceStatisticsToList ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > list ) { if ( list.isEmpty ( ) ) { return ; } vmInterfaceStatisticsToSave.add ( list ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllRunningVdssInPool ( ) { return getVdsDAO ( ) . getAllForStoragePoolAndStatus ( getStoragePool ( ) . getId ( ) , VDSStatus.Up ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllRunningVdssInPool ( ) { return getVdsDao ( ) . getAllForStoragePoolAndStatus ( getStoragePool ( ) . getId ( ) , VDSStatus.Up ) ; }
Source:
public void getIdByTypeReturnsNullForNonExistingType ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( null , dao.getId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.PREVIEW ) ) ; }

Target:
public void getIdByTypeReturnsNullForNonExistingType ( ) throws java.lang.Exception { org.junit.Assert.assertNull ( dao.getId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.PREVIEW ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Erratum getErratumForHost ( org.ovirt.engine.core.common.businessentities.VdsStatic host , java.lang.String erratumId ) { org.ovirt.engine.core.bll.host.provider.foreman.ContentHost contentHost = findContentHost ( host ) ; if ( contentHost == null ) { return null ; } return runErratumMethod ( java.lang.String.format ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.CONTENT_HOST_ERRATUM_ENTRY_POINT , contentHost.getId ( ) , erratumId ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Erratum getErratumForHost ( java.lang.String hostName , java.lang.String erratumId ) { org.ovirt.engine.core.bll.host.provider.foreman.ContentHost contentHost = findContentHost ( hostName ) ; if ( contentHost == null ) { return null ; } return runErratumMethod ( java.lang.String.format ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.CONTENT_HOST_ERRATUM_ENTRY_POINT , contentHost.getId ( ) , erratumId ) ) ; }
Source:
java.lang.String getCurrentSessionId ( ) { return clientStorage.getLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY ) ; }

Target:
java.lang.String getSessionId ( ) { return clientStorage.getLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; if ( ev.matchesDefinition ( TagModel.SelectionChangedEventDefinition ) ) { OnTagSelectionChanged ( sender , args ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; if ( ev.matchesDefinition ( TagModel.SelectionChangedEventDefinition ) ) { onTagSelectionChanged ( sender , args ) ; } }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "storagePoolId = %s, poolVersion = %s" , getStoragePoolId ( ) , getCompatibilityVersion ( ) ) ; }

Target:
public java.lang.String getCompatibilityVersion ( ) { return compatibilityVersion ; }
Source:
public void vmNotDuringSnapshotReturnsValidForNoSnapshotInProgress ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid vmId = new org.ovirt.engine.core.compat.Guid ( ) ; org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( false ) ; validateValidResult ( validator.vmNotDuringSnapshot ( vmId ) ) ; }

Target:
public void vmNotDuringSnapshotReturnsValidForNoSnapshotInProgress ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid vmId = new org.ovirt.engine.core.compat.Guid ( ) ; org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( false ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateValidResult ( validator.vmNotDuringSnapshot ( vmId ) ) ; }
Source:
public boolean getLiveMergeSupport ( ) { return vdsDynamic.getLiveMergeSupport ( ) ; }

Target:
public boolean isOvirNode ( ) { return ( getVdsType ( ) ) == ( VDSType.oVirtNode ) ; }
Source:
private void AttachFloppy_EntityChanged ( ) { getFloppyImage ( ) . setIsChangable ( ( ( java.lang.Boolean ) ( getAttachFloppy ( ) . getEntity ( ) ) ) ) ; UpdateIsSysprepEnabled ( ) ; }

Target:
private void attachFloppy_EntityChanged ( ) { getFloppyImage ( ) . setIsChangable ( ( ( java.lang.Boolean ) ( getAttachFloppy ( ) . getEntity ( ) ) ) ) ; updateInitialRunFields ( ) ; }
Source:
public void cluster_SelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; }
Source:
public void testValidateImageNotInTemplateTrue ( ) { org.mockito.Mockito.when ( vmTemplateDAO.get ( mockSourceImage ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( "validation should succeed" , cmd.validateImageNotInTemplate ( ) ) ; }

Target:
public void testValidateImageNotInTemplateFalse ( ) { org.mockito.Mockito.when ( vmTemplateDAO.get ( mockSourceImageAndGetId ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ) ; org.junit.Assert.assertFalse ( "validation should succeed" , cmd.validateImageNotInTemplate ( ) ) ; }
Source:
private void UpdateOverCommitPercent ( ) { setstorage_domain_over_commit_percent ( ( ( ( getavailable_disk_size ( ) ) != null ) && ( ( getavailable_disk_size ( ) ) > 0 ) ? ( ( getcommitted_disk_size ( ) ) * 100 ) / ( getavailable_disk_size ( ) ) : 0 ) ) ; }

Target:
private void updateOverCommitPercent ( ) { setStorageDomainOverCommitPercent ( ( ( ( getAvailableDiskSize ( ) ) != null ) && ( ( getAvailableDiskSize ( ) ) > 0 ) ? ( ( getCommittedDiskSize ( ) ) * 100 ) / ( getAvailableDiskSize ( ) ) : 0 ) ) ; }
Source:
public boolean execute ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { sendRequest ( createRequest ( null ) , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; return true ; } else { return false ; } }

Target:
public boolean execute ( ) { if ( ( restApiSessionId ) != null ) { sendRequest ( createRequest ( ) , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; return true ; } else { return false ; } }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( ( ( p.getUsageCpuPercent ( ) ) + ( CalcSpmCpuConsumption ( p ) ) ) < highVdsCount ) && ( ( p.getUsageCpuPercent ( ) ) > lowUtilization ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( ( ( p.getUsageCpuPercent ( ) ) + ( calcSpmCpuConsumption ( p ) ) ) < highVdsCount ) && ( ( p.getUsageCpuPercent ( ) ) > lowUtilization ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMName ( java.lang.String vmName ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMId ( org.ovirt.engine.core.compat.Guid vmId ) ;
Source:
public void setAdditionalConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( additionalConsoleModel ) != value ) { additionalConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "AdditionalConsoleModel" ) ) ; } }

Target:
public void setDefaultConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( defaultConsoleModel ) != value ) { defaultConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "DefaultConsoleModel" ) ) ; } }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return getDbFacade ( ) . getVmDao ( ) . getAllForDiskProfiles ( java.util.Collections.singletonList ( getProfile ( ) . getId ( ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return vmDao.getAllForDiskProfiles ( java.util.Collections.singletonList ( getProfile ( ) . getId ( ) ) ) ; }
Source:
public void testValidateCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.RemoveQuotaCommand removeQuotaCommand = createCommand ( ) ; org.junit.Assert.assertTrue ( removeQuotaCommand.validate ( ) ) ; }

Target:
public void testExecuteCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.RemoveQuotaCommand removeQuotaCommand = createCommand ( generalGuidQuota ) ; removeQuotaCommand.executeCommand ( ) ; org.junit.Assert.assertTrue ( removeQuotaCommand.getSucceeded ( ) ) ; }
Source:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.HotPlugEnabled , org.ovirt.engine.core.bll.VmCommand.getVds ( ) . getvds_group_compatibility_version ( ) . getValue ( ) ) ) { return true ; } addCanDoActionMessage ( VdcBllMessages.HOT_PLUG_IS_NOT_SUPPORTED ) ; return false ; }

Target:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.HotPlugEnabled , org.ovirt.engine.core.bll.VmCommand.getVds ( ) . getVdsGroupCompatibilityVersion ( ) . getValue ( ) ) ) { return true ; } addCanDoActionMessage ( VdcBllMessages.HOT_PLUG_IS_NOT_SUPPORTED ) ; return false ; }
Source:
private void Alert ( org.ovirt.engine.core.common.AuditLogType logType ) { Alert ( logType , null ) ; }

Target:
private void alert ( org.ovirt.engine.core.common.AuditLogType logType ) { alert ( logType , null ) ; }
Source:
private void handleTimeout ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response ) { response.setTryNextServer ( true ) . setTranslatedException ( new org.ovirt.engine.core.bll.adbroker.EngineDirectoryServiceException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.CONNECTION_TIMED_OUT , "Connection to to server has timed out." ) ) . setServerScore ( Score.LOW ) ; }

Target:
private void handleTimeout ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response ) { response.setTryNextServer ( true ) . setTranslatedException ( new org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.CONNECTION_TIMED_OUT , "Connection to to server has timed out." ) ) . setServerScore ( Score.LOW ) ; }
Source:
public void testRemoveServerHook ( ) { dao.removeGlusterServerHook ( FixturesTool.HOOK_ID , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.SERVER_ID ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverhook = dao.getGlusterServerHook ( FixturesTool.HOOK_ID , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.SERVER_ID ) ; org.junit.Assert.assertNull ( serverhook ) ; }

Target:
public void testRemoveServerHook ( ) { dao.removeGlusterServerHook ( FixturesTool.HOOK_ID , FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverhook = dao.getGlusterServerHook ( FixturesTool.HOOK_ID , FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.junit.Assert.assertNull ( serverhook ) ; }
Source:
public void setKvmEnable ( java.lang.Boolean value ) { this . vmDynamic.setkvm_enable ( value ) ; }

Target:
public void setAcpiEnable ( java.lang.Boolean value ) { this . vmDynamic.setAcpiEnable ( value ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getIsoStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid poolId ) { return getStorageDomainId ( poolId , StorageDomainType.ISO ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { return getStorageDomain ( poolId , type , null ) ; }
Source:
public boolean isTrue ( ) { return getModel ( ) . getEntity ( ) . supportsVirtService ( ) ; }

Target:
public boolean showDefaultValue ( ) { boolean supportsVirtService = ( ( getModel ( ) . getEntity ( ) ) != null ) && ( getModel ( ) . getEntity ( ) . supportsVirtService ( ) ) ; return ! supportsVirtService ; }
Source:
public void postOnSave ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { getWindow ( ) . stopProgress ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { cancel ( ) ; } }

Target:
public void postOnSave ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { getWindow ( ) . stopProgress ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { cancel ( ) ; } privateItemSavedEvent.raise ( this , EventArgs.Empty ) ; }
Source:
private void enableEditPoolFields ( ) { descriptionEditor.setEnabled ( true ) ; numOfDesktopsEditor.setEnabled ( true ) ; prestartedVmsEditor.setEnabled ( true ) ; }

Target:
private void enableEditPoolFields ( ) { descriptionEditor.setEnabled ( true ) ; numOfDesktopsEditor.setEnabled ( true ) ; prestartedVmsEditor.setEnabled ( true ) ; quotaEditor.setEnabled ( true ) ; }
Source:
public java.lang.Integer getdisplay_secure_port ( ) { return this . mVmDynamic.getdisplay_secure_port ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.BootSequence getBootSequence ( ) { return this . vmDynamic.getboot_sequence ( ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask construct ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo creationInfo ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskFactory.construct ( this , creationInfo ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask construct ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo creationInfo ) { return asyncTaskFactory.construct ( creationInfo ) ; }
Source:
protected void setUpGetEntityExpectations ( int times , org.ovirt.engine.core.common.businessentities.storage_domains entity ) throws java.lang.Exception { setUpGetEntityExpectations ( times , false , entity ) ; }

Target:
protected void setUpGetEntityExpectations ( int times , org.ovirt.engine.api.model.StorageDomain entity ) throws java.lang.Exception { setUpGetEntityExpectations ( times , false , entity ) ; }
Source:
protected abstract void onLogin ( T loginModel ) ;

Target:
protected void onLogin ( T loginModel ) { restApiSessionManager.recordLoggedInTime ( ) ; }
Source:
public void happyPath ( ) { org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void happyPath ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc validateStorageDomain ( java.lang.String sdUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc 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 void setaction_type ( org.ovirt.engine.core.common.action.VdcActionType value ) { this . actionType = value ; }

Target:
public void setActionType ( org.ovirt.engine.core.common.action.VdcActionType value ) { this . rootCmdEntity.setCommandType ( value ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Frontend: sucessfully executed logOff, determining result!" ) ; org.ovirt.engine.ui.frontend.Frontend.logger.finer ( ( ( "Result of logoff: succeeded? [" + ( result.getSucceeded ( ) ) ) + "]" ) ) ; callback.onSuccess ( result ) ; }

Target:
private static boolean isHandleSequentialQueries ( org.ovirt.engine.ui.frontend.Frontend.QueryWrapper queryWrapper ) { return ( ( queryWrapper.getQueryType ( ) ) == ( org.ovirt.engine.core.common.queries.VdcQueryType.Search ) ) && ( ( queryWrapper.getParameters ( ) ) instanceof org.ovirt.engine.core.common.queries.SearchParameters ) ; }
Source:
public void testDisksUsages ( ) { java.lang.Object [ ] disksUsages = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.initDisksUsageData ( ) ; java.util.Map < java.lang.String , java.lang.Object > map = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsageInXmlRpc ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVmStatistics ( ) , disksUsages , map ) ; }

Target:
public void testDisksUsages ( ) { java.lang.Object [ ] disksUsages = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.initDisksUsageData ( ) ; java.util.Map < java.lang.String , java.lang.Object > map = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsage ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVmStatistics ( ) , disksUsages , map ) ; }
Source:
public void testGetByNameForPrivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( existingVdsGroup.getName ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , false ) ; assertCorrectVDSGroup ( result ) ; }

Target:
public void testGetByNameForPrivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.getByName ( existingCluster.getName ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , false ) ; assertCorrectCluster ( result ) ; }
Source:
public void setListValue ( java.util.List < T > value ) { setValue ( value , true ) ; }

Target:
public void execute ( ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , selectedItems ( ) ) ; lastValues = null ; }