auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void setUpGetPayloadExpectations ( int index ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.VmPayload payload = new org.ovirt.engine.core.common.businessentities.VmPayload ( ) ; setUpGetEntityExpectations ( VdcQueryType.GetVmPayload , org.ovirt.engine.core.common.queries.GetVmByVmIdParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ index ] } , payload ) ; }

Target:
protected void verifyActionModel ( org.ovirt.engine.api.model.VM model , int index ) { assertNotNull ( model ) ; assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDAO ( ) . update ( _vds.getStaticData ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDAO ( ) . update ( _vds.getDynamicData ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . update ( _vds.getStaticData ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . update ( _vds.getDynamicData ( ) ) ; return null ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithUniqueId ( java.lang.String id ) { return getCallsHandler ( ) . executeReadList ( "GetVdsByUniqueID" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_unique_id" , id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithUniqueId ( java.lang.String id ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > vdsList = getCallsHandler ( ) . executeReadList ( "GetVdsByUniqueID" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_unique_id" , id ) ) ; return uniteAgents ( vdsList ) ; }
Source:
public void validateVmMemoryCantStartOnVdsBecauseOfPending ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCantStartOnVdsBecauseOfPending ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.jupiter.api.Assertions.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) , getClass ( ) . getName ( ) ) ; }

Target:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) , LockingGroup.VM.name ( ) ) ; }
Source:
protected void ItemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { super . ItemsCollectionChanged ( sender , e ) ; ResetIsEmpty ( ) ; UpdatePagingAvailability ( ) ; }

Target:
protected void itemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { super . itemsCollectionChanged ( sender , e ) ; ResetIsEmpty ( ) ; UpdatePagingAvailability ( ) ; }
Source:
public void setDetailPlaceTransitionHandler ( org.ovirt.engine.ui.webadmin.section.main.presenter.DetailsTransitionHandler < org.ovirt.engine.core.common.businessentities.Erratum > handler ) { this . detailsTransitionHandler = handler ; }

Target:
public void setDetailPlaceTransitionHandler ( org.ovirt.engine.ui.webadmin.section.main.presenter.DetailsTransitionHandler < org.ovirt.engine.core.common.businessentities.Erratum > handler ) { super . setDetailPlaceTransitionHandler ( handler ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.ErrataTableView.initErrataGrid ( getTable ( ) , true , transitionHandler ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.RepoFileMetaData > getUserRequestForStorageDomainRepoFileList ( ) { return org.ovirt.engine.core.bll.IsoDomainListSyncronizer.getInstance ( ) . getUserRequestForStoragePoolAndDomainRepoFileList ( getStoragePoolId ( ) , getStorageDomainId ( ) , org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.getParameters ( ) . getFileTypeExtension ( ) , org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.getParameters ( ) . getForceRefresh ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.RepoFileMetaData > getUserRequestForStorageDomainRepoFileList ( ) { return org.ovirt.engine.core.bll.IsoDomainListSyncronizer.getInstance ( ) . getUserRequestForStoragePoolAndDomainRepoFileList ( getStoragePoolId ( ) , getStorageDomainId ( ) , org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.getParameters ( ) . getImageType ( ) , org.ovirt.engine.core.bll.GetImagesListByStoragePoolIdQuery.getParameters ( ) . getForceRefresh ( ) ) ; }
Source:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { return null ; }

Target:
public org.ovirt.engine.core.searchbackend.IAutoCompleter getFieldRelationshipAutoCompleter ( java.lang.String fieldName ) { return null ; }
Source:
private boolean hasFreeSpace ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { if ( ( getDiskImageInfo ( ) . getvolume_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ) ) { return doesStorageDomainhaveSpaceForRequest ( storageDomain ) ; } return isStorageDomainBelowThresholds ( storageDomain ) ; }

Target:
private boolean hasFreeSpace ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { if ( ( getDiskImageInfo ( ) . getvolume_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ) ) { return doesStorageDomainhaveSpaceForRequest ( storageDomain ) ; } return isStorageDomainWithinThresholds ( storageDomain ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isOsSupportedForVirtIoScsi ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ! ( org.ovirt.engine.core.bll.validator.VmValidationUtils.isDiskInterfaceSupportedByOs ( vm.getOs ( ) , vm.getVdsGroupCompatibilityVersion ( ) , DiskInterface.VirtIO_SCSI ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isOsSupportedForVirtIoScsi ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ! ( org.ovirt.engine.core.bll.validator.VmValidationUtils.isDiskInterfaceSupportedByOs ( vm.getOs ( ) , vm.getClusterCompatibilityVersion ( ) , DiskInterface.VirtIO_SCSI ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel getImportModel ( ) { org.ovirt.engine.ui.uicommonweb.models.templates.ImportTemplateModel model = new org.ovirt.engine.ui.uicommonweb.models.templates.ImportTemplateModel ( ) ; model.setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . importTemplatesTitle ( ) ) ; model.setHelpTag ( HelpTag.import_template ) ; model.setHashName ( "import_template" ) ; return model ; }

Target:
protected java.lang.String getImportConflictTitle ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . importTemplateConflictTitle ( ) ; }
Source:
protected org.ovirt.engine.core.common.action.FenceVdsActionParameters createParameters ( ) { return new org.ovirt.engine.core.common.action.FenceVdsActionParameters ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.common.businessentities.FenceActionType.Stop ) ; }

Target:
protected org.ovirt.engine.core.common.action.FenceVdsActionParameters createParameters ( ) { return new org.ovirt.engine.core.common.action.FenceVdsActionParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.common.businessentities.FenceActionType.Stop ) ; }
Source:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return new java.lang.String ( ) ; } switch ( type ) { case OPENSTACK_NETWORK : return "http://localhost:9696" ; case FOREMAN : default : return "http://localhost" ; } }

Target:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return new java.lang.String ( ) ; } switch ( type ) { case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case FOREMAN : default : return "http://localhost" ; } }
Source:
public void testAddValueGuid ( ) { org.ovirt.engine.core.compat.Guid guid = new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; paramSource.addValue ( paramName , guid ) ; org.junit.Assert.assertEquals ( "wrong value returned from parameter source" , guid.getUuid ( ) , paramSource.getValue ( paramName ) ) ; }

Target:
public void testAddValueGuid ( ) { org.ovirt.engine.core.compat.Guid guid = new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; paramSource.addValue ( paramName , guid ) ; org.junit.jupiter.api.Assertions.assertEquals ( guid.getUuid ( ) , paramSource.getValue ( paramName ) , "wrong value returned from parameter source" ) ; }
Source:
public java.util.Date getGuestLastLogoutTime ( ) { return this . vmDynamic.getGuestLastLogoutTime ( ) ; }

Target:
public java.lang.String getGuestOsTimezoneName ( ) { return vmDynamic.getGuestOsTimezoneName ( ) ; }
Source:
protected void populateNamespaces ( ) { if ( ( namespacesMap ) != null ) { getNamespace ( ) . setItems ( namespacesMap.get ( ( ( org.ovirt.engine.core.aaa.ProfileEntry ) ( getProfile ( ) . getSelectedItem ( ) ) ) . getAuthz ( ) ) ) ; } }

Target:
public void populateNamespaces ( ) { if ( ( namespacesMap ) != null ) { getNamespace ( ) . setItems ( getAuthzNamespaces ( ) ) ; getNamespace ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( getNamespace ( ) . getItems ( ) ) ) ; } }
Source:
public void updateIfNeeded ( org.ovirt.engine.core.common.businessentities.VdsDynamic vdsDynamic ) { update ( vdsDynamic ) ; }

Target:
public void updateIfNeeded ( org.ovirt.engine.core.common.businessentities.VdsDynamic vdsDynamic ) { org.ovirt.engine.core.common.businessentities.VdsDynamic dbData = get ( vdsDynamic.getId ( ) ) ; if ( ! ( dbData.equals ( vdsDynamic ) ) ) { update ( vdsDynamic ) ; } else { org.ovirt.engine.core.dao.VdsDynamicDAODbFacadeImpl.log.debug ( "Ignored an unneeded update of VdsDynamic" ) ; } }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true ) ; getQuotaManager ( ) . updateUsage ( quotaList ) ; return quotaList ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( quotaDao , true ) ; quotaManager.updateUsage ( quotaList ) ; return quotaList ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections getConnectionFromDbById ( java.lang.String connectionId ) { return org.ovirt.engine.core.bll.storage.AddStorageServerConnectionCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) . get ( connectionId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections getConnectionFromDbById ( java.lang.String connectionId ) { return org.ovirt.engine.core.bll.storage.AddStorageServerConnectionCommand.getStorageConnDao ( ) . get ( connectionId ) ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal , boolean isRunOnlyIfAllCanDoPass , boolean isWaitForResult ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , isRunOnlyIfAllCanDoPass , isWaitForResult , null ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.bll.CommandBase < ? > action , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { org.ovirt.engine.core.bll.job.ExecutionHandler.setExecutionContextForTasks ( action.getContext ( ) , executionContext , null ) ; return runAction ( action , true ) ; }
Source:
public java.lang.Integer getUsageNetworkPercent ( ) { return this . mVdsStatistics.getusage_network_percent ( ) ; }

Target:
public void setUsageMemPercent ( java.lang.Integer value ) { this . mVdsStatistics.setUsageMemPercent ( value ) ; }
Source:
public org.ovirt.engine.api.resource.openstack.OpenStackNetworkProvidersResource getOpenStackNetworkProvidersResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackNetworkProvidersResource ( ) ) ; }

Target:
public org.ovirt.engine.api.resource.openstack.OpenstackNetworkProvidersResource getOpenstackNetworkProvidersResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackNetworkProvidersResource ( ) ) ; }
Source:
public java.lang.String [ ] getLinksToExclude ( org.ovirt.engine.api.restapi.resource.storage_domains storageDomain ) { return org.ovirt.engine.api.restapi.resource.BackendStorageDomainResource.isIsoDomain ( storageDomain ) ? new java.lang.String [ ] { "disks" } : new java.lang.String [ ] { } ; }

Target:
public java.lang.String [ ] getLinksToExclude ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { return org.ovirt.engine.api.restapi.resource.BackendStorageDomainResource.isIsoDomain ( storageDomain ) ? new java.lang.String [ ] { "disks" } : new java.lang.String [ ] { } ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.users.UserPortalAdElementListModel object ) { super . edit ( object ) ; org.ovirt.engine.ui.userportal.section.main.view.popup.permissions.PermissionsPopupView.Driver.driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.users.UserPortalAdElementListModel object ) { super . edit ( object ) ; driver.edit ( object ) ; }
Source:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { if ( ( getVdsDestinationId ( ) ) != null ) { decreasePendingVms ( getVdsDestinationId ( ) ) ; } } }

Target:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { if ( ( getDestinationVdsId ( ) ) != null ) { decreasePendingVms ( getDestinationVdsId ( ) ) ; } } }
Source:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters , engineContext ) ; }

Target:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters , engineContext ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . networkTemplateSubTabLabel ( ) , 4 , ginjector.getSubTabNetworkTemplateModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkTemplateSubTabLabel ( ) , 5 , modelProvider ) ; }
Source:
public void imageNotProvidedForOvirtNode ( ) { mockOvirtNode ( ) ; org.junit.Assert.assertThat ( validator.imageProvidedForOvirtNode ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ) ; }

Target:
public void imageNotProvidedForOvirtNode ( ) { mockOvirtNode ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.imageProvidedForOvirtNode ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ) ; }
Source:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isSoundDeviceEnabled ( getVmId ( ) ) ; }

Target:
protected boolean isBalloonEnabled ( ) { java.lang.Boolean balloonEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isBalloonEnabled ( ) ; return balloonEnabled != null ? balloonEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasMemoryBalloon ( getVmId ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvm_id ( ) { return this . vmId ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { return vmId ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHostCapabilities , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHost , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }
Source:
private void saveConnection ( org.ovirt.engine.core.common.businessentities.storage.LUN_storage_server_connection_map connectionMapRecord ) { if ( ( getStorageServerConnectionLunMapDao ( ) . get ( connectionMapRecord.getId ( ) ) ) == null ) { getStorageServerConnectionLunMapDao ( ) . save ( connectionMapRecord ) ; } }

Target:
private void saveConnection ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap connectionMapRecord ) { if ( ( getStorageServerConnectionLunMapDao ( ) . get ( connectionMapRecord.getId ( ) ) ) == null ) { getStorageServerConnectionLunMapDao ( ) . save ( connectionMapRecord ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( org.ovirt.engine.core.compat.Version ver ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setId ( org.ovirt.engine.core.bll.gluster.GetAddedGlusterServersQueryTest.CLUSTER_ID ) ; vdsGroup.setCompatibilityVersion ( ver ) ; return vdsGroup ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( org.ovirt.engine.core.compat.Version ver ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.GetAddedGlusterServersQueryTest.CLUSTER_ID ) ; cluster.setCompatibilityVersion ( ver ) ; return cluster ; }
Source:
private void prepareHostWithDifferentStatus ( ) { vdsDynamicDao.updateStatus ( existingVds.getId ( ) , VDSStatus.Maintenance ) ; existingVds.setStatus ( VDSStatus.Maintenance ) ; org.junit.Assert.assertNotEquals ( existingVds.getStatus ( ) , existingVds2.getStatus ( ) ) ; }

Target:
private void prepareHostWithDifferentStatus ( ) { vdsDynamicDao.updateStatus ( existingVds.getId ( ) , VDSStatus.Maintenance ) ; existingVds.setStatus ( VDSStatus.Maintenance ) ; org.junit.jupiter.api.Assertions.assertNotEquals ( existingVds.getStatus ( ) , existingVds2.getStatus ( ) ) ; }
Source:
public java.lang.String getPmSecondaryIp ( ) { return mVdsStatic.getPmSecondaryIp ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.AutoNumaBalanceStatus getAutoNumaBalancing ( ) { return mVdsDynamic.getAutoNumaBalancing ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.util.Collections.< org.ovirt.engine.core.common.businessentities.CertificateInfo > emptyList ( ) ; } return source ; }
Source:
org.ovirt.engine.core.bll.validator.NetworkValidator getNetworkValidator ( ) { if ( ( networkValidator ) == null ) { networkValidator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( getNetwork ( ) ) ; } return networkValidator ; }

Target:
org.ovirt.engine.core.bll.validator.NetworkValidator getNetworkValidator ( ) { if ( ( networkValidator ) == null ) { networkValidator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , getNetwork ( ) ) ; } return networkValidator ; }
Source:
protected void ExecuteVdsIdCommand ( ) { if ( ( _vdsManager ) != null ) { setReturnValue ( _vdsManager.activate ( ) ) ; } else { org.ovirt.engine.core.vdsbroker.ActivateVdsVDSCommand.getVDSReturnValue ( ) . setSucceeded ( false ) ; } }

Target:
protected void executeVdsIdCommand ( ) { if ( ( _vdsManager ) != null ) { setReturnValue ( _vdsManager.activate ( ) ) ; } else { org.ovirt.engine.core.vdsbroker.ActivateVdsVDSCommand.getVDSReturnValue ( ) . setSucceeded ( false ) ; } }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > getDisplayTypes ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.displayTypes.get ( osId ) . get ( version ) ; }

Target:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap > getAllLUNStorageServerConnection ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromLUN_storage_server_connection_map" , org.ovirt.engine.core.dao.StorageServerConnectionLunMapDaoImpl.StorageServerConnectionLunMapRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromLUN_storage_server_connection_map" , org.ovirt.engine.core.dao.StorageServerConnectionLunMapDaoImpl.StorageServerConnectionLunMapRowMapper.instance , parameterSource ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { getView ( ) . spiceSelected ( false ) ; getView ( ) . setWanOptionsVisible ( false ) ; getView ( ) . rdpSelected ( false ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectRdpImplementation ( RdpConsoleModel.ClientConsoleMode.Plugin ) ; }
Source:
public void testGetByNameAndVersionWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( "farkle" , existingOption.getversion ( ) ) ; assertNull ( result ) ; }

Target:
public void testGetByNameAndVersionWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( "farkle" , existingOption.getversion ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private void mockVmDao ( ) { org.mockito.Mockito.when ( vmDao.getAllRunningForVds ( org.mockito.Mockito.eq ( org.ovirt.engine.core.bll.StartVdsCommandTest.FENCECD_HOST_ID ) ) ) . thenReturn ( new java.util.LinkedList < org.ovirt.engine.core.common.businessentities.VM > ( ) ) ; org.mockito.Mockito.when ( dbFacade.getVmDao ( ) ) . thenReturn ( vmDao ) ; }

Target:
private void mockVmDao ( ) { org.mockito.Mockito.when ( vmDao.getAllRunningForVds ( org.mockito.Matchers.eq ( org.ovirt.engine.core.bll.StartVdsCommandTest.FENCECD_HOST_ID ) ) ) . thenReturn ( new java.util.LinkedList < org.ovirt.engine.core.common.businessentities.VM > ( ) ) ; org.mockito.Mockito.when ( dbFacade.getVmDao ( ) ) . thenReturn ( vmDao ) ; }
Source:
private static java.util.List < java.lang.String > getConsoleDevicesForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource resouce , org.ovirt.engine.core.compat.Guid id ) { return resouce.getEntity ( java.util.List.class , VdcQueryType.GetConsoleDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetConsoleDevices" , true ) ; }

Target:
private static java.util.List < java.lang.String > getConsoleDevicesForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource resouce , org.ovirt.engine.core.compat.Guid id ) { return resouce.getEntity ( java.util.List.class , QueryType.GetConsoleDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetConsoleDevices" , true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , StringUtils.EMPTY , compensationContext ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public void testUpdateLUNs ( ) { dao.update ( existingLUN ) ; org.ovirt.engine.core.common.businessentities.LUNs result = dao.get ( existingLUN.getLUN_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingLUN , result ) ; }

Target:
public void testUpdateLUNs ( ) { dao.update ( existingLUN ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs result = dao.get ( existingLUN.getLUN_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingLUN , result ) ; }
Source:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.ExportVmCommand.EndActionOnAllImageGroups ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.ExportVmCommand.endActionOnAllImageGroups ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }
Source:
private boolean CanFindAnyVds ( java.util.List < java.lang.String > messages , boolean isMigrate ) { return CanFindVdsToRun ( messages , isMigrate , org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }

Target:
private boolean canFindAnyVds ( java.util.List < java.lang.String > messages , boolean isMigrate ) { return canFindVdsToRun ( messages , isMigrate , org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { switchTab ( tab ) ; }

Target:
public void onShown ( org.gwtbootstrap3.client.shared.event.TabShownEvent event ) { switchTab ( event.getTab ( ) ) ; }
Source:
public void updateWithCpuLowerThanHost ( ) { createSimpleCommand ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; clusterHasVds ( ) ; cpuFlagsMissing ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }

Target:
public void updateWithCpuLowerThanHost ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; clusterHasVds ( ) ; cpuFlagsMissing ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.StopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.StopProgress ( ) ; cancel ( ) ; }
Source:
protected void updateImage ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { getImageDao ( ) . update ( disk.getImage ( ) ) ; }

Target:
protected void updateImage ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.bll.ImportVmCommand.getImageDao ( ) . update ( disk.getImage ( ) ) ; }
Source:
public void refreshTabs ( ) { org.ovirt.engine.ui.common.presenter.DynamicTabContainerPresenter.getView ( ) . removeTabs ( ) ; com.gwtplatform.mvp.client.RequestTabsEvent.fire ( this , requestTabsEventType , this ) ; }

Target:
public void execute ( ) { getView ( ) . removeTabs ( ) ; com.gwtplatform.mvp.client.RequestTabsEvent.fire ( this , requestTabsEventType , this ) ; }
Source:
public void testEvent ( ) { testValidSql ( "Event: " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=error " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE audit_log.severity = '2' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=alert " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE audit_log.severity = '10' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: host.name = \"host1\" " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log LEFT OUTER JOIN vds_with_tags ON audit_log.vds_id=vds_with_tags.vds_id WHERE (vds_with_tags.vds_name IS NULL OR vds_with_tags.vds_name LIKE host1) AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testEvent ( ) { testValidSql ( "Event: " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=error " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE audit_log.severity = '2' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=alert " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE audit_log.severity = '10' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: host.name = \"host1\" " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log LEFT OUTER JOIN vds_with_tags ON audit_log.vds_id=vds_with_tags.vds_id WHERE vds_with_tags.vds_name LIKE host1 AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) == ( event.getNativeEvent ( ) . getKeyCode ( ) ) ) { ctx.setInModel ( editor.getValue ( ) ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) == ( event.getNativeEvent ( ) . getKeyCode ( ) ) ) { if ( ctx.canSetInModel ( ) ) { ctx.setInModel ( editor.getValue ( ) ) ; } } }
Source:
private void validateSnapshotExistence ( org.ovirt.engine.api.model.VM vm ) { org.ovirt.engine.api.model.Snapshot snapshot = vm.getSnapshots ( ) . getSnapshots ( ) . get ( 0 ) ; validateParameters ( snapshot , "id" ) ; }

Target:
private void validateSnapshotExistence ( org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.api.model.Snapshot snapshot = vm.getSnapshots ( ) . getSnapshots ( ) . get ( 0 ) ; validateParameters ( snapshot , "id" ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.VdsManager GetVdsManager ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManger = vdsManagersDict.get ( vdsId ) ; if ( vdsManger == null ) { org.ovirt.engine.core.vdsbroker.ResourceManager.log.errorFormat ( "Cannot get vdsManager for vdsid={0}" , vdsId ) ; } return vdsManger ; }

Target:
public org.ovirt.engine.core.vdsbroker.VdsManager GetVdsManager ( org.ovirt.engine.core.compat.Guid vdsId , boolean newHost ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManger = vdsManagersDict.get ( vdsId ) ; if ( vdsManger == null ) { if ( ! newHost ) { org.ovirt.engine.core.vdsbroker.ResourceManager.log.errorFormat ( "Cannot get vdsManager for vdsid={0}" , vdsId ) ; } } return vdsManger ; }
Source:
java.lang.String getButtonToolTip ( ) ;

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( ) ;
Source:
private static int anyInt ( ) { return org.apache.commons.lang.math.RandomUtils.nextInt ( ) ; }

Target:
private static int anyInt ( ) { return org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( ) ; }
Source:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case EXTERNAL_NETWORK : case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case OPENSTACK_VOLUME : return "http://localhost:8776" ; case VMWARE : return "" ; case KVM : return "" ; case FOREMAN : default : return "http://localhost" ; } }

Target:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case EXTERNAL_NETWORK : case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case OPENSTACK_VOLUME : return "http://localhost:8776" ; case VMWARE : return "" ; case KVM : return "" ; case XEN : return "" ; case FOREMAN : default : return "http://localhost" ; } }
Source:
private org.ovirt.engine.core.bll.storage.connection.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return org.ovirt.engine.core.bll.storage.connection.StorageHelperDirector.getInstance ( ) . getItem ( storageType ) ; }

Target:
private org.ovirt.engine.core.bll.storage.connection.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return storageHelperDirector.getItem ( storageType ) ; }
Source:
public void validDecimal ( ) { junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "" ) ) ; junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "not valid integer" ) ) ; junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "$%@^%" ) ) ; junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "1$" ) ) ; junit.framework.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "1.1" ) ) ; junit.framework.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "1" ) ) ; junit.framework.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "-1" ) ) ; junit.framework.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "-1.1" ) ) ; }

Target:
public void validDecimal ( ) { org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "" ) ) ; org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "not valid integer" ) ) ; org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "$%@^%" ) ) ; org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "1$" ) ) ; org.junit.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "1.1" ) ) ; org.junit.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "1" ) ) ; org.junit.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "-1" ) ) ; org.junit.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validDecimal.isValid ( null , "-1.1" ) ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAllExternalNetworksOnProvider , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getNetworks ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAllExternalNetworksOnProvider , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getNetworks ( ) , failure ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants ) { return new com.gwtplatform.mvp.client.TabDataBasic ( applicationConstants.extendedTemplateNetworkInterfacesSubTabLabel ( ) , 1 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new com.gwtplatform.mvp.client.TabDataBasic ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.extended.template.SubTabExtendedTemplateNetworkInterfacesPresenter.constants.extendedTemplateNetworkInterfacesSubTabLabel ( ) , 1 ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { super . executeVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( getParameters ( ) . getInterfaces ( ) ) ) ; proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { super . executeVdsBrokerCommand ( ) ; persistCollectedData ( ) ; proceedProxyReturnValue ( ) ; }
Source:
public void testGetAllForCpuProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForCpuProfile ( FixturesTool.CPU_PROFILE_1 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 1 , result.size ( ) ) ; }

Target:
public void testGetAllForCpuProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForCpuProfiles ( java.util.Collections.singleton ( FixturesTool.CPU_PROFILE_1 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 1 , result.size ( ) ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( ) ; org.ovirt.engine.api.model.Application application = resource.get ( ) ; assertEquals ( NAMES [ org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.APPLICATION_INDEX ] , application.getName ( ) ) ; verifyLinks ( application ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( ) ; org.ovirt.engine.api.model.Application application = resource.get ( ) ; org.junit.Assert.assertEquals ( NAMES [ org.ovirt.engine.api.restapi.resource.BackendVmApplicationResourceTest.APPLICATION_INDEX ] , application.getName ( ) ) ; verifyLinks ( application ) ; }
Source:
public void write ( byte [ ] b , int off , int len ) throws java.io.IOException { out.write ( b , off , len ) ; this . index += len ; }

Target:
public void write ( byte [ ] b , int off , int len ) throws java.io.IOException { out.write ( b , off , len ) ; _index += len ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( ( source != null ) && ( ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ) ) { return true ; } return false ; }

Target:
public java.lang.Boolean convert ( java.lang.Object source ) { if ( source != null ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) ; return storageDomains.isEmpty ( ) ; } return false ; }
Source:
protected void executeCommand ( ) { super . executeCommand ( ) ; getLibvirtSecretDAO ( ) . update ( getParameters ( ) . getLibvirtSecret ( ) ) ; registerLibvirtSecret ( ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { super . executeCommand ( ) ; getLibvirtSecretDao ( ) . update ( getParameters ( ) . getLibvirtSecret ( ) ) ; registerLibvirtSecret ( ) ; setSucceeded ( true ) ; }
Source:
protected void endWithFailure ( ) { super . endWithFailure ( ) ; }

Target:
private void updateStage ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters.LiveDiskMigrateStage stage ) { org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . setLiveDiskMigrateStage ( stage ) ; persistCommand ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . getParentCommand ( ) , ( ( getCallback ( ) ) != null ) ) ; }
Source:
public void init ( javax.servlet.FilterConfig config ) throws javax.servlet.ServletException { }

Target:
public void init ( javax.servlet.FilterConfig config ) throws javax.servlet.ServletException { org.ovirt.engine.api.restapi.LocalConfig localConfig = org.ovirt.engine.api.restapi.LocalConfig.getInstance ( ) ; supportedVersions = localConfig.getSupportedVersions ( ) ; defaultVersion = localConfig.getDefaultVersion ( ) ; }
Source:
public void testInterfaceByNameExistsWhenInterfacesNameIsNull ( ) { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( null ) ) . interfaceHasNameSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOST_NETWORK_INTERFACE_DOES_NOT_HAVE_NAME_SET ) ) ; }

Target:
public void testInterfaceByNameExistsWhenInterfacesNameIsNull ( ) { org.hamcrest.MatcherAssert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( null ) ) . interfaceHasNameSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOST_NETWORK_INTERFACE_DOES_NOT_HAVE_NAME_SET ) ) ; }
Source:
public boolean isConcreteStorageType ( ) { return ( this ) != ( org.ovirt.engine.core.common.businessentities.StorageType.UNKNOWN ) ; }

Target:
public boolean isConcreteStorageType ( ) { return ( subtype ) != ( org.ovirt.engine.core.common.businessentities.StorageType.Subtype.NONE ) ; }
Source:
private void OnMove ( ) { OnMoveOrCopy ( ) ; }

Target:
protected void OnExecute ( ) { if ( ( this . getProgress ( ) ) != null ) { return ; } if ( ! ( this . Validate ( ) ) ) { return ; } StartProgress ( null ) ; }
Source:
private void peakConsistentWithAverageTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher ) { qos.setInboundAverage ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_MEDIUM ) ; qos.setOutboundAverage ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_MEDIUM ) ; org.junit.Assert.assertThat ( validator.peakConsistentWithAverage ( ) , matcher ) ; }

Target:
private void peakConsistentWithAverageTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher ) { qos.setInboundAverage ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_MEDIUM ) ; qos.setOutboundAverage ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_MEDIUM ) ; org.hamcrest.MatcherAssert.assertThat ( validator.peakConsistentWithAverage ( ) , matcher ) ; }