auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void ProceedGroupsSearchResult ( org.ovirt.engine.core.bll.adbroker.GroupSearchResult groupsResult , java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.LdapGroup > groupsDict , org.ovirt.engine.core.bll.adbroker.GroupsDNQueryGenerator generator ) { java.util.List < java.lang.String > groupsList = groupsResult.getMemberOf ( ) ; proceedGroupsSearchResult ( groupsList , groupsDict , generator ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.LdapUser populateUserData ( org.ovirt.engine.core.common.businessentities.LdapUser user , java.lang.String domain ) { return populateUserData ( user , domain , true ) ; }
Source:
public void setDedicatedVmForVds ( org.ovirt.engine.core.compat.Guid value ) { vmStatic.setDedicatedVmForVds ( value ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getDedicatedVmForVdsList ( ) { return vmStatic.getDedicatedVmForVdsList ( ) ; }
Source:
public boolean hasTarget ( ) { return false ; }

Target:
public int hashCodeEntire ( ) { return java.util.Objects.hash ( getSourceProfileName ( ) , getSourceNetworkName ( ) , getTargetProfileName ( ) , getTargetNetworkName ( ) , getTargetProfileId ( ) ) ; }
Source:
public void setBricks ( org.ovirt.engine.ui.uicommonweb.models.ListModel bricks ) { this . bricks = bricks ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Bricks" ) ) ; }

Target:
public void setBricks ( org.ovirt.engine.ui.uicommonweb.models.ListModel bricks ) { this . bricks = bricks ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Bricks" ) ) ; }
Source:
public void updateInterface ( org.ovirt.engine.core.compat.Version clusterVersion ) { super . updateInterface ( clusterVersion ) ; getDiskInterface ( ) . setSelectedItem ( getDisk ( ) . getDiskInterface ( ) ) ; }

Target:
public void setDefaultInterface ( ) { getDiskInterface ( ) . setSelectedItem ( getDisk ( ) . getDiskInterface ( ) ) ; }
Source:
private void InternalEndWithFailure ( ) { log.errorFormat ( "Ending command with failure: {0}" , getClass ( ) . getName ( ) ) ; endWithFailure ( ) ; }

Target:
private void internalEndWithFailure ( ) { log.errorFormat ( "Ending command with failure: {0}" , getClass ( ) . getName ( ) ) ; endWithFailure ( ) ; }
Source:
public void markAsValid ( ) { tabContainer.getElement ( ) . addClassName ( ( isActive ? style.obrand_active ( ) : style.inactive ( ) ) ) ; }

Target:
public void markAsValid ( ) { getValidatedWidgetStyle ( ) . clearBorderColor ( ) ; tabContainer.getElement ( ) . addClassName ( ( isActive ? style.obrand_active ( ) : style.inactive ( ) ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
private static org.ovirt.engine.api.model.DetailedLink createLink ( java.lang.String rel , org.ovirt.engine.api.utils.LinkHelper.LinkFlags flags , java.lang.String baseUri ) { return org.ovirt.engine.api.utils.LinkHelper.createLink ( baseUri , rel , flags ) ; }

Target:
private static org.ovirt.engine.api.model.DetailedLink createLink ( java.lang.String rel , org.ovirt.engine.api.utils.LinkCreator.LinkFlags flags , java.lang.String baseUri ) { return org.ovirt.engine.api.utils.LinkCreator.createLink ( baseUri , rel , flags ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { runMultipleAction ( actionType , parameters , callback , null , true , false ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final boolean showErrorDialog , final boolean waitForResult ) { runMultipleAction ( actionType , parameters , false , callback , null , showErrorDialog , waitForResult ) ; }
Source:
public void testRemove ( ) { dao.remove ( FixturesTool.EXISTING_AFFINITY_GROUP_ID ) ; org.junit.Assert.assertNull ( dao.get ( FixturesTool.EXISTING_AFFINITY_GROUP_ID ) ) ; org.junit.Assert.assertEquals ( ( ( org.ovirt.engine.core.dao.AffinityGroupDaoTest.NUM_OF_AFFINITY_GROUPS_IN_CLUSTER ) - 1 ) , dao.getAllAffinityGroupsByClusterId ( FixturesTool.VDS_GROUP_RHEL6_ISCSI ) . size ( ) ) ; }

Target:
public void testRemove ( ) { dao.remove ( FixturesTool.EXISTING_AFFINITY_GROUP_ID ) ; org.junit.Assert.assertNull ( dao.get ( FixturesTool.EXISTING_AFFINITY_GROUP_ID ) ) ; org.junit.Assert.assertEquals ( ( ( org.ovirt.engine.core.dao.AffinityGroupDaoTest.NUM_OF_AFFINITY_GROUPS_IN_CLUSTER ) - 1 ) , dao.getAllAffinityGroupsByClusterId ( FixturesTool.CLUSTER_RHEL6_ISCSI ) . size ( ) ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getEntityId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.DISK , getDiskIsBeingRemovedLockMessage ( ) ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getDiskId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.DISK , getDiskIsBeingRemovedLockMessage ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskInterface getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.getDiskInterface ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskInterface getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.getDiskInterface ( ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Template get ( ) { return adaptGet ( getDelegate ( ) :: get ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Template get ( ) { return org.ovirt.engine.api.v3.helpers.V3TemplateHelper.addDisksLink ( adaptGet ( getDelegate ( ) :: get ) ) ; }
Source:
public static java.net.URI buildSsoUrlBasic ( java.lang.String url , java.lang.String username , java.lang.String password ) { try { java.net.URI uri = new java.net.URI ( url ) ; org.apache.http.client.utils.URIBuilder uriBuilder = new org.apache.http.client.utils.URIBuilder ( java.lang.String.format ( "%1$s://%2$s/ovirt-engine/sso/oauth/%3$s" , uri.getScheme ( ) , uri.getAuthority ( ) , org.ovirt.engine.sdk4.internal.SsoUtils.ENTRY_POINT_TOKEN ) ) ; uriBuilder.addParameter ( "grant_type" , org.ovirt.engine.sdk4.internal.SsoUtils.GRANT_TYPE_PASSWORD ) ; uriBuilder.addParameter ( "scope" , org.ovirt.engine.sdk4.internal.SsoUtils.SCOPE ) ; uriBuilder.addParameter ( "username" , username ) ; uriBuilder.addParameter ( "password" , password ) ; return uriBuilder.build ( ) ; } catch ( java.net.URISyntaxException ex ) { throw new java.lang.Error ( "Failed to build SSO authentication URL" , ex ) ; } }

Target:
public static java.net.URI buildSsoUrlBasic ( java.lang.String url ) { try { java.net.URI uri = new java.net.URI ( url ) ; org.apache.http.client.utils.URIBuilder uriBuilder = new org.apache.http.client.utils.URIBuilder ( java.lang.String.format ( "%1$s://%2$s/ovirt-engine/sso/oauth/%3$s" , uri.getScheme ( ) , uri.getAuthority ( ) , org.ovirt.engine.sdk4.internal.SsoUtils.ENTRY_POINT_TOKEN ) ) ; return uriBuilder.build ( ) ; } catch ( java.net.URISyntaxException ex ) { throw new java.lang.Error ( "Failed to build SSO authentication URL" , ex ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_domains > getAll ( ) { return getCallsHandler ( ) . executeReadList ( "GetAllFromstorage_domains" , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance , getCustomMapSqlParameterSource ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_domains > getAll ( org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return getCallsHandler ( ) . executeReadList ( "GetAllFromstorage_domains" , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "user_id" , userID ) . addValue ( "is_filtered" , isFiltered ) ) ; }
Source:
public void testLogErrorDoesntLogWhenLogLevelInactive ( ) throws java.lang.Exception { org.ovirt.engine.core.utils.log.Log log = org.mockito.Mockito.mock ( org.ovirt.engine.core.utils.log.Log.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.logError ( log , "" , new org.ovirt.engine.core.utils.log.LoggedUtilsTest.LoggedOverridingSubclass ( ) , new java.lang.Exception ( ) ) ; org.ovirt.engine.core.utils.log.LoggedUtilsTest.verifyNoLogging ( log ) ; }

Target:
public void testLogErrorDoesntLogWhenLogLevelInactive ( ) throws java.lang.Exception { org.slf4j.Logger log = org.mockito.Mockito.mock ( org.slf4j.Logger.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.logError ( log , "" , new org.ovirt.engine.core.utils.log.LoggedUtilsTest.LoggedOverridingSubclass ( ) , new java.lang.Exception ( ) ) ; org.ovirt.engine.core.utils.log.LoggedUtilsTest.verifyNoLogging ( log ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity getStatusDetails ( ) { return statusDetails ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity getStatusDetails ( ) { return statusDetails.sort ( ) ; }
Source:
public void testGetEntitiesForNotRelatedStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOAMIN_NFS2_2 , VmEntityType.VM ) ; org.junit.Assert.assertTrue ( "No VM should be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }

Target:
public void testGetEntitiesForNotRelatedStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_2 , VmEntityType.VM ) ; org.junit.Assert.assertTrue ( "No VM should be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }
Source:
protected boolean isDiskExist ( org.ovirt.engine.core.common.businessentities.Disk disk ) { if ( ( disk == null ) || ( ! ( isDiskExistInVm ( disk ) ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; return false ; } return true ; }

Target:
protected boolean isDiskExist ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { if ( ( disk == null ) || ( ! ( isDiskExistInVm ( disk ) ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; return false ; } return true ; }
Source:
protected org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ; }
Source:
protected void endSuccessfully ( ) { super . endSuccessfully ( ) ; attachDisks ( ) ; }

Target:
protected boolean addVmImages ( ) { if ( super . addVmImages ( ) ) { attachDisks ( ) ; return true ; } return false ; }
Source:
public void remove ( ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RemoveProvider , new org.ovirt.engine.core.common.action.ProviderParameters ( ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( getSelectedItem ( ) ) ) ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { getSearchCommand ( ) . execute ( ) ; }
Source:
protected void createVirtIODisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = mockDiskImage ( ) ; disk.setDiskInterface ( DiskInterface.VirtIO ) ; }

Target:
private void createNotVirtIODisk ( ) { mockDiskImage ( DiskInterface.IDE ) ; command.getParameters ( ) . getDiskVmElement ( ) . setDiskInterface ( DiskInterface.IDE ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.StorageDomain , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.disks.DiskStorageListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.diskStorageSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.StorageDomain , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.disks.DiskStorageListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.disk.SubTabDiskStoragePresenter.constants.diskStorageSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
public void Configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . Configure ( spice ) ; spice.setWANDisableEffects ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > ( ) ) ; spice.setIsWanOptionsEnabled ( false ) ; }

Target:
public void Configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . Configure ( spice ) ; spice.setWANDisableEffects ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > ( ) ) ; spice.setWanOptionsEnabled ( false ) ; }
Source:
protected void executeCommand ( ) { super . executeCommand ( ) ; getVfsConfigDao ( ) . addLabel ( getVfsConfig ( ) . getId ( ) , getLabel ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { super . executeCommand ( ) ; getVfsConfigDao ( ) . addLabel ( getVfsConfig ( ) . getId ( ) , getLabel ( ) ) ; setSucceeded ( true ) ; setActionReturnValue ( getLabel ( ) ) ; }
Source:
public void testGetAll ( ) throws java.lang.Exception { dao.getAll ( ) ; }

Target:
public void testGetAll ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.VmNetworkInterface > interfaces = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertEquals ( FixturesTool.NUMBER_OF_VM_INTERFACES , interfaces.size ( ) ) ; }
Source:
public boolean isInSync ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return ( details == null ) || ( details.isInSync ( ) ) ; }

Target:
public boolean isInSync ( ) { org.ovirt.engine.core.common.businessentities.network.ReportedConfigurations reportedConfigurations = getReportedConfigurations ( ) ; return ( reportedConfigurations == null ) || ( reportedConfigurations.isNetworkInSync ( ) ) ; }
Source:
protected void performOvfUpdateForDomain ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid domainId ) { backend.runInternalAction ( VdcActionType.ProcessOvfUpdateForStorageDomain , new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStorageDomainCommandParameters ( storagePoolId , domainId ) ) ; }

Target:
protected void performOvfUpdateForDomain ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid domainId ) { backend.runInternalAction ( ActionType.ProcessOvfUpdateForStorageDomain , new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStorageDomainCommandParameters ( storagePoolId , domainId ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getEntityTooltip ( org.ovirt.engine.core.common.businessentities.VDS object ) { java.util.Map < com.google.gwt.safehtml.shared.SafeHtml , java.lang.String > imagesToText = getSafeHtmlStringMap ( object ) ; if ( ! ( imagesToText.isEmpty ( ) ) ) { return org.ovirt.engine.ui.webadmin.widget.table.column.MultiImageColumnHelper.getTooltip ( imagesToText ) ; } return null ; }

Target:
public java.lang.String getEntityTooltip ( org.ovirt.engine.core.common.businessentities.VDS object ) { java.util.Map < com.google.gwt.safehtml.shared.SafeHtml , java.lang.String > imagesToText = getSafeHtmlStringMap ( object ) ; if ( ! ( imagesToText.isEmpty ( ) ) ) { return org.ovirt.engine.ui.webadmin.widget.table.column.MultiImageColumnHelper.getTooltip ( imagesToText ) ; } return "" ; }
Source:
public void canDoActionSucceedsOnStartedVolume ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StartGlusterVolumeProfileCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( org.ovirt.engine.core.bll.gluster.StartGlusterVolumeProfileCommandTest.STARTED_VOLUME_ID ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void validateSucceedsOnStartedVolume ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StartGlusterVolumeProfileCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( org.ovirt.engine.core.bll.gluster.StartGlusterVolumeProfileCommandTest.STARTED_VOLUME_ID ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
public void setValue ( java.lang.String value ) { this . value = value ; }

Target:
public void setActualValue ( java.lang.String value ) { this . actualValue = value ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( ) { try { return super . endAction ( ) ; } finally { org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.freeLock ( ) ; } }

Target:
private void updateStage ( org.ovirt.engine.core.common.action.LiveMigrateVmDisksParameters.LiveMigrateStage stage ) { org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.getParameters ( ) . setStage ( stage ) ; persistCommand ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateVmDisksCommand.getParameters ( ) . getParentCommand ( ) , ( ( getCallback ( ) ) != null ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateReportsAvailability ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getAssignTagsCommand ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getSelectedStorageDomain ( ) { if ( ( ( selectedStorageDomain ) == null ) && ( ! ( storageDomains.isEmpty ( ) ) ) ) { selectedStorageDomain = storageDomains.get ( 0 ) ; } return selectedStorageDomain ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain1 , org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain2 ) { return storageDomain1.getAvailableDiskSize ( ) . compareTo ( storageDomain2.getAvailableDiskSize ( ) ) ; }
Source:
public boolean attemptFallbackProtocol ( ) { vds.setProtocol ( VdsProtocol.XML ) ; resourceManager.AddVds ( vds , false ) ; return attemptConnection ( ) ; }

Target:
public boolean attemptFallbackProtocol ( ) { vds.setProtocol ( VdsProtocol.XML ) ; resourceManager.addVds ( vds , false ) ; return attemptConnection ( ) ; }
Source:
public void enableCifs ( ) { accessProtocols.add ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_USER_CIFS , GlusterConstants.ON ) ; }

Target:
public void enableCifs ( ) { accessProtocols.add ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_USER_CIFS , GlusterConstants.ENABLE ) ; }
Source:
public void addToHistoryOneLimit ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 1 ) ) ; }

Target:
public void addToHistoryOneLimit ( ) { org.junit.Assert.assertEquals ( java.util.Collections.singletonList ( 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 1 ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > ( ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.storage_domain_static result = dao.get ( existingDomain.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingDomain.getId ( ) , result.getId ( ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic result = dao.get ( existingDomain.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingDomain.getId ( ) , result.getId ( ) ) ; }
Source:
protected void setUpGetEntityExpectations ( int times , boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( times , notFound , getEntity ( 0 ) ) ; }

Target:
protected void setUpGetEntityNextRunExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmNextRunConfiguration , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; }
Source:
public org.ovirt.engine.ui.common.widget.tooltip.TooltipConfig addTooltipClassName ( java.lang.String className ) { if ( org.ovirt.engine.ui.uicompat.external.StringUtils.isNotEmpty ( className ) ) { extraTooltipClassNames.add ( className ) ; } return this ; }

Target:
public org.ovirt.engine.ui.common.widget.tooltip.TooltipConfig addTooltipClassName ( java.lang.String className ) { if ( org.ovirt.engine.core.compat.StringHelper.isNotNullOrEmpty ( className ) ) { extraTooltipClassNames.add ( className ) ; } return this ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME_BRICK ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_BRICK ) ; }
Source:
public java.lang.String getvm_description ( ) { return this . mVmStatic.getdescription ( ) ; }

Target:
public void setVmDescription ( java.lang.String value ) { this . vmStatic.setdescription ( value ) ; }
Source:
private void refreshTable ( ) { entityTable.asEditor ( ) . edit ( entityTable.asEditor ( ) . flush ( ) ) ; entityTable.redraw ( ) ; }

Target:
private void refreshEntityTable ( ) { entityTable.asEditor ( ) . edit ( entityTable.asEditor ( ) . flush ( ) ) ; entityTable.redraw ( ) ; }
Source:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long timeout ) { return _doConnect ( server , _prepareCredentials ( rootPassword ) , timeout ) ; }

Target:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long timeout ) { return _doConnect ( server , "root" , rootPassword , null , null , timeout ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.ServerCpu > allServerCpuList ( org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.getAllServerCpuList ( ) ; } return new java.util.ArrayList < > ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.ServerCpu > allServerCpuList ( org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler.managersDictionary.get ( ver ) ; return cpuFlagsManager != null ? cpuFlagsManager.getAllServerCpuList ( ) : new java.util.ArrayList < > ( ) ; }
Source:
private void assertOpenstackNetworkDataFileNotCreated ( java.util.Map < java.lang.String , byte [ ] > actual ) { org.junit.Assert.assertThat ( actual , org.hamcrest.Matchers.not ( org.hamcrest.Matchers.hasKey ( "openstack/latest/network_data.json" ) ) ) ; }

Target:
private void assertOpenstackNetworkDataFileNotCreated ( java.util.Map < java.lang.String , byte [ ] > actual ) { org.hamcrest.MatcherAssert.assertThat ( actual , org.hamcrest.Matchers.not ( org.hamcrest.Matchers.hasKey ( "openstack/latest/network_data.json" ) ) ) ; }
Source:
public void endWithFailure ( ) { enclosingCommand.getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
public void endWithFailure ( ) { enclosingCommand.getReturnValue ( ) . setSucceeded ( true ) ; enclosingCommand.getReturnValue ( ) . setEndActionTryAgain ( false ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.ImageType getImageType ( ) { if ( ( ( imageType ) == null ) && ( ( imageTypeId ) != null ) ) { imageType = org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateDAO ( ) . getImageType ( imageTypeId ) ; } return imageType ; }

Target:
protected org.ovirt.engine.core.common.businessentities.ImageType getImageType ( ) { if ( ( ( imageType ) == null ) && ( ( imageTypeId ) != null ) ) { imageType = org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateDao ( ) . getImageType ( imageTypeId ) ; } return imageType ; }
Source:
private void registerProfile ( java.util.Map < java.lang.String , org.ovirt.engine.core.aaa.AuthenticationProfile > map , org.ovirt.engine.core.aaa.AuthenticationProfile profile ) { map.put ( profile.getName ( ) , profile ) ; }

Target:
public void registerProfile ( org.ovirt.engine.core.aaa.AuthenticationProfile profile ) { profiles.put ( profile.getName ( ) , profile ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getAddress ( ) , getNetmask ( ) , getGateway ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getAddress ( ) , getNetmask ( ) , getGateway ( ) , getBootProtocol ( ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__HOT_SET_CPUS ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM ) ; addCanDoActionMessageVariable ( "clusterVersion" , org.ovirt.engine.core.bll.HotSetNumberOfCpusCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ; addCanDoActionMessageVariable ( "architecture" , org.ovirt.engine.core.bll.HotSetNumberOfCpusCommand.getVm ( ) . getClusterArch ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__HOT_SET_CPUS ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM ) ; addCanDoActionMessageVariable ( "clusterVersion" , org.ovirt.engine.core.bll.HotSetNumberOfCpusCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ; addCanDoActionMessageVariable ( "architecture" , org.ovirt.engine.core.bll.HotSetNumberOfCpusCommand.getVm ( ) . getClusterArch ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.network.host.NicLabelValidator createNicLabelValidator ( org.ovirt.engine.core.common.action.HostSetupNetworksParameters params , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nics ) { org.ovirt.engine.core.bll.network.host.NicLabelValidator validator = new org.ovirt.engine.core.bll.network.host.NicLabelValidator ( params , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( nics ) , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( params.getBonds ( ) ) , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) ) ; return validator ; }

Target:
private org.ovirt.engine.core.bll.network.host.NicLabelValidator createNicLabelValidator ( org.ovirt.engine.core.common.action.HostSetupNetworksParameters params , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nics ) { org.ovirt.engine.core.bll.network.host.NicLabelValidator validator = new org.ovirt.engine.core.bll.network.host.NicLabelValidator ( params , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( nics ) , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( params.getCreateOrUpdateBonds ( ) ) , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) ) ; return validator ; }
Source:
protected void handleRootDSEFailure ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.DirectorySearcher directorySearcher ) { }

Target:
public void setConfiguration ( java.util.Properties configuration ) { this . configuration = configuration ; }
Source:
public static void LockVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVmStatus , new org.ovirt.engine.core.common.vdscommands.SetVmStatusVDSCommandParameters ( vmId , org.ovirt.engine.core.common.businessentities.VMStatus.ImageLocked ) ) ; }

Target:
public static void lockVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVmStatus , new org.ovirt.engine.core.common.vdscommands.SetVmStatusVDSCommandParameters ( vmId , org.ovirt.engine.core.common.businessentities.VMStatus.ImageLocked ) ) ; }
Source:
public java.lang.String getmessage ( ) { return this . message ; }

Target:
public java.lang.String getMessage ( ) { return message ; }
Source:
public void updateHostAddressAllowed ( ) { org.mockito.Mockito.when ( oldHost.getStatus ( ) ) . thenReturn ( VDSStatus.InstallFailed ) ; org.junit.Assert.assertThat ( validator.updateHostAddressAllowed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void updateHostAddressAllowed ( ) { org.mockito.Mockito.when ( oldHost.getStatus ( ) ) . thenReturn ( VDSStatus.InstallFailed ) ; org.hamcrest.MatcherAssert.assertThat ( validator.updateHostAddressAllowed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.uicommonweb.models.users.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllDbGroups , getParameters ( ) , query ) ; }

Target:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.uicommonweb.models.users.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( QueryType.GetAllDbGroups , getParameters ( ) , query ) ; }
Source:
public void setCpuName ( org.ovirt.engine.core.common.businessentities.ServerCpu value ) { _cpuName = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "CpuName" ) ) ; }

Target:
public void setPmSecondaryConcurrent ( boolean value ) { mVdsStatic.setPmSecondaryConcurrent ( value ) ; }
Source:
public int getMemCommited ( ) { return memCommited ; }

Target:
public void perform ( ) { try { lockVmsManager ( ) ; refreshVmStats ( ) ; saveVmsToDb ( ) ; afterVMsRefreshTreatment ( ) ; vdsManager.updateMetrics ( memCommited , vmsCoresCount ) ; } finally { unlockVmsManager ( ) ; } }
Source:
public void testGetAllByVMNameUnprivilegedUserFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameInvalidResults ( dao.getAllByVMName ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_NAME , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ) ; }

Target:
public void testGetAllByVMNameUnprivilegedUserFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameInvalidResults ( dao.getAllByVMId ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hostExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_INVALID_SERVER_ID ) . when ( ( ( ( oldHost ) == null ) || ( ( getHost ( ) ) == null ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_INVALID_SERVER_ID ) . when ( ( ( ( oldHost ) == null ) || ( ( getHost ( ) ) == null ) ) ) ; }
Source:
public void setclient_ip ( java.lang.String value ) { this . mVmDynamic.setclient_ip ( value ) ; }

Target:
public void setVmtName ( java.lang.String value ) { this . vmtName = value ; }
Source:
public void testGetstorage_domain_by_type_for_storagePoolId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) , StorageDomainType.Master ) ; org.junit.Assert.assertNotNull ( result ) ; assertGetResult ( result ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageDomainDao ( ) ; existingDomain = dao.get ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 ) ; }
Source:
public boolean validate ( ) { org.ovirt.engine.core.bll.validator.HostValidator hostValidator = new org.ovirt.engine.core.bll.validator.HostValidator ( getVds ( ) ) ; return ( validate ( hostValidator.hostExists ( ) ) ) && ( validate ( hostValidator.validateStatusForEnrollCertificate ( ) ) ) ; }

Target:
public boolean validate ( ) { org.ovirt.engine.core.bll.validator.HostValidator hostValidator = org.ovirt.engine.core.bll.validator.HostValidator.createInstance ( getVds ( ) ) ; return ( validate ( hostValidator.hostExists ( ) ) ) && ( validate ( hostValidator.validateStatusForEnrollCertificate ( ) ) ) ; }
Source:
public void setHtml ( final com.google.gwt.safehtml.shared.SafeHtml html ) { setHTML ( true ) ; if ( html != null ) { setTitle ( html.asString ( ) ) ; } }

Target:
public void setHtml ( final com.google.gwt.safehtml.shared.SafeHtml html ) { setHTML ( true ) ; if ( html == null ) { setTitle ( "" ) ; } else { setTitle ( html.asString ( ) ) ; } }
Source:
public static java.lang.Integer getMinMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getMinimumRam ( osId , version ) ; }

Target:
public static boolean isOsTypeSupported ( int osId , org.ovirt.engine.core.common.businessentities.ArchitectureType architectureType ) { return architectureType == ( org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getArchitectureFromOS ( osId ) ) ; }
Source:
protected java.lang.Double getSpeed ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface object ) { if ( ( object.getSpeed ( ) ) != null ) { return object.getSpeed ( ) . doubleValue ( ) ; } else { return null ; } }

Target:
protected java.lang.Double getSpeed ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { if ( ( object.getSpeed ( ) ) != null ) { return object.getSpeed ( ) . doubleValue ( ) ; } else { return null ; } }
Source:
public org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryMetadata getLdapQueryMetadata ( org.ovirt.engine.core.ldap.LdapProviderType providerType , org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryData queryData ) { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryMetadata ldapQueryMetadata = org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryMetadataFactoryImpl.queryMetadataMap.get ( providerType ) . get ( queryData.getLdapQueryType ( ) ) ; ldapQueryMetadata.setQueryData ( queryData ) ; return ldapQueryMetadata ; }

Target:
public org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryMetadata getLdapQueryMetadata ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.utils.ldap.LdapProviderType providerType , org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryData queryData ) { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryMetadata ldapQueryMetadata = org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryMetadataFactoryImpl.queryMetadataMap.get ( providerType ) . get ( queryData.getLdapQueryType ( ) ) ; ldapQueryMetadata.setQueryData ( queryData ) ; return ldapQueryMetadata ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( org.ovirt.engine.core.bll.AddVmPoolCommand.isAddVmsSucceded ( ) ) { return org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS ; } return org.ovirt.engine.core.bll.AddVmPoolCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS_ADD_VDS_FAILED : org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( org.ovirt.engine.core.bll.AddVmPoolCommand.isAllAddVmsSucceeded ( ) ) { return org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS ; } return org.ovirt.engine.core.bll.AddVmPoolCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS_ADD_VDS_FAILED : org.ovirt.engine.core.common.AuditLogType.USER_ADD_VM_POOL_WITH_VMS_FAILED ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , null , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , null , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . getUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getVdsGroupId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return getClusterUtils ( ) . getUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getVdsGroupId ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkTemplatePresenter.constants.networkTemplateSubTabLabel ( ) , 6 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkTemplatePresenter.constants.networkTemplateSubTabLabel ( ) , 6 ) ; }
Source:
public void add ( java.lang.String agent , java.lang.String key , java.lang.String value ) { key = GetRealKey ( agent , key ) ; org.ovirt.engine.core.utils.pm.VdsFenceOptions.fencingAgentInstanceOptions.put ( key , value ) ; }

Target:
public void add ( java.lang.String agent , java.lang.String key , java.lang.String value ) { key = GetRealKey ( agent , key ) ; org.ovirt.engine.core.utils.pm.VdsFenceOptions.fenceAgentInstanceOptions.put ( key , value ) ; }
Source:
public boolean checkPermissions ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.compat.Guid networkId , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.common.action.VdcActionType actionType ) { final java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > permissionCheckSubjects = findPermissionCheckSubjects ( networkId , clusterId , actionType ) ; return checkPermissions ( command , permissionCheckSubjects ) ; }

Target:
public boolean checkPermissions ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.compat.Guid networkId , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.common.action.ActionType actionType ) { final java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > permissionCheckSubjects = findPermissionCheckSubjects ( networkId , clusterId , actionType ) ; return checkPermissions ( command , permissionCheckSubjects ) ; }
Source:
public void setStaticIpChangeAllowed ( boolean staticIpChangeAllowed ) { this . staticIpChangeAllowed = staticIpChangeAllowed ; updateCanSpecify ( ) ; }

Target:
public void setIpv6BootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv6BootProtocol value ) { if ( ( ipv6BootProtocol ) != value ) { ipv6BootProtocol = value ; ipv6BootProtocolChanged ( ) ; } }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( target ) ) ; java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; storageModel.postUpdateHost ( hosts ) ; }

Target:
public void setComment ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { comment = value ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendStorageDomainsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.storage_domains.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendStorageDomainsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) , index ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetFenceAgentByIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getFenceAgentDao ( ) . get ( org.ovirt.engine.core.bll.GetFenceAgentByIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetFenceAgentByIdQuery.getQueryReturnValue ( ) . setReturnValue ( fenceAgentDao.get ( org.ovirt.engine.core.bll.GetFenceAgentByIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
public void nameOrNullForEnum ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( org.ovirt.engine.core.utils.EnumUtilsTest.EnumForTest.ENUM1.name ( ) , org.ovirt.engine.core.common.utils.EnumUtils.nameOrNull ( org.ovirt.engine.core.utils.EnumUtilsTest.EnumForTest.ENUM1 ) ) ; }

Target:
public void nameOrNullForEnum ( ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.utils.EnumUtilsTest.EnumForTesting.ENUM1.name ( ) , org.ovirt.engine.core.common.utils.EnumUtils.nameOrNull ( org.ovirt.engine.core.utils.EnumUtilsTest.EnumForTesting.ENUM1 ) ) ; }
Source:
protected boolean CanAddDomain ( ) { return checkStorageConnection ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomain ( ) . getstorage ( ) ) ; }

Target:
protected boolean CanAddDomain ( ) { return checkStorageConnection ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomain ( ) . getStorage ( ) ) ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( ) ; super . syncSearch ( VdcQueryType.GetEventSubscribersBySubscriberIdGrouped , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( ) ; super . syncSearch ( QueryType.GetEventSubscribersBySubscriberIdGrouped , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }
Source:
protected java.util.Map < org.ovirt.engine.core.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.compat.Guid > , java.lang.Double > getQuotaConsumeMap ( java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > diskInfoList ) { if ( ( quotaForStorageConsumption ) == null ) { quotaForStorageConsumption = org.ovirt.engine.core.bll.QuotaHelper.getInstance ( ) . getQuotaConsumeMap ( diskInfoList ) ; } return quotaForStorageConsumption ; }

Target:
protected org.ovirt.engine.core.dao.DiskImageDAO getDiskImageDAO ( ) { return org.ovirt.engine.core.bll.VmCommand.getDbFacade ( ) . getDiskImageDAO ( ) ; }
Source:
protected void MoveOrCopyAllImageGroups ( ) { MoveOrCopyAllImageGroups ( org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmTemplateId ( ) , getTemplateDisks ( ) ) ; }

Target:
protected void moveOrCopyAllImageGroups ( ) { moveOrCopyAllImageGroups ( org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmTemplateId ( ) , getTemplateDisks ( ) ) ; }
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 ) ) ) ; } } ) ) ; }