auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressAndNetmaskIsNotNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "192.168.1.1" , "255.255.255.0" ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
private void doTestIpConfiguredForStaticBootProtocol ( java.lang.String address , java.lang.String netmask , org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , address , netmask ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . ipConfiguredForStaticBootProtocol ( ) , matcher ) ; }
Source:
public void executeQueryCommandWithEmptyMap ( ) { org.junit.Assert.assertTrue ( runQuery ( ) . isEmpty ( ) ) ; }

Target:
public void executeQueryCommandWithEmptyMap ( ) { org.junit.jupiter.api.Assertions.assertTrue ( runQuery ( ) . isEmpty ( ) ) ; }
Source:
protected void AsyncSearch ( ) { Search ( ) ; }

Target:
protected void asyncSearch ( ) { search ( ) ; }
Source:
public void reuseSession ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , sessionId ) ; scheduleKeepAliveHeartbeat ( ) ; } else { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; } }

Target:
public void onFailure ( java.lang.Throwable caught ) { processSessionIdException ( ) ; }
Source:
public void spiceSelected ( boolean selected ) { spicePanel.setVisible ( selected ) ; }

Target:
public void showSpicePanel ( boolean visible ) { spicePanel.setVisible ( visible ) ; if ( visible ) { vncPanel.setVisible ( false ) ; rdpPanel.setVisible ( false ) ; } }
Source:
public java.util.ArrayList < java.lang.String > getChangeablePropertiesList ( ) { return org.ovirt.engine.core.common.businessentities.VM.vmProperties ; }

Target:
public java.lang.String getName ( ) { return getVmName ( ) ; }
Source:
public void canOnlyDoWithPinnedToHostPolicy ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setMigrationSupport ( MigrationSupport.MIGRATABLE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_PINNED_TO_HOST ) ; }

Target:
public void canOnlyDoWithPinnedToHostPolicy ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setMigrationSupport ( MigrationSupport.MIGRATABLE ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_PINNED_TO_HOST ) ; }
Source:
public void testNoMatchDoesntCrash ( ) { org.ovirt.engine.api.model.Version version = org.ovirt.engine.api.restapi.types.VersionMapper.fromVersionString ( "ugly" ) ; org.junit.Assert.assertNotNull ( version ) ; org.junit.Assert.assertEquals ( "ugly" , version.getFullVersion ( ) ) ; }

Target:
public void testNoMatchDoesntCrash ( ) { org.ovirt.engine.api.model.Version version = org.ovirt.engine.api.restapi.types.VersionMapper.fromVersionString ( "ugly" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( version ) ; org.junit.jupiter.api.Assertions.assertEquals ( "ugly" , version.getFullVersion ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . dataCenterMainTabLabel ( ) , 0 , ginjector.getMainTabDataCenterModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.StoragePool , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterMainTabLabel ( ) , 0 , modelProvider ) ; }
Source:
public void testValidNetworkFilterIdUseDefaultNoFilterId ( ) { org.junit.Assert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidNetworkFilterIdNoDefaultNoFilterId ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setGuestOverhead ( java.lang.Integer value ) { this . mVdsDynamic.setGuestOverhead ( value ) ; }

Target:
public void setUsageNetworkPercent ( java.lang.Integer value ) { vdsStatistics.setUsageNetworkPercent ( value ) ; }
Source:
public void testValidateGateway ( ) throws java.lang.Exception { host.setVdsGroupCompatibilityVersion ( Version.v3_5 ) ; doTestValidateGateway ( "someGateway" , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ATTACH_ILLEGAL_GATEWAY ) ) ; }

Target:
public void testValidateGateway ( ) throws java.lang.Exception { host.setVdsGroupCompatibilityVersion ( Version.v3_5 ) ; doTestValidateGateway ( "someGateway" , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACH_ILLEGAL_GATEWAY ) ) ; }
Source:
public void testGetStorageDevicesInHost ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > storageDevices = dao.getStorageDevicesInHost ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.Assert.assertEquals ( "Fails to retrive all the storage devices for host" , 2 , storageDevices.size ( ) ) ; }

Target:
public void testGetStorageDevicesInHost ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > storageDevices = dao.getStorageDevicesInHost ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , storageDevices.size ( ) , "Fails to retrive all the storage devices for host" ) ; }
Source:
public void setstorage ( java.lang.String value ) { getStorageStaticData ( ) . setstorage ( value ) ; }

Target:
public void setStorage ( java.lang.String storage ) { getStorageStaticData ( ) . setstorage ( storage ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Quota > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( ) ; org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetQuotaStorageByQuotaId , params , new org.ovirt.engine.ui.uicommonweb.models.quota.SetItemsAsyncQuery ( ) ) ; }
Source:
public org.ovirt.engine.core.common.utils.Pair < java.util.List < org.ovirt.engine.core.compat.Guid > , org.ovirt.engine.core.compat.Guid > balance ( org.ovirt.engine.core.common.businessentities.Cluster cluster , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , java.util.Map < java.lang.String , java.lang.String > parameters , java.util.ArrayList < java.lang.String > messages ) { return null ; }

Target:
public java.util.Optional < org.ovirt.engine.core.bll.scheduling.external.BalanceResult > balance ( org.ovirt.engine.core.common.businessentities.Cluster cluster , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , java.util.Map < java.lang.String , java.lang.String > parameters , java.util.ArrayList < java.lang.String > messages ) { return java.util.Optional.empty ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getGlusterBrickByServerUuidAndBrickDir ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String brickDir ) { return getGlusterBrickDao ( ) . getBrickByServerIdAndDirectory ( serverId , brickDir ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getGlusterBrickByServerUuidAndBrickDir ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String brickDir ) { return glusterBrickDao.getBrickByServerIdAndDirectory ( serverId , brickDir ) ; }
Source:
java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) ;

Target:
java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) ;
Source:
private void RemoveVdsStatisticsFromDb ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStatisticsDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }

Target:
protected org.ovirt.engine.core.dao.VdsStatisticsDAO getVdsStatisticsDao ( ) { return org.ovirt.engine.core.bll.RemoveVdsCommand.getDbFacade ( ) . getVdsStatisticsDao ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( ( getModel ( ) ) != null ) && ( handleItemsChangedEvent ( ) ) ) { updateData ( ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( hasModel ( ) ) && ( handleItemsChangedEvent ( ) ) ) { updateData ( ) ; } }
Source:
public java.lang.String getValue ( java.lang.Object object ) { int size = getEntity ( object ) . getVmMemSizeMb ( ) ; return size + " MB" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData importVmData ) { int size = importVmData.getVm ( ) . getVmMemSizeMb ( ) ; return size + " MB" ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForCluster ( org.ovirt.engine.core.compat.Guid cluster ) ;
Source:
public void canDoActionFailsLongName ( ) { sd.setStorageName ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 11 ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }

Target:
public void canDoActionFailsLongName ( ) { sd.setStorageName ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 11 ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }
Source:
public void setVmOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmStatic.setos ( value ) ; }

Target:
public java.util.Date getVmCreationDate ( ) { return this . vmStatic.getCreationDate ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > bonds = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; allBonds = bonds ; queryLabels ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > bonds = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; allBonds = bonds ; initNicModels ( ) ; stopProgress ( ) ; }
Source:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . message ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.RESPONSE_QUEUE ) . withContent ( message ) . build ( ) ) ; }

Target:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . message ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.DEFAULT_RESPONSE_QUEUE ) . withContent ( message ) . build ( ) ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) { org.junit.Assert.assertEquals ( "" , query ) ; setUpEntityQueryExpectations ( QueryType.GetAllStorageServerConnections , org.ovirt.engine.core.common.queries.QueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpStorageConnections ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) { org.junit.jupiter.api.Assertions.assertEquals ( "" , query ) ; setUpEntityQueryExpectations ( QueryType.GetAllStorageServerConnections , org.ovirt.engine.core.common.queries.QueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpStorageConnections ( ) , failure ) ; }
Source:
private void updateStepProgress ( org.ovirt.engine.core.compat.Guid stepId , java.lang.Integer progress ) { if ( stepId != null ) { getStepDao ( ) . updateStepProgress ( stepId , progress ) ; } }

Target:
private void updateStepProgress ( org.ovirt.engine.core.compat.Guid stepId , java.lang.Integer progress ) { if ( stepId != null ) { stepDao.updateStepProgress ( stepId , progress ) ; } }
Source:
protected org.ovirt.engine.api.model.HostStorage lookupStorage ( java.lang.String id ) { for ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun : getLogicalUnits ( ) ) { if ( lun.getLUN_id ( ) . equals ( id ) ) { return addLinks ( map ( lun ) ) ; } } return notFound ( ) ; }

Target:
protected org.ovirt.engine.api.model.HostStorage lookupStorage ( java.lang.String id ) { for ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun : getLogicalUnits ( ) ) { if ( lun.getLUNId ( ) . equals ( id ) ) { return addLinks ( map ( lun ) ) ; } } return notFound ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > listPermissionSubjects = new java.util.ArrayList < > ( ) ; listPermissionSubjects.add ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.common.VdcObjectType.Storage , org.ovirt.engine.core.common.businessentities.ActionGroup.CREATE_DISK ) ) ; return listPermissionSubjects ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > listPermissionSubjects = new java.util.ArrayList < > ( ) ; listPermissionSubjects.add ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.common.VdcObjectType.Storage , org.ovirt.engine.core.common.businessentities.ActionGroup.CREATE_DISK ) ) ; return listPermissionSubjects ; }
Source:
public static org.ovirt.engine.api.restapi.types.WatchdogModel fromValue ( java.lang.String value ) { try { return org.ovirt.engine.api.restapi.types.WatchdogModel.valueOf ( org.apache.commons.lang.StringUtils.upperCase ( value ) ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }

Target:
public static org.ovirt.engine.api.model.WatchdogModel fromValue ( java.lang.String value ) { try { return org.ovirt.engine.api.model.WatchdogModel.valueOf ( org.apache.commons.lang.StringUtils.upperCase ( value ) ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.IscsiBond , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterIscsiBondListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterIscsiBondPresenter.constants.dataCenterIscsiMultipathingSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterIscsiBondPresenter.constants.dataCenterIscsiMultipathingSubTabLabel ( ) , 1 ) ; }
Source:
public void testEmptyKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtilsTest.EMPTY_KEY_VAL ) ; org.junit.Assert.assertEquals ( 2 , map.size ( ) ) ; }

Target:
public void testEmptyKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.utils.StringMapUtils.string2Map ( org.ovirt.engine.core.utils.StringMapUtilsTest.EMPTY_KEY_VAL ) ; org.junit.Assert.assertEquals ( 2 , map.size ( ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { int numOfDisks = getEntity ( object ) . getDiskList ( ) . size ( ) ; return java.lang.String.valueOf ( numOfDisks ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { int numOfDisks = getEntity ( object ) . getDiskTemplateMap ( ) . size ( ) ; return java.lang.String.valueOf ( numOfDisks ) ; }
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 add ( org.ovirt.engine.api.model.WatchDog device ) ;

Target:
public org.ovirt.engine.api.resource.WatchdogResource getDeviceSubResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) ;
Source:
public boolean add ( T key ) { return add ( key , allowDuplicate ) ; }

Target:
public boolean increase ( T key ) { return increase ( key , allowDuplicate ) ; }
Source:
private java.lang.String getCaCertPath ( ) { return "/etc/pki/vdsm/libvirt-spice/ca-cert.pem" ; }

Target:
private int offerHostId ( org.ovirt.engine.core.compat.Guid vdsId ) { return dbFacade.getVdsSpmIdMapDao ( ) . get ( vdsId ) . getVdsSpmId ( ) ; }
Source:
public static boolean isMemorySizeLegal ( org.ovirt.engine.core.common.businessentities.VmOsType osType , int memSizeInMB , java.lang.String clsuter_version ) { return ( memSizeInMB >= ( org.ovirt.engine.core.common.utils.VmValidationUtils.getMinMemorySizeInMb ( ) ) ) && ( memSizeInMB <= ( org.ovirt.engine.core.common.utils.VmValidationUtils.getMaxMemorySizeInMb ( osType , clsuter_version ) ) ) ; }

Target:
public static boolean isMemorySizeLegal ( org.ovirt.engine.core.common.businessentities.VmOsType osType , int memSizeInMB , java.lang.String clusterVersion ) { return ( memSizeInMB >= ( org.ovirt.engine.core.common.utils.VmValidationUtils.getMinMemorySizeInMb ( ) ) ) && ( memSizeInMB <= ( org.ovirt.engine.core.common.utils.VmValidationUtils.getMaxMemorySizeInMb ( osType , clusterVersion ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult nameAvailable ( ) { return ( getProviderDao ( ) . getByName ( provider.getName ( ) ) ) == null ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult nameAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) . when ( ( ( getProviderDao ( ) . getByName ( provider.getName ( ) ) ) != null ) ) ; }
Source:
private void stop ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.StopVm , new org.ovirt.engine.core.common.action.StopVmParameters ( entity.getId ( ) , org.ovirt.engine.core.common.action.StopVmTypeEnum.NORMAL ) ) ; }

Target:
private void stop ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.StopVm , new org.ovirt.engine.core.common.action.StopVmParameters ( entity.getId ( ) , org.ovirt.engine.core.common.action.StopVmTypeEnum.NORMAL ) ) ; }
Source:
public org.ovirt.engine.core.bll.SPMAsyncTask CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.AsyncTaskFactory.construct ( taskType , taskParameters , false ) ; }

Target:
public org.ovirt.engine.core.bll.SPMAsyncTask createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.AsyncTaskFactory.construct ( taskType , taskParameters , false ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.StorageDomain x , org.ovirt.engine.core.common.businessentities.StorageDomain y ) { return x.getstorage_name ( ) . compareTo ( y.getstorage_name ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.StorageDomain x , org.ovirt.engine.core.common.businessentities.StorageDomain y ) { return x.getStorageName ( ) . compareTo ( y.getStorageName ( ) ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.StorageDomain source ) { return source.getId ( ) . equals ( id ) ; }

Target:
public static final java.util.Collection < org.ovirt.engine.core.common.businessentities.StorageDomain > filterStorageDomainById ( java.util.Collection < org.ovirt.engine.core.common.businessentities.StorageDomain > source , final org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.ui.uicommonweb.Linq.where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate ( id ) ) ; }
Source:
public void initialize ( ) { initMigrationPolicies ( org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.MigrationPolicies ) ) ; }

Target:
public void initialize ( ) { for ( org.ovirt.engine.core.compat.Version version : org.ovirt.engine.core.compat.Version.ALL ) { initMigrationPolicies ( org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.MigrationPolicies , version.toString ( ) ) , version ) ; } }
Source:
public void run ( ) { try { waitForTasksToBeCleared ( ) ; executeDeactivateCommnad ( false ) ; ctx.resetCompensation ( ) ; } catch ( java.lang.Exception e ) { log.error ( "Error when attempting to deactivate storage domain {}" , getStorageDomainId ( ) , e ) ; compensate ( ) ; } }

Target:
public void run ( ) { try { waitForTasksToBeCleared ( ) ; executeDeactivateCommand ( false ) ; ctx.resetCompensation ( ) ; } catch ( java.lang.Exception e ) { log.error ( "Error when attempting to deactivate storage domain {}" , getStorageDomainId ( ) , e ) ; compensate ( ) ; } }
Source:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BOND_PARAMETERS_INVALID ) ; }

Target:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BOND_PARAMETERS_INVALID ) ; }
Source:
public void setRoundedElapsedTime ( java.lang.Double value ) { this . mVmStatistics.setRoundedElapsedTime ( value ) ; }

Target:
public void setCpuSys ( java.lang.Double value ) { this . vmStatistics.setcpu_sys ( value ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > startSpice ( java.lang.String vdsIp , int port , java.lang.String ticket ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > convertExternalVmFromOva ( java.lang.String ovaPath , java.util.Map vm , java.lang.String jobId ) ;
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( disksList ) . eval ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) ) ; }
Source:
public void testGetAsyncTaskIdsByStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks = dao.getAsyncTaskIdsByStoragePoolId ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.Assert.assertNotNull ( tasks ) ; org.junit.Assert.assertEquals ( 2 , tasks.size ( ) ) ; }

Target:
public void testGetAsyncTaskIdsByStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks = dao.getAsyncTaskIdsByStoragePoolId ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.jupiter.api.Assertions.assertNotNull ( tasks ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , tasks.size ( ) ) ; }
Source:
public void setEntity ( java.lang.Object value ) { updateIsMemorySnapshotSupported ( value ) ; super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; }

Target:
public void setEntity ( java.lang.Object value ) { updateIsMemorySnapshotSupported ( value ) ; updateIsLiveMergeSupported ( value ) ; super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > searchGlusterVolumes ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getGlusterVolumeDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmPool > searchVmPools ( ) { return genericSearch ( vmPoolDao , true ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId ) { return mockStorageDomain ( storageId , 6 , 4 , 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.storage.StorageType storageType ) { return mockStorageDomain ( storageId , 6 , 4 , storageType ) ; }
Source:
public void snapshotTypeNotSupported ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.snapshotTypeSupported ( snapshot , java.util.Collections.singletonList ( Snapshot.SnapshotType.ACTIVE ) ) , EngineMessage.ACTION_TYPE_FAILED_VM_SNAPSHOT_TYPE_NOT_ALLOWED ) ; }

Target:
public void snapshotTypeNotSupported ( ) throws java.lang.Exception { snapshot.setType ( SnapshotType.ACTIVE ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.isRegularSnapshot ( snapshot ) , EngineMessage.ACTION_TYPE_FAILED_VM_SNAPSHOT_TYPE_NOT_REGULAR ) ; }
Source:
public org.ovirt.engine.api.model.KatelloErratum get ( ) { return performGet ( VdcQueryType.GetErratumByIdForEngine , new org.ovirt.engine.core.common.queries.NameQueryParameters ( org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) ) ) ; }

Target:
public org.ovirt.engine.api.model.KatelloErratum get ( ) { return performGet ( QueryType.GetErratumByIdForEngine , new org.ovirt.engine.core.common.queries.NameQueryParameters ( org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) ) ) ; }
Source:
protected void endWithFailure ( ) { if ( ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getDestinationDiskImage ( ) ) != null ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskImageDynamicDAO ( ) . remove ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getDestinationDiskImage ( ) . getImageId ( ) ) ; } super . endWithFailure ( ) ; }

Target:
protected void endWithFailure ( ) { if ( ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getDestinationDiskImage ( ) ) != null ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskImageDynamicDao ( ) . remove ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getDestinationDiskImage ( ) . getImageId ( ) ) ; } super . endWithFailure ( ) ; }
Source:
public int getMaximumRam ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
boolean isBalloonEnabled ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public int getMinimumRam ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
int getMaximumRam ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void getNumberOfVmsInCluster ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetNumberOfVmsInVdsGroupByVdsGroupId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , aQuery ) ; }

Target:
public void getNumberOfVmsInCluster ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetNumberOfVmsInClusterByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , aQuery ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VdsStatic get ( java.lang.String name ) { return ( ( org.ovirt.engine.core.common.businessentities.VdsStatic ) ( org.ovirt.engine.core.dal.dbbroker.DbFacadeUtils.asSingleResult ( getCallsHandler ( ) . executeReadList ( "GetVdsStaticByVdsName" , new org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "vds_name" , name ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByVdsName ( java.lang.String name ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByVdsName" , new org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "vds_name" , name ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNotLocked ( ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : vms ) { if ( ( vm.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.ImageLocked ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_LOCKED ) ; } } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmNotLocked ( ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : vms ) { if ( ( vm.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.ImageLocked ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_IS_LOCKED ) ; } } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.network.NetworkView value ) { super . setEntity ( value ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
public void setContent ( final com.google.gwt.safehtml.shared.SafeHtml content ) { this . isHTML = true ; this . content = content ; }

Target:
public void setContent ( final com.google.gwt.safehtml.shared.SafeHtml content ) { this . isHTML = true ; this . content = ( content != null ) ? content : com.google.gwt.safehtml.shared.SafeHtmlUtils.EMPTY_SAFE_HTML ; }
Source:
public void testCDAVdsSPMPrioritySetToNever ( ) { vds.setVdsSpmPriority ( BusinessEntitiesDefinitions.HOST_MIN_SPM_PRIORITY ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail on a VDS that is set to never be elected as SPM" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessagesContains ( command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_MARKED_AS_NEVER_SPM ) ; }

Target:
public void testCDAStoragePoolNotUp ( ) { storagePool.setStatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on a Storage Pool which is not up" , command , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }
Source:
private boolean isBlankTemplate ( java.lang.Object selectedItem ) { return ( ( selectedItem != null ) && ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.VmTemplate ) ) && ( NGuid.Empty.equals ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( selectedItem ) ) . getId ( ) ) ) ; }

Target:
private boolean isBlankTemplate ( java.lang.Object selectedItem ) { return ( ( selectedItem != null ) && ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.VmTemplate ) ) && ( Guid.Empty.equals ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( selectedItem ) ) . getId ( ) ) ) ; }
Source:
private void mockSpiceRelatedConfig ( ) { mcr.mockConfigValue ( ConfigValues.SSLEnabled , false ) ; mcr.mockConfigValue ( ConfigValues.EnableUSBAsDefault , false ) ; }

Target:
public static java.util.stream.Stream < org.ovirt.engine.core.utils.MockConfigDescriptor < ? > > spiceRelatedConfig ( ) { return java.util.stream.Stream.concat ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.mockConfiguration ( ) , java.util.stream.Stream.of ( org.ovirt.engine.core.utils.MockConfigDescriptor.of ( ConfigValues.SSLEnabled , false ) , org.ovirt.engine.core.utils.MockConfigDescriptor.of ( ConfigValues.EnableUSBAsDefault , false ) ) ) ; }
Source:
public java.util.Map < java.lang.Integer , java.util.Map < org.ovirt.engine.core.compat.Version , java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > > > getDisplayTypes ( ) ;

Target:
public boolean isCpuSupported ( int osId , org.ovirt.engine.core.compat.Version version , java.lang.String cpuId ) ;
Source:
public org.ovirt.engine.api.v3.types.V3Disk get ( ) { org.ovirt.engine.api.v3.types.V3Disk disk = adaptGet ( getDelegate ( ) :: get ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.fixDiskLinks ( vmId , disk ) ; return disk ; }

Target:
public org.ovirt.engine.api.v3.types.V3Disk get ( ) { org.ovirt.engine.api.v3.types.V3Disk disk = adaptGet ( getDelegate ( ) :: get ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.fixDiskLinks ( vmId , disk ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.addDiskAttachmentDetails ( vmId , java.util.Collections.singletonList ( disk ) ) ; return disk ; }
Source:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > snapshots = dao.getAllWithQuery ( "select * from gluster_volume_snapshots_view" ) ; org.junit.Assert.assertTrue ( ( snapshots != null ) ) ; org.junit.Assert.assertTrue ( ( ( snapshots.size ( ) ) == 2 ) ) ; }

Target:
public void testGetAllWithQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > snapshots = dao.getAllWithQuery ( "select * from gluster_volume_snapshots_view" ) ; org.junit.Assert.assertNotNull ( snapshots ) ; org.junit.Assert.assertEquals ( 2 , snapshots.size ( ) ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.bll.VmPoolHandler.processVmPoolOnStopVm ( getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( getExecutionContext ( ) ) ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( getVm ( ) . getId ( ) ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( getExecutionContext ( ) ) ) ; }
Source:
protected boolean isStatelessSnapshotExistsForVm ( ) { if ( ( cachedStatelessSnapshotExistsForVm ) == null ) { cachedStatelessSnapshotExistsForVm = org.ovirt.engine.core.bll.RunVmCommand.getSnapshotDAO ( ) . exists ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.STATELESS ) ; } return cachedStatelessSnapshotExistsForVm ; }

Target:
protected boolean isStatelessSnapshotExistsForVm ( ) { if ( ( cachedStatelessSnapshotExistsForVm ) == null ) { cachedStatelessSnapshotExistsForVm = org.ovirt.engine.core.bll.RunVmCommand.getSnapshotDao ( ) . exists ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.STATELESS ) ; } return cachedStatelessSnapshotExistsForVm ; }
Source:
public java.lang.String getStyleNames ( E row , int rowIndex ) { return disabledSet.contains ( row ) ? this . resources.cellTableStyle ( ) . cellTableDisabledRow ( ) : null ; }

Target:
public java.lang.String getStyleNames ( E row , int rowIndex ) { return disabledSet.contains ( row ) ? resources.cellTableStyle ( ) . cellTableDisabledRow ( ) : resources.cellTableStyle ( ) . cellTableEnabledRow ( ) ; }
Source:
public void testRemove ( ) { dao.remove ( deletableUser.getId ( ) ) ; org.ovirt.engine.core.common.businessentities.aaa.DbUser result = dao.get ( deletableUser.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testRemove ( ) { dao.remove ( deletableUser.getId ( ) ) ; org.ovirt.engine.core.common.businessentities.aaa.DbUser result = dao.get ( deletableUser.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.bll.AsyncTaskManager.logAndFailTaskWithoutVdsmId ( task ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.AsyncTaskManager.logAndFailTaskOfCommandWithEmptyVdsmId ( task ) ; return null ; }
Source:
protected void wakeup ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; auditLogDirector.log ( logable , AuditLogType.AFFINITY_RULES_ENFORCEMENT_MANAGER_START ) ; scheduleJobs ( getRegularInterval ( ) , getInitialInterval ( ) ) ; }

Target:
protected void wakeup ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; auditLogDirector.log ( logable , AuditLogType.AFFINITY_RULES_ENFORCEMENT_MANAGER_START ) ; scheduleJobs ( getRegularInterval ( ) , getInitialInterval ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetDefaultConfigurationVersionQuery.getQueryReturnValue ( ) . setReturnValue ( Config.DefaultConfigurationVersion ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetDefaultConfigurationVersionQuery.getQueryReturnValue ( ) . setReturnValue ( ConfigCommon.defaultConfigurationVersion ) ; }
Source:
public java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getMigrationProgressPercent ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ( vm.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.MigratingFrom ) ) { return null ; } return super . getValue ( vm ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAutoAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return RunAction ( actionType , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAutoAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runAction ( actionType , parameters ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.isBoot ( ) ? resources.bootableDiskIcon ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.isBoot ( ) ? org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmDiskAttachPopupWidget.resources.bootableDiskIcon ( ) : null ; }
Source:
public void testGetMessagesBundle ( ) { java.util.List < java.util.ResourceBundle > bundle = testTheme.getMessagesBundle ( ) ; org.junit.Assert.assertNotNull ( "There should be a bundle" , bundle ) ; org.junit.Assert.assertEquals ( "Login header" , bundle.get ( 0 ) . getString ( "obrand.common.login_header_label" ) ) ; }

Target:
public void testGetMessagesBundle ( ) { java.util.List < java.util.ResourceBundle > bundle = testTheme.getMessagesBundle ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( bundle , "There should be a bundle" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Login header" , bundle.get ( 0 ) . getString ( "obrand.common.login_header_label" ) ) ; }
Source:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . getVmType ( ) . setIsChangable ( true ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . getVmType ( ) . setIsChangable ( true ) ; templateValidate ( ) ; }
Source:
public abstract org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > getBatchMapper ( ) ;

Target:
public org.springframework.jdbc.core.namedparam.MapSqlParameterSource map ( T entity ) { return createFullParametersMapper ( entity ) ; }
Source:
private void writeEnumValue ( org.ovirt.api.metamodel.concepts.EnumValue value ) { writeStartElement ( "value" ) ; writeCommon ( value ) ; writeEndElement ( ) ; }

Target:
private void writeEnumValue ( org.ovirt.api.metamodel.concepts.EnumValue value ) { writer.writeStartElement ( "value" ) ; writeCommon ( value ) ; writer.writeEndElement ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmTemplate getByName ( java.lang.String name , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;

Target:
public org.ovirt.engine.core.common.businessentities.VmTemplate getInstanceTypeByName ( java.lang.String name , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;
Source:
public void autoCompletedInputMatchesItsNumericKeyValue ( java.util.Map.Entry < java.lang.Integer , java.lang.String > osCompletionEntry ) { org.junit.Assert.assertThat ( osCompletionEntry.getKey ( ) . toString ( ) , org.hamcrest.core.Is.is ( completer.convertFieldEnumValueToActualValue ( osCompletionEntry.getValue ( ) ) ) ) ; }

Target:
public void autoCompletedInputMatchesItsNumericKeyValue ( java.util.Map.Entry < java.lang.Integer , java.lang.String > osCompletionEntry ) { org.hamcrest.MatcherAssert.assertThat ( osCompletionEntry.getKey ( ) . toString ( ) , org.hamcrest.core.Is.is ( completer.convertFieldEnumValueToActualValue ( osCompletionEntry.getValue ( ) ) ) ) ; }
Source:
private static org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy getProviderFromStorageDomainStatic ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomainStatic , org.ovirt.engine.core.bll.provider.ProviderProxyFactory providerProxyFactory ) { org.ovirt.engine.core.common.businessentities.Provider provider = getDbFacade ( ) . getProviderDao ( ) . get ( new org.ovirt.engine.core.compat.Guid ( storageDomainStatic.getStorage ( ) ) ) ; return providerProxyFactory.create ( provider ) ; }

Target:
private static org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy getProviderFromStorageDomainStatic ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomainStatic , org.ovirt.engine.core.bll.provider.ProviderProxyFactory providerProxyFactory ) { org.ovirt.engine.core.common.businessentities.Provider provider = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.provider.ProviderDao.class ) . get ( new org.ovirt.engine.core.compat.Guid ( storageDomainStatic.getStorage ( ) ) ) ; return providerProxyFactory.create ( provider ) ; }
Source:
public javax.ws.rs.core.Response sparsify ( org.ovirt.engine.api.model.Action action ) { return null ; }

Target:
public javax.ws.rs.core.Response sparsify ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.api.model.Disk disk = get ( ) ; org.ovirt.engine.core.compat.Guid imageId = getDiskImageId ( disk.getImageId ( ) ) ; org.ovirt.engine.core.common.action.StorageJobCommandParameters params = new org.ovirt.engine.core.common.action.StorageJobCommandParameters ( imageId ) ; return doAction ( VdcActionType.SparsifyImage , params , action ) ; }