auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.core.bll.GetVmsRelatedToQuotaIdQuery.getDbFacade ( ) . getVmDao ( ) . getAllVmsRelatedToQuotaId ( org.ovirt.engine.core.bll.GetVmsRelatedToQuotaIdQuery.getParameters ( ) . getId ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.VM vm : vms ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateVmInitFromDB ( vm.getStaticData ( ) , true ) ; java.util.Collections.sort ( vm.getDiskList ( ) , new org.ovirt.engine.core.common.businessentities.comparators.DiskImageByDiskAliasComparator ( ) ) ; org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.fillImagesBySnapshots ( vm ) ; } org.ovirt.engine.core.bll.GetVmsRelatedToQuotaIdQuery.getQueryReturnValue ( ) . setReturnValue ( vms ) ; }

Target:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.core.bll.GetVmsRelatedToQuotaIdQuery.getDbFacade ( ) . getVmDao ( ) . getAllVmsRelatedToQuotaId ( org.ovirt.engine.core.bll.GetVmsRelatedToQuotaIdQuery.getParameters ( ) . getId ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.VM vm : vms ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateVmInitFromDB ( vm.getStaticData ( ) , true ) ; java.util.Collections.sort ( vm.getDiskList ( ) , new org.ovirt.engine.core.common.businessentities.comparators.DiskByDiskAliasComparator ( ) ) ; org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.fillImagesBySnapshots ( vm ) ; } org.ovirt.engine.core.bll.GetVmsRelatedToQuotaIdQuery.getQueryReturnValue ( ) . setReturnValue ( vms ) ; }
Source:
public static void addDiskImage ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskImage ( image , image.getActive ( ) , new org.ovirt.engine.core.common.businessentities.image_storage_domain_map ( image.getImageId ( ) , image.getStorageIds ( ) . get ( 0 ) , image.getQuotaId ( ) , image.getDiskProfileId ( ) ) , vmId ) ; }

Target:
public static void addDiskImage ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskImage ( image , image.getActive ( ) , new org.ovirt.engine.core.common.businessentities.storage.ImageStorageDomainMap ( image.getImageId ( ) , image.getStorageIds ( ) . get ( 0 ) , image.getQuotaId ( ) , image.getDiskProfileId ( ) ) , vmId ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateAttachmentNotReferenceVlanDevice ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = existingInterfacesMap.get ( attachment.getNicName ( ) ) ; org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.ATTACHMENT_REFERENCE_VLAN_DEVICE ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , attachment.getNetworkName ( ) ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator.VAR_NIC_NAME , attachment.getNicName ( ) ) ) . when ( ( ( nic != null ) && ( org.ovirt.engine.core.utils.NetworkUtils.isVlan ( nic ) ) ) ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateAttachmentNotReferenceVlanDevice ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = existingInterfacesMap.get ( attachment.getNicName ( ) ) ; org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.ATTACHMENT_REFERENCE_VLAN_DEVICE ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , attachment.getNetworkName ( ) ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator.VAR_NIC_NAME , attachment.getNicName ( ) ) ) . when ( ( ( nic != null ) && ( org.ovirt.engine.core.common.utils.NetworkCommonUtils.isVlan ( nic ) ) ) ) ; }
Source:
public void getNextAvailableDiskAliasNameByVMId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetNextAvailableDiskAliasNameByVMId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }

Target:
public void getVmsFromExternalServer ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String url , java.lang.String username , java.lang.String password , org.ovirt.engine.core.common.businessentities.OriginType originType ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( ) ; } return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmsFromExternalProvider , new org.ovirt.engine.core.common.queries.GetVmsFromExternalProviderQueryParameters ( url , username , password , originType , vdsId , dataCenterId ) , aQuery ) ; }
Source:
private void distributeDbDownEvent ( ) { if ( ( failedQueries ) == 0 ) { try { distributeEvents ( eventsManager.getAuditLogEvents ( true ) , getEventSubscribers ( true ) ) ; } catch ( java.lang.Exception e ) { org.ovirt.engine.core.notifier.NotificationService.log.error ( "Failed to dispatch query failure email message" , e ) ; } } int failedQueriesNotificationThreshold = prop.getInteger ( NotificationProperties.FAILED_QUERIES_NOTIFICATION_THRESHOLD ) ; if ( failedQueriesNotificationThreshold == 0 ) { failedQueriesNotificationThreshold = 1 ; } failedQueries = ( ( failedQueries ) + 1 ) % failedQueriesNotificationThreshold ; }

Target:
public boolean hasTransports ( ) { return ! ( transports.isEmpty ( ) ) ; }
Source:
public void updateMinAllocatedMemory ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.DataCenterWithCluster dataCenterWithCluster = getModel ( ) . getDataCenterWithClustersList ( ) . getSelectedItem ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup cluster = ( dataCenterWithCluster == null ) ? null : dataCenterWithCluster.getCluster ( ) ; if ( cluster == null ) { return ; } double overCommitFactor = 100.0 / ( cluster.getmax_vds_memory_over_commit ( ) ) ; getModel ( ) . getMinAllocatedMemory ( ) . setEntity ( ( ( int ) ( ( getModel ( ) . getMemSize ( ) . getEntity ( ) ) * overCommitFactor ) ) ) ; }

Target:
public void updateMinAllocatedMemory ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.DataCenterWithCluster dataCenterWithCluster = getModel ( ) . getDataCenterWithClustersList ( ) . getSelectedItem ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup cluster = ( dataCenterWithCluster == null ) ? null : dataCenterWithCluster.getCluster ( ) ; if ( cluster == null ) { return ; } double overCommitFactor = 100.0 / ( cluster.getMaxVdsMemoryOverCommit ( ) ) ; getModel ( ) . getMinAllocatedMemory ( ) . setEntity ( ( ( int ) ( ( getModel ( ) . getMemSize ( ) . getEntity ( ) ) * overCommitFactor ) ) ) ; }
Source:
public void testExistingPassDiscardFunctionalityIsPreservedAllLunsHaveDiscardFunctionality ( ) { setSdFullDiscardSupport ( ) ; storageDomainDisks.add ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , true ) ) , storageDomain ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedAllLunsHaveDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , storageDomain ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage_pool dc ) { switch ( dc.getstatus ( ) ) { case Contend : return getApplicationResources ( ) . waitImage ( ) ; case Maintanance : return getApplicationResources ( ) . maintenanceImage ( ) ; case NotOperational : case Problematic : case Uninitialized : return getApplicationResources ( ) . downImage ( ) ; case Up : return getApplicationResources ( ) . upImage ( ) ; default : break ; } return null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage_pool dc ) { setEnumTitle ( dc.getstatus ( ) ) ; switch ( dc.getstatus ( ) ) { case Contend : return getApplicationResources ( ) . waitImage ( ) ; case Maintanance : return getApplicationResources ( ) . maintenanceImage ( ) ; case NotOperational : case Problematic : case Uninitialized : return getApplicationResources ( ) . downImage ( ) ; case Up : return getApplicationResources ( ) . upImage ( ) ; default : break ; } return null ; }
Source:
private org.ovirt.engine.core.common.action.VdcActionParametersBase setReinitializeSysPrep ( org.ovirt.engine.core.common.action.RunVmOnceParams params ) { org.ovirt.engine.api.model.VM vm = getEntity ( org.ovirt.engine.api.model.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.GetVmByVmIdParameters ( guid ) , "VM" ) ; if ( ( vm.getVmOs ( ) . isWindows ( ) ) && ( vm.isFirstRun ( ) ) ) { params.setReinitialize ( true ) ; } return params ; }

Target:
private org.ovirt.engine.core.common.action.VdcActionParametersBase setReinitializeSysPrep ( org.ovirt.engine.core.common.action.RunVmOnceParams params ) { org.ovirt.engine.api.model.VM vm = getEntity ( org.ovirt.engine.api.model.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , "VM" ) ; if ( ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . isWindows ( vm.getVmOsId ( ) ) ) && ( vm.isFirstRun ( ) ) ) { params.setReinitialize ( true ) ; } return params ; }
Source:
public static boolean IsAnyStorageDomainIsMatserAndActive ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > sdl ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain a : sdl ) { if ( ( ( ( a.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ) && ( ( a.getstatus ( ) ) != null ) ) && ( ( a.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ) { return true ; } } return false ; }

Target:
public static boolean IsAnyStorageDomainIsMatserAndActive ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > sdl ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomain a : sdl ) { if ( ( ( ( a.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ) && ( ( a.getStatus ( ) ) != null ) ) && ( ( a.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ) { return true ; } } return false ; }
Source:
protected boolean validate ( ) { return org.ovirt.engine.core.bll.tasks.CommandHelper.canDoAction ( VdcActionType.AddDisk , getAddDiskParameters ( ) , org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getContext ( ) . clone ( ) . getExecutionContext ( ) , true ) . isValid ( ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = org.ovirt.engine.core.bll.tasks.CommandHelper.canDoAction ( VdcActionType.AddDisk , getAddDiskParameters ( ) , org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getContext ( ) . clone ( ) . getExecutionContext ( ) , true ) ; org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getReturnValue ( ) . setValidationMessages ( returnValue.getValidationMessages ( ) ) ; return returnValue.isValid ( ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.UpdateVm , new org.ovirt.engine.core.common.action.VmManagementParametersBase ( gettempVm ( ) ) , new org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback ( ) { @ java.lang.Override public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; cancel ( ) ; } } , this ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; cancel ( ) ; }
Source:
public void getGlusterHostsNewlyAdded ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , boolean isFingerprintRequired ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAddedGlusterServers , new org.ovirt.engine.core.common.queries.gluster.AddedGlusterServersParameters ( clusterId , isFingerprintRequired ) , aQuery ) ; }

Target:
public void getGlusterHostsNewlyAdded ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.Map < java.lang.String , java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid clusterId , boolean isFingerprintRequired ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAddedGlusterServers , new org.ovirt.engine.core.common.queries.gluster.AddedGlusterServersParameters ( clusterId , isFingerprintRequired ) , aQuery ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult isImagesExceededVolumesInImageChain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > allImageDisks = org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.filterImageDisks ( getDiskDao ( ) . getAllForVm ( vm.getId ( ) ) , false , true , false ) ; org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator diskImagesValidatorForChain = createDiskImageValidator ( allImageDisks ) ; return diskImagesValidatorForChain.diskImagesHaveNotExceededMaxNumberOfVolumesInImageChain ( ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult isImagesExceededVolumesInImageChain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > allImageDisks = org.ovirt.engine.core.bll.storage.disk.image.DisksFilter.filterImageDisks ( getDiskDao ( ) . getAllForVm ( vm.getId ( ) ) , org.ovirt.engine.core.bll.storage.disk.image.DisksFilter.ONLY_SNAPABLE ) ; org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator diskImagesValidatorForChain = createDiskImageValidator ( allImageDisks ) ; return diskImagesValidatorForChain.diskImagesHaveNotExceededMaxNumberOfVolumesInImageChain ( ) ; }
Source:
public void getRpmVersion ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; } } ; org.ovirt.engine.core.common.queries.GetConfigurationValueParameters tempVar = new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ProductRPMVersion ) ; tempVar.setVersion ( getDefaultConfigurationVersion ( ) ) ; getConfigFromCache ( tempVar , aQuery ) ; }

Target:
public void getGlusterVolumeGeoRepRecommendationViolations ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid masterVolumeId , org.ovirt.engine.core.compat.Guid slaveVolumeId ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return returnValue == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason > ( ) : ( ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason > ) ( returnValue ) ) ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetNonEligibilityReasonsOfVolumeForGeoRepSession , new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeGeoRepEligibilityParameters ( masterVolumeId , slaveVolumeId ) , aQuery ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity createDistVol ( java.lang.String volName , org.ovirt.engine.core.compat.Guid volId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity vol = createVolume ( volName , volId ) ; vol.addBrick ( createBrick ( volId , existingServer1 , org.ovirt.engine.core.bll.gluster.GlusterSyncJobTest.DIST_BRICK_D1 ) ) ; vol.addBrick ( createBrick ( volId , existingServer1 , org.ovirt.engine.core.bll.gluster.GlusterSyncJobTest.DIST_BRICK_D2 ) ) ; existingVolumes.add ( vol ) ; return vol ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity createDistVol ( java.lang.String volName , org.ovirt.engine.core.compat.Guid volId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity vol = createVolume ( volName , volId ) ; vol.getAdvancedDetails ( ) . setCapacityInfo ( getCapacityInfo ( volId ) ) ; vol.addBrick ( createBrick ( volId , existingServer1 , org.ovirt.engine.core.bll.gluster.GlusterSyncJobTest.DIST_BRICK_D1 ) ) ; vol.addBrick ( createBrick ( volId , existingServer1 , org.ovirt.engine.core.bll.gluster.GlusterSyncJobTest.DIST_BRICK_D2 ) ) ; existingVolumes.add ( vol ) ; return vol ; }
Source:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { if ( getParameters ( ) . isImportAsNewEntity ( ) ) { return addValidationGroup ( org.ovirt.engine.core.common.validation.group.ImportClonedEntity.class ) ; } return addValidationGroup ( org.ovirt.engine.core.common.validation.group.ImportEntity.class ) ; }

Target:
protected void endActionOnAllImageGroups ( ) { for ( org.ovirt.engine.core.common.action.VdcActionParametersBase p : getParameters ( ) . getImagesParameters ( ) ) { p.setTaskGroupSuccess ( getParameters ( ) . getTaskGroupSuccess ( ) ) ; org.ovirt.engine.core.bll.ImportVmCommand.getBackend ( ) . EndAction ( org.ovirt.engine.core.bll.ImportVmCommand.getImagesActionType ( ) , p ) ; } }
Source:
public void testParseSecureOptions ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( org.ovirt.engine.api.restapi.util.FenceOptionsParserTest.FENCE_OPTION , org.ovirt.engine.api.restapi.util.FenceOptionsParserTest.FENCE_OPTION_TYPES ) ; org.junit.Assert.assertNotNull ( ret ) ; org.junit.Assert.assertEquals ( 16 , ret.size ( ) ) ; verifyResult ( ret.get ( 1 ) , "apc_snmp" , "port" , "int" , "port" , "encrypt_options" , "bool" , "encrypt_options" ) ; }

Target:
public void testParseSecureOptions ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( org.ovirt.engine.api.restapi.util.FenceOptionsParserTest.FENCE_OPTION , org.ovirt.engine.api.restapi.util.FenceOptionsParserTest.FENCE_OPTION_TYPES ) ; org.junit.jupiter.api.Assertions.assertNotNull ( ret ) ; org.junit.jupiter.api.Assertions.assertEquals ( 16 , ret.size ( ) ) ; verifyResult ( ret.get ( 1 ) , "apc_snmp" , "port" , "int" , "port" , "encrypt_options" , "bool" , "encrypt_options" ) ; }
Source:
void addStyles ( ) { storageTypeListEditor.setLabelStyleName ( style.label ( ) ) ; storageTypeListEditor.addContentWidgetContainerStyleName ( style.storageContentWidget ( ) ) ; formatListEditor.setLabelStyleName ( style.label ( ) ) ; formatListEditor.addContentWidgetContainerStyleName ( style.formatContentWidget ( ) ) ; activateDomainEditor.addContentWidgetContainerStyleName ( style.activateDomainEditor ( ) ) ; advancedParametersExpanderContent.setStyleName ( style.advancedParametersExpanderContent ( ) ) ; warningLowSpaceIndicatorEditor.addContentWidgetStyleName ( style.storageTextBoxEditor ( ) ) ; criticalSpaceActionBlockerEditor.addContentWidgetStyleName ( style.storageTextBoxEditor ( ) ) ; }

Target:
void addStyles ( ) { storageTypeListEditor.setLabelStyleName ( style.label ( ) ) ; storageTypeListEditor.addContentWidgetContainerStyleName ( style.storageContentWidget ( ) ) ; formatListEditor.setLabelStyleName ( style.label ( ) ) ; formatListEditor.addContentWidgetContainerStyleName ( style.formatContentWidget ( ) ) ; activateDomainEditor.addContentWidgetContainerStyleName ( style.activateDomainEditor ( ) ) ; advancedParametersExpanderContent.setStyleName ( style.advancedParametersExpanderContent ( ) ) ; warningLowSpaceIndicatorEditor.addContentWidgetContainerStyleName ( style.warningTextBoxEditor ( ) ) ; criticalSpaceActionBlockerEditor.addContentWidgetStyleName ( style.blockerTextBoxEditor ( ) ) ; }
Source:
private void addOsTypes ( org.ovirt.engine.api.model.VersionCaps version , org.ovirt.engine.api.model.OsType [ ] types ) { version.setOsTypes ( new org.ovirt.engine.api.model.OsTypes ( ) ) ; for ( org.ovirt.engine.api.model.OsType type : types ) { version.getOsTypes ( ) . getOsTypes ( ) . add ( type.value ( ) ) ; } }

Target:
private void addConfigurationTypes ( org.ovirt.engine.api.model.VersionCaps version , org.ovirt.engine.api.model.ConfigurationType [ ] types ) { if ( org.ovirt.engine.api.restapi.utils.VersionUtils.greaterOrEqual ( version , org.ovirt.engine.api.restapi.resource.BackendCapabilitiesResource.VERSION_3_3 ) ) { version.setConfigurationTypes ( new org.ovirt.engine.api.model.ConfigurationTypes ( ) ) ; for ( org.ovirt.engine.api.model.ConfigurationType type : types ) { version.getConfigurationTypes ( ) . getConfigurationTypes ( ) . add ( type.value ( ) ) ; } } }
Source:
public static boolean vmDeviceChanged ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType deviceGeneralType , java.lang.String deviceTypeName , boolean deviceEnabled ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > vmDevices = ( deviceTypeName != null ) ? org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , deviceGeneralType , deviceTypeName ) : org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , deviceGeneralType ) ; return deviceEnabled == ( vmDevices.isEmpty ( ) ) ; }

Target:
public boolean vmDeviceChanged ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType deviceGeneralType , java.lang.String deviceTypeName , boolean deviceEnabled ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > vmDevices = ( deviceTypeName != null ) ? vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( vmId , deviceGeneralType , deviceTypeName ) : vmDeviceDao.getVmDeviceByVmIdAndType ( vmId , deviceGeneralType ) ; return deviceEnabled == ( vmDevices.isEmpty ( ) ) ; }
Source:
private java.util.List < java.lang.Integer > createRange ( int start , int end ) { if ( ( start >= 0 ) && ( start < end ) ) { java.util.List < java.lang.Integer > returnList = new java.util.LinkedList < > ( ) ; for ( int i = start ; i <= end ; i ++ ) { returnList.add ( i ) ; } return returnList ; } else { return null ; } }

Target:
protected boolean validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams , java.util.List < java.lang.String > reasons ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( getEffectiveCompatibilityVersion ( ) , vmStaticFromParams.getCustomProperties ( ) , reasons ) ; }
Source:
public void getLunsByVgId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String vgId , org.ovirt.engine.core.compat.Guid vdsId ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override 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.LUNs > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.LUNs > ( ) ; } } ; org.ovirt.engine.core.common.queries.GetLunsByVgIdParameters params = new org.ovirt.engine.core.common.queries.GetLunsByVgIdParameters ( vgId , vdsId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetLunsByVgId , params , aQuery ) ; }

Target:
public void getoVirtISOsList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ( ( java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ) ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetoVirtISOs , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( id ) , aQuery ) ; }
Source:
public void testQueryWithNonExistingHostId ( ) { org.ovirt.engine.core.common.queries.VdsIdParametersBase params = new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.ovirt.engine.core.bll.GetoVirtISOsQuery < org.ovirt.engine.core.common.queries.VdsIdParametersBase > query = new org.ovirt.engine.core.bll.GetoVirtISOsQuery < org.ovirt.engine.core.common.queries.VdsIdParametersBase > ( params ) ; query.setInternalExecution ( true ) ; query.ExecuteCommand ( ) ; checkSucceeded ( query , true ) ; checkReturnValue ( query ) ; }

Target:
public void testQueryWithoutHostId ( ) { getQuery ( ) . setInternalExecution ( true ) ; getQuery ( ) . ExecuteCommand ( ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkSucceeded ( getQuery ( ) , true ) ; org.ovirt.engine.core.bll.GetoVirtISOsTest.checkReturnValue ( getQuery ( ) ) ; }
Source:
public void testGetVmNumaNodeInfoByVdsGroupId ( ) { org.ovirt.engine.core.compat.Guid vdsGroupId = new org.ovirt.engine.core.compat.Guid ( "b399944a-81ab-4ec5-8266-e19ba7c3c9d1" ) ; java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmNumaNode > > result = vmNumaNodeDao.getVmNumaNodeInfoByVdsGroupId ( vdsGroupId ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testGetVmNumaNodeInfoByClusterId ( ) { org.ovirt.engine.core.compat.Guid clusterId = new org.ovirt.engine.core.compat.Guid ( "b399944a-81ab-4ec5-8266-e19ba7c3c9d1" ) ; java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmNumaNode > > result = vmNumaNodeDao.getVmNumaNodeInfoByClusterId ( clusterId ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; initTabAvailabilityListeners ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) { super . edit ( unitVmModel ) ; initTabAvailabilityListeners ( ) ; if ( unitVmModel.isVmAttachedToPool ( ) ) { specificHost.setEnabled ( false ) ; specificHostLabel.setStyleName ( style.labelDisabled ( ) , true ) ; customPropertiesSheetEditor.setEnabled ( false ) ; } }
Source:
public void testNetworkNotAttachedToHostWhenAttached ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid networkId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.mockito.Mockito.when ( vdsDaoMock.getAllForNetwork ( org.mockito.Matchers.eq ( networkId ) ) ) . thenReturn ( java.util.Collections.singletonList ( host ) ) ; org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setNetworkId ( networkId ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . networkNotAttachedToHost ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ALREADY_ATTACHED_TO_HOST ) ) ; }

Target:
public void testNetworkNotAttachedToHostWhenAttached ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid networkId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.mockito.Mockito.when ( vdsDaoMock.getAllForNetwork ( org.mockito.Matchers.eq ( networkId ) ) ) . thenReturn ( java.util.Collections.singletonList ( host ) ) ; org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setNetworkId ( networkId ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . networkNotAttachedToHost ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ALREADY_ATTACHED_TO_HOST ) ) ; }
Source:
public void saveNICsConfig ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.CommitNetworkChanges , new java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.VdcActionParametersBase [ ] { new org.ovirt.engine.core.common.action.VdsActionParameters ( getEntity ( ) . getId ( ) ) } ) ) , new org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback ( ) { @ java.lang.Override public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { } } , null ) ; }

Target:
public void setOnlineCores ( java.lang.String value ) { if ( ( ( onlineCores ) == null ) && ( value == null ) ) { return ; } if ( ( ( onlineCores ) == null ) || ( ! ( onlineCores.equals ( value ) ) ) ) { onlineCores = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "onlineCores" ) ) ; } }
Source:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : osRepository.isSoundDeviceEnabled ( org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . getVmStaticData ( ) . getOsId ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }

Target:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : osRepository.isSoundDeviceEnabled ( org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . getVmStaticData ( ) . getOsId ( ) , org.ovirt.engine.core.bll.AddVmCommand.getEffectiveCompatibilityVersion ( ) ) ; }
Source:
public java.util.concurrent.Future < java.lang.Void > close ( ) { for ( java.lang.String subscribtionId : subscriptionIds ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . unsubscribe ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_ID , subscribtionId ) . build ( ) ) ; } send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . disconnect ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_RECEIPT , java.util.UUID.randomUUID ( ) . toString ( ) ) . build ( ) ) ; return super . close ( ) ; }

Target:
public java.util.concurrent.Future < java.lang.Void > close ( ) { clean ( ) ; subscriptionIds.stream ( ) . forEach ( ( subscriptionId ) -> send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . unsubscribe ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_ID , subscriptionId ) . build ( ) ) ) ; send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . disconnect ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_RECEIPT , java.util.UUID.randomUUID ( ) . toString ( ) ) . build ( ) ) ; return super . close ( ) ; }
Source:
public static void fillImagesBySnapshots ( org.ovirt.engine.core.common.businessentities.VM vm ) { for ( org.ovirt.engine.core.common.businessentities.storage.Disk disk : vm.getDiskMap ( ) . values ( ) ) { if ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( disk ) ) ; diskImage.getSnapshots ( ) . addAll ( org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) ) ) ; } } }

Target:
public static void fillImagesBySnapshots ( org.ovirt.engine.core.common.businessentities.VM vm ) { for ( org.ovirt.engine.core.common.businessentities.storage.Disk disk : vm.getDiskMap ( ) . values ( ) ) { if ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( disk ) ) ; diskImage.getSnapshots ( ) . addAll ( org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) ) ) ; } } }
Source:
public void getNetworkList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllNetworks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) , aQuery ) ; }

Target:
public void getAllProvidersByType ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > > aQuery , org.ovirt.engine.core.common.businessentities.ProviderType providerType ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllProviders , new org.ovirt.engine.core.common.queries.GetAllProvidersParameters ( providerType ) , aQuery ) ; }
Source:
public static void getUpHostListByCluster ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String clusterName ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > list = org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.VDS > cast ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.IVdcQueryable > ) ( source ) ) ) ; return list ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; } } ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getUpHostListByCluster ( aQuery , clusterName , null ) ; }

Target:
public void getStorageDomainList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; } } ; org.ovirt.engine.core.common.queries.SearchParameters searchParams = new org.ovirt.engine.core.common.queries.SearchParameters ( "Storage:" , org.ovirt.engine.core.common.interfaces.SearchType.StorageDomain ) ; searchParams.setMaxCount ( 9999 ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , searchParams , aQuery ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ServerCpu getServerCpuByName ( java.lang.String cpuName ) { org.ovirt.engine.core.common.businessentities.ServerCpu result = null ; if ( cpuName != null ) { result = intelCpuByNameDictionary.get ( cpuName ) ; if ( result == null ) { result = amdCpuByNameDictionary.get ( cpuName ) ; } if ( result == null ) { result = ibmCpuByNameDictionary.get ( cpuName ) ; } } return result ; }

Target:
public org.ovirt.engine.core.common.businessentities.ServerCpu getServerCpuByName ( java.lang.String cpuName ) { org.ovirt.engine.core.common.businessentities.ServerCpu result = null ; if ( cpuName != null ) { result = intelCpuByNameDictionary.get ( cpuName ) ; if ( result == null ) { result = amdCpuByNameDictionary.get ( cpuName ) ; } if ( result == null ) { result = ibmCpuByNameDictionary.get ( cpuName ) ; } if ( result == null ) { result = s390CpuByNameDictionary.get ( cpuName ) ; } } return result ; }
Source:
private boolean isNewerVersion ( org.ovirt.engine.core.compat.Version isoClusterVersion ) { org.ovirt.engine.core.common.businessentities.VDS vds = getVdsByVdsId ( org.ovirt.engine.core.bll.GetoVirtISOsQuery.getParameters ( ) . getVdsId ( ) ) ; org.ovirt.engine.core.compat.Version vdsClusterVersion = vds.getvds_group_compatibility_version ( ) ; return ( ( vdsClusterVersion.getMajor ( ) ) == ( isoClusterVersion.getMajor ( ) ) ) && ( ( vdsClusterVersion.getMinor ( ) ) <= ( isoClusterVersion.getMinor ( ) ) ) ; }

Target:
private boolean isNewerVersion ( org.ovirt.engine.core.compat.Version isoClusterVersion ) { org.ovirt.engine.core.common.businessentities.VDS vds = getVdsByVdsId ( org.ovirt.engine.core.bll.GetoVirtISOsQuery.getParameters ( ) . getVdsId ( ) ) ; org.ovirt.engine.core.compat.Version vdsClusterVersion = vds.getVdsGroupCompatibilityVersion ( ) ; return ( ( vdsClusterVersion.getMajor ( ) ) == ( isoClusterVersion.getMajor ( ) ) ) && ( ( vdsClusterVersion.getMinor ( ) ) <= ( isoClusterVersion.getMinor ( ) ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( ( "%s, imageSizeInBytes = %s, volumeFormat = %s, srcImageGroupId = %s, srcImageId = %s," + " newImageGroupId = %s, newImageId = %s, description = %s" ) , super . toString ( ) , getImageSizeInBytes ( ) , getVolumeFormat ( ) , getSrcImageGroupId ( ) , getSrcImageId ( ) , getNewImageGroupId ( ) , getNewImageID ( ) , getDescription ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "imageSizeInBytes" , getImageSizeInBytes ( ) ) . append ( "volumeFormat" , getVolumeFormat ( ) ) . append ( "srcImageGroupId" , getSrcImageGroupId ( ) ) . append ( "srcImageId" , getSrcImageId ( ) ) . append ( "newImageGroupId" , getNewImageGroupId ( ) ) . append ( "newImageId" , getNewImageID ( ) ) . append ( "description" , getDescription ( ) ) ; }
Source:
public void getRpmVersion ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; } } ; org.ovirt.engine.core.common.queries.GetConfigurationValueParameters tempVar = new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ProductRPMVersion ) ; tempVar.setVersion ( getDefaultConfigurationVersion ( ) ) ; getConfigFromCache ( tempVar , aQuery ) ; }

Target:
public void getAncestorImagesByImagesIds ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.util.List < org.ovirt.engine.core.compat.Guid > imagesIds ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter < java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImage > > ( ) { @ java.lang.Override public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImage > Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImage > ) ( returnValue ) ) ; } } ; org.ovirt.engine.core.common.queries.IdsQueryParameters params = new org.ovirt.engine.core.common.queries.IdsQueryParameters ( imagesIds ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAncestorImagesByImagesIds , params , aQuery ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.webadmin.uicommon.FileFetchEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.webadmin.uicommon.FileFetchEventArgs args ) { if ( ev.matchesDefinition ( spiceVersionFileFetchedEvent_Definition ) ) { org.ovirt.engine.core.compat.Version spiceVersion = parseVersion ( args.getFileContent ( ) ) ; setSpiceVersion ( spiceVersion ) ; } else if ( ev.matchesDefinition ( documentationFileFetchedEvent_Definition ) ) { java.lang.String documentationPathFileContent = args.getFileContent ( ) ; org.ovirt.engine.ui.common.uicommon.DocumentationPathTranslator.init ( documentationPathFileContent ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.webadmin.uicommon.FileFetchEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.webadmin.uicommon.FileFetchEventArgs args ) { if ( ev.matchesDefinition ( spiceVersionFileFetchedEvent_Definition ) ) { org.ovirt.engine.core.compat.Version spiceVersion = parseVersion ( args.getFileContent ( ) ) ; setSpiceVersion ( spiceVersion ) ; } else if ( ev.matchesDefinition ( documentationFileFetchedEvent_Definition ) ) { java.lang.String cshMapping = args.getFileContent ( ) ; org.ovirt.engine.ui.common.uicommon.ContextSensitiveHelpManager.init ( cshMapping ) ; } }
Source:
private void insertServerService ( org.ovirt.engine.core.common.businessentities.VDS server , final org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService fetchedService ) { fetchedService.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; getGlusterServerServiceDao ( ) . save ( fetchedService ) ; org.ovirt.engine.core.bll.gluster.GlusterServiceSyncJob.log.infoFormat ( "Service {0} was not mapped to server {1}. Mapped it now." , fetchedService.getServiceName ( ) , server.getHostName ( ) ) ; logUtil.logAuditMessage ( server.getVdsGroupId ( ) , null , server , AuditLogType.GLUSTER_SERVICE_ADDED_TO_SERVER , new java.util.HashMap < java.lang.String , java.lang.String > ( ) { { put ( GlusterConstants.SERVICE_NAME , fetchedService.getServiceName ( ) ) ; } } ) ; }

Target:
private void insertServerService ( org.ovirt.engine.core.common.businessentities.VDS server , final org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService fetchedService ) { fetchedService.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; getGlusterServerServiceDao ( ) . save ( fetchedService ) ; org.ovirt.engine.core.bll.gluster.GlusterServiceSyncJob.log.info ( "Service '{}' was not mapped to server '{}'. Mapped it now." , fetchedService.getServiceName ( ) , server.getHostName ( ) ) ; logUtil.logAuditMessage ( server.getVdsGroupId ( ) , null , server , AuditLogType.GLUSTER_SERVICE_ADDED_TO_SERVER , new java.util.HashMap < java.lang.String , java.lang.String > ( ) { { put ( GlusterConstants.SERVICE_NAME , fetchedService.getServiceName ( ) ) ; } } ) ; }
Source:
public void qosOverCommitmentReportedNicSpeed ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosCommitmentNicSetup ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; validateAndExpectViolation ( helper , VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_OVERCOMMITMENT , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { final org.ovirt.engine.core.vdsbroker.EffectiveHostNetworkQos effectiveHostNetworkQos = new org.ovirt.engine.core.vdsbroker.EffectiveHostNetworkQos ( qosDao ) ; injectorRule.bind ( org.ovirt.engine.core.dao.network.NetworkDao.class , networkDao ) ; injectorRule.bind ( org.ovirt.engine.core.dao.network.NetworkAttachmentDao.class , networkAttachmentDao ) ; injectorRule.bind ( org.ovirt.engine.core.dao.network.InterfaceDao.class , interfaceDao ) ; injectorRule.bind ( org.ovirt.engine.core.dao.gluster.GlusterBrickDao.class , brickDao ) ; injectorRule.bind ( org.ovirt.engine.core.vdsbroker.EffectiveHostNetworkQos.class , effectiveHostNetworkQos ) ; injectorRule.bind ( org.ovirt.engine.core.vdsbroker.NetworkImplementationDetailsUtils.class , new org.ovirt.engine.core.vdsbroker.NetworkImplementationDetailsUtils ( effectiveHostNetworkQos , networkAttachmentDao , calculateBaseNic ) ) ; injectorRule.bind ( org.ovirt.engine.core.vdsbroker.CalculateBaseNic.class , calculateBaseNic ) ; }
Source:
private void InitOldParentTagName ( ) { if ( ( ( org.ovirt.engine.core.bll.MoveTagCommand.getTag ( ) ) != null ) && ( ( org.ovirt.engine.core.bll.MoveTagCommand.getTag ( ) . getparent_id ( ) ) != null ) ) { org.ovirt.engine.core.common.businessentities.tags parent = org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagById ( new org.ovirt.engine.core.compat.Guid ( org.ovirt.engine.core.bll.MoveTagCommand.getTag ( ) . getparent_id ( ) . toString ( ) ) ) ; if ( parent != null ) { _oldParnetTagName = parent.gettag_name ( ) ; } } }

Target:
private void InitOldParentTagName ( ) { if ( ( ( org.ovirt.engine.core.bll.MoveTagCommand.getTag ( ) ) != null ) && ( ( org.ovirt.engine.core.bll.MoveTagCommand.getTag ( ) . getparent_id ( ) ) != null ) ) { org.ovirt.engine.core.common.businessentities.Tags parent = org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagById ( new org.ovirt.engine.core.compat.Guid ( org.ovirt.engine.core.bll.MoveTagCommand.getTag ( ) . getparent_id ( ) . toString ( ) ) ) ; if ( parent != null ) { _oldParnetTagName = parent.gettag_name ( ) ; } } }