auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.uniqueOsNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.uniqueOsNames ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { uniqueOsNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( uniqueOsNames ) ) ; }
Source:
protected org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return new org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) { @ java.lang.Override public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ! ( sdToReject.equals ( storageDomain ) ) ; } } ; }

Target:
protected java.util.function.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return ( storageDomain ) -> ! ( sdToReject.equals ( storageDomain ) ) ; }
Source:
public void setNoOfSnapshots ( java.lang.Integer value ) { this . noOfSnapshots = value ; }

Target:
public java.lang.Integer getSnapshotsCount ( ) { return this . snapshotsCount ; }
Source:
public void testRemoveIfUnusedWithUsed ( ) { prepareDao ( ) . removeIfUnused ( org.ovirt.engine.core.dao.VmIconDaoTest.OTHER_SMALL_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon survivor = prepareDao ( ) . get ( org.ovirt.engine.core.dao.VmIconDaoTest.OTHER_SMALL_ICON_ID ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmIconDaoTest.OTHER_SMALL_ICON_ID , survivor.getId ( ) ) ; }

Target:
public void testRemoveIfUnusedWithUsed ( ) { prepareDao ( ) . removeIfUnused ( FixturesTool.SMALL_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon survivor = prepareDao ( ) . get ( FixturesTool.SMALL_ICON_ID ) ; org.junit.Assert.assertEquals ( FixturesTool.SMALL_ICON_ID , survivor.getId ( ) ) ; }
Source:
protected java.lang.Object provideDetailModelEntity ( java.lang.Object selectedItem ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.EntityModel ) ( selectedItem ) ) ; if ( model == null ) { return null ; } return model.getEntity ( ) ; }

Target:
private void editConsoleKey ( ) { org.ovirt.engine.ui.uicommonweb.models.PublicKeyModel model = new org.ovirt.engine.ui.uicommonweb.models.PublicKeyModel ( ) ; setWindow ( model ) ; model.editConsoleKey ( this ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc movePV ( java.lang.String jobId , java.lang.String sdUUID , java.lang.String device ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn moveDomainDevice ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > moveParams ) ;
Source:
public void testCanDoActionNonExistingStorageDomain ( ) { org.junit.Assert.assertFalse ( "canDoAction shouldn't be possible for a non-existent storage domain" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessages ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }

Target:
public void testSetActionMessageParameters ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertSetActionMessageParameters ( command , VdcBllMessages.VAR__TYPE__STORAGE__DOMAIN , VdcBllMessages.VAR__ACTION__REMOVE ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getDiskMap ( ) . size ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getOrigin ( ) ; }
Source:
public abstract void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) ;

Target:
public org.ovirt.engine.core.common.businessentities.CommandEntity getCommandEntity ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
private boolean verifyCanDoActionMessagesContainMessage ( org.ovirt.engine.core.common.errors.EngineMessage message ) { return command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( message.toString ( ) ) ; }

Target:
private boolean verifyValidationMessagesContainMessage ( org.ovirt.engine.core.common.errors.EngineMessage message ) { return command.getReturnValue ( ) . getValidationMessages ( ) . contains ( message.toString ( ) ) ; }
Source:
public void setRetryPolicy ( org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy ) { this . policy = policy ; if ( isOpen ( ) ) { disconnect ( ) ; } }

Target:
public void setRetryPolicy ( org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy ) { this . policy = policy ; if ( isOpen ( ) ) { disconnect ( "Policy reset" ) ; } }
Source:
protected org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator ( networkCluster , version ) ; }

Target:
protected org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator ( interfaceDao , networkDao , networkCluster , version ) ; }
Source:
public void setapp_list ( java.lang.String value ) { this . appList = value ; }

Target:
public void setAppList ( java.lang.String value ) { this . appList = value ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSave ( result.getReturnValue ( ) ) ; }

Target:
protected void OnSelectedItemChanging ( java.lang.Object newValue , java.lang.Object oldValue ) { initSelectionGeustAgentData ( newValue ) ; super . OnSelectedItemChanging ( newValue , oldValue ) ; }
Source:
protected void setUpWindowsGetEntityExpectations ( int times , boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( times , notFound , new org.ovirt.engine.api.model.VM ( ) { { setId ( GUIDS [ 0 ] ) ; setVmOs ( OsRepository.DEFAULT_OS ) ; } } ) ; }

Target:
protected void setUpWindowsGetEntityExpectations ( int times , boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( times , notFound , new org.ovirt.engine.api.model.VM ( ) { { setId ( GUIDS [ 0 ] ) ; setVmOs ( OsRepository.DEFAULT_X86_OS ) ; } } ) ; }
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; updateMemoryBalloon ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.linuxOsIds = ( ( java.util.ArrayList < java.lang.Integer > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { osArchitectures = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
public void shouldDetectHostWihtoutNumaSupport ( ) { vdsNumaNodes = new java.util.ArrayList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVdsNumaNode ( 1 ) ) ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.validateNumaCompatibility ( vm , vm.getvNumaNodeList ( ) , vdsNumaNodes ) , EngineMessage.HOST_NUMA_NOT_SUPPORTED ) ; }

Target:
public void shouldDetectHostWihtoutNumaSupport ( ) { vdsNumaNodes = new java.util.ArrayList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVdsNumaNode ( 1 ) ) ) ; assertValidationFailure ( underTest.validateNumaCompatibility ( vm , vm.getvNumaNodeList ( ) , vdsNumaNodes ) , EngineMessage.HOST_NUMA_NOT_SUPPORTED ) ; }
Source:
public void testIsNetworkInSyncWhenGatewayEqual ( ) { initIpConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv6GatewayEqual ( ) { initIpv6ConfigurationBootProtocolGateway ( Ipv6BootProtocol.STATIC_IP , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.InstanceType lookupInstanceType ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.InstanceType.class , VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( id ) , "GetVmTemplate" ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.InstanceType lookupInstance ( org.ovirt.engine.api.model.Template template ) { return getEntity ( org.ovirt.engine.core.common.businessentities.InstanceType.class , VdcQueryType.GetInstanceType , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( asGuid ( template.getId ( ) ) ) , "GetInstanceType" ) ; }
Source:
protected boolean validateFreeSpace ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disks = org.ovirt.engine.core.bll.ImagesHandler.getDisksDummiesForStorageAllocations ( disksList ) ; return validate ( storageDomainValidator.hasSpaceForNewDisks ( disks ) ) ; }

Target:
protected boolean validateFreeSpace ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disks = org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getDisksDummiesForStorageAllocations ( disksList ) ; return validate ( storageDomainValidator.hasSpaceForNewDisks ( disks ) ) ; }
Source:
public void setIsValid ( boolean value ) { if ( ( isValid ) != value ) { isValid = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsValid" ) ) ; if ( isValid ) { getInvalidityReasons ( ) . clear ( ) ; } } }

Target:
public void setIsValid ( boolean value ) { if ( ( isValid ) != value ) { isValid = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsValid" ) ) ; if ( isValid ) { getInvalidityReasons ( ) . clear ( ) ; } } }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setExistingInterfaces ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > existingInterfaces ) { this . existingInterfaces = existingInterfaces ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addExistingAttachments ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > existingAttachments ) { if ( existingAttachments == null ) { return this ; } this . existingAttachments.addAll ( existingAttachments ) ; return this ; }
Source:
public org.ovirt.engine.core.common.interfaces.IVdcUser getUser ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.common.interfaces.IVdcUser ) ( GetData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.VDC_USER_PARAMETER_NAME ) ) ) ; }

Target:
public org.ovirt.engine.core.common.interfaces.IVdcUser getUser ( boolean refresh ) { return ( ( org.ovirt.engine.core.common.interfaces.IVdcUser ) ( GetData ( org.ovirt.engine.core.bll.session.SessionDataContainer.VDC_USER_PARAMETER_NAME , refresh ) ) ) ; }
Source:
protected void filterVms ( ) { for ( org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData vdsmVm : vdsmVms.values ( ) ) { org.ovirt.engine.core.common.businessentities.VM dbVm = dbVms.get ( vdsmVm.getVmDynamic ( ) . getId ( ) ) ; gatherChangedVms ( dbVm , vdsmVm ) ; } }

Target:
protected void filterVms ( ) { for ( org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VdsmVm vdsmVm : vdsmVms.values ( ) ) { org.ovirt.engine.core.common.businessentities.VM dbVm = dbVms.get ( vdsmVm.getVmDynamic ( ) . getId ( ) ) ; gatherChangedVms ( dbVm , vdsmVm ) ; } }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; }

Target:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; }
Source:
public void clearCache ( ) { cachedConfigValues.clear ( ) ; }

Target:
public java.util.List < java.lang.String > getMigrationPoliciesSupportedVersions ( ) { return getSupportedVersions ( ConfigurationValues.MigrationPoliciesSupported ) ; }
Source:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; org.ovirt.engine.core.bll.ValidationResult notABondValidationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND , org.ovirt.engine.core.bll.validator.HostInterfaceValidator.VAR_NETWORK_INTERFACE_IS_NOT_BOND_ENTITY , bond.getName ( ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , notABondValidationResult , notABondValidationResult , ValidationResult.VALID ) ; }
Source:
public org.ovirt.vdsmfake.service.DataCenter getDataCenterById ( java.lang.String id ) { final org.ovirt.vdsmfake.service.DataCenter dataCenter = org.ovirt.vdsmfake.service.VdsmManager.getInstance ( ) . getDataCenterById ( id ) ; return dataCenter ; }

Target:
public org.ovirt.vdsmfake.domain.DataCenter getDataCenterById ( java.lang.String id ) { final org.ovirt.vdsmfake.domain.DataCenter dataCenter = org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . getDataCenterById ( id ) ; return dataCenter ; }
Source:
public org.ovirt.engine.api.model.Jobs list ( ) { java.util.List < org.ovirt.engine.api.model.Job > jobs = getBackendCollection ( VdcQueryType.GetAllJobs , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; return mapCollection ( jobs ) ; }

Target:
public org.ovirt.engine.api.model.Jobs list ( ) { java.util.List < org.ovirt.engine.api.model.Job > jobs = getBackendCollection ( QueryType.GetAllJobs , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; return mapCollection ( jobs ) ; }
Source:
protected void onEntityContentChanged ( ) { super . onEntityContentChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } else { setItems ( null ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { preSearchCalled ( getEntity ( ) ) ; super . search ( ) ; } }
Source:
public java.lang.String getSSHKeyFingerprint ( ) { return mVdsStatic.getSSHKeyFingerprint ( ) ; }

Target:
public java.lang.String getSshKeyFingerprint ( ) { return mVdsStatic.getSshKeyFingerprint ( ) ; }
Source:
private void readHeader ( ) { version = "" ; org.ovirt.engine.core.utils.ovf.xml.XmlNode node = _document.SelectSingleNode ( "//ovf:Envelope" , _xmlNS ) ; if ( node != null ) { version = node.attributes.get ( "ovf:version" ) . getValue ( ) ; } }

Target:
private void readHeader ( ) { version = "" ; org.ovirt.engine.core.utils.ovf.xml.XmlNode node = selectSingleNode ( _document , "//ovf:Envelope" , _xmlNS ) ; if ( node != null ) { version = node.attributes.get ( "ovf:version" ) . getValue ( ) ; } }
Source:
private void gatherVmsWithChangedDevices ( org.ovirt.engine.core.common.businessentities.VM dbVm , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData vdsmVm ) { if ( isDevicesChanged ( dbVm , vdsmVm ) ) { devicesChangedVms.add ( new org.ovirt.engine.core.common.utils.Pair ( dbVm , vdsmVm ) ) ; } }

Target:
private void gatherVmsWithChangedDevices ( org.ovirt.engine.core.common.businessentities.VM dbVm , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData vdsmVm ) { if ( org.ovirt.engine.core.vdsbroker.VmsListFetcher.isDevicesChanged ( dbVm , vdsmVm ) ) { devicesChangedVms.add ( new org.ovirt.engine.core.common.utils.Pair ( dbVm , vdsmVm ) ) ; } }
Source:
public org.ovirt.engine.core.compat.NGuid getlast_vds_run_on ( ) { return this . last_vds_run_on ; }

Target:
public void setLastVdsRunOn ( org.ovirt.engine.core.compat.NGuid value ) { this . lastVdsRunOn = value ; }
Source:
public org.ovirt.engine.api.resource.NetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResource ( id , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.NetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResource ( bondId , id ) ) ; }
Source:
public void testRemove ( ) { dao.remove ( existingTag.getTagId ( ) ) ; org.ovirt.engine.core.common.businessentities.Tags result = dao.get ( existingTag.getTagId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testRemove ( ) { dao.remove ( existingTag.gettag_id ( ) ) ; org.ovirt.engine.core.common.businessentities.Tags result = dao.get ( existingTag.gettag_id ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private void onSave ( ) { if ( ! ( validate ( ) ) ) { return ; } flush ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( action , new org.ovirt.engine.core.common.action.ProviderParameters ( provider ) ) ; cancel ( ) ; }

Target:
protected void actualSave ( ) { flush ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( action , new org.ovirt.engine.core.common.action.ProviderParameters ( provider ) ) ; cancel ( ) ; }
Source:
public void validateFailsOnNull ( ) { cmd.getParameters ( ) . setServiceType ( ServiceType.NFS ) ; cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ; prepareMocks ( ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd.getParameters ( ) . setServiceType ( ServiceType.NFS ) ; cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ; prepareMocks ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
private void initListBoxEditors ( ) { clusterListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < java.lang.Object > ( new org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer < java.lang.Object > ( ) { @ java.lang.Override public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( object ) ) . getName ( ) ; } } ) ; }

Target:
private void initListBoxEditors ( ) { clusterListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.VDSGroup > ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VDSGroup > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.clusterPermissionSubTabLabel ( ) , 8 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VDSGroup > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterPermissionPresenter.constants.clusterPermissionSubTabLabel ( ) , 8 , modelProvider ) ; }
Source:
public void testDefaultRouteWhenInSync ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testDefaultRouteNonDefaultRouteNetwork ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( false , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmRngDevice > getRngDevices ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( java.util.List.class , VdcQueryType.GetRngDevice , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetRngDevice" , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmRngDevice > getRngDevices ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( java.util.List.class , QueryType.GetRngDevice , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetRngDevice" , true ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return runActionImpl ( actionType , parameters , true , context ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return runActionImpl ( actionType , parameters , true , context ) ; }
Source:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; }

Target:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { org.ovirt.engine.api.model.Qos qos = model.getQos ( ) ; if ( qos != null ) { qos.setDataCenter ( model.getDataCenter ( ) ) ; } return model ; }
Source:
public void setEntityIds ( java.util.List < org.ovirt.engine.core.compat.Guid > entityIds ) { this . entityIds = entityIds ; if ( entityIds == null ) { this . entityIds = new java.util.ArrayList < > ( ) ; } }

Target:
public void setVmIds ( java.util.List < org.ovirt.engine.core.compat.Guid > vmIds ) { this . vmIds = vmIds ; if ( vmIds == null ) { this . vmIds = new java.util.ArrayList < > ( ) ; } }
Source:
public void setstorage_pool_id ( org.ovirt.engine.core.compat.NGuid value ) { this . storage_pool_id = value ; }

Target:
public void setstorage_pool_id ( org.ovirt.engine.core.compat.NGuid value ) { this . storagePoolId = value ; }
Source:
private void setUpGetCertuficateExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVdsCertificateSubjectByVmId , org.ovirt.engine.core.common.queries.GetVmByVmIdParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , org.ovirt.engine.api.restapi.resource.BackendVmResourceTest.CERTIFICATE ) ; }

Target:
private void setUpGetCertuficateExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVdsCertificateSubjectByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , org.ovirt.engine.api.restapi.resource.BackendVmResourceTest.CERTIFICATE ) ; }
Source:
public void testGetLinuxOSs ( ) { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.getLinuxOss ( ) . contains ( 777 ) ) ; }

Target:
public void testGetLinuxOSs ( ) { org.junit.jupiter.api.Assertions.assertTrue ( OsRepositoryImpl.INSTANCE.getLinuxOss ( ) . contains ( 777 ) ) ; }
Source:
public void testCDAStoragePoolValid ( ) { vds.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on mismatch Storage Pool" , command , EngineMessage.CANNOT_FORCE_SELECT_SPM_VDS_NOT_IN_POOL ) ; }

Target:
public void testCDAStoragePoolValid ( ) { vds.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "validate did not fail on mismatch Storage Pool" , command , EngineMessage.CANNOT_FORCE_SELECT_SPM_VDS_NOT_IN_POOL ) ; }
Source:
public void setRetryPolicy ( org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy ) { this . policy = policy ; if ( isOpen ( ) ) { disconnect ( "Policy reset" ) ; } }

Target:
public void setClientPolicy ( org.ovirt.vdsm.jsonrpc.client.internal.ClientPolicy policy ) { this . policy = policy ; this . validate ( ) ; if ( isOpen ( ) ) { disconnect ( "Policy reset" ) ; } }
Source:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void testAllLunsSupportDiscardSucceeds ( ) { junit.framework.Assert.assertTrue ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) ) ) ) ; }

Target:
public void testAllLunsSupportDiscardSucceeds ( ) { org.junit.Assert.assertTrue ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) ) ) ) ; }
Source:
public void storageDomainWithId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.STORAGE_DOMAIN , s ) ; }

Target:
public void storageDomainWithId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.STORAGE_DOMAIN , s ) ; }
Source:
public java.util.Date getCpuOverCommitTimestamp ( ) { return mVdsDynamic.getcpu_over_commit_time_stamp ( ) ; }

Target:
public java.util.Date getCpuOverCommitTimestamp ( ) { return mVdsStatistics.getCpuOverCommitTimeStamp ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.compat.Guid clusterId ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = vmDao.getAllForVdsGroup ( clusterId ) ; return ( org.ovirt.engine.core.utils.linq.LinqUtils.firstOrNull ( vms , org.ovirt.engine.core.bll.common.predicates.ActiveVmAttachedToClusterPredicate.RUNNING_VM_PREDICATE ) ) != null ; }

Target:
public boolean test ( org.ovirt.engine.core.compat.Guid clusterId ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = vmDao.getAllForVdsGroup ( clusterId ) ; return vms.stream ( ) . anyMatch ( org.ovirt.engine.core.bll.common.predicates.ActiveVmAttachedToClusterPredicate.RUNNING_VM_PREDICATE ) ; }
Source:
public void fastForward ( ) { com.google.gwt.core.client.GWT.log ( ( ( "GridTimer[" + ( name ) ) + "].fastForward()" ) ) ; if ( isFastForwarding ( ) ) { reset ( ) ; } cycleRate ( ) ; }

Target:
public void fastForward ( ) { org.ovirt.engine.ui.uicommonweb.models.GridTimer.logger.fine ( ( ( "GridTimer[" + ( name ) ) + "].fastForward()" ) ) ; if ( isFastForwarding ( ) ) { reset ( ) ; } cycleRate ( ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { init ( ) ; status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getBroker ( ) . hotPlugNic ( struct ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { init ( ) ; status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getBroker ( ) . hotPlugNic ( struct ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( name , value ) ) ) { name = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Name" ) ) ; } }

Target:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( getEntity ( ) ) ) ; setName ( provider.getName ( ) ) ; setDescription ( provider.getDescription ( ) ) ; setUrl ( provider.getUrl ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage.CinderConnectionInfo call ( ) { com.woorea.openstack.cinder.model.ConnectionForInitialize connectionForInitialize = new com.woorea.openstack.cinder.model.ConnectionForInitialize ( ) ; return proxy.initializeConnectionForVolume ( cinderDisk.getId ( ) . toString ( ) , connectionForInitialize ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.CinderConnectionInfo call ( ) { com.woorea.openstack.cinder.model.ConnectionForInitialize connectionForInitialize = new com.woorea.openstack.cinder.model.ConnectionForInitialize ( ) ; return proxy.initializeConnectionForVolume ( cinderDisk.getImageId ( ) . toString ( ) , connectionForInitialize ) ; }
Source:
public void storageDomainWithId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( b.STORAGE_DOMAIN , s ) ; }

Target:
public void storageDomainWithIdNullPool ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }
Source:
public void testGetAllForTemplatesByNetwork ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > result = dao.getAllForTemplatesByNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertEquals ( existingTemplateNic , result.get ( 0 ) ) ; }

Target:
public void testGetAllForTemplatesByNetwork ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > result = dao.getAllForTemplatesByNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingTemplateNic , result.get ( 0 ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , nicName , false , null , null , networkName , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true ) ; }
Source:
private void handleException ( org.ovirt.engine.core.vdsbroker.vdsbroker.VDSExceptionBase e , java.lang.String reason ) { setVdsRuntimeError ( e ) ; final java.lang.String msg = java.lang.String.format ( "Failed to poll host %s - %s." , org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand.getParameters ( ) . getVdsId ( ) , reason ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand.log.debug ( msg , e ) ; }

Target:
protected void handleTransportRunTimeException ( org.ovirt.engine.core.vdsbroker.TransportRunTimeException e ) { handleException ( e , "failed to create connection to the host" ) ; }
Source:
public java.lang.Integer getUsageNetworkPercent ( ) { return this . usage_network_percentField ; }

Target:
public void setDisksUsage ( java.lang.String disksUsage ) { this . disksUsage = disksUsage ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult migrationPropertySupported ( java.lang.String networkName ) { return ( ! ( networkCluster.isMigration ( ) ) ) || ( org.ovirt.engine.core.common.FeatureSupported.migrationNetwork ( version ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_MIGRATION_NETWORK_IS_NOT_SUPPORTED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult migrationPropertySupported ( java.lang.String networkName ) { return ( ! ( networkCluster.isMigration ( ) ) ) || ( org.ovirt.engine.core.common.FeatureSupported.migrationNetwork ( version ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_MIGRATION_NETWORK_IS_NOT_SUPPORTED ) ; }
Source:
public void canDoActionFailedVMNotFound ( ) throws java.lang.Exception { initializeCommand ( createParameters ( ) ) ; mockNullVm ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; }

Target:
public void canDoActionFailedVMNotFound ( ) throws java.lang.Exception { initializeCommand ( createParameters ( ) ) ; mockNullVm ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.AbstractNetworkPopupView.templates.textForCheckBoxHeader ( org.ovirt.engine.ui.webadmin.section.main.view.popup.AbstractNetworkPopupView.constants.requiredAll ( ) ) ; }

Target:
public java.lang.String getLabel ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.AbstractNetworkPopupView.constants.requiredAll ( ) ; }
Source:
org.ovirt.engine.core.common.businessentities.VDS getFirstUpRhelForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupId ) ;

Target:
org.ovirt.engine.core.common.businessentities.VDS getFirstUpRhelForCluster ( org.ovirt.engine.core.compat.Guid clsuterId ) ;
Source:
public void SuccededToRunVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { if ( _asyncRunningVms.containsKey ( vmId ) ) { getEventListener ( ) . runningSucceded ( vmId ) ; } RemoveAsyncRunningVm ( vmId ) ; }

Target:
public void succededToRunVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { if ( _asyncRunningVms.containsKey ( vmId ) ) { getEventListener ( ) . runningSucceded ( vmId ) ; } RemoveAsyncRunningVm ( vmId ) ; }
Source:
private boolean checkForChanges ( ) { boolean output = org.ovirt.engine.core.bll.network.host.PersistentHostSetupNetworksCommand.getVdsDynamicDao ( ) . get ( org.ovirt.engine.core.bll.network.host.PersistentHostSetupNetworksCommand.getVdsId ( ) ) . getNetConfigDirty ( ) ; return output ; }

Target:
private boolean checkForChanges ( ) { final org.ovirt.engine.core.common.businessentities.VdsDynamic host = vdsDynamicDao.get ( org.ovirt.engine.core.bll.network.host.PersistentHostSetupNetworksCommand.getVdsId ( ) ) ; final java.lang.Boolean netConfigDirty = host.getNetConfigDirty ( ) ; return ! ( java.lang.Boolean.FALSE.equals ( netConfigDirty ) ) ; }
Source:
private java.lang.Object getvolumeWithoutRemoveBricksTask ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getVolumeWithRemoveBricksTask ( volumeId ) ; volume.getAsyncTask ( ) . setType ( null ) ; return volume ; }

Target:
public void canDoActionSucceedsOnVolumeWithRemoveBricksTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTask , getBricks ( volumeWithRemoveBricksTask ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
private void deleteV2VJob ( ) { getVdsManager ( ) . removeV2VJobInfoForVm ( org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) ) ; runVdsCommand ( VDSCommandType.DeleteV2VJob , new org.ovirt.engine.core.common.vdscommands.VdsAndVmIDVDSParametersBase ( org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) ) ) ; }

Target:
private void deleteV2VJob ( ) { getVdsManager ( ) . removeV2VJobInfoForVm ( org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) ) ; getVmManager ( ) . setConvertProxyHostId ( null ) ; runVdsCommand ( VDSCommandType.DeleteV2VJob , new org.ovirt.engine.core.common.vdscommands.VdsAndVmIDVDSParametersBase ( org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup createCluster ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.GlusterServiceSyncJobTest.CLUSTER_ID ) ; cluster.setGlusterService ( true ) ; cluster.setcompatibility_version ( Version.v3_3 ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDSGroup createCluster ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.GlusterServiceSyncJobTest.CLUSTER_ID ) ; cluster.setGlusterService ( true ) ; cluster.setCompatibilityVersion ( Version.v3_3 ) ; return cluster ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > multipleParams , boolean isRunOnlyIfAllCanDoPass , boolean isWaitForResult ) ;

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > multipleParams , boolean isRunOnlyIfAllValidationPass , boolean isWaitForResult ) ;
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmDevice graphicsDev = getParameters ( ) . getDev ( ) ; getVmDeviceDao ( ) . update ( graphicsDev ) ; setSucceeded ( true ) ; setActionReturnValue ( graphicsDev.getId ( ) . getDeviceId ( ) ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmDevice graphicsDev = getParameters ( ) . getDev ( ) ; vmDeviceDao.update ( graphicsDev ) ; setSucceeded ( true ) ; setActionReturnValue ( graphicsDev.getId ( ) . getDeviceId ( ) ) ; }
Source:
public void setAutomaticLargePage ( java.lang.Object value ) { if ( ( automaticLargePage ) != value ) { automaticLargePage = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AutomaticLargePage" ) ) ; } }

Target:
public void setAutomaticLargePage ( java.lang.Object value ) { if ( ( automaticLargePage ) != value ) { automaticLargePage = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AutomaticLargePage" ) ) ; } }
Source:
public void begin ( ) { try { lockVmsManager ( ) ; refreshVmStats ( ) ; saveVmsToDb ( ) ; afterVMsRefreshTreatment ( ) ; vdsManager.updateMetrics ( memCommited , vmsCoresCount ) ; } finally { unlockVmsManager ( ) ; } }

Target:
public void perform ( ) { try { lockVmsManager ( ) ; refreshVmStats ( ) ; saveVmsToDb ( ) ; afterVMsRefreshTreatment ( ) ; vdsManager.updateMetrics ( memCommited , vmsCoresCount ) ; } finally { unlockVmsManager ( ) ; } }
Source:
private java.util.List < org.ovirt.engine.core.bll.adbroker.LdapQueryData > GenerateUsersQuery ( ) { org.ovirt.engine.core.bll.adbroker.UsersObjectGuidQueryGenerator generator = new org.ovirt.engine.core.bll.adbroker.UsersObjectGuidQueryGenerator ( ) ; for ( org.ovirt.engine.core.compat.Guid id : getUserIds ( ) ) { generator.add ( id ) ; } return generator.getLdapQueriesData ( getDomain ( ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.bll.adbroker.LdapQueryData > GenerateUsersQuery ( ) { org.ovirt.engine.core.bll.adbroker.UsersObjectIdQueryGenerator generator = new org.ovirt.engine.core.bll.adbroker.UsersObjectIdQueryGenerator ( ) ; for ( org.ovirt.engine.core.common.utils.ExternalId id : getUserIds ( ) ) { generator.add ( id ) ; } return generator.getLdapQueriesData ( getDomain ( ) ) ; }
Source:
public void testMacToString ( ) throws java.lang.Exception { final java.lang.String macString = "00:1A:4A:01:00:00" ; final long macLong = 112910729216L ; org.junit.Assert.assertThat ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToString ( macLong ) , org.hamcrest.CoreMatchers.is ( macString ) ) ; }

Target:
public void testMacToString ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToString ( 112910729216L ) , org.hamcrest.CoreMatchers.is ( "00:1a:4a:01:00:00" ) ) ; }
Source:
com.google.gwt.user.cellview.client.Header < ? > createHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml ) { return columnResizingEnabled ? new org.ovirt.engine.ui.common.widget.table.resize.ResizableHeader < T > ( headerHtml , column , this ) : createSafeHtmlHeader ( headerHtml ) ; }

Target:
com.google.gwt.user.cellview.client.Header < ? > createHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml ) { return columnResizingEnabled ? new org.ovirt.engine.ui.common.widget.table.resize.ResizableHeader < T > ( headerHtml , column , this , applyResizableHeaderStyle ) : createSafeHtmlHeader ( headerHtml ) ; }
Source:
public void testFilter ( ) throws org.apache.xmlrpc.XmlRpcException { proxy.filter ( ) ; }

Target:
public void testBalance ( ) throws org.apache.xmlrpc.XmlRpcException { java.lang.String result = proxy.balance ( org.ovirt.schedulerproxy.SchedulerProxyTest.FILE_NAME , org.ovirt.schedulerproxy.SchedulerProxyTest.HOST_ARRAY , "" ) ; org.junit.Assert.assertTrue ( result.equals ( org.ovirt.schedulerproxy.SchedulerProxyTest.BALANCE_RESULT ) ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( super . getEntity ( ) ) != null ) { UpdateProperties ( ) ; } }

Target:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; updateProperties ( ) ; }
Source:
types.AffinityGroup [ ] list ( ) ;

Target:
types.AffinityGroup [ ] groups ( ) ;
Source:
private org.ovirt.engine.core.compat.Guid getClusterIdByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Cluster: name=" + name ) ) . getId ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getClusterIdByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Cluster: name=" + name ) ) . getId ( ) ; }
Source:
public void setHostToVmAssignments ( java.util.Map < java.lang.String , java.util.Set < java.lang.String > > hostToVmAssignments ) { this . hostToVmAssignments = hostToVmAssignments ; }

Target:
public void setHostToInstanceAssignments ( java.util.Map < java.lang.String , java.util.Set < java.lang.Long > > hostToInstanceAssignments ) { this . hostToInstanceAssignments = hostToInstanceAssignments ; }
Source:
public void testDoNotValidateNameSizeImport ( ) { checkTemplateName ( false , ( "0987654321" + ( ( ( ( ( ( ( ( "0987654321" + "0987654321" ) + "0987654321" ) + "0987654321" ) + "0987654321" ) + "0987654321" ) + "0987654321" ) + "0987654321" ) + "0987654321" ) ) ) ; }

Target:
public void testValidateNameSizeImportAsCloned ( ) { checkTemplateName ( true , string100 ) ; }