auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void portIsInvalid ( ) { org.junit.Assert.assertThat ( validator.portIsValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_VDS_WITH_INVALID_SSH_PORT ) ) ; }

Target:
public void portIsInvalid ( ) { org.junit.Assert.assertThat ( validator.portIsValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_WITH_INVALID_SSH_PORT ) ) ; }
Source:
private boolean isImageDiskOK ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( disk ) ) . getimageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.OK ) ) ; }

Target:
private boolean isImageDiskOK ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( disk ) ) . getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.OK ) ) ; }
Source:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.RemoveStorageServerConnection.getValue ( ) , lun , Guid.Empty ) ; }

Target:
public boolean disconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.DisconnectStorageServerConnection.getValue ( ) ) ; }
Source:
public void setCommandType ( org.ovirt.engine.core.common.action.VdcActionType cmdType ) { cmdEntity.setCommandType ( cmdType ) ; }

Target:
public void setCommandType ( org.ovirt.engine.core.common.action.VdcActionType cmdType ) { childCmdEntity.setCommandType ( cmdType ) ; }
Source:
public void versionDecrease ( ) { createCommandWithOlderVersion ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; VdsExist ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void switchTab ( org.ovirt.engine.ui.common.widget.dialog.tab.DialogTab tab ) { setActiveTab ( tab ) ; setTabContent ( tab.getContent ( ) ) ; }

Target:
private void removeTabClasses ( ) { tabPanel.removeStyleName ( Styles.TABBABLE ) ; navTabs.removeStyleName ( Styles.NAV ) ; navTabs.removeStyleName ( Styles.NAV_TABS ) ; }
Source:
public int getVlanId ( ) { java.lang.Integer vlanId = getEntity ( ) . getVlanId ( ) ; return vlanId == null ? - 1 : vlanId ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkStatus getStatus ( ) { return ( getNetwork ( ) . getCluster ( ) ) == null ? null : getNetwork ( ) . getCluster ( ) . getStatus ( ) ; }
Source:
public void setIsInternal ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > isInternal ) { this . isInternal = isInternal ; }

Target:
public void setDiskStorageType ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType > diskStorageType ) { this . diskStorageType = diskStorageType ; }
Source:
void setcreation_date ( java.util.Date value ) ;

Target:
void setCreationDate ( java.util.Date creationDate ) ;
Source:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . mVdsStatic.setvds_group_id ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSType getVdsType ( ) { return this . mVdsStatic.getVdsType ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getDiskImageDAO ( ) . getSnapshotById ( getCommand ( ) . getParameters ( ) . getDestinationImageId ( ) ) ) ) ; } return disk ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getDiskImageDao ( ) . getSnapshotById ( getCommand ( ) . getParameters ( ) . getDestinationImageId ( ) ) ) ) ; } return disk ; }
Source:
protected boolean removeVmLease ( org.ovirt.engine.core.compat.Guid leaseStorageDomainId , org.ovirt.engine.core.compat.Guid vmId ) { if ( leaseStorageDomainId == null ) { return true ; } return runInternalActionWithTasksContext ( ActionType.RemoveVmLease , new org.ovirt.engine.core.common.action.VmLeaseParameters ( getStoragePoolId ( ) , leaseStorageDomainId , vmId ) ) . getSucceeded ( ) ; }

Target:
protected boolean shouldUpdateHostedEngineOvf ( ) { return false ; }
Source:
public void settype ( java.lang.Integer value ) { this . type = value ; }

Target:
public void setType ( java.lang.Integer value ) { this . type = value ; }
Source:
public void setVmPauseStatus ( org.ovirt.engine.core.common.businessentities.VmPauseStatus aPauseStatus ) { this . mVmDynamic.setPauseStatus ( aPauseStatus ) ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setId ( value ) ; this . vmDynamic.setId ( value ) ; this . vmStatistics.setId ( value ) ; }
Source:
protected boolean acquireLockInternal ( ) { return true ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmTemplate getTemplateForImage ( ) { return null ; }
Source:
public void testValidateBondOptionsForNewAttachementWithVmNetwork ( ) { validateValidBonds ( false , true , true , false ) ; }

Target:
public void validateBondOptionsForNewAttachementWithOutOfSyncVmNetworOverridden ( ) { validateValidBondsForAllBondModes ( false , true , false , true ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.FenceStatusReturnForXmlRpc fenceNode ( java.lang.String ip , java.lang.String port , java.lang.String type , java.lang.String user , java.lang.String password , java.lang.String action , java.lang.String secured , java.lang.String options ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.FenceStatusReturnForXmlRpc fenceNode ( java.lang.String ip , java.lang.String port , java.lang.String type , java.lang.String user , java.lang.String password , java.lang.String action , java.lang.String secured , java.lang.String options , java.util.Map < java.lang.String , java.lang.Object > fencingPolicy ) ;
Source:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.bll.CommandBase < ? > action , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { org.ovirt.engine.core.bll.job.ExecutionHandler.setExecutionContextForTasks ( action.getContext ( ) , executionContext , null ) ; return runAction ( action , true ) ; }
Source:
public static java.lang.Integer getMaxMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version clusterVersion ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getMaximumRam ( osId , clusterVersion ) ; }

Target:
private static org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }
Source:
protected boolean wasSkippedDueToPolicy ( java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue fenceResult = null ; if ( returnValue instanceof org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue ) { fenceResult = ( ( org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue ) ( returnValue ) ) ; } return ( fenceResult != null ) && ( fenceResult.getIsSkipped ( ) ) ; }

Target:
protected boolean wasSkippedDueToPolicy ( java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue fenceResult = null ; if ( returnValue instanceof org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue ) { fenceResult = ( ( org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue ) ( returnValue ) ) ; } return ( fenceResult != null ) && ( fenceResult.getIsSkippedDueToPolicy ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { onShowBrickAdvancedDetails ( volumeEntity ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.Cluster returnValue ) { onShowBrickAdvancedDetails ( volumeEntity ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > searchStoragePool ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getStoragePoolDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > searchStoragePool ( ) { return genericSearch ( storagePoolDao , true ) ; }
Source:
public void testGetQuotaWithNoExistingName ( ) { org.ovirt.engine.core.common.businessentities.Quota quotaGeneralToSpecific = dao.getQuotaByQuotaName ( "Any name" , FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertNull ( quotaGeneralToSpecific ) ; }

Target:
public void testGetQuotaWithNoExistingName ( ) { org.ovirt.engine.core.common.businessentities.Quota quotaGeneralToSpecific = dao.getQuotaByQuotaName ( "Any name" , FixturesTool.STORAGE_POOL_NFS ) ; org.junit.jupiter.api.Assertions.assertNull ( quotaGeneralToSpecific ) ; }
Source:
public void testNewStorageTypes ( ) { junit.framework.Assert.assertTrue ( "A storage type was added/removed. Update this test, and the isFileDomain/isBlockDomain method accordingly" , ( ( org.ovirt.engine.core.common.businessentities.StorageType.values ( ) . length ) == 7 ) ) ; }

Target:
public void testNewStorageTypes ( ) { junit.framework.Assert.assertTrue ( "A storage type was added/removed. Update this test, and the isFileDomain/isBlockDomain method accordingly" , ( ( org.ovirt.engine.core.common.businessentities.StorageType.values ( ) . length ) == 8 ) ) ; }
Source:
public java.lang.Integer getUtcDiff ( ) { return this . vmDynamic.getutc_diff ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getLastVdsRunOn ( ) { return this . vmDynamic.getLastVdsRunOn ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.Network findManagementNetwork ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { for ( org.ovirt.engine.core.common.businessentities.network.Network network : networks ) { if ( network.getCluster ( ) . isManagement ( ) ) { return network ; } } return null ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getCluster ( ) . isManagement ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filterStorageDomains ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > domainsInPool , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { for ( org.ovirt.engine.core.bll.memory.storageDomainFilters.StorageDomainFilter storageDomainFilter : getStorageDomainFilters ( ) ) { domainsInPool = storageDomainFilter.filterStorageDomains ( domainsInPool , disksList ) ; } return domainsInPool ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filterStorageDomains ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > domainsInPool , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { for ( org.ovirt.engine.core.bll.memory.sdfilters.StorageDomainFilter storageDomainFilter : getStorageDomainFilters ( ) ) { domainsInPool = storageDomainFilter.filterStorageDomains ( domainsInPool , memoryDisks ) ; } return domainsInPool ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > createVolumeContainer ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > volumeInfo ) ;
Source:
private java.util.List < java.lang.String > getConsoleDevicesForEntity ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( java.util.List.class , VdcQueryType.GetConsoleDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetConsoleDevices" , true ) ; }

Target:
private java.util.List < java.lang.String > getConsoleDevicesForEntity ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( java.util.List.class , QueryType.GetConsoleDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetConsoleDevices" , true ) ; }
Source:
public void testDBConnectionWithConnection ( ) { underTest = new org.ovirt.engine.core.dal.dbbroker.DbConnectionUtil ( jdbcTemplate , 666 , 777 ) ; org.junit.Assert.assertTrue ( underTest.checkDBConnection ( ) ) ; }

Target:
public void testDBConnectionWithConnection ( ) { underTest = new org.ovirt.engine.core.dal.dbbroker.DbConnectionUtil ( jdbcTemplate , 666 , 777 ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.checkDBConnection ( ) ) ; }
Source:
void Initialize ( java.util.ArrayList parameters ) ;

Target:
void initialize ( java.util.ArrayList parameters ) ;
Source:
public void testIgnoreAddressWhenV6ExplicitlyGiven ( ) { org.ovirt.engine.api.model.Ip ip = new org.ovirt.engine.api.model.Ip ( ) ; ip.setAddress ( "127.0.0.1" ) ; ip.setVersion ( IpVersion.V6 ) ; org.ovirt.engine.api.model.IpVersion version = org.ovirt.engine.api.restapi.types.IpHelper.getVersion ( ip ) ; org.junit.Assert.assertEquals ( IpVersion.V6 , version ) ; }

Target:
public void testIgnoreAddressWhenV6ExplicitlyGiven ( ) { org.ovirt.engine.api.model.Ip ip = new org.ovirt.engine.api.model.Ip ( ) ; ip.setAddress ( "127.0.0.1" ) ; ip.setVersion ( IpVersion.V6 ) ; org.ovirt.engine.api.model.IpVersion version = org.ovirt.engine.api.restapi.types.IpHelper.getVersion ( ip ) ; org.junit.jupiter.api.Assertions.assertEquals ( IpVersion.V6 , version ) ; }
Source:
static org.ovirt.engine.api.model.CdRom getModel ( int index ) { org.ovirt.engine.api.model.CdRom model = new org.ovirt.engine.api.model.CdRom ( ) ; model.setFile ( new org.ovirt.engine.api.model.File ( ) ) ; model.getFile ( ) . setId ( org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.ISO_PATH ) ; return model ; }

Target:
static org.ovirt.engine.api.model.Cdrom getModel ( int index ) { org.ovirt.engine.api.model.Cdrom model = new org.ovirt.engine.api.model.Cdrom ( ) ; model.setFile ( new org.ovirt.engine.api.model.File ( ) ) ; model.getFile ( ) . setId ( org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.ISO_PATH ) ; return model ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getCommandsWithCallBackEnabled ( ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getCommandsWithCallbackEnabled ( ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.VmTemplate getTemplateEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VmTemplate.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.VM getEntityWithProvidedId ( int index , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.api.model.VM vm = new org.ovirt.engine.api.model.VM ( ) ; return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( vm , vm.getStatisticsData ( ) , index , vmId ) ; }
Source:
protected boolean shouldRemoveMemorySnapshotVolumes ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getDbFacade ( ) . getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 1 ) ; }

Target:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getDbFacade ( ) . getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 1 ) ; }
Source:
public void passwordNotNeededWhenNoInstallationRequired ( ) { org.junit.Assert.assertThat ( validator.passwordProvidedForHostInstallation ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextEnum ( org.ovirt.engine.core.common.action.VdsOperationActionParameters.AuthenticationMethod.class ) , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passwordNotNeededWhenNoInstallationRequired ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.passwordProvidedForHostInstallation ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextEnum ( org.ovirt.engine.core.common.action.VdsOperationActionParameters.AuthenticationMethod.class ) , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private static void addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) , true , false , null , false ) ; }

Target:
public static boolean hasConsoleDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getConsoleDevices ( vmId ) . isEmpty ( ) ) ; }
Source:
public boolean canConnect ( ) { if ( ! ( canBeSelected ( ) ) ) { return false ; } return getForceVmStatusUp ( ) ? ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) : isVmRunning ( ) ; }

Target:
private boolean isVmRunning ( ) { switch ( getEntity ( ) . getStatus ( ) ) { case PoweringUp : case Up : case RebootInProgress : case PoweringDown : case Paused : return true ; default : return false ; } }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServicesList ( java.lang.String [ ] serviceNames ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServicesList ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String [ ] serviceNames ) ;
Source:
protected void removeVmStatic ( ) { org.ovirt.engine.core.bll.VmCommand.getVmStaticDAO ( ) . remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }

Target:
protected void removeVmStatic ( boolean removePermissions ) { org.ovirt.engine.core.bll.VmCommand.getVmStaticDAO ( ) . remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) , removePermissions ) ; }
Source:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Vm vm , java.util.Map < org.ovirt.engine.core.compat.Guid , java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsDevice > > vmsGraphicsDevices ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayDataInternal ( res , vm , vmsGraphicsDevices ) ; }

Target:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Vm vm , java.util.Map < org.ovirt.engine.core.compat.Guid , java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsDevice > > vmsGraphicsDevices , boolean nextRun ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayDataInternal ( res , vm , vmsGraphicsDevices , nextRun ) ; }
Source:
public void testDebugFaultDetail ( ) throws java.lang.Exception { setUpLogExpectations ( false ) ; java.lang.Throwable t = new java.lang.Exception ( "snafu" ) ; java.lang.String detail = org.ovirt.engine.api.restapi.resource.AbstractBackendResource.detail ( t ) ; org.junit.Assert.assertEquals ( t.getMessage ( ) , detail ) ; }

Target:
public void testDebugFaultDetail ( ) throws java.lang.Exception { setUpLogExpectations ( false ) ; java.lang.Throwable t = new java.lang.Exception ( "snafu" ) ; java.lang.String detail = org.ovirt.engine.api.restapi.resource.AbstractBackendResource.detail ( t ) ; org.junit.jupiter.api.Assertions.assertEquals ( t.getMessage ( ) , detail ) ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { if ( ( getWindow ( ) ) != null ) { getWindow ( ) . stopProgress ( ) ; } cancel ( ) ; updateActionAvailability ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { editedVm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) ; vmInitLoaded ( editedVm ) ; }
Source:
public boolean isAccessible ( ) { return true ; }

Target:
public boolean isAccessible ( java.util.List < T > selectedItems ) { return true ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.model.StorageDomain ( ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.model.StorageDomain ( ) ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.storage.DeactivateStorageDomainCommand.getParameters ( ) . getIsInternal ( ) ? org.ovirt.engine.core.bll.storage.DeactivateStorageDomainCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.SYSTEM_DEACTIVATED_STORAGE_DOMAIN : org.ovirt.engine.core.common.AuditLogType.SYSTEM_DEACTIVATE_STORAGE_DOMAIN_FAILED : org.ovirt.engine.core.bll.storage.DeactivateStorageDomainCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_DEACTIVATED_STORAGE_DOMAIN : org.ovirt.engine.core.common.AuditLogType.USER_DEACTIVATE_STORAGE_DOMAIN_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.storage.DeactivateStorageDomainCommand.getParameters ( ) . getIsInternal ( ) ? org.ovirt.engine.core.bll.storage.DeactivateStorageDomainCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.SYSTEM_DEACTIVATED_STORAGE_DOMAIN : org.ovirt.engine.core.common.AuditLogType.SYSTEM_DEACTIVATE_STORAGE_DOMAIN_FAILED : org.ovirt.engine.core.bll.storage.DeactivateStorageDomainCommand.getSucceeded ( ) ? isLastMaster ? org.ovirt.engine.core.common.AuditLogType.USER_DEACTIVATED_LAST_MASTER_STORAGE_DOMAIN : org.ovirt.engine.core.common.AuditLogType.USER_DEACTIVATED_STORAGE_DOMAIN : org.ovirt.engine.core.common.AuditLogType.USER_DEACTIVATE_STORAGE_DOMAIN_FAILED ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn allocateVolume ( java.lang.String spUUID , java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String volUUID , java.lang.String size ) ;

Target:
java.util.concurrent.FutureTask < java.util.Map < java.lang.String , java.lang.Object > > timeBoundPollConfirmConnectivity ( long timeout , java.util.concurrent.TimeUnit unit ) ;
Source:
public void testcontainsIlegalCharacters ( ) { java.lang.String [ ] straValid = new java.lang.String [ ] { "www_redhat_com" , "127001" , "www_REDHAT_1" } ; java.lang.String [ ] straInvalid = new java.lang.String [ ] { "www.redhatcom" , "me@localhost" , "no/worries" } ; for ( java.lang.String s : straValid ) { org.junit.Assert.assertTrue ( ( "Valid strings: " + s ) , ( ! ( org.ovirt.engine.core.common.utils.ValidationUtils.containsIlegalCharacters ( s ) ) ) ) ; } for ( java.lang.String s : straInvalid ) { org.junit.Assert.assertTrue ( ( "Invalid strings: " + s ) , org.ovirt.engine.core.common.utils.ValidationUtils.containsIlegalCharacters ( s ) ) ; } }

Target:
public void testcontainsIlegalCharacters ( ) { java.lang.String [ ] straValid = new java.lang.String [ ] { "www_redhat_com" , "127001" , "www_REDHAT_1" } ; java.lang.String [ ] straInvalid = new java.lang.String [ ] { "www.redhatcom" , "me@localhost" , "no/worries" } ; for ( java.lang.String s : straValid ) { org.junit.Assert.assertTrue ( ( "Valid strings: " + s ) , ( ! ( org.ovirt.engine.core.common.utils.ValidationUtilsTest.containsIlegalCharacters ( s ) ) ) ) ; } for ( java.lang.String s : straInvalid ) { org.junit.Assert.assertTrue ( ( "Invalid strings: " + s ) , org.ovirt.engine.core.common.utils.ValidationUtilsTest.containsIlegalCharacters ( s ) ) ; } }
Source:
protected void itemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { super . itemsCollectionChanged ( sender , e ) ; UpdateActionAvailability ( ) ; }

Target:
protected void itemsChanged ( ) { super . itemsChanged ( ) ; updateActionAvailability ( ) ; }
Source:
private boolean isPrimaryAddressExist ( ) { return ( ( networkDataCenterIpConfigurationDefinition ) != null ) && ( networkDataCenterIpConfigurationDefinition.hasIpv4PrimaryAddressSet ( ) ) ; }

Target:
private boolean isIpv4PrimaryAddressExist ( ) { return ( ( networkDataCenterIpConfigurationDefinition ) != null ) && ( networkDataCenterIpConfigurationDefinition.hasIpv4PrimaryAddressSet ( ) ) ; }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "VdsManager::refreshVdsRunTimeInfo::Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getvds_name ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getvds_name ( ) , ex ) ; }
Source:
public void asMapEmpty ( ) { org.junit.Assert.assertEquals ( new org.ovirt.engine.core.bll.migration.ConvergenceScheduleTest.ExpectedConvergence ( ) , schedule.asMap ( ) ) ; }

Target:
public void asMapEmpty ( ) { org.junit.jupiter.api.Assertions.assertEquals ( new org.ovirt.engine.core.bll.migration.ConvergenceScheduleTest.ExpectedConvergence ( ) , schedule.asMap ( ) ) ; }
Source:
public void shouldNotDoWithTwoPinnedHost ( ) { vm.setDedicatedVmForVdsList ( java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.ACTION_TYPE_FAILED_VM_PINNED_TO_MULTIPLE_HOSTS ) ; }

Target:
public void shouldNotDoWithTwoPinnedHost ( ) { vm.setDedicatedVmForVdsList ( java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; assertValidationFailure ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.ACTION_TYPE_FAILED_VM_PINNED_TO_MULTIPLE_HOSTS ) ; }
Source:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaVmListModel > getQuotaVmListProvider ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaVmListModel > ( ginjector , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel.class , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaVmListModel.class ) ; }

Target:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaVmListModel > getQuotaVmListProvider ( com.google.gwt.event.shared.EventBus eventBus , com.google.inject.Provider < org.ovirt.engine.ui.common.presenter.popup.DefaultConfirmationPopupPresenterWidget > defaultConfirmPopupProvider ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaVmListModel > ( eventBus , defaultConfirmPopupProvider , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel.class , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaVmListModel.class ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.VDS > object ) { return object.getEntity ( ) . getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHostData object ) { return object.getEntity ( ) . getName ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > ) ( source ) ) ; }
Source:
public void parametersWithSecureDeletionAreNotFixedOnFileDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false ) , true ) ; assertPostZeroValue ( parameters , false ) ; }

Target:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixPostZeroField ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true , false ) , false ) ; assertPostZeroValue ( parameters , true ) ; }
Source:
private void createParameters ( ) { parameters = new org.ovirt.engine.core.common.action.ManagementNetworkOnClusterOperationParameters ( cluster ) ; parameters.setCorrelationId ( CORRELATION_ID ) ; }

Target:
private void createParameters ( ) { parameters = new org.ovirt.engine.core.common.action.ManagementNetworkOnClusterOperationParameters ( cluster ) ; parameters.setCorrelationId ( org.ovirt.engine.core.bll.AddClusterCommandTest.CORRELATION_ID ) ; }
Source:
public void setvmt_guid ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvmt_guid ( value ) ; }

Target:
public java.lang.Integer getUsageCpuPercent ( ) { return this . vmStatistics.getusage_cpu_percent ( ) ; }
Source:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__DISK_PROFILE ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addValidationMessage ( EngineMessage.VAR__TYPE__DISK_PROFILE ) ; }
Source:
private boolean primaryAddressNotSet ( ) { return ( ! ( hasIpConfiguration ( ) ) ) || ( ! ( getIpConfiguration ( ) . hasPrimaryAddressSet ( ) ) ) ; }

Target:
private boolean primaryIpv4AddressNotSet ( ) { return ( ! ( hasIpConfiguration ( ) ) ) || ( ! ( getIpConfiguration ( ) . hasIpv4PrimaryAddressSet ( ) ) ) ; }
Source:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.auditLogDirector.log ( auditLogable , logType ) ; }

Target:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector ) { auditLogDirector.log ( auditLogable , logType ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc refreshStoragePool ( java.lang.String spUUID , java.lang.String msdUUID , int masterVersion ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.QemuImageInfoReturnForXmlRpc getQemuImageInfo ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
public org.ovirt.engine.core.common.businessentities.Tags getTagByName ( java.lang.String tagName ) { if ( tagsMapByName.containsKey ( tagName ) ) { return tagsMapByName.get ( tagName ) ; } else { return null ; } }

Target:
public org.ovirt.engine.core.common.businessentities.Tags getTagByTagName ( java.lang.String tagName ) { if ( tagsMapByName.containsKey ( tagName ) ) { return tagsMapByName.get ( tagName ) ; } else { return null ; } }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getExternalVmFromOva ( java.lang.String ovaPath ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.getExternalVmFromOva ( ovaPath ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc ( xmlRpcReturnValue ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc getExternalVmFromOva ( java.lang.String ovaPath ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.getExternalVmFromOva ( ovaPath ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc ( xmlRpcReturnValue ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return org.ovirt.engine.core.compat.Guid.createGuidFromString ( rs.getString ( "vm_guid" ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( rs.getString ( "vm_guid" ) ) ; }
Source:
public void testSave ( ) { dao.save ( newLUNStorageMap ) ; org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map result = dao.get ( newLUNStorageMap.getId ( ) ) ; assertNotNull ( result ) ; assertEquals ( newLUNStorageMap , result ) ; }

Target:
public void testSave ( ) { dao.save ( newLUNStorageMap ) ; org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map result = dao.get ( newLUNStorageMap.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newLUNStorageMap , result ) ; }
Source:
public void setDiskStorageType ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType diskStorageType ) { allButton.setValue ( ( diskStorageType == null ) ) ; imagesButton.setValue ( ( diskStorageType == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) ) ) ; lunsButton.setValue ( ( diskStorageType == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.LUN ) ) ) ; }

Target:
public void setDiskStorageType ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType diskStorageType ) { allButton.setValue ( ( diskStorageType == null ) ) ; imagesButton.setValue ( ( diskStorageType == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) ) ; lunsButton.setValue ( ( diskStorageType == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN ) ) ) ; }
Source:
public void testGetAllFromDisksIncludingSnapshots ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllFromDisksIncludingSnapshots ( null , false ) ; org.junit.Assert.assertEquals ( "wrong number of returned disks" , 15 , result.size ( ) ) ; }

Target:
public void testGetAllFromDisksIncludingSnapshots ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllFromDisksIncludingSnapshots ( null , false ) ; org.junit.jupiter.api.Assertions.assertEquals ( 15 , result.size ( ) , "wrong number of returned disks" ) ; }
Source:
private void handlePaused ( final org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand < T > . StateContext context ) { periodicPauseLog ( context.entity , context.iterationTimestamp ) ; stopImageTransferSession ( context.entity ) ; }

Target:
private void handlePaused ( final org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand < T > . StateContext context ) { periodicPauseLog ( context.entity , context.iterationTimestamp ) ; if ( ( context.entity.getImagedTicketId ( ) ) != null ) { stopImageTransferSession ( context.entity ) ; } }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = getEntity ( ) ; if ( provider == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllNetworksForProvider , new org.ovirt.engine.core.common.queries.IdQueryParameters ( provider.getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = getEntity ( ) ; if ( provider == null ) { return ; } super . syncSearch ( QueryType.GetAllNetworksForProvider , new org.ovirt.engine.core.common.queries.IdQueryParameters ( provider.getId ( ) ) ) ; }
Source:
public static void AddVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.AddVdsAlert ( vdsId , type , new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; }

Target:
public static void AddVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.AddVdsAlert ( vdsId , type , auditLogDirector , new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; }
Source:
private void removeVmSnapshots ( org.ovirt.engine.core.common.businessentities.VM vm ) { java.util.Collection < java.lang.String > memoriesOfRemovedSnapshots = new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( vm.getId ( ) ) ; new org.ovirt.engine.core.bll.memory.MemoryImageRemover ( vm , this ) . removeMemoryVolumes ( memoriesOfRemovedSnapshots ) ; }

Target:
private void removeVmSnapshots ( org.ovirt.engine.core.common.businessentities.VM vm ) { java.util.Set < java.lang.String > memoriesOfRemovedSnapshots = snapshotsManager.removeSnapshots ( vm.getId ( ) ) ; new org.ovirt.engine.core.bll.memory.MemoryImageRemover ( vm , this ) . removeMemoryVolumes ( memoriesOfRemovedSnapshots ) ; }
Source:
public void runningSucceded ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = backend.getResourceManager ( ) . GetAsyncCommandForVm ( vmId ) ; if ( command != null ) { command.runningSucceded ( ) ; } }

Target:
public void runningSucceded ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = vdsBroker.GetAsyncCommandForVm ( vmId ) ; if ( command != null ) { command.runningSucceded ( ) ; } }
Source:
java.lang.String osNameUpperCasedAndUnderscored ( java.lang.String name ) ;

Target:
boolean isSingleQxlDeviceEnabled ( int osId ) ;
Source:
public void setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { this . mVmStatic.setMigrationSupport ( migrationSupport ) ; }

Target:
public int getNiceLevel ( ) { return this . vmStatic.getnice_level ( ) ; }
Source:
public boolean processHardwareCapabilitiesNeeded ( org.ovirt.engine.core.common.businessentities.VDS oldVds , org.ovirt.engine.core.common.businessentities.VDS newVds ) { return ! ( org.apache.commons.lang.StringUtils.equals ( oldVds.getcpu_flags ( ) , newVds.getcpu_flags ( ) ) ) ; }

Target:
public boolean processHardwareCapabilitiesNeeded ( org.ovirt.engine.core.common.businessentities.VDS oldVds , org.ovirt.engine.core.common.businessentities.VDS newVds ) { return ! ( org.apache.commons.lang.StringUtils.equals ( oldVds.getCpuFlags ( ) , newVds.getCpuFlags ( ) ) ) ; }
Source:
private void handlePausedUser ( final org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand < T > . StateContext context ) { handlePaused ( context ) ; }

Target:
private void handlePausedUser ( final org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand < T > . StateContext context ) { handlePaused ( context ) ; }
Source:
private boolean isDiskValidForStorage ( org.ovirt.engine.core.common.businessentities.DiskImage disk , org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { if ( ( disk.isShareable ( ) ) && ( ( storage.getStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.GLUSTERFS ) ) ) { return false ; } return true ; }

Target:
private boolean isDiskValidForStorage ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk , org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { if ( ( disk.isShareable ( ) ) && ( ( storage.getStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.StorageType.GLUSTERFS ) ) ) { return false ; } return true ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value , java.lang.String reason ) { setIsChangeable ( value ) ; if ( ! value ) { setChangeProhibitionReason ( reason ) ; } return this ; }

Target:
public void setWindowProperty ( java.lang.String propName , org.ovirt.engine.ui.uicommonweb.models.Model value ) { if ( org.ovirt.engine.ui.uicommonweb.models.Model.PROP_WINDOW.equals ( propName ) ) { setWindow ( value ) ; } }
Source:
public void updateWithCpuLowerThanHost ( ) { createCommandWithDefaultVdsGroup ( ) ; setupCpu ( ) ; clusterHasVds ( ) ; cpuFlagsMissing ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( EngineMessage.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }

Target:
public void updateWithCpuLowerThanHost ( ) { createCommandWithDefaultVdsGroup ( ) ; setupCpu ( ) ; clusterHasVds ( ) ; cpuFlagsMissing ( ) ; architectureIsUpdatable ( ) ; validateFailedWithReason ( EngineMessage.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }
Source:
protected org.ovirt.engine.api.model.GlusterVolume addParents ( org.ovirt.engine.api.model.GlusterVolume model ) { org.ovirt.engine.api.model.Cluster cluster = new org.ovirt.engine.api.model.Cluster ( ) ; cluster.setId ( org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterBricksResourceTest.clusterId.toString ( ) ) ; model.setCluster ( cluster ) ; model.setId ( org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterBricksResourceTest.volumeId.toString ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.GlusterVolume addParents ( org.ovirt.engine.api.model.GlusterVolume model ) { org.ovirt.engine.api.model.Cluster cluster = new org.ovirt.engine.api.model.Cluster ( ) ; cluster.setId ( org.ovirt.engine.api.restapi.resource.gluster.GlusterTestHelper.clusterId.toString ( ) ) ; model.setCluster ( cluster ) ; model.setId ( org.ovirt.engine.api.restapi.resource.gluster.GlusterTestHelper.volumeId.toString ( ) ) ; return model ; }
Source:
public void cantDowngradeIfImpliesFormatDowngrading ( ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , StorageType.UNKNOWN ) ; setAttachedDomains ( sd ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_DECREASING_COMPATIBILITY_VERSION_CAUSES_STORAGE_FORMAT_DOWNGRADING ) ; }

Target:
public void cantDowngradeIfImpliesFormatDowngrading ( ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , StorageType.UNKNOWN ) ; setAttachedDomains ( sd ) ; canDoActionFailed ( EngineMessage.ACTION_TYPE_FAILED_DECREASING_COMPATIBILITY_VERSION_CAUSES_STORAGE_FORMAT_DOWNGRADING ) ; }
Source:
public org.ovirt.engine.api.resource.aaa.SSHPublicKeyResource getSSHPublicKeySubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.aaa.BackendSSHPublicKeyResource ( id , userId , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.aaa.SSHPublicKeyResource getSSHPublicKeyResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.aaa.BackendSSHPublicKeyResource ( id , userId , this ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.OnFinish ( storageListModel.context , true , storageListModel.storageModel ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.onFinish ( storageListModel.context , true , storageListModel.storageModel ) ; }
Source:
private void handlePausedUser ( final org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand < T > . StateContext context ) { handlePaused ( context ) ; }

Target:
private void handlePausedUser ( final org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand < T > . StateContext context ) { auditLog ( this , AuditLogType.TRANSFER_IMAGE_PAUSED_BY_USER ) ; handlePaused ( context ) ; }
Source:
public void onEditSnapshotSchedule ( ) { final org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotModel snapshotModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotModel ) ( getWindow ( ) ) ) ; if ( ! ( snapshotModel.validate ( ) ) ) { return ; } scheduleSnapshot ( snapshotModel , true ) ; }

Target:
private void onEditSnapshotScheduleInternal ( ) { final org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotModel snapshotModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotModel ) ( getWindow ( ) ) ) ; if ( ! ( snapshotModel.validate ( false ) ) ) { return ; } setConfirmWindow ( null ) ; scheduleSnapshot ( snapshotModel , true ) ; }