auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static org.ovirt.engine.api.restapi.types.IpVersion map ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.IpVersion entity ) { switch ( entity ) { case IPV4 : return IpVersion.V4 ; case IPV6 : return IpVersion.V6 ; default : throw new java.lang.IllegalArgumentException ( ( ( "Unknown IP version \"" + entity ) + "\"" ) ) ; } }

Target:
public static org.ovirt.engine.api.model.IpVersion map ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.IpVersion entity ) { switch ( entity ) { case IPV4 : return org.ovirt.engine.api.model.IpVersion.V4 ; case IPV6 : return org.ovirt.engine.api.model.IpVersion.V6 ; default : throw new java.lang.IllegalArgumentException ( ( ( "Unknown IP version \"" + entity ) + "\"" ) ) ; } }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; } return source ; }
Source:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; }

Target:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView value ) { super . setSelectedItem ( value ) ; if ( ( value != null ) && ( value.isPassthrough ( ) ) ) { getNicType ( ) . setSelectedItem ( VmInterfaceType.pciPassthrough ) ; } updateLinkChangability ( ) ; }
Source:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDiscardFunctionality ( ) { setSdDiscardSupport ( false , true ) ; junit.framework.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }

Target:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDiscardFunctionality ( ) { setSdDiscardSupport ( false , true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }
Source:
protected void updateTableControls ( ) { prevPageButton.setEnabled ( getDataProvider ( ) . canGoBack ( ) ) ; nextPageButton.setEnabled ( getDataProvider ( ) . canGoForward ( ) ) ; }

Target:
protected void updateTableControls ( ) { prevPageButton.setEnabled ( getDataProvider ( ) . canGoBack ( ) ) ; nextPageButton.setEnabled ( getDataProvider ( ) . canGoForward ( ) ) ; prevPageButton.addStyleName ( "prevPageButton_pfly_fix" ) ; nextPageButton.addStyleName ( "nextPageButton_pfly_fix" ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( dataCenterId ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }
Source:
public void testRemove ( ) { org.junit.Assert.assertNotNull ( dao.get ( org.ovirt.engine.core.dao.network.VmNetworkStatisticsDaoTest.INTERFACE_ID ) ) ; dao.remove ( org.ovirt.engine.core.dao.network.VmNetworkStatisticsDaoTest.INTERFACE_ID ) ; org.junit.Assert.assertNull ( dao.get ( org.ovirt.engine.core.dao.network.VmNetworkStatisticsDaoTest.INTERFACE_ID ) ) ; }

Target:
public void testRemove ( ) { org.junit.Assert.assertNotNull ( dao.get ( FixturesTool.VM_NETWORK_INTERFACE ) ) ; dao.remove ( FixturesTool.VM_NETWORK_INTERFACE ) ; org.junit.Assert.assertNull ( dao.get ( FixturesTool.VM_NETWORK_INTERFACE ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createHibernationMetadataDisk ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( null ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.generateHibernationMetadataDiskAlias ( vm.getName ( ) ) ) ; image.setDescription ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_HIBERNATION_METADATA_DISK_DESCRIPTION ) ; return image ; }

Target:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createHibernationMetadataDisk ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( null ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.generateHibernationMetadataDiskAlias ( vm.getName ( ) ) ) ; image.setDiskDescription ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_HIBERNATION_METADATA_DISK_DESCRIPTION ) ; return image ; }
Source:
public static boolean IsUpdateValid ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic distination , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return org.ovirt.engine.core.bll.VdsHandler.mUpdateVdsStatic.IsUpdateValid ( source , distination , status ) ; }

Target:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic distination , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return org.ovirt.engine.core.bll.VdsHandler.mUpdateVdsStatic.IsUpdateValid ( source , distination , status ) ; }
Source:
public java.lang.String getVdsGroupDescription ( ) { return this . vdsGroupDescription ; }

Target:
public java.lang.String getClusterDescription ( ) { return this . clusterDescription ; }
Source:
private void assertSizes ( int i , int j ) { org.junit.Assert.assertEquals ( "unexpected primary map size" , i , map.size ( ) ) ; org.junit.Assert.assertEquals ( "unexpected secondary map size" , j , map.reapableSize ( ) ) ; }

Target:
private void assertSizes ( int i , int j ) { org.junit.jupiter.api.Assertions.assertEquals ( i , map.size ( ) , "unexpected primary map size" ) ; org.junit.jupiter.api.Assertions.assertEquals ( j , map.reapableSize ( ) , "unexpected secondary map size" ) ; }
Source:
private boolean NeedToUpdateVdsBroker ( ) { return org.ovirt.engine.core.bll.VdsHandler.IsFieldsUpdated ( org.ovirt.engine.core.bll.UpdateVdsCommand.getParameters ( ) . getVdsStaticData ( ) , _oldVds.getStaticData ( ) , java.util.Arrays.asList ( new java.lang.String [ ] { "host_name" , "ip" , "vds_unique_id" , "port" , "vds_group_id" } ) ) ; }

Target:
private boolean NeedToUpdateVdsBroker ( ) { return org.ovirt.engine.core.bll.VdsHandler.IsFieldsUpdated ( org.ovirt.engine.core.bll.UpdateVdsCommand.getParameters ( ) . getVdsStaticData ( ) , _oldVds.getStaticData ( ) , org.ovirt.engine.core.bll.UpdateVdsCommand.UPDATE_FIELDS_VDS_BROKER ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , getQuotaMetaDataFromResultSet ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Quota > getAllWithQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , getQuotaMetaDataFromResultSet ( ) ) ; }
Source:
public final java.lang.String ovirtVersionAbout ( final java.lang.String version ) { return formatString ( org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey.VERSION_ABOUT , version ) ; }

Target:
public final java.lang.String ovirtVersionAbout ( final java.lang.String version ) { return formatString ( org.ovirt.engine.ui.common.utils.BaseDynamicMessages.DynamicMessageKey.VERSION_ABOUT , version ) ; }
Source:
public void configureElementId ( java.lang.String elementIdPrefix , java.lang.String columnId ) { getCell ( ) . setElementIdPrefix ( elementIdPrefix ) ; getCell ( ) . setColumnId ( columnId ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { if ( ( object.getNumberOfVms ( ) ) < 2 ) { return null ; } return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( org.ovirt.engine.ui.uicompat.external.StringUtils.join ( object.getVmNames ( ) , ", " ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.ServerConnectionListReturnForXmlRpc getStorageConnectionsList ( java.lang.String spUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc allocateVolume ( java.lang.String spUUID , java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String volUUID , java.lang.String size ) ;
Source:
public void testGetStorageDomainWithStatusForInvalidPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , existingDomain.getStorageDomainType ( ) , existingDomain.getStatus ( ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetStorageDomainWithStatusForInvalidPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , existingDomain.getStorageDomainType ( ) , existingDomain.getStatus ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testVmUnderMinNumOfThreadsPerCpu ( ) { setVmCpuValues ( 1 , 1 , ( - 2 ) ) ; org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIN_THREADS_PER_CPU ) ) ; }

Target:
public void testVmUnderMinNumOfThreadsPerCpu ( ) { setVmCpuValues ( 1 , 1 , ( - 2 ) ) ; org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIN_THREADS_PER_CPU ) ) ; }
Source:
org.ovirt.engine.api.resource.ActionResource getActionSubresource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action ) ;

Target:
org.ovirt.engine.api.resource.ActionResource getActionResource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action ) ;
Source:
public int getnum_of_cpus ( ) { return ( this . getcpu_per_socket ( ) ) * ( this . getnum_of_sockets ( ) ) ; }

Target:
public void setManagedDeviceMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > map ) { this . managedDeviceMap = map ; }
Source:
public boolean isReadable ( java.lang.Class < ? > type , java.lang.reflect.Type genericType , java.lang.annotation.Annotation [ ] annotations , javax.ws.rs.core.MediaType mediaType ) { return true ; }

Target:
public boolean isWriteable ( java.lang.Class < ? > type , java.lang.reflect.Type genericType , java.lang.annotation.Annotation [ ] annotations , javax.ws.rs.core.MediaType mediaType ) { return org.ovirt.engine.api.restapi.xml.JAXBProvider.SUPPORTED_VERSION.equals ( org.ovirt.engine.api.restapi.invocation.CurrentManager.get ( ) . getVersion ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel getModel ( ) { return getCommonModel ( ) . getTagList ( ) ; }

Target:
public void setSelectedItems ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.tags.TagModel > items ) { getModel ( ) . setSelectedItem ( ( ( items.size ( ) ) > 0 ? items.get ( 0 ) : null ) ) ; }
Source:
public void nGuidCtor ( ) { b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid v = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , v ) ; }

Target:
public void nGuidCtor ( ) { b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid v = b.getVdsId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , v ) ; }
Source:
public void testAddGroupWithImplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ":: name=" ) + ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES_WITH_NO_DOMAIN [ 0 ] ) ) , SearchType.DirectoryGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.AddGroupParameters.class , new java.lang.String [ ] { "GroupToAdd" } , new java.lang.Object [ ] { new org.ovirt.engine.core.common.businessentities.aaa.DbGroup ( getDirectoryGroup ( 0 ) ) } , true , true , GUIDS [ 0 ] , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testAddGroupWithImplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ":: name=" ) + ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES_WITH_NO_DOMAIN [ 0 ] ) ) , SearchType.DirectoryGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( ActionType.AddGroup , org.ovirt.engine.core.common.action.AddGroupParameters.class , new java.lang.String [ ] { "GroupToAdd" } , new java.lang.Object [ ] { new org.ovirt.engine.core.common.businessentities.aaa.DbGroup ( getDirectoryGroup ( 0 ) ) } , true , true , GUIDS [ 0 ] , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }
Source:
public void setSELinuxEnforceMode ( java.lang.Integer value ) { selinuxEnforceMode = value ; }

Target:
public void setSELinuxEnforceMode ( java.lang.Integer value ) { selinuxEnforceMode = org.ovirt.engine.core.common.businessentities.SELinuxMode.fromValue ( value ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return disk.isWipeAfterDelete ( ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return disk.isWipeAfterDelete ( ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllForCluster ( org.ovirt.engine.core.compat.Guid cluster ) ;
Source:
protected boolean isFilterDestinationDomainsBySourceType ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel model ) { return model.isPluggedToRunningVm ( ) ; }

Target:
protected boolean isFilterDestinationDomainsBySourceType ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel model ) { return ( model.isPluggedToRunningVm ( ) ) && ( ! ( isLsmBetweenMixedStorageDomainsSupportedInDC ) ) ; }
Source:
org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmSessionsModel > getSubTabVirtualMachineSessionsModelProvider ( ) ;

Target:
org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmGuestInfoModel > getSubTabVirtualMachineGuestInfoModelProvider ( ) ;
Source:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; org.ovirt.engine.core.bll.ValidationResult notABondValidationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND , org.ovirt.engine.core.bll.validator.HostInterfaceValidator.VAR_NETWORK_INTERFACE_IS_NOT_BOND_ENTITY , bond.getName ( ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , notABondValidationResult , notABondValidationResult , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }
Source:
public void updateWithLowerVersionThanHosts ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; VdsExistWithHigherVersion ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_COMPATIBILITY_VERSION_WITH_LOWER_HOSTS ) ; }

Target:
public void updateWithLowerVersionThanHosts ( ) { createCommandWithDefaultVdsGroup ( ) ; setupCpu ( ) ; VdsExistWithHigherVersion ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_COMPATIBILITY_VERSION_WITH_LOWER_HOSTS ) ; }
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 ) { updateSysprepVisibility ( object ) ; updateInitialRunTabVisibility ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateCloudInitVisibility ( object ) ; updateInitialRunTabVisibility ( object ) ; }
Source:
public void testEncodingDecoding ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "DiskDescription" ) ) ; org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.assertDiskDescriptionDecoding ( disk ) ; }

Target:
public void encodeWithNullDiskDescription ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( null ) ; assertDiskDescriptionMap ( disk , generateDiskAliasJsonEntry ( "DiskAlias" ) , generateDiskDescriptionJsonEntry ( "" ) ) ; }
Source:
protected void setCommandStatus ( org.ovirt.engine.core.compat.CommandStatus status ) { this . commandStatus = status ; org.ovirt.engine.core.bll.tasks.TaskManagerUtil.updateCommandStatus ( getCommandId ( ) , getTaskType ( ) , commandStatus ) ; }

Target:
public void setCommandStatus ( org.ovirt.engine.core.compat.CommandStatus status , boolean updateDB ) { this . commandStatus = status ; if ( updateDB ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.updateCommandStatus ( getCommandId ( ) , getTaskType ( ) , commandStatus ) ; } }
Source:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { macs.forEach ( macPool :: freeMac ) ; }

Target:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { macPool.freeMacs ( macs ) ; }
Source:
public void debug ( java.lang.Object msg , java.lang.Throwable t ) { if ( isDebugEnabled ( ) ) { log.debug ( addPrefixToLogMessage ( msg ) , t ) ; } }

Target:
public void error ( java.lang.Object msg ) { log.error ( convertToString ( msg ) ) ; }
Source:
public void testCDAStoragePoolValid ( ) { vds.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail on mismatch Storage Pool" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessagesContains ( command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_NOT_IN_POOL ) ; }

Target:
public void testCDAStoragePoolValid ( ) { vds.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on mismatch Storage Pool" , command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_NOT_IN_POOL ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureFromOS ( int osId ) ;

Target:
java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.DisplayType > > getGraphicsAndDisplays ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { StopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { stopProgress ( ) ; cancel ( ) ; }
Source:
public void validateBondOptionsForNewAttachementWithOutOfSyncVmNetworOverridden ( ) { validateValidBonds ( false , true , false , true ) ; }

Target:
public void testValidateBondOptionsForNewAttachementWithVmNetwork ( ) { validateValidBondsForAllBondModes ( false , true , true , false ) ; }
Source:
public void setEntityNames ( java.util.List < java.lang.String > entityNames ) { this . entityNames = entityNames ; if ( entityNames == null ) { this . entityNames = new java.util.ArrayList < > ( ) ; } }

Target:
public void setVmIds ( java.util.List < org.ovirt.engine.core.compat.Guid > vmIds ) { this . vmIds = vmIds ; if ( vmIds == null ) { this . vmIds = new java.util.ArrayList < > ( ) ; } }
Source:
public void Cancel ( ) { ResetData ( ) ; setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }

Target:
public void cancel ( ) { resetData ( ) ; setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }
Source:
private void initListeners ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { model.getAdvancedMode ( ) . getPropertyChangedEvent ( ) . addListener ( new org.ovirt.engine.ui.uicompat.IEventListener ( ) { @ java.lang.Override public void eventRaised ( org.ovirt.engine.ui.common.widget.popup.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { swithAccordingToMode ( model ) ; } } ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { swithAttachToInstanceType ( model ) ; }
Source:
public org.ovirt.api.metamodel.tool.JavaClassName getContainerName ( org.ovirt.api.metamodel.concepts.Type type ) { return getTypeName ( type , javaPackages.getContainersPackageName ( ) , org.ovirt.api.metamodel.tool.PlainJavaTypes.CONTAINER_SUFFIX ) ; }

Target:
public org.ovirt.api.metamodel.tool.JavaClassName getBuilderName ( org.ovirt.api.metamodel.concepts.Type type ) { return getTypeName ( type , javaPackages.getBuildersPackageName ( ) , null , org.ovirt.api.metamodel.tool.PlainJavaTypes.BUILDER_NAME ) ; }
Source:
public void validateVmMemoryCantRunOnVdsHighOverhead ( ) { vds.setGuestOverhead ( 1024 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCanRunOnVdsHighMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; vds.setPhysicalMemMb ( 15000 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
public void testGetObjectIdUniqueForDifferentObjects ( ) { org.junit.Assert.assertTrue ( ( ! ( org.ovirt.engine.core.utils.log.LoggedUtils.getObjectId ( new java.lang.Object ( ) ) . equals ( org.ovirt.engine.core.utils.log.LoggedUtils.getObjectId ( new java.lang.Object ( ) ) ) ) ) ) ; }

Target:
public void testGetObjectIdUniqueForDifferentObjects ( ) { org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( org.ovirt.engine.core.utils.log.LoggedUtils.getObjectId ( new java.lang.Object ( ) ) . equals ( org.ovirt.engine.core.utils.log.LoggedUtils.getObjectId ( new java.lang.Object ( ) ) ) ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return ( getNetwork ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileForVmNetworkOnly ( ) { return getNetwork ( ) . isVmNetwork ( ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.CANNOT_ADD_VNIC_PROFILE_TO_NON_VM_NETWORK ) ; }
Source:
public C list ( ) { return mapCollection ( getBackendCollection ( queryType , queryParams ) ) ; }

Target:
public C list ( ) { java.util.List < Q > collection = getBackendCollection ( queryType , queryParams ) ; if ( org.apache.commons.collections.CollectionUtils.isEmpty ( collection ) ) { throw new javax.ws.rs.WebApplicationException ( Response.Status.NOT_FOUND ) ; } return mapCollection ( collection ) ; }
Source:
private void TimeZone_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { }

Target:
private void TimeZone_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }
Source:
public org.ovirt.engine.core.common.businessentities.SerialNumberPolicy getSerialNumberPolicy ( ) { return vmStatic.getSerialNumberPolicy ( ) ; }

Target:
public int getMigreatingToPort ( ) { return migreatingToPort ; }
Source:
public boolean isAccessible ( ) { return command.getIsAvailable ( ) ; }

Target:
public boolean isAccessible ( java.util.List < T > selectedItems ) { return command.getIsAvailable ( ) ; }
Source:
protected boolean executeRemoveVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid storageDomainId ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.RemoveVM , new org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters ( storagePoolId , id , storageDomainId ) ) . getSucceeded ( ) ; }

Target:
protected boolean executeRemoveVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid storageDomainId ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . runVdsCommand ( VDSCommandType.RemoveVM , new org.ovirt.engine.core.common.vdscommands.RemoveVMVDSCommandParameters ( storagePoolId , id , storageDomainId ) ) . getSucceeded ( ) ; }
Source:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > snapshots = dao.getAllWithQuery ( "select * from gluster_volume_snapshots_view" ) ; org.junit.Assert.assertNotNull ( snapshots ) ; org.junit.Assert.assertEquals ( 2 , snapshots.size ( ) ) ; }

Target:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > snapshots = dao.getAllWithQuery ( "select * from gluster_volume_snapshots_view" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( snapshots ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , snapshots.size ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return disk.isWipeAfterDelete ( ) ; }

Target:
private void removeMemory ( final org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { boolean success = removeMemoryVolumes ( snapshot.getMemoryVolume ( ) , org.ovirt.engine.core.bll.RemoveSnapshotCommand.getActionType ( ) , false ) ; if ( ! success ) { log.errorFormat ( "Cannot remove memory volumes for snapshot {0}" , snapshot.getId ( ) ) ; } }
Source:
public void testAllLunsSupportDiscardSucceeds ( ) { org.junit.Assert.assertTrue ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) ) ) ) ; }

Target:
public void testAllLunsSupportDiscardSucceeds ( ) { org.junit.Assert.assertTrue ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) ) ) ; }
Source:
public void setCurrentVdsId ( org.ovirt.engine.core.compat.Guid value ) { mCurrentVdsId = ( value == ( org.ovirt.engine.core.compat.Guid.Empty ) ) ? null : ( ( org.ovirt.engine.core.compat.Guid ) ( value ) ) ; }

Target:
public void setCurrentVdsId ( org.ovirt.engine.core.compat.Guid value ) { mCurrentVdsId = ( Guid.Empty.equals ( value ) ) ? null : value ; }
Source:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }

Target:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }
Source:
public void separatorNotNull ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = null ; org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 5 ) ; }

Target:
public void separatorNotNull ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = null ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 5 ) ) ; }
Source:
public void isNotISCSIConnectionAndDomain ( ) { connection.setstorage_type ( StorageType.NFS ) ; domain.setStorageType ( StorageType.NFS ) ; org.junit.Assert.assertEquals ( VdcBllMessages.ACTION_TYPE_FAILED_ACTION_IS_SUPPORTED_ONLY_FOR_ISCSI_DOMAINS , validator.isISCSIConnectionAndDomain ( domain ) . getMessage ( ) ) ; }

Target:
public void isNotISCSIConnectionAndDomain ( ) { connection.setstorage_type ( StorageType.NFS ) ; domain.setStorageType ( StorageType.NFS ) ; org.junit.Assert.assertEquals ( EngineMessage.ACTION_TYPE_FAILED_ACTION_IS_SUPPORTED_ONLY_FOR_ISCSI_DOMAINS , validator.isISCSIConnectionAndDomain ( domain ) . getMessage ( ) ) ; }
Source:
private void setUpGetEntityExpectations ( int index ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmTemplate , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ index ] } , getEntity ( index ) ) ; }

Target:
protected org.ovirt.engine.api.model.Template getRestModel ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendTemplatesResourceTest.getModel ( index ) ; }
Source:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . noValidOperation ( op1.getName ( ) ) ; }

Target:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return "" ; }
Source:
private boolean hasStorageDomainExternalStatus ( ) { return ( ( org.ovirt.engine.core.bll.AddExternalEventCommand.getParameters ( ) . getEvent ( ) . getStorageDomainId ( ) ) != null ) && ( ( org.ovirt.engine.core.bll.AddExternalEventCommand.getParameters ( ) . getExternalStatus ( ) ) != null ) ; }

Target:
private boolean hasHostExternalStatus ( ) { return ( ( getEvent ( ) . getVdsId ( ) ) != null ) && ( ( org.ovirt.engine.core.bll.AddExternalEventCommand.getParameters ( ) . getExternalStatus ( ) ) != null ) ; }
Source:
private void cpuManufacturersDontMatch ( ) { org.mockito.Mockito.doReturn ( false ) . when ( cmd ) . checkIfCpusSameManufacture ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VDSGroup.class ) ) ; }

Target:
private void cpuManufacturersDontMatch ( ) { org.mockito.Mockito.doReturn ( false ) . when ( cmd ) . checkIfCpusSameManufacture ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.Cluster.class ) ) ; }
Source:
protected boolean isImageExist ( ) { if ( ( getImage ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; } return true ; }

Target:
protected boolean isImageExist ( ) { if ( ( getImage ( ) ) == null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; } return true ; }
Source:
public void shouldDetectMissingRequiredHostNumaNodes ( ) { vdsNumaNodes.remove ( 0 ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_HOST_NODE_INVALID_INDEX ) ; }

Target:
public void shouldDetectMissingRequiredHostNumaNodes ( ) { vdsNumaNodes.remove ( 0 ) ; assertValidationFailure ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_HOST_NODE_INVALID_INDEX ) ; }
Source:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testModifyPoolMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; new org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc ( ) . modifyPool ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ; }

Target:
public void testRemovePoolMethod ( ) throws java.lang.Exception { expectNotInitializedException ( ) ; pool.removePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
org.ovirt.engine.core.common.businessentities.VDSType getHostType ( ) ;

Target:
java.util.EnumSet < org.ovirt.engine.core.common.businessentities.VDSType > getHostTypes ( ) ;
Source:
default void inputDetail ( ) { org.ovirt.api.metamodel.language.ApiLanguage.optional ( discardSnapshots ( ) ) ; org.ovirt.api.metamodel.language.ApiLanguage.optional ( exclusive ( ) ) ; org.ovirt.api.metamodel.language.ApiLanguage.or ( org.ovirt.api.metamodel.language.ApiLanguage.optional ( storageDomain ( ) . id ( ) ) , org.ovirt.api.metamodel.language.ApiLanguage.optional ( storageDomain ( ) . name ( ) ) ) ; }

Target:
default void inputDetail ( ) { org.ovirt.api.metamodel.language.ApiLanguage.optional ( discardSnapshots ( ) ) ; org.ovirt.api.metamodel.language.ApiLanguage.optional ( exclusive ( ) ) ; org.ovirt.api.metamodel.language.ApiLanguage.or ( org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( storageDomain ( ) . id ( ) ) , org.ovirt.api.metamodel.language.ApiLanguage.mandatory ( storageDomain ( ) . name ( ) ) ) ; }
Source:
public java.lang.Object getQueryableId ( ) { return org.ovirt.engine.core.compat.StringFormat.format ( "%1$s%2$s%3$s%4$s" , id.eventUpName , id.methodId , id.subscriberId , ( ( id.tagName ) == null ? "" : id.tagName ) ) ; }

Target:
public java.lang.Object getQueryableId ( ) { return org.ovirt.engine.core.compat.StringFormat.format ( "%1$s%2$s%3$s%4$s" , id.eventUpName , id.eventNotificationMethod , id.subscriberId , ( ( id.tagName ) == null ? "" : id.tagName ) ) ; }
Source:
public void setNumOfMonitors ( int value ) { this . vmStatic.setnum_of_monitors ( value ) ; }

Target:
public boolean getAllowConsoleReconnect ( ) { return this . vmStatic.isAllowConsoleReconnect ( ) ; }
Source:
boolean ValidateStoragePoolConnectionsInHost ( org.ovirt.engine.core.common.businessentities.VDS vds , java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > connections , org.ovirt.engine.core.compat.Guid storagePoolId ) ;

Target:
boolean validateStoragePoolConnectionsInHost ( org.ovirt.engine.core.common.businessentities.VDS vds , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections , org.ovirt.engine.core.compat.Guid storagePoolId ) ;
Source:
public static void removeUnusedIcons ( java.util.List < org.ovirt.engine.core.compat.Guid > iconIds ) { for ( org.ovirt.engine.core.compat.Guid iconId : iconIds ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmIconDao ( ) . removeIfUnused ( iconId ) ; } }

Target:
public void removeUnusedIcons ( java.util.List < org.ovirt.engine.core.compat.Guid > iconIds ) { for ( org.ovirt.engine.core.compat.Guid iconId : iconIds ) { vmIconDao.removeIfUnused ( iconId ) ; } }
Source:
public boolean restartVds ( org.ovirt.engine.core.compat.Guid vdsId ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.RestartVds , new org.ovirt.engine.core.common.action.FenceVdsActionParameters ( vdsId , org.ovirt.engine.core.common.businessentities.FenceActionType.Restart ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( ) ) . getSucceeded ( ) ; }

Target:
public void handleVdsMaintenanceTimeout ( final org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( java.util.Arrays.asList ( vds.getId ( ) ) , true ) ) ; }
Source:
public void onConsoleModelChanged ( org.ovirt.engine.ui.common.presenter.popup.ConsoleModelChangedEvent event ) { if ( ( modelProvider.getModel ( ) . getSelectedItem ( ) ) == null ) { return ; } setupConsole ( modelProvider ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gwt.user.client.Window.open ( dynamicMessages.consoleClientResourcesUrl ( ) , "_blank" , null ) ; }
Source:
public void testCleanExpiredUsersSessionsNoUsers ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNull ( "Get should return null since the session was removed" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testCleanExpiredUsersSessionsNoUsers ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNull ( "Get should return null since the session was removed" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
private static boolean isUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return ( user != null ) && ( ! ( user.getIsGroup ( ) ) ) ; }

Target:
private static boolean isUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return ( user != null ) && ( ! ( user.isGroup ( ) ) ) ; }
Source:
private void CancelConfirm ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( getWindow ( ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModel sanStorageModel = model.getSanStorageModel ( ) ; sanStorageModel.setForce ( false ) ; setConfirmWindow ( null ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( target ) ) ; model.getScanAlignmentCommand ( ) . setIsExecutionAllowed ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
public void testGetAllForStoragePoolFilteredWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAllForStoragePool ( storagePool.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.VdsGroupDaoTest.assertGetAllForStoragePoolInvalidResult ( result ) ; }

Target:
public void testGetAllForStoragePoolFilteredWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getAllForStoragePool ( storagePool.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.ClusterDaoTest.assertGetAllForStoragePoolInvalidResult ( result ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getDbFacade ( ) . getNetworkProviderDao ( ) . update ( org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getParameters ( ) . getProvider ( ) ) ; org.ovirt.engine.core.bll.provider.UpdateProviderCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { getProviderDao ( ) . update ( getProvider ( ) ) ; org.ovirt.engine.core.bll.provider.UpdateProviderCommand.setSucceeded ( true ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . save ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . AddTag ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.AddTagCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . save ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . addTag ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.AddTagCommand.setSucceeded ( true ) ; }
Source:
private boolean isValidParametersList ( ) { if ( getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return true ; }

Target:
private boolean isValidParametersList ( ) { if ( getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return true ; }
Source:
public void setTaskParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { childCmdEntity.setCommandParameters ( value ) ; }

Target:
public void setTaskParameters ( org.ovirt.engine.core.common.action.ActionParametersBase value ) { childCmdEntity.setCommandParameters ( value ) ; }
Source:
protected void logServerMessage ( final org.ovirt.engine.core.common.businessentities.VDS server , final org.ovirt.engine.core.common.AuditLogType logType ) { logAuditMessage ( null , null , server , logType , null , null ) ; }

Target:
protected void setLogUtil ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.gluster.GlusterAuditLogUtil logUtil ) { this . logUtil = logUtil ; }
Source:
public org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , double datum ) { return setDatum ( statistic , new java.math.BigDecimal ( datum , new java.math.MathContext ( 2 ) ) ) ; }

Target:
public org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , double datum ) { return org.ovirt.engine.api.restapi.utils.StatisticResourceUtils.setDatum ( statistic , datum ) ; }
Source:
public void testValidateLunDisk ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void testValidateLunDisk ( ) { org.mockito.Mockito.when ( diskDao.get ( diskImageGroupId ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public void testCanMoveVdsToMaintenanceFalse ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setstatus ( VDSStatus.PreparingForMaintenance ) ; vds.setvm_count ( 1 ) ; org.junit.Assert.assertFalse ( strategy.canMoveToMaintenance ( vds ) ) ; }

Target:
public void testCanMoveVdsToMaintenanceFalse ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setStatus ( VDSStatus.PreparingForMaintenance ) ; vds.setVmCount ( 1 ) ; org.junit.Assert.assertFalse ( strategy.canMoveToMaintenance ( vds ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;