auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.template.SubTabTemplateGeneralPresenter.constants.templateGeneralSubTabLabel ( ) , 0 , 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.template.SubTabTemplateGeneralPresenter.constants.templateGeneralSubTabLabel ( ) , 0 ) ; }
Source:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , T id ) { return ( id != null ) && ( id.equals ( entity.getId ( ) ) ) ; }

Target:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , T id ) { return ( id != null ) && ( id.equals ( entity.getId ( ) ) ) ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy getRetryPolicy ( ) { return this . client.getRetryPolicy ( ) ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy getClientRetryPolicy ( ) { return this . client.getRetryPolicy ( ) ; }
Source:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; super . syncSearch ( VdcQueryType.GetAllAuditLogsByVMId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }

Target:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; super . syncSearch ( QueryType.GetAllAuditLogsByVMId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }
Source:
public void testGetAllForAdElementFilteredWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForAdElement ( org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }

Target:
public void testGetAllForAdElementFilteredWithPermissions ( ) { org.junit.Assert.assertNotNull ( privilegedUserSession ) ; java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForAdElement ( org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , privilegedUserSession.getId ( ) , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertValidGetByAdElement ( result ) ; }
Source:
private void removeMemoryDisksIfNeeded ( java.lang.String hiberVol ) { if ( org.apache.commons.lang.StringUtils.isNotEmpty ( hiberVol ) ) { org.ovirt.engine.core.bll.StopVmCommandBase.removeHibernationDisks ( hiberVol ) ; } }

Target:
private void removeMemoryDisksIfNeeded ( java.lang.String hiberVol ) { if ( org.apache.commons.lang.StringUtils.isNotEmpty ( hiberVol ) ) { org.ovirt.engine.core.bll.StopVmCommandBase.removeMemoryDisks ( hiberVol ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmPool object ) { return java.lang.Integer.toString ( object.getvm_running_count ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmPool object ) { return java.lang.Integer.toString ( object.getRunningVmsCount ( ) ) ; }
Source:
protected void executeCommand ( ) { getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { registerRollbackHandler ( new org.ovirt.engine.core.bll.RemoveMacPoolCommand.CustomTransactionCompletionListener ( ) ) ; getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; poolPerDc.removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
protected void setUpGetPayloadsExpectations ( int times ) throws java.lang.Exception { for ( int i = 0 ; i < times ; i ++ ) { setUpGetPayloadExpectations ( i ) ; } }

Target:
private void setUpGetBallooningExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.IsBalloonEnabled , org.ovirt.engine.core.common.queries.GetVmByVmIdParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true ) ; }
Source:
private void releaseHostDevicesLock ( ) { if ( needsHostDevices ) { hostDeviceManager.releaseHostDevicesLock ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVds ( ) ) ; } }

Target:
private void markHostDevicesAsUsed ( ) { if ( needsHostDevices ) { hostDeviceManager.allocateVmHostDevices ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } }
Source:
public void setpm_enabled ( boolean value ) { mVdsStatic.setpm_enabled ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "pm_enabled" ) ) ; }

Target:
public org.ovirt.engine.core.common.queries.ValueObjectMap getPmSecondaryOptionsMap ( ) { return mVdsStatic.getPmSecondaryOptionsMap ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc reset ( java.lang.String vmId ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServicesList ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String [ ] serviceNames ) ;
Source:
public void testCanDoActionLunDisk ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_LUN_DISK ) ; }

Target:
public void testCanDoActionLunDisk ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public void replaceProductKeyEmptyKeyShouldNotRemoveTheWholeSectionForCustomScript ( ) { java.lang.String res = org.ovirt.engine.core.vdsbroker.vdsbroker.SysprepHandler.replaceProductKey ( sysprepFile , "" , true ) ; org.junit.Assert.assertThat ( res , org.hamcrest.core.StringContains.containsString ( "<ProductKey>" ) ) ; org.junit.Assert.assertThat ( res , org.hamcrest.core.StringContains.containsString ( "</ProductKey>" ) ) ; }

Target:
public void replaceProductKeyEmptyKeyShouldNotRemoveTheWholeSectionForCustomScript ( ) { java.lang.String res = org.ovirt.engine.core.vdsbroker.vdsbroker.SysprepHandler.replaceProductKey ( sysprepFile , "" , true ) ; org.hamcrest.MatcherAssert.assertThat ( res , org.hamcrest.core.StringContains.containsString ( "<ProductKey>" ) ) ; org.hamcrest.MatcherAssert.assertThat ( res , org.hamcrest.core.StringContains.containsString ( "</ProductKey>" ) ) ; }
Source:
public java.lang.String getName ( ) { return getEntity ( ) . getName ( ) ; }

Target:
public java.lang.String getName ( ) { return vmName ; }
Source:
public void setis_initialized ( boolean value ) { this . mVmStatic.setis_initialized ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "is_initialized" ) ) ; }

Target:
public void setInitialized ( boolean value ) { this . vmStatic.setInitialized ( value ) ; }
Source:
public javax.ws.rs.core.Response suspend ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.HibernateVm , new org.ovirt.engine.core.common.action.HibernateVmParameters ( guid ) , action ) ; }

Target:
public javax.ws.rs.core.Response suspend ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.HibernateVm , new org.ovirt.engine.core.common.action.VmOperationParameterBase ( guid ) , action ) ; }
Source:
public void testIsManagementNetworkNameInGivenClusterNull ( ) throws java.lang.Exception { testIsManagementNetworkNameInGivenClusterCommon ( null , false ) ; }

Target:
public void testIsManagementNetworkNameNullInGivenCluster ( ) throws java.lang.Exception { testIsManagementNetworkNameInGivenClusterCommon ( null , org.ovirt.engine.core.bll.network.cluster.ManagementNetworkUtilImplTest.TEST_CLUSTER_ID , false ) ; }
Source:
private org.ovirt.engine.core.common.action.VdcActionType getSnapshotActionType ( ) { return org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVm ( ) . isDown ( ) ? org.ovirt.engine.core.common.action.VdcActionType.RemoveSnapshotSingleDisk : org.ovirt.engine.core.common.action.VdcActionType.RemoveSnapshotSingleDiskLive ; }

Target:
private org.ovirt.engine.core.common.action.VdcActionType getSnapshotActionType ( ) { return org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVm ( ) . isQualifiedForLiveSnapshotMerge ( ) ? org.ovirt.engine.core.common.action.VdcActionType.RemoveSnapshotSingleDiskLive : org.ovirt.engine.core.common.action.VdcActionType.RemoveSnapshotSingleDisk ; }
Source:
private org.ovirt.engine.api.model.DetailedLink createLink ( java.lang.String rel , org.ovirt.engine.api.common.util.LinkHelper.LinkFlags flags , org.ovirt.engine.api.model.ParametersSet params ) { return org.ovirt.engine.api.common.util.LinkHelper.createLink ( getUriInfo ( ) . getBaseUri ( ) . getPath ( ) , rel , flags , params ) ; }

Target:
private java.util.Collection < org.ovirt.engine.api.model.DetailedLink > getLinks ( ) { return org.ovirt.engine.api.restapi.util.ApiRootLinksCreator.getLinks ( getUriInfo ( ) ) ; }
Source:
public java.lang.Long getswap_free ( ) { return this . swap_free ; }

Target:
public java.lang.Long getSwapFree ( ) { return this . swapFree ; }
Source:
public static void GetTemplateListByDataCenter ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetVmTemplatesByStoragePoolId , new org.ovirt.engine.core.common.queries.GetVmTemplatesByStoragePoolIdParameters ( dataCenterId ) , aQuery ) ; }

Target:
public static void getTemplateListByDataCenter ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetVmTemplatesByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) , aQuery ) ; }
Source:
protected int colorDepthAsInt ( ) { if ( ( getWANColorDepth ( ) ) != null ) { return getWANColorDepth ( ) . asInt ( ) ; } return WanColorDepth.depth16.asInt ( ) ; }

Target:
protected int colorDepthAsInt ( ) { if ( ( getWANColorDepth ( ) ) != null ) { return getWANColorDepth ( ) . asInt ( ) ; } return ConsoleOptions.WanColorDepth.depth16.asInt ( ) ; }
Source:
protected org.ovirt.engine.core.bll.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) ; }

Target:
public org.ovirt.engine.core.bll.context.CommandContext cloneContextAndDetachFromParent ( ) { return cloneContext ( ) . withoutCompensationContext ( ) . withoutExecutionContext ( ) . withoutLock ( ) ; }
Source:
public org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , long datum ) { return setDatum ( statistic , new java.math.BigDecimal ( datum ) ) ; }

Target:
public org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , long datum ) { return org.ovirt.engine.api.restapi.utils.StatisticResourceUtils.setDatum ( statistic , datum ) ; }
Source:
private void mockConfig ( ) { mcr.mockConfigValue ( ConfigValues.PredefinedVMProperties , "3.0" , "" ) ; mcr.mockConfigValue ( ConfigValues.UserDefinedVMProperties , "3.0" , "" ) ; mcr.mockConfigValue ( ConfigValues.InitStorageSparseSizeInGB , 1 ) ; }

Target:
private void mockConfig ( ) { mcr.mockConfigValue ( ConfigValues.PredefinedVMProperties , Version.v3_0 , "" ) ; mcr.mockConfigValue ( ConfigValues.UserDefinedVMProperties , Version.v3_0 , "" ) ; mcr.mockConfigValue ( ConfigValues.InitStorageSparseSizeInGB , 1 ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , diskAlias , diskDescription , propagateErrors , shareable , wipeAfterDelete , sgio , cinderVolumeType ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , diskAlias , diskDescription , propagateErrors , shareable , wipeAfterDelete , sgio , cinderVolumeType , contentType ) ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand.getStorageDomainId ( ) . toString ( ) , LockingGroup.STORAGE.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand.getStorageDomainId ( ) . toString ( ) , LockMessagesMatchUtil.STORAGE ) ; }
Source:
public void testGetVMDefaultConstraint ( ) throws java.lang.Exception { doTestGetDefaultConstraint ( org.ovirt.engine.api.model.VM.class , "VMs : " ) ; }

Target:
public void testGetVMDefaultConstraint ( ) throws java.lang.Exception { doTestGetDefaultConstraint ( org.ovirt.engine.api.model.Vm.class , "VMs : " ) ; }
Source:
public java.lang.Integer getVmPid ( ) { return this . vmPid ; }

Target:
public java.lang.Integer getPid ( ) { return this . pid ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > list = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > ) ( source ) ) ; return list ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > list = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > ) ( source ) ) ; return list ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > ( ) ; }
Source:
protected org.ovirt.engine.api.model.Storage addParents ( org.ovirt.engine.api.model.Storage storage ) { storage.setHost ( new org.ovirt.engine.api.model.Host ( ) ) ; storage.getHost ( ) . setId ( hostId ) ; return storage ; }

Target:
protected org.ovirt.engine.api.model.HostStorage addParents ( org.ovirt.engine.api.model.HostStorage storage ) { storage.setHost ( new org.ovirt.engine.api.model.Host ( ) ) ; storage.getHost ( ) . setId ( hostId ) ; return storage ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.getImageSourceLocalEnabled ( ) . setEntity ( true ) ; setSourceVisibility ( model ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.getImageSourceLocalEnabled ( ) . setEntity ( true ) ; setSourceVisibility ( model ) ; }
Source:
public java.lang.String getSearchString ( ) { return searchString ; }

Target:
public java.lang.String getSearchString ( ) { return ( searchString ) + ( ( pagingSearchString ) == null ? "" : pagingSearchString ) ; }
Source:
public void setSnapshot ( org.ovirt.engine.core.common.businessentities.Snapshot value ) { if ( ( snapshot ) != value ) { snapshot = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Snapshot" ) ) ; } }

Target:
public void setSnapshot ( org.ovirt.engine.core.common.businessentities.Snapshot value ) { if ( ( snapshot ) != value ) { snapshot = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Snapshot" ) ) ; } }
Source:
public void testGetVMsForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_1 , VmEntityType.VM ) ; org.junit.Assert.assertTrue ( "A VM should be fetched for the specified storage domain" , ( ! ( ovfEntityDataList.isEmpty ( ) ) ) ) ; }

Target:
public void testGetVMsForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_1 , VmEntityType.VM ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( ovfEntityDataList.isEmpty ( ) ) ) , "A VM should be fetched for the specified storage domain" ) ; }
Source:
public void testIsNetworkInSyncWhenMtuDifferent ( ) throws java.lang.Exception { iface.setMtu ( 1 ) ; network.setMtu ( 2 ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testIsNetworkInSyncWhenMtuDifferent ( ) { iface.setMtu ( 1 ) ; network.setMtu ( 2 ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getVmDisks ( ) { return getVm ( ) . getDiskList ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return hostedEngineVm.getStoragePoolId ( ) ; }
Source:
public org.ovirt.engine.api.model.VmPool update ( org.ovirt.engine.api.model.VmPool incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmPoolById , org.ovirt.engine.core.common.queries.GetVmPoolByIdParameters.class ) , VdcActionType.UpdateVmPoolWithVms , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.VmPool update ( org.ovirt.engine.api.model.VmPool incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmPoolById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateVmPoolWithVms , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.UpdateParametersProvider ( ) ) ; }
Source:
java.util.List < org.ovirt.engine.core.compat.Guid > getAllIds ( ) ;

Target:
org.ovirt.engine.core.common.businessentities.storage.ImageTransfer get ( org.ovirt.engine.core.compat.Guid diskId , org.ovirt.engine.core.compat.Guid userId , boolean isFiltered ) ;
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; UpdateProperties ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( super . getEntity ( ) ) != null ) { updateProperties ( ) ; } }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.HOSTED_ENGINE_DOMAIN_IMPORT_SUCCEEDED : org.ovirt.engine.core.common.AuditLogType.HOSTED_ENGINE_DOMAIN_IMPORT_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.ImportHostedEngineStorageDomainCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.HOSTED_ENGINE_DOMAIN_IMPORT_SUCCEEDED : org.ovirt.engine.core.common.AuditLogType.HOSTED_ENGINE_DOMAIN_IMPORT_FAILED ; }
Source:
public void setGuestOs ( java.lang.String value ) { this . vmDynamic.setguest_os ( value ) ; }

Target:
public java.lang.String getDisplayIp ( ) { return this . vmDynamic.getDisplayIp ( ) ; }
Source:
public void RemoveVds ( org.ovirt.engine.core.compat.Guid vdsId , boolean newHost ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = GetVdsManager ( vdsId , newHost ) ; if ( vdsManager != null ) { vdsManager.dispose ( ) ; vdsManagersDict.remove ( vdsId ) ; } }

Target:
public void removeVds ( org.ovirt.engine.core.compat.Guid vdsId , boolean newHost ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = getVdsManager ( vdsId , newHost ) ; if ( vdsManager != null ) { vdsManager.dispose ( ) ; vdsManagersDict.remove ( vdsId ) ; } }
Source:
public void testQueryType ( ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { junit.framework.Assert.assertNotSame ( "The query can't be found in the enum VdcQueryType" , VdcQueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }

Target:
public void testQueryType ( ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { org.junit.Assert.assertNotSame ( "The query can't be found in the enum VdcQueryType" , VdcQueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }
Source:
public void readData ( java.io.ObjectInputStream dis ) { synchronized ( ovirt_engine_dwh.historydelete_3_5.HistoryDelete.row23Struct.commonByteArrayLock_OVIRT_ENGINE_DWH_HistoryDelete ) { try { int length = 0 ; this . history_id = dis.readInt ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } } }

Target:
public void readData ( java.io.ObjectInputStream dis ) { synchronized ( ovirt_engine_dwh.historydelete_3_5.HistoryDelete.row23Struct.commonByteArrayLock_OVIRT_ENGINE_DWH_HistoryDelete ) { try { int length = 0 ; this . history_id = dis.readLong ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } } }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { return ! ( existingSessionSlavesIds.contains ( slaveVolume.getId ( ) ) ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { return ! ( existingSessionSlavesIds.contains ( slaveVolume.getId ( ) ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkAttachment newNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface targetNic , org.ovirt.engine.ui.uicommonweb.models.hosts.network.DataFromHostSetupNetworksModel dataFromHostSetupNetworksModel ) { return org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.newNetworkAttachment ( network , targetNic , null , dataFromHostSetupNetworksModel ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkAttachment newNetworkAttachment ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface baseNic , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vlanDevice , java.util.List < java.lang.String > networksToSync ) { return org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.newNetworkAttachment ( network , baseNic , vlanDevice , null , networksToSync ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; clusterGuideModel.localStorageHost = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; clusterGuideModel.updateOptionsLocalFS ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.VDS localStorageHost = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; clusterGuideModel.localStorageHost = localStorageHost ; clusterGuideModel.updateOptionsLocalFS ( ) ; }
Source:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; final org.ovirt.engine.core.compat.Guid anotherManagementNetworkId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; addManagementNetworksToPool ( anotherManagementNetworkId , org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.TEST_MANAGEMENT_NETWORK_ID ) ; setupNetworkValidator ( false ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public int getMaxPciDevices ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
java.util.Set < java.lang.String > getUnsupportedCpus ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { showAvailableVolumes ( ReturnValue ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { showAvailableVolumes ( returnValue ) ; }
Source:
private static < T extends org.ovirt.engine.core.common.businessentities.BusinessEntity < ? > > void updateAllInTransaction ( final java.util.Collection < T > entities , final org.ovirt.engine.core.dao.MassOperationsDao < T > dao ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.updateAllInTransaction ( null , entities , dao ) ; }

Target:
private static < T extends org.ovirt.engine.core.common.businessentities.BusinessEntity < ? > , ID extends java.io.Serializable > void updateAllInTransaction ( final java.util.Collection < T > entities , final org.ovirt.engine.core.dao.MassOperationsDao < T , ID > dao ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.updateAllInTransaction ( null , entities , dao ) ; }
Source:
protected java.util.Collection < org.ovirt.engine.api.restapi.resource.VM > getEntitiesFromExportDomain ( ) { org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters params = new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( getDataCenterId ( storageDomainId ) , storageDomainId ) ; return getBackendCollection ( VdcQueryType.GetVmsFromExportDomain , params ) ; }

Target:
protected java.util.Collection < org.ovirt.engine.api.restapi.resource.VM > getEntitiesFromExportDomain ( ) { org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters params = new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( getDataCenterId ( storageDomainId ) , storageDomainId ) ; return getBackendCollection ( QueryType.GetVmsFromExportDomain , params ) ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel o1 , org.ovirt.engine.ui.uicommonweb.models.storage.LunModel o2 ) { int val1 = o1.getAdditionalAvailableSize ( ) ; int val2 = o2.getAdditionalAvailableSize ( ) ; return java.lang.Integer.compare ( val1 , val2 ) ; }

Target:
public void makeSortable ( ) { makeSortable ( java.util.Comparator.comparingInt ( LunModel :: getAdditionalAvailableSize ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return getEntity ( object ) . getOrigin ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData importVmData ) { return importVmData.getVm ( ) . getOrigin ( ) ; }
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; image.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; image.setActive ( true ) ; image.setImageStatus ( ImageStatus.OK ) ; image.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( image ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; org.ovirt.engine.core.utils.ovf.xml.XmlNode xmlDiskStorageType = node.SelectSingleNode ( "rasd:DiskStorageType" , _xmlNS ) ; java.lang.String diskStorageTypeFromOvf = ( xmlDiskStorageType != null ) ? xmlDiskStorageType.innerText : null ; if ( org.apache.commons.lang.StringUtils.isNotEmpty ( diskStorageTypeFromOvf ) ) { org.ovirt.engine.core.common.businessentities.storage.DiskStorageType diskStorageType = org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.valueOf ( diskStorageTypeFromOvf ) ; if ( diskStorageType == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.CINDER ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { cleanHostParametersFields ( ) ; if ( ( getIsDiscorveredHosts ( ) . getEntity ( ) ) != null ) { updateHostList ( getIsDiscorveredHosts ( ) . getEntity ( ) ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getProviders ( ) . setIsChangable ( false ) ; providers_SelectedItemChanged ( ) ; updateHostList ( ) ; }
Source:
public org.ovirt.engine.core.bll.snapshots.SnapshotsManager getSnapshotManager ( ) { return new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) ; }

Target:
public org.ovirt.engine.core.bll.snapshots.SnapshotsManager getSnapshotManager ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.snapshots.SnapshotsManager.class ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present , java.lang.String width ) { table.ensureColumnPresent ( column , headerText , present , width ) ; tableHeader.ensureColumnPresent ( column , headerText , present , width ) ; }

Target:
public void ensureColumnVisible ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean visible ) { table.ensureColumnVisible ( column , headerText , visible ) ; tableHeader.ensureColumnVisible ( column , headerText , visible ) ; }
Source:
public void testParseNoOptions ( ) { java.util.List < org.ovirt.engine.api.model.PowerManagement > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:" , "" ) ; assertNotNull ( ret ) ; assertEquals ( 1 , ret.size ( ) ) ; verifyResult ( ret.get ( 0 ) , "foo" ) ; }

Target:
public void testParseNoOptions ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:" , "" ) ; assertNotNull ( ret ) ; assertEquals ( 1 , ret.size ( ) ) ; verifyResult ( ret.get ( 0 ) , "foo" ) ; }
Source:
public void testEmptyDiskStats ( ) { java.util.Map < java.lang.String , java.lang.Object > disksStats = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct xml = setDisksStatsInXmlRpc ( disksStats ) ; validateDisksStatsList ( getVds ( ) , xml , false ) ; }

Target:
public void testEmptyDiskStats ( ) { java.util.Map < java.lang.String , java.lang.Object > disksStats = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksStatsInXmlRpc ( disksStats ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksStatsList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVds ( ) , xml , false ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLunsByVgId ( java.lang.String vgId ) { return asCollection ( org.ovirt.engine.core.common.businessentities.storage.LUNs.class , getEntity ( java.util.List.class , VdcQueryType.GetLunsByVgId , new org.ovirt.engine.core.common.queries.GetLunsByVgIdParameters ( vgId ) , ( "LUNs for volume group: id=" + vgId ) ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getLunsByVgId ( java.lang.String vgId ) { return asCollection ( org.ovirt.engine.core.common.businessentities.storage.LUNs.class , getEntity ( java.util.List.class , QueryType.GetLunsByVgId , new org.ovirt.engine.core.common.queries.GetLunsByVgIdParameters ( vgId ) , ( "LUNs for volume group: id=" + vgId ) ) ) ; }
Source:
protected void addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message.name ( ) ) ; }

Target:
protected void addCanDoActionMessageVariable ( java.lang.String varName , java.lang.Object varValue ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( java.lang.String.format ( "$%s %s" , varName , varValue ) ) ; }
Source:
public static < TSource > TSource FirstOrDefault ( java.lang.Iterable < TSource > source ) { for ( TSource item : source ) { return item ; } return null ; }

Target:
public static < TSource > TSource firstOrDefault ( java.lang.Iterable < TSource > source ) { for ( TSource item : source ) { return item ; } return null ; }
Source:
private void testActionAllowed ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
private void testActionAllowed ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { ( ( org.ovirt.engine.ui.common.widget.AddRemoveRowWidget < M , T , V > . AddRemoveRowPanel ) ( widget.getParent ( ) ) ) . swapButton ( createButton ( item ) ) ; addGhostEntry ( ) ; onAdd ( value , widget ) ; }

Target:
private org.ovirt.engine.ui.common.widget.AddRemoveRowWidget < M , T , V > . AddRemoveRowPanel getEntry ( V widget ) { return ( ( org.ovirt.engine.ui.common.widget.AddRemoveRowWidget < M , T , V > . AddRemoveRowPanel ) ( widget.getParent ( ) ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , parentDeviceName , capability , iommuGroup , productName , productId , vendorName , vendorId , parentPhysicalFunction , totalVirtualFunctions , networkInterfaceName , vmId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , parentDeviceName , capability , iommuGroup , productName , productId , vendorName , vendorId , parentPhysicalFunction , totalVirtualFunctions , networkInterfaceName , vmId , driver ) ; }
Source:
private boolean validateNotTheSameName ( ) { if ( org.ovirt.engine.core.bll.storage.UpdateStorageDomainCommand.isStorageWithSameNameExists ( ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NAME_ALREADY_EXIST ) ; } return true ; }

Target:
private boolean validateNotTheSameName ( ) { if ( org.ovirt.engine.core.bll.storage.UpdateStorageDomainCommand.isStorageWithSameNameExists ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NAME_ALREADY_EXIST ) ; } return true ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPassPkWindow ( true ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPasswordField ( true ) ; }
Source:
public void setpm_options ( java.lang.String value ) { pmOptions = value ; pmOptionsMap = org.ovirt.engine.core.common.businessentities.VdsStatic.PmOptionsStringToMap ( value ) ; }

Target:
public void setPmOptions ( java.lang.String value ) { pmOptions = value ; pmOptionsMap = org.ovirt.engine.core.common.businessentities.VdsStatic.PmOptionsStringToMap ( value ) ; }
Source:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( ( e.PropertyName.equals ( "status" ) ) || ( e.PropertyName.equals ( "pm_enabled" ) ) ) { UpdateActionAvailability ( ) ; } }

Target:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( ( e.PropertyName.equals ( "status" ) ) || ( e.PropertyName.equals ( "pm_enabled" ) ) ) { updateActionAvailability ( ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult requiredValuesPresent ( ) { return ( ( getQos ( ) ) != null ) && ( ( getQos ( ) . getOutAverageLinkshare ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_MISSING_VALUES ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult valuesConsistent ( ) { return valuesConsistent ( null ) ; }
Source:
public java.lang.String getVmDomain ( ) { return this . vmStatic.getDomain ( ) ; }

Target:
public java.lang.String getStopReason ( ) { return this . vmDynamic.getStopReason ( ) ; }
Source:
public void testGetAllForRoleAndAdElementWithInvalidElement ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.permissions > result = dao.getAllForRoleAndAdElement ( org.ovirt.engine.core.dao.PermissionDAOTest.ROLE_ID , org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }

Target:
public void testGetAllForRoleAndAdElementWithInvalidElement ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.permissions > result = dao.getAllForRoleAndAdElement ( org.ovirt.engine.core.dao.PermissionDAOTest.ROLE_ID , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }
Source:
public void testAddInvalidSDStatusMessagePreparingForMaintenance ( ) { testAddInvalidSDStatusMessage ( StorageDomainStatus.PreparingForMaintenance ) ; }

Target:
public void setUp ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.ReconstructMasterDomainCommand ( new org.ovirt.engine.core.common.action.ReconstructMasterParameters ( ) ) ) ; initializeStorageDomains ( ) ; initializeStoragePool ( ) ; initializeStoragePoolValidator ( ) ; org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . initializeVds ( ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( "foo" , resource.getParent ( ) ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( "foo" , resource.getParent ( ) ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
private boolean hasVms ( java.lang.Object selectedItem ) { if ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.VmPool ) { return ( ( ( org.ovirt.engine.core.common.businessentities.VmPool ) ( selectedItem ) ) . getvm_assigned_count ( ) ) != 0 ; } return false ; }

Target:
private boolean hasVms ( java.lang.Object selectedItem ) { if ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.VmPool ) { return ( ( ( org.ovirt.engine.core.common.businessentities.VmPool ) ( selectedItem ) ) . getAssignedVmsCount ( ) ) != 0 ; } return false ; }
Source:
private static int compareSequence ( java.lang.String seq1 , java.lang.String seq2 , boolean digitSequence ) { return digitSequence ? org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.compDigitSequence ( seq1 , seq2 ) : org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.compNonDigitSequence ( seq1 , seq2 ) ; }

Target:
private static int compareSequence ( java.lang.String seq1 , java.lang.String seq2 , boolean digitSequence , boolean caseSensitive ) { return digitSequence ? org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.compDigitSequence ( seq1 , seq2 , caseSensitive ) : org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.compNonDigitSequence ( seq1 , seq2 , caseSensitive ) ; }
Source:
public void setId ( java.lang.String id ) { this . id = id ; }

Target:
public void setUuid ( java.lang.String uuid ) { this . uuid = uuid ; }
Source:
public void setDedicatedHost ( org.ovirt.engine.core.compat.Guid dedicatedHost ) { this . dedicatedHost = dedicatedHost ; }

Target:
public void setDedicatedHostList ( java.util.List < org.ovirt.engine.core.compat.Guid > dedicatedHosts ) { if ( dedicatedHosts == null ) { this . dedicatedHostList = java.util.Collections.< org.ovirt.engine.core.compat.Guid > emptyList ( ) ; return ; } this . dedicatedHostList = dedicatedHosts ; }
Source:
public void validateCanDoAction ( ) { mockVMPoolDAO ( ) ; setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void validateCanDoAction ( ) { mockVMPoolDao ( ) ; setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
public abstract java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) ;

Target:
java.util.concurrent.Future < org.ovirt.engine.core.common.action.VdcReturnValueBase > executeAsyncCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext cmdContext , org.ovirt.engine.core.common.businessentities.SubjectEntity ... subjectEntities ) ;
Source:
public java.util.concurrent.Future < java.lang.Void > close ( ) { return disconnect ( ) ; }

Target:
public final void disconnect ( ) { clearBuff ( ) ; closeChannel ( ) ; }
Source:
public void testGetAllForNetworkForUserWithPermission ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > result = dao.getAllForNetwork ( FixturesTool.NETWORK_ENGINE , org.ovirt.engine.core.dao.network.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testGetAllForNetworkForUserWithPermission ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > result = dao.getAllForNetwork ( FixturesTool.NETWORK_ENGINE , org.ovirt.engine.core.dao.network.PRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , result.size ( ) ) ; }
Source:
public java.lang.String render ( java.lang.Integer object ) { return messages.maxVfs ( object ) ; }

Target:
public java.lang.String render ( java.lang.Integer object ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.host.VfsConfigWidget.messages.maxVfs ( object ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue performImageVdsmOperation ( ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue performImageVdsmOperation ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ( ) ; }
Source:
public java.lang.String getDefaultTitle ( ) { return constants.bootableDisk ( ) ; }

Target:
public com.google.gwt.resources.client.ImageResource getDefaultImage ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.resources.bootableDiskIcon ( ) ; }
Source:
public void testGetManagementNetworks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getManagementNetworks ( FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.NUM_OF_MANAGEMENT_NETWORKS , result.size ( ) ) ; }

Target:
public void testGetManagementNetworks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getManagementNetworks ( FixturesTool.DATA_CENTER ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.NUM_OF_MANAGEMENT_NETWORKS , result.size ( ) ) ; }
Source:
private static boolean checkPermissions ( org.ovirt.engine.core.compat.Guid cpuProfileId , org.ovirt.engine.core.compat.Guid userId ) { return ( userId == null ) || ( ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.getPermissionDao ( ) . getEntityPermissions ( userId , ActionGroup.ASSIGN_CPU_PROFILE , cpuProfileId , VdcObjectType.CpuProfile ) ) != null ) ; }

Target:
private boolean isProfilePermitted ( org.ovirt.engine.core.compat.Guid cpuProfileId , org.ovirt.engine.core.compat.Guid userId ) { return ( userId == null ) || ( ( permissionDao.getEntityPermissions ( userId , ActionGroup.ASSIGN_CPU_PROFILE , cpuProfileId , VdcObjectType.CpuProfile ) ) != null ) ; }