auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object object ) { return ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getProblem ( ) ) != null ? org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.resources.alertImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object object ) { return ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getWarning ( ) ) != null ? org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.resources.alertImage ( ) : null ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > vdsNetworkInterfaceListToBase ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > networkInterfaces = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > ( ) ; for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface item : items ) { networkInterfaces.add ( item ) ; } return networkInterfaces ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface findInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForDedicatedPowerClientByVds ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVmsDedicatedToPowerClientByVdsId" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "dedicated_vm_for_vds" , id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllUsingQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { resiliencePolicyTab.setVisible ( object.getisResiliencePolicyTabAvailable ( ) ) ; applyModeCustomizations ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( object.getOptimizationCustom_IsSelected ( ) . getEntity ( ) ) { optimizationCustomFormatter ( object ) ; optimizationCustomEditor.setVisible ( true ) ; } }
Source:
public void addUpClickHandler ( com.google.gwt.event.dom.client.ClickHandler handler ) { up.addClickHandler ( handler ) ; }

Target:
public void addDownClickHandler ( com.google.gwt.event.dom.client.ClickHandler handler ) { down.addClickHandler ( handler ) ; }
Source:
public void testGet ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; resource.setParent ( getCollectionResourceMock ( ) ) ; org.ovirt.engine.api.model.Hook hook = resource.get ( ) ; assertEquals ( org.ovirt.engine.api.restapi.resource.BackendHostHookResourceTest.EVENT_2_NAME , hook.getEventName ( ) ) ; }

Target:
public void testGet ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; resource.setParent ( getCollectionResourceMock ( ) ) ; org.ovirt.engine.api.model.Hook hook = resource.get ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendHostHookResourceTest.EVENT_2_NAME , hook.getEventName ( ) ) ; }
Source:
public void getNoQosByVmId ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.qos.CpuQos > cpuQosMap = dao.getCpuQosByVmIds ( java.util.Collections.singleton ( FixturesTool.VM_RHEL5_POOL_59 ) ) ; org.junit.Assert.assertNotNull ( cpuQosMap ) ; org.junit.Assert.assertNull ( cpuQosMap.get ( FixturesTool.VM_RHEL5_POOL_57 ) ) ; }

Target:
public void getNoQosByVmId ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.qos.CpuQos > cpuQosMap = dao.getCpuQosByVmIds ( java.util.Collections.singleton ( FixturesTool.VM_RHEL5_POOL_59 ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( cpuQosMap ) ; org.junit.jupiter.api.Assertions.assertNull ( cpuQosMap.get ( FixturesTool.VM_RHEL5_POOL_57 ) ) ; }
Source:
public void testGetstorage_domain_by_type_for_storagePoolId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomainByTypeAndPool ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) , StorageDomainType.Master ) ; org.junit.Assert.assertNotNull ( result ) ; assertGetResult ( result ) ; }

Target:
public void testGetstorage_domain_by_type_for_storagePoolId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) , StorageDomainType.Master ) ; org.junit.Assert.assertNotNull ( result ) ; assertGetResult ( result ) ; }
Source:
private void updateWidgetTitle ( java.lang.String title ) { contentWidget.asWidget ( ) . setTitle ( title ) ; }

Target:
public void setLabelTooltip ( java.lang.String tooltipText ) { labelConfiguredTooltip = tooltipText ; labelTooltip.setText ( tooltipText ) ; labelTooltip.reconfigure ( ) ; }
Source:
public void testIsNetworkInSyncWhenIfaceQosIsNullIfaceQosOverridden ( ) { iface.setQos ( null ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIfaceQosIsNullIfaceQosOverridden ( ) { iface.setQos ( null ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void run ( org.ovirt.engine.ui.uicompat.TaskContext context ) { UpdateOptionsAsync ( ( ( getPrefix ( ) ) + ( getSearchString ( ) ) ) ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( ) ; updateOptionsAsync ( ( ( getPrefix ( ) ) + ( getSearchString ( ) ) ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveVmTemplateInterface , new org.ovirt.engine.core.common.action.RemoveVmTemplateInterfaceParameters ( instanceTypeId , guid ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( ActionType.RemoveVmTemplateInterface , new org.ovirt.engine.core.common.action.RemoveVmTemplateInterfaceParameters ( instanceTypeId , guid ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapUser getExpectedResult ( ) { return new org.ovirt.engine.core.common.businessentities.LdapUser ( NAME_TO_SEARCH , "melon!" , org.ovirt.engine.core.compat.Guid.NewGuid ( ) , DOMAIN ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.LdapUser getExpectedResult ( ) { return new org.ovirt.engine.core.common.businessentities.LdapUser ( NAME_TO_SEARCH , "melon!" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , DOMAIN ) ; }
Source:
public void testBalance ( ) throws org.apache.xmlrpc.XmlRpcException { proxy.balance ( ) ; }

Target:
public void testBalance ( ) throws org.apache.xmlrpc.XmlRpcException { java.lang.String result = proxy.balance ( org.ovirt.schedulerproxy.SchedulerProxyTest.FILE_NAME , org.ovirt.schedulerproxy.SchedulerProxyTest.HOST_ARRAY , "" ) ; org.junit.Assert.assertTrue ( result.equals ( org.ovirt.schedulerproxy.SchedulerProxyTest.BALANCE_RESULT ) ) ; }
Source:
protected void postDiscoverTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > newItems ) { }

Target:
protected void postDiscoverTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > newItems ) { initializeItems ( null , newItems ) ; lastDiscoveredTargets.clear ( ) ; lastDiscoveredTargets.addAll ( newItems ) ; }
Source:
public int compare ( java.lang.Integer o1 , java.lang.Integer o2 ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o1 ) . compareTo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o2 ) ) ; }

Target:
public static boolean osNameExists ( java.lang.Integer osId ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.keySet ( ) . contains ( osId ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . hide ( ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { java.lang.String version = ( ( java.lang.String ) ( result ) ) ; getView ( ) . setVersion ( version ) ; }
Source:
public void setis_stateless ( boolean value ) { stateless = value ; }

Target:
public void setStateless ( boolean value ) { stateless = value ; }
Source:
public void execute ( ) { errataTableView.onResize ( ) ; }

Target:
public void setErrataDetailPanelVisibilty ( boolean visible ) { splitLayoutPanel.setWidgetHidden ( errataDetailPanel , ( ! visible ) ) ; com.google.gwt.core.client.Scheduler.get ( ) . scheduleDeferred ( ( ) -> errataTableView.onResize ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNotDuringSnapshot ( org.ovirt.engine.core.compat.Guid vmId ) { if ( getSnapshotDao ( ) . exists ( vmId , SnapshotStatus.LOCKED ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult vmNotInStatus ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus status , org.ovirt.engine.core.dal.VdcBllMessages msg ) { if ( getSnapshotDao ( ) . exists ( vmId , status ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( msg ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return vds.getName ( ) ; }

Target:
void initEditors ( ) { selectHostAutomaticallyEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "1" ) ; selectDestinationHostEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "1" ) ; hostsListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.VDS > ( ) ) ; clustersEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.VDSGroup > ( ) ) ; }
Source:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.IVnc vnc , boolean value ) { vnc.setRemapCtrlAltDelete ( value ) ; }

Target:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.IVnc vnc , boolean value ) { vnc.getOptions ( ) . setRemapCtrlAltDelete ( value ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.VDSGroup ? super . getEntity ( ) : null ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.Cluster ? super . getEntity ( ) : null ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Permissions object ) { return new java.util.Date ( ( ( object.getCreationDate ( ) ) * 1000 ) ) . toString ( ) ; }

Target:
public java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.Permission object ) { return new java.util.Date ( ( ( object.getCreationDate ( ) ) * 1000 ) ) ; }
Source:
private void assertStorageLimitsFound ( org.ovirt.engine.api.model.QuotaStorageLimits storageLimits , int resultsNum ) { assertNotNull ( storageLimits ) ; assertNotNull ( storageLimits.getQuotaStorageLimits ( ) ) ; assertEquals ( storageLimits.getQuotaStorageLimits ( ) . size ( ) , resultsNum ) ; }

Target:
private void assertStorageLimitsFound ( org.ovirt.engine.api.model.QuotaStorageLimits storageLimits , int resultsNum ) { org.junit.Assert.assertNotNull ( storageLimits ) ; org.junit.Assert.assertNotNull ( storageLimits.getQuotaStorageLimits ( ) ) ; org.junit.Assert.assertEquals ( storageLimits.getQuotaStorageLimits ( ) . size ( ) , resultsNum ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; if ( command == ( getTestCommand ( ) ) ) { Test ( ) ; } }

Target:
private boolean isEntityModelEmpty ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ! ( ( ( model.getEntity ( ) ) != null ) && ( ( model.getEntity ( ) ) != "" ) ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc getStorageDeviceList ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "GlusterHost.storageDevicesList" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) . withIgnoreResponseKey ( ) ; return new org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc ( response ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc getStorageDeviceList ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "GlusterHost.storageDevicesList" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) . withResponseKey ( "deviceInfo" ) ; return new org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc ( response ) ; }
Source:
private void setGetQuotasExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetQuotaByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendQuotasResourceTest.PARENT_GUID } , getQuotas ( ) ) ; }

Target:
private void setGetQuotasExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetQuotaByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendQuotasResourceTest.DATACENTER_ID } , getQuotas ( ) ) ; }
Source:
private boolean isFirstTaskHandler ( ) { return ( getParameters ( ) . getExecutionIndex ( ) ) == 0 ; }

Target:
private boolean isFirstTaskHandler ( ) { return ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . getExecutionIndex ( ) ) == 0 ; }
Source:
public boolean apply ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig config ) { return true ; }

Target:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getAll ( ) { return filter ( ( config ) -> true ) ; }
Source:
public org.ovirt.engine.core.dao.VdsGroupDao getVdsGroupDao ( ) { return super . getVdsGroupDao ( ) ; }

Target:
private void addManagementNetworksToPool ( int numberOfNetworks ) { addNetworksToPool ( numberOfNetworks , true ) ; }
Source:
protected boolean isVmWithSameNameExistStatic ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getParameters ( ) . getName ( ) ) ; }

Target:
protected boolean isVmWithSameNameExistStatic ( java.lang.String name , org.ovirt.engine.core.compat.Guid datacenterId ) { return ( vmDao.getByNameForDataCenter ( datacenterId , name , null , false ) ) != null ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVirtioScsiControllers ( org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVirtioScsiControllers ( org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetVirtioScsiControllersQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public void setForceHelp ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeGeoRepActionConfirmationModel object ) { geoRepForceHelpIcon.setText ( templates.italicText ( object.getForceHelp ( ) ) ) ; }

Target:
public void setForceHelp ( java.lang.String forceHelpText ) { geoRepForceHelpIcon.setText ( templates.italicText ( forceHelpText ) ) ; }
Source:
public void testGetById ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session = dao.getById ( FixturesTool.GLUSTER_GEOREP_SESSION_ID ) ; org.junit.Assert.assertNotNull ( session ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_GEOREP_SESSION_ID , session.getId ( ) ) ; }

Target:
public void testGetById ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession session = dao.getById ( FixturesTool.GLUSTER_GEOREP_SESSION_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( session ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.GLUSTER_GEOREP_SESSION_ID , session.getId ( ) ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = createTestCommand ( null ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( stoppedVolumeId , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public java.lang.Object call ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap storagePoolIsoMap = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( storageDomainId , storagePoolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Maintenance ) ; getStoragePoolIsoMapDao ( ) . save ( storagePoolIsoMap ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { invokeCallable ( callable ) ; return null ; }
Source:
public void run ( ) { runInternalAction ( VdcActionType.InstallVdsInternal , installVdsParameters , dupContext ( ) . withExecutionContext ( installCtx ) . withLock ( null ) . withCompensationContext ( null ) ) ; }

Target:
public void run ( ) { runInternalAction ( VdcActionType.InstallVdsInternal , installVdsParameters , cloneContextAndDetachFromParent ( ) . withExecutionContext ( installCtx ) ) ; }
Source:
protected < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier ) { return getEntity ( clz , query , queryParams , identifier , false ) ; }

Target:
protected < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.QueryParametersBase queryParams , java.lang.String identifier ) { return getEntity ( clz , query , queryParams , identifier , false ) ; }
Source:
public org.ovirt.engine.ui.common.widget.table.cell.TextCellWithEditableTooltip getCell ( ) { org.ovirt.engine.ui.common.widget.table.cell.TextCellWithEditableTooltip textCellWithEditableTooltip = super . getCell ( ) ; textCellWithEditableTooltip.setTitle ( constants.quotaCalculationsMessage ( ) ) ; return textCellWithEditableTooltip ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.QuotaStorage object ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.tab.quota.SubTabQuotaStorageView.constants.quotaCalculationsMessage ( ) ) ; }
Source:
public void cantDowngradeIfGlusterNotSupported ( ) { failOnDowngradingWithStorageType ( StorageType.GLUSTERFS ) ; }

Target:
public void cantDowngradeIfPosixNotSupported ( ) { failOnDowngradingWithStorageType ( StorageType.POSIXFS ) ; }
Source:
public boolean shouldVmRunAsStateless ( org.ovirt.engine.core.common.action.RunVmParams param , org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ( param.getRunAsStateless ( ) ) != null ) { return param.getRunAsStateless ( ) ; } return vm.getis_stateless ( ) ; }

Target:
public boolean shouldVmRunAsStateless ( org.ovirt.engine.core.common.action.RunVmParams param , org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ( param.getRunAsStateless ( ) ) != null ) { return param.getRunAsStateless ( ) ; } return vm.isStateless ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByHostName ( java.lang.String host ) { return singleResult ( entityManager.createNamedQuery ( "VdsStatic.getByHostName" , org.ovirt.engine.core.common.businessentities.VdsStatic.class ) . setParameter ( "hostName" , host ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByHostName ( java.lang.String host ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByHostName" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "host_name" , host ) ) ; }
Source:
protected void endSuccessfully ( ) { org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.setSucceeded ( true ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new org.ovirt.engine.core.bll.SerialChildCommandsExecutionCallback ( ) ; }
Source:
public void testGetAllForUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsers ( user.getUuid ( ) . toString ( ) ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUserIdsWithInvalidIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsersWithIds ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . getUuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NOT_MIGRATABLE ) ) ; }

Target:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_NEEDS_PASSTHROUGH ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Template update ( org.ovirt.engine.api.v3.types.V3Template template ) { return adaptUpdate ( getDelegate ( ) :: update , template ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Template update ( org.ovirt.engine.api.v3.types.V3Template template ) { return org.ovirt.engine.api.v3.helpers.V3TemplateHelper.addDisksLink ( adaptUpdate ( getDelegate ( ) :: update , template ) ) ; }
Source:
public void testValidationFailsStoragePoolNotExists ( ) { org.mockito.Mockito.doReturn ( null ) . when ( storagePoolDao ) . get ( storagePoolId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testValidationFailsStoragePoolNotExists ( ) { org.mockito.Mockito.doReturn ( null ) . when ( storagePoolDao ) . get ( storagePoolId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }
Source:
private java.lang.String getActionPresentTense ( org.ovirt.engine.core.common.businessentities.FenceActionType action ) { switch ( action ) { case Start : return "Starting" ; case Restart : return "Restarting" ; case Stop : return "Stopping" ; case Status : return "Checking status of" ; default : return "" ; } }

Target:
private java.lang.String getActionPresentTense ( org.ovirt.engine.core.common.businessentities.pm.FenceActionType action ) { switch ( action ) { case START : return "Starting" ; case RESTART : return "Restarting" ; case STOP : return "Stopping" ; case STATUS : return "Checking status of" ; default : return "" ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > extend_image_ticket ( java.lang.String ticketId , long timeout ) ;
Source:
public void setNetworkInSync ( boolean networkInSync ) { this . networkInSync = networkInSync ; }

Target:
public boolean isNetworkInSync ( ) { for ( org.ovirt.engine.core.common.businessentities.network.ReportedConfiguration reportedConfig : reportedConfigurationList ) { if ( ! ( reportedConfig.isInSync ( ) ) ) { return false ; } } return true ; }
Source:
public static < E extends java.lang.Enum < E > > E validateEnum ( java.lang.Class < E > clz , java.lang.String name ) { return org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.common.util.EnumValidator.INVALID_ENUM_REASON , org.ovirt.engine.api.common.util.EnumValidator.INVALID_ENUM_DETAIL , clz , name ) ; }

Target:
public static < E extends java.lang.Enum < E > > E validateEnum ( java.lang.Class < E > clz , java.lang.String name , boolean toUppercase ) { return org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.common.util.EnumValidator.INVALID_ENUM_REASON , org.ovirt.engine.api.common.util.EnumValidator.INVALID_ENUM_DETAIL , clz , name , toUppercase ) ; }
Source:
private void handleFencingSkippedDueToPolicy ( org.ovirt.engine.core.common.vdscommands.VDSReturnValue vdsReturnValue ) { setFenceSucceeded ( true ) ; vdsReturnValue.setSucceeded ( true ) ; vdsReturnValue.setReturnValue ( FenceStatusReturnValue.SKIPPED ) ; }

Target:
protected void handleFencingSkippedDueToPolicy ( org.ovirt.engine.core.common.vdscommands.VDSReturnValue vdsReturnValue ) { skippedDueToFencingPolicy = true ; setFenceSucceeded ( false ) ; vdsReturnValue.setSucceeded ( false ) ; setActionReturnValue ( vdsReturnValue.getReturnValue ( ) ) ; org.ovirt.engine.core.bll.FenceVdsBaseCommand.setCommandShouldBeLogged ( false ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface ) { return ( ( iface.getNetworkName ( ) ) != null ) && ( iface.getNetworkName ( ) . equals ( hostManagementNetworkName ) ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface ) { return ( ( iface.getNetworkName ( ) ) != null ) && ( iface.getNetworkName ( ) . equals ( hostManagementNetworkName ) ) ; }
Source:
private void mockOsRepository ( ) { org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; }

Target:
protected void mockOsRepository ( ) { org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.mockito.Mockito.when ( osRepository.isWindows ( 0 ) ) . thenReturn ( true ) ; }
Source:
public void onHeaderOffsetChange ( org.ovirt.engine.ui.common.system.HeaderOffsetChangeEvent event ) { getView ( ) . setOffset ( event.getWidth ( ) ) ; if ( ( resizeHandlerRegistration ) != null ) { resizeHandlerRegistration.removeHandler ( ) ; resizeHandlerRegistration = null ; } }

Target:
public void onHeaderOffsetChange ( org.ovirt.engine.ui.common.system.HeaderOffsetChangeEvent event ) { getView ( ) . setOffset ( event.getWidth ( ) , wantsOffset ) ; if ( ( resizeHandlerRegistration ) != null ) { resizeHandlerRegistration.removeHandler ( ) ; resizeHandlerRegistration = null ; } }
Source:
public java.lang.String getmCurrentIrsHost ( ) { return privatemCurrentIrsHost ; }

Target:
public java.lang.String getIsoDirectory ( ) { java.lang.String tempVar = privatemCurrentIrsHost ; return java.lang.String.format ( "\\\\%1$s\\CD" , ( tempVar != null ? tempVar : gethostFromVds ( ) ) ) ; }
Source:
private boolean isStorageStatusValidForPathEditing ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { return ( ( storage.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Maintenance ) ) || ( ( storage.getStorageDomainSharedStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus.Unattached ) ) ; }

Target:
public boolean isEditable ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { return ( ( storage.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Maintenance ) ) || ( ( storage.getStorageDomainSharedStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus.Unattached ) ) ; }
Source:
public native void addItem ( com.google.gwt.user.cellview.client.Column < T , ? > column ) ;

Target:
public boolean containsItem ( com.google.gwt.user.cellview.client.Column < T , ? > column ) { return items.containsKey ( column ) ; }
Source:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_USER_ID , ActionGroup.CONSUME_QUOTA , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllByStoragePoolAndConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_CONNECTION ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; }
Source:
public void setModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VNodeModel nodeModel ) { virtualNodeName.setText ( messages.vNumaName ( nodeModel.getVm ( ) . getName ( ) , nodeModel.getVmNumaNode ( ) . getIndex ( ) ) ) ; setStatusIcon ( nodeModel ) ; setTypeIcon ( nodeModel ) ; }

Target:
public void setModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VNodeModel nodeModel ) { virtualNodeName.setText ( org.ovirt.engine.ui.common.view.popup.numa.VirtualNumaPanel.messages.vNumaName ( nodeModel.getVm ( ) . getName ( ) , nodeModel.getVmNumaNode ( ) . getIndex ( ) ) ) ; setStatusIcon ( nodeModel ) ; setTypeIcon ( nodeModel ) ; }
Source:
public int getEventsThreadPoolSize ( ) { return this . eventsThreadPoolSize ; }

Target:
public void setJsonSecured ( boolean jsonSecured ) { this . jsonSecured = jsonSecured ; }
Source:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { if ( ( getVdsDestinationId ( ) ) != null ) { decreasePendingVms ( getVdsDestinationId ( ) ) ; } org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { if ( ( getDestinationVdsId ( ) ) != null ) { decreasePendingVms ( getDestinationVdsId ( ) ) ; } } }
Source:
private boolean clusterHasServers ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . hasServers ( org.ovirt.engine.core.bll.AddVdsCommand.getVdsGroupId ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.utils.ClusterUtils getClusterUtils ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) ; }
Source:
public void canDoActionFailsBlockIso ( ) { sd.setStorageDomainType ( StorageDomainType.ISO ) ; sd.setStorageType ( StorageType.FCP ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DOMAIN_TYPE_CAN_BE_CREATED_ONLY_ON_SPECIFIC_STORAGE_DOMAINS ) ; }

Target:
public void canDoActionFailsBlockIso ( ) { sd.setStorageDomainType ( StorageDomainType.ISO ) ; sd.setStorageType ( StorageType.FCP ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DOMAIN_TYPE_CAN_BE_CREATED_ONLY_ON_SPECIFIC_STORAGE_DOMAINS ) ; }
Source:
private java.util.List < org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMWithPlugInfo > getVmsWithPlugInfo ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByDiskId" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMWithPlugInfoRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "disk_guid" , id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.common.businessentities.VmDevice > > getVmsWithPlugInfo ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByDiskId" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMWithPlugInfoRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "disk_guid" , id ) ) ; }
Source:
public void setVmUp ( boolean isVmUp ) { this . isVmUp = isVmUp ; }

Target:
protected boolean isFilterDestinationDomainsBySourceType ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel model ) { return model.isPluggedToRunningVm ( ) ; }
Source:
public void testIsMatch ( ) { org.junit.Assert.assertTrue ( "A number should match" , org.ovirt.engine.core.compat.Regex.IsMatch ( "1" , "[0-9]" ) ) ; org.junit.Assert.assertFalse ( "A letter should not match" , org.ovirt.engine.core.compat.Regex.IsMatch ( "a" , "[0-9]" ) ) ; }

Target:
public void testIsMatch ( ) { org.junit.Assert.assertTrue ( "A number should match" , org.ovirt.engine.core.compat.Regex.isMatch ( "1" , "[0-9]" ) ) ; org.junit.Assert.assertFalse ( "A letter should not match" , org.ovirt.engine.core.compat.Regex.isMatch ( "a" , "[0-9]" ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAutoAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return RunAction ( actionType , parameters ) ; }

Target:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters ) ; }
Source:
private void logInfoIfNeeded ( org.ovirt.engine.core.common.businessentities.StoragePool pool , java.lang.String message , java.lang.Object ... args ) { if ( ! ( ovfOnAnyDomainSupported ( pool ) ) ) { org.ovirt.engine.core.bll.OvfDataUpdater.log.infoFormat ( message , args ) ; } }

Target:
private void logInfoIfNeeded ( org.ovirt.engine.core.common.businessentities.StoragePool pool , java.lang.String message , java.lang.Object ... args ) { if ( ! ( ovfOnAnyDomainSupported ( pool ) ) ) { org.ovirt.engine.core.bll.OvfDataUpdater.log.info ( message , args ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.Disk loadDiskById ( org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.core.bll.AttachDiskToVmCommand.getDiskDao ( ) . get ( id ) ; }

Target:
protected boolean isOperationPerformedOnDiskSnapshot ( ) { return ( org.ovirt.engine.core.bll.AttachDiskToVmCommand.getParameters ( ) . getSnapshotId ( ) ) != null ; }
Source:
public void testDomainWithEnoughSpace ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidatorTest.mockStorageDomain ( 6 , 756 , StorageType.NFS ) ) ; org.junit.Assert.assertTrue ( "Domain should have more space then threshold" , validator.isDomainWithinThresholds ( ) . isValid ( ) ) ; }

Target:
public void testDomainWithEnoughSpace ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidatorTest.mockStorageDomain ( 6 , 756 , StorageType.NFS ) ) ; org.junit.Assert.assertThat ( "Domain should have more space then threshold" , validator.isDomainWithinThresholds ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface result = dao.get ( existingVdsInterface.getId ( ) ) ; org.junit.Assert.assertEquals ( existingVdsInterface , result ) ; }

Target:
public void testGetVdsInterfacesByNetworkId ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface > result = dao.getVdsInterfacesByNetworkId ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertEquals ( existingVdsInterface , result.get ( 0 ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { PostOnSave ( result.getReturnValue ( ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { PostOnSave ( result.getReturnValue ( ) ) ; }
Source:
protected void removeVmRelatedEntitiesFromDb ( ) { org.ovirt.engine.core.bll.AddVmCommand.RemoveVmUsers ( ) ; org.ovirt.engine.core.bll.AddVmCommand.RemoveVmNetwork ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.AddVmCommand.RemoveVmStatic ( ) ; }

Target:
protected void removeVmRelatedEntitiesFromDb ( ) { org.ovirt.engine.core.bll.AddVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.AddVmCommand.removeVmNetwork ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.AddVmCommand.removeVmStatic ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeSnapshotDelete ( java.lang.String snapshotName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterSnapshotInfo ( java.lang.String snapshotName , java.lang.String volumeName ) ;
Source:
public org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureByCpuName ( java.lang.String name , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.getArchitectureByCpuName ( name ) ; } return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureByCpuName ( java.lang.String name , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler.managersDictionary.get ( ver ) ; return cpuFlagsManager != null ? cpuFlagsManager.getArchitectureByCpuName ( name ) : null ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { }

Target:
private void AttachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.AttachStorageDomainToPool , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( storageId , dataCenterId ) , null , this ) ; }
Source:
private void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { isPluggedEditor.setLabel ( constants.activateVmDiskPopup ( ) ) ; }

Target:
private void localize ( ) { isPluggedEditor.setLabel ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmDiskAttachPopupWidget.constants.activateVmDiskPopup ( ) ) ; isPluggedEditor.setWidgetTooltip ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmDiskAttachPopupWidget.constants.activateVmDiskPopupToolTip ( ) ) ; isPluggedEditor.getContentWidgetContainer ( ) . setWidth ( "90px" ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
public void onEditSnapshotSchedule ( ) { final org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotModel snapshotModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotModel ) ( getWindow ( ) ) ) ; if ( ! ( snapshotModel.validate ( false ) ) ) { return ; } scheduleSnapshot ( snapshotModel , true ) ; }

Target:
private void onEditSnapshotScheduleInternal ( ) { final org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotModel snapshotModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotModel ) ( getWindow ( ) ) ) ; if ( ! ( snapshotModel.validate ( false ) ) ) { return ; } setConfirmWindow ( null ) ; scheduleSnapshot ( snapshotModel , true ) ; }
Source:
private void assertThatVmNotHavingPassthroughVnics ( boolean valid ) { org.junit.Assert.assertThat ( validator.vmNotHavingPassthroughVnics ( ) , ( valid ? org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) : org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MIGRATION_OF_PASSTHROUGH_VNICS_IS_NOT_SUPPORTED ) ) ) ; }

Target:
private void assertThatVmNotHavingPassthroughVnics ( boolean valid ) { org.junit.Assert.assertThat ( validator.vmNotHavingPassthroughVnics ( ) , ( valid ? org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) : org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIGRATION_OF_PASSTHROUGH_VNICS_IS_NOT_SUPPORTED ) ) ) ; }
Source:
public java.lang.Boolean isRaiseErrorModalPanel ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.errors.VdcFault fault ) { return ( actionType != ( org.ovirt.engine.core.common.action.VdcActionType.LoginUser ) ) && ( ! ( ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.VmLogon ) ) && ( ( fault.getError ( ) ) == ( org.ovirt.engine.core.common.errors.EngineError.nonresp ) ) ) ) ; }

Target:
public java.lang.Boolean isRaiseErrorModalPanel ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.errors.EngineFault fault ) { return ( actionType != ( org.ovirt.engine.core.common.action.VdcActionType.LoginUser ) ) && ( ! ( ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.VmLogon ) ) && ( ( fault.getError ( ) ) == ( org.ovirt.engine.core.common.errors.EngineError.nonresp ) ) ) ) ; }
Source:
private org.ovirt.engine.core.common.action.RecoveryStoragePoolParameters getRecoveryStoragePoolParametersData ( ) { org.ovirt.engine.core.common.action.VdcActionParametersBase tempVar = getParameters ( ) ; return ( ( org.ovirt.engine.core.common.action.RecoveryStoragePoolParameters ) ( tempVar instanceof org.ovirt.engine.core.common.action.RecoveryStoragePoolParameters ? tempVar : null ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain loadTargetedMasterDomain ( ) { return getStorageDomainDAO ( ) . get ( _newMasterStorageDomainId ) ; }
Source:
public void setvm_creation_date ( java.util.Date value ) { this . mVmStatic.setcreation_date ( value ) ; }

Target:
public void setVmCreationDate ( java.util.Date value ) { this . vmStatic.setCreationDate ( value ) ; }
Source:
public void addToHistory_addingNull ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 1 , 2 ) , statistics.addToHistory ( java.util.Arrays.asList ( 1 , 2 ) , null , 100 ) ) ; }

Target:
public void addToHistoryAddingNull ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 1 , 2 ) , statistics.addToHistory ( java.util.Arrays.asList ( 1 , 2 ) , null , 100 ) ) ; }
Source:
private boolean isItemsContainDataDomains ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel storageModel : getModel ( ) . getItems ( ) ) { if ( ( storageModel.getRole ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Data ) ) { return true ; } } return false ; }

Target:
public boolean shouldShowDataCenterAlert ( org.ovirt.engine.core.common.businessentities.StoragePool selectedDataCenter ) { return ( ( selectedDataCenter != null ) && ( ! ( getModel ( ) . UnassignedDataCenterId.equals ( selectedDataCenter.getId ( ) ) ) ) ) && ( ! ( isImportDataDomainEnabled ( selectedDataCenter ) ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VDS > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostPermissionPresenter.constants.hostPermissionSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostPermissionPresenter.constants.hostPermissionSubTabLabel ( ) , 5 ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkAttachmentIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ) . when ( ( ( attachment ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkAttachmentIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS , HostSetupNetworksValidator.VAR_NETWORK_ATTACHMENT_NOT_EXISTS_ENTITY , "null" ) . when ( ( ( attachment ) == null ) ) ; }