auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void callbackEndTransfer ( ) { if ( haveCallback ( ) ) { callback.EndTransfer ( ) ; } }

Target:
protected void callbackEndTransfer ( ) { if ( haveCallback ( ) ) { callback.endTransfer ( ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateFencingPolicyContent ( ( ( getVersion ( ) ) == null ? null : getVersion ( ) . getSelectedItem ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setAllowClusterWithVirtGlusterEnabled ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
protected org.ovirt.engine.api.model.GlusterBrick doPopulate ( org.ovirt.engine.api.model.GlusterBrick model , org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity entity ) { return model ; }

Target:
protected org.ovirt.engine.api.model.GlusterBrick doPopulate ( org.ovirt.engine.api.model.GlusterBrick model , org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity entity ) { return populateAdvancedDetails ( model , entity ) ; }
Source:
void initTableOverhead ( ) { disksViewRadioGroup = new org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewRadioGroup ( ) ; disksViewRadioGroup.setClickHandler ( clickHandler ) ; getTable ( ) . setTableOverhead ( disksViewRadioGroup ) ; getTable ( ) . setTableTopMargin ( 20 ) ; }

Target:
void initTableOverhead ( ) { disksViewRadioGroup = new org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewRadioGroup ( ) ; disksViewRadioGroup.setClickHandler ( clickHandler ) ; disksViewRadioGroup.addStyleName ( "mtdv_radioGroup_pfly_fix" ) ; getTable ( ) . setTableOverhead ( disksViewRadioGroup ) ; getTable ( ) . setTableTopMargin ( 20 ) ; }
Source:
public org.ovirt.engine.api.model.StorageConnectionExtension update ( org.ovirt.engine.api.model.StorageConnectionExtension incoming ) { org.ovirt.engine.api.restapi.resource.QueryIdResolver resolver = new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionExtensionById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ; return performUpdate ( incoming , resolver , VdcActionType.UpdateStorageServerConnectionExtension , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionExtensionResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageConnectionExtension update ( org.ovirt.engine.api.model.StorageConnectionExtension incoming ) { org.ovirt.engine.api.restapi.resource.QueryIdResolver resolver = new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionExtensionById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ; return performUpdate ( incoming , resolver , ActionType.UpdateStorageServerConnectionExtension , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionExtensionResource.UpdateParametersProvider ( ) ) ; }
Source:
protected void verifyModelClearingPayloads ( org.ovirt.engine.api.model.VM model , int index ) { verifyModel ( model , index ) ; assertNull ( model.getPayloads ( ) ) ; }

Target:
protected void verifyModelClearingPayloads ( org.ovirt.engine.api.model.Vm model , int index ) { verifyModel ( model , index ) ; assertNull ( model.getPayloads ( ) ) ; }
Source:
public void setTicket ( java.lang.String ticket ) { this . ticket = ticket ; }

Target:
public void setTicket ( java.lang.String ticket ) { consoleOptions.setTicket ( ticket ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmTemplate lookupTemplateByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( name ) , "GetVmTemplate" ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmTemplate lookupTemplateByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , QueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( name ) , "GetVmTemplate" ) ; }
Source:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionNoHostsWithNetwork ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }
Source:
private java.lang.String getCallBackMethod ( org.ovirt.engine.core.compat.CommandStatus status ) { switch ( status ) { case FAILED : return "onFailed" ; case SUCCEEDED : return "onSucceeded" ; case ACTIVE : return "doPolling" ; default : return "Unknown" ; } }

Target:
private java.lang.String getCallBackMethod ( org.ovirt.engine.core.compat.CommandStatus status ) { switch ( status ) { case FAILED : case FAILED_RESTARTED : return "onFailed" ; case SUCCEEDED : return "onSucceeded" ; case ACTIVE : return "doPolling" ; default : return "Unknown" ; } }
Source:
public org.ovirt.engine.core.common.businessentities.CommandEntity get ( org.ovirt.engine.core.compat.Guid commandId ) { initializeCache ( ) ; return commandMap.get ( commandId ) ; }

Target:
public java.util.Set < org.ovirt.engine.core.compat.Guid > keySet ( ) { initializeCache ( ) ; return commandMap.keySet ( ) ; }
Source:
public void testGetAllForEntityFilteredWithNoPermissionsFilteringDisabled ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertGetAllForEntityResult ( result ) ; }

Target:
public void testGetAllForEntityFilteredWithNoPermissionsFilteringDisabled ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , false ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertGetAllForEntityResult ( result ) ; }
Source:
public static java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert.get ( key ) ; }

Target:
public java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , getDefaultConfigurationVersion ( ) ) ; return cachedConfigValuesPreConvert.get ( key ) ; }
Source:
public void testGetEntityNameByIdAndTypeForBookmark ( ) { org.ovirt.engine.core.common.businessentities.Bookmark bookmark = bookmarkDao.get ( org.ovirt.engine.core.dao.EntityDaoImplTest.BOOKMARK_ID ) ; org.junit.Assert.assertNotNull ( bookmark ) ; java.lang.String name = bookmark.getName ( ) ; org.junit.Assert.assertEquals ( name , dao.getEntityNameByIdAndType ( org.ovirt.engine.core.dao.EntityDaoImplTest.BOOKMARK_ID , VdcObjectType.Bookmarks ) ) ; }

Target:
public void testGetEntityNameByIdAndTypeForBookmark ( ) { org.ovirt.engine.core.common.businessentities.Bookmark bookmark = bookmarkDao.get ( org.ovirt.engine.core.dao.EntityDaoImplTest.BOOKMARK_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( bookmark ) ; java.lang.String name = bookmark.getName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( name , dao.getEntityNameByIdAndType ( org.ovirt.engine.core.dao.EntityDaoImplTest.BOOKMARK_ID , VdcObjectType.Bookmarks ) ) ; }
Source:
public void testConvertMBToBytes ( ) { long megabytes = 3L ; long bytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( megabytes , SizeConverter.SizeUnit.MiB , SizeConverter.SizeUnit.BYTES ) . longValue ( ) ; org.junit.Assert.assertEquals ( 3145728 , bytes ) ; }

Target:
public void testConvertMBToBytes ( ) { long megabytes = 3L ; long bytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( megabytes , SizeConverter.SizeUnit.MiB , SizeConverter.SizeUnit.BYTES ) . longValue ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( 3145728 , bytes ) ; }
Source:
private void localize ( ) { cloneNameEditor.setLabel ( constants.clonedVmName ( ) ) ; }

Target:
private void localize ( ) { cloneNameEditor.setLabel ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.CloneVmWidget.constants.clonedVmName ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getUsbSlots ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.REDIR , VmDeviceType.SPICEVMC.getName ( ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getUsbSlots ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.REDIR , VmDeviceType.SPICEVMC.getName ( ) ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VM , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getNewVmCommand ( ) { return newVMCommand ; }
Source:
private void readMemoryItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { vmBase.setMemSizeMb ( java.lang.Integer.parseInt ( node.SelectSingleNode ( "rasd:VirtualQuantity" , _xmlNS ) . innerText ) ) ; }

Target:
private void readMemoryItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { vmBase.setMemSizeMb ( java.lang.Integer.parseInt ( selectSingleNode ( node , "rasd:VirtualQuantity" , _xmlNS ) . innerText ) ) ; }
Source:
public void sortDisks ( ) { org.ovirt.engine.ui.uicommonweb.Linq.Sort ( disks , new org.ovirt.engine.ui.uicommonweb.Linq.DiskModelByAliasComparer ( ) ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Disks" ) ) ; }

Target:
public void setQuotaEnforcementType ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum value ) { this . quotaEnforcementType = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "QuotaEnforcmentType" ) ) ; }
Source:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvds_group_id ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_id" ) ) ; }

Target:
public int getPriority ( ) { return vmStatic.getPriority ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DisplayType extractDisplayType ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( vmBase instanceof org.ovirt.engine.core.common.businessentities.VmTemplate ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( vmBase ) ) . getdefault_display_type ( ) ; } return null ; }

Target:
protected org.ovirt.engine.core.common.businessentities.DisplayType extractDisplayType ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( vmBase instanceof org.ovirt.engine.core.common.businessentities.VmTemplate ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( vmBase ) ) . getDefaultDisplayType ( ) ; } return null ; }
Source:
protected void ExecuteVmCommand ( ) { InitVdss ( ) ; Perform ( ) ; ProcessVm ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }

Target:
protected void executeVmCommand ( ) { initVdss ( ) ; perform ( ) ; processVm ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }
Source:
protected int getNeededDiskSize ( org.ovirt.engine.core.compat.Guid domainId ) { return ( getBlockSparseInitSizeInGb ( ) ) * ( getVmTemplate ( ) . getDiskMap ( ) . size ( ) ) ; }

Target:
protected int getNeededDiskSize ( org.ovirt.engine.core.compat.Guid domainId ) { return ( getBlockSparseInitSizeInGb ( ) ) * ( getVmTemplate ( ) . getDiskTemplateMap ( ) . size ( ) ) ; }
Source:
private boolean isStorageDomainOfTypeIsoOrExport ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ( ( storageDomain.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ISO ) ) || ( ( storageDomain.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ImportExport ) ) ; }

Target:
private boolean isStorageDomainOfTypeIsoOrExport ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return storageDomain.getStorageDomainType ( ) . isIsoOrImportExportDomain ( ) ; }
Source:
public java.lang.String exportVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfVmWriter ( vm , images , version ) ; buildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }

Target:
public java.lang.String exportVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { return new org.ovirt.engine.core.utils.ovf.OvfVmWriter ( vm , images , version ) . build ( ) . getStringRepresentation ( ) ; }
Source:
public boolean addMac ( java.lang.String mac ) { boolean added = macsStorage.useMac ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; return added ; }

Target:
public boolean addMac ( java.lang.String mac ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.debug ( "Allocating custom mac address from {}." , mac , this ) ; boolean added = macsStorage.useMac ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; return added ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { object.setAuthenticationMethod ( AuthenticationMethod.PublicKey ) ; displayPassPkWindow ( false ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { object.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPassPkWindow ( true ) ; }
Source:
public void setImageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus value ) { getImage ( ) . setStatus ( value ) ; }

Target:
public void setImageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { getImage ( ) . setStatus ( imageStatus ) ; }
Source:
public void setOffset ( int left ) { getView ( ) . setOffset ( left ) ; }

Target:
public void setOffset ( int left ) { getView ( ) . setOffset ( left , wantsOffset ) ; }
Source:
public void updateCallbackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = get ( commandId ) ; if ( cmdEntity != null ) { cmdEntity.setCallBackNotified ( true ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . updateNotified ( commandId ) ; } }

Target:
public void updateCallbackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = get ( commandId ) ; if ( cmdEntity != null ) { cmdEntity.setCallbackNotified ( true ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . updateNotified ( commandId ) ; } }
Source:
public void testQueryType ( ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { org.junit.Assert.assertNotSame ( "The query can't be found in the enum VdcQueryType" , VdcQueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }

Target:
public void testQueryType ( ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { org.junit.Assert.assertNotSame ( "The query can't be found in the enum QueryType" , QueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }
Source:
public void updateCommandStatus ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.CommandStatus status ) { final org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = get ( commandId ) ; if ( cmdEntity != null ) { cmdEntity.setCommandStatus ( status ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . saveOrUpdate ( cmdEntity ) ; } }

Target:
public void updateCommandStatus ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.CommandStatus status ) { final org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = get ( commandId ) ; if ( cmdEntity != null ) { cmdEntity.setCommandStatus ( status ) ; saveOrUpdateWithoutTransaction ( cmdEntity ) ; } }
Source:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long timeout ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = prepareCredentials ( rootPassword ) ; return _do_connect ( server , creds , timeout ) ; }

Target:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long timeout ) { return _doConnect ( server , _prepareCredentials ( rootPassword ) , timeout ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getGuestCurUserId ( ) { return this . vmDynamic.getguest_cur_user_id ( ) ; }

Target:
public void setConsoleCurrentUserName ( java.lang.String value ) { this . vmDynamic.setConsole_current_user_name ( value ) ; }
Source:
private boolean validate ( org.ovirt.engine.core.bll.ValidationResult validationResult , java.lang.String violatingEntity ) { if ( ! ( validationResult.isValid ( ) ) ) { addViolation ( validationResult.getMessage ( ) , violatingEntity ) ; } return validationResult.isValid ( ) ; }

Target:
private boolean skipValidation ( org.ovirt.engine.core.bll.ValidationResult validationResult ) { return ! ( validationResult.isValid ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.ImageStatus getRawValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( object ) ) . getImageStatus ( ) : null ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.ImageStatus getRawValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( object ) ) . getImageStatus ( ) : null ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { callback.onFailure ( caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { xsrfRequestBuilder.setXsrfToken ( null ) ; callback.onFailure ( caught ) ; }
Source:
public static void decreasePendingVms ( org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.bll.VmHandler.decreasePendingVms ( vdsId , vm.getNumOfCpus ( ) , vm.getMinAllocatedMem ( ) , vm.getName ( ) ) ; }

Target:
public static void decreasePendingVm ( org.ovirt.engine.core.common.businessentities.VmStatic vm , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.bll.VmHandler.decreasePendingResources ( vdsId , vm.getNumOfCpus ( ) , vm.getMinAllocatedMem ( ) , vm.getName ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( getUnlimitedStorage ( ) . getEntity ( ) ) { getSpecificStorage ( ) . setEntity ( false ) ; getSpecificStorageValue ( ) . setIsChangable ( false ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( getUnlimitedStorage ( ) . getEntity ( ) ) { getSpecificStorage ( ) . setEntity ( false ) ; getSpecificStorageValue ( ) . setIsChangeable ( false ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmDown ( ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : vms ) { if ( ! ( vm.isDown ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ; } } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmDown ( ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : vms ) { if ( ! ( vm.isDown ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ; } } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public org.ovirt.engine.api.model.Domain get ( ) { org.ovirt.engine.api.model.Domain domain = parent.lookupDirectoryById ( id , true ) ; return injectSearchLinks ( addLinks ( domain ) , org.ovirt.engine.api.restapi.resource.aaa.BackendDomainsResource.SUB_COLLECTIONS ) ; }

Target:
public org.ovirt.engine.api.model.Domain get ( ) { org.ovirt.engine.api.model.Domain domain = parent.lookupDirectoryById ( id , true ) ; return injectSearchLinks ( addLinks ( domain ) , subCollections ) ; }
Source:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetworkViolated ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , nonVmNetwork1 , nonVmNetwork2 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetworkViolated ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) , nonVmNetwork1 , nonVmNetwork2 ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { if ( ( cluster ) == null ) { cluster = org.ovirt.engine.core.bll.ClusterCommandBase.getClusterDao ( ) . get ( org.ovirt.engine.core.bll.ClusterCommandBase.getParameters ( ) . getClusterId ( ) ) ; } return cluster ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { if ( ( cluster ) == null ) { cluster = clusterDao.get ( org.ovirt.engine.core.bll.ClusterCommandBase.getParameters ( ) . getClusterId ( ) ) ; } return cluster ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml image ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml volumeSnapshotsStatusTemplate ( int snapshotCount ) ;
Source:
public void testGetAllVmTagsWithIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllVmTagsWithIds ( existingTag.gettag_id ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllVmTagsWithIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllVmTagsWithIds ( existingTag.getTagId ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void setSpUUID ( java.lang.String spUUID ) { this . spUUID = spUUID ; }

Target:
public void setSpUUID ( java.lang.String spUUID ) { dataCenter.id = spUUID ; }
Source:
protected org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector getAuditLogDirector ( ) { if ( ( auditLogDirector ) == null ) { auditLogDirector = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) ; } return auditLogDirector ; }

Target:
protected org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector getAuditLogDirector ( ) { if ( ( auditLogDirector ) == null ) { auditLogDirector = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.class ) ; } return auditLogDirector ; }
Source:
protected void failedToMigrate ( ) { try { determineMigrationFailureForAuditLog ( ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmCommand.failedToRunVm ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected void failedToMigrate ( ) { try { determineMigrationFailureForAuditLog ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.runningFailed ( ) ; } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getSourceVmFromDb ( ) { if ( ( sourceVm ) == null ) { sourceVm = org.ovirt.engine.core.bll.CloneVmCommand.getVmDao ( ) . get ( oldVmId ) ; } return sourceVm ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getSourceVmFromDb ( ) { if ( ( sourceVm ) == null ) { sourceVm = vmDao.get ( oldVmId ) ; } return sourceVm ; }
Source:
public boolean isMacInUse ( long mac ) { org.ovirt.engine.core.bll.network.macpoolmanager.Range range = findIncludingRange ( mac ) ; return range == null ? customMacs.contains ( mac ) : range.isAllocated ( mac ) ; }

Target:
public boolean isMacInUse ( long mac ) { org.ovirt.engine.core.bll.network.macpool.Range range = findIncludingRange ( mac ) ; return range == null ? customMacs.contains ( mac ) : range.isAllocated ( mac ) ; }
Source:
public boolean verifyServerKey ( org.apache.sshd.ClientSession sshClientSession , java.net.SocketAddress remoteAddress , java.security.PublicKey serverKey ) { this . serverKey = serverKey ; return true ; }

Target:
public boolean verifyServerKey ( org.apache.sshd.ClientSession sshClientSession , java.net.SocketAddress remoteAddress , java.security.PublicKey serverKey ) { _serverKey = serverKey ; return true ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? constants.takeVmLabel ( ) : constants.runVmLabel ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.rebootVm ( ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void stringToVCpupinIntervalsList ( ) { org.ovirt.engine.api.model.VcpuPin pin = org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "1#1-4,6" ) ; assertEquals ( 1 , ( ( int ) ( pin.getVcpu ( ) ) ) ) ; assertEquals ( "1-4,6" , pin.getCpuSet ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc add_image_ticket ( java.lang.String ticketId , java.lang.String [ ] ops , long timeout , long size , java.lang.String url ) ;
Source:
private static java.lang.String generateDiskAliasJsonEntry ( java.lang.String diskAlias ) { return org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandler.getInstance ( ) . generateJsonField ( "DiskAlias" , diskAlias ) ; }

Target:
private java.lang.String generateDiskAliasJsonEntry ( java.lang.String diskAlias ) { return metadataDiskDescriptionHandler.generateJsonField ( "DiskAlias" , diskAlias ) ; }
Source:
void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { unlimitedStorageRadioButtonEditor.setLabel ( constants.ultQuotaPopup ( ) ) ; specificStorageRadioButtonEditor.setLabel ( constants.useQuotaPopup ( ) ) ; storageLabel.setText ( constants.storageQuotaQuotaPopup ( ) ) ; }

Target:
void localize ( ) { unlimitedStorageRadioButtonEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.quota.EditQuotaStoragePopupView.constants.ultQuotaPopup ( ) ) ; specificStorageRadioButtonEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.quota.EditQuotaStoragePopupView.constants.useQuotaPopup ( ) ) ; storageLabel.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.quota.EditQuotaStoragePopupView.constants.storageQuotaQuotaPopup ( ) ) ; }
Source:
public void info ( java.lang.Object msg , java.lang.Throwable t ) { log.info ( addPrefixToLogMessage ( msg ) , t ) ; }

Target:
public void info ( java.lang.Object msg , java.lang.Throwable t ) { log.info ( convertToString ( msg ) , t ) ; }
Source:
public void canCreateLessNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }

Target:
public void canCreateAsMuchNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 4 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getstatus ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > object ) { return object.getSecond ( ) . getstorage_pool_name ( ) ; }
Source:
public void setMemCommited ( java.lang.Integer value ) { vdsDynamic.setMemCommited ( value ) ; calculateFreeVirtualMemory ( ) ; }

Target:
public void setMemCommited ( java.lang.Integer value ) { vdsDynamic.setMemCommited ( value ) ; calculateFreeSchedulingMemoryCache ( ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { table.ensureColumnPresent ( column , headerText , present ) ; tableHeader.ensureColumnPresent ( column , headerText , present ) ; }

Target:
public void ensureColumnVisible ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header , boolean visible , java.lang.String width ) { table.ensureColumnVisible ( column , header , visible , width ) ; tableHeader.ensureColumnVisible ( column , header , visible , width ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > GetAllTags ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > ret = new java.util.ArrayList ( tagsMapByID.values ( ) ) ; ret.remove ( GetRootTag ( ) ) ; return ret ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > getAllTags ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > ret = new java.util.ArrayList ( tagsMapByID.values ( ) ) ; ret.remove ( getRootTag ( ) ) ; return ret ; }
Source:
public void testNicExistsWhenNicNameIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setNicName ( null ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . nicExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST ) ) ; }

Target:
public void testNicExistsWhenNicNameIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setNicName ( null ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . nicExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) ) ; }
Source:
public void testGetAllByVMNameUnprivilegedUserNoFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameValidResults ( dao.getAllByVMName ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_NAME , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ) ; }

Target:
public void testGetAllByVMNameUnprivilegedUserNoFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameValidResults ( dao.getAllByVMId ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ) ; }
Source:
public static org.ovirt.engine.api.model.User map ( org.ovirt.engine.core.common.businessentities.aaa.DbUser entity , org.ovirt.engine.api.model.User template ) { org.ovirt.engine.api.model.User model = ( template != null ) ? template : new org.ovirt.engine.api.model.User ( ) ; model.setName ( entity.getFirstName ( ) ) ; model.setUserName ( ( ( ( entity.getLoginName ( ) ) + "@" ) + ( entity.getDomain ( ) ) ) ) ; model.setId ( entity.getId ( ) . toString ( ) ) ; model.setLastName ( entity.getLastName ( ) ) ; model.setEmail ( entity.getEmail ( ) ) ; model.setDepartment ( entity.getDepartment ( ) ) ; model.setDomainEntryId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( entity.getExternalId ( ) ) ) ; model.setNamespace ( entity.getNamespace ( ) ) ; if ( ( ( entity.getGroupNames ( ) ) != null ) && ( ( entity.getGroupNames ( ) . size ( ) ) > 0 ) ) { model.setGroups ( new org.ovirt.engine.api.model.Groups ( ) ) ; for ( java.lang.String name : entity.getGroupNames ( ) ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setName ( name ) ; model.getGroups ( ) . getGroups ( ) . add ( group ) ; } } if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( entity.getDomain ( ) ) ) ) { org.ovirt.engine.api.model.Domain dom = new org.ovirt.engine.api.model.Domain ( ) ; dom.setId ( new org.ovirt.engine.core.compat.Guid ( entity.getDomain ( ) . getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) , true ) . toString ( ) ) ; model.setDomain ( dom ) ; } return model ; }

Target:
public static org.ovirt.engine.api.model.User map ( org.ovirt.engine.core.common.businessentities.aaa.DbUser entity , org.ovirt.engine.api.model.User template ) { org.ovirt.engine.api.model.User model = ( template != null ) ? template : new org.ovirt.engine.api.model.User ( ) ; model.setName ( entity.getFirstName ( ) ) ; model.setUserName ( ( ( ( entity.getLoginName ( ) ) + "@" ) + ( entity.getDomain ( ) ) ) ) ; model.setPrincipal ( entity.getLoginName ( ) ) ; model.setId ( entity.getId ( ) . toString ( ) ) ; model.setLastName ( entity.getLastName ( ) ) ; model.setEmail ( entity.getEmail ( ) ) ; model.setDepartment ( entity.getDepartment ( ) ) ; model.setDomainEntryId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( entity.getExternalId ( ) ) ) ; model.setNamespace ( entity.getNamespace ( ) ) ; if ( ( ( entity.getGroupNames ( ) ) != null ) && ( ( entity.getGroupNames ( ) . size ( ) ) > 0 ) ) { model.setGroups ( new org.ovirt.engine.api.model.Groups ( ) ) ; for ( java.lang.String name : entity.getGroupNames ( ) ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setName ( name ) ; model.getGroups ( ) . getGroups ( ) . add ( group ) ; } } if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( entity.getDomain ( ) ) ) ) { org.ovirt.engine.api.model.Domain dom = new org.ovirt.engine.api.model.Domain ( ) ; dom.setId ( new org.ovirt.engine.core.compat.Guid ( entity.getDomain ( ) . getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) , true ) . toString ( ) ) ; model.setDomain ( dom ) ; } return model ; }
Source:
public void setParentCommandId ( org.ovirt.engine.core.compat.Guid parentCommandId ) { this . parentCommandId = parentCommandId ; }

Target:
public void setCommandStatus ( org.ovirt.engine.core.compat.CommandStatus commandStatus ) { this . commandStatus = commandStatus ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < T > event ) { updateGroupLabel ( ) ; }

Target:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { updateGroupLabel ( ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryType getQueryType ( ) { return org.ovirt.engine.core.common.queries.VdcQueryType.GetErrataForSystem ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryType getQueryType ( ) { return org.ovirt.engine.core.common.queries.VdcQueryType.GetErrataForEngine ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( asList ( guid ) , false , ( action.isSetReason ( ) ? action.getReason ( ) : null ) ) , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( asList ( guid ) , false , ( action.isSetReason ( ) ? action.getReason ( ) : null ) , getBooleanMatrixParam ( org.ovirt.engine.api.restapi.resource.BackendHostResource.STOP_GLUSTER_SERVICE ) ) , action ) ; }
Source:
private boolean supportsGlusterServicesFeature ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterServices ( cluster.getcompatibility_version ( ) ) ) ; }

Target:
private boolean supportsGlusterServicesFeature ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterServices ( cluster.getCompatibilityVersion ( ) ) ) ; }
Source:
public void generate ( ) throws java.io.IOException , javax.xml.bind.JAXBException , org.apache.http.client.ClientProtocolException , org.ovirt.engine.sdk.exceptions.ServerException { doCleanPackage ( this . distPath ) ; doGenerate ( this . distPath ) ; }

Target:
public void generate ( ) throws java.io.IOException , javax.xml.bind.JAXBException , org.apache.http.client.ClientProtocolException , org.ovirt.engine.sdk.exceptions.ServerException { doCleanPackage ( this . distPath ) ; doGenerate ( this . distPath ) ; doCompile ( ) ; }
Source:
public org.ovirt.engine.core.bll.network.macpool.MacPool poolForDataCenter ( org.ovirt.engine.core.compat.Guid dataCenterId ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { return getPoolWithoutLocking ( getMacPoolId ( dataCenterId ) ) ; } }

Target:
public org.ovirt.engine.core.bll.network.macpool.MacPool getMacPoolForDataCenter ( org.ovirt.engine.core.compat.Guid dataCenterId , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return getMacPoolById ( getMacPoolId ( dataCenterId ) , commandContext ) ; }
Source:
public void setAdditionalConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( additionalConsoleModel ) != value ) { additionalConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AdditionalConsoleModel" ) ) ; } }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol getSelectedProtocol ( ) { return resolveSelectedProtocol ( this ) ; }
Source:
public void setimageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus value ) { getImage ( ) . setStatus ( value ) ; }

Target:
public void setImageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus value ) { getImage ( ) . setStatus ( value ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { stopProgress ( ) ; cancel ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { postClustersInit ( ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.DbUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getId ( ) ) ; params.setSessionId ( getSessionId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . logoff ( params ) ; return returnValue ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.DbUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getId ( ) ) ; params.setSessionId ( getSession ( ) . getId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . logoff ( params ) ; return returnValue ; }
Source:
protected void onBind ( ) { super . onBind ( ) ; roleModelProvider.getModel ( ) . Search ( ) ; systemPermissionModelProvider.getModel ( ) . Search ( ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; roleModelProvider.getModel ( ) . Search ( ) ; systemPermissionModelProvider.getModel ( ) . Search ( ) ; }
Source:
public void passwordNotProvidedForHostInstallation ( ) { org.mockito.Mockito.when ( host.getVdsType ( ) ) . thenReturn ( VDSType.VDS ) ; validator = createValidatorForHostInstallation ( ) ; org.junit.Assert.assertThat ( validator.passwordProvidedForHostInstallation ( AuthenticationMethod.Password , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.VDS_CANNOT_INSTALL_EMPTY_PASSWORD ) ) ; }

Target:
public void passwordNotProvidedForHostInstallation ( ) { org.mockito.Mockito.when ( host.getVdsType ( ) ) . thenReturn ( VDSType.VDS ) ; validator = createValidatorForHostInstallation ( ) ; org.junit.Assert.assertThat ( validator.passwordProvidedForHostInstallation ( AuthenticationMethod.Password , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_EMPTY_PASSWORD ) ) ; }
Source:
public int compareTo ( ovirt_engine_dwh.sampletimekeepingjob_3_2.SampleTimeKeepingJob.row4Struct other ) { int returnValue = - 1 ; return returnValue ; }

Target:
public int compareTo ( ovirt_engine_dwh.sampletimekeepingjob_3_2.SampleTimeKeepingJob.row1Struct other ) { int returnValue = - 1 ; return returnValue ; }
Source:
public void testGetWithPermissionsForUnpriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate result = dao.get ( FixturesTool.VM_TEMPLATE_RHEL5 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithPermissionsForUnpriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate result = dao.get ( FixturesTool.VM_TEMPLATE_RHEL5 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void testEvalPositive ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockOtherIface.getName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_NAME ) ; org.mockito.Mockito.when ( mockOtherIface.getAddress ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_ADDRESS ) ; org.junit.Assert.assertTrue ( underTest.eval ( mockOtherIface ) ) ; }

Target:
public void testEvalPositive ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockOtherIface.getName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_NAME ) ; org.mockito.Mockito.when ( mockOtherIface.getAddress ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_ADDRESS ) ; org.junit.Assert.assertTrue ( underTest.test ( mockOtherIface ) ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork externalNetwork = ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) ; externalNetwork.setPublicUse ( value ) ; refreshNetworksTable ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork externalNetwork = ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) ; externalNetwork.setPublicUse ( value ) ; refreshImportedNetworks ( ) ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getUserIds ( ) { return ( ( org.ovirt.engine.core.bll.adbroker.LdapSearchByIdListParameters ) ( getParameters ( ) ) ) . getUserIds ( ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.utils.ExternalId > getUserIds ( ) { return ( ( org.ovirt.engine.core.bll.adbroker.LdapSearchByIdListParameters ) ( getParameters ( ) ) ) . getIds ( ) ; }
Source:
public static void addNetworkFiltersToNic ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct struct , org.ovirt.engine.core.compat.Version clusterVersion ) { if ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.EnableMACAntiSpoofingFilterRules , clusterVersion.getValue ( ) ) ) { struct.add ( VdsProperties.NW_FILTER , NetworkFilters.NO_MAC_SPOOFING.getFilterName ( ) ) ; } }

Target:
public static void addNetworkFiltersToNic ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct struct , org.ovirt.engine.core.compat.Version clusterVersion ) { if ( org.ovirt.engine.core.common.FeatureSupported.antiMacSpoofing ( clusterVersion ) ) { struct.add ( VdsProperties.NW_FILTER , NetworkFilters.NO_MAC_SPOOFING.getFilterName ( ) ) ; } }