auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetAllForStoragePoolAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePoolAndStatus ( existingVds.getStoragePoolId ( ) , existingVds.getStatus ( ) ) ; assertCorrectGetAllResult ( result ) ; }

Target:
public void testGetAllForStoragePoolAndStatus ( ) { org.junit.Assert.assertNotNull ( existingVds.getStatus ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePoolAndStatus ( existingVds.getStoragePoolId ( ) , existingVds.getStatus ( ) ) ; assertCorrectGetAllResult ( result ) ; }
Source:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetDefaultNicType ( getVm ( ) . getOs ( ) ) ) ; }

Target:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultNicType ( getVm ( ) . getOs ( ) ) ) ; }
Source:
private boolean isValidParametersList ( ) { if ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return true ; }

Target:
private boolean isValidParametersList ( ) { if ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return true ; }
Source:
public void invalidVdsGroup ( ) { createSimpleCommand ( ) ; org.mockito.Mockito.when ( vdsGroupDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; canDoActionFailedWithReason ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; }

Target:
public void invalidVdsGroup ( ) { createSimpleCommand ( ) ; org.mockito.Mockito.when ( vdsGroupDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; validateFailedWithReason ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; }
Source:
public void setDescription ( java.lang.String value ) { this . description = value ; }

Target:
public void setName ( java.lang.String value ) { this . name = ( value == null ) ? "" : value ; }
Source:
public org.ovirt.engine.api.v3.types.V3Disk update ( org.ovirt.engine.api.v3.types.V3Disk disk ) { return adaptUpdate ( delegate :: update , disk ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Disk update ( org.ovirt.engine.api.v3.types.V3Disk disk ) { return adaptUpdate ( getDelegate ( ) :: update , disk ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult validateImagesForRunVm ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > vmDisks ) { return new org.ovirt.engine.core.bll.validator.DiskImagesValidator ( vmDisks ) . diskImagesNotLocked ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult validateImagesForRunVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > vmDisks ) { return ! ( vm.isAutoStartup ( ) ) ? new org.ovirt.engine.core.bll.validator.DiskImagesValidator ( vmDisks ) . diskImagesNotLocked ( ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return ( java.lang.String.valueOf ( object.getSizeInGigabytes ( ) ) ) + " GB" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return org.ovirt.engine.ui.common.widget.uicommon.template.TemplateDiskListModelTable.messages.gigabytes ( java.lang.String.valueOf ( object.getSizeInGigabytes ( ) ) ) ; }
Source:
public org.ovirt.engine.core.dao.ClusterDao getClusterDao ( ) { return mockClusterDao ; }

Target:
public void setUp ( ) { org.mockito.Mockito.doReturn ( mockClusterDao ) . when ( underTest ) . getClusterDao ( ) ; org.mockito.Mockito.doReturn ( mockNetworkClusterDao ) . when ( underTest ) . getNetworkClusterDao ( ) ; org.mockito.Mockito.doReturn ( mockNetworkDao ) . when ( underTest ) . getNetworkDao ( ) ; }
Source:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CheckIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void testStorageDomainMappings ( ) { assertEquals ( LunStatus.Free , org.ovirt.engine.api.restapi.types.StorageLogicalUnitMapper.map ( org.ovirt.engine.core.common.businessentities.storage.LunStatus.Free , null ) ) ; assertEquals ( LunStatus.Used , org.ovirt.engine.api.restapi.types.StorageLogicalUnitMapper.map ( org.ovirt.engine.core.common.businessentities.storage.LunStatus.Used , null ) ) ; assertEquals ( LunStatus.Unusable , org.ovirt.engine.api.restapi.types.StorageLogicalUnitMapper.map ( org.ovirt.engine.core.common.businessentities.storage.LunStatus.Unusable , null ) ) ; }

Target:
public void testStorageDomainMappings ( ) { assertEquals ( LunStatus.FREE , org.ovirt.engine.api.restapi.types.StorageLogicalUnitMapper.map ( org.ovirt.engine.core.common.businessentities.storage.LunStatus.Free , null ) ) ; assertEquals ( LunStatus.USED , org.ovirt.engine.api.restapi.types.StorageLogicalUnitMapper.map ( org.ovirt.engine.core.common.businessentities.storage.LunStatus.Used , null ) ) ; assertEquals ( LunStatus.UNUSABLE , org.ovirt.engine.api.restapi.types.StorageLogicalUnitMapper.map ( org.ovirt.engine.core.common.businessentities.storage.LunStatus.Unusable , null ) ) ; }
Source:
public java.util.concurrent.FutureTask < java.util.Map < java.lang.String , java.lang.Object > > poll ( ) { return timeBoundPoll ( 0 , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }

Target:
public java.util.concurrent.FutureTask < java.util.Map < java.lang.String , java.lang.Object > > poll ( ) { return timeBoundPoll ( 2 , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; networks.asEditor ( ) . flush ( ) . setMigrationNetwork ( clusterNetworkManageModel , value ) ; refreshNetworksTable ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel , java.lang.Boolean value ) { changeIsAttached ( clusterNetworkModel , value ) ; refreshNetworksTable ( ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.SPMAsyncTask createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskFactory.construct ( taskType , taskParameters , false ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.SPMAsyncTask createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskFactory.construct ( coco , taskType , taskParameters , false ) ; }
Source:
protected int getEneitiesTotalCount ( ) { return 4 ; }

Target:
protected int getEntitiesTotalCount ( ) { return 4 ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmTemplate mockVmTemplate ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate template = new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ; template.setId ( vmTemplateId ) ; template.setstorage_pool_id ( storagePoolId ) ; org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommandTestAbstract.setDiskList ( template ) ; return template ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmTemplate mockVmTemplate ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate template = new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ; template.setId ( vmTemplateId ) ; template.setStoragePoolId ( storagePoolId ) ; org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommandTestAbstract.setDiskList ( template ) ; return template ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageDomainDao ( ) ; existingDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID ) ; newStaticDomain = new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ; newStaticDomain.setstorage ( "fDMzhE-wx3s-zo3q-Qcxd-T0li-yoYU-QvVePl" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageDomainDao ( ) ; existingDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_DOMAIN_ID ) ; newStaticDomain = new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ; newStaticDomain.setStorage ( "fDMzhE-wx3s-zo3q-Qcxd-T0li-yoYU-QvVePl" ) ; }
Source:
public void disableCifs ( ) { accessProtocols.remove ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_CIFS_DISABLE , GlusterConstants.ON ) ; }

Target:
public void disableCifs ( ) { accessProtocols.remove ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_USER_CIFS , GlusterConstants.OFF ) ; }
Source:
protected void entityChanging ( org.ovirt.engine.core.common.businessentities.VDSGroup newValue , org.ovirt.engine.core.common.businessentities.VDSGroup oldValue ) { getNewNetworkCommand ( ) . setIsExecutionAllowed ( ( ( newValue != null ) && ( ( newValue.getStoragePoolId ( ) ) != null ) ) ) ; }

Target:
protected void entityChanging ( org.ovirt.engine.core.common.businessentities.VDSGroup newValue , org.ovirt.engine.core.common.businessentities.VDSGroup oldValue ) { getNewNetworkCommand ( ) . setIsExecutionAllowed ( ( ! ( isClusterDetached ( newValue ) ) ) ) ; getManageCommand ( ) . setIsExecutionAllowed ( ( ! ( isClusterDetached ( newValue ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmTemplate getTemplateEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VmTemplate.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmTemplate getTemplateEntity ( int index ) { org.ovirt.engine.api.restapi.resource.VmTemplate template = new org.ovirt.engine.api.restapi.resource.VmTemplate ( ) ; return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( template , index ) ; }
Source:
private int calculateCpuUsage ( org.ovirt.engine.core.common.businessentities.VDS o1 ) { return ( ( o1.getusage_cpu_percent ( ) ) * ( org.ovirt.engine.core.bll.VdsSelector.getEffectiveCpuCores ( o1 ) ) ) / ( o1.getvds_strength ( ) ) ; }

Target:
private int calculateCpuUsage ( org.ovirt.engine.core.common.businessentities.VDS o1 ) { return ( ( o1.getUsageCpuPercent ( ) ) * ( org.ovirt.engine.core.bll.VdsSelector.getEffectiveCpuCores ( o1 ) ) ) / ( o1.getVdsStrength ( ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.cleanConnection ( storageListModel.connection , storageListModel.hostId ) ; storageListModel.OnFinish ( storageListModel.context , false , storageListModel.storageModel ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.cleanConnection ( storageListModel.connection , storageListModel.hostId ) ; storageListModel.onFinish ( storageListModel.context , false , storageListModel.storageModel ) ; }
Source:
public javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.api.model.Action action ) { return performAction ( task , params , action , false ) ; }

Target:
public javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.ActionParametersBase params , org.ovirt.engine.api.model.Action action ) { return performAction ( task , params , action , false ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, ticket=%s, validTime=%s,m userName=%s, userId=%s" , super . toString ( ) , getTicket ( ) , getValidTime ( ) , getUserName ( ) , getUserId ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, protocol=%s, ticket=%s, validTime=%s,m userName=%s, userId=%s" , super . toString ( ) , graphicsType , getTicket ( ) , getValidTime ( ) , getUserName ( ) , getUserId ( ) ) ; }
Source:
protected void finalize ( ) { try { close ( ) ; } catch ( java.io.IOException e ) { org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase.log.error ( "Exception during finalize" , e ) ; } }

Target:
protected void finalize ( ) { try { close ( ) ; } catch ( java.io.IOException e ) { org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase.log.error ( "Exception during finalize" , org.apache.commons.lang.exception.ExceptionUtils.getRootCauseMessage ( e ) ) ; org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase.log.debug ( "Exception" , e ) ; } }
Source:
public static java.lang.String getSpiceBaseURL ( ) { return com.google.gwt.core.client.GWT.getModuleBaseURL ( ) . replace ( org.ovirt.engine.ui.uicommonweb.Configurator.WEBADMIN_ROOT_FOLDER , org.ovirt.engine.ui.uicommonweb.Configurator.USERPORTAL_ROOT_FOLDER ) ; }

Target:
public static java.lang.String getRootURL ( ) { java.lang.String moduleURL = com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ; java.lang.String separator = "://" ; int index = moduleURL.indexOf ( separator ) ; if ( index == ( - 1 ) ) { throw new java.lang.RuntimeException ( ) ; } index = moduleURL.indexOf ( "/" , ( index + ( separator.length ( ) ) ) ) ; if ( index == ( - 1 ) ) { return moduleURL ; } return moduleURL.substring ( 0 , index ) ; }
Source:
public final void setMacPoolId ( org.ovirt.engine.core.compat.Guid macPoolId ) { this . macPoolId = macPoolId ; }

Target:
public final java.lang.String toString ( ) { org.ovirt.engine.core.common.utils.ToStringBuilder result = org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) ; if ( ( macPool ) != null ) { result.append ( "macPool" , macPool.toString ( ) ) ; } return result.build ( ) ; }
Source:
public void runningSucceded ( ) { removeMemoryFromActiveSnapshot ( ) ; super . runningSucceded ( ) ; }

Target:
public void runningSucceded ( ) { setFlow ( org.ovirt.engine.core.bll.RunVmCommand.RunVmFlow.RUNNING_SUCCEEDED ) ; removeMemoryFromActiveSnapshot ( ) ; super . runningSucceded ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hostProviderExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) . when ( ( ( ( getHost ( ) . getHostProviderId ( ) ) != null ) && ( ( getProvider ( ) ) == null ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostProviderExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) . when ( ( ( ( getHost ( ) . getHostProviderId ( ) ) != null ) && ( ( getProvider ( ) ) == null ) ) ) ; }
Source:
private void mockVds ( ) { mockGetImageDomainsListVdsCommand ( 100 , 100 ) ; }

Target:
private void mockVds ( ) { mockGetStorageDomainList ( 100 , 100 ) ; mockGetImagesList ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > ) ( returnValue ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkView getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.NetworkView ) ( super . getEntity ( ) ) ) ; }
Source:
public void setUp ( ) { org.mockito.Mockito.doReturn ( snapshotDao ) . when ( validator ) . getSnapshotDao ( ) ; }

Target:
public void setUp ( ) { vmId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; snapshotId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; org.mockito.Mockito.doReturn ( snapshotDao ) . when ( validator ) . getSnapshotDao ( ) ; }
Source:
protected org.ovirt.engine.core.aaa.DirectoryUser getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }

Target:
protected org.ovirt.engine.core.aaa.DirectoryUser getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryUser ( DOMAIN , org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.decode ( EXTERNAL_IDS [ index ] ) , NAMES [ index ] ) ; }
Source:
protected void executeQueryCommand ( ) { setReturnValue ( vmIconDao.getAll ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { setReturnValue ( vmIconDao.getAll ( getUserID ( ) , getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
private void setIsDiskHotPlugSupported ( boolean value ) { if ( ( privateIsDiskHotPlugSupported ) != value ) { privateIsDiskHotPlugSupported = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsDiskHotPlugSupported" ) ) ; } }

Target:
private void setIsDiskHotPlugSupported ( boolean value ) { if ( ( privateIsDiskHotPlugSupported ) != value ) { privateIsDiskHotPlugSupported = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsDiskHotPlugSupported" ) ) ; } }
Source:
public static org.ovirt.engine.core.bll.ValidationResult validateIconId ( org.ovirt.engine.core.compat.Guid iconId , java.lang.String nameForErrorMessage ) { if ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmIconDao ( ) . exists ( iconId ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ICON_OF_PROVIDED_ID_DOES_NOT_EXIST , ( "$iconName " + nameForErrorMessage ) ) ; }

Target:
public static org.ovirt.engine.core.bll.ValidationResult validateIconId ( org.ovirt.engine.core.compat.Guid iconId , java.lang.String nameForErrorMessage ) { if ( org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.VmIconDao.class ) . exists ( iconId ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ICON_OF_PROVIDED_ID_DOES_NOT_EXIST , ( "$iconName " + nameForErrorMessage ) ) ; }
Source:
public void setSizeInGigabytes ( long value ) { setsize ( ( value * ( ( 1024 * 1024 ) * 1024 ) ) ) ; }

Target:
public void setSizeInGigabytes ( long value ) { setSize ( ( value * ( ( 1024 * 1024 ) * 1024 ) ) ) ; }
Source:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_USER_ID , ActionGroup.CONSUME_QUOTA , new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( FixturesTool.USER_EXISTING_ID , ActionGroup.CONSUME_QUOTA , FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc refreshStoragePool ( java.lang.String spUUID , java.lang.String msdUUID , int masterVersion ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturnForXmlRpc teardownImage ( java.lang.String spId , java.lang.String sdId , java.lang.String imgGroupId , java.lang.String imgId ) ;
Source:
public java.lang.Void runInTransaction ( ) { if ( removeVmTemplateImages ( ) ) { setSucceeded ( true ) ; } return null ; }

Target:
public java.lang.Void runInTransaction ( ) { if ( removeVmTemplateImages ( ) ) { org.ovirt.engine.core.bll.VmHandler.removeVmInitFromDB ( getVmTemplate ( ) ) ; setSucceeded ( true ) ; } return null ; }
Source:
public static void GetHostList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetHostListByStatus ( aQuery , null ) ; }

Target:
public static void getHostList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getHostListByStatus ( aQuery , null ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigReset ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName ) ;
Source:
private void mockAttachStorageDomainVdsCommand ( ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue = new org.ovirt.engine.core.common.vdscommands.VDSReturnValue ( ) ; returnValue.setSucceeded ( true ) ; org.mockito.Mockito.when ( vdsBrokerFrontend.RunVdsCommand ( org.mockito.Matchers.eq ( VDSCommandType.AttachStorageDomain ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.AttachStorageDomainVDSCommandParameters.class ) ) ) . thenReturn ( returnValue ) ; }

Target:
private void mockAttachStorageDomainVdsCommand ( ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue = new org.ovirt.engine.core.common.vdscommands.VDSReturnValue ( ) ; returnValue.setSucceeded ( true ) ; org.mockito.Mockito.when ( vdsBrokerFrontend.runVdsCommand ( org.mockito.Matchers.eq ( VDSCommandType.AttachStorageDomain ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.AttachStorageDomainVDSCommandParameters.class ) ) ) . thenReturn ( returnValue ) ; }
Source:
protected void onSaveMAC ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface nicToSave ) { nicToSave.setMacAddress ( null ) ; }

Target:
protected void onSaveMAC ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface nicToSave ) { nicToSave.setMacAddress ( null ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getNetworkCluster ( ) { if ( ( networkCluster ) == null ) { org.ovirt.engine.core.common.businessentities.network.NetworkClusterId networkClusterId = new org.ovirt.engine.core.common.businessentities.network.NetworkClusterId ( host.getVdsGroupId ( ) , attachment.getNetworkId ( ) ) ; networkCluster = networkClusterDao.get ( networkClusterId ) ; } return networkCluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getNetworkCluster ( ) { if ( ( networkCluster ) == null ) { org.ovirt.engine.core.common.businessentities.network.NetworkClusterId networkClusterId = new org.ovirt.engine.core.common.businessentities.network.NetworkClusterId ( host.getClusterId ( ) , attachment.getNetworkId ( ) ) ; networkCluster = networkClusterDao.get ( networkClusterId ) ; } return networkCluster ; }
Source:
public void canDoActionFails ( ) { cmd = createTestCommand ( stoppedVolumeId ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( null , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskImageId ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskImageGroupId ) ) ; }
Source:
public void add ( ) { runAddAndVerify ( createNewInterface ( ) , true , org.mockito.Mockito.times ( 1 ) ) ; }

Target:
public void add ( ) { runAddAndVerify ( createNewInterface ( ) , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }
Source:
public void defaultClusterInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( EngineMessage.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }

Target:
public void defaultClusterInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; architectureIsUpdatable ( ) ; validateFailedWithReason ( EngineMessage.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }
Source:
protected void mockBackend ( T cmd , boolean succeeded ) { mockBackend ( cmd , succeeded , VdcBllErrors.GlusterHookEnableFailed ) ; }

Target:
protected void mockBackendStatusChange ( T cmd , boolean succeeded ) { mockBackendStatusChange ( cmd , succeeded , VdcBllErrors.GlusterHookEnableFailed ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.HostDevice getFreeVf ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { return getVf ( nic , true ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.HostDevice getFreeVf ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic , java.util.List < java.lang.String > excludeVfs ) { return getVf ( nic , true , excludeVfs ) ; }
Source:
private boolean isMemoryRemovable ( ) { return ( ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getMemoryVolumes ( ) ) ) == 1 ) || ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . isForceRemove ( ) ) ; }

Target:
private boolean isMemoryRemovable ( ) { return ( ( snapshotDao.getNumOfSnapshotsByMemory ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . getMemoryVolumes ( ) ) ) == 1 ) || ( org.ovirt.engine.core.bll.RemoveMemoryVolumesCommand.getParameters ( ) . isForceRemove ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( host.getpm_enabled ( ) ) && ( ( host.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Reboot ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( host.isPmEnabled ( ) ) && ( ( host.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSStatus.Reboot ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null , null ) ; }
Source:
public void testIsInternalExecutionDefault ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; junit.framework.Assert.assertFalse ( "By default, a query should not be marked for internel execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionDefault ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; org.junit.Assert.assertFalse ( "By default, a query should not be marked for internel execution" , query.isInternalExecution ( ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( org.ovirt.engine.api.restapi.resource.BackendTemplateBasedResourceTest.setUpBasicUriExpectations ( ) ) ; setUpGetGraphicsExpectations ( 1 ) ; setUpGetEntityExpectations ( 1 ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( org.ovirt.engine.api.restapi.resource.BackendTemplateBasedResourceTest.setUpBasicUriExpectations ( ) ) ; setUpGetGraphicsExpectations ( 1 ) ; setUpGetEntityExpectations ( 1 ) ; setUpGetBallooningExpectations ( ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
public void setEntity ( java.lang.Object value ) { if ( ( value == null ) || ( ! ( value.equals ( getEntity ( ) ) ) ) ) { super . setEntity ( value ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } else { setItems ( null ) ; } }
Source:
public void setErrorMessage ( java.lang.String text ) { errorMessage.setText ( text ) ; errorMessage.setVisible ( ( text != null ) ) ; if ( errorMessage.isVisible ( ) ) { errorMessagePanel.setVisible ( true ) ; } }

Target:
public void setErrorMessage ( java.lang.String text ) { errorMessage.setText ( text ) ; errorMessage.setVisible ( ( text != null ) ) ; if ( errorMessage.isVisible ( ) ) { errorMessagePanel.setVisible ( true ) ; setToolTipPositionAndShow ( ) ; } }
Source:
public void testNoStorageQuotaAssigned ( ) { underTest.handleIoTune ( vmDevice , underTest.loadStorageQos ( diskImage ) ) ; org.junit.Assert.assertNull ( vmDevice.getSpecParams ( ) ) ; }

Target:
public void testNoStorageQuotaAssigned ( ) { underTest.handleIoTune ( vmDevice , underTest.loadStorageQos ( diskImage ) ) ; org.junit.jupiter.api.Assertions.assertNull ( vmDevice.getSpecParams ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { if ( isPolicyReset ) { updateHeartbeatPolicy ( client.getClientRetryPolicy ( ) . clone ( ) , false ) ; } return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }

Target:
public boolean test ( org.ovirt.vdsm.jsonrpc.client.JsonRpcClient client ) { return client.isClosed ( ) ; }
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 getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
public void testRemove ( ) { dao.remove ( org.ovirt.engine.core.dao.PermissionDaoTest.EXISTING_PERMISSION_ID ) ; org.ovirt.engine.core.common.businessentities.Permission result = dao.get ( org.ovirt.engine.core.dao.PermissionDaoTest.EXISTING_PERMISSION_ID ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testRemove ( ) { dao.remove ( org.ovirt.engine.core.dao.PermissionDaoTest.EXISTING_PERMISSION_ID ) ; org.ovirt.engine.core.common.businessentities.Permission result = dao.get ( org.ovirt.engine.core.dao.PermissionDaoTest.EXISTING_PERMISSION_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void sethypervisor_type ( org.ovirt.engine.core.common.businessentities.HypervisorType value ) { this . mVmStatic.sethypervisor_type ( value ) ; }

Target:
public void setDbGeneration ( long value ) { this . vmStatic.setDbGeneration ( value ) ; }
Source:
public void testGetHasPermission ( ) { org.ovirt.engine.core.common.businessentities.network.VnicProfile result = dao.get ( FixturesTool.VM_NETWORK_INTERFACE_PROFILE , org.ovirt.engine.core.dao.network.VnicProfileDaoTest.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.VM_NETWORK_INTERFACE_PROFILE , result.getId ( ) ) ; }

Target:
public void testGetAllForNetwork ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfile > result = dao.getAllForNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }
Source:
public void testValidateNoUniqueId ( ) { mockHostForUniqueId ( StringUtils.EMPTY ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_NO_UUID ) ) ; }

Target:
public void testValidateNoUniqueId ( ) { org.mockito.Mockito.when ( host.getUniqueId ( ) ) . thenReturn ( StringUtils.EMPTY ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_NO_UUID ) ) ; }
Source:
public org.ovirt.engine.core.dao.AdGroupDAO getAdGroupDao ( ) { return getDao ( org.ovirt.engine.core.dao.AdGroupDAO.class ) ; }

Target:
public org.ovirt.engine.core.dao.DbGroupDAO getDbGroupDao ( ) { return getDao ( org.ovirt.engine.core.dao.DbGroupDAO.class ) ; }
Source:
public org.ovirt.engine.api.resource.NetworkFilterParametersResource getNetworkFilterParametersResource ( ) { return null ; }

Target:
public org.ovirt.engine.api.resource.NicNetworkFilterParametersResource getNetworkFilterParametersResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNicFilterParametersResource ( vmId , guid ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getVmConfiguration ( java.lang.String snapshotId ) { org.ovirt.engine.core.common.businessentities.VM vmConfiguration = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmConfigurationBySnapshot , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( snapshotId ) ) , "" ) ; return vmConfiguration ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getVmConfiguration ( java.lang.String snapshotId ) { org.ovirt.engine.core.common.businessentities.VM vmConfiguration = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , QueryType.GetVmConfigurationBySnapshot , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( snapshotId ) ) , "" ) ; return vmConfiguration ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc list ( java.lang.String isFull , java.lang.String [ ] vmIds ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc fullList ( java.lang.String [ ] vmIds ) ;
Source:
public java.lang.String translateVdcFault ( final org.ovirt.engine.core.common.errors.VdcFault fault ) { return getVdsmErrorsTranslator ( ) . translateErrorTextSingle ( ( ( fault.getError ( ) ) == null ? fault.getMessage ( ) : fault.getError ( ) . toString ( ) ) ) ; }

Target:
public java.lang.String translateEngineFault ( final org.ovirt.engine.core.common.errors.EngineFault fault ) { return getVdsmErrorsTranslator ( ) . translateErrorTextSingle ( ( ( fault.getError ( ) ) == null ? fault.getMessage ( ) : fault.getError ( ) . toString ( ) ) ) ; }
Source:
public void testGetPath ( ) { org.junit.Assert.assertEquals ( "Path should be '/01-test.brand'" , "/01-test.brand" , testTheme.getPath ( ) ) ; }

Target:
public void testGetPath ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "/01-test.brand" , testTheme.getPath ( ) , "Path should be '/01-test.brand'" ) ; }
Source:
public void setPlugged ( boolean isPlugged ) { this . isPlugged = isPlugged ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getVmIdsForVersionUpdate ( org.ovirt.engine.core.compat.Guid baseTemplateId ) { return getCallsHandler ( ) . executeReadList ( "getVmIdsForVersionUpdate" , createGuidMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "base_template_id" , baseTemplateId ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult getNetworkInUse ( java.util.Collection < java.lang.String > vmNames ) { return getNetworkInUse ( vmNames , VdcBllMessages.VAR__ENTITIES__VM , VdcBllMessages.VAR__ENTITIES__VMS ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult getNetworkInUse ( java.util.Collection < java.lang.String > vmNames ) { return getNetworkInUse ( vmNames , EngineMessage.VAR__ENTITIES__VM , EngineMessage.VAR__ENTITIES__VMS ) ; }
Source:
public boolean connectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.ConnectStorageToVds.getValue ( ) , lun , storagePoolId ) . getFirst ( ) ; }

Target:
public boolean connectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.storage.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.ConnectStorageToVds.getValue ( ) , lun , storagePoolId ) . getFirst ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel model ) { networks.edit ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel model ) { networks.edit ( model ) ; }
Source:
public java.lang.String getversion_name ( ) { return this . getVersion ( ) . getVersionName ( ) ; }

Target:
public java.lang.String getversion_name ( ) { return versionName ; }
Source:
protected void initAllowConsoleReconnect ( ) { getAllowConsoleReconnect ( ) . setEntity ( true ) ; }

Target:
protected void initAllowConsoleReconnect ( ) { getAllowConsoleReconnect ( ) . setEntity ( ( ( getVmType ( ) . getSelectedItem ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmType.Server ) ) ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { if ( ( this . mVmDynamic.getstatus ( ) ) != value ) { this . mVmDynamic.setstatus ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "status" ) ) ; } }

Target:
public void setVmIp ( java.lang.String value ) { this . vmDynamic.setvm_ip ( value ) ; }
Source:
void setInputFieldsEnabled ( boolean enabled ) ;

Target:
void postModelEnabled ( boolean enabled ) ;
Source:
protected org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator getStorageDomainValidator ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = org.ovirt.engine.core.bll.UpdateVmDiskCommand.getStorageDomainDAO ( ) . getForStoragePool ( diskImage.getStorageIds ( ) . get ( 0 ) , diskImage.getStoragePoolId ( ) ) ; return new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( storageDomain ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator getStorageDomainValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = org.ovirt.engine.core.bll.UpdateVmDiskCommand.getStorageDomainDAO ( ) . getForStoragePool ( diskImage.getStorageIds ( ) . get ( 0 ) , diskImage.getStoragePoolId ( ) ) ; return new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( storageDomain ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.SessionState getsession ( ) { return this . mVmDynamic.getsession ( ) ; }

Target:
public void setLastVdsRunOn ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setlast_vds_run_on ( value ) ; }
Source:
void dump ( org.ovirt.engine.api.extensions.ExtMap map , java.lang.String indent ) ;

Target:
void dump ( org.ovirt.engine.exttool.aaa.AAAServiceImpl module , org.ovirt.engine.api.extensions.ExtMap map , java.lang.String indent ) ;
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , int availableSize , int usedSize ) { return mockStorageDomain ( storageId , availableSize , usedSize , StorageType.UNKNOWN , new org.ovirt.engine.core.compat.Version ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.StorageType storageType , org.ovirt.engine.core.compat.Version version ) { return mockStorageDomain ( storageId , 6 , 4 , storageType , version ) ; }
Source:
protected void executeCommand ( ) { getMacPoolDao ( ) . update ( getMacPool ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDc.getInstance ( ) . modifyPool ( getMacPool ( ) ) ; setSucceeded ( true ) ; getReturnValue ( ) . setActionReturnValue ( getMacPoolId ( ) ) ; }

Target:
protected void executeCommand ( ) { getMacPoolDao ( ) . update ( getMacPoolEntity ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . modifyPool ( getMacPoolEntity ( ) ) ; setSucceeded ( true ) ; getReturnValue ( ) . setActionReturnValue ( getMacPoolId ( ) ) ; }
Source:
public void setIsExecutionAllowed ( boolean value ) { if ( ( isExecutionAllowed ) != value ) { isExecutionAllowed = value ; if ( value ) { getExecuteProhibitionReasons ( ) . clear ( ) ; } OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsExecutionAllowed" ) ) ; } }

Target:
public void setIsExecutionAllowed ( boolean value ) { if ( ( isExecutionAllowed ) != value ) { isExecutionAllowed = value ; if ( value ) { getExecuteProhibitionReasons ( ) . clear ( ) ; } onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsExecutionAllowed" ) ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { providerChanged ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean authenticationRequired = kvmRequiresAuthentication.getEntity ( ) ; getKvmUsername ( ) . setIsChangeable ( authenticationRequired ) ; getKvmPassword ( ) . setIsChangeable ( authenticationRequired ) ; }
Source:
public void getFreeVfNotSriovNic ( ) { commonIsSriovDevice ( false ) ; try { hostNicVfsConfigHelper.getFreeVf ( nic ) ; } catch ( java.lang.Exception exception ) { org.junit.Assert.assertTrue ( ( exception instanceof java.lang.UnsupportedOperationException ) ) ; } }

Target:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic , null ) ) ; }
Source:
public void setColumnId ( java.lang.String columnId ) { this . columnId = columnId ; }

Target:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet ( super . getConsumedEvents ( ) ) ; set.add ( BrowserEvents.CLICK ) ; return set ; }
Source:
public org.ovirt.engine.api.v3.types.V3Network update ( org.ovirt.engine.api.v3.types.V3Network network ) { return adaptUpdate ( delegate :: update , network ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Network update ( org.ovirt.engine.api.v3.types.V3Network network ) { return adaptUpdate ( getDelegate ( ) :: update , network ) ; }
Source:
public void setvds_group_name ( java.lang.String value ) { this . vds_group_nameField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_name" ) ) ; }

Target:
public void setVdsGroupName ( java.lang.String value ) { this . vdsGroupName = value ; }
Source:
public void testGetAllForDc ( ) { org.junit.Assert.assertEquals ( 3 , dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) . size ( ) ) ; org.junit.Assert.assertTrue ( dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_NFS ) . isEmpty ( ) ) ; }

Target:
public void testGetAllForDc ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 3 , dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) . size ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_NFS ) . isEmpty ( ) ) ; }
Source:
public void formatStringTest2 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{2}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "1" , "1" ) ; org.junit.Assert.assertEquals ( "Testing 123: 1.1.1" , result ) ; }

Target:
public void formatStringTest2 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{2}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "1" , "1" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Testing 123: 1.1.1" , result ) ; }
Source:
private void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; setWindow ( null ) ; }

Target:
private void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; cancelConfirmation ( ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }