auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain getImageSourceDomain ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = getDiskImageByImageId ( imageId ) ; org.ovirt.engine.core.compat.Guid domainId = diskImage.getStorageIds ( ) . get ( 0 ) ; return getStorageDomainById ( domainId , org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.getStoragePoolId ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidator createDiskVmElementValidator ( org.ovirt.engine.core.compat.Guid diskId , org.ovirt.engine.core.compat.Guid vmId ) { return new org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidator ( diskDao.get ( diskId ) , diskVmElementDao.get ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( diskId , vmId ) ) ) ; }
Source:
protected boolean canDoAction ( ) { return ( ( super . canDoAction ( ) ) && ( VdsGroupExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return ( ( ( super . canDoAction ( ) ) && ( VdsGroupExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ; }
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 ) { updateWindowsWarningMessage ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StoragePool returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.AsyncCallback < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > ( ) { @ java.lang.Override public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { doInit ( ) ; } } , externalVms ) ; }
Source:
private boolean isOutAverageRealTimeInSync ( ) { return org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface.getOutAverageRealtime ( ifaceQos ) , org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface.getOutAverageRealtime ( hostNetworkQos ) ) ; }

Target:
private boolean isOutAverageRealTimeInSync ( ) { return java.util.Objects.equals ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface.getOutAverageRealtime ( ifaceQos ) , org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface.getOutAverageRealtime ( hostNetworkQos ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType , java.lang.String [ ] devicesList ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType , java.lang.String [ ] devicesList , boolean checkStatus ) ;
Source:
public void testCanDoActionOvfDiskNotIllegal ( ) { disk.setImageStatus ( ImageStatus.OK ) ; disk.setOvfStore ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_OVF_DISK_NOT_IN_APPLICABLE_STATUS ) ; }

Target:
public void testCanDoActionOvfDiskNotIllegal ( ) { disk.setImageStatus ( ImageStatus.OK ) ; disk.setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_OVF_DISK_NOT_IN_APPLICABLE_STATUS ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { ProxyUp ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { updateHosts ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { if ( ( snapshot.getType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.ACTIVE ) ) { return org.ovirt.engine.ui.common.widget.uicommon.snapshot.SnapshotsViewColumns.constants.currentSnapshotLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( snapshot.getCreationDate ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { if ( ( snapshot.getType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.ACTIVE ) ) { return org.ovirt.engine.ui.common.widget.uicommon.snapshot.SnapshotsViewColumns.constants.currentSnapshotLabel ( ) ; } return org.ovirt.engine.ui.common.widget.uicommon.snapshot.SnapshotsViewColumns.fullDateTimeRenderer.render ( snapshot.getCreationDate ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicompat.Enums getEnums ( ) { if ( ( org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.enums ) == null ) { org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.enums = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.uicompat.Enums.class ) ; } return org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.enums ; }

Target:
public org.ovirt.engine.ui.uicompat.LocalizedEnums getEnums ( ) { if ( ( org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.enums ) == null ) { org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.enums = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.uicompat.LocalizedEnums.class ) ; } return org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.enums ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , parameters , context ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalActionWithTasksContext ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runInternalActionWithTasksContext ( actionType , parameters , null ) ; }
Source:
public void setMemCommited ( java.lang.Integer value ) { this . mVdsDynamic.setMemCommited ( value ) ; calculateFreeVirtualMemory ( ) ; }

Target:
public void setMemCommited ( java.lang.Integer value ) { vdsDynamic.setMemCommited ( value ) ; calculateFreeVirtualMemory ( ) ; }
Source:
public org.ovirt.engine.core.bll.network.macpoolmanager.Range addRange ( long rangeStart , long rangeEnd ) { return addRange ( new org.ovirt.engine.core.bll.network.macpoolmanager.Range ( rangeStart , rangeEnd ) ) ; }

Target:
public org.ovirt.engine.core.bll.network.macpool.Range addRange ( long rangeStart , long rangeEnd ) { return addRange ( new org.ovirt.engine.core.bll.network.macpool.Range ( rangeStart , rangeEnd ) ) ; }
Source:
public void cluster_SelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; }
Source:
protected void Refresh ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . SyncSearch ( VdcQueryType.GetAllAuditLogsByVMTemplateName , new org.ovirt.engine.core.common.queries.GetAllAuditLogsByVMTemplateNameParameters ( getEntity ( ) . getname ( ) ) ) ; }

Target:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . SyncSearch ( VdcQueryType.GetAllAuditLogsByVMTemplateName , new org.ovirt.engine.core.common.queries.GetAllAuditLogsByVMTemplateNameParameters ( getEntity ( ) . getname ( ) ) ) ; }
Source:
public void update ( T entity ) { org.ovirt.engine.core.dao.DefaultGenericDaoDbFacade.getCallsHandler ( ) . executeModification ( getProcedureNameForUpdate ( ) , createFullParametersMapper ( entity ) ) ; }

Target:
protected void update ( T entity , java.lang.String procedureName ) { org.ovirt.engine.core.dao.DefaultGenericDaoDbFacade.getCallsHandler ( ) . executeModification ( procedureName , createFullParametersMapper ( entity ) ) ; }
Source:
public void updateModelBySnapshot ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { setDisks ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > ( snapshot.getDiskImages ( ) ) ) ; getMemory ( ) . setEntity ( snapshot.containsMemory ( ) ) ; }

Target:
private void setPartialPreviewSnapshotOptions ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel.PreivewPartialSnapshotOption > value ) { partialPreviewSnapshotOptions = value ; }
Source:
protected javax.ws.rs.core.Response performCreation ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.EntityIdResolver entityResolver , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { return performCreation ( task , taskParams , entityResolver , expectBlocking ( ) , suggestedParentType ) ; }

Target:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver , boolean block ) { return performCreate ( task , taskParams , entityResolver , block , null ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getMemoryVolumeTypeForStorageDomain ( org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) ) ; }

Target:
private void addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createMemoryDiskForVm ( org.ovirt.engine.core.bll.HibernateVmCommand.getVm ( ) , org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) ) ; addDisk ( memoryDisk ) ; }
Source:
protected org.ovirt.engine.api.model.Disk getDisk ( ) { return performGet ( VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
protected org.ovirt.engine.api.model.Disk getDisk ( ) { return performGet ( QueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public void rollbackQuota ( ) { org.ovirt.engine.core.bll.quota.QuotaManager.getInstance ( ) . rollbackQuota ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getStoragePool ( ) , org.ovirt.engine.core.bll.quota.QuotaManager.getInstance ( ) . getQuotaListFromParameters ( getStorageQuotaListParameters ( ) ) ) ; }

Target:
public void rollbackQuota ( ) { org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getQuotaManager ( ) . rollbackQuota ( getStoragePool ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getQuotaManager ( ) . getQuotaListFromParameters ( getStorageQuotaListParameters ( ) ) ) ; }
Source:
public void setBridge ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel bridge ) { this . vlanNic = bridge ; }

Target:
public void setVlanNicModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel vlanNicmodel ) { this . vlanNicModel = vlanNicmodel ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . getAllForVolumeGroup ( storageDomain.getstorage ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . getAllForVolumeGroup ( storageDomain.getstorage ( ) ) ; }
Source:
public void addParameter ( org.ovirt.api.metamodel.concepts.Parameter parameter ) { parameters.add ( parameter ) ; }

Target:
public void addParameter ( org.ovirt.api.metamodel.concepts.Parameter newParameter ) { parameters.add ( newParameter ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface findInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i : items ) { if ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface findInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i : items ) { if ( java.util.Objects.equals ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }
Source:
protected java.lang.String hostnameOrIp ( ) { return ( ( ( "(?:" + ( ip ( ) ) ) + "|" ) + ( fqdn ( ) ) ) + ")" ; }

Target:
private java.lang.String hostnameOrIp ( ) { return ( ( ( "(?:" + ( ip ( ) ) ) + "|" ) + ( org.ovirt.engine.core.common.utils.ValidationUtils.FQDN_PATTERN ) ) + ")" ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { Cancel ( ) ; } }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { cancel ( ) ; } }
Source:
public java.util.Set < org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < java.lang.Object > > getExtraConfigDescriptors ( ) { return java.util.Collections.singleton ( org.ovirt.engine.core.utils.MockConfigRule.mockConfig ( ConfigValues.SANWipeAfterDelete , true ) ) ; }

Target:
public java.util.Set < org.ovirt.engine.core.utils.MockConfigDescriptor < java.lang.Object > > getExtraConfigDescriptors ( ) { return java.util.Collections.singleton ( org.ovirt.engine.core.utils.MockConfigDescriptor.of ( ConfigValues.SANWipeAfterDelete , true ) ) ; }
Source:
public void completeNetworkAttachments ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments , org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Network > clusterNetworks ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment : networkAttachments ) { completeNetworkAttachment ( networkAttachment , clusterNetworks ) ; } }

Target:
public void completeNetworkAttachments ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments , org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Network > clusterNetworks , org.ovirt.engine.core.compat.Guid dataCenterId ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment : networkAttachments ) { completeNetworkAttachment ( networkAttachment , clusterNetworks , dataCenterId ) ; } }
Source:
public void testValidateNetworkExclusiveOnNicsVmNetworkIsSoleAttachedInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , vmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM ) , vmNetwork1 ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntityWithDetails ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity.class ) , index , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntityWithDetails ( int index ) { return helper.getBrickEntity ( index , true ) ; }
Source:
public void setKdumpStatus ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( kdumpStatus , value ) ) ) { kdumpStatus = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "KdumpStatus" ) ) ; } }

Target:
public void setKdumpStatus ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( kdumpStatus , value ) ) ) { kdumpStatus = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "KdumpStatus" ) ) ; } }
Source:
protected void SyncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . SyncSearch ( VdcQueryType.GetTemplateInterfacesByTemplateId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetTemplateInterfacesByTemplateId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllOfType ( org.ovirt.engine.core.common.businessentities.VDSType vds ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getVdsToRun ( org.ovirt.engine.core.common.businessentities.VDSType type , org.ovirt.engine.core.compat.Guid groupId , org.ovirt.engine.core.common.businessentities.VDSStatus status , int minNrOfCpus ) ;
Source:
public void setVm ( org.ovirt.engine.core.common.businessentities.VM value ) { if ( ( vm ) != value ) { vm = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VM" ) ) ; } }

Target:
public void setVm ( org.ovirt.engine.core.common.businessentities.VM value ) { if ( ( vm ) != value ) { vm = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VM" ) ) ; } }
Source:
private void updateSnapshotOvf ( org.ovirt.engine.core.common.businessentities.VM vm ) { vm.setSnapshots ( org.ovirt.engine.core.bll.ExportVmCommand.getDbFacade ( ) . getSnapshotDao ( ) . getAllWithConfiguration ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) ) ) ; updateVmImSpm ( ) ; }

Target:
private void updateSnapshotOvf ( org.ovirt.engine.core.common.businessentities.VM vm ) { vm.setSnapshots ( org.ovirt.engine.core.bll.ExportVmCommand.getDbFacade ( ) . getSnapshotDao ( ) . getAllWithConfiguration ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getId ( ) ) ) ; updateVmInSpm ( ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.Cluster source ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.SupportCustomDeviceProperties , source.getCompatibilityVersion ( ) . getValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.Cluster > clusters = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.Cluster > ) ( returnValue ) ) ; dcClusters.put ( dcId , clusters ) ; attachNetworkToClusters ( network , clusters , publicUse ) ; }
Source:
public boolean isSessionValid ( javax.servlet.http.HttpServletRequest request , java.lang.String token ) { return true ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( "http://localhost:8080/ovirt-engine/sso/credentials-change.html" ) . when ( testServlet ) . getCredentialsChangeUrl ( org.mockito.ArgumentMatchers.any ( ) ) ; testServlet.setBackend ( mockBackend ) ; testServlet.init ( mockBrandingManager , "/ovirt-engine" ) ; mockBackendQuery ( VdcQueryType.GetConfigurationValue , "oVirtVersion" ) ; org.mockito.Mockito.when ( mockBrandingManager.getBrandingThemes ( ) ) . thenReturn ( new java.util.ArrayList < > ( ) ) ; org.mockito.Mockito.when ( mockBrandingManager.getWelcomeSections ( org.mockito.ArgumentMatchers.any ( java.util.Locale.class ) ) ) . thenReturn ( "Welcome Section HTML" ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , commandContext ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.ActionReturnValue > runInternalMultipleActions ( org.ovirt.engine.core.common.action.ActionType actionType , java.util.List < org.ovirt.engine.core.common.action.ActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , null ) ; }
Source:
public void clearAllDismissedEvents ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ClearDismissedAuditLogEvents , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) , new org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback ( ) { @ java.lang.Override public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.events.EventListModel.this . refresh ( ) ; } } ) ; }

Target:
public void clearAllDismissedEvents ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ClearAllAuditLogEvents , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) , new org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback ( ) { @ java.lang.Override public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.events.EventListModel.this . refresh ( ) ; } } ) ; }
Source:
public void removeGlusterServerHook ( org.ovirt.engine.core.compat.Guid id ) ;

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getById ( org.ovirt.engine.core.compat.Guid id , boolean eagerLoad ) ;
Source:
private java.util.Properties setCommonProperties ( org.ovirt.engine.core.notifier.utils.NotificationProperties aMailProps ) { java.util.Properties mailSessionProps = new java.util.Properties ( ) ; if ( org.ovirt.engine.core.notifier.transport.smtp.JavaMailSender.log.isTraceEnabled ( ) ) { mailSessionProps.put ( "mail.debug" , "true" ) ; } isBodyHtml = aMailProps.getBoolean ( NotificationProperties.HTML_MESSAGE_FORMAT , false ) ; return mailSessionProps ; }

Target:
private java.util.Properties setCommonProperties ( org.ovirt.engine.core.notifier.utils.NotificationProperties aMailProps ) { java.util.Properties mailSessionProps = new java.util.Properties ( ) ; if ( org.ovirt.engine.core.notifier.transport.smtp.JavaMailSender.log.isTraceEnabled ( ) ) { mailSessionProps.put ( "mail.debug" , "true" ) ; } isBodyHtml = aMailProps.getBoolean ( Smtp.HTML_MESSAGE_FORMAT , false ) ; return mailSessionProps ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy , null ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
public long getDelayMinimum ( ) { return this . delayMinimum ; }

Target:
public int getJsonListenPort ( ) { return jsonListenPort ; }
Source:
void localize ( ) { allButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewRadioGroup.constants.allDisksLabel ( ) ) ; imagesButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewRadioGroup.constants.imageDisksLabel ( ) ) ; lunsButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewRadioGroup.constants.lunDisksLabel ( ) ) ; }

Target:
void localize ( ) { allButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewRadioGroup.constants.allDisksLabel ( ) ) ; imagesButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewRadioGroup.constants.imageDisksLabel ( ) ) ; lunsButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewRadioGroup.constants.lunDisksLabel ( ) ) ; cinderButton.setText ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewRadioGroup.constants.cinderDisksLabel ( ) ) ; }
Source:
private boolean shouldUpdateStorageDisk ( ) { return ( ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageOperation.Move ) ) || ( ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.ImportVm ) ) ; }

Target:
private boolean shouldUpdateStorageDisk ( ) { return ( ( org.ovirt.engine.core.bll.CopyImageGroupCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageOperation.Move ) ) || ( ( org.ovirt.engine.core.bll.CopyImageGroupCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.ImportVm ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec , java.lang.String connectionAction , java.util.Map < java.lang.String , java.lang.String > params ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > extend_image_ticket ( java.lang.String ticketId , long timeout ) ;
Source:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.Search , org.ovirt.engine.core.common.queries.SearchParameters.class , new java.lang.String [ ] { "SearchPattern" , "SearchTypeValue" } , new java.lang.Object [ ] { "users:" , org.ovirt.engine.core.common.interfaces.SearchType.DBUser } , getUsers ( ) ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }

Target:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAllDbUsers , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getUsers ( ) ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . templateMainTabLabel ( ) , 8 , ginjector.getMainTabTemplateModelProvider ( ) ) ; }

Target:
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.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.templateMainTabLabel ( ) , 8 , modelProvider ) ; }
Source:
public void statusSupportedForHostUpgradeInternal ( ) { host.setStatus ( VDSStatus.Maintenance ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostUpgradeInternal ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void statusSupportedForHostUpgradeInternal ( ) { host.setStatus ( VDSStatus.Maintenance ) ; org.hamcrest.MatcherAssert.assertThat ( validator.statusSupportedForHostUpgradeInternal ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return this . canEditAssign ( model ) ; }

Target:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return canEditRequired ( clusterNetworkModel ) ; }
Source:
public void testGetDataAndSetDataWithNullSession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( null ) ; org.junit.Assert.assertFalse ( "Set should fail with a null session" , container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ) ; org.junit.Assert.assertNull ( "Get should return null with a null session" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testGetDataAndSetDataWithNullSession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( null ) ; org.junit.Assert.assertFalse ( "Set should fail with a null session" , container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ) ; org.junit.Assert.assertNull ( "Get should return null with a null session" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getdomain ( ) ) ; setEmail ( user.getemail ( ) ) ; setStatus ( user.getAdStatus ( ) ) ; }

Target:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getDomain ( ) ) ; setEmail ( user.getEmail ( ) ) ; setStatus ( user.getLdapStatus ( ) ) ; }
Source:
public void handleFailure ( ) { org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.log.error ( "Command id: '{} failed child command status for step '{}'" , org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getCommandId ( ) , org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getParameters ( ) . getCommandStep ( ) ) ; }

Target:
public void handleFailure ( ) { log.error ( "Command '{}' id '{}' failed executing step '{}'" , org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getActionType ( ) , org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getCommandId ( ) , org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getParameters ( ) . getCommandStep ( ) ) ; }
Source:
public void testValidName ( ) { prepareVmToPassCanDoAction ( ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; boolean c = command.canDoAction ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , c ) ; }

Target:
public void testNameNotChanged ( ) { prepareVmToPassValidate ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; org.junit.Assert.assertTrue ( "validate should have passed." , command.validate ( ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.VM ) ( source ) ) : null ; }

Target:
public void getVmConfigurationBySnapshot ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.VM > aQuery , org.ovirt.engine.core.compat.Guid snapshotSourceId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmConfigurationBySnapshot , new org.ovirt.engine.core.common.queries.IdQueryParameters ( snapshotSourceId ) . withoutRefresh ( ) , aQuery ) ; }
Source:
public javax.ws.rs.core.Response shutdown ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.ShutdownVm , new org.ovirt.engine.core.common.action.ShutdownVmParameters ( guid , true ) , action ) ; }

Target:
public javax.ws.rs.core.Response shutdown ( org.ovirt.engine.api.model.Action action ) { return doAction ( ActionType.ShutdownVm , new org.ovirt.engine.core.common.action.ShutdownVmParameters ( guid , true ) , action ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( int idx ) { org.ovirt.engine.core.common.businessentities.storage_domains dom = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; dom.setId ( GUIDS [ idx ] ) ; return dom ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( int idx ) { org.ovirt.engine.core.common.businessentities.storage_domains dom = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; dom.setId ( GUIDS [ idx ] ) ; dom.setstorage_name ( NAMES [ idx ] ) ; return dom ; }
Source:
private org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > setupQueryBySnapshotId ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.common.queries.IdQueryParameters queryParams = getQueryParameters ( ) ; org.mockito.Mockito.when ( queryParams.getId ( ) ) . thenReturn ( snapshotId ) ; return getQuery ( ) ; }

Target:
private org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > setupQueryBySnapshotId ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.common.queries.IdQueryParameters queryParams = getQueryParameters ( ) ; org.mockito.Mockito.when ( queryParams.getId ( ) ) . thenReturn ( snapshotId ) ; org.ovirt.engine.core.bll.GetVmConfigurationBySnapshotQuery < org.ovirt.engine.core.common.queries.IdQueryParameters > query = getQuery ( ) ; return query ; }
Source:
public void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.column.Context context , com.google.gwt.dom.client.Element parent , T value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < T > valueUpdater ) { java.lang.String eventType = event.getType ( ) ; handleTitlePanel ( eventType , parent ) ; }

Target:
public void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.cell.Context context , com.google.gwt.dom.client.Element parent , T value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < T > valueUpdater ) { java.lang.String eventType = event.getType ( ) ; handleTitlePanel ( eventType , parent ) ; }
Source:
public void testGlusterVolumeBricksByServerId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = dao.getGlusterVolumeBricksByServerId ( FixturesTool.GLUSTER_SERVER_UUID3 ) ; org.junit.Assert.assertNotNull ( bricks ) ; }

Target:
public void testGlusterVolumeBricksByServerId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = dao.getGlusterVolumeBricksByServerId ( FixturesTool.GLUSTER_SERVER_UUID3 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( bricks ) ; }
Source:
public org.ovirt.engine.core.common.utils.VmDeviceType getDisplayDevice ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.DisplayType displayType ) { org.ovirt.engine.core.common.utils.VmDeviceType vmDeviceType = parseDisplayProtocols ( osId , version ) . get ( displayType ) ; return vmDeviceType == null ? displayType.getDefaultVmDeviceType ( ) : vmDeviceType ; }

Target:
public boolean isBalloonEnabled ( int osId , org.ovirt.engine.core.compat.Version version ) { return getBoolean ( getValueByVersion ( idToUnameLookup.get ( osId ) , "devices.balloon.enabled" , version ) , false ) ; }
Source:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; java.lang.Object subResource = collection.getDeviceResource ( GUIDS [ 0 ] . toString ( ) ) ; assertFalse ( ( subResource instanceof org.ovirt.engine.api.resource.DeviceResource ) ) ; assertTrue ( ( subResource instanceof org.ovirt.engine.api.resource.ReadOnlyDeviceResource ) ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( 1 , failure ) ; control.replay ( ) ; }
Source:
public void setnum_of_sockets ( int value ) { this . mVmStatic.setnum_of_sockets ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_sockets" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_cpus" ) ) ; }

Target:
public void setDedicatedVmForVds ( org.ovirt.engine.core.compat.NGuid value ) { vmStatic.setDedicatedVmForVds ( value ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , getEffectiveCompatibilityVersion ( ) ) ) ; }
Source:
public static org.ovirt.engine.ui.frontend.server.dashboard.InventoryStatus getClusterInventoryStatus ( javax.sql.DataSource engineDataSource ) throws java.sql.SQLException , org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException { org.ovirt.engine.ui.frontend.server.dashboard.dao.ClusterEngineDAO dao = new org.ovirt.engine.ui.frontend.server.dashboard.dao.ClusterEngineDAO ( engineDataSource ) ; return dao.getClusterInventorySummary ( ) ; }

Target:
public static org.ovirt.engine.ui.frontend.server.dashboard.InventoryStatus getClusterInventoryStatus ( javax.sql.DataSource engineDataSource ) throws org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException { org.ovirt.engine.ui.frontend.server.dashboard.dao.ClusterEngineDao dao = new org.ovirt.engine.ui.frontend.server.dashboard.dao.ClusterEngineDao ( engineDataSource ) ; return dao.getClusterInventorySummary ( ) ; }
Source:
public void setPopupKeyPressHandler ( org.ovirt.engine.ui.common.widget.dialog.PopupNativeKeyPressHandler keyPressHandler ) { popup.setKeyPressHandler ( keyPressHandler ) ; }

Target:
private void addStyles ( ) { userNameEditor.hideLabel ( ) ; passwordEditor.hideLabel ( ) ; domainEditor.hideLabel ( ) ; }
Source:
public static boolean isManagementNetwork ( java.lang.String networkName ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.ManagementNetwork ) . equals ( networkName ) ; }

Target:
public static boolean isManagementNetwork ( java.lang.String networkName ) { return org.ovirt.engine.core.utils.NetworkUtils.getEngineNetwork ( ) . equals ( networkName ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.TYPE_SetSearchPanel , searchPanel ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.TYPE_SetSearchPanel , searchPanel ) ; configureFeedbackUrl ( ) ; }
Source:
public void validate ( ) { setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validate ( ) { setupForStorageTests ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkClusterDAO ( ) . remove ( org.ovirt.engine.core.bll.DetachNetworkToVdsGroupCommand.getParameters ( ) . getVdsGroupId ( ) , org.ovirt.engine.core.bll.DetachNetworkToVdsGroupCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.DetachNetworkToVdsGroupCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkClusterDao ( ) . remove ( org.ovirt.engine.core.bll.DetachNetworkToVdsGroupCommand.getParameters ( ) . getVdsGroupId ( ) , org.ovirt.engine.core.bll.DetachNetworkToVdsGroupCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.DetachNetworkToVdsGroupCommand.setSucceeded ( true ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getAllDisksByStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return runInternalQuery ( VdcQueryType.GetAllDisksByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( domainId ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getAllDisksByStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return runInternalQuery ( QueryType.GetAllDisksByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( domainId ) ) ; }
Source:
public java.lang.Void deleteDisk ( final org.ovirt.engine.core.common.businessentities.storage.CinderDisk cinderDisk ) { return execute ( new java.util.concurrent.Callable < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void call ( ) { proxy.deleteVolume ( cinderDisk.getId ( ) . toString ( ) ) ; return null ; } } ) ; }

Target:
public java.lang.Void deleteVolume ( final org.ovirt.engine.core.common.businessentities.storage.CinderDisk cinderDisk ) { return execute ( new java.util.concurrent.Callable < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void call ( ) { proxy.deleteVolume ( cinderDisk.getImageId ( ) . toString ( ) ) ; return null ; } } ) ; }
Source:
public boolean getpm_enabled ( ) { return mVdsStatic.getpm_enabled ( ) ; }

Target:
public java.lang.String getPmUser ( ) { return mVdsStatic.getPmUser ( ) ; }
Source:
private boolean isNameConatinsDomain ( org.ovirt.engine.api.model.User user ) { return ( user.getUserName ( ) . contains ( "@" ) ) && ( ( user.getUserName ( ) . indexOf ( '@' ) ) != ( ( user.getUserName ( ) . length ( ) ) - 1 ) ) ; }

Target:
private boolean isNameContainsDomain ( org.ovirt.engine.api.model.User user ) { return ( user.getUserName ( ) . contains ( "@" ) ) && ( ( user.getUserName ( ) . indexOf ( '@' ) ) != ( ( user.getUserName ( ) . length ( ) ) - 1 ) ) ; }
Source:
private void mockDiskImageDao ( ) { org.mockito.Mockito.when ( diskImageDao.getSnapshotById ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.CommonVmPoolCommandTestAbstract.getDiskImageList ( ) . get ( 0 ) ) ; }

Target:
private void mockDiskImageDao ( ) { org.mockito.Mockito.when ( diskImageDao.getSnapshotById ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.CommonVmPoolCommandTestAbstract.getDiskImageList ( ) . get ( 0 ) ) ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface2 ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , vmNetwork1 , nonVmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmAndVlanAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( true , java.util.Arrays.asList ( NetworkType.VM , NetworkType.VLAN ) , vmNetwork1 , vlanNetwork ) ; }
Source:
private void verifyNoDomainForMemory ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = memoryStorageHandler.findStorageDomainForMemory ( storageDomains , memoryDisks , vmDisks ) ; org.junit.Assert.assertNull ( storageDomain ) ; }

Target:
private void verifyNoDomainForMemory ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = memoryStorageHandler.findStorageDomainForMemory ( storageDomains , memoryDisks , vmDisks ) ; org.junit.jupiter.api.Assertions.assertNull ( storageDomain ) ; }
Source:
public void testNonExistingKey ( ) { org.junit.Assert.assertEquals ( "" , OsRepositoryImpl.INSTANCE.getOsFamily ( 666 ) ) ; }

Target:
public void testNonExistingKey ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "" , OsRepositoryImpl.INSTANCE.getOsFamily ( 666 ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { addDiskAllocation ( model ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; if ( "Message" . equals ( propName ) ) { appendMessage ( model.getMessage ( ) ) ; } }
Source:
protected void emitOnMessageReceived ( byte [ ] message ) { java.util.List < org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message > messages = org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.buildMessages ( new java.lang.String ( message , org.ovirt.vdsm.jsonrpc.client.utils.JsonUtils.UTF8 ) ) ; for ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message msg : messages ) { processMessage ( msg ) ; } }

Target:
protected org.ovirt.vdsm.jsonrpc.client.utils.OneTimeCallback getPostConnectCallback ( ) { this . callback.resetExecution ( ) ; setWaitForConnect ( ) ; return this . callback ; }
Source:
public java.lang.String render ( T sizeInMB ) { return sizeInMB != null ? ( sizeInMB.toString ( ) ) + " MB" : constants.unAvailablePropertyLabel ( ) ; }

Target:
public java.lang.String render ( T sizeInMB ) { return sizeInMB != null ? ( sizeInMB.toString ( ) ) + " MB" : org.ovirt.engine.ui.common.widget.renderer.MemorySizeRenderer.constants.unAvailablePropertyLabel ( ) ; }
Source:
protected void ExecuteVDSCommand ( ) { org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.init ( ) ; status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.getBroker ( ) . hotUnplugNic ( struct ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void executeVDSCommand ( ) { org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.init ( ) ; status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.getBroker ( ) . hotUnplugNic ( struct ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.ProceedProxyReturnValue ( ) ; }