auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void loadFileFromPath ( ) { java.lang.String baseDir = java.lang.System.getProperty ( "basedir" ) ; org.ovirt.engine.core.utils.AbstractPropertiesTestBase.assumeNotNull ( baseDir ) ; file = new java.io.File ( baseDir , relativePath ) ; }

Target:
public void loadFileFromPath ( ) { java.lang.String baseDir = java.lang.System.getProperty ( "basedir" ) ; org.ovirt.engine.core.utils.AbstractPropertiesTestBase.assumeTrue ( ( baseDir != null ) ) ; file = new java.io.File ( baseDir , relativePath ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.HashMap ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { chainedCallback.onSuccess ( model , ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.ProviderType type1 , org.ovirt.engine.core.common.businessentities.ProviderType type2 ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( type1 ) , org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( type2 ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.ProviderType type1 , org.ovirt.engine.core.common.businessentities.ProviderType type2 ) { final org.ovirt.engine.ui.uicompat.EnumTranslator enumTranslator = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) ; return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( enumTranslator.get ( type1 ) , enumTranslator.get ( type2 ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusDetailForXmlRpc glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc glusterStorageDeviceList ( ) ;
Source:
public void run ( ) { resourceManagerProvider.get ( ) . GetVdsManager ( vdsException.getVdsError ( ) . getVdsId ( ) ) . handleNetworkException ( vdsException ) ; }

Target:
public void run ( ) { resourceManagerProvider.get ( ) . getVdsManager ( vdsException.getVdsError ( ) . getVdsId ( ) ) . handleNetworkException ( vdsException ) ; }
Source:
public void discardAfterDeleteSupportedByDcVersion ( ) { domain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertThat ( validator.isDiscardAfterDeleteSupportedByDcVersion ( Version.v4_1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void discardAfterDeleteSupportedByDcVersion ( ) { domain.setDiscardAfterDelete ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isDiscardAfterDeleteSupportedByDcVersion ( Version.v4_1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void prepareForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { super . prepareForEdit ( storage ) ; getOverride ( ) . setIsChangable ( isEditable ( storage ) ) ; }

Target:
public void prepareForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { super . prepareForEdit ( storage ) ; getOverride ( ) . setIsChangeable ( isEditable ( storage ) ) ; }
Source:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { if ( networkClusterModel.getIsChangable ( ) ) { networkClusterModel.setAttached ( value ) ; } } refreshClustersTable ( ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { networkClusterModel.setRequired ( ( ! ( event.getValue ( ) ) ) ) ; refreshClustersTable ( ) ; } }
Source:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice , boolean value ) { spice.getOptions ( ) . setUsbAutoShare ( value ) ; }

Target:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleClient spice , boolean value ) { spice.getOptions ( ) . setUsbAutoShare ( value ) ; }
Source:
public void testRegisterAsNewEntity ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Cluster cluster = new org.ovirt.engine.api.model.Cluster ( ) ; cluster.setId ( GUIDS [ 1 ] . toString ( ) ) ; doTestRegister ( cluster , true ) ; }

Target:
public void testRegisterAsNewEntity ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( GUIDS [ 1 ] . toString ( ) ) ; doTestRegister ( cluster , true ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > data ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : data ) { vds.setCpuName ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.FindMaxServerCpuByFlags ( vds.getcpu_flags ( ) , vds.getvds_group_compatibility_version ( ) ) ) ; } return data ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > data ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : data ) { vds.setCpuName ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.FindMaxServerCpuByFlags ( vds.getCpuFlags ( ) , vds.getVdsGroupCompatibilityVersion ( ) ) ) ; } return data ; }
Source:
protected boolean shouldUpdateReadOnly ( ) { return ! ( vmDeviceForVm.getIsReadOnly ( ) . equals ( getNewDisk ( ) . getReadOnly ( ) ) ) ; }

Target:
protected boolean updateReadOnlyRequested ( ) { return ! ( vmDeviceForVm.getIsReadOnly ( ) . equals ( getNewDisk ( ) . getReadOnly ( ) ) ) ; }
Source:
public void setMenu ( java.lang.String menu ) { this . menu = menu ; }

Target:
public void setPassword ( java.lang.String password ) { this . consoleOptions.setTicket ( password ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilderBase createBuilder ( ) { final org.ovirt.engine.core.vdsbroker.vdsbroker.factory.VmInfoBuilderFactory vmInfoBuilderFactory = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.vdsbroker.vdsbroker.factory.VmInfoBuilderFactory.class ) ; return vmInfoBuilderFactory.createVmInfoBuilder ( vm , org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getParameters ( ) . getVdsId ( ) , createInfo ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilder createBuilder ( ) { final org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilderFactory vmInfoBuilderFactory = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilderFactory.class ) ; return vmInfoBuilderFactory.createVmInfoBuilder ( vm , org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getParameters ( ) . getVdsId ( ) , createInfo ) ; }
Source:
public void testSubResourceLocator ( ) { org.junit.Assert.assertTrue ( ( ( resource.getApplicationResource ( org.ovirt.engine.api.restapi.resource.BackendVmApplicationsResourceTest.VM_ID.toString ( ) ) ) instanceof org.ovirt.engine.api.resource.VmApplicationResource ) ) ; }

Target:
public void testSubResourceLocator ( ) { org.junit.jupiter.api.Assertions.assertTrue ( ( ( resource.getApplicationResource ( org.ovirt.engine.api.restapi.resource.BackendVmApplicationsResourceTest.VM_ID.toString ( ) ) ) instanceof org.ovirt.engine.api.resource.VmApplicationResource ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.networks.ImportNetworksModel model ) { providerNetworks.edit ( model.getProviderNetworks ( ) ) ; importedNetworks.edit ( model.getImportedNetworks ( ) ) ; dcColumn.edit ( model.getDataCenters ( ) ) ; driver.edit ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.networks.ImportNetworksModel model ) { splitTable.edit ( model.getProviderNetworks ( ) , model.getImportedNetworks ( ) ) ; dcColumn.edit ( model.getDataCenters ( ) ) ; driver.edit ( model ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { return getCommand ( ) . getParameters ( ) . getRemovedVolume ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDiskId ( ) { return org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommandCallback.getCommand ( ) . getParameters ( ) . getRemovedVolume ( ) . getImageId ( ) ; }
Source:
public void checkUpdate ( final java.util.Set < org.ovirt.engine.sdk.entities.VM > vms , final java.util.Set < org.ovirt.engine.sdk.entities.Host > hosts , final java.util.Set < java.lang.Object > facts ) { solver.addProblemFactChange ( new org.ovirt.optimizer.service.ClusterOptimizer.ClusterFactChange ( vms , hosts , facts ) ) ; }

Target:
private org.optaplanner.core.api.solver.Solver getSolver ( ) { return solver ; }
Source:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper setupCompositeQosConfiguration ( boolean constructBond , boolean qosOnAll , org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos , java.lang.Integer nicSpeed ) { return setupCompositeQosConfiguration ( constructBond , qosOnAll , qos , null , nicSpeed , null ) ; }

Target:
public void qosNotConfiguredOnAllNetworks ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = setupCompositeQosConfiguration ( false ) ; validateAndExpectViolation ( helper , EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INTERFACES_WITHOUT_QOS , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }
Source:
public void negativeTestFindConstructorForSupertype ( ) throws java.lang.Exception { assertNull ( createAssertMessage ( "ctor was found anyway" ) , org.ovirt.engine.core.utils.ReflectionUtils.findConstructor ( typeToTest , parametersForSupertypeCase ) ) ; }

Target:
public void negativeTestFindConstructorForSupertype ( ) throws java.lang.Exception { org.junit.Assert.assertNull ( createAssertMessage ( "ctor was found anyway" ) , org.ovirt.engine.core.utils.ReflectionUtils.findConstructor ( typeToTest , parametersForSupertypeCase ) ) ; }
Source:
public org.ovirt.engine.api.resource.StorageDomainContentDiskResource getDeviceResource ( @ javax.ws.rs.PathParam ( value = "identity" ) java.lang.String id ) ;

Target:
org.ovirt.engine.api.resource.StorageDomainContentDiskResource getDiskResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) ;
Source:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { callback.onSuccess ( result ) ; }

Target:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { xsrfRequestBuilder.setXsrfToken ( null ) ; callback.onSuccess ( result ) ; }
Source:
public java.util.ArrayList < java.lang.String > getChangeablePropertiesList ( ) { return org.ovirt.engine.core.common.businessentities.roles._event_subscriberProperties ; }

Target:
public java.util.ArrayList < java.lang.String > getChangeablePropertiesList ( ) { return org.ovirt.engine.core.common.businessentities.Role._event_subscriberProperties ; }
Source:
protected void endSuccessfully ( ) { endActionOnDisks ( ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.freeLock ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.ConvertVm , buildConvertVmParameters ( ) , org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.cloneContextAndDetachFromParent ( ) ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.setSucceeded ( true ) ; }

Target:
protected void endSuccessfully ( ) { endActionOnDisks ( ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.freeLock ( ) ; convert ( ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.setSucceeded ( true ) ; }
Source:
protected java.lang.Object GetValue ( org.ovirt.engine.core.common.config.DataType type , java.lang.String name , java.lang.String defaultValue ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.log.warnFormat ( "Using old GetValue for {0}." , name ) ; org.ovirt.engine.core.common.config.ConfigValues value = org.ovirt.engine.core.common.config.ConfigValues.valueOf ( name ) ; return GetValue ( value , Config.DefaultConfigurationVersion ) ; }

Target:
protected java.lang.Object GetValue ( org.ovirt.engine.core.common.config.DataType type , java.lang.String name , java.lang.String defaultValue ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.log.warnFormat ( "Using old GetValue for {0}." , name ) ; org.ovirt.engine.core.common.config.ConfigValues value = org.ovirt.engine.core.common.config.ConfigValues.valueOf ( name ) ; return GetValue ( value , ConfigCommon.defaultConfigurationVersion ) ; }
Source:
protected void releaseLock ( org.ovirt.engine.core.compat.Guid clusterId ) { getLockManager ( ) . releaseLock ( getEngineLock ( clusterId ) ) ; }

Target:
protected void acquireLock ( org.ovirt.engine.core.compat.Guid clusterId ) { lockManager.acquireLockWait ( getEngineLock ( clusterId ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.EditNetworkModel object ) { driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.EditNetworkModel object ) { driver.edit ( object ) ; network = object.getNetwork ( ) ; }
Source:
private void handleFinishedSuccess ( ) { log.info ( "Upload to was successful" , getUploadDescription ( ) ) ; setCommandStatus ( CommandStatus.SUCCEEDED ) ; }

Target:
private void handleFinishedSuccess ( ) { log.info ( "Transfer was successful. {}" , getTransferDescription ( ) ) ; setCommandStatus ( CommandStatus.SUCCEEDED ) ; }
Source:
public void execute ( ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.logger.fine ( ( ( this . getClass ( ) . getName ( ) ) + ": Executing search" ) ) ; syncSearch ( ) ; }

Target:
protected void doGridTimerExecute ( ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.logger.fine ( ( ( this . getClass ( ) . getName ( ) ) + ": Executing search" ) ) ; syncSearch ( ) ; }
Source:
public void vmTemplateNameWithVm ( ) { final org.ovirt.engine.core.common.businessentities.VM v = new org.ovirt.engine.core.common.businessentities.VM ( ) ; b.setVm ( v ) ; final java.lang.String n = b.getVmTemplateName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , n ) ; }

Target:
public void vmTemplateNameWithVm ( ) { final org.ovirt.engine.core.common.businessentities.VM v = new org.ovirt.engine.core.common.businessentities.VM ( ) ; b.setVm ( v ) ; final java.lang.String n = b.getVmTemplateName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , n ) ; }
Source:
public void setEntity ( java.lang.Boolean enableManualMac ) { super . setEntity ( enableManualMac ) ; getMAC ( ) . setIsChangable ( enableManualMac ) ; }

Target:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; }
Source:
public void testExistingUsbControllerModelWithChipset ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel7" ) , null , ChipsetType.Q35 ) ; org.junit.Assert.assertEquals ( UsbControllerModel.QEMU_XHCI , model ) ; }

Target:
public void testExistingUsbControllerModelWithChipset ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel7" ) , null , ChipsetType.Q35 ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbControllerModel.QEMU_XHCI , model ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.getImageSourceLocalEnabled ( ) . setEntity ( false ) ; setSourceVisibility ( model ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { imageFileUpload.getElement ( ) . < com.google.gwt.dom.client.InputElement > cast ( ) . click ( ) ; }
Source:
public org.ovirt.api.metamodel.concepts.Type getType ( org.ovirt.api.metamodel.concepts.Name name ) { return types.stream ( ) . filter ( org.ovirt.api.metamodel.concepts.Concept.named ( name ) ) . findFirst ( ) . orElse ( null ) ; }

Target:
public org.ovirt.api.metamodel.concepts.Type getType ( org.ovirt.api.metamodel.concepts.Name name ) { return types.stream ( ) . filter ( org.ovirt.api.metamodel.concepts.Named.named ( name ) ) . findFirst ( ) . orElse ( null ) ; }
Source:
public void testNullKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.utils.StringMapUtils.string2Map ( org.ovirt.engine.core.utils.StringMapUtilsTest.NULL_KEY_VAL ) ; org.junit.Assert.assertEquals ( 0 , map.size ( ) ) ; }

Target:
public void testNullKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.utils.StringMapUtils.string2Map ( org.ovirt.engine.core.utils.StringMapUtilsTest.NULL_KEY_VAL ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , map.size ( ) ) ; }
Source:
public void put ( 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 void put ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity ) ;
Source:
public void testGlusterDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_3 ) ; storagePool.setStorageType ( StorageType.GLUSTERFS ) ; org.junit.Assert.assertTrue ( validator.isGlusterDcAndMatchingCompatiblityVersion ( ) . isValid ( ) ) ; }

Target:
public void testGlusterDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_3 ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertTrue ( validator.isGlusterSupportedInDC ( ) . isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvmt_guid ( ) { return this . mVmStatic.getvmt_guid ( ) ; }

Target:
public int getVmtNumOfCpus ( ) { return this . vmtNumOfCpus ; }
Source:
private static void addToAuditLogSuccessMessage ( java.lang.String IsoDomain , java.lang.String imageType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "imageDomains" , java.lang.String.format ( "%s (%s file type)" , IsoDomain , imageType ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_IMAGE_LIST_SUCCEEDED ) ; }

Target:
private static void addToAuditLogSuccessMessage ( java.lang.String IsoDomain , java.lang.String imageType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "imageDomains" , java.lang.String.format ( "%s (%s file type)" , IsoDomain , imageType ) ) ; org.ovirt.engine.core.bll.IsoDomainListSyncronizer.auditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_IMAGE_LIST_SUCCEEDED ) ; }
Source:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImage > Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImage > ) ( returnValue ) ) ; }

Target:
public java.lang.Boolean convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.lang.Boolean ) ( returnValue ) ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.HibernateVmCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.HibernateVmCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , getVmIsHibernatingMessage ( ) ) ) ; }
Source:
protected void revealInParent ( ) { com.gwtplatform.mvp.client.proxy.RevealContentEvent.fire ( this , MainTabPanelPresenter.TYPE_SetTabContent , this ) ; }

Target:
void revealActiveMainModelPresenter ( ) { org.ovirt.engine.ui.common.uicommon.model.MainModelSelectionChangeEvent.fire ( this , org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) . getSelectedItem ( ) ) ; }
Source:
public void rerun ( ) { setFlow ( null ) ; super . rerun ( ) ; }

Target:
public void rerun ( ) { setFlow ( null ) ; acquireHostDevicesLock ( ) ; super . rerun ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map map ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lUN_id" , map.getLunId ( ) ) . addValue ( "storage_server_connection" , map.getstorage_server_connection ( ) ) ; getCallsHandler ( ) . executeModification ( "InsertLUN_storage_server_connection_map" , parameterSource ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map map ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "lun_id" , map.getLunId ( ) ) . addValue ( "storage_server_connection" , map.getstorage_server_connection ( ) ) ; getCallsHandler ( ) . executeModification ( "InsertLUN_storage_server_connection_map" , parameterSource ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.aaa.GetDirectoryGroupsForUserQuery.getQueryReturnValue ( ) . setReturnValue ( getDirectoryUser ( org.ovirt.engine.core.bll.aaa.GetDirectoryGroupsForUserQuery.getDbFacade ( ) . getDbUserDao ( ) . get ( org.ovirt.engine.core.bll.aaa.GetDirectoryGroupsForUserQuery.getUserID ( ) ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.aaa.GetDirectoryGroupsForUserQuery.getQueryReturnValue ( ) . setReturnValue ( getDirectoryUser ( org.ovirt.engine.core.bll.aaa.GetDirectoryGroupsForUserQuery.getSessionDataContainer ( ) . getUser ( org.ovirt.engine.core.bll.aaa.GetDirectoryGroupsForUserQuery.getParameters ( ) . getSessionId ( ) , false ) ) ) ; }
Source:
public boolean connectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.ConnectStorageToVds.getValue ( ) , lun , storagePoolId ) ; }

Target:
public boolean connectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.ConnectStorageToVds.getValue ( ) , lun , storagePoolId ) . getFirst ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct options ) ;
Source:
public static org.ovirt.engine.core.common.businessentities.gluster.GlusterSnapshotStatus from ( java.lang.String status ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterSnapshotStatus snapshotStatus : org.ovirt.engine.core.common.businessentities.gluster.GlusterSnapshotStatus.values ( ) ) { if ( snapshotStatus.name ( ) . equals ( status ) ) { return snapshotStatus ; } } return org.ovirt.engine.core.common.businessentities.gluster.GlusterSnapshotStatus.UNKNOWN ; }

Target:
public static org.ovirt.engine.core.common.businessentities.gluster.GlusterSnapshotStatus from ( java.lang.String status ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterSnapshotStatus snapshotStatus : org.ovirt.engine.core.common.businessentities.gluster.GlusterSnapshotStatus.values ( ) ) { if ( snapshotStatus.name ( ) . equalsIgnoreCase ( status ) ) { return snapshotStatus ; } } return org.ovirt.engine.core.common.businessentities.gluster.GlusterSnapshotStatus.UNKNOWN ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface result = dao.get ( FixturesTool.VM_NETWORK_INTERFACE ) ; assertNotNull ( result ) ; assertEquals ( FixturesTool.VM_NETWORK_INTERFACE , result.getId ( ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface result = dao.get ( FixturesTool.VM_NETWORK_INTERFACE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.VM_NETWORK_INTERFACE , result.getId ( ) ) ; }
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.VM , org.ovirt.engine.ui.uicommonweb.models.pools.PoolListModel , org.ovirt.engine.ui.uicommonweb.models.pools.PoolVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.poolVmSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.pools.PoolListModel , org.ovirt.engine.ui.uicommonweb.models.pools.PoolVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.pool.SubTabPoolVmPresenter.constants.poolVmSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
public void testNoDiskStats ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = getVds ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateLocalDisksUsage ( vds , new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct ( ) ) ; org.junit.Assert.assertNull ( vds.getLocalDisksUsage ( ) ) ; }

Target:
public void testNoDiskStats ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVds ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateLocalDisksUsage ( vds , new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct ( ) ) ; org.junit.Assert.assertNull ( vds.getLocalDisksUsage ( ) ) ; }
Source:
protected void addInvalidSDStatusMessage ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; addCanDoActionMessage ( java.lang.String.format ( "$status %1$s" , status ) ) ; }

Target:
protected void addInvalidSDStatusMessage ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; addCanDoActionMessageVariable ( "status" , status ) ; }
Source:
public void updateBadFormatPath ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "host/mydir" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_INVALID ) ; }

Target:
public void updateBadFormatPath ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "host/mydir" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_INVALID ) ; }
Source:
public void init ( ) { timer = new java.util.Timer ( ) ; timer.scheduleAtFixedRate ( this , 0 , 2000L ) ; }

Target:
public void init ( ) { timer = new java.util.Timer ( ) ; timer.scheduleAtFixedRate ( this , 0 , 2000 ) ; }
Source:
public void clusterEmulatedMachineIsNull ( ) { emulatedMachine = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , images , luns , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "emulated machine" ) ; }

Target:
public void clusterEmulatedMachineIsNull ( ) { emulatedMachine = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , fullEntityOvfData , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "emulated machine" ) ; }
Source:
public static void saveAsyncTaskInDB ( org.ovirt.engine.core.bll.SPMAsyncTask asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDAO ( ) . save ( asyncTask.getParameters ( ) . getDbAsyncTask ( ) , asyncTask.getEntityType ( ) , asyncTask.getAssociatedEntities ( ) ) ; }

Target:
public static void saveAsyncTaskInDB ( org.ovirt.engine.core.bll.SPMAsyncTask asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . save ( asyncTask.getParameters ( ) . getDbAsyncTask ( ) , asyncTask.getEntityType ( ) , asyncTask.getAssociatedEntities ( ) ) ; }
Source:
protected void processImages ( ) { processImages ( ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.isImagesAlreadyOnTarget ( ) ) ) ) ; if ( org.ovirt.engine.core.bll.ImportVmCommand.getReturnValue ( ) . getVdsmTaskIdList ( ) . isEmpty ( ) ) { endVmRelatedOps ( ) ; } }

Target:
protected void processImages ( ) { processImages ( ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.isImagesAlreadyOnTarget ( ) ) ) ) ; if ( org.ovirt.engine.core.bll.ImportVmCommand.getReturnValue ( ) . getVdsmTaskIdList ( ) . isEmpty ( ) ) { org.ovirt.engine.core.bll.VmHandler.unLockVm ( getVm ( ) ) ; } }
Source:
protected void onClick ( T value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommand ( value ) ; if ( command != null ) { command.execute ( ) ; } }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommandOnClick ( T value ) { return resolveCommand ( value ) ; }
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 ( ) . networkVmSubTabLabel ( ) , 3 , ginjector.getSubTabNetworkVmModelProvider ( ) ) ; }

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.VM > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkVmSubTabLabel ( ) , 4 , modelProvider ) ; }
Source:
public void testResolveNetworkExclusivenessValidatorNew ( ) { final org.ovirt.engine.core.bll.validator.network.NetworkExclusivenessValidator actual = underTest.resolveNetworkExclusivenessValidator ( ) ; org.junit.Assert.assertThat ( actual , org.hamcrest.CoreMatchers.sameInstance ( vlanUntaggedNetworkExclusivenessValidator ) ) ; }

Target:
public void testResolveNetworkExclusivenessValidatorNew ( ) { final org.ovirt.engine.core.bll.validator.network.NetworkExclusivenessValidator actual = underTest.resolveNetworkExclusivenessValidator ( ) ; org.hamcrest.MatcherAssert.assertThat ( actual , org.hamcrest.CoreMatchers.sameInstance ( vlanUntaggedNetworkExclusivenessValidator ) ) ; }
Source:
public org.ovirt.engine.api.resource.ReadOnlyDeviceResource < D > getDeviceSubResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) ;

Target:
public org.ovirt.engine.api.resource.ReadOnlyDeviceResource < D > getDeviceResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) ;
Source:
public void canDoActionFailsOnNull ( ) { cmd = createTestCommand ( null ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
void save ( org.ovirt.engine.core.common.businessentities.AsyncTasks task , org.ovirt.engine.core.common.VdcObjectType enitytType , org.ovirt.engine.core.compat.Guid ... entityIds ) ;

Target:
void saveOrUpdate ( org.ovirt.engine.core.common.businessentities.AsyncTasks task ) ;
Source:
private org.ovirt.engine.core.compat.Guid addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMemoryDisk ( vm , getStorageType ( ) , vmOverheadCalculator , org.ovirt.engine.core.bll.memory.MemoryUtils.generateMemoryDiskDescription ( vm , snapshotDescription ) ) ; return addDisk ( memoryDisk ) ; }

Target:
private org.ovirt.engine.core.compat.Guid addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMemoryDisk ( vm , getStorageType ( ) , vmOverheadCalculator , org.ovirt.engine.core.bll.memory.MemoryUtils.generateMemoryDiskDescription ( vm , snapshotDescription ) ) ; memoryDisk.setWipeAfterDelete ( wipeAfterDelete ) ; return addDisk ( memoryDisk ) ; }
Source:
protected org.ovirt.engine.api.model.ExternalComputeResource getEntity ( int index ) { org.ovirt.engine.api.model.ExternalComputeResource resource = control.createMock ( org.ovirt.engine.api.model.ExternalComputeResource.class ) ; org.easymock.EasyMock.expect ( resource.getName ( ) ) . andReturn ( NAMES [ index ] ) . anyTimes ( ) ; return resource ; }

Target:
protected org.ovirt.engine.api.model.ExternalComputeResource getEntity ( int index ) { org.ovirt.engine.api.model.ExternalComputeResource resource = org.mockito.Mockito.mock ( org.ovirt.engine.api.model.ExternalComputeResource.class ) ; org.mockito.Mockito.when ( resource.getName ( ) ) . thenReturn ( NAMES [ index ] ) ; return resource ; }
Source:
private void SearchUserRoles ( ) { setItemsFilter ( RoleType.USER ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
private void searchUserRoles ( ) { setItemsFilter ( RoleType.USER ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getDiskDescription ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getDiskAlias ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.ServerConnectionStatusReturnForXmlRpc validateStorageServerConnection ( int serverType , java.lang.String spUUID , java.util.Map < java.lang.String , java.lang.String > [ ] args ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc diskReplicateFinish ( java.lang.String vmUUID , java.util.Map srcDisk , java.util.Map dstDisk ) ;
Source:
public org.ovirt.engine.api.resource.ActionResource getActionSubresource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action ) ;

Target:
public org.ovirt.engine.api.resource.ActionResource getActionSubresource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action , @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) ;
Source:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; UpdateCustomProperties ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; }

Target:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc stopImageTransferSession ( java.lang.String ticketId , java.lang.String spId , java.lang.String sdId , java.lang.String imgId , java.lang.String volId ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturnForXmlRpc teardownImage ( java.lang.String spId , java.lang.String sdId , java.lang.String imgGroupId , java.lang.String imgId ) ;
Source:
public void saveAllInBatch ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsDynamic > entities ) { updateAll ( entities ) ; }

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 void pollInterruptively ( final org.ovirt.engine.core.common.interfaces.FutureVDSCall < org.ovirt.engine.core.common.vdscommands.VDSReturnValue > setupNetworksTask ) { while ( ! ( setupNetworksTask.isDone ( ) ) ) { pollVds ( ) ; } }

Target:
private void pollInterruptively ( final org.ovirt.engine.core.common.interfaces.FutureVDSCall < org.ovirt.engine.core.common.vdscommands.VDSReturnValue > setupNetworksTask ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworkPoller poller = new org.ovirt.engine.core.bll.network.host.HostSetupNetworkPoller ( ) ; while ( ! ( setupNetworksTask.isDone ( ) ) ) { poller.poll ( org.ovirt.engine.core.bll.network.host.SetupNetworksCommand.getVdsId ( ) ) ; } }
Source:
protected < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.VdcQueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier ) { return getEntity ( clz , query , queryParams , identifier , false ) ; }

Target:
protected < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier ) { return getEntity ( clz , query , queryParams , identifier , false ) ; }
Source:
public void setDisplayNetwork ( boolean displayNetwork ) { getEntity ( ) . getCluster ( ) . setis_display ( displayNetwork ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel getDisplayNetwork ( ) { if ( ! ( isMultiDisplay ( ) ) ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel : getItems ( ) ) { if ( clusterNetworkManageModel.isDisplayNetwork ( ) ) { return clusterNetworkManageModel ; } } } return null ; }
Source:
protected org.ovirt.engine.api.model.HostNIC populate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.VdsNetworkInterface entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.HostNIC deprecatedPopulate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM getVm ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , vmId.toString ( ) , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM getVm ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , QueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , vmId.toString ( ) , true ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionType getActionType ( ) { return super . getActionType ( ) ; }

Target:
public T getParameters ( ) { return super . getParameters ( ) ; }
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 , null , networkName , true , null , false , null ) ; }

Target:
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 , null , networkName , true , null , false , null , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; }
Source:
public void setvm_pid ( java.lang.Integer value ) { this . mVmDynamic.setvm_pid ( value ) ; }

Target:
public java.lang.Integer getVmPid ( ) { return this . vmDynamic.getvm_pid ( ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( java.lang.String.format ( "%svars/ssl" , VdsmEnv.CONFIG_PREFIX ) , org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.UseSecureConnectionWithServers ) . toString ( ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( java.lang.String.format ( "%svars/ssl" , VdsmEnv.CONFIG_PREFIX ) , org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.EncryptHostCommunication ) . toString ( ) ) ; return null ; }
Source:
public void setUp ( ) { injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; }

Target:
public void setUp ( ) { injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; vmHandler.init ( ) ; }
Source:
public void testGetEventMapByName ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.EventMap > result = dao.getEventMapByName ( "TestRun" ) ; assertNotNull ( result ) ; for ( org.ovirt.engine.core.common.businessentities.EventMap mapping : result ) { assertEquals ( "TestRun" , mapping.getEventUpName ( ) ) ; } }

Target:
public void testGetEventMapByName ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.EventMap > result = dao.getEventMapByName ( "TestRun" ) ; org.junit.Assert.assertNotNull ( result ) ; for ( org.ovirt.engine.core.common.businessentities.EventMap mapping : result ) { org.junit.Assert.assertEquals ( "TestRun" , mapping.getEventUpName ( ) ) ; } }
Source:
public void execute ( ) { Refresh ( ) ; }

Target:
public void execute ( ) { refresh ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockIface.getName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_NAME ) ; org.mockito.Mockito.when ( mockIface.getAddress ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_ADDRESS ) ; underTest = new org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicate ( mockIface ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockIface.getName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_NAME ) ; org.mockito.Mockito.when ( mockIface.getIpv4Address ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_ADDRESS ) ; underTest = new org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicate ( mockIface ) ; }
Source:
public void serializeVdsNetworkInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; junit.framework.Assert.assertTrue ( ( ( serialezer.serialize ( nic ) . length ( ) ) > 0 ) ) ; }

Target:
public void serializeVdsNetworkInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serializer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; org.junit.Assert.assertTrue ( ( ( serializer.serialize ( nic ) . length ( ) ) > 0 ) ) ; }
Source:
public int getoption_id ( ) { return this . id ; }

Target:
public int getOptionId ( ) { return this . id ; }
Source:
public void testNetworkNotChangedWhenOldAttachmentIsNull ( ) { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkNotChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNetworkNotChangedWhenOldAttachmentIsNull ( ) { org.hamcrest.MatcherAssert.assertThat ( createNetworkAttachmentValidator ( null ) . networkNotChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }