auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void addVmStatistics ( ) { org.ovirt.engine.core.common.businessentities.VmStatistics stats = new org.ovirt.engine.core.common.businessentities.VmStatistics ( ) ; stats.setId ( org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmStatisticsDAO ( ) . save ( stats ) ; org.ovirt.engine.core.bll.AddVmCommand.getCompensationContext ( ) . snapshotNewEntity ( stats ) ; }

Target:
void addVmStatistics ( ) { org.ovirt.engine.core.common.businessentities.VmStatistics stats = new org.ovirt.engine.core.common.businessentities.VmStatistics ( ) ; stats.setId ( org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmStatisticsDao ( ) . save ( stats ) ; org.ovirt.engine.core.bll.AddVmCommand.getCompensationContext ( ) . snapshotNewEntity ( stats ) ; }
Source:
protected void SyncSearch ( ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getEntity ( ) ) ) ; if ( vm == null ) { return ; } super . SyncSearch ( VdcQueryType.GetAllVmSnapshotsByVmId , new org.ovirt.engine.core.common.queries.GetAllVmSnapshotsByVmIdParameters ( vm.getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getEntity ( ) ) ) ; if ( vm == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllVmSnapshotsByVmId , new org.ovirt.engine.core.common.queries.GetAllVmSnapshotsByVmIdParameters ( vm.getId ( ) ) ) ; }
Source:
public void testCanDoActionFloatingDisk ( ) { org.mockito.Mockito.when ( vmDao.getVmsListForDisk ( diskId , java.lang.Boolean.FALSE ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VM > emptyList ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DISK_IS_NOT_VM_DISK ) ; }

Target:
public void testCanDoActionFloatingDisk ( ) { org.mockito.Mockito.when ( vmDao.getVmsListForDisk ( diskId , java.lang.Boolean.FALSE ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VM > emptyList ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_IS_NOT_VM_DISK ) ; }
Source:
protected java.lang.String getText ( org.ovirt.engine.core.common.businessentities.StoragePool entity ) { return entity.isLocal ( ) ? constants.storageTypeLocal ( ) : constants.storageTypeShared ( ) ; }

Target:
protected java.lang.String getText ( org.ovirt.engine.core.common.businessentities.StoragePool entity ) { return entity.isLocal ( ) ? org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.AbstractFindDcPopupView.constants.storageTypeLocal ( ) : org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.AbstractFindDcPopupView.constants.storageTypeShared ( ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getSelectedItemsWithVlans ( ) { return GetSelectedItems ( true ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getSelectedItemsWithVlans ( ) { return getSelectedItems ( true ) ; }
Source:
public void doTest ( ) throws java.io.IOException , java.net.URISyntaxException { java.util.List < java.lang.String > errors = org.ovirt.engine.ui.uicompat.GwtMessagesValidator.validateClass ( org.ovirt.engine.ui.uicompat.UIMessages.class ) ; assertTrue ( org.ovirt.engine.ui.uicompat.GwtMessagesValidator.format ( errors ) , errors.isEmpty ( ) ) ; }

Target:
public void doTest ( ) throws java.io.IOException , java.net.URISyntaxException { java.util.List < java.lang.String > errors = org.ovirt.engine.ui.uicompat.GwtMessagesValidator.validateClass ( org.ovirt.engine.ui.uicompat.UIMessages.class ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.ui.uicompat.GwtMessagesValidator.format ( errors ) , errors.isEmpty ( ) ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.async_tasks task ) { save ( task , null , org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.EMPTY_GUIDS_ARRAY ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { save ( task , null , org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.EMPTY_GUIDS_ARRAY ) ; }
Source:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setId ( value ) ; this . mVmDynamic.setId ( value ) ; this . mVmStatistics.setId ( value ) ; }

Target:
public java.lang.String getVmName ( ) { return this . vmStatic.getvm_name ( ) ; }
Source:
protected void updateVMDetails ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateVmGuestAgentVersion ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateNetworkInterfacesFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateVmInitFromDB ( vm.getStaticData ( ) , true ) ; }

Target:
protected void updateVMDetails ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateVmGuestAgentVersion ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateNetworkInterfacesFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateVmInitFromDB ( vm.getStaticData ( ) , true ) ; org.ovirt.engine.core.bll.VmHandler.updateNumaNodesFromDb ( vm ) ; }
Source:
public void testRemoveWithParam ( ) { container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ; container.removeSession ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.junit.Assert.assertNull ( "Get should return null since the session was removed" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testRemoveWithParam ( ) { container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ; container.removeSessionOnLogout ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.junit.Assert.assertNull ( "Get should return null since the session was removed" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
public org.ovirt.engine.api.model.OpenStackVolumeTypes list ( ) { org.ovirt.engine.core.compat.Guid storageDomainId = org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackStorageProviderHelper.getStorageDomainId ( this , providerId ) ; org.ovirt.engine.core.common.queries.IdQueryParameters parameters = new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetCinderVolumeTypesByStorageDomainId , parameters ) ) ; }

Target:
public org.ovirt.engine.api.model.OpenStackVolumeTypes list ( ) { org.ovirt.engine.core.compat.Guid storageDomainId = org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackStorageProviderHelper.getStorageDomainId ( this , providerId ) ; org.ovirt.engine.core.common.queries.IdQueryParameters parameters = new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) ; return mapCollection ( getBackendCollection ( QueryType.GetCinderVolumeTypesByStorageDomainId , parameters ) ) ; }
Source:
public void setDisplayIp ( java.lang.String value ) { this . vmDynamic.setDisplayIp ( value ) ; }

Target:
public void setGuestMemoryCached ( java.lang.Long guestMemoryCached ) { vmDynamic.setGuestMemoryCached ( guestMemoryCached ) ; }
Source:
private void addStorageDomainToModel ( org.ovirt.engine.api.model.VM model ) { org.ovirt.engine.api.model.StorageDomain storageDomain = new org.ovirt.engine.api.model.StorageDomain ( ) ; storageDomain.setId ( GUIDS [ 1 ] . toString ( ) ) ; model.setStorageDomain ( storageDomain ) ; }

Target:
private void addStorageDomainToModel ( org.ovirt.engine.api.model.Vm model ) { org.ovirt.engine.api.model.StorageDomain storageDomain = new org.ovirt.engine.api.model.StorageDomain ( ) ; storageDomain.setId ( GUIDS [ 1 ] . toString ( ) ) ; model.setStorageDomain ( storageDomain ) ; }
Source:
public void testIsNetworkInSyncWhenIpv4BootProtocolEqual ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpConfigurationIsEmpty ( ) { org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
java.util.Map < java.lang.String , java.util.Set < java.lang.String > > getHostToVmAssignments ( ) ;

Target:
java.util.Map < java.lang.String , java.util.Set < java.lang.Long > > getHostToInstanceAssignments ( ) ;
Source:
public org.ovirt.engine.core.bll.ValidationResult externalNetworkNotRequired ( java.lang.String networkName ) { return networkCluster.isRequired ( ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_REQUIRED , java.lang.String.format ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorBase.NETWORK_NAME_REPLACEMENT , networkName ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult externalNetworkNotDisplay ( java.lang.String networkName ) { return networkCluster.isDisplay ( ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_DISPLAY , java.lang.String.format ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorBase.NETWORK_NAME_REPLACEMENT , networkName ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
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 ) { maintenance ( cluster.isMaintenanceReasonRequired ( ) ) ; } }

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 ) { maintenance ( cluster.isMaintenanceReasonRequired ( ) ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getPrevVdsGroup ( ) { return super . getVdsGroup ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getPrevCluster ( ) { return super . getCluster ( ) ; }
Source:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; memoryStates = org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmStatic ( ) ; }

Target:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; memoryStates = org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; removeVmStatic ( getParameters ( ) . isRemovePermissions ( ) ) ; }
Source:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( removeModulName ( com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ) ) + ( getDocumentationBasePath ( ) ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ; }

Target:
public java.lang.String getDocumentationLibURL ( ) { return ( ( getDocumentationBaseURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.DOCUMENTATION_LIB_PATH ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Auto ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . showSpicePanel ( event.getValue ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( "IsAvailable" . equals ( ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ) ) { hideMacWhenNotEnabled ( iface ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( "IsAvailable" . equals ( ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName ) ) { hideMacWhenNotEnabled ( iface ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getAllForStoragePool ( org.ovirt.engine.core.compat.Guid id ) { return getAllForStoragePool ( id , null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getAllForStoragePool ( org.ovirt.engine.core.compat.Guid id ) { return getAllForStoragePool ( id , null , false ) ; }
Source:
public void setVmDomain ( java.lang.String value ) { this . vmStatic.setDomain ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmInit getVmInit ( ) { return this . vmStatic.getVmInit ( ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveDisk , new org.ovirt.engine.core.common.action.RemoveDiskParameters ( guid , asGuid ( storageDomainId ) ) ) ; }

Target:
public javax.ws.rs.core.Response move ( org.ovirt.engine.api.model.Action action ) { return getDelegate ( ) . move ( action ) ; }
Source:
private void initConsoleTypeToNameMap ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { consoleTypeToName.put ( ConsoleProtocol.SPICE , constants.spice ( ) ) ; consoleTypeToName.put ( ConsoleProtocol.RDP , constants.remoteDesktop ( ) ) ; consoleTypeToName.put ( ConsoleProtocol.VNC , constants.vnc ( ) ) ; }

Target:
private void initConsoleTypeToNameMap ( ) { consoleTypeToName.put ( ConsoleProtocol.SPICE , org.ovirt.engine.ui.userportal.section.main.presenter.tab.basic.MainTabBasicDetailsPresenterWidget.constants.spice ( ) ) ; consoleTypeToName.put ( ConsoleProtocol.RDP , org.ovirt.engine.ui.userportal.section.main.presenter.tab.basic.MainTabBasicDetailsPresenterWidget.constants.remoteDesktop ( ) ) ; consoleTypeToName.put ( ConsoleProtocol.VNC , org.ovirt.engine.ui.userportal.section.main.presenter.tab.basic.MainTabBasicDetailsPresenterWidget.constants.vnc ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileListModel , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.profile.SubTabVnicProfileTemplatePresenter.constants.vnicProfileTemplateSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.profile.SubTabVnicProfileTemplatePresenter.constants.vnicProfileTemplateSubTabLabel ( ) , 1 ) ; }
Source:
public void addToHistory_emptyBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 12 ) , statistics.addToHistory ( new java.util.ArrayList < java.lang.Integer > ( ) , 12 , 100 ) ) ; }

Target:
public void addToHistoryEmptyBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 12 ) , statistics.addToHistory ( new java.util.ArrayList < java.lang.Integer > ( ) , 12 , 100 ) ) ; }
Source:
private void removeAlarm ( org.ovirt.engine.core.compat.Guid hostId , boolean isConcurrent , org.ovirt.engine.core.common.AuditLogType conAlert , org.ovirt.engine.core.common.AuditLogType seqAlert ) { if ( isConcurrent ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.RemoveVdsAlert ( hostId , conAlert ) ; } else { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.RemoveVdsAlert ( hostId , seqAlert ) ; } }

Target:
private void removeAlert ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.AuditLogType auditMessage ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.RemoveVdsAlert ( hostId , auditMessage ) ; }
Source:
public int getNumOfCpus ( ) { return ( this . getCpuPerSocket ( ) ) * ( this . getNumOfSockets ( ) ) ; }

Target:
public int getNumOfCpus ( ) { return ( ( this . getCpuPerSocket ( ) ) * ( this . getNumOfSockets ( ) ) ) * ( this . getThreadsPerCpu ( ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) ) == null ) { AddInvalidIdErrorMessages ( VdcBllMessages.VAR__ACTION__UPDATE ) ; return false ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) ) == null ) { addInvalidIdErrorMessages ( VdcBllMessages.VAR__ACTION__UPDATE ) ; return false ; } return true ; }
Source:
private boolean canFindVmOrTemplate ( ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageOperation.Copy ) ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getVmTemplate ( ) ) == null ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; } } return true ; }

Target:
private boolean canFindVmOrTemplate ( ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Copy ) ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getVmTemplate ( ) ) == null ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; } } return true ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { parameters.setRefresh ( false ) ; return backend.runInternalQuery ( actionType , parameters , getEngineContext ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { parameters.setRefresh ( false ) ; return backend.runInternalQuery ( actionType , parameters , getEngineContext ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.ad_groups getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.ad_groups entity = new org.ovirt.engine.core.common.businessentities.ad_groups ( ) ; entity.setid ( GUIDS [ index ] ) ; entity.setname ( NAMES [ index ] ) ; entity.setdomain ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; return entity ; }

Target:
protected org.ovirt.engine.core.common.businessentities.LdapGroup getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.LdapGroup entity = new org.ovirt.engine.core.common.businessentities.LdapGroup ( ) ; entity.setid ( GUIDS [ index ] ) ; entity.setname ( NAMES [ index ] ) ; entity.setdomain ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; return entity ; }
Source:
public void testChangeToExistingName ( ) { prepareVmToPassCanDoAction ( ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with vm name already in use." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testValidName ( ) { prepareVmToPassValidate ( ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; boolean c = command.validate ( ) ; org.junit.Assert.assertTrue ( "validate should have passed." , c ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult uuidNotExist ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.LIBVIRT_SECRET_UUID_ALREADY_EXISTS ) . unless ( ( ( libvirtSecretDao.get ( libvirtSecret.getId ( ) ) ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult uuidNotExist ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.LIBVIRT_SECRET_UUID_ALREADY_EXISTS ) . unless ( ( ( libvirtSecretDao.get ( libvirtSecret.getId ( ) ) ) == null ) ) ; }
Source:
public boolean isMixedStorageDomainsSupported ( org.ovirt.engine.core.compat.Version version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.MixedDomainTypesInDataCenter , version.toString ( ) ) ) ) ; }

Target:
public int getUploadImageXhrMaxRetries ( ) { return ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.UploadImageXhrMaxRetries ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmDevice readUnmanagedVmDevice ( org.ovirt.engine.core.compat.backendcompat.XmlNode node , org.ovirt.engine.core.compat.Guid deviceId ) { org.ovirt.engine.core.common.businessentities.VmDevice vmDevice = readVmDevice ( node , deviceId ) ; vmBase.getUnmanagedDeviceList ( ) . add ( vmDevice ) ; return vmDevice ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmDevice readUnmanagedVmDevice ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node , org.ovirt.engine.core.compat.Guid deviceId ) { org.ovirt.engine.core.common.businessentities.VmDevice vmDevice = readVmDevice ( node , deviceId ) ; vmBase.getUnmanagedDeviceList ( ) . add ( vmDevice ) ; return vmDevice ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDeviceAndStoreToDB ( getVm ( ) . getStaticData ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrder ( getVm ( ) . getId ( ) ) ; return null ; }
Source:
public org.ovirt.engine.core.common.businessentities.EngineBackupLog getLastSuccessfulEngineBackup ( java.lang.String scope ) { javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.EngineBackupLog > query = entityManager.createNamedQuery ( "EngineBackupLog.getLatest" , org.ovirt.engine.core.common.businessentities.EngineBackupLog.class ) . setParameter ( "scope" , scope ) . setMaxResults ( 1 ) ; return singleResult ( query ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.EngineBackupLog getLastSuccessfulEngineBackup ( java.lang.String scope ) { javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.EngineBackupLog > query = getEntityManager ( ) . createNamedQuery ( "EngineBackupLog.getLatest" , org.ovirt.engine.core.common.businessentities.EngineBackupLog.class ) . setParameter ( "scope" , scope ) . setMaxResults ( 1 ) ; return singleResult ( query ) ; }
Source:
public void testBootProtocolSetForDisplayNetworkWhenIpConfigurationIsNull ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplayIsFalse ( true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL ) ) ; }

Target:
public void testBootProtocolSetForDisplayNetworkWhenIpConfigurationIsNull ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = createNetwork ( ) ; doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( true , network , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentValidator.VAR_ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL_ENTITY , network.getName ( ) ) ) ) ; }
Source:
public java.util.ArrayList < java.util.Map.Entry < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.core.common.queries.DiskImageList > > getExtendedItems ( ) { return extendedItems ; }

Target:
protected void Restore ( ) { super . Restore ( ) ; ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateImportDiskListModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.templates.ImportTemplateModel ) ( getWindow ( ) ) ) . getImportDiskListModel ( ) ) ) . setExtendedItems ( extendedItems ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClusters ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > list = new java.util.ArrayList < > ( ) ; list.add ( createCluster ( 0 , Version.v3_5 ) ) ; list.add ( createCluster ( 1 , Version.v4_0 ) ) ; return list ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClusters ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > list = new java.util.ArrayList < > ( ) ; list.add ( org.ovirt.engine.core.bll.gluster.GlusterGeoRepSyncJobTest.createCluster ( ) ) ; return list ; }
Source:
public void canDoActionSucceedsPoolNotSpecified ( ) { sd.setStorageFormat ( null ) ; vds.setStoragePoolId ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void validateSucceedsPoolNotSpecified ( ) { sd.setStorageFormat ( null ) ; vds.setStoragePoolId ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult networkNotAttachedToCluster ( final org.ovirt.engine.core.common.businessentities.network.Network network ) { return org.ovirt.engine.core.bll.network.dc.NetworkCommon.getNetworkClusterDAO ( ) . getAllForNetwork ( network.getId ( ) ) . isEmpty ( ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_CLUSTER_NETWORK_IN_USE ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > getClusterAttachments ( ) { if ( ( clusterAttachments ) == null ) { clusterAttachments = org.ovirt.engine.core.bll.network.dc.NetworkCommon.getNetworkClusterDAO ( ) . getAllForNetwork ( getNetwork ( ) . getId ( ) ) ; } return clusterAttachments ; }
Source:
public void testDefaultRouteWhenOutOfSyncOnOlderCluster ( ) { cluster.setCompatibilityVersion ( Version.v4_1 ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testDefaultRouteWhenOutOfSyncOnOlderCluster ( ) { cluster.setCompatibilityVersion ( Version.v4_1 ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public org.ovirt.engine.core.searchbackend.ISyntaxChecker getSyntaxChecker ( ) { return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.createUISyntaxChecker ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.AuthenticationMethod ) ) ) ) ; }

Target:
public org.ovirt.engine.core.searchbackend.ISyntaxChecker getSyntaxChecker ( ) { return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.createUISyntaxChecker ( "LDAP" ) ; }
Source:
private void refreshHostStorage ( org.ovirt.engine.core.compat.Guid hostId ) { getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , false , null ) ) ; }

Target:
private void refreshHostStorage ( org.ovirt.engine.core.compat.Guid hostId ) { getBackendCollection ( QueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , false , null , false ) ) ; }
Source:
public void testGetAsyncTaskIdsByEntity ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByEntity ( FixturesTool.ENTITY_WITH_TASKS_ID ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertEquals ( 1 , guids.size ( ) ) ; }

Target:
public void testGetAsyncTaskIdsByEntity ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByEntity ( FixturesTool.ENTITY_WITH_TASKS_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( guids ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , guids.size ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { return backend.RunQuery ( queryType , sessionize ( queryParams ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { queryParams.setFiltered ( isFiltered ( ) ) ; return backend.RunQuery ( queryType , sessionize ( queryParams ) ) ; }
Source:
public void setmem_commited ( java.lang.Integer value ) { this . mVdsDynamic.setmem_commited ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_commited" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "mem_commited_percent" ) ) ; }

Target:
public void setmem_commited ( java.lang.Integer value ) { this . mVdsDynamic.setmem_commited ( value ) ; calculateFreeVirtualMemory ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( ( p.getUsageCpuPercent ( ) ) + ( CalcSpmCpuConsumption ( p ) ) ) < highVdsCount ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( ( p.getUsageCpuPercent ( ) ) + ( calcSpmCpuConsumption ( p ) ) ) < highVdsCount ; }
Source:
public void setcpu_per_socket ( int value ) { this . mVmStatic.setcpu_per_socket ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "cpu_per_socket" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_cpus" ) ) ; }

Target:
public void setAutoStartup ( boolean value ) { vmStatic.setAutoStartup ( value ) ; }
Source:
public abstract org.ovirt.engine.core.common.businessentities.network.VnicProfile getProfile ( ) ;

Target:
public org.ovirt.engine.core.common.businessentities.network.VnicProfile getProfile ( ) { return vnicProfile ; }
Source:
public void testCheckGlusterQuorumTwoServersUp ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( true ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = java.util.Arrays.asList ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ; org.junit.Assert.assertTrue ( hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }

Target:
public void testCheckGlusterQuorumTwoServersUp ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( true ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = java.util.Arrays.asList ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ; org.junit.jupiter.api.Assertions.assertTrue ( hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return org.ovirt.engine.ui.webadmin.widget.table.column.NetworkRoleColumnHelper.getTooltip ( ( clusterNetworkModel.isVmNetwork ( ) ? java.util.Collections.singletonMap ( vmImage , constants.vmItemInfo ( ) ) : java.util.Collections.< com.google.gwt.safehtml.shared.SafeHtml , java.lang.String > emptyMap ( ) ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return org.ovirt.engine.ui.webadmin.widget.table.column.MultiImageColumnHelper.getTooltip ( ( clusterNetworkModel.isVmNetwork ( ) ? java.util.Collections.singletonMap ( vmImage , constants.vmItemInfo ( ) ) : java.util.Collections.< com.google.gwt.safehtml.shared.SafeHtml , java.lang.String > emptyMap ( ) ) ) ; }
Source:
public void testGetWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void addFallback ( final org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey key , final java.lang.String value ) { fallbackValues.put ( key , value ) ; }

Target:
protected void addFallback ( final org.ovirt.engine.ui.common.utils.BaseDynamicMessages.DynamicMessageKey key , final java.lang.String value ) { fallbackValues.put ( key , value ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > disks = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( returnValue ) ) ; updateBootableFrom ( disks ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > disks = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( returnValue ) ) ; updateCanSetBoot ( disks ) ; }
Source:
public boolean authenticate ( java.lang.String user , java.security.PublicKey key , org.apache.sshd.server.session.ServerSession session ) { return ( user.equals ( user ) ) && ( _key.equals ( key ) ) ; }

Target:
public boolean authenticate ( java.lang.String user , java.security.PublicKey key , org.apache.sshd.server.session.ServerSession session ) { return ( _user.equals ( user ) ) && ( _key.equals ( key ) ) ; }
Source:
private boolean vdsGroupExists ( ) { if ( ! ( vdsGroupInDb ( ) ) ) { addCanDoActionMessage ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; return false ; } return true ; }

Target:
private boolean vdsGroupExists ( ) { if ( ! ( vdsGroupInDb ( ) ) ) { addValidationMessage ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; return false ; } return true ; }
Source:
public static org.ovirt.engine.core.utils.transaction.Transaction current ( ) { try { org.ovirt.engine.core.utils.transaction.TransactionManager tm = org.ovirt.engine.core.utils.transaction.TransactionSupport.findTransactionManager ( ) ; return tm.getTransaction ( ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( "Unable to get handle to current transaction" , e ) ; } }

Target:
public static javax.transaction.Transaction current ( ) { try { javax.transaction.TransactionManager tm = org.ovirt.engine.core.utils.transaction.TransactionSupport.findTransactionManager ( ) ; return tm.getTransaction ( ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( "Unable to get handle to current transaction" , e ) ; } }
Source:
public void setMemCommited ( java.lang.Integer value ) { this . mVdsDynamic.setmem_commited ( value ) ; calculateFreeVirtualMemory ( ) ; }

Target:
public void setMemCommited ( java.lang.Integer value ) { vdsDynamic.setMemCommited ( value ) ; calculateFreeVirtualMemory ( ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryUser > fetchUsersByIdsRecursively ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.util.List < java.lang.String > ids ) { return org.ovirt.engine.core.aaa.DirectoryUtils.mapPrincipalRecords ( org.ovirt.engine.core.aaa.AuthzUtils.getName ( extension ) , org.ovirt.engine.core.aaa.AuthzUtils.fetchPrincipalsByIdsRecursively ( extension , namespace , ids ) ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.DbGroup mapGroupRecordToDbGroup ( java.lang.String directory , org.ovirt.engine.api.extensions.ExtMap groupRecord ) { return new org.ovirt.engine.core.common.businessentities.DbGroup ( org.ovirt.engine.core.aaa.DirectoryUtils.mapGroupRecordToDirectoryGroup ( directory , groupRecord ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc vmUpdateDevice ( java.lang.String vmId , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct device ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.ImageSizeReturnForXmlRpc diskSizeExtend ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > diskParams , java.lang.String newSize ) ;
Source:
public org.ovirt.engine.core.bll.ValidationResult isUp ( ) { if ( ( ( storagePool ) == null ) || ( ( storagePool.getstatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.Up ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isUp ( ) { if ( ( ( storagePool ) == null ) || ( ( storagePool.getstatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.Up ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void executeIrsBrokerCommand ( ) { setVDSReturnValue ( resourceManager.runVdsCommand ( VDSCommandType.HSMGetAllTasksStatuses , new org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksStatusesVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) ) ) ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { setVDSReturnValue ( resourceManager.runVdsCommand ( VDSCommandType.HSMGetAllTasksStatuses , new org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksStatusesVDSCommand.getCurrentIrsProxy ( ) . getCurrentVdsId ( ) ) ) ) ; }
Source:
private com.google.gwt.user.client.ui.PushButton createPushButton ( com.google.gwt.resources.client.ImageResource iconResource ) { final com.google.gwt.user.client.ui.PushButton button = new com.google.gwt.user.client.ui.PushButton ( new com.google.gwt.user.client.ui.Image ( iconResource ) ) ; button.addStyleName ( style.buttonStyle ( ) ) ; button.addStyleName ( "buttonStyle_pfly_fix" ) ; return button ; }

Target:
private org.gwtbootstrap3.client.ui.Button createButton ( org.gwtbootstrap3.client.ui.constants.IconType iconType , com.google.gwt.event.dom.client.ClickHandler handler ) { final org.gwtbootstrap3.client.ui.Button button = new org.gwtbootstrap3.client.ui.Button ( "" , iconType , handler ) ; button.addStyleName ( style.buttonStyle ( ) ) ; return button ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public static org.ovirt.engine.api.model.Statistic create ( java.lang.String name , java.lang.String description , org.ovirt.engine.api.model.StatisticType type , org.ovirt.engine.api.model.StatisticUnit unit , org.ovirt.engine.api.model.ValueType valueType ) { return org.ovirt.engine.api.restapi.utils.StatisticResourceUtils.create ( name , description , type , unit , valueType ) ; }

Target:
public static org.ovirt.engine.api.model.Statistic create ( java.lang.String name , java.lang.String description , org.ovirt.engine.api.model.StatisticKind kind , org.ovirt.engine.api.model.StatisticUnit unit , org.ovirt.engine.api.model.ValueType valueType ) { return org.ovirt.engine.api.restapi.utils.StatisticResourceUtils.create ( name , description , kind , unit , valueType ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > getAllByType ( org.ovirt.engine.core.common.businessentities.ProviderType providerType ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > getAllByTypes ( org.ovirt.engine.core.common.businessentities.ProviderType ... providerTypes ) ;
Source:
public void setConsoleAddressPartiallyOverridden ( java.lang.Boolean consoleAddressPartiallyOverridden ) { if ( ( this . consoleAddressPartiallyOverridden ) != consoleAddressPartiallyOverridden ) { this . consoleAddressPartiallyOverridden = consoleAddressPartiallyOverridden ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "consoleAddressPartiallyOverridden" ) ) ; } }

Target:
public void setManageGlusterSwiftCommand ( org.ovirt.engine.ui.uicommonweb.UICommand manageGlusterSwiftCommand ) { this . manageGlusterSwiftCommand = manageGlusterSwiftCommand ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { org.ovirt.engine.core.common.interfaces.BackendLocal backend = getBackend ( ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { org.ovirt.engine.core.common.interfaces.BackendLocal backend = getBackend ( ) ; setCorrelationId ( queryParams ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }
Source:
void setCtrlAltDelEnabled ( boolean enabled , java.lang.String reason ) ;

Target:
void setCtrlAltDeleteRemapHotkey ( java.lang.String hotkey ) ;
Source:
public java.util.Map < java.lang.String , java.lang.Object > setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > changeCD ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.Object > driveSpec ) ;
Source:
protected < P extends org.ovirt.engine.core.common.queries.VdcQueryParametersBase > P sessionize ( P parameters ) { java.lang.String sessionId = getCurrent ( ) . getSessionId ( ) ; parameters.setSessionId ( sessionId ) ; return parameters ; }

Target:
protected < P extends org.ovirt.engine.core.common.action.ActionParametersBase > P sessionize ( P parameters ) { java.lang.String sessionId = getCurrent ( ) . getSessionId ( ) ; parameters.setSessionId ( sessionId ) ; return parameters ; }
Source:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getCpuFlagsManagerHandler ( ) . missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }

Target:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.UpdateClusterCommand.getCpuFlagsManagerHandler ( ) . missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateClusterCommand.getCluster ( ) . getCpuName ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateClusterCommand.getCluster ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void testExtractIpv6PrefixInvalidPrefix ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Prefix ( "::/zzz" ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractIpv6PrefixInvalidPrefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( "::/zzz" ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.ImageStatus getRawValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return object.getImageStatus ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.ImageStatus getRawValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return object.getImageStatus ( ) ; }
Source:
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 ( ) ; } }

Target:
protected org.ovirt.engine.core.compat.Guid getDestinationVdsId ( ) { org.ovirt.engine.core.common.businessentities.VDS destinationVds = getDestinationVds ( ) ; return destinationVds != null ? destinationVds.getId ( ) : null ; }
Source:
public void testGetAllInterfacesForVdsWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.VDS_ID , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllInterfacesForVdsWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.VDS_ID , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }