auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getBroker ( ) . diskReplicateFinish ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getSrcDiskXmlRpc ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getDstDiskXmlRpc ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getBroker ( ) . diskReplicateFinish ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getSrcDiskXmlRpc ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getDstDiskXmlRpc ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void testMacPoolGetByClusterIdExist ( ) { final org.ovirt.engine.core.common.businessentities.MacPool macPool = dao.getByClusterId ( FixturesTool.CLUSTER_RHEL6_ISCSI ) ; org.junit.Assert.assertThat ( macPool , org.hamcrest.CoreMatchers.notNullValue ( ) ) ; org.junit.Assert.assertThat ( macPool.getId ( ) , org.hamcrest.CoreMatchers.is ( FixturesTool.NON_DEFAULT_MAC_POOL ) ) ; }

Target:
public void testMacPoolGetByClusterIdExist ( ) { final org.ovirt.engine.core.common.businessentities.MacPool macPool = dao.getByClusterId ( FixturesTool.CLUSTER_RHEL6_ISCSI ) ; org.hamcrest.MatcherAssert.assertThat ( macPool , org.hamcrest.CoreMatchers.notNullValue ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( macPool.getId ( ) , org.hamcrest.CoreMatchers.is ( FixturesTool.NON_DEFAULT_MAC_POOL ) ) ; }
Source:
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.businessentities.network.Network , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.clusterNetworkSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.Network , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterNetworkPresenter.constants.clusterNetworkSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
private org.ovirt.engine.core.compat.Guid addMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage metadataDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMetadataDisk ( org.ovirt.engine.core.bll.memory.MemoryUtils.generateMemoryDiskDescription ( vm , snapshotDescription ) ) ; return addDisk ( metadataDisk ) ; }

Target:
private org.ovirt.engine.core.compat.Guid addMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage metadataDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMetadataDisk ( org.ovirt.engine.core.bll.memory.MemoryUtils.generateMemoryDiskDescription ( vm , snapshotDescription ) ) ; metadataDisk.setWipeAfterDelete ( wipeAfterDelete ) ; return addDisk ( metadataDisk ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao , mockNetworkExclusivenessValidatorResolver ) ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao , mockNetworkExclusivenessValidatorResolver , mockNetworkAttachmentIpConfigurationValidator ) ; }
Source:
protected org.ovirt.engine.api.model.Network getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.Network getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( org.ovirt.engine.api.restapi.resource.AbstractBackendNetworkResourceTest.mock ( org.ovirt.engine.api.model.Network.class ) , index ) ; }
Source:
public org.ovirt.engine.core.dao.AdGroupDAO getAdGroupDAO ( ) { return getDbFacade ( ) . getAdGroupDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.DbGroupDAO getAdGroupDAO ( ) { return getDbFacade ( ) . getDbGroupDao ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmJob get ( org.ovirt.engine.core.compat.Guid id ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmJob get ( org.ovirt.engine.core.compat.Guid id ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void writeStartElement ( java.lang.String uri , java.lang.String name ) { try { writer.writeStartElement ( uri , name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }

Target:
public void writeStartElement ( java.lang.String uri , java.lang.String name ) { try { writer.writeStartElement ( uri , name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }
Source:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemoveExternalEvent , new org.ovirt.engine.core.common.action.RemoveExternalEventParameters ( asLong ( id ) ) ) ; }

Target:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemoveAuditLogById , new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( asLong ( id ) ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source ; }

Target:
public void getVolumeSnapshotSchedule ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotSchedule > aQuery , org.ovirt.engine.core.compat.Guid volumeId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterVolumeSnapshotScheduleByVolumeId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( volumeId ) , aQuery ) ; }
Source:
private void showCloseMessage ( java.lang.String message ) { setMessage ( message ) ; getCommands ( ) . clear ( ) ; getCommands ( ) . add ( getCloseCommand ( ) ) ; StopProgress ( ) ; }

Target:
private void showCloseMessage ( java.lang.String message ) { setMessage ( message ) ; getCommands ( ) . clear ( ) ; getCommands ( ) . add ( getCloseCommand ( ) ) ; stopProgress ( ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.scheduling.PolicyUnit result = dao.get ( FixturesTool.POLICY_UNIT_MIGRATION ) ; org.junit.Assert.assertEquals ( result , existingPolicyUnit ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.scheduling.PolicyUnit result = dao.get ( FixturesTool.POLICY_UNIT_MIGRATION ) ; org.junit.jupiter.api.Assertions.assertEquals ( result , existingPolicyUnit ) ; }
Source:
public static java.lang.String getSpiceBaseURL ( ) { return ( org.ovirt.engine.ui.uicommonweb.Configurator.getRootURL ( ) ) + "/spice/" ; }

Target:
public static java.lang.String getSpiceBaseURL ( ) { return ( org.ovirt.engine.ui.uicommonweb.Configurator.getRootURL ( ) ) + "spice/" ; }
Source:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return super . createTask ( taskId , asyncTaskCreationInfo , parentCommand ) ; }

Target:
private void updateDiskStatus ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus status ) { org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getDiskImage ( ) . setImageStatus ( status ) ; org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateImageStatus ( org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getDestinationImageId ( ) , status ) ; }
Source:
protected java.lang.String getDisplayFilter ( org.ovirt.engine.core.bll.adbroker.LdapQueryMetadata queryMetadata ) { return java.lang.String.format ( queryMetadata.getFilter ( ) , getEncodedParameters ( queryMetadata.getQueryData ( ) . getFilterParameters ( ) , queryMetadata.getLdapGuidEncoder ( ) ) ) ; }

Target:
protected java.lang.String getDisplayFilter ( org.ovirt.engine.core.bll.adbroker.LdapQueryMetadata queryMetadata ) { return java.lang.String.format ( queryMetadata.getFilter ( ) , getEncodedParameters ( queryMetadata.getQueryData ( ) . getFilterParameters ( ) , queryMetadata.getLdapIdEncoder ( ) ) ) ; }
Source:
public boolean Match ( org.ovirt.engine.core.compat.Version source ) { return source.equals ( version ) ; }

Target:
public boolean match ( org.ovirt.engine.core.compat.Version source ) { return source.equals ( version ) ; }
Source:
public org.springframework.jdbc.core.simple.SimpleJdbcCall createCall ( ) { return new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( procedureName ) ; }

Target:
org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator createCallForModification ( final java.lang.String procedureName ) { return ( ) -> new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( procedureName ) ; }
Source:
public void setShowOnlyVersion ( boolean value ) { if ( ( showOnlyVersion ) != value ) { showOnlyVersion = value ; ShowOnlyVersionChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "ShowOnlyVersion" ) ) ; } }

Target:
public void setShowOnlyVersion ( boolean value ) { if ( ( showOnlyVersion ) != value ) { showOnlyVersion = value ; ShowOnlyVersionChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ShowOnlyVersion" ) ) ; } }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Label label ) { validateParameters ( label , "id" ) ; return performCreate ( VdcActionType.LabelNetwork , new org.ovirt.engine.core.common.action.LabelNetworkParameters ( networkId , label.getId ( ) ) , new org.ovirt.engine.api.restapi.resource.BackendNetworkLabelsResource.NetworkLabelIdResolver ( networkId ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.NetworkLabel label ) { validateParameters ( label , "id" ) ; return performCreate ( VdcActionType.LabelNetwork , new org.ovirt.engine.core.common.action.LabelNetworkParameters ( networkId , label.getId ( ) ) , new org.ovirt.engine.api.restapi.resource.BackendNetworkLabelsResource.NetworkLabelIdResolver ( networkId ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel flush ( ) { return org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmDiskPopupWidget.Driver.driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel flush ( ) { return driver.flush ( ) ; }
Source:
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.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VmTemplate > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.templatePermissionSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VmTemplate > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.template.SubTabTemplatePermissionPresenter.constants.templatePermissionSubTabLabel ( ) , 5 , modelProvider ) ; }
Source:
public javax.ws.rs.core.Response forceSelectSPM ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.ForceSelectSPM , new org.ovirt.engine.core.common.action.ForceSelectSPMParameters ( guid ) , action ) ; }

Target:
public javax.ws.rs.core.Response forceSelectSpm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.ForceSelectSPM , new org.ovirt.engine.core.common.action.ForceSelectSPMParameters ( guid ) , action ) ; }
Source:
public static boolean IsHostBelongsToAnyOfClusters ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters , org.ovirt.engine.core.common.businessentities.VDS host ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster : clusters ) { if ( cluster.getId ( ) . equals ( host.getvds_group_id ( ) ) ) { return true ; } } return false ; }

Target:
public static boolean IsHostBelongsToAnyOfClusters ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters , org.ovirt.engine.core.common.businessentities.VDS host ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster : clusters ) { if ( cluster.getId ( ) . equals ( host.getVdsGroupId ( ) ) ) { return true ; } } return false ; }
Source:
public void setcpu_per_socket ( int value ) { this . mVmStatic.setcpu_per_socket ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.UsbPolicy getUsbPolicy ( ) { return vmStatic.getusb_policy ( ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public static org.ovirt.engine.core.common.action.VdcActionParametersBase eqActionParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { org.easymock.classextension.EasyMock.reportMatcher ( new org.ovirt.engine.api.restapi.test.util.TestHelper.ActionParametersEquals ( clz , names , values ) ) ; return null ; }

Target:
public static org.ovirt.engine.core.common.action.VdcActionParametersBase eqActionParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { org.easymock.EasyMock.reportMatcher ( new org.ovirt.engine.api.restapi.test.util.TestHelper.ActionParametersEquals ( clz , names , values ) ) ; return null ; }
Source:
public void lowerVersionHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void lowerVersionHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }
Source:
protected void init ( ) { fetchStorageDomainInfo ( ) ; }

Target:
protected void init ( ) { setVdsId ( org.ovirt.engine.core.bll.ImportHostedEngineStorageDomainCommand.getParameters ( ) . getVdsId ( ) ) ; fetchStorageDomainInfo ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.EngineBackupLog getLastSuccessfulEngineBackup ( java.lang.String dbName ) { return getCallsHandler ( ) . executeRead ( "GetLastSuccessfulEngineBackup" , org.ovirt.engine.core.dao.EngineBackupLogDaoDbFacadeImpl.EngineBackupLogRowMapper.INSTANCE , getCustomMapSqlParameterSource ( ) . addValue ( "db_name" , dbName ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.EngineBackupLog getLastSuccessfulEngineBackup ( java.lang.String dbName ) { javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.EngineBackupLog > query = entityManager.createNamedQuery ( "EngineBackupLog.getLatest" , org.ovirt.engine.core.common.businessentities.EngineBackupLog.class ) . setParameter ( "dbName" , dbName ) . setMaxResults ( 1 ) ; return singleResult ( query ) ; }
Source:
public org.ovirt.engine.api.resource.LabelResource getLabelResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendHostNicLabelResource ( id , this ) ) ; }

Target:
protected org.ovirt.engine.api.restapi.resource.AbstractBaseHostNicLabelResource createSingularResource ( java.lang.String labelId ) { return new org.ovirt.engine.api.restapi.resource.BackendHostNicLabelResource ( labelId , this ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.IpV6Address createIpv6Address ( ) { org.ovirt.engine.core.common.businessentities.network.IpV6Address address = new org.ovirt.engine.core.common.businessentities.network.IpV6Address ( ) ; address.setAddress ( org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersisterTest.IPV6_ADDRESS ) ; address.setPrefix ( org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersisterTest.IPV6_PREFIX ) ; address.setGateway ( org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersisterTest.IPV6_GATEWAY ) ; address.setBootProtocol ( Ipv4BootProtocol.STATIC_IP ) ; return address ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.IpV6Address createIpv6Address ( ) { org.ovirt.engine.core.common.businessentities.network.IpV6Address address = new org.ovirt.engine.core.common.businessentities.network.IpV6Address ( ) ; address.setAddress ( org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersisterTest.IPV6_ADDRESS ) ; address.setPrefix ( org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersisterTest.IPV6_PREFIX ) ; address.setGateway ( org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersisterTest.IPV6_GATEWAY ) ; address.setBootProtocol ( Ipv6BootProtocol.AUTOCONF ) ; return address ; }
Source:
public static void GetManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , org.ovirt.engine.core.common.config.Config.DefaultConfigurationVersion ) , aQuery ) ; }

Target:
public static void GetManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
Source:
public boolean IsOvfTemplate ( java.lang.String ovfstring ) throws org.ovirt.engine.core.utils.ovf.OvfReaderException { return new org.ovirt.engine.core.utils.ovf.OvfParser ( ovfstring ) . IsTemplate ( ) ; }

Target:
public boolean isOvfTemplate ( java.lang.String ovfstring ) throws org.ovirt.engine.core.utils.ovf.OvfReaderException { return new org.ovirt.engine.core.utils.ovf.OvfParser ( ovfstring ) . isTemplate ( ) ; }
Source:
public org.ovirt.engine.core.compat.Version getGroupCompatibilityVersion ( ) { return cachedVds.getClusterCompatibilityVersion ( ) ; }

Target:
public void refreshHost ( ) { refreshHost ( cachedVds ) ; }
Source:
void refreshClustersTable ( ) { clustersTable.edit ( clustersTable.flush ( ) ) ; }

Target:
void refreshClustersTable ( ) { clustersTable.asEditor ( ) . edit ( clustersTable.asEditor ( ) . flush ( ) ) ; }
Source:
public void testPersistentAuthWithParameters ( ) { org.junit.Assert.assertTrue ( isPersistentAuth ( "persistent-auth; x=0; y=0" ) ) ; }

Target:
public void testPersistentAuthDisabled ( ) { org.junit.Assert.assertEquals ( 0 , getPrefer ( ) ) ; org.junit.Assert.assertEquals ( 0 , getPrefer ( "x" , "y" ) ) ; org.junit.Assert.assertEquals ( 0 , getPrefer ( "x" , "y" ) ) ; }
Source:
protected void failedToRunVm ( ) { try { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . failedToRunVm ( ) ; } } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected void failedToMigrate ( ) { try { determineMigrationFailureForAuditLog ( ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmCommand.log ( ) ; failedToRunVm ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.initOsIds ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { osArchitectures = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
protected org.ovirt.engine.api.model.Storage map ( org.ovirt.engine.core.common.businessentities.storage_domains entity ) { return getMapper ( org.ovirt.engine.core.common.businessentities.storage_domains.class , org.ovirt.engine.api.model.Storage.class ) . map ( entity , null ) ; }

Target:
protected org.ovirt.engine.api.model.Storage map ( org.ovirt.engine.api.restapi.resource.StorageDomain entity ) { return getMapper ( org.ovirt.engine.core.common.businessentities.StorageDomain.class , org.ovirt.engine.api.model.Storage.class ) . map ( entity , null ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.permissions object ) { return object.getOwnerName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Permissions object ) { return object.getOwnerName ( ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vm.vm_name=%s, nic=%s, vmDevice=%s" , super . toString ( ) , ( ( getVm ( ) ) == null ? "" : getVm ( ) . getvm_name ( ) ) , getNic ( ) , getVmDevice ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vm.vm_name=%s, nic=%s, vmDevice=%s" , super . toString ( ) , ( ( getVm ( ) ) == null ? "" : getVm ( ) . getVmName ( ) ) , getNic ( ) , getVmDevice ( ) ) ; }
Source:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) , org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) ) , diskInfoDestinationMap , destStorages , false ) ; }

Target:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( vmDisksSource , org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( vmDisksSource.getStoragePoolId ( ) ) , diskInfoDestinationMap , destStorages , false ) ; }
Source:
private boolean hasVMs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . getAllRunningForVds ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVdsId ( ) ) ; return ( vms.size ( ) ) > 0 ; }

Target:
private boolean hasVMs ( ) { return ! ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVmDAO ( ) . getAllRunningForVds ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVdsId ( ) ) . isEmpty ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = createDiskImage ( ) ; disk.setvolume_format ( volumeFormat ) ; disk.setShareable ( true ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = createDiskImage ( ) ; disk.setvolumeFormat ( volumeFormat ) ; disk.setShareable ( true ) ; return disk ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VM ) ; tempVar.setRefresh ( getIsQueryFirstTime ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.VM ) ; tempVar.setRefresh ( getIsQueryFirstTime ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void setCorrelationId ( java.lang.String correlationId ) { if ( ! ( _parameters.getMultipleAction ( ) ) ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setCorrelationId ( correlationId ) ; } super . setCorrelationId ( correlationId ) ; }

Target:
public void setCorrelationId ( java.lang.String correlationId ) { if ( ! ( _parameters.getMultipleAction ( ) ) ) { org.ovirt.engine.core.utils.CorrelationIdTracker.setCorrelationId ( correlationId ) ; } super . setCorrelationId ( correlationId ) ; }
Source:
public void testGetStorageTypesInPoolForSingleType ( ) { org.ovirt.engine.core.compat.Guid poolId = FixturesTool.STORAGE_POOL_NFS ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageType > storageTypes = dao.getStorageTypesInPool ( poolId ) ; assertStorageTypes ( storageTypes , StorageType.NFS ) ; }

Target:
public void testGetStorageTypesInPoolForSingleType ( ) { org.ovirt.engine.core.compat.Guid poolId = FixturesTool.STORAGE_POOL_NFS ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.StorageType > storageTypes = dao.getStorageTypesInPool ( poolId ) ; assertStorageTypes ( storageTypes , StorageType.NFS ) ; }
Source:
public void setstorage_name ( java.lang.String value ) { getStorageStaticData ( ) . setstorage_name ( value ) ; }

Target:
public void setStorageName ( java.lang.String storageName ) { getStorageStaticData ( ) . setstorage_name ( storageName ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . onFailed ( ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getRemoveSnapshotCommand ( cmdId ) . onSucceeded ( ) ; super . onSucceeded ( cmdId , childCmdIds ) ; }
Source:
public void testRecieveInvalidFile ( ) throws java.lang.Exception { client.receiveFile ( ( ( remote ) + "'" ) , local2.getAbsolutePath ( ) ) ; }

Target:
public void testRecieveInvalidFile ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> client.receiveFile ( ( ( remote ) + "'" ) , local2.getAbsolutePath ( ) ) ) ; }
Source:
private void clearDomainFromCache ( org.ovirt.engine.core.compat.Guid domainId ) { java.util.Set < org.ovirt.engine.core.compat.Guid > vdsIds = _domainsInProblem.remove ( domainId ) ; if ( vdsIds != null ) { for ( org.ovirt.engine.core.compat.Guid vdsId : vdsIds ) { ClearVds ( vdsId , domainId ) ; } } }

Target:
private void clearDomainFromCache ( org.ovirt.engine.core.compat.Guid domainId , java.util.List < org.ovirt.engine.core.compat.Guid > nonOpVdss ) { if ( domainId != null ) { _domainsInProblem.remove ( domainId ) ; } removeVdsAsProblematic ( nonOpVdss ) ; }
Source:
public void setWrapperStyleName ( java.lang.String styleName ) { wrapperPanel.setStyleName ( styleName ) ; }

Target:
public void setContentWidgetContainerStyleName ( java.lang.String styleName ) { contentWidgetContainer.setStyleName ( styleName ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage_domains > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage_domains > result = dao.getAll ( ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertCorrectGetAllResult ( result ) ; }
Source:
public org.ovirt.engine.api.model.DiskAttachments list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetDiskVmElementsByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( templateId ) ) ) ; }

Target:
public org.ovirt.engine.api.model.DiskAttachments list ( ) { return mapCollection ( getBackendCollection ( QueryType.GetDiskVmElementsByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( templateId ) ) ) ; }
Source:
private void UpdateActionAvailability ( ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( getEntity ( ) ) ) ; }

Target:
private void updateActionAvailability ( ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( getEntity ( ) ) ) ; }
Source:
public void testCloneFromTemplateWithClonePermissionsDontClone ( ) throws java.lang.Exception { doTestCloneFromTemplateWithClonePermissions ( createModel ( createDisksCollection ( ) ) , false ) ; }

Target:
public void testCloneFromTemplateWithClonePermissionsDontClone ( ) throws java.lang.Exception { doTestCloneFromTemplateWithClonePermissions ( createModel ( createDiskAttachmentsCollection ( ) ) , false ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { this . mVmDynamic.setstatus ( value ) ; }

Target:
public void setKernelParams ( java.lang.String value ) { vmStatic.setkernel_params ( value ) ; }
Source:
private int getBlockSparseInitSizeInGB ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.InitStorageSparseSizeInGB ) . intValue ( ) ; }

Target:
protected org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { if ( ( macPool ) == null ) { macPool = poolPerCluster.getMacPoolForCluster ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getClusterId ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getContext ( ) ) ; } return macPool ; }
Source:
public void setMigratingToVds ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setmigrating_to_vds ( value ) ; }

Target:
public void setDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . vmDynamic.setDisplayType ( value ) ; }
Source:
public void setvmt_name ( java.lang.String value ) { this . vmt_nameField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vmt_name" ) ) ; }

Target:
public java.lang.String getVmtTimeZone ( ) { return vmtTimeZone ; }
Source:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , null , "" ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ) ; }

Target:
private void doTestIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullForBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol bootProtocol ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachmentWithIpConfiguration = createNetworkAttachmentWithIpConfiguration ( bootProtocol , null , null ) ; org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator networkAttachmentValidator = createNetworkAttachmentValidator ( networkAttachmentWithIpConfiguration ) ; org.junit.Assert.assertThat ( networkAttachmentValidator.ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected boolean validate ( ) { return ( ( ( ( networkNotAttachedToCluster ( ) ) && ( vdsGroupExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ) && ( validateAttachment ( ) ) ; }

Target:
protected boolean validate ( ) { return ( ( ( ( networkNotAttachedToCluster ( ) ) && ( clusterExists ( ) ) ) && ( changesAreClusterCompatible ( ) ) ) && ( logicalNetworkExists ( ) ) ) && ( validateAttachment ( ) ) ; }
Source:
public javax.ws.rs.core.Response logon ( org.ovirt.engine.api.model.Action action ) { final javax.ws.rs.core.Response response = doAction ( VdcActionType.VmLogon , new org.ovirt.engine.core.common.action.VmOperationParameterBase ( guid ) , action ) ; return response ; }

Target:
public javax.ws.rs.core.Response logon ( org.ovirt.engine.api.model.Action action ) { final javax.ws.rs.core.Response response = doAction ( ActionType.VmLogon , new org.ovirt.engine.core.common.action.VmOperationParameterBase ( guid ) , action ) ; return response ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return ( network.isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) . unless ( ( ( network.isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( getDataCenter ( ) . getCompatibilityVersion ( ) ) ) ) ) ; }
Source:
public void setUp ( ) { super . setUp ( ) ; mcr.mockConfigValue ( ConfigValues.OrganizationName , "oVirt" ) ; }

Target:
public static java.util.stream.Stream < org.ovirt.engine.core.utils.MockConfigDescriptor < ? > > mockConfiguration ( ) { return java.util.stream.Stream.of ( org.ovirt.engine.core.utils.MockConfigDescriptor.of ( ConfigValues.OrganizationName , "oVirt" ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter generateParameters ( ) { org.ovirt.engine.core.compat.Guid roleId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > groups = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > ( java.util.Arrays.asList ( ActionGroup.DELETE_HOST , ActionGroup.CONFIGURE_ENGINE ) ) ; return new org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter ( roleId , groups ) ; }

Target:
protected org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter generateParameters ( ) { org.ovirt.engine.core.compat.Guid roleId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > groups = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ActionGroup > ( java.util.Arrays.asList ( ActionGroup.DELETE_HOST , ActionGroup.CONFIGURE_ENGINE ) ) ; return new org.ovirt.engine.core.common.action.ActionGroupsToRoleParameter ( roleId , groups ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.join ( "-" , words ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.join ( "_" , words ) ; }
Source:
public org.ovirt.engine.api.model.Certificates list ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = org.ovirt.engine.api.restapi.resource.BackendExternalProviderHelper.getProvider ( this , providerId ) ; org.ovirt.engine.core.common.queries.ProviderQueryParameters parameters = new org.ovirt.engine.core.common.queries.ProviderQueryParameters ( ) ; parameters.setProvider ( provider ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetProviderCertificateChain , parameters ) ) ; }

Target:
public org.ovirt.engine.api.model.Certificates list ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = org.ovirt.engine.api.restapi.resource.BackendExternalProviderHelper.getProvider ( this , providerId ) ; org.ovirt.engine.core.common.queries.ProviderQueryParameters parameters = new org.ovirt.engine.core.common.queries.ProviderQueryParameters ( ) ; parameters.setProvider ( provider ) ; return mapCollection ( getBackendCollection ( QueryType.GetProviderCertificateChain , parameters ) ) ; }
Source:
protected void updateHostPinning ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { getModel ( ) . getMigrationMode ( ) . setSelectedItem ( migrationSupport ) ; }

Target:
public void enableSinglePCI ( boolean enabled ) { getModel ( ) . getIsSingleQxlEnabled ( ) . setIsChangable ( enabled ) ; getModel ( ) . getIsSingleQxlEnabled ( ) . setEntity ( enabled ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMName ( java.lang.String vmName , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMId ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;
Source:
public void testCanDoActionStorageDomainIsFileStorage ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_ALIGNMENT_SCAN_STORAGE_TYPE ) ; }

Target:
public void testValidateStorageDomainIsFileStorage ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_ALIGNMENT_SCAN_STORAGE_TYPE ) ; }
Source:
public void init ( org.ovirt.engine.core.common.osinfo.MapBackedPreferences preferences ) { org.ovirt.engine.core.common.osinfo.OsRepositoryImpl.INSTANCE.preferences = preferences ; emptyNode = preferences.node ( "emptyNode" ) ; buildIdToUnameLookup ( ) ; }

Target:
public void init ( org.ovirt.engine.core.common.osinfo.MapBackedPreferences preferences ) { org.ovirt.engine.core.common.osinfo.OsRepositoryImpl.INSTANCE.preferences = preferences ; emptyNode = preferences.node ( "emptyNode" ) ; buildIdToUnameLookup ( ) ; buildBackCompatMapping ( ) ; }
Source:
protected void syncSearch ( ) { updateAppList ( ) ; setIsQueryFirstTime ( false ) ; }

Target:
protected void syncSearch ( ) { updateAppList ( ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel.setIsQueryFirstTime ( false ) ; }
Source:
void init ( final org.ovirt.engine.core.branding.BrandingManager brandingManager ) { this . brandingManager = brandingManager ; }

Target:
void init ( final org.ovirt.engine.core.branding.BrandingManager brandingManager , java.lang.String engineUri ) { this . brandingManager = brandingManager ; this . engineUri = engineUri ; }
Source:
public void testIsDomainExistAndActiveDomainNotUp ( ) { domain.setStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertEquals ( "Wrong failure for inactive domain" , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 , validator.isDomainExistAndActive ( ) . getMessage ( ) ) ; }

Target:
public void testIsDomainExistAndActiveDomainNotUp ( ) { domain.setStatus ( StorageDomainStatus.Inactive ) ; org.junit.Assert.assertEquals ( "Wrong failure for inactive domain" , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 , validator.isDomainExistAndActive ( ) . getMessage ( ) ) ; }
Source:
public void freeMac ( java.lang.String mac ) { macsStorage.freeMac ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; }

Target:
public boolean isMacInRange ( java.lang.String mac ) { boolean result = macsStorage.isMacInRange ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.debug ( "Mac isMacInRange={}" , mac , result ) ; return result ; }
Source:
public void editProfiles ( org.ovirt.engine.ui.uicommonweb.models.ListModel profiles , org.ovirt.engine.core.compat.Version dcCompatibilityVersion , org.ovirt.engine.core.compat.Guid dcId , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel defaultProfile ) { profilesEditor.edit ( profiles , dcCompatibilityVersion , dcId , defaultProfile ) ; }

Target:
public void edit ( T model ) { profilesEditor.edit ( model.getProfiles ( ) , model.getDefaultProfile ( ) ) ; }
Source:
private void onAssignTags ( ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( getWindow ( ) ) ) ; getAttachedTagsToSelectedVMs ( model ) ; }

Target:
public void setImportVmCommand ( org.ovirt.engine.ui.uicommonweb.UICommand importVmCommand ) { this . importVmCommand = importVmCommand ; }
Source:
public void testGet ( ) { doTestGet ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) ; }

Target:
public void testGetVirtOnly ( ) { doTestGet ( ApplicationMode.VirtOnly , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) ; }
Source:
public void setRequired ( boolean required ) { getEntity ( ) . setRequired ( required ) ; }

Target:
public void setRequired ( boolean required ) { getEntity ( ) . getCluster ( ) . setRequired ( required ) ; }
Source:
private void addTaskToMap ( org.ovirt.engine.core.compat.Guid guid , org.ovirt.engine.core.bll.tasks.SPMAsyncTask asyncTask ) { _tasks.put ( guid , asyncTask ) ; logChangedMap = true ; }

Target:
private void addTaskToMap ( org.ovirt.engine.core.compat.Guid guid , org.ovirt.engine.core.bll.tasks.interfaces.SPMTask asyncTask ) { _tasks.put ( guid , asyncTask ) ; logChangedMap = true ; }
Source:
private void mockVmDao ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseMockUtils.mockVmDao ( command , vmDao ) ; }

Target:
private void mockVmDao ( ) { org.mockito.Mockito.doReturn ( vmDao ) . when ( command ) . getVmDAO ( ) ; }
Source:
public void setvmt_creation_date ( java.util.Date value ) { this . vmt_creation_dateField = value ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getVmtOs ( ) { return this . vmtOs ; }
Source:
private void testExecution ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { createStorageDomain ( status ) ; createUpStoragePool ( ) ; createCommand ( ) ; }

Target:
private void testNonActiveVdsExecution ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { createStorageDomain ( status ) ; createUpStoragePool ( ) ; createNonUpVds ( ) ; createCommand ( ) ; }
Source:
public void validateFailureOnMovingLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void passDiscardSupportedForDestSdCopyTemplateDiskOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.TEMPLATE ) ; mockPassDiscardSupportedForDestSd ( ValidationResult.VALID , ImageOperation.Copy ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; } UpdateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; } UpdateActionAvailability ( ) ; }
Source:
protected boolean doesStorageDomainhaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { return org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.hasSpaceForRequest ( storageDomain , getDiskImageInfo ( ) . getSizeInGigabytes ( ) ) ; }

Target:
protected boolean doesStorageDomainhaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainHasSpaceForRequest ( getDiskImageInfo ( ) . getSizeInGigabytes ( ) ) ) ; }
Source:
protected void configure ( ) { super . configure ( ) ; bind ( org.ovirt.engine.ui.common.utils.ConsoleUtils.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.common.utils.ConsoleManager.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
protected void configure ( ) { super . configure ( ) ; bind ( org.ovirt.engine.ui.uicommonweb.ConsoleUtils.class ) . to ( org.ovirt.engine.ui.common.utils.ConsoleUtilsImpl.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.uicommonweb.ConsoleManager.class ) . to ( org.ovirt.engine.ui.common.utils.ConsoleManagerImpl.class ) . in ( com.google.inject.Singleton.class ) ; }