auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getCpuProfileDao ( ) . getAllForCluster ( getParameters ( ) . getId ( ) , getUserID ( ) , getParameters ( ) . isFiltered ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getCpuProfileDao ( ) . getAllForCluster ( getParameters ( ) . getId ( ) , getUserID ( ) , getParameters ( ) . isFiltered ( ) , ActionGroup.ASSIGN_CPU_PROFILE ) ) ; }
Source:
public static boolean isImagesExists ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > images , org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.bll.ImagesHandler.isImagesExists ( images , storagePoolId , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > ( ) ) ; }

Target:
public static boolean isImagesExists ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > images , org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid storageDomainId ) { return org.ovirt.engine.core.bll.ImagesHandler.isImagesExists ( images , storagePoolId , storageDomainId , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > ( ) ) ; }
Source:
public void testCanDoActionFlowVmNotDown ( ) { org.mockito.Mockito.doReturn ( null ) . when ( cmd ) . getDisk ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_VM_IMAGE_DOES_NOT_EXIST ) ; }

Target:
public void testCanDoActionFlowImageDoesNotExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( cmd ) . getDisk ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_VM_IMAGE_DOES_NOT_EXIST ) ; }
Source:
public void updateInterface ( org.ovirt.engine.core.compat.Version clusterVersion ) { getDiskInterface ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDiskInterfaceList ( clusterVersion ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { if ( java.lang.Boolean.FALSE.equals ( returnValue ) ) { diskInterfaces.remove ( DiskInterface.VirtIO_SCSI ) ; } setInterfaces ( diskInterfaces ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskImage cloneDiskImage ( org.ovirt.engine.core.compat.Guid newImageGuid ) { org.ovirt.engine.core.common.businessentities.DiskImage returnValue = super . cloneDiskImage ( newImageGuid ) ; returnValue.setImageTemplateId ( org.ovirt.engine.core.bll.CreateSnapshotFromTemplateCommand.getImage ( ) . getImageId ( ) ) ; return returnValue ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskImage cloneDiskImage ( org.ovirt.engine.core.compat.Guid newImageGuid ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage returnValue = super . cloneDiskImage ( newImageGuid ) ; returnValue.setImageTemplateId ( org.ovirt.engine.core.bll.CreateSnapshotFromTemplateCommand.getImage ( ) . getImageId ( ) ) ; return returnValue ; }
Source:
public void testGetPeersWithWrongPassword ( ) throws javax.naming.AuthenticationException { glusterUtil.getPeers ( org.ovirt.engine.core.utils.gluster.GlusterUtilTest.SERVER_NAME1 , org.ovirt.engine.core.utils.gluster.GlusterUtilTest.WRONG_PASSWORD ) ; }

Target:
public void testGetPeersWithWrongPassword ( ) throws javax.naming.AuthenticationException { org.ovirt.engine.core.bll.utils.GlusterUtilTest.EXPECTED_MAP.put ( org.ovirt.engine.core.bll.utils.GlusterUtilTest.SERVER_NAME1 , org.ovirt.engine.core.bll.utils.GlusterUtilTest.FINGER_PRINT1 ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.utils.GlusterUtilTest.EXPECTED_MAP ) . when ( glusterUtil ) . getFingerprints ( org.mockito.Matchers.any ( java.util.Set.class ) ) ; glusterUtil.getPeers ( org.ovirt.engine.core.bll.utils.GlusterUtilTest.SERVER_NAME1 , org.ovirt.engine.core.bll.utils.GlusterUtilTest.USER , org.ovirt.engine.core.bll.utils.GlusterUtilTest.WRONG_PASSWORD ) ; }
Source:
private void selectAsSPM ( ) { org.ovirt.engine.core.common.action.ForceSelectSPMParameters params = new org.ovirt.engine.core.common.action.ForceSelectSPMParameters ( ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( getSelectedItem ( ) ) ) . getId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ForceSelectSPM , params ) ; }

Target:
private void selectAsSPM ( ) { org.ovirt.engine.core.common.action.ForceSelectSPMParameters params = new org.ovirt.engine.core.common.action.ForceSelectSPMParameters ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.getSelectedItem ( ) . getId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ForceSelectSPM , params ) ; }
Source:
public boolean getIsAvailable ( ) { if ( ( getDetailModel ( ) . getEntity ( ) ) == null ) { return false ; } return ! ( ( ( org.ovirt.engine.core.common.businessentities.aaa.DbUser ) ( getDetailModel ( ) . getEntity ( ) ) ) . isGroup ( ) ) ; }

Target:
public boolean getIsAvailable ( ) { return isUserElement ( getDetailModel ( ) ) ; }
Source:
private void unlockImageInDb ( ) { final org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( getOldDisk ( ) ) ) ; diskImage.setImageStatus ( ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( diskImage.getImageId ( ) , ImageStatus.OK ) ; }

Target:
public void unlockImageInDb ( ) { final org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getOldDisk ( ) ) ) ; diskImage.setImageStatus ( ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( diskImage.getImageId ( ) , ImageStatus.OK ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { super . ExecuteVdsBrokerCommand ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getVds ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { super . ExecuteVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getVds ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.ProceedProxyReturnValue ( ) ; }
Source:
public org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { model = org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; model.setCluster ( new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; model.getCluster ( ) . setId ( clusterId.toString ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) , clusterId ) ; }
Source:
public void copyDataTo ( ovirt_engine_dwh.configurationsync_4_1.ConfigurationSync.updateFirstSyncStruct other ) { other.var_name = this . var_name ; other.var_value = this . var_value ; other.var_datetime = this . var_datetime ; }

Target:
public void copyDataTo ( ovirt_engine_dwh.configurationsync_4_1.ConfigurationSync.copyOfupdateFirstSyncStruct other ) { other.var_name = this . var_name ; other.var_value = this . var_value ; other.var_datetime = this . var_datetime ; }
Source:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , java.lang.String message ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable , logType , message ) ; }

Target:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , java.lang.String message ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.auditLogDirector.log ( auditLogable , logType , message ) ; }
Source:
public void setup ( ) { org.mockito.Mockito.when ( underTest.getActionType ( ) ) . thenReturn ( VdcActionType.ChangeVMCluster ) ; }

Target:
public void testNoChangeWhenClustersDidNotChange ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.Cluster cluster = createCluster ( ) ; initWithSameCluster ( cluster ) ; underTest.moveMacsToAnotherMacPoolIfNeeded ( ) ; org.mockito.Mockito.verifyNoMoreInteractions ( moveMacs ) ; }
Source:
public void testIsNetworkInSyncWhenIpv6StaticBootProtocolAddressEqual ( ) throws java.lang.Exception { initIpv6ConfigurationBootProtocolAddress ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.IPV6_BOOT_PROTOCOL , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv6BootProtocolEqual ( ) { initIpv6ConfigurationBootProtocol ( true ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void testIsNotLocalFsWithDefaultClusterWhenClusterIsDefault ( ) { storagePool.setIsLocal ( true ) ; org.mockito.Mockito.doReturn ( true ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertThat ( validator.isNotLocalfsWithDefaultCluster ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ) ; }

Target:
public void testIsNotLocalFsWithDefaultClusterWhenClusterIsDefault ( ) { storagePool.setIsLocal ( true ) ; org.mockito.Mockito.doReturn ( true ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertThat ( validator.isNotLocalfsWithDefaultCluster ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_CLUSTER_CANNOT_BE_LOCALFS ) ) ; }
Source:
public void setUsageMemPercent ( java.lang.Integer value ) { this . mVdsStatistics.setusage_mem_percent ( value ) ; }

Target:
public java.lang.Boolean getKsmState ( ) { return this . mVdsStatistics.getKsmState ( ) ; }
Source:
public void testIsDomainExistAndActiveDomainNotExists ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( null ) ; org.junit.Assert.assertThat ( "Wrong failure for null domain" , validator.isDomainExistAndActive ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ) ; }

Target:
public void testIsDomainExistAndActiveDomainNotExists ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( null ) ; org.hamcrest.MatcherAssert.assertThat ( "Wrong failure for null domain" , validator.isDomainExistAndActive ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ) ; }
Source:
public void put ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) ;

Target:
public void updateCallBackNotified ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc getStorageDeviceList ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterGeoRepKeysUpdate ( java.util.List < java.lang.String > geoRepPubKeys , java.lang.String userName ) ;
Source:
private void assertCanDoActionMessage ( org.ovirt.engine.core.dal.VdcBllMessages msg ) { junit.framework.Assert.assertTrue ( "canDoAction failed for the wrong reason" , command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( msg.name ( ) ) ) ; }

Target:
private void assertCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages msg ) { junit.framework.Assert.assertTrue ( "canDoAction failed for the wrong reason" , command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( msg.name ( ) ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { ( ( org.ovirt.engine.ui.common.widget.AddRemoveRowWidget < M , T , V > . AddRemoveRowPanel ) ( item.getSecond ( ) . getParent ( ) ) ) . swapButton ( createButton ( item ) ) ; addGhostEntry ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeEntry ( item ) ; onRemove ( value , widget ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmDevice createUnmanagedNetworkInterface ( boolean plugged ) { org.ovirt.engine.core.common.businessentities.VmDevice device = createNetworkInterfaceDevice ( plugged , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; device.setIsManaged ( false ) ; return device ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmDevice createUnmanagedNetworkInterface ( boolean plugged ) { org.ovirt.engine.core.common.businessentities.VmDevice device = createNetworkInterfaceDevice ( plugged , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; device.setManaged ( false ) ; return device ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { getBehavior ( ) . updateTimeZone ( ) ; }

Target:
public void setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) super . setIsChangable ( value ) ; }
Source:
public java.util.Date getvm_creation_date ( ) { return this . mVmStatic.getcreation_date ( ) ; }

Target:
public void setVmCreationDate ( java.util.Date value ) { this . vmStatic.setcreation_date ( value ) ; }
Source:
private void NewServer ( ) { NewInternal ( VmType.Server ) ; }

Target:
public void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( object ) ) . getName ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( java.lang.Object object ) { com.google.gwt.safehtml.shared.SafeHtml superTooltip = super . getTooltip ( object ) ; if ( superTooltip == null ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.importAllocationModifiedCollapse ( ) ) ; } return superTooltip ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmAndVlanAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) , vmNetwork1 , vlanNetwork ) ; }

Target:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetwork ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( true , java.util.Arrays.asList ( NetworkType.VLAN , NetworkType.NON_VM ) , vlanNetwork , nonVmNetwork1 ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Cluster createCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.GlusterServiceSyncJobTest.CLUSTER_ID ) ; cluster.setGlusterService ( true ) ; cluster.setCompatibilityVersion ( Version.v3_3 ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster createCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.GlusterServiceSyncJobTest.CLUSTER_ID ) ; cluster.setGlusterService ( true ) ; cluster.setCompatibilityVersion ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; return cluster ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( getSucceeded ( ) ) { return org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTIONS_RESET ; } else { return ( errorType ) == null ? org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTIONS_RESET_FAILED : errorType ; } }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( getSucceeded ( ) ) { return isResetAllOptions ? org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTIONS_RESET_ALL : org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTIONS_RESET ; } else { return ( errorType ) == null ? org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTIONS_RESET_FAILED : errorType ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVirtioScsiControllers ( org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getParameters ( ) . isFiltered ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getQueryReturnValue ( ) . setReturnValue ( vmDeviceUtils.getVirtioScsiControllers ( org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runCanDoActionOnly ( final int currentCanDoActionId , final int totalSize ) { try { return super . runCanDoActionOnly ( currentCanDoActionId , totalSize ) ; } finally { getCommands ( ) . get ( currentCanDoActionId ) . freeLock ( ) ; } }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runValidateOnly ( final int currentValidateId , final int totalSize ) { try { return super . runValidateOnly ( currentValidateId , totalSize ) ; } finally { getCommands ( ) . get ( currentValidateId ) . freeLock ( ) ; } }
Source:
public void setPrestartedVmsHint ( java.lang.String value ) { if ( ( prestartedVmsHint ) != value ) { prestartedVmsHint = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "PrestartedVmsHint" ) ) ; } }

Target:
public void setIsPoolTabValid ( boolean value ) { if ( ( isPoolTabValid ) != value ) { isPoolTabValid = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsPoolTabValid" ) ) ; } }
Source:
public void setNfsVersion ( org.ovirt.engine.core.common.businessentities.NfsVersion nfsVersion ) { if ( ( this . nfsVersion ) != nfsVersion ) { this . nfsVersion = nfsVersion ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "NfsVersion" ) ) ; } }

Target:
public void setNfsVersion ( org.ovirt.engine.core.common.businessentities.NfsVersion nfsVersion ) { if ( ( this . nfsVersion ) != nfsVersion ) { this . nfsVersion = nfsVersion ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "NfsVersion" ) ) ; } }
Source:
private org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters buildRemoveMemoryVolumesParameters ( java.lang.String memoryState , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters params = new org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters ( memoryState , vmId ) ; params.setEntityInfo ( getParameters ( ) . getEntityInfo ( ) ) ; return params ; }

Target:
private org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters buildRemoveMemoryVolumesParameters ( java.lang.String memoryState , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters params = new org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters ( memoryState , vmId ) ; params.setEntityInfo ( org.ovirt.engine.core.bll.RemoveVmCommand.getParameters ( ) . getEntityInfo ( ) ) ; return params ; }
Source:
public void getVMProperties ( org.ovirt.engine.core.compat.Version version , java.util.Map < java.lang.String , java.lang.String > propertiesMap , java.lang.String vmPropertiesFieldValue ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( vmPropertiesFieldValue ) ) { return ; } populateVMProperties ( version , vmPropertiesFieldValue , propertiesMap ) ; }

Target:
public void getVMProperties ( org.ovirt.engine.core.compat.Version version , java.util.Map < java.lang.String , java.lang.String > propertiesMap , java.lang.String vmPropertiesFieldValue ) { if ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( vmPropertiesFieldValue ) ) { return ; } populateVMProperties ( version , vmPropertiesFieldValue , propertiesMap ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDAO ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsGroupCommand.getVdsGroup ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.RemoveVdsGroupCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsGroupCommand.getVdsGroup ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.RemoveVdsGroupCommand.setSucceeded ( true ) ; }
Source:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForDiskWithSnapshots ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDS getHost ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( GUIDS [ 2 ] ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsStatic getStaticHost ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vdsStatic.setId ( GUIDS [ 2 ] ) ; return vdsStatic ; }
Source:
public void eventRaised ( com.google.gwt.user.client.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { if ( "SearchString" . equals ( args.propertyName ) ) { if ( ! ( model.isSearchValidForServerSideSorting ( ) ) ) { model.clearSortOptions ( ) ; clearColumnSort ( ) ; } } }

Target:
public void onSelectionChange ( com.google.gwt.view.client.SelectionChangeEvent event ) { if ( selectionModel.getSelectedList ( ) . isEmpty ( ) ) { scrollOffset = 0 ; } else { updateScrollPosition ( ) ; } enforceScrollPosition ( ) ; }
Source:
protected java.lang.String getAdditionalInformation ( ) { if ( ( getVds ( ) ) != null ) { return java.lang.String.format ( "HostName = %1$s" , getVds ( ) . getName ( ) ) ; } else { return super . getAdditionalInformation ( ) ; } }

Target:
protected java.lang.String getAdditionalInformation ( ) { if ( ( getAndSetVdsStatic ( ) ) != null ) { return java.lang.String.format ( "HostName = %1$s" , getAndSetVdsStatic ( ) . getName ( ) ) ; } else { return super . getAdditionalInformation ( ) ; } }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.emptyMap ( ) ; }

Target:
public java.lang.String getDiskAlias ( ) { return org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommand.getParameters ( ) . getRemovedVolume ( ) . getDiskAlias ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol getBootProtocol ( ) { return nic.getBootProtocol ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol getBootProtocol ( ) { return nic.getIpv4BootProtocol ( ) ; }
Source:
public void testIsInternalExecutionFalse ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( ) ; query.setInternalExecution ( true ) ; query.setInternalExecution ( false ) ; org.junit.Assert.assertFalse ( "Query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionFalse ( ) { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; query.setInternalExecution ( true ) ; query.setInternalExecution ( false ) ; org.junit.Assert.assertFalse ( "Query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }
Source:
public void Cancel ( ) { CancelConfirm ( ) ; setWindow ( null ) ; }

Target:
public void cancel ( ) { cancelConfirm ( ) ; setWindow ( null ) ; }
Source:
protected org.ovirt.engine.api.model.OpenStackVolumeProvider doPopulate ( org.ovirt.engine.api.model.OpenStackVolumeProvider model , org.ovirt.engine.core.common.businessentities.Provider entity ) { return model ; }

Target:
protected org.ovirt.engine.api.model.OpenStackVolumeProvider doPopulate ( org.ovirt.engine.api.model.OpenStackVolumeProvider model , org.ovirt.engine.core.common.businessentities.Provider entity ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = getStoragePoolIdByStorageDomainName ( entity.getName ( ) ) ; if ( storagePool != null ) { model.setDataCenter ( org.ovirt.engine.api.restapi.types.DataCenterMapper.map ( storagePool , null ) ) ; } return model ; }
Source:
public static org.ovirt.engine.core.common.businessentities.Provider getProvider ( org.ovirt.engine.api.restapi.resource.BackendResource resource , java.lang.String id ) { org.ovirt.engine.core.compat.Guid guid = org.ovirt.engine.core.compat.Guid.createGuidFromString ( id ) ; org.ovirt.engine.core.common.queries.IdQueryParameters parameters = new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ; return resource.getEntity ( org.ovirt.engine.core.common.businessentities.Provider.class , VdcQueryType.GetProviderById , parameters , id , true ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.Provider getProvider ( org.ovirt.engine.api.restapi.resource.BackendResource resource , java.lang.String id ) { org.ovirt.engine.core.compat.Guid guid = org.ovirt.engine.core.compat.Guid.createGuidFromString ( id ) ; org.ovirt.engine.core.common.queries.IdQueryParameters parameters = new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ; return resource.getEntity ( org.ovirt.engine.core.common.businessentities.Provider.class , QueryType.GetProviderById , parameters , id , true ) ; }
Source:
protected boolean shouldRenderCell ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { return ( ( model.getVM ( ) ) != null ) && ( model.getVM ( ) . isRunningOrPaused ( ) ) ; }

Target:
protected boolean shouldRenderCell ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { return ( model.isPool ( ) ) || ( ( ( model.getVM ( ) ) != null ) && ( model.getVM ( ) . isRunningOrPaused ( ) ) ) ; }
Source:
protected abstract void readGeneralData ( org.ovirt.engine.core.compat.backendcompat.XmlNode content ) ;

Target:
private void readCdItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { readManagedVmDevice ( node , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public void testRootHasNoParent ( ) throws java.lang.Exception { java.io.File file = writeConf ( ) ; org.ovirt.engine.core.extensions.mgr.Configuration config = org.ovirt.engine.core.extensions.mgr.Configuration.loadFile ( file ) ; org.junit.Assert.assertNotNull ( config ) ; org.junit.Assert.assertNull ( config.getParent ( ) ) ; }

Target:
public void testRootHasNoParent ( ) throws java.lang.Exception { java.io.File file = writeConf ( ) ; org.ovirt.engine.core.extensions.mgr.Configuration config = org.ovirt.engine.core.extensions.mgr.Configuration.loadFile ( file ) ; org.junit.jupiter.api.Assertions.assertNotNull ( config ) ; org.junit.jupiter.api.Assertions.assertNull ( config.getParent ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagByName ( org.ovirt.engine.core.bll.GetTagByTagNameQuery.getParameters ( ) . getName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . getTagByName ( org.ovirt.engine.core.bll.GetTagByTagNameQuery.getParameters ( ) . getName ( ) ) ) ; }
Source:
public void onSetupNetworks ( ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetNetworkConnectivityCheckTimeoutInSeconds ( new org.ovirt.engine.ui.frontend.AsyncQuery ( sourceListModel , new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( returnValue ) ; postOnSetupNetworks ( ) ; } } ) ) ; }

Target:
public void onSetupNetworks ( ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getNetworkConnectivityCheckTimeoutInSeconds ( new org.ovirt.engine.ui.frontend.AsyncQuery ( sourceListModel , new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( returnValue ) ; postOnSetupNetworks ( ) ; } } ) ) ; }
Source:
public void testGetByVolumeId ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule schedule = dao.getByVolumeId ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotScheduleDaoTest.VOLUME_ID_1 ) ; org.junit.Assert.assertNotNull ( schedule ) ; org.junit.Assert.assertEquals ( schedule , existingSchedule ) ; }

Target:
public void testGetByVolumeId ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule schedule = dao.getByVolumeId ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotScheduleDaoTest.VOLUME_ID_1 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( schedule ) ; org.junit.jupiter.api.Assertions.assertEquals ( schedule , existingSchedule ) ; }
Source:
public void correlationIdMaxSize ( ) { org.ovirt.engine.core.common.action.ActionParametersBase parameters = new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ; parameters.setCorrelationId ( org.apache.commons.lang.StringUtils.leftPad ( "" , BusinessEntitiesDefinitions.CORRELATION_ID_SIZE , "A" ) ) ; org.ovirt.engine.core.common.action.ActionReturnValue result = org.ovirt.engine.core.bll.job.ExecutionHandler.evaluateCorrelationId ( parameters ) ; org.junit.Assert.assertNull ( "Correlation id is size is at max permitted length" , result ) ; }

Target:
public void correlationIdMaxSize ( ) { org.ovirt.engine.core.common.action.ActionParametersBase parameters = new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ; parameters.setCorrelationId ( org.apache.commons.lang.StringUtils.leftPad ( "" , BusinessEntitiesDefinitions.CORRELATION_ID_SIZE , "A" ) ) ; org.ovirt.engine.core.common.action.ActionReturnValue result = org.ovirt.engine.core.bll.job.ExecutionHandler.evaluateCorrelationId ( parameters ) ; org.junit.jupiter.api.Assertions.assertNull ( result , "Correlation id is size is at max permitted length" ) ; }
Source:
public void testGetFilteredByPermissionsForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > result = dao.getAllForCluster ( FixturesTool.VDS_GROUP_RHEL6_ISCSI , org.ovirt.engine.core.dao.profiles.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetFilteredByPermissionsForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > result = dao.getAllForCluster ( FixturesTool.CLUSTER_RHEL6_ISCSI , org.ovirt.engine.core.dao.profiles.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void typeMatchesProfileOnlyTypePassthrough ( ) { typeMatchesProfileCommon ( true , false ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }

Target:
public void typeMatchesProfileOnlyTypePassthrough ( ) { typeMatchesProfileCommon ( true , false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }
Source:
boolean prepareConnectStorageServer ( org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) ;

Target:
void prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) ;
Source:
public org.ovirt.engine.core.common.businessentities.AsyncTask getAsyncTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return coCoAsyncTaskHelper.getAsyncTask ( taskId , command , asyncTaskCreationInfo , parentCommand ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.SPMAsyncTask concreteCreateTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.ActionType parentCommand ) { return coCoAsyncTaskHelper.concreteCreateTask ( taskId , command , asyncTaskCreationInfo , parentCommand ) ; }
Source:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value ) { return conversion.decode ( value ) ; }

Target:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value ) { return conversion.decode ( value , conversionProps ) ; }
Source:
void processOnClientIpChange ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.compat.Guid vmId ) ;

Target:
boolean connectHostToDomainsInActiveOrUnknownStatus ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
void setupCloneTemplatePermissions ( org.ovirt.engine.core.common.action.VmManagementParametersBase params ) { boolean clonePermissions = org.ovirt.engine.api.common.util.QueryHelper.getBooleanMatrixParameter ( uriInfo , org.ovirt.engine.api.restapi.resource.BackendVmsResource.CLONE_PERMISSIONS , true , false ) ; if ( clonePermissions ) { params.setCopyTemplatePermissions ( clonePermissions ) ; } }

Target:
void setupCloneTemplatePermissions ( org.ovirt.engine.core.common.action.VmManagementParametersBase params ) { boolean clonePermissions = org.ovirt.engine.api.common.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendVmsResource.CLONE_PERMISSIONS , true , false ) ; if ( clonePermissions ) { params.setCopyTemplatePermissions ( clonePermissions ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . hideEveryoneSelection ( java.lang.Boolean.parseBoolean ( model.getIsRoleListHiddenModel ( ) . getEntity ( ) . toString ( ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . getSearchButton ( ) . getCommand ( ) . setIsExecutionAllowed ( model.availableNamespaces ( ) ) ; }
Source:
public void setClusterPolicyModel ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterPolicyModel clusterPolicyModel ) { this . clusterPolicyModel = clusterPolicyModel ; }

Target:
public void setComment ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { privateComment = value ; }
Source:
public java.lang.Object getQueryableId ( ) { return getId ( ) ; }

Target:
public java.lang.Object getQueryableId ( ) { return new org.ovirt.engine.core.common.businessentities.EngineBackupLogId ( getScope ( ) , getDoneAt ( ) ) ; }
Source:
protected void OnCollectionChanged ( ) { OnCollectionChanged ( new org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs ( ) ) ; }

Target:
protected void onCollectionChanged ( ) { onCollectionChanged ( new org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs ( ) ) ; }
Source:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getNetworkId ( ) ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }

Target:
private boolean logicalNetworkExists ( ) { if ( ( getPersistedNetwork ( ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }
Source:
public void init ( ) { super . init ( ) ; org.ovirt.engine.api.restapi.utils.OsTypeMockUtils.mockOsTypes ( ) ; osRepository = control.createMock ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; }

Target:
public void init ( ) { super . init ( ) ; org.ovirt.engine.api.restapi.utils.OsTypeMockUtils.mockOsTypes ( ) ; osRepository = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; }
Source:
public void settingSpecificNetworksNotAllowed ( ) { settingSpecificNetworksAllowedTest ( false ) ; org.junit.Assert.assertThat ( validator.settingSpecificNetworksAllowed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networExists ( ) { simulateNicExists ( ) ; simulateNetworkExists ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkExists ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NETWORK_ID ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { syncDbRecords ( false ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { syncDbRecordsMergeFailure ( ) ; return null ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > getAllQuotaVdsGroupIncludingConsumption ( ) ;

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > getAllQuotaClusterIncludingConsumption ( ) ;
Source:
public org.ovirt.engine.core.common.errors.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) { if ( ! ( org.ovirt.engine.core.bll.scheduling.VdsSelector.isVMSwapValueLegal ( vds ) ) ) { sb.append ( "swap value is illegal" ) ; return org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_SWAP ; } return null ; }

Target:
public org.ovirt.engine.core.common.errors.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate , java.util.List < org.ovirt.engine.core.compat.Guid > vdsBlackList ) { if ( ! ( org.ovirt.engine.core.bll.scheduling.VdsSelector.isVMSwapValueLegal ( vds ) ) ) { sb.append ( "swap value is illegal" ) ; return org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_SWAP ; } return null ; }
Source:
public void addLabelStyleName ( java.lang.String styleName ) { getLabelElement ( ) . addClassName ( styleName ) ; }

Target:
public void addLabelStyleNames ( java.lang.String styleNames ) { for ( java.lang.String name : styleNames.split ( "[,\\s]+" ) ) { addLabelStyleName ( name ) ; } }
Source:
private static java.lang.String addLeadingZero ( int k ) { return k <= 15 ? "0" + ( java.lang.Integer.toHexString ( k ) ) : java.lang.Integer.toHexString ( k ) ; }

Target:
private static java.lang.String addLeadingZero ( int k ) { return k <= 15 ? '0' + ( java.lang.Integer.toHexString ( k ) ) : java.lang.Integer.toHexString ( k ) ; }
Source:
public boolean isManagedVm ( ) { return ( ! ( isHostedEngine ( ) ) ) && ( ! ( isExternalVm ( ) ) ) ; }

Target:
public boolean isQualifiedForConsoleConnect ( ) { return getStatus ( ) . isQualifiedForConsoleConnect ( ) ; }
Source:
public boolean showDefaultValue ( ) { java.lang.String quotaName = getModel ( ) . getQuotaName ( ) ; return ( quotaName == null ) || ( "" . equals ( quotaName ) ) ; }

Target:
public boolean getIsAvailable ( ) { return getModel ( ) . isQuotaAvailable ( ) ; }
Source:
private void mockStorageDomainSpaceChecker ( org.ovirt.engine.core.common.businessentities.storage_domains domain , boolean succeeded ) { org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isBelowThresholds ( domain ) ) . thenReturn ( succeeded ) ; }

Target:
private void mockStorageDomainSpaceChecker ( org.ovirt.engine.core.common.businessentities.storage_domains domain , boolean succeeded ) { org.mockito.Mockito.doReturn ( succeeded ) . when ( command ) . isStorageDomainBelowThresholds ( domain ) ; }
Source:
void processOnVmPoweringUp ( org.ovirt.engine.core.compat.Guid vds_id , org.ovirt.engine.core.compat.Guid vmid , java.lang.String display_ip , int display_port ) ;

Target:
void syncLunsInfoForBlockStorageDomain ( final org.ovirt.engine.core.compat.Guid storageDomainId , final org.ovirt.engine.core.compat.Guid vdsId ) ;
Source:
public void testStorageNameLength ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskContentType d : org.ovirt.engine.core.common.businessentities.storage.DiskContentType.values ( ) ) { org.junit.Assert.assertEquals ( 4 , d.getStorageValue ( ) . length ( ) ) ; } }

Target:
public void testStorageNameLength ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskContentType d : org.ovirt.engine.core.common.businessentities.storage.DiskContentType.values ( ) ) { org.junit.jupiter.api.Assertions.assertEquals ( 4 , d.getStorageValue ( ) . length ( ) ) ; } }
Source:
public void setType ( org.ovirt.engine.ui.userportal.widget.QuotaProgressBar.QuotaType type ) { this . type = type ; }

Target:
private void initToolTip ( ) { tooltipPanel.setWidget ( tooltip ) ; addMouseOutHandler ( this ) ; addMouseOverHandler ( this ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > shutdownHost ( int reboot ) ;

Target:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks ) ;
Source:
public org.ovirt.engine.core.compat.NGuid getLastVdsRunOn ( ) { return this . vmDynamic.getlast_vds_run_on ( ) ; }

Target:
public void setLastVdsRunOn ( org.ovirt.engine.core.compat.Guid value ) { this . vmDynamic.setLastVdsRunOn ( value ) ; }
Source:
public void info ( java.lang.Object arg0 , java.lang.Throwable arg1 ) { log.info ( addPrefixToLogMessage ( arg0 ) , arg1 ) ; }

Target:
public boolean isInfoEnabled ( ) { return log.isInfoEnabled ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData importVmData ) { int size = importVmData.getVm ( ) . getVmMemSizeMb ( ) ; return size + " MB" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.register.RegisterVmData registerVmData ) { int size = registerVmData.getVm ( ) . getVmMemSizeMb ( ) ; return size + " MB" ; }
Source:
public java.lang.Integer getMaxVmNameLengthWin ( ) { java.lang.Integer maxVmNameLengthWindows = ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLengthWindows ) ) ) ; if ( maxVmNameLengthWindows == null ) { return 15 ; } return maxVmNameLengthWindows ; }

Target:
public java.lang.Integer getMaxVmNameLength ( ) { java.lang.Integer maxVmNameLength = ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLength ) ) ) ; if ( maxVmNameLength == null ) { return 64 ; } return maxVmNameLength ; }
Source:
protected void setUpVersionExpectations ( int index ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAvailableStoragePoolVersions , org.ovirt.engine.core.common.queries.GetAvailableStoragePoolVersionsParameters.class , new java.lang.String [ ] { "StoragePoolId" } , new java.lang.Object [ ] { GUIDS [ index ] } , getVersions ( ) ) ; }

Target:
protected void setUpVersionExpectations ( int index ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAvailableStoragePoolVersions , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ index ] } , getVersions ( ) ) ; }