auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDAO ( ) . getPermittedStorageDomainsById ( org.ovirt.engine.core.bll.GetPermittedStorageDomainsByTemplateIdQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetPermittedStorageDomainsByTemplateIdQuery.getParameters ( ) . getActionGroup ( ) , domainId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getPermittedStorageDomainsById ( org.ovirt.engine.core.bll.GetPermittedStorageDomainsByTemplateIdQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetPermittedStorageDomainsByTemplateIdQuery.getParameters ( ) . getActionGroup ( ) , domainId ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( cpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( cpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserIdIfExternal ( ) ) ) ; }
Source:
public void setLabel ( java.lang.String label ) { this . label.setInnerText ( label ) ; }

Target:
public void setLabel ( java.lang.String label ) { this . label.setText ( label ) ; }
Source:
public void canDoActionSucceeds ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveExternalEventCommand < org.ovirt.engine.core.common.action.RemoveExternalEventParameters > ( new org.ovirt.engine.core.common.action.RemoveExternalEventParameters ( org.ovirt.engine.core.bll.RemoveExternalEventCommandTest.EVENT_ID_3 ) ) ) ; prepareMocks ( command ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand < org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters > ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_3 ) ) ) ; prepareMocks ( command ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
public boolean isOnline ( ) { return ( this . status ) == ( GlusterVolumeStatus.UP ) ; }

Target:
public boolean isOnline ( ) { return ( this . status ) == ( GlusterStatus.UP ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; allNetworks = networks ; initNetworkModels ( ) ; initDcNetworkParams ( ) ; queryInterfaces ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( returnValue ) ; postOnSetupNetworks ( ) ; }
Source:
public void testGetForStoragePoolWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetForStoragePoolWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , FixturesTool.STORAGE_POOL_NFS ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void DefaultLog ( ) { }

Target:
private void allocateCustomValues ( ) { if ( java.util.Collections.EMPTY_MAP.equals ( customValues ) ) { customValues = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; } }
Source:
public void setis_initialized ( boolean value ) { this . mVmStatic.setis_initialized ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "is_initialized" ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.UsbPolicy getUsbPolicy ( ) { return vmStatic.getUsbPolicy ( ) ; }
Source:
public boolean wasProgress ( ) { if ( ( this . index ) == 0 ) { return false ; } else { this . index = 0 ; return true ; } }

Target:
public boolean wasProgress ( ) { if ( ( _index ) == 0 ) { return false ; } else { _index = 0 ; return true ; } }
Source:
protected java.util.List < org.ovirt.engine.core.bll.tasks.SPMAsyncTaskHandler > initTaskHandlers ( ) { return java.util.Arrays.< org.ovirt.engine.core.bll.tasks.SPMAsyncTaskHandler > asList ( new org.ovirt.engine.core.bll.storage.lsm.CreateImagePlaceholderTaskHandler ( this ) , new org.ovirt.engine.core.bll.storage.lsm.VmReplicateDiskStartTaskHandler ( this ) , new org.ovirt.engine.core.bll.storage.lsm.VmReplicateDiskFinishTaskHandler ( this ) ) ; }

Target:
protected void endSuccessfully ( ) { super . endSuccessfully ( ) ; updateImagesInfo ( ) ; unlockDisk ( ) ; org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.setSucceeded ( true ) ; }
Source:
public void testGetByClusterId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > hooks = dao.getByClusterId ( FixturesTool.CLUSTER_ID ) ; org.junit.Assert.assertNotNull ( hooks ) ; org.junit.Assert.assertEquals ( 2 , hooks.size ( ) ) ; }

Target:
public void testGetByClusterId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > hooks = dao.getByClusterId ( FixturesTool.GLUSTER_CLUSTER_ID ) ; org.junit.Assert.assertNotNull ( hooks ) ; org.junit.Assert.assertEquals ( 2 , hooks.size ( ) ) ; }
Source:
public boolean execute ( ) { boolean sessionInUse = ( restApiSessionId ) != null ; if ( sessionInUse && ( refreshRestApiSession ) ) { sendRequest ( createRequest ( ) , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; refreshRestApiSession = false ; } return sessionInUse ; }

Target:
public boolean execute ( ) { boolean sessionInUse = ( restApiSessionId ) != null ; if ( sessionInUse && ( refreshRestApiSession ) ) { sendRequest ( createRequest ( ) , new org.ovirt.engine.ui.common.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; refreshRestApiSession = false ; } return sessionInUse ; }
Source:
public void testStorageDomainForMemoryIsValid ( ) { org.junit.Assert.assertTrue ( filter.test ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.test ( storageDomain ) ) ; }
Source:
public void setSSHKeyFingerprint ( java.lang.String sshKeyFingerprint ) { mVdsStatic.setSSHKeyFingerprint ( sshKeyFingerprint ) ; }

Target:
public java.lang.String getSshKeyFingerprint ( ) { return mVdsStatic.getSshKeyFingerprint ( ) ; }
Source:
public void diskInterfaceNotSupportedByOs ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.createVM ( org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.OS_WITH_NO_SUPPORTED_INTERFACES ) ; initializeInterfaceValidation ( DiskInterface.VirtIO ) ; dve.setDiskInterface ( DiskInterface.VirtIO ) ; org.junit.Assert.assertThat ( validator.isDiskInterfaceSupported ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_DISK_INTERFACE_UNSUPPORTED ) ) ; }

Target:
public void diskInterfaceNotSupportedByOs ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.createVM ( org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.OS_WITH_NO_SUPPORTED_INTERFACES ) ; initializeInterfaceValidation ( DiskInterface.VirtIO ) ; dve.setDiskInterface ( DiskInterface.VirtIO ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isDiskInterfaceSupported ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_DISK_INTERFACE_UNSUPPORTED ) ) ; }
Source:
public void setvds_group_name ( java.lang.String value ) { this . vds_group_nameField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_name" ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmType getVmType ( ) { return this . vmStatic.getVmType ( ) ; }
Source:
public void testGetVdsToRun ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getVdsToRun ( VDSType.VDS , new org.ovirt.engine.core.compat.Guid ( "b399944a-81ab-4ec5-8266-e19ba7c3c9d1" ) , VDSStatus.Up , 0 ) ; org.ovirt.engine.core.dao.VdsDAOTest.assertIncorrectGetResult ( result ) ; }

Target:
public void testGetAllOfTypeWithUnrepresentedType ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllOfType ( VDSType.oVirtNode ) ; org.ovirt.engine.core.dao.VdsDAOTest.assertIncorrectGetResult ( result ) ; }
Source:
protected void postSaveAction ( org.ovirt.engine.core.compat.Guid networkGuid , boolean succeeded ) { if ( succeeded ) { cancel ( ) ; } stopProgress ( ) ; }

Target:
protected void postSaveAction ( org.ovirt.engine.core.compat.Guid networkGuid , boolean succeeded ) { if ( succeeded ) { performProfilesActions ( networkGuid ) ; } stopProgress ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getTenantName ( ) . setIsAvailable ( ( ( ( org.ovirt.engine.core.common.businessentities.ProviderType ) ( getType ( ) . getSelectedItem ( ) ) ) == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean openStackNetProvider = isTypeOpenStackNetwork ( ) ; getTenantName ( ) . setIsAvailable ( openStackNetProvider ) ; getPluginType ( ) . setIsAvailable ( openStackNetProvider ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return getTagDAO ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return getTagDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; boolean force = org.ovirt.engine.api.restapi.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendHostResource.FORCE , true , false ) ; return performAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( guid , force ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; boolean force = org.ovirt.engine.api.restapi.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.BackendHostResource.FORCE , true , false ) ; return performAction ( ActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( guid , force ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { return mockStorageDomain ( storageId , 6 , 4 , storageType , new org.ovirt.engine.core.compat.Version ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return mockStorageDomain ( storageId , 6 , 4 , storageType , new org.ovirt.engine.core.compat.Version ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getExternalVmList ( java.lang.String url , java.lang.String username , java.lang.String password ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc convertVmFromExternalSystem ( java.lang.String url , java.lang.String user , java.lang.String password , java.util.Map < java.lang.String , java.lang.Object > vm , java.lang.String jobUUID ) ;
Source:
private org.ovirt.engine.core.dao.MacPoolDao getMacPoolDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getMacPoolDao ( ) ; }

Target:
protected org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }
Source:
public org.ovirt.engine.core.compat.Version mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.compat.Version ( rs.getString ( versionColumnName ) ) ; }

Target:
public org.ovirt.engine.core.compat.Version mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return java.util.Optional.ofNullable ( rs.getString ( versionColumnName ) ) . map ( Version :: new ) . orElse ( null ) ; }
Source:
protected com.google.gwt.user.client.ui.TreeItem getLeafItem ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { return getDiskOrSnapshotNode ( disk.getSnapshots ( ) , false ) ; }

Target:
protected com.google.gwt.user.client.ui.TreeItem getLeafItem ( org.ovirt.engine.core.common.businessentities.Disk disk ) { if ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ) { return getSnapshotNode ( ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( disk ) ) . getSnapshots ( ) ) ; } else { return null ; } }
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 ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return 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 , org.ovirt.engine.core.bll.utils.VmDeviceUtils.EMPTY_SPEC_PARAMS , true , false ) ; }
Source:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig > configs = dao.getAllWithQuery ( "select * from gluster_volume_snapshot_config" ) ; org.junit.Assert.assertNotNull ( configs ) ; org.junit.Assert.assertEquals ( 3 , configs.size ( ) ) ; }

Target:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig > configs = dao.getAllWithQuery ( "select * from gluster_volume_snapshot_config" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( configs ) ; org.junit.jupiter.api.Assertions.assertEquals ( 3 , configs.size ( ) ) ; }
Source:
private void initLabelsToNetworks ( ) { for ( org.ovirt.engine.core.common.businessentities.network.Network network : clusterNetworks ) { org.ovirt.engine.core.utils.collections.MultiValueMapUtils.addToMap ( network.getLabel ( ) , network , labelToNetworks , new org.ovirt.engine.core.utils.collections.MultiValueMapUtils.ListCreator < > ( ) ) ; } }

Target:
private void initLabelsToNetworks ( ) { labelToNetworks = clusterNetworks.stream ( ) . collect ( java.util.stream.Collectors.groupingBy ( Network :: getLabel ) ) ; }
Source:
private void updateMigrateOnError ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { org.ovirt.engine.core.common.businessentities.ArchitectureType arch = getArchitecture ( group ) ; boolean isMigrationSupported = org.ovirt.engine.core.common.FeatureSupported.isMigrationSupported ( arch , group.getCompatibilityVersion ( ) ) ; if ( ! isMigrationSupported ) { group.setMigrateOnError ( MigrateOnErrorOptions.NO ) ; } }

Target:
private void updateMigrateOnError ( org.ovirt.engine.core.common.businessentities.Cluster group ) { org.ovirt.engine.core.common.businessentities.ArchitectureType arch = getArchitecture ( group ) ; boolean isMigrationSupported = org.ovirt.engine.core.common.FeatureSupported.isMigrationSupported ( arch , group.getCompatibilityVersion ( ) ) ; if ( ! isMigrationSupported ) { group.setMigrateOnError ( MigrateOnErrorOptions.NO ) ; } }
Source:
public final boolean setUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }

Target:
public boolean isSessionExists ( java.lang.String sessionId ) { return sessionInfoMap.containsKey ( sessionId ) ; }
Source:
public boolean isFirstMasterController ( java.lang.String model ) { return model.equalsIgnoreCase ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuildUtils.FIRST_MASTER_MODEL ) ; }

Target:
boolean isFirstMasterController ( java.lang.String model ) { return model.equalsIgnoreCase ( org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuildUtils.FIRST_MASTER_MODEL ) ; }
Source:
public void setnice_level ( int value ) { this . mVmStatic.setnice_level ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.BootSequence getDefaultBootSequence ( ) { return this . vmStatic.getdefault_boot_sequence ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.StorageType storageType , org.ovirt.engine.core.compat.Version version ) { return mockStorageDomain ( storageId , 6 , 4 , storageType , version ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType , org.ovirt.engine.core.compat.Version version ) { return mockStorageDomain ( storageId , 6 , 4 , storageType , version ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object.getEntity ( ) ) ) . getvds_name ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object.getEntity ( ) ) ) . getVdsName ( ) ; }
Source:
static java.util.Date parse ( java.lang.String str ) { try { return com.google.gwt.i18n.client.DateTimeFormat.getFormat ( PredefinedFormat.DATE_MEDIUM ) . parse ( str ) ; } catch ( java.lang.IllegalArgumentException iae ) { } return null ; }

Target:
static java.util.Date parse ( java.lang.String str ) { try { return com.google.gwt.i18n.client.DateTimeFormat.getFormat ( PredefinedFormat.DATE_MEDIUM ) . parse ( str ) ; } catch ( java.lang.IllegalArgumentException ignore ) { } return null ; }
Source:
private void init ( ) { storageDomainId = org.ovirt.engine.core.compat.Guid.Empty ; consoleEnabled = java.lang.Boolean.FALSE ; graphicsDevices = new java.util.HashMap < > ( ) ; }

Target:
private void init ( ) { storageDomainId = org.ovirt.engine.core.compat.Guid.Empty ; consoleEnabled = java.lang.Boolean.FALSE ; graphicsDevices = new java.util.HashMap < > ( ) ; affinityLabels = new java.util.ArrayList < > ( ) ; }
Source:
public static java.lang.String map ( org.ovirt.engine.api.model.DisplayType type , java.lang.String incoming ) { switch ( type ) { case vnc : return DisplayType.VNC.value ( ) ; case qxl : return DisplayType.SPICE.value ( ) ; default : return null ; } }

Target:
public static java.lang.String map ( org.ovirt.engine.api.model.VmType type , java.lang.String incoming ) { switch ( type ) { case Desktop : return VmType.DESKTOP.value ( ) ; case Server : return VmType.SERVER.value ( ) ; default : return null ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_server_connections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage_server_connections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getstorage ( ) ) } ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_server_connections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage_server_connections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getstorage ( ) ) } ) ) ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetQuotaByQuotaId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendQuotaResourceTest.QUOTA_ID } , getEntity ( 0 ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetQuotaByQuotaId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendQuotaResourceTest.QUOTA_ID } , getEntity ( 0 ) ) ; }
Source:
public void run ( ) { processVmPoolOnStopVm ( ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.bll.VmPoolHandler.processVmPoolOnStopVm ( getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( getExecutionContext ( ) ) ) ; }
Source:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { nameEditor.setLabel ( constants.storageQosName ( ) ) ; descriptionEditor.setLabel ( constants.storageQosDescription ( ) ) ; dataCenterEditor.setLabel ( constants.dataCenterStorageQosPopup ( ) ) ; }

Target:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { nameEditor.setLabel ( constants.storageQosName ( ) ) ; descriptionEditor.setLabel ( constants.storageQosDescription ( ) ) ; dataCenterEditor.setLabel ( constants.dataCenterQosPopup ( ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 120 ; }

Target:
public void getNetworkConnectivityCheckTimeoutInSeconds ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Integer > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( 120 ) ; getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.NetworkConnectivityCheckTimeoutInSeconds , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
Source:
protected void toggleProfilesAvailability ( ) { getProfiles ( ) . setIsAvailable ( ( ( ( java.lang.Boolean ) ( getIsVmNetwork ( ) . getEntity ( ) ) ) && ( ! ( getNetwork ( ) . isVmNetwork ( ) ) ) ) ) ; }

Target:
protected void toggleProfilesAvailability ( ) { getProfiles ( ) . setIsAvailable ( ( ( ( java.lang.Boolean ) ( getIsVmNetwork ( ) . getEntity ( ) ) ) && ( ! ( originallyVmNetwork ) ) ) ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.action.UiVdcMultipleAction createAction ( boolean waitForResult , boolean runNextInCaseOfError ) { return new org.ovirt.engine.ui.uicommonweb.action.UiVdcMultipleAction ( ACTION_TYPE , java.util.Collections.singletonList ( new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ) , model , waitForResult , runNextInCaseOfError ) ; }

Target:
private org.ovirt.engine.ui.uicommonweb.action.UiVdcMultipleAction createAction ( boolean waitForResult , boolean runNextInCaseOfError ) { return new org.ovirt.engine.ui.uicommonweb.action.UiVdcMultipleAction ( ACTION_TYPE , java.util.Collections.singletonList ( new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ) , model , waitForResult , runNextInCaseOfError ) ; }
Source:
public void setWANDisableEffects ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > disableEffects ) { this . wanDisableEffects = disableEffects ; getWANDisableEffectsChangeEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }

Target:
public void setHost ( java.lang.String host ) { this . consoleOptions.setHost ( host ) ; }
Source:
protected void buildChildCommandInfos ( ) { org.ovirt.engine.core.compat.Guid vmSnapshotId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; for ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage : mImages ) { addChildCommandInfo ( diskImage.getImageId ( ) , VdcActionType.CreateImageTemplate , buildChildCommandParameters ( diskImage , vmSnapshotId ) ) ; } }

Target:
protected boolean isDisksAliasNotEmpty ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : diskInfoDestinationMap.values ( ) ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( diskImage.getDiskAlias ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_CANNOT_BE_CREATED_WITH_EMPTY_DISK_ALIAS ) ; } } return true ; }
Source:
public void canDoActionDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }

Target:
public void canDoActionDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.getspm_status ( ) ) == ( org.ovirt.engine.core.common.businessentities.VdsSpmStatus.SPM ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return ( vds.getSpmStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VdsSpmStatus.SPM ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Network networkModel ) { validateParameters ( networkModel , "id|name" ) ; final org.ovirt.engine.api.model.Network network = findNetwork ( networkModel ) ; return performAction ( VdcActionType.AddVfsConfigNetwork , new org.ovirt.engine.core.common.action.VfsConfigNetworkParameters ( nicId , network.getId ( ) ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Network networkModel ) { validateParameters ( networkModel , "id|name" ) ; final org.ovirt.engine.api.model.Network network = findNetwork ( networkModel ) ; return performAction ( ActionType.AddVfsConfigNetwork , new org.ovirt.engine.core.common.action.VfsConfigNetworkParameters ( nicId , network.getId ( ) ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { ProxyUp ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { updateHosts ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult dataCenterExists ( ) { return ( getDataCenter ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult dataCenterExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) . when ( ( ( getDataCenter ( ) ) == null ) ) ; }
Source:
public static java.lang.String getSpiceBaseURL ( ) { return ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getInstance ( ) . getPath ( ) ) ) + "services/files/spice/" ; }

Target:
public static java.lang.String getSpiceBaseURL ( ) { return ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getInstance ( ) . getRelativePath ( ) ) ) + "services/files/spice/" ; }
Source:
public void missingNetworkMappings ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( validator.networkMappingsProvided ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MISSING_NETWORK_MAPPINGS ) ) ; }

Target:
public void missingNetworkMappings ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( validator.networkMappingsProvided ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MISSING_NETWORK_MAPPINGS ) ) ; }
Source:
public static boolean isNulOrEmpty ( java.lang.String string ) { return ( string == null ) || ( "" . equals ( string ) ) ; }

Target:
public static boolean isNull ( java.lang.String string ) { return string == null ; }
Source:
public void setContentWidgetContainerTooltip ( java.lang.String tooltipText ) { contentWidgetContainerConfiguredTooltip = tooltipText ; contentWidgetContainerTooltip.setText ( tooltipText ) ; contentWidgetContainerTooltip.reconfigure ( ) ; }

Target:
public void cleanup ( ) { W contentWidget = getContentWidget ( ) ; if ( contentWidget instanceof org.ovirt.engine.ui.uicommonweb.HasCleanup ) { ( ( org.ovirt.engine.ui.uicommonweb.HasCleanup ) ( contentWidget ) ) . cleanup ( ) ; } labelTooltip.cleanup ( ) ; contentWidgetContainerTooltip.cleanup ( ) ; }
Source:
private boolean isSysprepUsed ( final org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( vm.useSysPrep ( ) ) && ( vm.getvm_os ( ) . isWindows ( ) ) ) && ( org.apache.commons.lang.StringUtils.isEmpty ( vm.getFloppyPath ( ) ) ) ; }

Target:
private boolean isSysprepUsed ( final org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( vm.useSysPrep ( ) ) && ( vm.getVmOs ( ) . isWindows ( ) ) ) && ( org.apache.commons.lang.StringUtils.isEmpty ( vm.getFloppyPath ( ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isIscsiBondExist ( org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond ) { return iscsiBond == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ISCSI_BOND_NOT_EXIST ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isIscsiBondExist ( org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond ) { return iscsiBond == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ISCSI_BOND_NOT_EXIST ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void setNetworkClusterList ( org.ovirt.engine.ui.uicommonweb.models.ListModel networkClusterList ) { clustersTable.edit ( networkClusterList ) ; }

Target:
public void setNetworkClusterList ( org.ovirt.engine.ui.uicommonweb.models.ListModel networkClusterList ) { clustersTable.asEditor ( ) . edit ( networkClusterList ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDAO ( ) . getAllForVolumeGroup ( storageDomain.getstorage ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . getAllForVolumeGroup ( storageDomain.getstorage ( ) ) ; }
Source:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addTestButtonListener ( ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; addCiscoUcsPmTypeListener ( model ) ; }

Target:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addTestButtonListener ( ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; addCiscoUcsPmTypeListener ( model ) ; addRadioButtonsListeners ( model ) ; }
Source:
private void injectMocks ( ) { injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; injectorRule.bind ( org.ovirt.engine.core.dao.ClusterDao.class , clusterDao ) ; injectorRule.bind ( org.ovirt.engine.core.common.businessentities.network.Network.class , managementNetwork ) ; injectorRule.bind ( org.ovirt.engine.core.dao.network.NetworkClusterDao.class , networkClusterDao ) ; }

Target:
private void mockDao ( ) { org.mockito.Mockito.doReturn ( clusterDao ) . when ( addClusterCommand ) . getClusterDao ( ) ; org.mockito.Mockito.when ( macPoolDao.getDefaultPool ( ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedNetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( id , this ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , clusterId.toString ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.VmDeviceDAO getVmDeviceDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VmDeviceDAO getVmDeviceDAO ( ) { return org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getDbFacade ( ) . getVmDeviceDAO ( ) ; }
Source:
protected void onNoVmsAdded ( org.ovirt.engine.core.compat.Guid poolId ) { org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDao ( ) . remove ( poolId ) ; }

Target:
protected void onNoVmsAdded ( ) { org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDao ( ) . remove ( org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) . getVmPoolId ( ) ) ; }
Source:
public void addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , compensationContext ) ; }
Source:
public boolean disconnectStorageFromDomainByStoragePoolId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runForSingleConnectionInHost ( storageDomain , storagePoolId , VdcActionType.RemoveStorageServerConnection.getValue ( ) ) ; }

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 testAdjustLegacySecureChannels ( ) throws java.lang.Exception { java.lang.String legacyChannels = "smain,sdisplay,sinputs,scursor,splayback,srecord,ssmartcard,susbredir" ; java.lang.String correctChannels = "main,display,inputs,cursor,playback,record,smartcard,usbredir" ; org.junit.Assert.assertEquals ( correctChannels , org.ovirt.engine.ui.common.uicommon.AbstractSpice.adjustLegacySecureChannels ( legacyChannels ) ) ; }

Target:
public void testAdjustLegacySecureChannels ( ) throws java.lang.Exception { java.lang.String legacyChannels = "smain,sdisplay,sinputs,scursor,splayback,srecord,ssmartcard,susbredir" ; java.lang.String correctChannels = "main,display,inputs,cursor,playback,record,smartcard,usbredir" ; org.junit.Assert.assertEquals ( correctChannels , org.ovirt.engine.core.common.console.ConsoleOptions.adjustLegacySecureChannels ( legacyChannels ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( ) { return cmdEntity.getActionParameters ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getTaskParameters ( ) { return cmdEntity.getActionParameters ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source ; }
Source:
public void testMethodAllowsConcurrent ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( false , org.ovirt.engine.core.utils.timer.JobWrapper.methodAllowsConcurrent ( new org.ovirt.engine.core.utils.timer.JobWrapperTest.Dummy ( ) , "serialOnly" ) ) ; org.junit.Assert.assertEquals ( true , org.ovirt.engine.core.utils.timer.JobWrapper.methodAllowsConcurrent ( new org.ovirt.engine.core.utils.timer.JobWrapperTest.Dummy ( ) , "normalJob" ) ) ; }

Target:
public void testMethodAllowsConcurrent ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.timer.JobWrapper.methodAllowsConcurrent ( new org.ovirt.engine.core.utils.timer.JobWrapperTest.Dummy ( ) , "serialOnly" ) ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.timer.JobWrapper.methodAllowsConcurrent ( new org.ovirt.engine.core.utils.timer.JobWrapperTest.Dummy ( ) , "normalJob" ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Bookmark getByName ( java.lang.String name ) { final javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.Bookmark > query = getEntityManager ( ) . createNamedQuery ( "Bookmark.byName" , org.ovirt.engine.core.common.businessentities.Bookmark.class ) ; query.setParameter ( "name" , name ) ; return singleResult ( query ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Bookmark getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDaoImpl.BookmarkSqlParameterSource ( name ) ; return getCallsHandler ( ) . executeRead ( "GetBookmarkBybookmark_name" , org.ovirt.engine.core.dao.BookmarkDaoImpl.BookmarkRowMapper.instance , parameterSource ) ; }
Source:
public java.lang.String getName ( ) { return getvds_name ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.ServerCpu getCpuName ( ) { return cpuName ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return ( ( network.getMtu ( ) ) == 0 ) || ( org.ovirt.engine.core.common.FeatureSupported.mtuSpecification ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) . unless ( ( ( ( network.getMtu ( ) ) == 0 ) || ( org.ovirt.engine.core.common.FeatureSupported.mtuSpecification ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ) ) ; }
Source:
public static < T > T GetValue ( org.ovirt.engine.core.common.config.ConfigValues value ) { return org.ovirt.engine.core.common.config.Config.< T > GetValue ( value , org.ovirt.engine.core.common.config.Config.DefaultConfigurationVersion ) ; }

Target:
public static < T > T GetValue ( org.ovirt.engine.core.common.config.ConfigValues value ) { return org.ovirt.engine.core.common.config.Config.< T > GetValue ( value , ConfigCommon.defaultConfigurationVersion ) ; }
Source:
public void canUpdateNumaConfigurationWithVmFromParams ( ) { vm.setvNumaNodeList ( existingNumaNodes ) ; mockCommandWithVmFromParams ( ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( vmNumaNodeDao ) . massUpdateNumaNode ( org.mockito.Matchers.eq ( paramNumaNodes ) ) ; }

Target:
public void canUpdateNumaConfigurationWithVmFromParams ( ) { vm.setvNumaNodeList ( existingNumaNodes ) ; mockCommandWithVmFromParams ( ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( vmNumaNodeDao ) . massUpdateNumaNode ( org.mockito.ArgumentMatchers.eq ( paramNumaNodes ) ) ; }
Source:
protected void auditLog ( org.ovirt.engine.core.utils.Pair < org.ovirt.engine.core.common.AuditLogType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase > logPair ) { if ( ( logPair.getFirst ( ) ) != null ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logPair.getSecond ( ) , logPair.getFirst ( ) ) ; } }

Target:
protected void auditLog ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.AuditLogType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase > logPair ) { if ( ( logPair.getFirst ( ) ) != null ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logPair.getSecond ( ) , logPair.getFirst ( ) ) ; } }
Source:
protected void undoActionOnSourceAndDestination ( ) { if ( ( getDestinationDiskImage ( ) ) != null ) { removeSnapshot ( getDestinationDiskImage ( ) ) ; } unLockImage ( ) ; }

Target:
protected void undoActionOnSourceAndDestination ( ) { if ( ( getDestinationDiskImage ( ) ) != null ) { removeSnapshot ( getDestinationDiskImage ( ) ) ; } if ( ! ( org.ovirt.engine.core.bll.BaseImagesCommand.getParameters ( ) . isLeaveLocked ( ) ) ) { unLockImage ( ) ; } }
Source:
protected boolean validateFreeSpace ( org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return validate ( storageDomainValidator.hasSpaceForNewDisks ( disksList ) ) ; }

Target:
protected boolean validateFreeSpace ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disks = org.ovirt.engine.core.bll.ImagesHandler.getDisksDummiesForStorageAllocations ( disksList ) ; return validate ( storageDomainValidator.hasSpaceForNewDisks ( disks ) ) ; }
Source:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }

Target:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetClustersByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId } , setUpClusters ( ) , null ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }
Source:
public boolean isDisplayNetwork ( ) { return getEntity ( ) . getis_display ( ) ; }

Target:
public boolean isDisplayNetwork ( ) { return getEntity ( ) . getCluster ( ) . getis_display ( ) ; }
Source:
public org.ovirt.engine.core.common.vdscommands.VDSReturnValue RunVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) { return handleVdsResult ( getResourceManager ( ) . runVdsCommand ( commandType , parameters ) ) ; }

Target:
public org.ovirt.engine.core.common.vdscommands.VDSReturnValue RunVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) { return org.ovirt.engine.core.bll.VdsHandler.handleVdsResult ( getResourceManager ( ) . runVdsCommand ( commandType , parameters ) ) ; }
Source:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true ) , false ) ; assertPostZeroValue ( parameters , true ) ; }

Target:
public void parametersWithSecureDeletionAreFixedOnFileDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixPostZeroField ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true , false ) , true ) ; assertPostZeroValue ( parameters , false ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageType getRawValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getStorageType ( ) ; }

Target:
protected java.lang.Boolean getRawValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.isLocal ( ) ; }