auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void EndWithFailure ( ) { org.ovirt.engine.core.bll.ExportVmCommand.EndActionOnAllImageGroups ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.ExportVmCommand.EndActionOnAllImageGroups ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }
Source:
private void assertNoNetworksRemoved ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected no networks to be removed but some were removed. Removed networks: {0}" , helper.getRemoveNetworks ( ) ) , helper.getRemoveNetworks ( ) . isEmpty ( ) ) ; }

Target:
private void assertNoNetworksRemoved ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper ) { org.junit.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected no networks to be removed but some were removed. Removed networks: {0}" , helper.getRemoveNetworks ( ) ) , helper.getRemoveNetworks ( ) . isEmpty ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > ) ( source ) ) . size ( ) ) > 0 ; } return false ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.suspendSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
public void testEvent ( ) { testValidSql ( "Event: " , "SELECT * FROM ((SELECT audit_log.* FROM audit_log WHERE not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=error " , "SELECT * FROM ((SELECT audit_log.* FROM audit_log WHERE audit_log.severity = '2' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=alert " , "SELECT * FROM ((SELECT audit_log.* FROM audit_log WHERE audit_log.severity = '10' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: host.name = \"host1\" " , "SELECT * FROM ((SELECT audit_log.* FROM audit_log LEFT OUTER JOIN vds_with_tags ON audit_log.vds_id=vds_with_tags.vds_id WHERE vds_with_tags.vds_name LIKE host1 AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testVms ( ) { testValidSql ( "Vms:" , "SELECT * FROM ((SELECT distinct vms.* FROM vms ) ORDER BY vm_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Vms: storage.name = 111" , "SELECT * FROM (SELECT * FROM vms WHERE ( vm_guid IN (SELECT distinct vms_with_tags.vm_guid FROM vms_with_tags LEFT OUTER JOIN storage_domains_with_hosts_view ON vms_with_tags.storage_id=storage_domains_with_hosts_view.id WHERE storage_domains_with_hosts_view.storage_name LIKE 111 )) ORDER BY vm_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Vm: template.name = temp1" , "SELECT * FROM ((SELECT distinct vms.* FROM vms LEFT OUTER JOIN vm_templates_storage_domain ON vms.vmt_guid=vm_templates_storage_domain.vmt_guid WHERE vm_templates_storage_domain.name LIKE temp1 ) ORDER BY vm_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
private void cpuFlagsNotMissing ( ) { org.mockito.Mockito.doReturn ( null ) . when ( cmd ) . missingServerCpuFlags ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VDS.class ) ) ; }

Target:
private void cpuFlagsNotMissing ( ) { org.mockito.Mockito.doReturn ( null ) . when ( cmd ) . missingServerCpuFlags ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
protected java.lang.String getJsonDiskDescription ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { try { return org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( disk ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }

Target:
protected java.lang.String getJsonDiskDescription ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getJsonDiskDescription ( disk ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getWithRunningVms ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetVdsGroupWithRunningVms" , org.ovirt.engine.core.dao.VdsGroupDaoImpl.VdsGroupRowMapper.instance , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getWithRunningVms ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetClusterWithRunningVms" , org.ovirt.engine.core.dao.ClusterDaoImpl.ClusterRowMapper.instance , parameterSource ) ; }
Source:
private void readNetworkItem ( org.ovirt.engine.core.compat.backendcompat.XmlNode node ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = getNetwotkInterface ( node ) ; updateSingleNic ( node , iface ) ; vmBase.getInterfaces ( ) . add ( iface ) ; readManagedVmDevice ( node , iface.getId ( ) ) ; }

Target:
private void readNetworkItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = getNetwotkInterface ( node ) ; updateSingleNic ( node , iface ) ; vmBase.getInterfaces ( ) . add ( iface ) ; readManagedVmDevice ( node , iface.getId ( ) ) ; }
Source:
public java.lang.String getvm_domain ( ) { return this . mVmStatic.getdomain ( ) ; }

Target:
public java.lang.String getVmDomain ( ) { return this . vmStatic.getdomain ( ) ; }
Source:
public void testGetBySlaveHostAndVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session = dao.getGeoRepSession ( FixturesTool.GLUSTER_VOLUME_UUID1 , new org.ovirt.engine.core.compat.Guid ( "44f645f6-3fe9-4b35-a30c-be0d1a835ea8" ) , "slave-replica" ) ; org.junit.Assert.assertNotNull ( session ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_GEOREP_SESSION_ID , session.getId ( ) ) ; }

Target:
public void testGetBySlaveHostAndVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session = dao.getGeoRepSession ( FixturesTool.GLUSTER_VOLUME_UUID1 , new org.ovirt.engine.core.compat.Guid ( "44f645f6-3fe9-4b35-a30c-be0d1a835ea8" ) , "slave-replica" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( session ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.GLUSTER_GEOREP_SESSION_ID , session.getId ( ) ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.CloneVmModel object ) { driver.edit ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { java.lang.String propName = args.propertyName ; if ( "Message" . equals ( propName ) ) { appendMessage ( object.getMessage ( ) ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VmTemplate lookupTemplateByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( name ) , "GetVmTemplate" ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.InstanceType lookupInstance ( org.ovirt.engine.api.model.Template template ) { return getEntity ( org.ovirt.engine.core.common.businessentities.InstanceType.class , VdcQueryType.GetInstanceType , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( asGuid ( template.getId ( ) ) ) , "GetInstanceType" ) ; }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDSGroup selectedItem ) { servicesTable.edit ( getDetailModel ( ) . getServiceList ( ) ) ; driver.edit ( getDetailModel ( ) ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDSGroup selectedItem ) { servicesTable.asEditor ( ) . edit ( getDetailModel ( ) . getServiceList ( ) ) ; driver.edit ( getDetailModel ( ) ) ; }
Source:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidNetworkFilterIdNoDefaultWithFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected boolean validateVM ( org.ovirt.engine.core.bll.validator.VmValidator vmValidator ) { return ( canDoSnapshot ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVm ( ) ) ) && ( validate ( vmValidator.vmNotSavingRestoring ( ) ) ) ; }

Target:
protected boolean validateVM ( org.ovirt.engine.core.bll.validator.VmValidator vmValidator ) { return ( ( canDoSnapshot ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVm ( ) ) ) && ( validate ( vmValidator.vmNotSavingRestoring ( ) ) ) ) && ( validate ( vmValidator.validateVmStatusUsingMatrix ( VdcActionType.CreateAllSnapshotsFromVm ) ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . networkVmSubTabLabel ( ) , 3 , ginjector.getSubTabNetworkVmModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkVmSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
public void zeroMtuWhenSupported ( ) throws java.lang.Exception { mtuValidTest ( ValidationResult.VALID , 0 , true ) ; }

Target:
public void zeroMtuWhenSupported ( ) throws java.lang.Exception { mtuValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , 0 , true ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VdsStatic getExistingEntity ( ) { return existingVds ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( existingVds.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds.getId ( ) , result.getId ( ) ) ; }
Source:
private void cancel ( ) { cancelConfirmation ( ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
protected void cancel ( ) { cancelConfirmation ( ) ; setWindow ( null ) ; updateActionsAvailability ( ) ; }
Source:
private void detachCinderStorageDomain ( ) { org.ovirt.engine.core.bll.storage.CINDERStorageHelper CINDERStorageHelper = new org.ovirt.engine.core.bll.storage.CINDERStorageHelper ( ) ; CINDERStorageHelper.detachCinderDomainFromPool ( org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.getStorageDomain ( ) . getStoragePoolIsoMapData ( ) ) ; org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.setSucceeded ( true ) ; }

Target:
private void detachCinderStorageDomain ( ) { org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper CINDERStorageHelper = new org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper ( ) ; CINDERStorageHelper.detachCinderDomainFromPool ( org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.getStorageDomain ( ) . getStoragePoolIsoMapData ( ) ) ; org.ovirt.engine.core.bll.storage.domain.DetachStorageDomainFromPoolCommand.setSucceeded ( true ) ; }
Source:
protected org.ovirt.engine.api.model.Cluster getClusterEntity ( ) { org.ovirt.engine.api.model.Cluster entity = control.createMock ( org.ovirt.engine.api.model.Cluster.class ) ; org.easymock.EasyMock.expect ( entity.getId ( ) ) . andReturn ( GUIDS [ 2 ] ) . anyTimes ( ) ; return entity ; }

Target:
protected org.ovirt.engine.api.model.Cluster getClusterEntity ( ) { org.ovirt.engine.api.model.Cluster entity = org.mockito.Mockito.mock ( org.ovirt.engine.api.model.Cluster.class ) ; org.mockito.Mockito.when ( entity.getId ( ) ) . thenReturn ( GUIDS [ 2 ] ) ; return entity ; }
Source:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { markValidation ( true , validationHints ) ; }

Target:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { contentPanel.markAsInvalid ( validationHints ) ; }
Source:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long timeout ) { return _doConnect ( server , "root" , rootPassword , null , null , timeout ) ; }

Target:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long hardTimeout ) { return _doConnect ( server , "root" , rootPassword , null , null , hardTimeout , hardTimeout ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getos ( ) { return this . getvm_os ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getVmOs ( ) { return this . vmStatic.getos ( ) ; }
Source:
public boolean isEmpty ( ) { return ( ( ( getOutAverageLinkshare ( ) ) == null ) && ( ( getOutAverageUpperlimit ( ) ) == null ) ) && ( ( getOutAverageRealtime ( ) ) == null ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.AnonymousHostNetworkQos fromHostNetworkQos ( org.ovirt.engine.core.common.businessentities.network.HostNetworkQos hostNetworkQos ) { if ( hostNetworkQos == null ) { return null ; } org.ovirt.engine.core.common.businessentities.network.AnonymousHostNetworkQos result = new org.ovirt.engine.core.common.businessentities.network.AnonymousHostNetworkQos ( ) ; result.id = hostNetworkQos.getId ( ) ; result.hostNetworkQosProperties = hostNetworkQos.getHostNetworkQosProperties ( ) ; return result ; }
Source:
private org.ovirt.engine.core.bll.SetupNetworksHelper createHelper ( org.ovirt.engine.core.common.action.SetupNetworksParameters params ) { org.ovirt.engine.core.bll.SetupNetworksHelper validator = new org.ovirt.engine.core.bll.SetupNetworksHelper ( params , org.ovirt.engine.core.compat.Guid.Empty ) ; return org.mockito.Mockito.spy ( validator ) ; }

Target:
private org.ovirt.engine.core.common.action.SetupNetworksParameters createParametersForNics ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface ... nics ) { org.ovirt.engine.core.common.action.SetupNetworksParameters parameters = new org.ovirt.engine.core.common.action.SetupNetworksParameters ( ) ; parameters.setInterfaces ( java.util.Arrays.asList ( nics ) ) ; return parameters ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult networkClusterAttachmentExists ( ) { return ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkClusterDAO ( ) . get ( getNetworkCluster ( ) . getId ( ) ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult networkClusterAttachmentExists ( ) { return ( getOldNetworkCluster ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected boolean checkIfRoleIsReadOnly ( java.util.List < java.lang.String > CanDoActionMessages ) { boolean result = false ; if ( getRole ( ) . getis_readonly ( ) ) { result = true ; CanDoActionMessages.add ( VdcBllMessages.ACTION_TYPE_FAILED_ROLE_IS_READ_ONLY.toString ( ) ) ; } return result ; }

Target:
protected boolean checkIfRoleIsReadOnly ( java.util.List < java.lang.String > CanDoActionMessages ) { boolean result = false ; if ( getRole ( ) . isReadonly ( ) ) { result = true ; CanDoActionMessages.add ( VdcBllMessages.ACTION_TYPE_FAILED_ROLE_IS_READ_ONLY.toString ( ) ) ; } return result ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllVdsGroupsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getVdsGroupDAO ( ) . getAll ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllVdsGroupsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAllVdsGroupsQuery.getDbFacade ( ) . getVdsGroupDAO ( ) . getAll ( org.ovirt.engine.core.bll.GetAllVdsGroupsQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetAllVdsGroupsQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public void calculateNetworkImplementationDetailsNetworkIsSyncWithMtuUnset ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , true , iface.getNetworkName ( ) , iface.isBridged ( ) , 0 , iface.getVlanId ( ) ) ; }

Target:
public void calculateNetworkImplementationDetailsNetworkIsSyncWithMtuUnset ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , true , iface.getNetworkName ( ) , iface.isBridged ( ) , 0 , iface.getVlanId ( ) , createQos ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_domains mockFirstStorageDomain ( int availabeDiskSize ) { org.ovirt.engine.core.common.businessentities.storage_domains storageDomain = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; storageDomain.setavailable_disk_size ( availabeDiskSize ) ; storageDomain.setstatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( firstStorageDomainId ) ; storageDomain.setstorage_domain_type ( StorageDomainType.Data ) ; return storageDomain ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockFirstStorageDomain ( int availabeDiskSize ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setAvailableDiskSize ( availabeDiskSize ) ; storageDomain.setStatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( firstStorageDomainId ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; return storageDomain ; }
Source:
protected static void verifyHostDevices ( java.util.List < org.ovirt.engine.api.model.HostDevice > devices ) { assertEquals ( 1 , devices.size ( ) ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendHostDevicesResourceTest.verifyHostDevice ( devices.get ( 0 ) ) ; }

Target:
protected static void verifyHostDevices ( java.util.List < org.ovirt.engine.api.model.HostDevice > devices ) { org.junit.Assert.assertEquals ( 1 , devices.size ( ) ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendHostDevicesResourceTest.verifyHostDevice ( devices.get ( 0 ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > convertOva ( java.lang.String ovaPath , java.util.Map vm , java.lang.String jobId ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > convertExternalVmFromOva ( java.lang.String ovaPath , java.util.Map vm , java.lang.String jobId ) ;
Source:
public void onFailure ( java.lang.Throwable caught ) { if ( org.ovirt.engine.ui.frontend.Frontend.ignoreFailure ( caught ) ) { return ; } org.ovirt.engine.ui.frontend.Frontend.logger.log ( java.util.logging.Level.SEVERE , ( "Failed to execute Logoff: " + caught ) , caught ) ; callback.onFailure ( caught ) ; }

Target:
public static void setLoginHandler ( org.ovirt.engine.ui.frontend.FrontendLoginHandler loginHandler ) { org.ovirt.engine.ui.frontend.Frontend.loginHandler = loginHandler ; }
Source:
protected org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return new org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( disksList ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return new org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( disksList ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { geoRepConfigModel.stopProgress ( ) ; closeWindow ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { fetchConfigForSession ( geoRepConfigModel.getGeoRepSession ( ) ) ; }
Source:
void migrateVM ( java.util.List < org.ovirt.engine.core.compat.Guid > initialHosts , org.ovirt.engine.core.compat.Guid vmToMigrate ) ;

Target:
void migrateVM ( java.util.List < org.ovirt.engine.core.compat.Guid > initialHosts , org.ovirt.engine.core.compat.Guid vmToMigrate , java.lang.String reason ) ;
Source:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllAuditLogsByVMTemplateId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }

Target:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( QueryType.GetAllAuditLogsByVMTemplateId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.ImportNetworkData getNetworkImportData ( java.lang.String macAddr ) { org.ovirt.engine.ui.uicommonweb.models.vms.ImportNetworkData importData = networkImportDataMap.get ( macAddr ) ; return importData ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.ImportNetworkData getNetworkImportData ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) { return networkImportDataMap.get ( ( ( ( iface.getVmName ( ) ) + "$" ) + ( iface.getName ( ) ) ) ) ; }
Source:
public void canDoActionFailsNoConnection ( ) { org.mockito.Mockito.when ( sscDao.get ( connId.toString ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }

Target:
public void canDoActionFailsNoConnection ( ) { org.mockito.Mockito.when ( sscDao.get ( connId.toString ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.dataCenterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.FirstOrDefault ( ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.storage_pool > ) ( returnValue ) ) ) ; prepare2 ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { context.dataCenterFoundByName = org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.StoragePool > ) ( returnValue ) ) ) ; prepare2 ( ) ; }
Source:
public void setHashName ( java.lang.String value ) { sethashName ( value ) ; setOpenDocumentationCommand ( new org.ovirt.engine.ui.uicommonweb.UICommand ( "OpenDocumentation" , this ) ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HashName" ) ) ; }

Target:
public void setHashName ( java.lang.String value ) { sethashName ( value ) ; setOpenDocumentationCommand ( new org.ovirt.engine.ui.uicommonweb.UICommand ( "OpenDocumentation" , this ) ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HashName" ) ) ; }
Source:
public java.util.Map deleteImage ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgGUID , java.lang.String postZero ) { return getOKStatusNotImplemented ( ) ; }

Target:
public java.util.Map deleteImage ( java.lang.String imgGUID , java.lang.String spUUID , java.lang.String sdUUID , boolean postZero , boolean force ) { return storageService.deleteImage ( imgGUID , spUUID , sdUUID , postZero , force ) ; }
Source:
java.lang.String alertsTitle ( java.lang.String num ) ;

Target:
java.lang.String importProcessHasBegunForVms ( java.lang.String importedVms ) ;
Source:
public java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > GetConsoleModelsByVmGuid ( org.ovirt.engine.core.compat.Guid vmGuid ) { if ( ( ( cachedConsoleModels ) != null ) && ( cachedConsoleModels.containsKey ( vmGuid ) ) ) { return cachedConsoleModels.get ( vmGuid ) ; } return null ; }

Target:
public java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel > getConsoleModelsByVmGuid ( org.ovirt.engine.core.compat.Guid vmGuid ) { if ( ( cachedConsoleModels ) != null ) { return cachedConsoleModels.get ( vmGuid ) ; } return null ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskLunMapId generateNonExistingId ( ) { return new org.ovirt.engine.core.common.businessentities.DiskLunMapId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.DiskLunMapId generateNonExistingId ( ) { return new org.ovirt.engine.core.common.businessentities.DiskLunMapId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; }
Source:
private boolean vdsGroupExists ( ) { if ( ! ( vdsGroupInDb ( ) ) ) { addValidationMessage ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; return false ; } return true ; }

Target:
private boolean clusterExists ( ) { if ( ! ( clusterInDb ( ) ) ) { addValidationMessage ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; return false ; } return true ; }
Source:
public void testGetAllForStoragePoolWithInvalidPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAllForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.dao.VdsGroupDaoTest.assertGetAllForStoragePoolInvalidResult ( result ) ; }

Target:
public void testGetAllForStoragePoolWithInvalidPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getAllForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.dao.ClusterDaoTest.assertGetAllForStoragePoolInvalidResult ( result ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterServer getServerByUuid ( org.ovirt.engine.core.compat.Guid uuid ) { return getGlusterServerDao ( ) . getByGlusterServerUuid ( uuid ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterServer getServerByUuid ( org.ovirt.engine.core.compat.Guid uuid ) { return glusterServerDao.getByGlusterServerUuid ( uuid ) ; }
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.utils.ObjectDescriptor.toString ( this ) ; }

Target:
public java.lang.String toString ( ) { return ( ( ( getClass ( ) . getSimpleName ( ) ) + " [mStatus=" ) + ( mStatus ) ) + "]" ; }
Source:
protected boolean canDoAction ( ) { return ( ( ( vdsGroupExists ( ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ) && ( validateAttachment ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return ( ( ( ( networkNotAttachedToCluster ( ) ) && ( vdsGroupExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ) && ( validateAttachment ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.gluster.GlusterVolumeRemoveBricksCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId ) { return new org.ovirt.engine.core.bll.gluster.GlusterVolumeRemoveBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeId , getBricks ( volumeId , 1 ) , 0 ) , null ) ; }

Target:
private void setVolumeId ( org.ovirt.engine.core.compat.Guid volumeId ) { cmd.setGlusterVolumeId ( volumeId ) ; cmd.getParameters ( ) . setBricks ( getBricks ( volumeId , 1 ) ) ; }
Source:
protected void onHide ( ) { super . onHide ( ) ; roleModelProvider.getModel ( ) . ensureAsyncSearchStopped ( ) ; permissionModelProvider.getModel ( ) . ensureAsyncSearchStopped ( ) ; systemPermissionModelProvider.getModel ( ) . ensureAsyncSearchStopped ( ) ; }

Target:
protected void onHide ( ) { super . onHide ( ) ; roleModelProvider.getModel ( ) . stopRefresh ( ) ; permissionModelProvider.getModel ( ) . stopRefresh ( ) ; systemPermissionModelProvider.getModel ( ) . stopRefresh ( ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Collection < org.ovirt.engine.core.aaa.ProfileEntry > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.aaa.ProfileEntry > ( ) ; }

Target:
public void getAAAProfilesEntriesList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.aaa.ProfileEntry > > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
protected org.ovirt.engine.api.model.HostNIC doPopulate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity ) { return model ; }

Target:
protected org.ovirt.engine.api.model.HostNIC deprecatedPopulate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity ) { java.util.Set < java.lang.String > details = org.ovirt.engine.api.common.util.DetailHelper.getDetails ( httpHeaders , uriInfo ) ; if ( details.contains ( "statistics" ) ) { addStatistics ( model , entity ) ; } return model ; }
Source:
private void setUpDAOMocks ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade dbFacadeMock = getDbFacadeMockInstance ( ) ; actionGroupDaoMock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.ActionGroupDAO.class ) ; org.mockito.Mockito.when ( dbFacadeMock.getActionGroupDAO ( ) ) . thenReturn ( actionGroupDaoMock ) ; }

Target:
private void setUpDAOMocks ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade dbFacadeMock = getDbFacadeMockInstance ( ) ; actionGroupDaoMock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.ActionGroupDAO.class ) ; org.mockito.Mockito.when ( dbFacadeMock.getActionGroupDao ( ) ) . thenReturn ( actionGroupDaoMock ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.MacPool macPool ) { return macPool.isDefaultPool ( ) ? resources.lockImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.MacPool macPool ) { return macPool.isDefaultPool ( ) ? org.ovirt.engine.ui.webadmin.section.main.view.popup.macpool.SharedMacPoolView.resources.lockImage ( ) : null ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunUserAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { if ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( parameters.getHttpSessionId ( ) ) ) { return org.ovirt.engine.core.bll.Backend.NotAutorizedError ( ) ; } return RunAction ( actionType , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunUserAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( parameters.getHttpSessionId ( ) ) ) { return org.ovirt.engine.core.bll.Backend.NotAutorizedError ( ) ; } return RunAction ( actionType , parameters ) ; }
Source:
public void validateNonExternalJobFails ( ) { command.getParameters ( ) . setParentId ( org.ovirt.engine.core.bll.AddExternalStepCommandTest.nonExternalJobId ) ; command.getParameters ( ) . setStepId ( null ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateNonExternalJobFails ( ) { command.getParameters ( ) . setParentId ( org.ovirt.engine.core.bll.AddExternalStepCommandTest.nonExternalJobId ) ; command.getParameters ( ) . setStepId ( null ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }
Source:
public java.util.Collection < org.ovirt.engine.core.common.businessentities.GraphicsDevice > getGraphicsDevices ( ) { return graphicsDevices.values ( ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsDevice > getGraphicsDevices ( ) { return graphicsDevices ; }
Source:
public void execute ( ) { menuPanelPopup.asPopupPanel ( ) . hide ( ) ; command.execute ( ) ; }

Target:
public void execute ( ) { menuPanelPopup.asPopupPanel ( ) . hide ( ) ; buttonDef.onClick ( null ) ; }
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; image.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; image.setActive ( true ) ; image.setImageStatus ( ImageStatus.OK ) ; image.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( image ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; if ( ( node.attributes.get ( "ovf:disk_storage_type" ) ) != null ) { java.lang.String diskStorageType = node.attributes.get ( "ovf:disk_storage_type" ) . getValue ( ) ; if ( ( diskStorageType != null ) && ( diskStorageType.equals ( DiskStorageType.CINDER.name ( ) ) ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }
Source:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.PayloadFile > createPayloadFile ( org.ovirt.engine.sdk.entities.PayloadFile value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.PayloadFile > ( org.ovirt.engine.sdk.entities.ObjectFactory._PayloadFile_QNAME , org.ovirt.engine.sdk.entities.PayloadFile.class , null , value ) ; }

Target:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.VirtIOSCSI > createVirtioScsi ( org.ovirt.engine.sdk.entities.VirtIOSCSI value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.VirtIOSCSI > ( org.ovirt.engine.sdk.entities.ObjectFactory._VirtioScsi_QNAME , org.ovirt.engine.sdk.entities.VirtIOSCSI.class , null , value ) ; }
Source:
private boolean validateExternalNetwork ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidator validator ) { return ( validate ( validator.externalNetworkNotDisplay ( getNetworkName ( ) ) ) ) && ( validate ( validator.externalNetworkNotRequired ( getNetworkName ( ) ) ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) , getOldNetworkCluster ( ) , getClusterVersion ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getStorageDomainDAO ( ) ) ; existingDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID ) ; newStaticDomain = new org.ovirt.engine.core.common.businessentities.storage_domain_static ( ) ; newStaticDomain.setstorage ( "fDMzhE-wx3s-zo3q-Qcxd-T0li-yoYU-QvVePl" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getStorageDomainDao ( ) ) ; existingDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID ) ; newStaticDomain = new org.ovirt.engine.core.common.businessentities.storage_domain_static ( ) ; newStaticDomain.setstorage ( "fDMzhE-wx3s-zo3q-Qcxd-T0li-yoYU-QvVePl" ) ; }
Source:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; java.lang.Object subResource = collection.getDeviceResource ( GUIDS [ 0 ] . toString ( ) ) ; assertFalse ( ( subResource instanceof org.ovirt.engine.api.resource.DeviceResource ) ) ; assertTrue ( ( subResource instanceof org.ovirt.engine.api.resource.ReadOnlyDeviceResource ) ) ; }

Target:
public void testQuery ( ) throws java.lang.Exception { }
Source:
protected void endImportCommand ( ) { endActionOnAllImageGroups ( ) ; endVmRelatedOps ( ) ; setSucceeded ( true ) ; }

Target:
protected void endImportCommand ( ) { endActionOnAllImageGroups ( ) ; endVmRelatedOps ( ) ; org.ovirt.engine.core.bll.ImportVmCommand.setSucceeded ( true ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Tag model , int index ) { super . verifyModel ( model , index ) ; assertFalse ( model.getHref ( ) . startsWith ( ( ( BASE_PATH ) + "/tags" ) ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Tag model , int index ) { super . verifyModel ( model , index ) ; org.junit.Assert.assertFalse ( model.getHref ( ) . startsWith ( ( ( BASE_PATH ) + "/tags" ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( returnValue ) ) ; if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue ) ) ; if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }
Source:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAllDbUsers , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getUsers ( ) ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }

Target:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAllDbUsers , org.ovirt.engine.core.common.queries.QueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getUsers ( ) ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.SetSafeNetworkConfigVDSCommand.getBroker ( ) . setSafeNetworkConfig ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SetSafeNetworkConfigVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.SetSafeNetworkConfigVDSCommand.getBroker ( ) . setSafeNetworkConfig ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SetSafeNetworkConfigVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void setmem_shared ( java.lang.Long value ) { this . mVdsStatistics.setmem_shared ( value ) ; }

Target:
public void setMemShared ( java.lang.Long value ) { this . mVdsStatistics.setmem_shared ( value ) ; }
Source:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > users = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDAO ( ) . getAllForVm ( org.ovirt.engine.core.bll.GetUsersByVmidQuery.getParameters ( ) . getVmId ( ) ) ; org.ovirt.engine.core.bll.GetUsersByVmidQuery.getQueryReturnValue ( ) . setReturnValue ( users ) ; }

Target:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > users = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.GetUsersByVmidQuery.getParameters ( ) . getVmId ( ) ) ; org.ovirt.engine.core.bll.GetUsersByVmidQuery.getQueryReturnValue ( ) . setReturnValue ( users ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1000 ; }
Source:
public org.ovirt.engine.api.model.UnmanagedNetwork get ( ) { return performGet ( VdcQueryType.GetUnmanagedNetworkByHostIdAndName , new org.ovirt.engine.core.common.queries.UnmanagedNetworkParameters ( hostId , id ) , org.ovirt.engine.api.model.Host.class ) ; }

Target:
public org.ovirt.engine.api.model.UnmanagedNetwork get ( ) { return performGet ( QueryType.GetUnmanagedNetworkByHostIdAndName , new org.ovirt.engine.core.common.queries.UnmanagedNetworkParameters ( hostId , id ) , org.ovirt.engine.api.model.Host.class ) ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem a , org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem b ) { return ( a.value ) - ( b.value ) ; }

Target:
java.util.Comparator < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > makeValueComparator ( ) { return java.util.Comparator.comparingInt ( ( t ) -> t.value ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.scheduling.PolicyUnit > getCollection ( ) { return getBackendCollection ( QueryType.GetAllPolicyUnits , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.scheduling.PolicyUnit > getCollection ( ) { return getBackendCollection ( QueryType.GetAllPolicyUnits , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ) ; }
Source:
public java.math.BigDecimal readDecimal ( ) { java.lang.String image = readString ( ) ; try { return new java.math.BigDecimal ( image ) . stripTrailingZeros ( ) ; } catch ( java.lang.NumberFormatException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "The text \"" + image ) + "\" isn\'t a valid decimal value" ) ) ; } }

Target:
public java.math.BigDecimal parseDecimal ( java.lang.String image ) { try { return new java.math.BigDecimal ( image ) . stripTrailingZeros ( ) ; } catch ( java.lang.NumberFormatException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "The text \"" + image ) + "\" isn\'t a valid decimal value" ) ) ; } }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return 262144 ; }

Target:
public static java.util.Map < org.ovirt.engine.core.compat.Version , java.util.List < java.lang.String > > getCustomPropertiesList ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.customPropertiesList ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { if ( ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) ) != null ) { setVdsGroupId ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) . getClusterId ( ) ) ; } return super . getVdsGroup ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { if ( ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) ) != null ) { setClusterId ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) . getClusterId ( ) ) ; } return super . getCluster ( ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assert org.ovirt.engine.api.restapi.resource.utils.UsbResourceUtils.getUsbPolicy ( usb , vdsGroup ) . equals ( UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.utils.UsbResourceUtils.getUsbPolicy ( usb , vdsGroup ) , UsbPolicy.DISABLED ) ; }