auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public final java.lang.Object getData ( java.lang.String key ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId == null ) { return null ; } return getData ( sessionId , key , false ) ; }

Target:
public void setPassword ( java.lang.String sessionId , java.lang.String password ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , password ) ; }
Source:
public boolean getfail_back ( ) { return this . mVmStatic.getfail_back ( ) ; }

Target:
public void setVdsGroupDescription ( java.lang.String value ) { this . vdsGroupDescription = value ; }
Source:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { initTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , false ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void setsession ( org.ovirt.engine.core.common.businessentities.SessionState value ) { this . mVmDynamic.setsession ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.SessionState getSession ( ) { return this . vmDynamic.getsession ( ) ; }
Source:
public void saveInterfaceForVds ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { persistQosChanges ( nic ) ; org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createInterfaceParametersMapper ( nic ) ; getCallsHandler ( ) . executeModification ( "Insertvds_interface" , parameterSource ) ; }

Target:
public java.util.Optional < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getActiveMigrationNetworkInterfaceForHost ( org.ovirt.engine.core.compat.Guid hostId ) { return java.util.Optional.ofNullable ( getCallsHandler ( ) . executeRead ( "getActiveMigrationNetworkInterfaceForHost" , vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "host_id" , hostId ) ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { super . ExecuteVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getVds ( ) , false ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { super . ExecuteVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getVds ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getParameters ( ) . isManagementNetworkSkipped ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.ProceedProxyReturnValue ( ) ; }
Source:
protected boolean canAddVm ( ) { boolean exists = org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( getVm ( ) . getName ( ) ) ; if ( exists ) { addCanDoActionMessage ( VdcBllMessages.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) ; } return ! exists ; }

Target:
protected boolean canAddVm ( ) { if ( org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( getVm ( ) . getName ( ) ) ) { return failCanDoAction ( VdcBllMessages.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) ; } return true ; }
Source:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; }

Target:
public void defaultHost_SelectedItemChanged ( ) { updateCdImage ( ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopGlusterVolumeProfileCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( null ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateSucceedsOnStartedVolume ( ) { cmd.setGlusterVolumeId ( org.ovirt.engine.core.bll.gluster.StopGlusterVolumeProfileCommandTest.STARTED_VOLUME_ID ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
public void addImport ( java.lang.String newPackageName , java.lang.String newClassName ) { if ( ! ( newPackageName.equals ( className.getPackageName ( ) ) ) ) { java.lang.String newImport = ( newPackageName + "." ) + newClassName ; imports.add ( newImport ) ; } }

Target:
public void addImport ( java.lang.String newPackageName , java.lang.String newClassName ) { if ( ! ( java.util.Objects.equals ( newPackageName , className.getPackageName ( ) ) ) ) { java.lang.String newImport = ( newPackageName + "." ) + newClassName ; imports.add ( newImport ) ; } }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : "" ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : "" ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY , null ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getAllForCluster ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid userId , boolean isFiltered ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getAllForCluster ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid userId , boolean isFiltered , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup ) ;
Source:
public void setCustomValues ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase underTest = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final java.lang.String key = "foo" ; doSetCustomValuesTest ( underTest , key ) ; }

Target:
public void customValue ( ) { final java.lang.String key = "foo" ; final java.lang.String value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ; b.addCustomValue ( key , value ) ; final java.lang.String v = b.getCustomValue ( key ) ; org.junit.Assert.assertEquals ( value , v ) ; }
Source:
public boolean getIsAvailable ( ) { return getModel ( ) . isQuotaAvailable ( ) ; }

Target:
public boolean showDefaultValue ( ) { return ( getModel ( ) . getGuestFreeCachedBufferedMemInfo ( ) ) == null ; }
Source:
protected void updateVmDisks ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) , false , false , true ) ; mImages.addAll ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getVmDisksFromDB ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) , false , false , true ) ; return org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getStorageConnectionsList ( java.lang.String spUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > allocateVolume ( java.lang.String spUUID , java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String volUUID , java.lang.String size ) ;
Source:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeEventListModel > getHostEventListProvider ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeEventListModel > ( ginjector , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel.class , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeEventListModel.class ) ; }

Target:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeEventListModel > getVolumeEventListProvider ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeEventListModel > ( ginjector , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel.class , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeEventListModel.class ) ; }
Source:
public void flushToPrivateModel ( ) { flushCheckBoxes ( ctrlAltDel , enableUsbAutoshare , openInFullScreen , useLocalDrives , wanEnabled ) ; }

Target:
public void flushToPrivateModel ( ) { flushCheckBoxes ( ctrlAltDel , enableUsbAutoshare , openInFullScreen , useLocalDrives , wanEnabled , disableSmartcard ) ; }
Source:
private void startRefresh ( ) { if ( ( getTimer ( ) ) != null ) { getTimer ( ) . start ( ) ; } }

Target:
public void forceRefresh ( ) { getTimer ( ) . stop ( ) ; setIsQueryFirstTime ( true ) ; syncSearch ( ) ; if ( ! ( getIsTimerDisabled ( ) ) ) { getTimer ( ) . start ( ) ; } }
Source:
public java.util.List < org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel > getItems ( ) { return ( ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel > ) ( super . getItems ( ) ) ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( okCommand ) ) { onManage ( ) ; } else if ( command == ( cancelCommand ) ) { cancel ( ) ; } }
Source:
private boolean ConnectStorage ( ) { return getStorageHelper ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) ) . ConnectStorageToDomainByVdsId ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) , org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getVds ( ) . getId ( ) ) ; }

Target:
private boolean ConnectStorage ( ) { return getStorageHelper ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) ) . connectStorageToDomainByVdsId ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) , org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getVds ( ) . getId ( ) ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getModel ( ) . getNewCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getNewCommand ( ) ; }
Source:
private static java.lang.Double assignDoubleValueWithNullProtection ( java.util.Map < java.lang.String , java.lang.Object > input , java.lang.String name ) { java.lang.Double doubleValue = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignDoubleValue ( input , name ) ; return doubleValue == null ? java.lang.Double.valueOf ( 0.0 ) : doubleValue ; }

Target:
private static java.lang.Double assignDoubleValueWithNullProtection ( java.util.Map < java.lang.String , java.lang.Object > input , java.lang.String name ) { java.lang.Double doubleValue = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.assignDoubleValue ( input , name ) ; return doubleValue == null ? java.lang.Double.valueOf ( 0.0 ) : doubleValue ; }
Source:
public void setAddress ( java.lang.String value ) { }

Target:
public void setGuestID ( java.lang.String value ) { guestID = value ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.getImageSourceLocalEnabled ( ) . setEntity ( false ) ; setSourceVisibility ( model ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.getImageSourceLocalEnabled ( ) . setEntity ( false ) ; setSourceVisibility ( model ) ; }
Source:
private static org.ovirt.engine.core.bll.tasks.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskManager.getInstance ( org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco ) ; }

Target:
private static org.ovirt.engine.core.bll.tasks.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskManager.getInstance ( org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco ) ; }
Source:
public void setLowUtilization ( int value ) { this . lowUtilization = value ; }

Target:
public void setPowerManagementControlledByPolicy ( boolean powerManagementControlledByPolicy ) { mVdsDynamic.setPowerManagementControlledByPolicy ( powerManagementControlledByPolicy ) ; }
Source:
public void OnAssignTags ( ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( getWindow ( ) ) ) ; GetAttachedTagsToSelectedHosts ( model ) ; }

Target:
public void onAssignTags ( ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( getWindow ( ) ) ) ; getAttachedTagsToSelectedHosts ( model ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask construct ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters asyncTaskParams , boolean duringInit ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskFactory.construct ( this , taskType , asyncTaskParams , duringInit ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask construct ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters asyncTaskParams , boolean duringInit ) { return asyncTaskFactory.construct ( taskType , asyncTaskParams , duringInit ) ; }
Source:
public void addCustomValue ( final java.lang.String name , final java.lang.String value ) { customValues.put ( name.toLowerCase ( ) , value ) ; }

Target:
public void addCustomValue ( final java.lang.String name , final java.lang.String value ) { allocateCustomValues ( ) ; customValues.put ( name.toLowerCase ( ) , value ) ; }
Source:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDao ( ) ; command.postConstruct ( ) ; }

Target:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDao ( ) ; command.init ( ) ; }
Source:
protected void init ( ) { org.ovirt.engine.core.bll.UpdateClusterCommand.updateMigrateOnError ( ) ; }

Target:
protected void init ( ) { org.ovirt.engine.core.bll.UpdateClusterCommand.updateMigrateOnError ( ) ; oldGroup = org.ovirt.engine.core.bll.UpdateClusterCommand.getClusterDao ( ) . get ( org.ovirt.engine.core.bll.UpdateClusterCommand.getCluster ( ) . getId ( ) ) ; }
Source:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; UpdateActionAvailability ( ) ; }

Target:
protected void itemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { super . itemsCollectionChanged ( sender , e ) ; updateActionAvailability ( ) ; }
Source:
public void ForceRefresh ( ) { getTimer ( ) . stop ( ) ; setIsQueryFirstTime ( true ) ; SyncSearch ( ) ; if ( ! ( getIsTimerDisabled ( ) ) ) { getTimer ( ) . start ( ) ; } }

Target:
public void ForceRefresh ( ) { getTimer ( ) . stop ( ) ; setIsQueryFirstTime ( true ) ; syncSearch ( ) ; if ( ! ( getIsTimerDisabled ( ) ) ) { getTimer ( ) . start ( ) ; } }
Source:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RemoveStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , new org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback ( ) { @ java.lang.Override public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { } } , this ) ; }

Target:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , null , this ) ; }
Source:
public static void error ( final org.kie.api.runtime.rule.RuleContext drools , final java.lang.String message , final java.lang.Object ... parameters ) { final org.slf4j.Logger logger = org.ovirt.optimizer.util.RuleLogger.getLogger ( drools ) ; logger.error ( message , parameters ) ; }

Target:
public static void error ( final org.kie.api.runtime.rule.RuleContext drools , final java.lang.String message , final java.lang.Object ... parameters ) { final org.slf4j.Logger logger = org.ovirt.optimizer.optaplanner.RuleLogger.getLogger ( drools ) ; logger.error ( message , parameters ) ; }
Source:
public void updateGlusterServerHookChecksum ( org.ovirt.engine.core.compat.Guid hook_id , org.ovirt.engine.core.compat.Guid host_id , java.lang.String checksum ) ;

Target:
public void updateGlusterServerHookChecksum ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid serverId , java.lang.String checksum ) ;
Source:
public void AddMessage ( java.lang.String message ) { serverUniqueId = message ; }

Target:
public void addMessage ( java.lang.String message ) { serverUniqueId = message ; }
Source:
private boolean isStoragePoolMatching ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ( org.ovirt.engine.core.bll.AddDiskCommand.getStoragePoolIsoMapDao ( ) . get ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( getStorageDomainId ( ) , vm.getStoragePoolId ( ) ) ) ) == null ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_OF_VM_NOT_MATCH ) ; } return true ; }

Target:
private boolean isStoragePoolMatching ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ( org.ovirt.engine.core.bll.AddDiskCommand.getStoragePoolIsoMapDao ( ) . get ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( getStorageDomainId ( ) , vm.getStoragePoolId ( ) ) ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_OF_VM_NOT_MATCH ) ; } return true ; }
Source:
public java.lang.Integer gettype ( ) { return this . type ; }

Target:
public java.lang.Integer getType ( ) { return this . type ; }
Source:
public static void GetWatchdogByVmId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }

Target:
public static void getWatchdogByVmId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageEventPresenter.constants.storageEventSubTabLabel ( ) , 11 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageEventPresenter.constants.storageEventSubTabLabel ( ) , 12 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
public org.ovirt.engine.core.compat.Guid findActiveISODomain ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return null ; }

Target:
public void testNoIsoDomain ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , BootSequence.CD , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) ) , false , VdcBllMessages.VM_CANNOT_RUN_FROM_CD_WITHOUT_ACTIVE_STORAGE_DOMAIN_ISO ) ; }
Source:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > getManagedVmDeviceMap ( ) { return vmStatic.getManagedVmDeviceMap ( ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > getManagedVmDeviceMap ( ) { return vmStatic.getManagedDeviceMap ( ) ; }
Source:
public java.lang.String GetTagNameAndChildrenNames ( org.ovirt.engine.core.compat.Guid tagId ) { org.ovirt.engine.core.common.businessentities.Tags tag = GetTagById ( tagId ) ; java.lang.StringBuilder sb = tag.getTagNameAndChildrenNames ( ) ; return sb.toString ( ) ; }

Target:
public java.lang.String getTagNameAndChildrenNames ( org.ovirt.engine.core.compat.Guid tagId ) { org.ovirt.engine.core.common.businessentities.Tags tag = getTagById ( tagId ) ; java.lang.StringBuilder sb = tag.getTagNameAndChildrenNames ( ) ; return sb.toString ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.qos.CpuQos , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.qos.DataCenterCpuQosListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterCpuQosSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.qos.CpuQos , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.qos.DataCenterCpuQosListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterCpuQosSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
private org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand < org.ovirt.engine.core.common.action.TransferDiskImageParameters > getCommand ( ) { return transferImageCommand ; }

Target:
protected void initSuppliedImage ( ) { org.ovirt.engine.core.compat.Guid imageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; transferImageCommand.getParameters ( ) . setImageId ( imageId ) ; }
Source:
private boolean statelessSnapshotExistsForVm ( ) { return org.ovirt.engine.core.bll.RunVmCommand.getDbFacade ( ) . getSnapshotDao ( ) . exists ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.STATELESS ) ; }

Target:
private boolean isStatelessSnapshotExistsForVm ( ) { return getSnapshotDao ( ) . exists ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.STATELESS ) ; }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService entity ) { return entity.getStatus ( ) . name ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterServiceStatus getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService ) ( object.getEntity ( ) ) ) . getStatus ( ) ; }
Source:
protected org.ovirt.engine.api.model.HostNIC populate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.VdsNetworkInterface entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.HostNIC doPopulate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity ) { return model ; }
Source:
public javax.ws.rs.core.Response end ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.EndExternalStep , new org.ovirt.engine.core.common.action.EndExternalStepParameters ( guid , action.isSucceeded ( ) ) , action ) ; }

Target:
public javax.ws.rs.core.Response end ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "succeeded" ) ; return doAction ( VdcActionType.EndExternalStep , new org.ovirt.engine.core.common.action.EndExternalStepParameters ( guid , action.isSucceeded ( ) ) , action ) ; }
Source:
public void separatorNotEmpty ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = "" ; org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 5 ) ; }

Target:
public void separatorNotEmpty ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = "" ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 5 ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { org.ovirt.engine.ui.userportal.section.main.presenter.popup.console.ConsoleModelChangedEvent.fire ( getEventBus ( ) , ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel ) ( model.getSelectedItem ( ) ) ) ) ; getView ( ) . flush ( ) ; hideAndUnbind ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeListeners ( model ) ; getView ( ) . flush ( ) ; org.ovirt.engine.ui.userportal.section.main.presenter.popup.console.ConsoleModelChangedEvent.fire ( getEventBus ( ) , ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel ) ( model.getSelectedItem ( ) ) ) ) ; hideAndUnbind ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.lang.Integer.valueOf ( 0 ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.lang.Integer.valueOf ( 0 ) ; } return source ; }
Source:
public void canCreateLessNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }

Target:
public void canCreateLessNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 5 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.memorySnapshotSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { migrationSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
private void updateOriginalTemplateNameOnDerivedVms ( ) { if ( ! ( getParameters ( ) . isImportAsNewEntity ( ) ) ) { getVmDAO ( ) . updateOriginalTemplateName ( getVmTemplate ( ) . getId ( ) , getVmTemplate ( ) . getName ( ) ) ; } }

Target:
private void updateOriginalTemplateNameOnDerivedVms ( ) { if ( ! ( getParameters ( ) . isImportAsNewEntity ( ) ) ) { getVmDao ( ) . updateOriginalTemplateName ( getVmTemplate ( ) . getId ( ) , getVmTemplate ( ) . getName ( ) ) ; } }
Source:
public void updateOvfGenerations ( java.util.List < org.ovirt.engine.core.compat.Guid > ids , java.util.List < java.lang.Long > values ) ;

Target:
public void updateOvfGenerations ( java.util.List < org.ovirt.engine.core.compat.Guid > ids , java.util.List < java.lang.Long > values , java.util.List < java.lang.String > ovfData ) ;
Source:
private void mockStorageDomainDynamicDAOGet ( ) { mockStorageDomainDynamicDAOGet ( AVAILABLE_SPACE_GB , USED_SPACE_GB ) ; }

Target:
private void mockConfigSizeRequirements ( int requiredSpaceBufferInGB , int requiredSpacePercent ) { mcr.mockConfigValue ( ConfigValues.FreeSpaceCriticalLowInGB , requiredSpaceBufferInGB ) ; mcr.mockConfigValue ( ConfigValues.FreeSpaceLow , requiredSpacePercent ) ; }
Source:
public org.ovirt.engine.sdk.utils.HttpHeaderBuilder add ( java.lang.String key ) { this . params.add ( new org.ovirt.engine.sdk.utils.HttpHeaderBuilder.HttpHeaderParsameter ( key , null ) ) ; return this ; }

Target:
public org.ovirt.engine.sdk.utils.HttpHeaderBuilder add ( java.lang.String key ) { this . params.add ( new org.ovirt.engine.sdk.utils.HttpHeaderBuilder.HttpHeaderParameter ( key , null ) ) ; return this ; }
Source:
public void setActiveDetailModel ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { if ( ( activeDetailModel ) != value ) { ActiveDetailModelChanging ( value , getActiveDetailModel ( ) ) ; activeDetailModel = value ; ActiveDetailModelChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "ActiveDetailModel" ) ) ; } }

Target:
public void setActiveDetailModel ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { if ( ( activeDetailModel ) != value ) { ActiveDetailModelChanging ( value , getActiveDetailModel ( ) ) ; activeDetailModel = value ; ActiveDetailModelChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ActiveDetailModel" ) ) ; } }
Source:
private java.lang.String getJsonDiskDescription ( ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) . getJsonDiskDescription ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getParameters ( ) . getDiskInfo ( ) ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }

Target:
private java.lang.String getJsonDiskDescription ( ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) . generateJsonDiskDescription ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getParameters ( ) . getDiskInfo ( ) ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; updateActionAvailability ( ) ; }

Target:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; updateActionAvailability ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return java.lang.String.valueOf ( object.getnum_of_cpus ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return java.lang.String.valueOf ( object.getNumOfCpus ( ) ) ; }
Source:
public static boolean isWindowsOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getWindowsOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.uniqueOsNames = ( ( java.util.HashMap < java.lang.Integer , java.lang.String > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.irsbroker.IsoListReturnForXmlRpc getFloppyList ( java.lang.String spUUID ) { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = irsServer.getFloppyList ( spUUID ) ; org.ovirt.engine.core.vdsbroker.irsbroker.IsoListReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.irsbroker.IsoListReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; }

Target:
public org.ovirt.engine.core.vdsbroker.irsbroker.FileStatsReturnForXmlRpc getFloppyList ( java.lang.String spUUID ) { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = irsServer.getFloppyList ( spUUID ) ; org.ovirt.engine.core.vdsbroker.irsbroker.FileStatsReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.irsbroker.FileStatsReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; }
Source:
public static java.lang.Integer getMaxMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version clusterVersion ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getMaximumRam ( osId , clusterVersion ) ; }

Target:
public static java.lang.Integer getMaxMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version clusterVersion ) { return org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getMaximumRam ( osId , clusterVersion ) ; }
Source:
public void invalidNetworkProviderType ( ) { org.mockito.Mockito.when ( provider.getType ( ) ) . thenReturn ( org.ovirt.engine.core.bll.provider.NetworkProviderValidatorTest.NON_NETWORK_PROVIDER_TYPE ) ; org.junit.Assert.assertThat ( validator.providerTypeIsNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_NOT_NETWORK ) ) ; }

Target:
public void invalidNetworkProviderType ( ) { org.mockito.Mockito.when ( provider.getType ( ) ) . thenReturn ( org.ovirt.engine.core.bll.provider.NetworkProviderValidatorTest.NON_NETWORK_PROVIDER_TYPE ) ; org.hamcrest.MatcherAssert.assertThat ( validator.providerTypeIsNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_NOT_NETWORK ) ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present , java.lang.String width ) { ensureColumnPresent ( column , com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( headerText ) , present , width ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present , java.lang.String width ) { ensureColumnPresent ( column , com.google.gwt.safehtml.shared.SafeHtmlUtils.fromTrustedString ( headerText ) , present , width ) ; }
Source:
public void validateFailsOnVolumeWithoutRemoveBricksTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , getBricks ( volumeWithoutRemoveBricksTask ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithInvalidNoOfBricks ( ) { cmd.setGlusterVolumeId ( volumeWithRemoveBricksTask ) ; cmd.getParameters ( ) . setBricks ( getInvalidNoOfBricks ( volumeWithRemoveBricksTask ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid taskId , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.AsyncTaskManager.logAndFailTaskOfCommandWithEmptyVdsmId ( taskId , message ) ; }

Target:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid taskId , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . logAndFailTaskOfCommandWithEmptyVdsmId ( taskId , message ) ; }
Source:
private org.ovirt.engine.api.model.OpenStackNetworkProvider getModel ( int index ) { org.ovirt.engine.api.model.OpenStackNetworkProvider model = new org.ovirt.engine.api.model.OpenStackNetworkProvider ( ) ; model.setName ( NAMES [ index ] ) ; model.setDescription ( DESCRIPTIONS [ index ] ) ; return model ; }

Target:
private org.ovirt.engine.api.model.OpenStackNetworkProvider getModel ( int index ) { org.ovirt.engine.api.model.OpenStackNetworkProvider model = new org.ovirt.engine.api.model.OpenStackNetworkProvider ( ) ; model.setName ( NAMES [ index ] ) ; model.setType ( OpenStackNetworkProviderType.NEUTRON ) ; model.setDescription ( DESCRIPTIONS [ index ] ) ; return model ; }
Source:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml ) { addColumn ( column , createHeader ( column , headerHtml ) ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , boolean present , java.lang.String width ) { ensureColumnPresent ( column , new org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader ( headerHtml ) , present , width ) ; }
Source:
public void testIsNetworkInSyncWhenBootProtocolEqual ( ) throws java.lang.Exception { initIpConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4StaticBootProtocolAddressEqual ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocolAddress ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.IPV4_BOOT_PROTOCOL , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private void initGeneralForm ( ) { generalForm = new org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotInfoGeneral ( constants ) ; }

Target:
private void initGeneralForm ( ) { generalForm = new org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotInfoGeneral ( constants , messages ) ; }
Source:
private void addInvalidVmStateMessage ( org.ovirt.engine.core.common.businessentities.VM vm ) { setActionMessageParameters ( ) ; addCanDoActionMessageVariable ( "VmName" , vm.getName ( ) ) ; addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN_OR_UP ) ; org.ovirt.engine.core.bll.storage.disk.MoveDisksCommand.getReturnValue ( ) . setCanDoAction ( false ) ; }

Target:
private void addInvalidVmStateMessage ( org.ovirt.engine.core.common.businessentities.VM vm ) { setActionMessageParameters ( ) ; addValidationMessageVariable ( "VmName" , vm.getName ( ) ) ; addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN_OR_UP ) ; org.ovirt.engine.core.bll.storage.disk.MoveDisksCommand.getReturnValue ( ) . setValid ( false ) ; }
Source:
public java.lang.String gethost_name ( ) { return this . mVdsStatic.gethost_name ( ) ; }

Target:
public java.lang.String getHostName ( ) { return this . mVdsStatic.getHostName ( ) ; }
Source:
public java.lang.String setValue ( java.lang.String value ) throws java.lang.Exception { if ( value.isEmpty ( ) ) { return "" ; } value = pwdValueHelper.extractPasswordValue ( value ) ; return reformatKeyVal ( value , org.ovirt.engine.core.config.entity.helper.CompositePasswordValueHelper.ReformatType.ENCRYPT ) ; }

Target:
public java.lang.String setValue ( java.lang.String value ) throws java.lang.Exception { value = pwdValueHelper.extractPasswordValue ( value ) ; if ( org.apache.commons.lang.StringUtils.isBlank ( value ) ) { return org.apache.commons.lang.StringUtils.EMPTY ; } return reformatKeyVal ( value , org.ovirt.engine.core.config.entity.helper.CompositePasswordValueHelper.ReformatType.ENCRYPT ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Tags > getCollection ( ) { return getBackendCollection ( VdcQueryType.GetTagsByUserGroupId , new org.ovirt.engine.core.common.queries.GetTagsByUserGroupIdParameters ( parentId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Tags > getCollection ( ) { return getBackendCollection ( QueryType.GetTagsByUserGroupId , new org.ovirt.engine.core.common.queries.GetTagsByUserGroupIdParameters ( parentId ) ) ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return constants.suspendVmLabel ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( ( value.isPool ( ) ? org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.returnVmLabel ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.shutDownVm ( ) ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.Snapshot prepareSnapshotConfigWithoutImageSingleImage ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot , org.ovirt.engine.core.compat.Guid imageId ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.prepareSnapshotConfigWithAlternateImage ( snapshot , imageId , null , new org.ovirt.engine.core.utils.ovf.OvfManager ( ) ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.Snapshot prepareSnapshotConfigWithoutImageSingleImage ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot , org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.utils.ovf.OvfManager ovfManager ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.prepareSnapshotConfigWithAlternateImage ( snapshot , imageId , null , ovfManager ) ; }
Source:
public boolean hasPrimaryAddressSet ( ) { return ( ( ( iPv4Addresses ) != null ) && ( ! ( iPv4Addresses.isEmpty ( ) ) ) ) && ( ( iPv4Addresses.get ( 0 ) ) != null ) ; }

Target:
public boolean hasIpv4PrimaryAddressSet ( ) { return ( ( ( iPv4Addresses ) != null ) && ( ! ( iPv4Addresses.isEmpty ( ) ) ) ) && ( ( iPv4Addresses.get ( 0 ) ) != null ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { getCallsHandler ( ) . executeModification ( "UpdateVmTemplate" , getInsertOrUpdateParameters ( template ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmTemplate get ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return getCallsHandler ( ) . executeRead ( "GetVmTemplateByVmtGuid" , org.ovirt.engine.core.dao.VmTemplateDAODbFacadeImpl.VMTemplateRowMapper.instance , createIdParameterMapper ( id ) . addValue ( "user_id" , userID ) . addValue ( "is_filtered" , isFiltered ) ) ; }
Source:
public void moveDiskToGluster ( ) { initializeCommand ( ImageOperation.Move ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void moveShareableDisk ( ) { initializeCommand ( ImageOperation.Move ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
public void setLoggedInUser ( org.ovirt.engine.core.common.users.VdcUser value ) { if ( ( loggedInUser ) != value ) { loggedInUser = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "LoggedInUser" ) ) ; } }

Target:
public void setLastEvent ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { if ( ( lastEvent ) != value ) { lastEvent = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LastEvent" ) ) ; } }
Source:
public java.util.Set < org.ovirt.engine.core.common.utils.MockConfigRule.MockConfigDescriptor < java.lang.Boolean > > getExtraConfigDescriptors ( ) { return java.util.Collections.singleton ( org.ovirt.engine.core.common.utils.MockConfigRule.mockConfig ( ConfigValues.SANWipeAfterDelete , true ) ) ; }

Target:
public java.util.Set < org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < java.lang.Boolean > > getExtraConfigDescriptors ( ) { return java.util.Collections.singleton ( org.ovirt.engine.core.utils.MockConfigRule.mockConfig ( ConfigValues.SANWipeAfterDelete , true ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.StoragePool x , org.ovirt.engine.core.common.businessentities.StoragePool y ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( x.getname ( ) , y.getname ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.Provider provider ) { return provider.getType ( ) . getProvidedTypes ( ) . contains ( type ) ; }
Source:
protected org.ovirt.engine.api.model.VM loadEntity ( ) { return getEntity ( org.ovirt.engine.api.model.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getGuid ( ) ) , getGuid ( ) . toString ( ) , true ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM loadEntity ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getGuid ( ) ) , getGuid ( ) . toString ( ) , true ) ; }