auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected org.ovirt.engine.core.common.businessentities.BaseDisk generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.BaseDisk ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , true , org.ovirt.engine.core.common.businessentities.PropagateErrors.Off , "DiskName" , "" , false , false ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.BaseDisk generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.BaseDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , true , org.ovirt.engine.core.common.businessentities.PropagateErrors.Off , "DiskName" , "" , false , false , org.ovirt.engine.core.common.businessentities.ScsiGenericIO.FILTERED ) ; }
Source:
public boolean getfail_back ( ) { return this . mVmStatic.getfail_back ( ) ; }

Target:
public boolean isFailBack ( ) { return this . vmStatic.getfail_back ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel < T > topListModel , org.ovirt.engine.ui.uicommonweb.models.ListModel < T > bottomListModel ) { edit ( topListModel , true ) ; edit ( bottomListModel , false ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel < T > excludedListModel , org.ovirt.engine.ui.uicommonweb.models.ListModel < T > includedListModel ) { edit ( excludedListModel , true ) ; edit ( includedListModel , false ) ; }
Source:
public void Frontend_QueryComplete ( ) { ( queryCounter ) -- ; if ( ( queryCounter ) == 0 ) { StopProgress ( ) ; } }

Target:
public void frontend_QueryComplete ( ) { ( queryCounter ) -- ; if ( ( queryCounter ) == 0 ) { stopProgress ( ) ; } }
Source:
public void setStorageType ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { storageType = value ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel getIsPlugged ( ) { return isPlugged ; }
Source:
public void setEnabled ( E value , boolean enabled ) { if ( enabled ) { disabledSet.remove ( value ) ; } else { disabledSet.add ( value ) ; } }

Target:
public void setEnabled ( E value , boolean enabled ) { if ( enabled ) { disabledSet.remove ( value ) ; } else { disabledSet.add ( value ) ; } org.ovirt.engine.ui.webadmin.widget.editor.EnumRadioEditor.EnumRadioCellTable.redraw ( ) ; }
Source:
public void setBricks ( org.ovirt.engine.ui.uicommonweb.models.ListModel bricks ) { this . bricks = bricks ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Bricks" ) ) ; }

Target:
public void setBricks ( org.ovirt.engine.ui.uicommonweb.models.ListModel bricks ) { this . bricks = bricks ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Bricks" ) ) ; }
Source:
public void saveAsyncTaskToDb ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . save ( asyncTask ) ; persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return coCoAsyncTaskHelper.createTask ( taskId , command , asyncTaskCreationInfo , parentCommand , description , entitiesMap ) ; }
Source:
public void execute ( ) { executeCommand ( operation , command ) ; }

Target:
public void execute ( ) { executeCommand ( entry.getKey ( ) , command ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.getNetworkDAO ( ) . remove ( org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetworkDAO ( ) . remove ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.setSucceeded ( true ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { if ( result.getReturnValue ( ) . getSucceeded ( ) ) { resolveConflictsModel.getResolveContentConflict ( ) . setEntity ( java.lang.Boolean.FALSE ) ; resolveConflictsModel.getResolveContentConflict ( ) . setIsChangable ( java.lang.Boolean.FALSE ) ; } }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { if ( result.getReturnValue ( ) . getSucceeded ( ) ) { resolveConflictsModel.getResolveContentConflict ( ) . setEntity ( java.lang.Boolean.FALSE ) ; resolveConflictsModel.getResolveContentConflict ( ) . setIsChangeable ( java.lang.Boolean.FALSE ) ; } }
Source:
public boolean hasPeers ( org.ovirt.engine.core.utils.ssh.SSHClient client ) { java.lang.String serversXml = executePeerStatusCommand ( client ) ; return ( extractServers ( serversXml ) . size ( ) ) > 0 ; }

Target:
public java.util.Set < java.lang.String > getPeers ( org.ovirt.engine.core.utils.ssh.SSHClient client ) { java.lang.String serversXml = executePeerStatusCommand ( client ) ; return extractServers ( serversXml ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; InitSpmPriorities1 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; initSpmPriorities1 ( ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , false ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllCanDoPass ) { return runMultipleActionsImpl ( actionType , parameters , false , isRunOnlyIfAllCanDoPass ) ; }
Source:
protected void initPriority ( int priority ) { priorityUtil.initPriority ( priority ) ; }

Target:
public void beforeUpdates ( ) { if ( ( getInstanceTypeManager ( ) ) != null ) { getInstanceTypeManager ( ) . deactivate ( ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.VolumeType getRawValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return org.ovirt.engine.core.common.businessentities.VolumeType.forValue ( object.getvolume_type ( ) . getValue ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VolumeType getRawValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return org.ovirt.engine.core.common.businessentities.VolumeType.forValue ( object.getVolumeType ( ) . getValue ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneLUNReturnForXmlRpc getDeviceInfo ( java.lang.String devGUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookAdd ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum , java.lang.Boolean enabled ) ;
Source:
public static boolean isOsTypeSupported ( int osId , org.ovirt.engine.core.common.businessentities.ArchitectureType architectureType ) { return architectureType == ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getArchitectureFromOS ( osId ) ) ; }

Target:
public static boolean isOsTypeSupported ( int osId , org.ovirt.engine.core.common.businessentities.ArchitectureType architectureType ) { return architectureType == ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getArchitectureFromOS ( osId ) ) ; }
Source:
public void testDomainWithNotEnoughSpaceForRequest ( ) { validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.StorageDomainValidatorTest.mockStorageDomain ( 12 , 748 , StorageType.NFS ) ) ; org.junit.Assert.assertEquals ( "Wrong failure for not enough space for request" , VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_TARGET_STORAGE_DOMAIN , validator.isDomainHasSpaceForRequest ( 10 ) . getMessage ( ) ) ; }

Target:
public void testDomainWithNotEnoughSpaceForRequest ( ) { validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.StorageDomainValidatorTest.mockStorageDomain ( 12 , 748 , StorageType.NFS ) ) ; org.junit.Assert.assertEquals ( "Wrong failure for not enough space for request" , VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN , validator.isDomainHasSpaceForRequest ( 10 ) . getMessage ( ) ) ; }
Source:
private void newInstanceType ( ) { createWindow ( new org.ovirt.engine.ui.uicommonweb.models.vms.NewInstanceTypeModelBehavior ( ) , "new_instance_type" , "OnNewInstanceType" , true , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newInstanceTypeTitle ( ) ) ; }

Target:
private void newInstanceType ( ) { createWindow ( new org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.NewInstanceTypeModelBehavior ( ) , "new_instance_type" , "OnNewInstanceType" , true , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newInstanceTypeTitle ( ) , HelpTag.new_instance_type ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.customPropertiesList = ( ( java.util.Map < org.ovirt.engine.core.compat.Version , java.util.Map < java.lang.String , java.lang.String > > ) ( returnValue ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { suspendSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.compat.Guid > getNetworksIds ( ) { return org.ovirt.engine.core.bll.GetNetworksByIscsiBondIdQuery.getDbFacade ( ) . getIscsiBondDao ( ) . getNetworkIdsByIscsiBondId ( org.ovirt.engine.core.bll.GetNetworksByIscsiBondIdQuery.getParameters ( ) . getId ( ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.compat.Guid > getNetworksIds ( ) { return iscsiBondDao.getNetworkIdsByIscsiBondId ( org.ovirt.engine.core.bll.GetNetworksByIscsiBondIdQuery.getParameters ( ) . getId ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( "IsAvailable" . equals ( ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ) ) { neutronAgentPanel.setVisible ( model.getIsAvailable ( ) ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { neutronAgentPanel.setVisible ( ( ( java.lang.Boolean ) ( model.isPluginConfigurationAvailable ( ) . getEntity ( ) ) ) ) ; }
Source:
public org.ovirt.engine.api.resource.VmGraphicsConsoleResource getVmGraphicsConsoleResource ( @ javax.ws.rs.PathParam ( value = "iden" ) java.lang.String id ) ;

Target:
public org.ovirt.engine.api.resource.GraphicsConsoleResource getGraphicsConsoleResource ( @ javax.ws.rs.PathParam ( value = "iden" ) java.lang.String id ) ;
Source:
public org.ovirt.engine.core.bll.ValidationResult nonVmNetworkNotUsedByTemplates ( org.ovirt.engine.core.common.businessentities.network.Network updatedNetwork ) { if ( networkChangedToNonVmNetwork ( updatedNetwork ) ) { return networkNotUsed ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.UpdateNetworkValidator.getTemplates ( ) , VdcBllMessages.VAR__ENTITIES__VMS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult nonVmNetworkNotUsedByTemplates ( org.ovirt.engine.core.common.businessentities.network.Network updatedNetwork ) { if ( networkChangedToNonVmNetwork ( updatedNetwork ) ) { return org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.UpdateNetworkValidator.networkNotUsedByTemplates ( ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void setup ( ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( "test" , org.ovirt.engine.core.compat.Guid.NewGuid ( ) , "test" , StorageType.UNKNOWN.getValue ( ) , StoragePoolStatus.Up.getValue ( ) ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StoragePoolValidator ( storagePool ) ) ; }

Target:
public void setup ( ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( "test" , "" , org.ovirt.engine.core.compat.Guid.NewGuid ( ) , "test" , StorageType.UNKNOWN.getValue ( ) , StoragePoolStatus.Up.getValue ( ) ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StoragePoolValidator ( storagePool ) ) ; }
Source:
public java.lang.String getMemoryVolume ( ) { return memoryVolume ; }

Target:
public boolean containsMemory ( ) { return ( ( memoryDiskId ) != null ) || ( ( metadataDiskId ) != null ) ; }
Source:
public javax.ws.rs.core.Response iscsiDiscover ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "iscsi.address" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > result = getBackendCollection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class , VdcQueryType.DiscoverSendTargets , createDiscoveryQueryParams ( action ) ) ; return actionSuccess ( mapTargets ( action , result ) ) ; }

Target:
public javax.ws.rs.core.Response iscsiDiscover ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "iscsi.address" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > result = getBackendCollection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections.class , QueryType.DiscoverSendTargets , createDiscoveryQueryParams ( action ) ) ; return actionSuccess ( mapTargets ( action , result ) ) ; }
Source:
private void addFeatureStorageServerConnections ( org.ovirt.engine.api.model.Features features ) { org.ovirt.engine.api.model.Feature feature = new org.ovirt.engine.api.model.Feature ( ) ; feature.setName ( "Storage server connections" ) ; feature.setDescription ( "Ability to manage storage server connections" ) ; features.getFeature ( ) . add ( feature ) ; }

Target:
private void addFeatureAttachDiskSnapshot ( org.ovirt.engine.api.model.Features features ) { org.ovirt.engine.api.model.Feature feature = new org.ovirt.engine.api.model.Feature ( ) ; feature.setName ( "Attaching Disk snapshot to a vm" ) ; feature.setDescription ( "Support for attaching a disk snapshot to a vm." ) ; features.getFeature ( ) . add ( feature ) ; }
Source:
public static void addVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert ) { alert.setVdsId ( vdsId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.alert ( alert , type , auditLogDirector ) ; }

Target:
public static void addVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable alert = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; alert.setVdsId ( vdsId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.alert ( alert , type , auditLogDirector ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomainsByConnId ( java.lang.String connectionId ) { return org.ovirt.engine.core.bll.storage.domain.AddStorageDomainCommon.getStorageDomainDao ( ) . getAllByConnectionId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( connectionId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomainsByConnId ( java.lang.String connectionId ) { return storageDomainDao.getAllByConnectionId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( connectionId ) ) ; }
Source:
public void validateInvalidVds ( ) { org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateVds ( ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }

Target:
public void validateInvalidVds ( ) { org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateVds ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( command.validate ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Quota mockStorageQuotaGlobalInGrace ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.STORAGE_QUOTA_GLOBAL_OVER_THRESHOLD ) ; quota.setGlobalQuotaStorage ( getQuotaStorage ( 100 , 104 ) ) ; return quota ; }

Target:
private org.ovirt.engine.core.common.businessentities.Quota mockStorageQuotaGlobalInGrace ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.STORAGE_QUOTA_GLOBAL_IN_GRACE ) ; quota.setGlobalQuotaStorage ( getQuotaStorage ( 100 , 104 ) ) ; return quota ; }
Source:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( org.ovirt.engine.core.compat.Guid clusterId ) { return org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getClusterDao ( ) . get ( clusterId ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( org.ovirt.engine.core.compat.Guid clusterId ) { return clusterDao.get ( clusterId ) ; }
Source:
protected org.ovirt.engine.api.model.Label addLinks ( org.ovirt.engine.api.model.Label model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParent , java.lang.String ... excludeSubCollectionMembers ) { return super . addLinks ( model , org.ovirt.engine.api.model.HostNIC.class ) ; }

Target:
protected org.ovirt.engine.api.model.Label addLinks ( org.ovirt.engine.api.model.Label model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParent , java.lang.String ... excludeSubCollectionMembers ) { return super . addLinks ( model , org.ovirt.engine.api.model.HostNic.class ) ; }
Source:
public void testNullStringProducesNullVersion ( ) { org.ovirt.engine.api.model.Version version = org.ovirt.engine.api.restapi.types.VersionMapper.fromVersionString ( null ) ; org.junit.Assert.assertNull ( version ) ; }

Target:
public void testNullStringProducesNullVersion ( ) { org.ovirt.engine.api.model.Version version = org.ovirt.engine.api.restapi.types.VersionMapper.fromVersionString ( null ) ; org.junit.jupiter.api.Assertions.assertNull ( version ) ; }
Source:
protected void SyncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.StorageDomain ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . SyncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.StorageDomain ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void validateVmMemoryCantStartOnVdsHostTooSmall ( ) { vds.setMemFree ( 8835L ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantStartOnVdsHostTooSmall ( ) { vds.setMemFree ( 8835L ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
protected void readMonitorItem ( org.ovirt.engine.core.compat.backendcompat.XmlNode node ) { super . readMonitorItem ( node ) ; readVmDevice ( node , _vmTemplate , org.ovirt.engine.core.compat.Guid.newGuid ( ) , java.lang.Boolean.TRUE ) ; }

Target:
protected void readMonitorItem ( org.ovirt.engine.core.compat.backendcompat.XmlNode node ) { super . readMonitorItem ( node ) ; readManagedVmDevice ( node , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public void getVmNextRunConfiguration ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.VM > aQuery , org.ovirt.engine.core.compat.Guid vmId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmNextRunConfiguration , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateBrokerVDSCommand.getBroker ( ) . migrate ( migrationInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateBrokerVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateBrokerVDSCommand.getBroker ( ) . migrate ( migrationInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateBrokerVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
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.storage.SubTabStorageDataCenterPresenter.constants.storageDataCenterSubTabLabel ( ) , 1 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return org.ovirt.engine.ui.webadmin.section.main.presenter.tab.DetailTabDataIndex.STORAGE_DATA_CENTER ; }
Source:
public void setVmDownStyle ( ) { mainContainer.setStyleName ( style.itemNotRunningStyle ( ) ) ; }

Target:
public void setVmDownStyle ( ) { mainContainer.setStyleName ( style.itemNotRunningOrConsoleTakenStyle ( ) ) ; }
Source:
protected void beforeUiCommonInitEvent ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.init ( eventBus ) ; }

Target:
protected void beforeLogin ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.init ( eventBus ) ; org.ovirt.engine.ui.common.uicommon.model.ModelInitializedEvent.fire ( eventBus ) ; }
Source:
protected void endSuccessfully ( ) { org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.setSucceeded ( true ) ; }

Target:
protected void endSuccessfully ( ) { unlockImages ( ) ; org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.setSucceeded ( true ) ; }
Source:
private static void assertAuditLogWritten ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_AUDIT_LOG_MESSAGE , org.ovirt.engine.core.bll.quota.QuotaManagerTest.auditLogWritten ) ; org.ovirt.engine.core.bll.quota.QuotaManagerTest.auditLogWritten = false ; }

Target:
private void assertAuditLogWritten ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_AUDIT_LOG_MESSAGE , auditLogWritten ) ; auditLogWritten = false ; }
Source:
public void testGetEntityPermissions ( ) { org.junit.Assert.assertNotNull ( dao.getEntityPermissions ( org.ovirt.engine.core.dao.PermissionDaoTest.DIRECTORY_ELEMENT_ID_WITH_BASIC_PERMISSIONS , ActionGroup.RUN_VM , org.ovirt.engine.core.dao.PermissionDaoTest.VM_TEMPLATE_ENTITY_ID , VdcObjectType.VM ) ) ; org.junit.Assert.assertNull ( dao.getEntityPermissions ( org.ovirt.engine.core.dao.PermissionDaoTest.DIRECTORY_ELEMENT_ID_WITH_BASIC_PERMISSIONS , ActionGroup.CREATE_TEMPLATE , org.ovirt.engine.core.dao.PermissionDaoTest.VM_TEMPLATE_ENTITY_ID , VdcObjectType.VM ) ) ; }

Target:
public void testGetEntityPermissions ( ) { org.junit.jupiter.api.Assertions.assertNotNull ( dao.getEntityPermissions ( org.ovirt.engine.core.dao.PermissionDaoTest.DIRECTORY_ELEMENT_ID_WITH_BASIC_PERMISSIONS , ActionGroup.RUN_VM , org.ovirt.engine.core.dao.PermissionDaoTest.VM_TEMPLATE_ENTITY_ID , VdcObjectType.VM ) ) ; org.junit.jupiter.api.Assertions.assertNull ( dao.getEntityPermissions ( org.ovirt.engine.core.dao.PermissionDaoTest.DIRECTORY_ELEMENT_ID_WITH_BASIC_PERMISSIONS , ActionGroup.CREATE_TEMPLATE , org.ovirt.engine.core.dao.PermissionDaoTest.VM_TEMPLATE_ENTITY_ID , VdcObjectType.VM ) ) ; }
Source:
public boolean Validate ( ) { getDescription ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.SpecialAsciiI18NOrNoneValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( org.ovirt.engine.core.common.businessentities.BusinessEntitiesDefinitions.GENERAL_MAX_SIZE ) } ) ; return getDescription ( ) . getIsValid ( ) ; }

Target:
public boolean Validate ( ) { getDescription ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.SpecialAsciiI18NOrNoneValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( org.ovirt.engine.core.common.businessentities.BusinessEntitiesDefinitions.GENERAL_MAX_SIZE ) } ) ; return getDescription ( ) . getIsValid ( ) ; }
Source:
public void testVmDiskWithPassDiscardExistsSucceeds ( ) { junit.framework.Assert.assertTrue ( discardHelper.vmDiskWithPassDiscardExists ( java.util.Arrays.asList ( createVmDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , false ) , createVmDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , true ) ) ) ) ; }

Target:
public void testVmDiskWithPassDiscardExistsSucceeds ( ) { org.junit.Assert.assertTrue ( discardHelper.vmDiskWithPassDiscardExists ( java.util.Arrays.asList ( createVmDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , false ) , createVmDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , true ) ) ) ) ; }
Source:
private void setNonOperational ( org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , org.ovirt.engine.core.common.businessentities.VDS vds ) { vds.setNonOperationalReason ( reason ) ; vds.setStatus ( VDSStatus.NonOperational ) ; dbFacade.getVdsDynamicDao ( ) . update ( vds.getDynamicData ( ) ) ; }

Target:
private void setNonOperational ( org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , org.ovirt.engine.core.common.businessentities.VDS vds ) { vds.setNonOperationalReason ( reason ) ; vds.setStatus ( VDSStatus.NonOperational ) ; vdsDynamicDao.update ( vds.getDynamicData ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.CreationResource getCreationSubresource ( java.lang.String ids ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendCreationResource ( ids ) ) ; }

Target:
public org.ovirt.engine.api.resource.CreationResource getCreationResource ( java.lang.String ids ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendCreationResource ( ids ) ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc copyData ( java.util.Map src , java.util.Map dst , boolean collapse ) { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.copyData ( src , dst , collapse ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > createVolumeInfo ) { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.createVolumeContainer ( jobId , createVolumeInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; }
Source:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmNumaNode > numaNodes = org.ovirt.engine.core.bll.numa.vm.GetVmNumaNodesByVmIdQuery.getDbFacade ( ) . getVmNumaNodeDAO ( ) . getAllVmNumaNodeByVmId ( org.ovirt.engine.core.bll.numa.vm.GetVmNumaNodesByVmIdQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.numa.vm.GetVmNumaNodesByVmIdQuery.getQueryReturnValue ( ) . setReturnValue ( numaNodes ) ; }

Target:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmNumaNode > numaNodes = org.ovirt.engine.core.bll.numa.vm.GetVmNumaNodesByVmIdQuery.getDbFacade ( ) . getVmNumaNodeDao ( ) . getAllVmNumaNodeByVmId ( org.ovirt.engine.core.bll.numa.vm.GetVmNumaNodesByVmIdQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.numa.vm.GetVmNumaNodesByVmIdQuery.getQueryReturnValue ( ) . setReturnValue ( numaNodes ) ; }
Source:
protected boolean checkCanBeMoveInVm ( ) { return validate ( new org.ovirt.engine.core.bll.validator.DiskValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) ) . isDiskPluggedToVmsThatAreNotDown ( false , getVmsWithVmDeviceInfoForDiskId ( ) ) ) ; }

Target:
protected boolean isDiskUsedAsOvfStore ( ) { return validate ( new org.ovirt.engine.core.bll.validator.DiskValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) ) . isDiskUsedAsOvfStore ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkTemplateSubTabLabel ( ) , 6 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkTemplatePresenter.constants.networkTemplateSubTabLabel ( ) , 6 , modelProvider ) ; }
Source:
public void testGetAllNetworkQosForStoragePool ( ) { org.junit.Assert.assertTrue ( ( ( dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_NFS_2 ) . size ( ) ) == 2 ) ) ; }

Target:
public void testGetAllNetworkQosForStoragePool ( ) { org.junit.Assert.assertTrue ( ( ( dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) . size ( ) ) == 2 ) ) ; }
Source:
private static void assertGetAllForStoragePoolInvalidResult ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
private static void assertGetAllForStoragePoolInvalidResult ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . runVdsCommand ( commandType , parameters ) ; }

Target:
private org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) { return backend.get ( ) . getResourceManager ( ) . runVdsCommand ( commandType , parameters ) ; }
Source:
private void setCustomEditor ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > customEditor ) { this . customEditor = customEditor ; }

Target:
private void setCustomBondEditor ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > customBondEditor ) { this . customBondEditor = customBondEditor ; }
Source:
protected int getAllEntitiesCount ( ) { return org.ovirt.engine.core.dao.BookmarkDaoTest.BOOKMARK_COUNT ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.BookmarkDaoTest.BOOKMARK_COUNT , result.size ( ) ) ; }
Source:
public org.ovirt.engine.api.model.KatelloErratum get ( ) { return performGet ( VdcQueryType.GetErratumByIdForHost , new org.ovirt.engine.core.common.queries.HostErratumQueryParameters ( asGuid ( hostId ) , org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) ) , org.ovirt.engine.api.model.Host.class ) ; }

Target:
public org.ovirt.engine.api.model.KatelloErratum get ( ) { return performGet ( QueryType.GetErratumByIdForHost , new org.ovirt.engine.core.common.queries.HostErratumQueryParameters ( asGuid ( hostId ) , org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) ) , org.ovirt.engine.api.model.Host.class ) ; }
Source:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.StorageConnection > collection ) { org.junit.Assert.assertNotNull ( collection ) ; org.junit.Assert.assertEquals ( 1 , collection.size ( ) ) ; }

Target:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.StorageConnection > collection ) { org.junit.jupiter.api.Assertions.assertNotNull ( collection ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , collection.size ( ) ) ; }
Source:
protected abstract void doNicManipulation ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > createVnicParameters , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > updateVnicParameters , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > removeVnicParameters , final boolean isAddingNewVm , final org.ovirt.engine.core.compat.Guid id ) ;

Target:
protected abstract void doNicManipulation ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > createVnicParameters , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > updateVnicParameters , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > removeVnicParameters , final boolean isAddingNewVm , final org.ovirt.engine.core.compat.Guid id , final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) ;
Source:
private org.ovirt.engine.core.common.action.ManageNetworkClustersParameters cloneParams ( ) { return new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( getParameters ( ) ) ; }

Target:
private void propagateLabeledNetworksChanges ( ) { runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , getParameters ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { jobDao.save ( job ) ; return null ; }

Target:
public void saveJob ( final org.ovirt.engine.core.common.job.Job job ) { jobDao.save ( job ) ; }
Source:
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 , false , null ) ; }

Target:
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 , null , networkName , true , null , false , null ) ; }
Source:
public void testGetManagedInterfaceForVdsFilteredForUnpriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result = dao.getManagedInterfaceForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.VDS_ID , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetManagedInterfaceForVdsFilteredForUnpriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result = dao.getManagedInterfaceForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.VDS_ID , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void testGetNonexistingVds ( ) { java.lang.String result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , FixturesTool.PROVIDER_BINDING_HOST_ID_PLUGIN_TYPE ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetNonexistingVds ( ) { java.lang.String result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , FixturesTool.PROVIDER_BINDING_HOST_ID_PLUGIN_TYPE ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void setActionType ( org.ovirt.engine.core.common.action.VdcActionType value ) { this . rootCmdEntity.setCommandType ( value ) ; }

Target:
public void setActionType ( org.ovirt.engine.core.common.action.ActionType value ) { this . rootCmdEntity.setCommandType ( value ) ; }
Source:
public void setVmPid ( java.lang.Integer value ) { this . vmDynamic.setvm_pid ( value ) ; }

Target:
public void setVmIp ( java.lang.String value ) { this . vmDynamic.setVmIp ( value ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePool getStoragePoolForVds ( ) { if ( ( storagePoolForVds ) == null ) { storagePoolForVds = org.ovirt.engine.core.bll.storage.pool.ForceSelectSPMCommand.getStoragePoolDao ( ) . getForVds ( org.ovirt.engine.core.bll.storage.pool.ForceSelectSPMCommand.getVds ( ) . getId ( ) ) ; } return storagePoolForVds ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool getStoragePoolForVds ( ) { if ( ( storagePoolForVds ) == null ) { storagePoolForVds = storagePoolDao.getForVds ( org.ovirt.engine.core.bll.storage.pool.ForceSelectSPMCommand.getVds ( ) . getId ( ) ) ; } return storagePoolForVds ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain createSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setstorage_domain_type ( StorageDomainType.ImportExport ) ; sd.setstatus ( StorageDomainStatus.Active ) ; return sd ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain createSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; sd.setStatus ( StorageDomainStatus.Active ) ; return sd ; }
Source:
public void validateRanges ( ) { org.junit.Assert.assertEquals ( expectedResult , validator.validate ( null , ranges ) . isOk ( ) ) ; }

Target:
public void validateRanges ( ) { org.junit.Assert.assertEquals ( ( ( ( ranges ) + " should be " ) + ( expectedResult ? "valid" : "invalid" ) ) , expectedResult , validator.validate ( null , ranges ) . isOk ( ) ) ; }
Source:
void handleVdsMaintenanceTimeout ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;

Target:
void updateSlaPolicies ( java.util.List < org.ovirt.engine.core.compat.Guid > vmIds , org.ovirt.engine.core.compat.Guid vdsId ) ;
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorage ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getParameters ( ) . getStoragePoolId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorage ( ) { return org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getForStoragePool ( org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getParameters ( ) . getStoragePoolId ( ) ) ; }
Source:
public void formatStringTest4 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "2" , "3" ) ; org.junit.Assert.assertEquals ( "Testing 123: 1.2.1" , result ) ; }

Target:
public void formatStringTest4 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1" , "2" , "3" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Testing 123: 1.2.1" , result ) ; }
Source:
public void setboot_sequence ( org.ovirt.engine.core.common.businessentities.BootSequence value ) { this . mVmDynamic.setboot_sequence ( value ) ; }

Target:
public void setKvmEnable ( java.lang.Boolean value ) { this . vmDynamic.setkvm_enable ( value ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.hosts.HostGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.hostGeneralSoftwareSubTabLabel ( ) , 0 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.hosts.HostGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostGeneralSoftwarePresenter.constants.hostGeneralSoftwareSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.ExternalDiscoveredHost > getDiscoveredHosts ( ) { org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.DISCOVERED_HOSTS_ENTRY_POINT ) ; return runDiscoveredHostListMethod ( method ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.ExternalOperatingSystem > getOperationSystems ( ) { return runOperationSystemMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.OPERATION_SYSTEM_QUERY ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessageVariable ( "volumeName" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getGlusterVolumeName ( ) ) ; addCanDoActionMessageVariable ( "vdsGroup" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getVdsGroupName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessageVariable ( "volumeName" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getGlusterVolumeName ( ) ) ; addValidationMessageVariable ( "vdsGroup" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getVdsGroupName ( ) ) ; }
Source:
public void testVdo ( ) { org.junit.Assert.assertTrue ( volumeInfo.getAvailableThinSizeForDevice ( "/dev/mapper/vdophysical" ) . isPresent ( ) ) ; org.junit.Assert.assertThat ( volumeInfo.getAvailableThinSizeForDevice ( "/dev/mapper/vdophysical" ) . get ( ) , org.hamcrest.core.Is.is ( 6483109092L ) ) ; }

Target:
public void testVdo ( ) { org.junit.jupiter.api.Assertions.assertTrue ( volumeInfo.getAvailableThinSizeForDevice ( "/dev/mapper/vdophysical" ) . isPresent ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( volumeInfo.getAvailableThinSizeForDevice ( "/dev/mapper/vdophysical" ) . get ( ) , org.hamcrest.core.Is.is ( 6483109092L ) ) ; }
Source:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource getIdParamterSource ( org.ovirt.engine.core.compat.Guid id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , id ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vm_guid" , id ) ; }
Source:
public static boolean IsUserGroupAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , org.ovirt.engine.core.bll.Guid groupId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForUsersWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }

Target:
public static boolean IsVmAttachedToTag ( org.ovirt.engine.core.compat.Guid tagId , org.ovirt.engine.core.compat.Guid vmId ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getAllVmTagsWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }