auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setUp ( ) { control = org.easymock.classextension.EasyMock.createNiceControl ( ) ; }

Target:
public void setUp ( ) { control = org.easymock.EasyMock.createNiceControl ( ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult linkedToTemplate ( ) { return ( org.ovirt.engine.core.bll.network.template.VmTemplateInterfaceCommandBase.getParameters ( ) . getInterface ( ) . getVmId ( ) ) == null ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_INTERFACE_VM_CANNOT_BE_SET ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult linkedToTemplate ( ) { return ( org.ovirt.engine.core.bll.network.template.VmTemplateInterfaceCommandBase.getParameters ( ) . getInterface ( ) . getVmId ( ) ) == null ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_VM_CANNOT_BE_SET ) ; }
Source:
public void testRegisterTemplate ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Cluster cluster = new org.ovirt.engine.api.model.Cluster ( ) ; cluster.setId ( GUIDS [ 1 ] . toString ( ) ) ; doTestRegister ( cluster , false ) ; }

Target:
public void testRegisterTemplate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( GUIDS [ 1 ] . toString ( ) ) ; doTestRegister ( cluster , false ) ; }
Source:
protected org.ovirt.engine.api.model.Step postPopulate ( org.ovirt.engine.api.model.Step model ) { model.getStatus ( ) . setState ( "started" ) ; model.setType ( StepEnum.VALIDATING ) ; return super . postPopulate ( model ) ; }

Target:
protected org.ovirt.engine.api.model.Step postPopulate ( org.ovirt.engine.api.model.Step model ) { model.setStatus ( StepStatus.STARTED ) ; model.setType ( StepEnum.VALIDATING ) ; return super . postPopulate ( model ) ; }
Source:
public void testConfigurationEntries ( ) throws java.lang.Exception { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( java.util.Collections.singletonList ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.FilterEntry ( "message0" , false , "smtp" , "dbtest1@redhat.com" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.ovirt.engine.core.notifier.filter.AuditLogEvent event = smtp.getEvents ( ) . get ( 0 ) ; java.lang.String address = smtp.getNames ( ) . get ( 0 ) ; org.junit.Assert.assertTrue ( event.getName ( ) . equals ( "message0" ) ) ; org.junit.Assert.assertTrue ( address.equals ( "dbtest1@redhat.com" ) ) ; }

Target:
public void dispatchEvent ( org.ovirt.engine.core.notifier.filter.AuditLogEvent event , java.lang.String address ) { events.add ( ( ( ( event.getName ( ) ) + "-->" ) + address ) ) ; }
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.StorageDomain , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterStorageListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterStorageSubTabLabel ( ) , 0 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.StorageDomain , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterStorageListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterStoragePresenter.constants.dataCenterStorageSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setExistingAttachments ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > existingAttachments ) { this . existingAttachments = existingAttachments ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setEmptyParams ( ) { setParams ( new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.ParametersBuilder ( ) . build ( ) ) ; return this ; }
Source:
void getSessionId ( org.ovirt.engine.ui.frontend.communication.StorageCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . retrieveFromHttpSession ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , callback ) ; }

Target:
void getSessionIdFromHttpSession ( org.ovirt.engine.ui.frontend.communication.StorageCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . retrieveFromHttpSession ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , callback ) ; }
Source:
public int decrement ( ) { ( count ) -- ; return count ; }

Target:
public int decrease ( ) { ( count ) -- ; return count ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > createRemoveNetworkParameters ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsForRemove ) { org.ovirt.engine.core.bll.network.RemoveNetworkParametersBuilder builder = new org.ovirt.engine.core.bll.network.RemoveNetworkParametersBuilder ( getOldNetwork ( ) , org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.SyncNetworkParametersBuilder.getContext ( ) ) ; return builder.buildParameters ( nicsForRemove ) ; }

Target:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > createRemoveNetworkParameters ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsForRemove ) { org.ovirt.engine.core.bll.network.RemoveNetworkParametersBuilder builder = new org.ovirt.engine.core.bll.network.RemoveNetworkParametersBuilder ( getOldNetwork ( ) , org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.SyncNetworkParametersBuilder.getContext ( ) , managementNetworkUtil ) ; return builder.buildParameters ( nicsForRemove ) ; }
Source:
private void writeServiceLocator ( org.ovirt.api.metamodel.concepts.Locator locator ) { writer.writeStartElement ( "locator" ) ; writeCommon ( locator ) ; locator.parameters ( ) . forEach ( this :: writeParameter ) ; writer.writeEndElement ( ) ; }

Target:
private void writeServiceMethod ( org.ovirt.api.metamodel.concepts.Method method ) { writer.writeStartElement ( "method" ) ; writeCommon ( method ) ; method.parameters ( ) . forEach ( this :: writeParameter ) ; writer.writeEndElement ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_GEOREP_SESSION ) ; addCanDoActionMessageVariable ( "volumeName" , getGlusterVolumeName ( ) ) ; addCanDoActionMessageVariable ( "vdsGroup" , getVdsGroupName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_GEOREP_SESSION ) ; addCanDoActionMessageVariable ( "volumeName" , getGlusterVolumeName ( ) ) ; addCanDoActionMessageVariable ( "vdsGroup" , getVdsGroupName ( ) ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
public void networkInVfsConfigValid ( ) { networkInVfsConfigCommonTest ( true ) ; org.junit.Assert.assertThat ( validator.networkInVfsConfig ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NETWORK_ID ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkInVfsConfigValid ( ) { networkInVfsConfigCommonTest ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkInVfsConfig ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NETWORK_ID ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void initStatusPanel ( ) { setValidStatus ( constants.dragToMakeChangesSetupNetwork ( ) ) ; }

Target:
private void initStatusPanel ( ) { setValidStatus ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostSetupNetworksPopupView.constants.dragToMakeChangesSetupNetwork ( ) ) ; }
Source:
public void testListFailure ( ) { collection.setUriInfo ( setUpUriExpectations ( null ) ) ; setUpEntityQueryExpectations ( org.ovirt.engine.api.restapi.resource.FAILURE ) ; try { getCollection ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyFault ( wae ) ; } }

Target:
public void testListFailure ( ) { collection.setUriInfo ( setUpUriExpectations ( null ) ) ; setUpEntityQueryExpectations ( org.ovirt.engine.api.restapi.resource.FAILURE ) ; verifyFault ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , this :: getCollection ) ) ; }
Source:
public void setSourceStorageDomainName ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { sourceStorageDomainName = value ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel getDiskInterface ( ) { return diskInterface ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.storage.RegisterEntityModel flush ( ) { return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.storage.RegisterEntityModel < E > flush ( ) { return driver.flush ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; storageDoaminId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; setUpDAOMocks ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; storageDoaminId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; setUpDaoMocks ( ) ; }
Source:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . nullOperationBondOutOfSync ( ) ; }

Target:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . nullOperationOutOfSyncNetwork ( ) ; }
Source:
protected org.ovirt.engine.core.dao.BookmarkDao getDao ( ) { return dao ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public java.lang.Double getcpu_user ( ) { return this . mVmStatistics.getcpu_user ( ) ; }

Target:
public int getGuestAgentNicsHash ( ) { return vmDynamic.getGuestAgentNicsHash ( ) ; }
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:
private boolean vdsGroupInDb ( ) { return ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getVdsGroup ( ) ) != null ; }

Target:
private boolean clusterInDb ( ) { return ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getCluster ( ) ) != null ; }
Source:
public void portMirroringNotChanged ( ) { org.junit.Assert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void portMirroringEnableSupported ( ) { mockVnicProfilePortMirroringChange ( false ) ; mockVmsUsingVnicProfile ( java.util.Collections.emptyList ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.portMirroringNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void executeVmCommand ( ) { initVdss ( ) ; perform ( ) ; processVm ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.MigrateVmCommand.getSucceeded ( ) ? ( org.ovirt.engine.core.bll.MigrateVmCommand.getActionReturnValue ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ? org.ovirt.engine.core.common.AuditLogType.VM_MIGRATION_DONE : getAuditLogForMigrationStarted ( ) : _isRerun ? org.ovirt.engine.core.common.AuditLogType.VM_MIGRATION_TRYING_RERUN : getAuditLogForMigrationFailure ( ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { super . executeVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( getParameters ( ) . getInterfaces ( ) ) ) ; proceedProxyReturnValue ( ) ; }

Target:
protected void persistCollectedData ( ) { updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( getParameters ( ) . getInterfaces ( ) ) ) ; }
Source:
public void testVmDiskWithPassDiscardExistsFails ( ) { org.junit.Assert.assertFalse ( discardHelper.vmDiskWithPassDiscardExists ( java.util.Arrays.asList ( createVmDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , false ) , createVmDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , false ) ) ) ) ; }

Target:
public void testVmDiskWithPassDiscardExistsFails ( ) { org.junit.jupiter.api.Assertions.assertFalse ( discardHelper.vmDiskWithPassDiscardExists ( java.util.Arrays.asList ( createVmDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , false ) , createVmDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , false ) ) ) ) ; }
Source:
protected org.ovirt.engine.api.model.Application addParents ( org.ovirt.engine.api.model.Application model ) { model.setVm ( new org.ovirt.engine.core.common.businessentities.VM ( ) ) ; model.getVm ( ) . setId ( vmId.toString ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.Application addParents ( org.ovirt.engine.api.model.Application model ) { model.setVm ( new org.ovirt.engine.api.restapi.resource.Vm ( ) ) ; model.getVm ( ) . setId ( vmId.toString ( ) ) ; return model ; }
Source:
public org.ovirt.engine.core.compat.NGuid getmigrating_to_vds ( ) { return this . vmDynamic.getmigrating_to_vds ( ) ; }

Target:
public void setGuestLastLoginTime ( java.util.Date value ) { this . vmDynamic.setGuestLastLoginTime ( value ) ; }
Source:
private void createNewGeoRepSession ( ) { }

Target:
private void stopGeoRepSession ( ) { performGeoRepAction ( "onStopGeoRepSession" , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel.constants.geoReplicationStopTitle ( ) , HelpTag.volume_geo_rep_stop_confirmation , "volume_geo_rep_stop_confirmation" , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel.constants.stopGeoRep ( ) , VdcActionType.StopGeoRepSession , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel.constants.stopGeoRepProgressText ( ) ) ; }
Source:
private void editInstanceType ( ) { createWindow ( new org.ovirt.engine.ui.uicommonweb.models.vms.ExistingInstanceTypeModelBehavior ( ( ( org.ovirt.engine.core.common.businessentities.InstanceType ) ( getSelectedItem ( ) ) ) ) , "edit_instance_type" , "OnEditInstanceType" , false , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . editInstanceTypeTitle ( ) ) ; }

Target:
private void editInstanceType ( ) { createWindow ( new org.ovirt.engine.ui.uicommonweb.models.vms.ExistingInstanceTypeModelBehavior ( ( ( org.ovirt.engine.core.common.businessentities.InstanceType ) ( getSelectedItem ( ) ) ) ) , "edit_instance_type" , "OnEditInstanceType" , false , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . editInstanceTypeTitle ( ) , HelpTag.edit_instance_type ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { getCallsHandler ( ) . executeModification ( "InsertVmTemplate" , getInsertOrUpdateParameters ( template ) ) ; }

Target:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VmTemplateStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateVmTemplateStatus" , createIdParameterMapper ( id ) . addValue ( "status" , status ) ) ; }
Source:
public void testCompareFetchGlobalQuotaForSpecificAndForGlobalCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > quotaClusterGlobalList = dao.getQuotaClusterByClusterGuid ( null , FixturesTool.QUOTA_GENERAL ) ; java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > quotaClusterSpecificList = dao.getQuotaClusterByClusterGuid ( FixturesTool.CLUSTER_RHEL6_ISCSI , FixturesTool.QUOTA_GENERAL ) ; org.junit.Assert.assertEquals ( quotaClusterGlobalList , quotaClusterSpecificList ) ; }

Target:
public void testCompareFetchGlobalQuotaForSpecificAndForGlobalCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > quotaClusterGlobalList = dao.getQuotaClusterByClusterGuid ( null , FixturesTool.QUOTA_GENERAL ) ; java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > quotaClusterSpecificList = dao.getQuotaClusterByClusterGuid ( FixturesTool.CLUSTER_RHEL6_ISCSI , FixturesTool.QUOTA_GENERAL ) ; org.junit.jupiter.api.Assertions.assertEquals ( quotaClusterGlobalList , quotaClusterSpecificList ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( getItem ( ) . getTakeVmCommand ( ) ) ) { TakeVm ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( getItem ( ) . getTakeVmCommand ( ) ) ) { takeVm ( ) ; } }
Source:
private boolean isUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( user.getusername ( ) ) ? false : true ; }

Target:
private static boolean isUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return ! ( user.getIsGroup ( ) ) ; }
Source:
public void canCreateAsMuchNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }

Target:
public void canCreateAsMuchNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 4 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }
Source:
public org.ovirt.engine.api.resource.DevicesResource < org.ovirt.engine.api.model.NIC , org.ovirt.engine.api.model.Nics > getNicsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateNicsResource ( guid ) ) ; }

Target:
public org.ovirt.engine.api.resource.DevicesResource < org.ovirt.engine.api.model.NIC , org.ovirt.engine.api.model.Nics > getNicsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendInstanceTypeNicsResource ( guid ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VDS > GetAllRunningVdssInPool ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllForStoragePoolAndStatus ( pool.getId ( ) , VDSStatus.Up ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllRunningVdssInPool ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllForStoragePoolAndStatus ( pool.getId ( ) , VDSStatus.Up ) ; }
Source:
public java.lang.String getVar_name ( ) { return this . var_name ; }

Target:
public void writeData ( java.io.ObjectOutputStream dos ) { try { writeString ( this . key , dos ) ; writeString ( this . value , dos ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
private void mockVmDao ( ) { org.mockito.Mockito.doReturn ( vmDao ) . when ( command ) . getVmDAO ( ) ; }

Target:
private void mockVmDao ( ) { org.mockito.Mockito.doReturn ( vmDao ) . when ( command ) . getVmDao ( ) ; }
Source:
public boolean validate ( ) { return super . validate ( ) ; }

Target:
public boolean validate ( ) { super . validate ( ) ; getSizeExtend ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.NonNegativeLongNumberValidation ( ) } ) ; return getSizeExtend ( ) . getIsValid ( ) ; }
Source:
public void run ( ) { runInternalAction ( VdcActionType.InstallVdsInternal , installVdsParameters , new org.ovirt.engine.core.bll.context.CommandContext ( installCtx ) ) ; }

Target:
public void run ( ) { runInternalAction ( VdcActionType.InstallVdsInternal , installVdsParameters , dupContext ( ) . withExecutionContext ( installCtx ) . withLock ( null ) . withCompensationContext ( null ) ) ; }
Source:
private void auditLogFailedToConnect ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( loggable , AuditLogType.FAILED_TO_CONNECT_TO_SCHEDULER_PROXY ) ; }

Target:
private void auditLogFailedToConnect ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl ( ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( loggable , AuditLogType.FAILED_TO_CONNECT_TO_SCHEDULER_PROXY ) ; }
Source:
public java.lang.Integer getTotalDiskSize ( ) { UpdateTotalDiskSize ( ) ; return totalDiskSize ; }

Target:
public java.lang.Integer getTotalDiskSize ( ) { updateTotalDiskSize ( ) ; return totalDiskSize ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( storageDomain ) == null ) { storageDomain = getDbFacade ( ) . getStorageDomainDao ( ) . get ( getProfile ( ) . getStorageDomainId ( ) ) ; } return storageDomain ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid sdGuid ) { if ( sdGuid != null ) { return getDbFacade ( ) . getStorageDomainDao ( ) . get ( sdGuid ) ; } return null ; }
Source:
public void testExtractProperIpv6AddressWithTooLongPrefix ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Address ( "::/1234" ) , org.hamcrest.Matchers.is ( "::/1234" ) ) ; }

Target:
public void testExtractProperIpv6AddressWithTooLongPrefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Address ( "::/1234" ) , org.hamcrest.Matchers.is ( "::/1234" ) ) ; }
Source:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.HibernateVmCommand.endActionOnDisks ( ) ; org.ovirt.engine.core.bll.HibernateVmCommand.getSnapshotDao ( ) . removeMemoryFromActiveSnapshot ( org.ovirt.engine.core.bll.HibernateVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.HibernateVmCommand.revertTasks ( ) ; org.ovirt.engine.core.bll.HibernateVmCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.HibernateVmCommand.endActionOnDisks ( ) ; snapshotDao.removeMemoryFromActiveSnapshot ( org.ovirt.engine.core.bll.HibernateVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.HibernateVmCommand.revertTasks ( ) ; org.ovirt.engine.core.bll.HibernateVmCommand.setSucceeded ( true ) ; }
Source:
public void testGetAllByVMTemplateNameUnprivilegedUserNoFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameValidResults ( dao.getAllByVMTemplateName ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_NAME , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ) ; }

Target:
public void testGetAllByVMTemplateIdUnprivilegedUserNoFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameValidResults ( dao.getAllByVMTemplateId ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public void testPosixDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_1 ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isPosixSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testPosixDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.StoragePoolValidatorTest.SUPPORTED_VERSION ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isPosixSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDS getSPM ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > hosts ) { for ( org.ovirt.engine.core.common.businessentities.VDS host : hosts ) { if ( ( host.getspm_status ( ) ) == ( org.ovirt.engine.core.common.businessentities.VdsSpmStatus.SPM ) ) { return host ; } } return null ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDS getSPM ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > hosts ) { for ( org.ovirt.engine.core.common.businessentities.VDS host : hosts ) { if ( ( host.getSpmStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VdsSpmStatus.SPM ) ) { return host ; } } return null ; }
Source:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.Disk a ) { return a.getId ( ) ; }

Target:
protected void endVmCommand ( ) { org.ovirt.engine.core.bll.VmCommand.getVmStaticDAO ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getId ( ) ) ; endActionOnDisks ( ) ; unlockVm ( ) ; org.ovirt.engine.core.bll.VmCommand.setSucceeded ( true ) ; }
Source:
public void setstorage_pool_id ( org.ovirt.engine.core.compat.NGuid value ) { storagePoolId = value ; }

Target:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid value ) { storagePoolId = value ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( getProblematicVdsId ( ) . toString ( ) , LockingGroup.VDS_FENCE.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( getProblematicVdsId ( ) . toString ( ) , LockMessagesMatchUtil.VDS_FENCE ) ; }
Source:
public java.lang.String getPassword ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( GetData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , false ) ) ) ; }

Target:
public java.lang.String getPassword ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , false ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeBrickAdd ( java.lang.String volumeName , java.lang.String [ ] bricks , int replicaCount , int stripeCount ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc sparsifyVolume ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > volumeAddress ) ;
Source:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { return model ; }

Target:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { parent.setConsoleDevice ( model ) ; parent.setVirtioScsiController ( model ) ; return model ; }
Source:
public void onUserLogin ( org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedUser ) { setLoggedUser ( loggedUser ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }

Target:
public void login ( org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedUser ) { setLoggedUser ( loggedUser ) ; setLoggedIn ( true ) ; }
Source:
public void onSave ( ) { if ( ! ( validate ( ) ) ) { return ; } flush ( ) ; executeSave ( ) ; }

Target:
private void onApprove ( ) { flush ( ) ; executeSave ( ) ; }
Source:
protected void executeCommand ( ) { getSyncJobInstance ( ) . refreshVolumeDetails ( upServer , getGlusterVolume ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { glusterSyncJob.refreshVolumeDetails ( upServer , getGlusterVolume ( ) ) ; setSucceeded ( true ) ; }
Source:
public static java.lang.String replace ( java.lang.String searchString , java.lang.String pageStringRegex , java.lang.String format ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
public static java.lang.String replace ( java.lang.String searchString , java.lang.String pageStringRegex , java.lang.String format ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , T id ) { return id.equals ( entity.getId ( ) ) ; }

Target:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , T id ) { return id.equals ( entity.getId ( ) ) ; }
Source:
public void testRemoveByVdsDynamicId ( ) { org.junit.Assert.assertNotNull ( dao.get ( FixturesTool.EXISTING_DNS_RESOLVER_CONFIGURATION ) ) ; dao.removeByVdsDynamicId ( FixturesTool.GLUSTER_SERVER_UUID3 ) ; org.junit.Assert.assertNull ( dao.get ( FixturesTool.EXISTING_DNS_RESOLVER_CONFIGURATION ) ) ; }

Target:
public void testRemoveByVdsDynamicId ( ) { org.junit.Assert.assertNotNull ( dao.get ( FixturesTool.VDS_GLUSTER_SERVER2 ) ) ; dao.removeByVdsDynamicId ( FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.junit.Assert.assertNull ( dao.get ( FixturesTool.VDS_GLUSTER_SERVER2 ) ) ; }
Source:
public void hideSuggestionBox ( ) { ( ( org.ovirt.engine.ui.webadmin.widget.autocomplete.SearchSuggestionDisplay ) ( searchStringInput.getSuggestionDisplay ( ) ) ) . hideSuggestions ( ) ; }

Target:
public void hideSuggestionBox ( ) { searchStringInput.hideSuggestion ( ) ; }
Source:
public void executeDiskModifications ( org.ovirt.engine.core.common.businessentities.VM vm ) { disableLineModels ( ) ; executeDeleteAndCallNew ( vm ) ; }

Target:
public void executeDiskModifications ( org.ovirt.engine.core.common.businessentities.VM vm ) { disableLineModels ( ) ; if ( isDiskUpdateAllowed ( vm ) ) { executeDeleteAndCallNew ( vm ) ; } }
Source:
public void setvm_mem_size_mb ( int value ) { this . mVmStatic.setmem_size_mb ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_mem_size_mb" ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getOs ( ) { return this . getVmOs ( ) ; }
Source:
void removeAllForVm ( org.ovirt.engine.core.compat.Guid vmId ) ;

Target:
void removeAllForVms ( java.util.Collection < org.ovirt.engine.core.compat.Guid > vmIds ) ;
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc remove_image_ticket ( java.lang.String ticketId ) ;
Source:
public java.lang.String render ( java.util.Date object ) { if ( object == null ) { return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.CONSTANTS.notAvailableLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.format.format ( object ) ; }

Target:
public java.lang.String render ( java.util.Date object ) { if ( object == null ) { return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.CONSTANTS.notAvailableLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( object ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.Network getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( super . getEntity ( ) ) ) ; }

Target:
public java.lang.String getName ( ) { return getNetwork ( ) . getName ( ) ; }
Source:
public void testInvalid ( ) { try { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( java.lang.Thread.State.class , "foobar" ) ; org.junit.Assert.fail ( "expected WebApplicationException on invalid value" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyInvalidValueException ( wae , "foobar" , "State" ) ; } }

Target:
public void testInvalid ( ) { try { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( java.lang.Thread.State.class , "foobar" ) ; org.assertj.core.api.Assertions.fail ( "expected WebApplicationException on invalid value" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyInvalidValueException ( wae , "foobar" , "State" ) ; } }
Source:
protected void HandleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCING_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RESTART ) ; org.ovirt.engine.core.bll.RestartVdsCommand.log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void HandleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RESTART ) ; org.ovirt.engine.core.bll.RestartVdsCommand.log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.provider.storage.GlanceProviderValidator getProviderValidator ( ) { if ( ( providerValidator ) == null ) { providerValidator = new org.ovirt.engine.core.bll.provider.storage.GlanceProviderValidator ( provider ) ; } return providerValidator ; }

Target:
public org.ovirt.engine.core.bll.provider.storage.GlanceProviderValidator getProviderValidator ( ) { if ( ( providerValidator ) == null ) { providerValidator = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.provider.storage.GlanceProviderValidator ( provider ) ) ; } return providerValidator ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { ensureColumnPresent ( column , headerText , present , null ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { ensureColumnPresent ( column , com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( headerText ) , present ) ; }
Source:
public void setVlanNicModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel vlanNicmodel ) { this . vlanNicModel = vlanNicmodel ; }

Target:
public void setVlanDevice ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vlanDevice ) { this . vlanDevice = vlanDevice ; }
Source:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "" ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"\"}" ) ) ; }

Target:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( "DiskAlias" , "" ) ; }
Source:
private void sortStorageDomains ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > domainsInPool , java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > expectedSortedList ) { memoryStorageHandler.sortStorageDomains ( domainsInPool , vmDisks ) ; org.junit.Assert.assertEquals ( domainsInPool , expectedSortedList ) ; }

Target:
private void sortStorageDomains ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > domainsInPool , java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > expectedSortedList ) { memoryStorageHandler.sortStorageDomains ( domainsInPool , vmDisks ) ; org.junit.jupiter.api.Assertions.assertEquals ( domainsInPool , expectedSortedList ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > getDisplayTypes ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.displayTypes.get ( osId ) . get ( version ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > getDisplayTypes ( int osId , org.ovirt.engine.core.compat.Version version ) { return displayTypes.get ( osId ) . get ( version ) ; }
Source:
public void persistNetworkAttachments ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments = networkAttachmentDao.getAllForHost ( hostId ) ; removeInvalidNetworkAttachmentsFromDb ( networkAttachments ) ; persistOrUpdateUserNetworkAttachments ( networkAttachments ) ; createNetworkAttachmentsForReportedNetworksNotHavingOne ( networkAttachments ) ; }

Target:
public void persistNetworkAttachments ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments = networkAttachmentDao.getAllForHost ( hostId ) ; removeInvalidNetworkAttachmentsFromDb ( networkAttachments ) ; persistOrUpdateUserNetworkAttachments ( networkAttachments ) ; updateReportedNetworkAttachmentsNotMentionedInRequest ( networkAttachments ) ; }
Source:
public void testGetEntityNameByIdAndTypeForStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = storageDomainDao.get ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.Assert.assertNotNull ( storageDomain ) ; java.lang.String name = storageDomain.getStorageName ( ) ; org.junit.Assert.assertEquals ( name , dao.getEntityNameByIdAndType ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 , VdcObjectType.Storage ) ) ; }

Target:
public void testGetEntityNameByIdAndTypeForStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = storageDomainDao.get ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( storageDomain ) ; java.lang.String name = storageDomain.getStorageName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( name , dao.getEntityNameByIdAndType ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 , VdcObjectType.Storage ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return getDbFacade ( ) . getVmDao ( ) . getAllForCpuProfile ( getProfile ( ) . getId ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return getDbFacade ( ) . getVmDao ( ) . getAllForCpuProfiles ( java.util.Collections.singletonList ( getProfile ( ) . getId ( ) ) ) ; }
Source:
public void testNotDescetor ( ) { org.ovirt.engine.core.common.businessentities.tags tag1 = createTag ( "tag1" , "desc1" ) ; org.ovirt.engine.core.common.businessentities.tags tag2 = createTag ( "tag2" , "desc2" ) ; org.junit.Assert.assertFalse ( tagsDirector.IsTagDescestorOfTag ( tag1.gettag_id ( ) , tag2.gettag_id ( ) ) ) ; }

Target:
public void testNotDescetor ( ) { org.ovirt.engine.core.common.businessentities.Tags tag1 = createTag ( "tag1" , "desc1" ) ; org.ovirt.engine.core.common.businessentities.Tags tag2 = createTag ( "tag2" , "desc2" ) ; org.junit.Assert.assertFalse ( tagsDirector.IsTagDescestorOfTag ( tag1.gettag_id ( ) , tag2.gettag_id ( ) ) ) ; }
Source:
public javax.ws.rs.core.Response upgrade ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.hostdeploy.UpgradeHostParameters params = new org.ovirt.engine.core.common.action.hostdeploy.UpgradeHostParameters ( guid ) ; if ( action.isSetImage ( ) ) { params.setoVirtIsoFile ( action.getImage ( ) ) ; } return doAction ( VdcActionType.UpgradeHost , params , action ) ; }

Target:
public javax.ws.rs.core.Response upgrade ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.hostdeploy.UpgradeHostParameters params = new org.ovirt.engine.core.common.action.hostdeploy.UpgradeHostParameters ( guid ) ; if ( action.isSetImage ( ) ) { params.setoVirtIsoFile ( action.getImage ( ) ) ; } return doAction ( ActionType.UpgradeHost , params , action ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.ResourceManager getResourceManager ( ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.ResourceManager getResourceManager ( ) { return resourceManager.get ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsDao ( ) ; existingVds = dao.get ( org.ovirt.engine.core.dao.VdsDaoTest.EXISTING_VDS_ID ) ; existingVds2 = dao.get ( org.ovirt.engine.core.dao.VdsDaoTest.EXISTING_VDS_ID_2 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsDao ( ) ; existingVds = dao.get ( org.ovirt.engine.core.dao.VdsDaoTest.EXISTING_VDS_ID ) ; existingVds2 = dao.get ( org.ovirt.engine.core.dao.VdsDaoTest.EXISTING_VDS_ID_2 ) ; newVmId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
public void testGetEntitysForNotRelatedStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOAMIN_NFS2_2 , VmEntityType.VM ) ; org.junit.Assert.assertTrue ( "No VM should be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }

Target:
public void testGetEntitiesForNotRelatedStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOAMIN_NFS2_2 , VmEntityType.VM ) ; org.junit.Assert.assertTrue ( "No VM should be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }
Source:
public void setUsbAutoShare ( boolean usbAutoShare ) { this . usbAutoShare = usbAutoShare ; getUsbAutoShareChangedEvent ( ) . raise ( this , EventArgs.Empty ) ; }

Target:
public void setUsbAutoShare ( boolean usbAutoShare ) { this . usbAutoShare = usbAutoShare ; getUsbAutoShareChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
public void testGetFullPath_NonSaneParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( mockFile , "../something" ) ; org.junit.Assert.assertNull ( "Path should be null" , fullPath ) ; }

Target:
public void testGetFullPath_NonSaneParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , "../something" ) ; org.junit.Assert.assertNull ( "Path should be null" , file ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : false ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > ( ) ; }
Source:
public boolean getIsFirstRun ( ) { return ! ( getis_initialized ( ) ) ; }

Target:
public boolean isFirstRun ( ) { return ! ( isInitialized ( ) ) ; }
Source:
public java.lang.String getVdsHostname ( ) { return cachedVds.getHostName ( ) ; }

Target:
public void addV2VJobInfoForVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.V2VJobInfo.JobStatus jobStatus ) { vmIdToV2VJob.put ( vmId , new org.ovirt.engine.core.common.businessentities.V2VJobInfo ( vmId , jobStatus ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createNewStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( false ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createNewStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( false ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }