auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getguest_os ( ) { return this . guest_os ; }

Target:
public void setConsoleCurrentUserName ( java.lang.String consoleCurUserName ) { this . consoleCurUserName = consoleCurUserName ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( returnValue ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > nics = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( result ) ) ; initNetworkInterfaces ( networkBehavior , nics ) ; networkInterfacesInited = true ; }
Source:
protected boolean unregisterLibvirtSecrets ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.cinderProviderSupported ( org.ovirt.engine.core.bll.storage.pool.ConnectHostToStoragePoolServerCommandBase.getStoragePool ( ) . getCompatibilityVersion ( ) ) ) { return registerLibvirtSecrets ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.storage.LibvirtSecret > emptyList ( ) , true ) ; } return true ; }

Target:
protected boolean unregisterLibvirtSecrets ( ) { return registerLibvirtSecrets ( java.util.Collections.emptyList ( ) , true ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.RepoFileMetaData a , org.ovirt.engine.core.common.businessentities.RepoFileMetaData b ) { return a.getRepoFileName ( ) . compareToIgnoreCase ( b.getRepoFileName ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.RepoFileMetaData a , org.ovirt.engine.core.common.businessentities.RepoFileMetaData b ) { return a.getRepoImageId ( ) . compareToIgnoreCase ( b.getRepoImageId ( ) ) ; }
Source:
public void setConsoleUserId ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setConsoleUserId ( value ) ; }

Target:
public void setVmPid ( java.lang.Integer value ) { this . vmDynamic.setVmPid ( value ) ; }
Source:
public void removeMemoryVolume ( java.lang.String memoryVolumes ) { super . removeMemoryVolume ( org.ovirt.engine.core.bll.memory.MemoryUtils.changeStorageDomainAndPoolInMemoryVolume ( memoryVolumes , storageDomainId , storagePoolId ) ) ; }

Target:
public void removeMemoryVolume ( java.lang.String memoryVolumes ) { super . removeMemoryVolume ( org.ovirt.engine.core.bll.memory.MemoryUtils.changeStorageDomainAndPoolInMemoryState ( memoryVolumes , storageDomainId , storagePoolId ) ) ; }
Source:
public void setSize ( int value ) { if ( ( size ) != value ) { size = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Size" ) ) ; } }

Target:
public void setSize ( int value ) { if ( ( size ) != value ) { size = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Size" ) ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms = getVms ( ) ; return networkNotUsedByVms ( getEntitiesNames ( vms ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByVms ( ) { return networkNotUsed ( getVms ( ) , EngineMessage.VAR__ENTITIES__VMS , EngineMessage.VAR__ENTITIES__VM ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.vm_pools vmPool = org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . save ( vmPool ) ; setActionReturnValue ( vmPool.getvm_pool_id ( ) ) ; org.ovirt.engine.core.bll.AddVmPoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . save ( vmPool ) ; setActionReturnValue ( vmPool.getvm_pool_id ( ) ) ; org.ovirt.engine.core.bll.AddVmPoolCommand.setSucceeded ( true ) ; }
Source:
protected org.ovirt.engine.api.model.User addParents ( org.ovirt.engine.api.model.User user ) { if ( ( parent ) != null ) { org.ovirt.engine.api.common.util.ReflectionHelper.assignChildModel ( user , org.ovirt.engine.api.model.User.class ) . setId ( parent.get ( ) . getId ( ) ) ; } return user ; }

Target:
protected org.ovirt.engine.api.model.User addParents ( org.ovirt.engine.api.model.User user ) { if ( ( parent ) != null ) { org.ovirt.engine.api.utils.ReflectionHelper.assignChildModel ( user , org.ovirt.engine.api.model.User.class ) . setId ( parent.get ( ) . getId ( ) ) ; } return user ; }
Source:
java.lang.String integerValidationNumberLessInvalidReason ( java.lang.String prefixMsg , int max ) ;

Target:
java.lang.String integerValidationNumberBetweenInvalidReason ( java.lang.String prefixMsg , int min , int max ) ;
Source:
public org.ovirt.engine.api.model.Icons list ( ) { return mapCollection ( getBackendCollection ( QueryType.GetAllVmIcons , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; }

Target:
public org.ovirt.engine.api.model.Icons list ( ) { return mapCollection ( getBackendCollection ( QueryType.GetAllVmIcons , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ) ) ; }
Source:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.REQUEST_QUEUE ) . withContent ( message ) . build ( ) ) ; }

Target:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.REQUEST_QUEUE ) . withContent ( message ) . build ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentPool ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentPool ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DC_ID2 ) ; return group ; }
Source:
public java.lang.String getGuestCurentUserName ( ) { return this . vmDynamic.getguest_cur_user_name ( ) ; }

Target:
public void setKvmEnable ( java.lang.Boolean value ) { this . vmDynamic.setKvmEnable ( value ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult networkNotUsed ( java.util.List < ? extends org.ovirt.engine.core.common.businessentities.Nameable > entities , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementPlural , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementSingular ) { return new org.ovirt.engine.core.common.utils.PluralMessages ( ) . getNetworkInUse ( getEntitiesNames ( entities ) , entitiesReplacementSingular , entitiesReplacementPlural ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult networkNotUsed ( java.util.List < ? extends org.ovirt.engine.core.common.businessentities.Nameable > entities , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementPlural , org.ovirt.engine.core.common.errors.EngineMessage entitiesReplacementSingular ) { final java.util.Collection < java.lang.String > entitiesNames = getEntitiesNames ( entities ) ; return networkNotUsed ( entitiesNames , entitiesReplacementPlural , entitiesReplacementSingular ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { setVolumeId ( null ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , parameters , context ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return getBackend ( ) . runInternalAction ( actionType , parameters , context.clone ( ) ) ; }
Source:
protected void callbackEndTransfer ( ) { if ( haveCallback ( ) ) { callback.endTransfer ( ) ; } }

Target:
public void write ( int b ) { bbuffer.put ( ( ( byte ) ( b ) ) ) ; _send ( ) ; }
Source:
public void shouldDetectPinnedVM ( ) { invalidVM.setDedicatedVmForVdsList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.assertj.core.api.Assertions.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) ) . contains ( UPGRADE_ERROR.VM_PINNED_TO_HOSTS ) ; }

Target:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_NEEDS_PASSTHROUGH ) ; }
Source:
protected void initProviderList ( ) { getProviders ( ) . setItems ( java.util.Collections.singletonList ( provider ) ) ; }

Target:
public void discoverNetworks ( ) { getProviders ( ) . setItems ( java.util.Collections.singletonList ( provider ) ) ; getProviders ( ) . setSelectedItem ( provider ) ; }
Source:
public void validateFailsWithClusterDoesNotSupportGluster ( ) { org.mockito.Mockito.doReturn ( getCluster ( false , Version.v4_1 ) ) . when ( clusterDao ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CLUSTER_DOES_NOT_SUPPORT_GLUSTER ) ; }

Target:
public void validateFailsWithClusterDoesNotSupportGluster ( ) { org.mockito.Mockito.doReturn ( getCluster ( false , Version.v4_1 ) ) . when ( clusterDao ) . get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CLUSTER_DOES_NOT_SUPPORT_GLUSTER ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { org.ovirt.engine.ui.frontend.Frontend.logger.log ( java.util.logging.Level.SEVERE , ( "Failed to execute Logoff: " + caught ) , caught ) ; callback.onFailure ( caught ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { if ( org.ovirt.engine.ui.frontend.Frontend.ignoreFailure ( caught ) ) { return ; } org.ovirt.engine.ui.frontend.Frontend.logger.log ( java.util.logging.Level.SEVERE , ( "Failed to execute Logoff: " + caught ) , caught ) ; callback.onFailure ( caught ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getSlaveHost ( ) { return getVdsDAO ( ) . get ( getParameters ( ) . getSlaveHostId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getSlaveHost ( ) { return getVdsDao ( ) . get ( getParameters ( ) . getSlaveHostId ( ) ) ; }
Source:
private boolean statelessSnapshotExistsForVm ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getSnapshotDao ( ) . exists ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.STATELESS ) ; }

Target:
private boolean statelessSnapshotExistsForVm ( ) { return org.ovirt.engine.core.bll.RunVmCommand.getDbFacade ( ) . getSnapshotDao ( ) . exists ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.STATELESS ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { getCallsHandler ( ) . executeModification ( "InsertAuditLog" , getSqlMapper ( event ) . addValue ( "log_type_name" , event.getlog_type_name ( ) ) ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { if ( event.isExternal ( ) ) { getCallsHandler ( ) . executeModification ( "InsertExternalAuditLog" , getExternalEventSqlMapper ( event ) ) ; } else { getCallsHandler ( ) . executeModification ( "InsertAuditLog" , getSqlMapper ( event ) ) ; } }
Source:
public void lowerVersion ( ) { storagePoolWithLowerVersion ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION.toString ( ) ) ; }

Target:
public void lowerVersionHostsAndNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNetworkToPool ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public static int Count ( java.lang.Iterable source ) { int result = 0 ; for ( java.lang.Object item : source ) { result ++ ; } return result ; }

Target:
public static int count ( java.lang.Iterable source ) { int result = 0 ; for ( java.lang.Object item : source ) { result ++ ; } return result ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult updatesAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NO_AVAILABLE_UPDATES_FOR_HOST ) . unless ( ( ( ( host.getVdsType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode ) ) || ( host.isUpdateAvailable ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult updatesAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NO_AVAILABLE_UPDATES_FOR_HOST ) . unless ( ( ( host.isOvirtNode ( ) ) || ( host.isUpdateAvailable ( ) ) ) ) ; }
Source:
public final java.lang.String getDestinationVdsName ( ) { return ( getDestinationVds ( ) ) != null ? getDestinationVds ( ) . getName ( ) : null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDestinationVdsId ( ) { org.ovirt.engine.core.common.businessentities.VDS destinationVds = getDestinationVds ( ) ; return destinationVds != null ? destinationVds.getId ( ) : null ; }
Source:
protected void ExecuteQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.LdapUser > userList = org.ovirt.engine.core.bll.adbroker.InternalBrokerUtils.getAllUsers ( ) ; setReturnValue ( userList ) ; setSucceeded ( true ) ; }

Target:
protected void executeQuery ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.LdapUser > userList = org.ovirt.engine.core.bll.adbroker.InternalBrokerUtils.getAllUsers ( ) ; setReturnValue ( userList ) ; setSucceeded ( true ) ; }
Source:
protected void verify ( org.ovirt.engine.api.model.CdRom model , org.ovirt.engine.api.model.CdRom transform ) { assertNotNull ( transform ) ; assertNotNull ( transform.getFile ( ) ) ; assertEquals ( model.getFile ( ) . getId ( ) , transform.getFile ( ) . getId ( ) ) ; }

Target:
protected void verify ( org.ovirt.engine.api.model.Cdrom model , org.ovirt.engine.api.model.Cdrom transform ) { assertNotNull ( transform ) ; assertNotNull ( transform.getFile ( ) ) ; assertEquals ( model.getFile ( ) . getId ( ) , transform.getFile ( ) . getId ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.StorageDomain > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStoragePermissionPresenter.constants.storagePermissionSubTabLabel ( ) , 13 , 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.storage.SubTabStoragePermissionPresenter.constants.storagePermissionSubTabLabel ( ) , 13 ) ; }
Source:
public void testExtractIpv6Prefix ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Prefix ( "::/128" ) , org.hamcrest.Matchers.is ( 128 ) ) ; }

Target:
public void testExtractIpv6Prefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( "::/128" ) , org.hamcrest.Matchers.is ( 128 ) ) ; }
Source:
public void testChangeClusterForbidden ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setVdsGroupId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with cant change cluster." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.VM_CANNOT_UPDATE_CLUSTER ) ; }

Target:
public void testChangeClusterForbidden ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setVdsGroupId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with cant change cluster." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.VM_CANNOT_UPDATE_CLUSTER ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.Network getNetworkByVnicProfileId ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { if ( vnicProfileId == null ) { return null ; } org.ovirt.engine.core.common.businessentities.network.VnicProfile vnicProfile = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVnicProfileDao ( ) . get ( vnicProfileId ) ; return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.getNetworkByVnicProfile ( vnicProfile ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.Network getNetworkByVnicProfileId ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { org.ovirt.engine.core.common.businessentities.network.VnicProfile vnicProfile = org.ovirt.engine.core.bll.network.cluster.NetworkHelper.getVnicProfile ( vnicProfileId ) ; return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.getNetworkByVnicProfile ( vnicProfile ) ; }
Source:
private static boolean hasEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { return Guid.Empty.equals ( task.getVdsmTaskId ( ) ) ; }

Target:
private static boolean hasEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTask task ) { return Guid.Empty.equals ( task.getVdsmTaskId ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { return org.ovirt.engine.core.compat.StringHelper.EqOp ( i.getNetworkName ( ) , net.getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { return org.apache.commons.lang.StringUtils.equals ( i.getNetworkName ( ) , net.getname ( ) ) ; }
Source:
public static void openUrlInNewWindow ( java.lang.String name , java.lang.String url ) { com.google.gwt.user.client.Window.open ( url , name.replace ( " " , "_" ) , null ) ; }

Target:
public static void openUrlInNewWindow ( final java.lang.String name , final java.lang.String url , final java.lang.String options ) { com.google.gwt.user.client.Window.open ( url , name.replace ( " " , "_" ) , options ) ; }
Source:
public static java.lang.String getVmwareUrl ( java.lang.String username , java.lang.String vcenter , java.lang.String dataCenter , java.lang.String esx , boolean verify ) { return ( ( ( ( ( ( "vpx://" + ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( username ) ? "" : username + "@" ) ) + vcenter ) + "/" ) + dataCenter ) + "/" ) + esx ) + ( verify ? "" : "?no_verify=1" ) ; }

Target:
public static java.lang.String getVmwareUrl ( java.lang.String username , java.lang.String vcenter , java.lang.String dataCenter , java.lang.String esx , boolean verify ) { if ( username != null ) { username = username.replace ( "@" , "%40" ) ; } return ( ( ( ( ( ( "vpx://" + ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( username ) ? "" : username + "@" ) ) + vcenter ) + "/" ) + dataCenter ) + "/" ) + esx ) + ( verify ? "" : "?no_verify=1" ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.OpenStackImage model , int index ) { org.junit.Assert.assertEquals ( NAMES [ index ] , model.getName ( ) ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.OpenStackImage model , int index ) { org.junit.jupiter.api.Assertions.assertEquals ( NAMES [ index ] , model.getName ( ) ) ; verifyLinks ( model ) ; }
Source:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( removeModulName ( com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ) ) + ( getDocumentationBasePath ( ) ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ; }

Target:
public static java.lang.String getRootURL ( ) { java.lang.String moduleURL = com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ; java.lang.String separator = "://" ; int index = moduleURL.indexOf ( separator ) ; index = moduleURL.indexOf ( "/" , ( index + ( separator.length ( ) ) ) ) ; java.lang.String result = ( index != ( - 1 ) ) ? moduleURL.substring ( 0 , ( index + 1 ) ) : moduleURL ; if ( ! ( result.endsWith ( "/" ) ) ) { result += "/" ; } return result ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getDiskAlias ( ) ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( 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.isBoot ( ) ? org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmDiskAttachPopupWidget.resources.bootableDiskIcon ( ) : null ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getvm_pool_id ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getVmPoolId ( ) ; }
Source:
public boolean isSmartcardEnabledOverridden ( ) { return this . smartcardEnabledOverridden ; }

Target:
public boolean isSmartcardEnabledOverridden ( ) { return this . consoleOptions.isSmartcardEnabledOverridden ( ) ; }
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 ) { runMultipleAction ( actionType , parameters , null , 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 java.lang.String getHibernationVolHandle ( ) { return this . vmDynamic.getHibernationVolHandle ( ) ; }

Target:
public java.lang.String getCustomCpuName ( ) { return this . vmStatic.getCustomCpuName ( ) ; }
Source:
private static void assertCorrectGetManagedInterfaceForVdsResult ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.getIsManagement ( ) ) ; }

Target:
private static void assertCorrectGetManagedInterfaceForVdsResult ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.getIsManagement ( ) ) ; }
Source:
public static org.ovirt.engine.core.bll.provider.ProviderProxy create ( org.ovirt.engine.core.common.businessentities.Provider provider ) { return null ; }

Target:
public < P extends org.ovirt.engine.core.bll.provider.ProviderProxy > P create ( org.ovirt.engine.core.common.businessentities.Provider provider ) { return ( ( P ) ( null ) ) ; }
Source:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value ) { return format.encode ( value ) ; }

Target:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return format.encode ( value , props ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.storage.DbFacade.getInstance ( ) . getStorageDomainDAO ( ) . getForStoragePool ( org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStoragePoolId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.storage.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStoragePoolId ( ) ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWith ( boolean virtService , boolean glusterService ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDefaultVdsGroup ( ) ; group.setVirtService ( virtService ) ; group.setGlusterService ( glusterService ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWith ( boolean virtService , boolean glusterService ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDefaultVdsGroup ( ) ; group.setVirtService ( virtService ) ; group.setGlusterService ( glusterService ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; return group ; }
Source:
protected void verify ( org.ovirt.engine.api.model.GlusterBrick model , org.ovirt.engine.api.model.GlusterBrick transform ) { assertNotNull ( transform ) ; }

Target:
protected void verify ( org.ovirt.engine.api.model.GlusterBrick model , org.ovirt.engine.api.model.GlusterBrick transform ) { org.junit.Assert.assertNotNull ( transform ) ; }
Source:
public boolean isLogDirSet ( ) { return ( ( getLogDir ( ) ) != null ) && ( ( getLogDir ( ) . trim ( ) . length ( ) ) > 0 ) ; }

Target:
public java.util.List < java.lang.String > getNotLoggedMethods ( ) { return notLoggedMethods ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Collection < org.ovirt.engine.core.aaa.ProfileEntry > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.aaa.ProfileEntry > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( source ) ) : null ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public void getGlusterHook ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > aQuery , org.ovirt.engine.core.compat.Guid hookId , boolean includeServerHooks ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterHookById , new org.ovirt.engine.core.common.queries.gluster.GlusterHookQueryParameters ( hookId , includeServerHooks ) , aQuery ) ; }
Source:
public void testGetAllForCpuProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForCpuProfile ( FixturesTool.CPU_PROFILE_1 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 1 , result.size ( ) ) ; }

Target:
public void testGetAllForCpuProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForCpuProfile ( FixturesTool.CPU_PROFILE_1 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 4 , result.size ( ) ) ; }
Source:
public void testCanDoAction ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . validateVmNotDuringSnapshot ( ) ; vm.setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.VMT_CANNOT_CREATE_TEMPLATE_FROM_DOWN_VM ) ; }

Target:
public void testCanDoAction ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . validateVmNotDuringSnapshot ( ) ; vm.setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.VMT_CANNOT_CREATE_TEMPLATE_FROM_DOWN_VM ) ; }
Source:
public void setPrincipalRecord ( java.lang.String engineSessionId , org.ovirt.engine.api.extensions.ExtMap principalRecord ) { setData ( engineSessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_RECORD_PARAMETER_NAME , principalRecord ) ; }

Target:
public final void setUser ( java.lang.String sessionId , org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.USER_PARAMETER_NAME , user ) ; setSessionValid ( sessionId , true ) ; persistEngineSession ( sessionId ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.StopProgress ( ) ; cancel ( ) ; }
Source:
public org.ovirt.engine.api.model.KatelloErratum get ( ) { return performGet ( VdcQueryType.GetErratumByIdForVm , new org.ovirt.engine.core.common.queries.HostErratumQueryParameters ( asGuid ( vmId ) , org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) ) , org.ovirt.engine.api.model.VM.class ) ; }

Target:
public org.ovirt.engine.api.model.KatelloErratum get ( ) { return performGet ( VdcQueryType.GetErratumByIdForVm , new org.ovirt.engine.core.common.queries.HostErratumQueryParameters ( asGuid ( vmId ) , org.ovirt.engine.api.restapi.utils.HexUtils.hex2string ( id ) ) , org.ovirt.engine.api.model.Vm.class ) ; }
Source:
public void testGetAllInterfacesForVdsWithInvalidVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllInterfacesForVdsWithInvalidVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void vdsIdDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }

Target:
public void vdsIdNull ( ) { b.setVdsId ( null ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }
Source:
public void addToHistory_exaclyTheLimit ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 9 , 10 , 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 ) , 13 , 3 ) ) ; }

Target:
public void addToHistoryExaclyTheLimit ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 9 , 10 , 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 ) , 13 , 3 ) ) ; }
Source:
private void setSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol selectedProtocol ) { model.getModel ( ) . setSelectedProtocol ( selectedProtocol ) ; }

Target:
public boolean render ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( value instanceof org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel ) { return extractBoolean ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel ) ( value ) ) . getVncImpl ( ) ) ; } return false ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; behavior.ExecuteCommand ( command ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; behavior.ExecuteCommand ( command ) ; }
Source:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.VM result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( "Vm db generation wasn't loaded as expected" , 1 , result.getDbGeneration ( ) ) ; org.junit.Assert.assertEquals ( result , existingVm ) ; }

Target:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.VM result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , result.getDbGeneration ( ) , "Vm db generation wasn't loaded as expected" ) ; org.junit.jupiter.api.Assertions.assertEquals ( result , existingVm ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb ) { if ( ! ( org.ovirt.engine.core.bll.RunVmCommandBase.hasCapacityToRunVM ( vds ) ) ) { sb.append ( "has insuffient capacity to run power client" ) ; return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_CPUS ) ; } return null ; }

Target:
public org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb ) { if ( ! ( org.ovirt.engine.core.bll.RunVmCommandBase.hasCapacityToRunVM ( vds ) ) ) { sb.append ( "has insuffient capacity to run power client" ) ; return org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_CPUS ; } return null ; }
Source:
public void setError ( java.lang.String msg ) { getImportSourceValid ( ) . setMessage ( msg ) ; getImportSourceValid ( ) . setEntity ( false ) ; }

Target:
public void setError ( java.lang.String problem ) { getProblemDescription ( ) . setIsValid ( false ) ; getProblemDescription ( ) . setEntity ( problem ) ; }
Source:
private void initVmPropertiesUtils ( ) { org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils vmPropertiesUtils = org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.class , vmPropertiesUtils ) ; }

Target:
private void initVmPropertiesUtils ( ) { org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils vmPropertiesUtils = org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) ; org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.class , vmPropertiesUtils ) ; }
Source:
public void addAttributes ( java.util.List < org.ovirt.api.metamodel.concepts.Attribute > newAttributes ) { attributes.addAll ( attributes ) ; attributes.sort ( java.util.Comparator.comparing ( Attribute :: getName ) ) ; }

Target:
public java.util.stream.Stream < org.ovirt.api.metamodel.concepts.Attribute > declaredAttributes ( ) { return attributes.stream ( ) ; }
Source:
private boolean migrateVm ( ) { setActionReturnValue ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunAsyncVdsCommand ( VDSCommandType.Migrate , createMigrateVDSCommandParameters ( ) , this ) . getReturnValue ( ) ) ; return ( org.ovirt.engine.core.bll.MigrateVmCommand.getActionReturnValue ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.MigratingFrom ) ; }

Target:
private boolean migrateVm ( ) { setActionReturnValue ( org.ovirt.engine.core.bll.MigrateVmCommand.getVdsBroker ( ) . RunAsyncVdsCommand ( VDSCommandType.Migrate , createMigrateVDSCommandParameters ( ) , this ) . getReturnValue ( ) ) ; return ( org.ovirt.engine.core.bll.MigrateVmCommand.getActionReturnValue ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.MigratingFrom ) ; }
Source:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; UpdateCustomProperties ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) ) ; updateCpuPinningVisibility ( ) ; }

Target:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; UpdateCustomProperties ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; }
Source:
public void setNoTaskMgrExecution ( boolean noTaskMgrExecution ) { this . noTaskMgrExecution = noTaskMgrExecution ; }

Target:
public void setSmartcardEnabled ( boolean smartcardEnabled ) { this . consoleOptions.setSmartcardEnabled ( smartcardEnabled ) ; }
Source:
public void getOneSnapshotsByMemory ( ) { org.junit.Assert.assertEquals ( 1 , dao.getNumOfSnapshotsByMemory ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_MEMORY_VOLUME ) ) ; }

Target:
public void getOneSnapshotsByMemoryDump ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = new org.ovirt.engine.core.common.businessentities.Snapshot ( ) ; snapshot.setMemoryDiskId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_MEMORY_DUMP_DISK_ID ) ; snapshot.setMetadataDiskId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( 1 , dao.getNumOfSnapshotsByDisks ( snapshot ) ) ; }
Source:
private void initAllPlugins ( ) { for ( org.ovirt.engine.ui.webadmin.plugin.Plugin plugin : getPlugins ( ) ) { initPlugin ( plugin ) ; } org.ovirt.engine.ui.webadmin.plugin.UiPluginsInitializedEvent.fire ( this ) ; }

Target:
public void setPluginsReadyCallback ( org.ovirt.engine.ui.webadmin.plugin.PluginManager.PluginsReadyCallback callback ) { this . pluginsReadyCallback = callback ; }
Source:
private void setSdDiscardFunctionality ( boolean sdSupportsDiscard , boolean sdDiscardZeroesData ) { storageDomain.setSupportsDiscard ( sdSupportsDiscard ) ; storageDomain.setSupportsDiscardZeroesData ( sdDiscardZeroesData ) ; }

Target:
private void setSdDiscardSupport ( boolean sdSupportsDiscard , boolean sdDiscardZeroesData ) { storageDomain.setSupportsDiscard ( sdSupportsDiscard ) ; storageDomain.setSupportsDiscardZeroesData ( sdDiscardZeroesData ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileForVmNetworkOnly ( ) { return getNetwork ( ) . isVmNetwork ( ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_ADD_VNIC_PROFILE_TO_NON_VM_NETWORK ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vnicProfileForVmNetworkOnly ( ) { return getNetwork ( ) . isVmNetwork ( ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CANNOT_ADD_VNIC_PROFILE_TO_NON_VM_NETWORK ) ; }
Source:
public boolean equals ( org.ovirt.engine.core.common.businessentities.Tags x , org.ovirt.engine.core.common.businessentities.Tags y ) { return x.gettag_id ( ) . equals ( y.gettag_id ( ) ) ; }

Target:
public boolean equals ( org.ovirt.engine.core.common.businessentities.Tags x , org.ovirt.engine.core.common.businessentities.Tags y ) { return x.getTagId ( ) . equals ( y.getTagId ( ) ) ; }
Source:
public void setRoundedElapsedTime ( java.lang.Double value ) { this . mVmStatistics.setRoundedElapsedTime ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "roundedElapsedTime" ) ) ; }

Target:
public void setGuestAgentNicsHash ( int guestAgentNicsHash ) { vmDynamic.setGuestAgentNicsHash ( guestAgentNicsHash ) ; }
Source:
private boolean isCloudInitUsed ( ) { return ( ( vm.getInitializationType ( ) ) == ( org.ovirt.engine.core.common.businessentities.InitializationType.CloudInit ) ) && ( ! ( windows ) ) ; }

Target:
private boolean isCloudInitUsed ( ) { return ( ( org.ovirt.engine.core.vdsbroker.CreateVDSCommand.getParameters ( ) . getInitializationType ( ) ) == ( org.ovirt.engine.core.common.businessentities.InitializationType.CloudInit ) ) && ( ! ( windows ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public org.ovirt.engine.api.model.Disk resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Disk.class , VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomainById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.StorageDomain.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }
Source:
public java.lang.Double getRoundedElapsedTime ( ) { return this . mVmStatistics.getRoundedElapsedTime ( ) ; }

Target:
public void setVmtCreationDate ( java.util.Date value ) { this . vmtCreationDate = value ; }
Source:
protected boolean isSystemSuperUser ( ) { org.ovirt.engine.core.common.businessentities.Permissions superUserPermission = org.ovirt.engine.core.bll.PermissionsCommandBase.getPermissionDAO ( ) . getForRoleAndAdElementAndObjectWithGroupCheck ( PredefinedRoles.SUPER_USER.getId ( ) , org.ovirt.engine.core.bll.PermissionsCommandBase.getCurrentUser ( ) . getId ( ) , MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ; return superUserPermission != null ; }

Target:
protected boolean isSystemSuperUser ( ) { return isSystemSuperUserPredicate.eval ( org.ovirt.engine.core.bll.PermissionsCommandBase.getCurrentUser ( ) . getId ( ) ) ; }
Source:
public void prepareMessage ( java.lang.String hostName , org.ovirt.engine.core.common.businessentities.AuditLogEvent event , boolean isBodyHtml ) { prepareMessageSubject ( hostName , event ) ; prepareMessageBody ( event , isBodyHtml ) ; }

Target:
public void prepareMessage ( java.lang.String hostName , org.ovirt.engine.core.notifier.filter.AuditLogEvent event , boolean isBodyHtml ) { prepareMessageSubject ( hostName , event ) ; prepareMessageBody ( event , isBodyHtml ) ; }
Source:
public void emptyStringMakesEmptyMap ( ) { final java.lang.String empty = "" ; java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.common.utils.pm.PowerManagementUtils.pmOptionsStringToMap ( empty ) ; org.junit.Assert.assertTrue ( map.isEmpty ( ) ) ; }

Target:
public void emptyStringMakesEmptyMap ( ) { final java.lang.String empty = "" ; java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.common.utils.pm.PowerManagementUtils.pmOptionsStringToMap ( empty ) ; org.junit.jupiter.api.Assertions.assertTrue ( map.isEmpty ( ) ) ; }
Source:
public void testGetAllMacsForMacPool ( ) { final java.util.List < java.lang.String > allMacsForMacPool = dao.getAllMacsForMacPool ( FixturesTool.NON_DEFAULT_MAC_POOL ) ; org.junit.Assert.assertThat ( allMacsForMacPool.containsAll ( java.util.Arrays.asList ( "00:1a:4a:16:87:da" , "00:1a:4a:16:87:d9" ) ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testGetAllMacsForMacPool ( ) { final java.util.List < java.lang.String > allMacsForMacPool = dao.getAllMacsForMacPool ( FixturesTool.NON_DEFAULT_MAC_POOL ) ; org.hamcrest.MatcherAssert.assertThat ( allMacsForMacPool.containsAll ( java.util.Arrays.asList ( "00:1a:4a:16:87:da" , "00:1a:4a:16:87:d9" ) ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private void cancel ( ) { sourceListModel.setWindow ( null ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel getType ( ) { return privateType ; }
Source:
protected void setUpEntityQueryExpectations ( int index ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.AdUser user = org.ovirt.engine.api.restapi.resource.BackendUsersResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.AdUser.class ) , index ) ; setUpGetEntityExpectations ( ( ( "ADUSER@" + ( DOMAIN ) ) + ": allnames=*" ) , SearchType.AdUser , user ) ; }

Target:
protected void setUpEntityQueryExpectations ( int index ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.LdapUser user = org.ovirt.engine.api.restapi.resource.BackendUsersResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.LdapUser.class ) , index ) ; setUpGetEntityExpectations ( ( ( "ADUSER@" + ( DOMAIN ) ) + ": allnames=*" ) , SearchType.AdUser , user ) ; }