auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setDialect ( org.ovirt.engine.core.dal.dbbroker.DbEngineDialect dialect ) { this . dialect = dialect ; }

Target:
protected org.ovirt.engine.core.dal.dbbroker.DbEngineDialect getDialect ( ) { return dbEngineDialect ; }
Source:
private java.lang.String renderNameId ( java.lang.String name , java.lang.String id ) { if ( id == null ) { return name ; } return org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.AddVmHostDevicePopupView.messages.nameId ( name , id ) ; }

Target:
private java.lang.String renderNameId ( java.lang.String name , java.lang.String id ) { if ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( name ) ) { return id ; } return org.ovirt.engine.ui.webadmin.section.main.view.popup.vm.AddVmHostDevicePopupView.messages.nameId ( name , id ) ; }
Source:
public java.util.ArrayList < java.lang.String > getWatchDogModels ( int osId , org.ovirt.engine.core.compat.Version version ) { java.lang.String models = getValueByVersion ( idToUnameLookup.get ( osId ) , "watchDogModels" , version ) ; return trimElements ( models.split ( "," ) ) ; }

Target:
public java.util.ArrayList < java.lang.String > getWatchDogModels ( int osId , org.ovirt.engine.core.compat.Version version ) { java.lang.String models = getValueByVersion ( idToUnameLookup.get ( osId ) , "devices.watchdog.models" , version ) ; return trimElements ( models.split ( "," ) ) ; }
Source:
protected boolean canMigrateVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ( vm.getMigrationSupport ( ) ) == ( org.ovirt.engine.core.common.businessentities.MigrationSupport.MIGRATABLE ) ) { return super . canMigrateVm ( vm ) ; } return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_NON_MIGRTABLE ) ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.InternalMigrateVmCommand.getVm ( ) . getMigrationSupport ( ) ) == ( org.ovirt.engine.core.common.businessentities.MigrationSupport.MIGRATABLE ) ) { return super . canDoAction ( ) ; } return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_NON_MIGRTABLE ) ; }
Source:
protected java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > getParentClass ( ) { return org.ovirt.engine.api.model.HostNIC.class ; }

Target:
protected java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > getParentClass ( ) { return org.ovirt.engine.api.model.HostNic.class ; }
Source:
public void setLuns ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.storage.LunModel > value ) { if ( ( luns ) != value ) { luns = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Luns" ) ) ; getLunsList ( ) . setItems ( luns ) ; } }

Target:
public void setLuns ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.storage.LunModel > value ) { if ( ( luns ) != value ) { luns = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Luns" ) ) ; getLunsList ( ) . setItems ( luns ) ; } }
Source:
protected void executeVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.getBroker ( ) . pause ( mVmId.toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getStatus ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { vmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.getBroker ( ) . pause ( vmId.toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( vmReturn.vm ) . getStatus ( ) ) ; }
Source:
org.ovirt.engine.core.bll.host.provider.HostProviderProxy getHostProviderProxy ( org.ovirt.engine.core.common.businessentities.Provider < ? > provider ) { return ( ( org.ovirt.engine.core.bll.host.provider.HostProviderProxy ) ( org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) . create ( provider ) ) ) ; }

Target:
org.ovirt.engine.core.bll.host.provider.HostProviderProxy getHostProviderProxy ( org.ovirt.engine.core.common.businessentities.Provider < ? > provider ) { return ( ( org.ovirt.engine.core.bll.host.provider.HostProviderProxy ) ( providerProxyFactory.create ( provider ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( cachedStorageDomain ) == null ) { cachedStorageDomain = getStorageDomainDAO ( ) . get ( params.getStorageDomainId ( ) ) ; } return cachedStorageDomain ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( cachedStorageDomain ) == null ) { cachedStorageDomain = getStorageDomainDao ( ) . get ( params.getStorageDomainId ( ) ) ; } return cachedStorageDomain ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; if ( "IsSelected" . equals ( propName ) ) { setChecked ( model.getIsSelected ( ) ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName ; if ( "IsSelected" . equals ( propName ) ) { setChecked ( model.getIsSelected ( ) ) ; } }
Source:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true ) , false ) ; assertPostZeroValue ( parameters , true ) ; }

Target:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixPostZeroField ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true , false ) , false ) ; assertPostZeroValue ( parameters , true ) ; }
Source:
public void newDisk ( ) { if ( ( getEntity ( ) ) == null ) { return ; } addDisk ( new org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskGuideModel ( this ) , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . attachVirtualDiskTitle ( ) , HelpTag.new_virtual_disk , "new_virtual_disk" ) ; }

Target:
public void newDisk ( ) { if ( ( getEntity ( ) ) == null ) { return ; } addDisk ( new org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskGuideModel ( this ) , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newVirtualDiskTitle ( ) , HelpTag.new_virtual_disk , "new_virtual_disk" ) ; }
Source:
private boolean checkIsDomainLocked ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap domainMap ) { if ( ( ( domainMap.getStatus ( ) ) != null ) && ( domainMap.getStatus ( ) . isStorageDomainInProcess ( ) ) ) { addInvalidSDStatusMessage ( StorageDomainStatus.Locked ) ; return true ; } return false ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties ; }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public java.lang.Double getcpu_idle ( ) { return this . cpu_idle.doubleValue ( ) ; }

Target:
public java.lang.Double getCpuIdle ( ) { return this . cpuIdle.doubleValue ( ) ; }
Source:
public static java.lang.Class < org.ovirt.engine.core.bll.CommandBase < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > > getQueryClass ( java.lang.String name ) { return org.ovirt.engine.core.bll.CommandsFactory.getCommandClass ( name , org.ovirt.engine.core.bll.CommandsFactory.QueryPrefix ) ; }

Target:
public static java.lang.Class < org.ovirt.engine.core.bll.CommandBase < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > > getQueryClass ( java.lang.String name ) { return org.ovirt.engine.core.bll.CommandsFactory.getCommandClass ( name , org.ovirt.engine.core.bll.CommandsFactory.QUERY_SUFFIX ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskImageGroupId ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskProfileId , diskImageGroupId ) ) ; }
Source:
protected org.ovirt.engine.core.dao.VmNetworkInterfaceDAO getVmNetworkInterfaceDAO ( ) { return super . getVmNetworkInterfaceDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VmNetworkInterfaceDAO getVmNetworkInterfaceDao ( ) { return super . getVmNetworkInterfaceDao ( ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Label label ) { validateParameters ( label , "id" ) ; return performCreate ( VdcActionType.LabelNic , new org.ovirt.engine.core.common.action.LabelNicParameters ( nicId , label.getId ( ) ) , new org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResource.NetworkLabelIdResolver ( nicId , label.getId ( ) ) ) ; }

Target:
protected javax.ws.rs.core.Response performCreate ( java.lang.String labelId ) { return performCreate ( VdcActionType.LabelNic , new org.ovirt.engine.core.common.action.LabelNicParameters ( nicId , labelId ) , new org.ovirt.engine.api.restapi.resource.NetworkLabelIdResolver ( nicId ) ) ; }
Source:
public void vmNameNull ( ) { b.setVmName ( null ) ; final java.lang.String n = b.getVmName ( ) ; org.junit.Assert.assertNull ( n ) ; }

Target:
public void vmNameNull ( ) { b.setVmName ( null ) ; final java.lang.String n = b.getVmName ( ) ; org.junit.jupiter.api.Assertions.assertNull ( n ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( value ) ; result = ( prime * result ) + ( salt ) ; return result ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( value , salt ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 3 , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > result = dao.getAll ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 3 , result.size ( ) ) ; }
Source:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet < > ( ) ; org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.addTooltipsEvents ( set ) ; set.addAll ( super . getConsumedEvents ( ) ) ; return set ; }

Target:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.HashSet < java.lang.String > set = new java.util.HashSet ( super . getConsumedEvents ( ) ) ; set.addAll ( ElementTooltipUtils.HANDLED_CELL_EVENTS ) ; return set ; }
Source:
private void assertPatternDoesNotMatch ( java.lang.String message , java.lang.String pattern , java.lang.String ... invalidStrings ) { for ( java.lang.String s : invalidStrings ) { org.junit.Assert.assertTrue ( ( message + s ) , ( ! ( java.util.regex.Pattern.matches ( pattern , s ) ) ) ) ; } }

Target:
private void assertPatternDoesNotMatch ( java.lang.String message , java.lang.String pattern , java.lang.String ... invalidStrings ) { for ( java.lang.String s : invalidStrings ) { org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( java.util.regex.Pattern.matches ( pattern , s ) ) ) , ( message + s ) ) ; } }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolIsoMapDao ( ) . updateStatus ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( storageDomainId , getStoragePool ( ) . getId ( ) ) , StorageDomainStatus.InActive ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolIsoMapDao ( ) . updateStatus ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( storageDomainId , getStoragePool ( ) . getId ( ) ) , StorageDomainStatus.Inactive ) ; return null ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec , java.lang.String connectionAction , java.util.Map < java.lang.String , java.lang.String > params ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc changeDisk ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.Object > driveSpec ) ;
Source:
public void setSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SearchableListModel value ) { super . setSelectedItem ( value ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.events.EventListModel getEventList ( ) { return eventListModel ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Snapshot getActiveSnapshot ( ) { org.ovirt.engine.core.common.businessentities.Snapshot activeSnapshot = org.ovirt.engine.core.bll.VmHandler.getActiveSnapshot ( getVm ( ) ) ; if ( activeSnapshot == null ) { org.ovirt.engine.core.bll.ImportVmCommand.log.warn ( "VM '{}' doesn't have active snapshot in export domain" , getVmId ( ) ) ; } return activeSnapshot ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot getActiveSnapshot ( ) { org.ovirt.engine.core.common.businessentities.Snapshot activeSnapshot = org.ovirt.engine.core.bll.VmHandler.getActiveSnapshot ( org.ovirt.engine.core.bll.ImportVmCommand.getVm ( ) ) ; if ( activeSnapshot == null ) { org.ovirt.engine.core.bll.ImportVmCommand.log.warn ( "VM '{}' doesn't have active snapshot in export domain" , org.ovirt.engine.core.bll.ImportVmCommand.getVmId ( ) ) ; } return activeSnapshot ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getTreeForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.VdcObjectType type , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getTreeForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.VdcObjectType type , long engineSessionSeqId , boolean isFiltered ) ;
Source:
public void updateVisibility ( ) { messageLabel.setVisible ( false ) ; }

Target:
public void updateVisibility ( ) { messageLabel.setVisible ( false ) ; exportLabel.setVisible ( org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.isModeSupported ( ApplicationMode.VirtOnly ) ) ; }
Source:
private void updateIsUsbEnabled ( ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.IsUSBEnabledByDefault ( new org.ovirt.engine.ui.frontend.AsyncQuery ( this , new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { setIsUsbEnabled ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; } } ) ) ; }

Target:
private void updateIsUsbEnabled ( ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isUSBEnabledByDefault ( new org.ovirt.engine.ui.frontend.AsyncQuery ( this , new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { setIsUsbEnabled ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; } } ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
public org.ovirt.engine.api.model.Groups list ( ) { return mapDomainGroupsCollection ( getGroupsFromDomain ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Domain getDirectory ( ) { return parent.getDirectory ( ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetHostListFromExternalProvider , org.ovirt.engine.core.common.queries.GetHostListFromExternalProviderParameters.class , new java.lang.String [ ] { "ProviderId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getHosts ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetHostListFromExternalProvider , org.ovirt.engine.core.common.queries.GetHostListFromExternalProviderParameters.class , new java.lang.String [ ] { "ProviderId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getHosts ( ) , failure ) ; }
Source:
void buildVmNetworkInterfaces ( ) ;

Target:
void buildVmNetworkInterfaces ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > passthroughVnicToVfMap ) ;
Source:
public void setcpu_per_socket ( int value ) { this . mVmStatic.setcpu_per_socket ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "cpu_per_socket" ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_cpus" ) ) ; }

Target:
public void setNumOfMonitors ( int value ) { this . vmStatic.setNumOfMonitors ( value ) ; }
Source:
private static void assertPluggedGetAllForVMResult ( java.util.List < org.ovirt.engine.core.common.businessentities.Disk > disks ) { java.lang.Integer numberOfDisks = 2 ; org.junit.Assert.assertEquals ( ( ( "VM should have " + numberOfDisks ) + " plugged disk" ) , numberOfDisks.intValue ( ) , disks.size ( ) ) ; }

Target:
private static void assertPluggedGetAllForVMResult ( java.util.List < org.ovirt.engine.core.common.businessentities.Disk > disks ) { java.lang.Integer numberOfDisks = 5 ; org.junit.Assert.assertEquals ( ( ( "VM should have " + numberOfDisks ) + " plugged disk" ) , numberOfDisks.intValue ( ) , disks.size ( ) ) ; }
Source:
protected int compareCpuLevels ( org.ovirt.engine.core.common.businessentities.VDSGroup otherGroup ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.compareCpuLevels ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , otherGroup.getcpu_name ( ) , otherGroup.getcompatibility_version ( ) ) ; }

Target:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
private void readHeader ( ) { version = "" ; org.ovirt.engine.core.compat.backendcompat.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 = _document.SelectSingleNode ( "//ovf:Envelope" , _xmlNS ) ; if ( node != null ) { version = node.attributes.get ( "ovf:version" ) . getValue ( ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.network.IpV6Address createPrimaryIpv6Address ( ) { org.ovirt.engine.core.common.businessentities.network.IpV6Address ipv6Address = new org.ovirt.engine.core.common.businessentities.network.IpV6Address ( ) ; ipv6Address.setBootProtocol ( Ipv4BootProtocol.DHCP ) ; return ipv6Address ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.IpV6Address createPrimaryIpv6Address ( ) { org.ovirt.engine.core.common.businessentities.network.IpV6Address ipv6Address = new org.ovirt.engine.core.common.businessentities.network.IpV6Address ( ) ; ipv6Address.setBootProtocol ( Ipv6BootProtocol.DHCP ) ; return ipv6Address ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; isAnyHostUpInCluster = ( ( java.lang.Boolean ) ( returnValue ) ) ; clusterGuideModel.UpdateOptionsNonLocalFS ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; isAnyHostUpInCluster = ( ( java.lang.Boolean ) ( returnValue ) ) ; clusterGuideModel.updateOptionsNonLocalFS ( ) ; }
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.irsbroker.StoragePoolInfoReturnForXmlRpc getStoragePoolInfo ( java.lang.String spUUID ) ;
Source:
public void setEnabledWithToolTip ( boolean isEnabled , java.lang.String tooltip ) { this . isEnabled = isEnabled ; this . tooltip = tooltip ; }

Target:
public void setEnabled ( boolean isEnabled ) { this . isEnabled = isEnabled ; }
Source:
public boolean remove ( java.lang.Object o ) { boolean b = super . remove ( o ) ; OnCollectionChanged ( ) ; return b ; }

Target:
public boolean remove ( java.lang.Object o ) { boolean b = super . remove ( o ) ; onCollectionChanged ( ) ; return b ; }
Source:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( java.lang.String volumeName ) { try { java.util.Map < java.lang.String , java.lang.Object > response ; response = vdsServer.glusterVolumeGeoRepStatus ( volumeName ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( ) { try { java.util.Map < java.lang.String , java.lang.Object > response = vdsServer.glusterVolumeGeoRepSessionList ( ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Tag model , int index ) { super . verifyModel ( model , index ) ; org.junit.Assert.assertFalse ( model.getHref ( ) . startsWith ( ( ( BASE_PATH ) + "/tags" ) ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Tag model , int index ) { super . verifyModel ( model , index ) ; org.junit.jupiter.api.Assertions.assertFalse ( model.getHref ( ) . startsWith ( ( ( BASE_PATH ) + "/tags" ) ) ) ; }
Source:
public org.ovirt.engine.api.model.KatelloErratum get ( ) { return performGet ( VdcQueryType.GetErratumByIdForVm , new org.ovirt.engine.core.common.queries.HostErratumQueryParameters ( asGuid ( vmId ) , org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) ) , org.ovirt.engine.api.model.Vm.class ) ; }

Target:
public org.ovirt.engine.api.model.KatelloErratum get ( ) { return performGet ( QueryType.GetErratumByIdForVm , new org.ovirt.engine.core.common.queries.HostErratumQueryParameters ( asGuid ( vmId ) , org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) ) , org.ovirt.engine.api.model.Vm.class ) ; }
Source:
private boolean commandHasInvalidStatusMessage ( ) { return cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2.toString ( ) ) ; }

Target:
private boolean commandHasInvalidStatusMessage ( ) { return cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2.toString ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.ImportVmTemplateCommand createImportVmTemplateCommandSpy ( final org.ovirt.engine.core.common.action.ImportVmTemplateParameters parameters ) { org.ovirt.engine.core.bll.ImportVmTemplateCommand spy = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.ImportVmTemplateCommand ( parameters ) { @ java.lang.Override public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return null ; } } ) ; return spy ; }

Target:
private org.ovirt.engine.core.bll.ImportVmTemplateCommand createImportVmTemplateCommandSpy ( final org.ovirt.engine.core.common.action.ImportVmTemplateParameters parameters ) { org.ovirt.engine.core.bll.ImportVmTemplateCommand spy = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.ImportVmTemplateCommand ( parameters , org.ovirt.engine.core.bll.context.CommandContext.createContext ( parameters.getSessionId ( ) ) ) { @ java.lang.Override public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return null ; } } ) ; return spy ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem a , org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem b ) { return ( a.salt ) - ( b.salt ) ; }

Target:
java.util.Comparator < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > makeSaltComparator ( ) { return java.util.Comparator.comparingInt ( ( t ) -> t.salt ) ; }
Source:
public java.lang.String getStorageDomainId ( ) { return storageDomainId ; }

Target:
public javax.ws.rs.core.Response export ( org.ovirt.engine.api.model.Action action ) { return getDelegate ( ) . export ( action ) ; }
Source:
private void stubDaos ( ) { mockStatistics ( ) ; mockVmDynamic ( ) ; mockVmStatic ( true ) ; mockVmJob ( ) ; mockCluster ( ) ; mockVdsDao ( ) ; }

Target:
private void mockVdsDao ( ) { org.mockito.Mockito.when ( vdsDynamicDao.get ( VmTestPairs.SRC_HOST_ID ) ) . thenReturn ( srcHost ) ; org.mockito.Mockito.when ( vdsDynamicDao.get ( VmTestPairs.DST_HOST_ID ) ) . thenReturn ( dstHost ) ; }
Source:
public static boolean hasMemoryBalloon ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.isMemBalloonEnabled ( vmId ) ; }

Target:
public static boolean hasMemoryBalloon ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceDao.isMemBalloonEnabled ( vmId ) ; }
Source:
public void testValidateImageDoesNotExist ( ) { org.mockito.Mockito.when ( getProviderProxy ( ) . getImageAsDiskImage ( getRepoImageId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void testValidateImageDoesNotExist ( ) { org.mockito.Mockito.when ( providerProxy.getImageAsDiskImage ( repoImageId ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( actionType , parameters ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters ) ; }
Source:
private static java.lang.String getHostMaxSupportedClusterVersion ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel networkItemModel ) { final org.ovirt.engine.core.common.businessentities.VDS host = networkItemModel.getSetupModel ( ) . getEntity ( ) ; final org.ovirt.engine.core.compat.Version maxVersion = java.util.Collections.max ( host.getSupportedClusterVersionsSet ( ) ) ; return maxVersion.getValue ( ) ; }

Target:
private static java.lang.String getClusterCompatibilityVersion ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel networkItemModel ) { final org.ovirt.engine.core.common.businessentities.VDS host = networkItemModel.getSetupModel ( ) . getEntity ( ) ; return host.getClusterCompatibilityVersion ( ) . getValue ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.VmInterfaceType GetDefaultNicType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { return org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pv ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.VmInterfaceType getDefaultNicType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { return org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.pv ; }
Source:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.storage.disk.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForDiskWithSnapshots ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.storage.disk.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForDiskWithSnapshots ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }
Source:
public static org.ovirt.engine.api.model.LunStatus map ( org.ovirt.engine.api.model.LunStatus status , org.ovirt.engine.api.model.LunStatus template ) { switch ( status ) { case Free : return org.ovirt.engine.api.model.LunStatus.Free ; case Used : return org.ovirt.engine.api.model.LunStatus.Used ; case Unusable : return org.ovirt.engine.api.model.LunStatus.Unusable ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.LunStatus map ( org.ovirt.engine.api.model.LunStatus status , org.ovirt.engine.api.model.LunStatus template ) { switch ( status ) { case Free : return org.ovirt.engine.api.model.LunStatus.FREE ; case Used : return org.ovirt.engine.api.model.LunStatus.USED ; case Unusable : return org.ovirt.engine.api.model.LunStatus.UNUSABLE ; default : return null ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.storage_domains.class ) , index , StorageType.NFS ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) , index , StorageType.NFS ) ; }
Source:
org.ovirt.engine.core.bll.provider.ProviderProxyFactory getProviderProxyFactory ( ) { return org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) ; }

Target:
org.ovirt.engine.core.bll.provider.ProviderProxyFactory getProviderProxyFactory ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.provider.ProviderProxyFactory.class ) ; }
Source:
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.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageVmPresenter.constants.storageVmSubTabLabel ( ) , 4 , 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.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageVmPresenter.constants.storageVmSubTabLabel ( ) , 5 , modelProvider ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.Object entity = modelProvider.getModel ( ) . getEntity ( ) ; if ( entity != null ) { onDetailModelEntityChange ( entity ) ; } }

Target:
public void onUiCommonInit ( org.ovirt.engine.ui.common.uicommon.model.UiCommonInitEvent event ) { initializeHandlers ( ) ; }
Source:
public void testIsCollection ( ) { assertTrue ( org.ovirt.engine.api.utils.EntityHelper.isCollection ( new org.ovirt.engine.api.model.Vms ( ) ) ) ; assertFalse ( org.ovirt.engine.api.utils.EntityHelper.isCollection ( new org.ovirt.engine.api.model.Vm ( ) ) ) ; }

Target:
public void testIsCollection ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.api.utils.EntityHelper.isCollection ( new org.ovirt.engine.api.model.Vms ( ) ) ) ; org.junit.Assert.assertFalse ( org.ovirt.engine.api.utils.EntityHelper.isCollection ( new org.ovirt.engine.api.model.Vm ( ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getOsType ( ) { return getOs ( ) ; }

Target:
public void setTimeZone ( java.lang.String value ) { timeZone = value ; }
Source:
public void finished ( org.ovirt.engine.ui.uicommonweb.builders.TestingFrontendModel frontendModel , org.ovirt.engine.ui.uicommonweb.builders.TestingBackendModel backendModel ) { org.junit.Assert.assertThat ( backendModel , org.hamcrest.core.Is.is ( org.hamcrest.core.IsEqual.equalTo ( new org.ovirt.engine.ui.uicommonweb.builders.TestingBackendModel ( prop1 , prop2 ) ) ) ) ; }

Target:
public void finished ( org.ovirt.engine.ui.uicommonweb.builders.TestingFrontendModel frontendModel , org.ovirt.engine.ui.uicommonweb.builders.TestingBackendModel backendModel ) { org.hamcrest.MatcherAssert.assertThat ( backendModel , org.hamcrest.core.Is.is ( org.hamcrest.core.IsEqual.equalTo ( new org.ovirt.engine.ui.uicommonweb.builders.TestingBackendModel ( prop1 , prop2 ) ) ) ) ; }
Source:
public java.lang.String getHibernationVolHandle ( ) { return this . hibernationVolHandle ; }

Target:
public void setGuestAgentStatus ( org.ovirt.engine.core.common.businessentities.GuestAgentStatus guestAgentStatus ) { this . guestAgentStatus = guestAgentStatus ; }
Source:
protected boolean canDoAction ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__STORAGE__POOL ) ; return super . canDoAction ( ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__STORAGE__POOL ) ; }
Source:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "name" ) ) { getSearchCommand ( ) . execute ( ) ; } }

Target:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; if ( e.propertyName.equals ( "name" ) ) { getSearchCommand ( ) . execute ( ) ; } }
Source:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassValidate ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; org.junit.Assert.assertFalse ( "validate should have failed with invalid number of monitors." , command.validate ( ) ) ; assertValidateMessage ( EngineMessage.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }

Target:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassValidate ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }
Source:
protected java.lang.String generateVmTemplateMetadata ( org.ovirt.engine.core.common.businessentities.VmTemplate template , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > allTemplateImages ) { return ovfManager.ExportTemplate ( template , allTemplateImages ) ; }

Target:
protected java.lang.String generateVmTemplateMetadata ( org.ovirt.engine.core.common.businessentities.VmTemplate template , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > allTemplateImages ) { return ovfManager.ExportTemplate ( template , allTemplateImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatilibilyVersion ( template ) ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > RunMultipleQueries ( java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryType > vdcQueryTypeList , java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > paramsList ) ;

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > runMultipleQueries ( java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryType > vdcQueryTypeList , java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > paramsList ) ;
Source:
public static void removeAlertsByBrickIdLogType ( org.ovirt.engine.core.compat.Guid brickId , org.ovirt.engine.core.common.AuditLogType logtype ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllofTypeForBrick ( brickId , logtype.getValue ( ) ) ; }

Target:
public void removeAlertsByBrickIdLogType ( org.ovirt.engine.core.compat.Guid brickId , org.ovirt.engine.core.common.AuditLogType logtype ) { auditLogDao.removeAllofTypeForBrick ( brickId , logtype.getValue ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondWithNoMatchingNetworks ( ) { org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = new org.ovirt.engine.core.common.businessentities.IscsiBond ( ) ; iscsiBond.setId ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.ISCSI_BOND_ID ) ; iscsiBond.getNetworkIds ( ) . add ( GUIDS [ 0 ] ) ; return iscsiBond ; }

Target:
private org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBondWithNoMatchingNetworks ( ) { org.ovirt.engine.api.restapi.resource.IscsiBond iscsiBond = new org.ovirt.engine.api.restapi.resource.IscsiBond ( ) ; iscsiBond.setId ( org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest.ISCSI_BOND_ID ) ; iscsiBond.getNetworkIds ( ) . add ( GUIDS [ 1 ] ) ; return iscsiBond ; }
Source:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , null , true , true ) ; }

Target:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }
Source:
public java.lang.String getDisplayString ( T data ) { return emptyOr ( ( data == null ? "" : getDisplayStringNullSafe ( data ) ) ) ; }

Target:
public java.lang.String getDisplayString ( T data ) { return emptyOr ( ( data == null ? org.ovirt.engine.ui.common.widget.editor.ListModelTypeAheadListBoxEditor.NullSafeSuggestBoxRenderer.templates.typeAheadEmptyContent ( ) . asString ( ) : getDisplayStringNullSafe ( data ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveVmInterfaceParams ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface vnic ) { return new org.ovirt.engine.core.common.action.RemoveVmTemplateInterfaceParameters ( vnic.getVmTemplateId ( ) . getValue ( ) , vnic.getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveVmInterfaceParams ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vnic ) { return new org.ovirt.engine.core.common.action.RemoveVmTemplateInterfaceParameters ( vnic.getVmTemplateId ( ) . getValue ( ) , vnic.getId ( ) ) ; }
Source:
private boolean vdsGroupExists ( ) { if ( ! ( vdsGroupInDb ( ) ) ) { addCanDoActionMessage ( VdcBllMessages.VDS_CLUSTER_IS_NOT_VALID ) ; return false ; } return true ; }

Target:
private boolean vdsGroupExists ( ) { if ( ! ( vdsGroupInDb ( ) ) ) { addCanDoActionMessage ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; return false ; } return true ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeReplaceBrickStart ( java.lang.String volumeName , java.lang.String existingBrickDir , java.lang.String newBrickDir ) { try { return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( vdsServer.glusterVolumeReplaceBrickStart ( volumeName , existingBrickDir , newBrickDir ) ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterStopProcesses ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.glusterProcessesStop ( ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( xmlRpcReturnValue ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.DisplayType > > getGraphicsAndDisplays ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
boolean hasNicHotplugSupport ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
protected void forceAddMacWithoutLocking ( java.lang.String mac ) { macsStorage.useMacNoDuplicityCheck ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; }

Target:
public void forceAddMac ( java.lang.String mac ) { macsStorage.useMacNoDuplicityCheck ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetPermissionByRoleIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getPermissionDAO ( ) . getAllForRole ( org.ovirt.engine.core.bll.GetPermissionByRoleIdQuery.getParameters ( ) . getRoleId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetPermissionByRoleIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getPermissionDao ( ) . getAllForRole ( org.ovirt.engine.core.bll.GetPermissionByRoleIdQuery.getParameters ( ) . getRoleId ( ) ) ) ; }
Source:
public void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.setWindow ( null ) ; updateActionsAvailability ( ) ; }
Source:
public void testComparatorSameProtocols ( ) { int compared = cpComparator.compare ( ConsoleProtocol.SPICE , ConsoleProtocol.SPICE ) ; org.junit.Assert.assertThat ( compared , org.hamcrest.core.Is.is ( 0 ) ) ; }

Target:
public void testComparatorSameProtocols ( ) { int compared = cpComparator.compare ( ConsoleProtocol.SPICE , ConsoleProtocol.SPICE ) ; org.hamcrest.MatcherAssert.assertThat ( compared , org.hamcrest.core.Is.is ( 0 ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.EngineSession session ) { return session.getUserName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.UserSession session ) { return session.getUserName ( ) ; }
Source:
public void setCpuSys ( java.lang.Double value ) { this . cpu_sysField = value ; }

Target:
public void setElapsedTime ( java.lang.Double elapsedTime ) { this . elapsedTime = elapsedTime ; setRoundedElapsedTime ( elapsedTime ) ; }
Source:
private void initAllModels ( boolean fetchFromBackend ) { if ( fetchFromBackend ) { StartProgress ( null ) ; queryNetworks ( ) ; } else { initNetworkModels ( ) ; initNicModels ( ) ; } }

Target:
private void initAllModels ( boolean fetchFromBackend ) { if ( fetchFromBackend ) { startProgress ( null ) ; queryNetworks ( ) ; } else { initNetworkModels ( ) ; initNicModels ( ) ; } }