auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getMaxSpmPriority ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Integer > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( 0 ) ; aQuery.asyncCallback.onSuccess ( 10 ) ; }

Target:
public void getMaxSpmPriority ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Integer > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( 0 ) ; aQuery.getAsyncCallback ( ) . onSuccess ( 10 ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getDiskId ( ) { return getCommand ( ) . getParameters ( ) . getDiskInfo ( ) . getId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDiskId ( org.ovirt.engine.core.bll.storage.disk.cinder.AddCinderDiskCommand < org.ovirt.engine.core.common.action.AddDiskParameters > addCinderDiskCommand ) { return addCinderDiskCommand.getParameters ( ) . getDiskInfo ( ) . getId ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setClusterId ( clusterId ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommandTest.serverName ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setClusterId ( org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommandTest.clusterId ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommandTest.serverName ) ; return vds ; }
Source:
public void validateFailsWithInvalidNoOfBricks ( ) { cmd.setGlusterVolumeId ( volumeWithRemoveBricksTask ) ; cmd.getParameters ( ) . setBricks ( getInvalidNoOfBricks ( volumeWithRemoveBricksTask ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithInvalidNoOfBricks ( ) { cmd.setGlusterVolumeId ( volumeWithRemoveBricksTask ) ; cmd.getParameters ( ) . setBricks ( getInvalidNoOfBricks ( volumeWithRemoveBricksTask ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.initOsIds ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { uniqueOsNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( uniqueOsNames ) ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockVmNetworks ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid cmdId ) { initChildHierarchy ( ) ; java.util.List < org.ovirt.engine.core.compat.Guid > childIds = java.util.Collections.EMPTY_LIST ; if ( childHierarchy.containsKey ( cmdId ) ) { childIds = childHierarchy.get ( cmdId ) ; } return childIds ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid cmdId ) { initChildHierarchy ( ) ; if ( childHierarchy.containsKey ( cmdId ) ) { return childHierarchy.get ( cmdId ) ; } return java.util.Collections.emptyList ( ) ; }
Source:
static org.ovirt.engine.api.model.VM setUpEntityExpectations ( org.ovirt.engine.api.model.VM entity , org.ovirt.engine.core.common.businessentities.VmStatistics statistics , int index ) { return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( entity , statistics , index , GUIDS [ index ] ) ; }

Target:
static org.ovirt.engine.core.common.businessentities.VM setUpEntityExpectations ( org.ovirt.engine.api.restapi.resource.VM entity , org.ovirt.engine.core.common.businessentities.VmStatistics statistics , int index ) { return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( entity , statistics , index , GUIDS [ index ] ) ; }
Source:
protected void assertNoErrors ( org.ovirt.engine.ui.uicommonweb.action.UiAction.ActionFlowState flowState ) { org.junit.Assert.assertTrue ( flowState.getFailedActionsMap ( ) . isEmpty ( ) ) ; }

Target:
protected void assertNoErrors ( org.ovirt.engine.ui.uicommonweb.action.UiAction.ActionFlowState flowState ) { org.junit.jupiter.api.Assertions.assertTrue ( flowState.getFailedActionsMap ( ) . isEmpty ( ) ) ; }
Source:
public void checkCinderStorageDomainContainDisks ( ) { setCinderStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; cinderStorageDomainContainsDisks ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertFalse ( cmd.canDetachDomain ( false ) ) ; }

Target:
public void checkCinderStorageDomainContainDisks ( ) { setCinderStorageDomainStatus ( StorageDomainStatus.Inactive ) ; storagePoolExists ( ) ; cinderStorageDomainContainsDisks ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.canDetachDomain ( false ) ) ; }
Source:
public void canRunVmPassStatelessWhenVmNotHAwithNegativeStatelessParam ( ) { org.ovirt.engine.core.bll.RunVmCommandTest.canRunStatelessVmTest ( false , false , java.lang.Boolean.TRUE , true ) ; }

Target:
public void canRunVmFailStatelessWhenVmHA ( ) { canRunStatelessVmTest ( true , false , java.lang.Boolean.TRUE , false ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedCommandsCompatibilityVersions = ( ( java.util.HashMap < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.queries.CommandVersionsInfo > ) ( source ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isCommandCompatible ( vdcActionType , cluster , dc ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( returnValue != null ) { cachedConfigValuesPreConvert.putAll ( ( ( java.util.HashMap < org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > , java.lang.Object > ) ( returnValue ) ) ) ; } return cachedConfigValuesPreConvert ; }
Source:
public void onFailed ( ) { org.ovirt.engine.core.bll.RemoveSnapshotSingleDiskLiveCommand.endWithFailure ( ) ; }

Target:
public java.lang.Void runInTransaction ( ) { syncDbRecords ( false ) ; return null ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmTemplate getTemplateByName ( org.ovirt.engine.api.model.Template template ) { return lookupTemplateByName ( template.getName ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.InstanceType lookupInstance ( org.ovirt.engine.api.model.Template template ) { return getEntity ( org.ovirt.engine.core.common.businessentities.InstanceType.class , VdcQueryType.GetInstanceType , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( asGuid ( template.getId ( ) ) ) , "GetInstanceType" ) ; }
Source:
public void deleteRunningJobsOfTasklessCommands ( ) { updateQueryGetResult ( getEntityManager ( ) . createNativeQuery ( "select cast(DeleteRunningJobsOfTasklessCommands as text) from DeleteRunningJobsOfTasklessCommands()" ) ) ; }

Target:
public void deleteRunningJobsOfTasklessCommands ( ) { getCallsHandler ( ) . executeModification ( "DeleteRunningJobsOfTasklessCommands" , getCustomMapSqlParameterSource ( ) ) ; }
Source:
org.ovirt.engine.core.common.businessentities.storage.LibvirtSecret get ( org.ovirt.engine.core.compat.Guid id ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.storage.LibvirtSecret > getAllByStoragePoolIdFilteredByActiveStorageDomains ( org.ovirt.engine.core.compat.Guid storagePoolId ) ;
Source:
public void testIsNetworkInSyncWhenAverageUpperLimitDifferentIfaceQosOverridden ( ) throws java.lang.Exception { ifaceQos.setOutAverageUpperlimit ( 1 ) ; networkQos.setOutAverageUpperlimit ( 2 ) ; iface.setQosOverridden ( true ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIfaceQosIsNull ( ) throws java.lang.Exception { iface.setQos ( null ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
java.util.Map < java.lang.String , org.ovirt.optimizer.rest.dto.ScoreResult > simpleSchedule ( java.lang.String clusterId , org.ovirt.optimizer.solver.problemspace.OptimalDistributionStepsSolution situation , java.util.List < java.util.Map < java.lang.String , java.lang.String > > preSteps , java.lang.String vm ) ;

Target:
java.util.Map < java.lang.String , org.ovirt.optimizer.rest.dto.ScoreResult > simpleSchedule ( java.lang.String clusterId , org.ovirt.optimizer.solver.problemspace.OptimalDistributionStepsSolution situation , org.ovirt.optimizer.rest.dto.Result baseResult , java.lang.String vm ) ;
Source:
public java.lang.String getMessage ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 ) { return getVerb ( op1 ) ; }

Target:
protected void ExecuteNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.VdsNetworkInterface > allNics , java.lang.Object ... params ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.DETACH_NETWORK.getCommand ( op1 , op2 , allNics ) . Execute ( ) ; }
Source:
private void checkStoragePoolFails ( ) { org.junit.Assert.assertFalse ( cmd.checkStoragePool ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST.toString ( ) ) ) ; }

Target:
private void checkStoragePoolFails ( ) { org.junit.Assert.assertFalse ( cmd.checkStoragePool ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST.toString ( ) ) ) ; }
Source:
protected java.lang.Object getReturnValueFromBroker ( ) { if ( org.ovirt.engine.core.vdsbroker.gluster.GetGlusterLocalPhysicalVolumeListVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { return result.getPhysicalVolumes ( ) ; } return java.util.Collections.EMPTY_LIST ; }

Target:
protected java.lang.Object getReturnValueFromBroker ( ) { if ( org.ovirt.engine.core.vdsbroker.gluster.GetGlusterLocalPhysicalVolumeListVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { return result.getPhysicalVolumes ( ) ; } return java.util.Collections.emptyList ( ) ; }
Source:
public void setSanStorageModel ( org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModel sanStorageModel ) { super . setSanStorageModel ( sanStorageModel ) ; if ( ! ( sanStorageModel.getLunSelectionChangedEvent ( ) . getListeners ( ) . contains ( lunSelectionChangedEventListener ) ) ) { sanStorageModel.getLunSelectionChangedEvent ( ) . addListener ( lunSelectionChangedEventListener ) ; } }

Target:
public void setSanStorageModelBase ( org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModelBase sanStorageModelBase ) { super . setSanStorageModelBase ( sanStorageModelBase ) ; if ( ! ( sanStorageModelBase.getLunSelectionChangedEvent ( ) . getListeners ( ) . contains ( lunSelectionChangedEventListener ) ) ) { sanStorageModelBase.getLunSelectionChangedEvent ( ) . addListener ( lunSelectionChangedEventListener ) ; } }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; cancel ( ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { return getParameters ( ) . getStorageDomainId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { return org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getStorageDomainId ( ) ; }
Source:
public void succededToRunVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { if ( asyncRunningVms.contains ( vmId ) ) { getEventListener ( ) . runningSucceded ( vmId ) ; } RemoveAsyncRunningVm ( vmId ) ; }

Target:
public void succededToRunVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { if ( asyncRunningVms.contains ( vmId ) ) { getEventListener ( ) . runningSucceded ( vmId ) ; } removeAsyncRunningVm ( vmId ) ; }
Source:
private org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator createNetworkAttachmentValidator ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachmentToValidate ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachmentToValidate , host , managementNetworkUtil , networkAttachmentDao , new org.ovirt.engine.core.bll.network.VmInterfaceManager ( ) , networkClusterDao , networkDao , vdsDao ) ; }

Target:
private org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator createNetworkAttachmentValidator ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachmentToValidate ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachmentToValidate , host , managementNetworkUtil , networkAttachmentDao , new org.ovirt.engine.core.bll.network.VmInterfaceManager ( ) , networkClusterDao , networkDao , vdsDao , vmDao ) ; }
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:
public void debug ( java.lang.Object msg , java.lang.Throwable t ) { if ( isDebugEnabled ( ) ) { log.debug ( addPrefixToLogMessage ( msg ) , t ) ; } }

Target:
public void debug ( java.lang.Object msg , java.lang.Throwable t ) { log.debug ( convertToString ( msg ) , t ) ; }
Source:
private void addMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage metaDataDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDiskForVm ( org.ovirt.engine.core.bll.HibernateVmCommand.getVm ( ) ) ; addDisk ( metaDataDisk ) ; }

Target:
private void addMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage metaDataDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createHibernationMetadataDisk ( org.ovirt.engine.core.bll.HibernateVmCommand.getVm ( ) ) ; addDisk ( metaDataDisk ) ; }
Source:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; UpdateCustomProperties ( ) ; UpdateMinAllocatedMemory ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( null , "" ) ; updateCpuPinningVisibility ( ) ; }

Target:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; UpdateMinAllocatedMemory ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( null , "" ) ; updateCpuPinningVisibility ( ) ; }
Source:
public void setInSlot ( java.lang.Object slot , com.google.gwt.user.client.ui.Widget content ) { if ( slot == ( getSubTabPanelContentSlot ( ) ) ) { setPanelContent ( subTabPanelContainer , content ) ; } else { super . setInSlot ( slot , content ) ; } }

Target:
public void setInSlot ( java.lang.Object slot , com.google.gwt.user.client.ui.IsWidget content ) { if ( slot == ( getSubTabPanelContentSlot ( ) ) ) { setPanelContent ( subTabPanelContainer , content ) ; } else { super . setInSlot ( slot , content ) ; } }
Source:
private static java.lang.Boolean execute ( org.ovirt.engine.core.bll.adbroker.GetRootDSETask task ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , java.util.concurrent.TimeoutException { return org.ovirt.engine.core.bll.adbroker.DirectorySearcherTest.executerService.submit ( task ) . get ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
private static java.lang.Boolean execute ( org.ovirt.engine.core.bll.adbroker.GetRootDSETask task ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , java.util.concurrent.TimeoutException { return org.ovirt.engine.core.bll.adbroker.DirectorySearcherTest.executerService.submit ( task ) . get ( 1 , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { driver.edit ( iface ) ; hideMacWhenNotEnabled ( iface ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { driver.edit ( iface ) ; hideMacWhenNotEnabled ( iface ) ; initCustomPropertySheet ( iface ) ; }
Source:
protected abstract void onLogin ( T loginModel ) ;

Target:
public void onUncaughtException ( java.lang.Throwable t ) { rootLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ( ( java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }
Source:
public void onUserLogin ( java.lang.String userName ) { setUserName ( userName ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }

Target:
public void onUserLogin ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { setUserName ( loggedUser.getUserName ( ) ) ; setUserId ( loggedUser.getUserId ( ) ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }
Source:
public void setVmFQDN ( java.lang.String fqdn ) { this . vmFQDN = fqdn ; }

Target:
public void setFqdn ( java.lang.String fqdn ) { this . fqdn = fqdn ; }
Source:
public void replace_callReplaceTwoTimes ( ) { java.lang.String text = "AdminName=$AdminName$ AdminPassword=$AdminPassword$" ; java.lang.StringBuilder firstPart = runAndCheck ( sb ( text ) , "$AdminPassword$" , "$A$AA$" , "AdminName=$AdminName$ AdminPassword=$A$AA$" ) ; runAndCheck ( firstPart , "$AdminName$" , "$B$BB$" , "AdminName=$B$BB$ AdminPassword=$A$AA$" ) ; }

Target:
public void replace_callReplaceTwoOccurrences ( ) { runAndCheck ( "AdminName=$AdminName$ AdminPassword=$AdminName$" , "$AdminName$" , "$B$BB$" , "AdminName=$B$BB$ AdminPassword=$B$BB$" ) ; }
Source:
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.SubTabStorageRegisterDiskImagePresenter.constants.storageDiskBackupSubTabLabel ( ) , 4 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return org.ovirt.engine.ui.webadmin.section.main.presenter.tab.DetailTabDataIndex.STORAGE_REGISTER_DISK_IMAGE ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.gluster.DetachGlusterHostsModel object ) { hostsTable.edit ( object.getHosts ( ) ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.DetachGlusterHostsPopupView.Driver.driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.gluster.DetachGlusterHostsModel object ) { hostsTable.edit ( object.getHosts ( ) ) ; driver.edit ( object ) ; }
Source:
public static java.lang.String getCurrentContext ( ) { return org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . currentContext ; }

Target:
public void initLoggedInUser ( org.ovirt.engine.core.common.businessentities.DbUser loggedUser , java.lang.String loginPassword ) { this . currentUser = loggedUser ; this . currentPassword = loginPassword ; }
Source:
private void localize ( ) { pfTab.setLabel ( constants.pfTab ( ) ) ; vfsConfigTab.setLabel ( constants.vfsConfigTab ( ) ) ; }

Target:
private void localize ( ) { pfTab.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostNicPopupView.constants.pfTab ( ) ) ; vfsConfigTab.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostNicPopupView.constants.vfsConfigTab ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.List < 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.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.Collection < 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.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
protected abstract org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ;

Target:
protected abstract org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port , org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient.CertCallback certCallback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ;
Source:
public void sshUserNameNotEmpty ( ) { org.mockito.Mockito.when ( host.getSshUsername ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( org.ovirt.engine.core.bll.validator.HostValidatorTest.HOST_NAME_SIZE ) ) ; org.junit.Assert.assertThat ( validator.sshUserNameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void sshUserNameNotEmpty ( ) { org.mockito.Mockito.when ( host.getSshUsername ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( org.ovirt.engine.core.bll.validator.HostValidatorTest.HOST_NAME_SIZE ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.sshUserNameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testAddVnicProfileCantDo ( ) throws java.lang.Exception { doTestBadAddVnicProfile ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }

Target:
public void testAddVnicProfileCantDo ( ) throws java.lang.Exception { setUpNetworkQueryExpectations ( ) ; doTestBadAddVnicProfile ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }
Source:
public boolean isLogDirSet ( ) { return ( ( getLogDir ( ) ) != null ) && ( ( getLogDir ( ) . trim ( ) . length ( ) ) > 0 ) ; }

Target:
public void setJsonSecured ( boolean jsonSecured ) { this . jsonSecured = jsonSecured ; }
Source:
private void runBooleanQueryByEntityId ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.BooleanAsyncConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( queryType , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , aQuery ) ; }

Target:
private void runQueryByIdParameter ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.AsIsAsyncConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( queryType , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , aQuery ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.QuotaVdsGroup getClusterGlobalCpuLimit ( ) { org.ovirt.engine.core.common.businessentities.QuotaVdsGroup clusterGlobalLimit = new org.ovirt.engine.core.common.businessentities.QuotaVdsGroup ( ) ; clusterGlobalLimit.setQuotaId ( GUIDS [ 0 ] ) ; clusterGlobalLimit.setVdsGroupId ( org.ovirt.engine.api.restapi.resource.BackendQuotaClusterLimitsResourceTest.CLUSTER_ID_1 ) ; clusterGlobalLimit.setVirtualCpu ( 20 ) ; return clusterGlobalLimit ; }

Target:
private org.ovirt.engine.core.common.businessentities.QuotaCluster getClusterGlobalCpuLimit ( ) { org.ovirt.engine.core.common.businessentities.QuotaCluster clusterGlobalLimit = new org.ovirt.engine.core.common.businessentities.QuotaCluster ( ) ; clusterGlobalLimit.setQuotaId ( GUIDS [ 0 ] ) ; clusterGlobalLimit.setClusterId ( org.ovirt.engine.api.restapi.resource.BackendQuotaClusterLimitsResourceTest.CLUSTER_ID_1 ) ; clusterGlobalLimit.setVirtualCpu ( 20 ) ; return clusterGlobalLimit ; }
Source:
public void testGetById ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByServerId ( org.ovirt.engine.core.dao.gluster.GlusterServerDaoTest.SERVER_ID1 ) ; org.junit.Assert.assertNotNull ( entity ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.gluster.GlusterServerDaoTest.SERVER_ID1 , entity.getId ( ) ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_SERVER_UUID1 , entity.getGlusterServerUuid ( ) ) ; }

Target:
public void testGetById ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByServerId ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.Assert.assertNotNull ( entity ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_BRICK_SERVER1 , entity.getId ( ) ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_SERVER_UUID1 , entity.getGlusterServerUuid ( ) ) ; }
Source:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status , org.ovirt.engine.core.common.businessentities.VmExitStatus exitStatus ) { InternalSetVmStatus ( vm , status , exitStatus , StringUtils.EMPTY , VmExitReason.Unknown ) ; }

Target:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status ) { InternalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY , VmExitReason.Unknown , vm.getStatusUpdatedTime ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storage_domains ) { return ( storage_domains.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }

Target:
public static void setInstance ( org.ovirt.engine.core.dal.dbbroker.DbFacade dbFacade ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.instance = dbFacade ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; updateActionAvailability ( ) ; }

Target:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; setGuideContext ( vmId ) ; updateActionAvailability ( ) ; getGuideCommand ( ) . execute ( ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( id ) == null ? 0 : id.hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { setUpMockQueryParameters ( ) ; setUpSpyQuery ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { setUpMockQueryParameters ( ) ; setUpSpyQuery ( ) ; for ( org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < ? > mcd : getExtraConfigDescriptors ( ) ) { org.ovirt.engine.core.bll.AbstractQueryTest.mcr.mockConfigValue ( mcd ) ; } }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.MaintananceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintananceNumberOfVdssParameters ( asList ( guid ) , false ) , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( asList ( guid ) , false ) , action ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.String address ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice ( vmId , deviceId , true , false , address , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.Boolean isPlugged , java.lang.Boolean isReadOnly , boolean isUsingScsiReservation ) { return addDiskDevice ( vmId , deviceId , isPlugged , isReadOnly , "" , isUsingScsiReservation ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( returnValue != null ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert.putAll ( ( ( java.util.HashMap < org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > , java.lang.Object > ) ( returnValue ) ) ) ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { cachedCommandsCompatibilityVersions = ( ( java.util.HashMap < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.queries.CommandVersionsInfo > ) ( source ) ) ; return isCommandCompatible ( vdcActionType , cluster , dc ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; if ( command.getName ( ) . equals ( "closeVncInfo" ) ) { setWindow ( null ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command.getName ( ) . equals ( "closeVncInfo" ) ) { setWindow ( null ) ; } }
Source:
public static org.ovirt.engine.core.compat.Match Match ( java.lang.String input , java.lang.String pattern , int options ) { return new org.ovirt.engine.core.compat.Regex ( pattern , options ) . Match ( input ) ; }

Target:
public static org.ovirt.engine.core.compat.Match match ( java.lang.String input , java.lang.String pattern , int options ) { return new org.ovirt.engine.core.compat.Regex ( pattern , options ) . match ( input ) ; }
Source:
private void addVms ( java.util.List < org.ovirt.engine.core.compat.Guid > vmGuids , int diskCount , org.ovirt.engine.core.common.businessentities.VMStatus vmStatus , org.ovirt.engine.core.common.businessentities.ImageStatus vmImageStatus ) { vms.putAll ( generateVmsMapByGuids ( vmGuids , diskCount , vmStatus , vmImageStatus ) ) ; }

Target:
private void addVms ( java.util.List < org.ovirt.engine.core.compat.Guid > vmGuids , int diskCount , org.ovirt.engine.core.common.businessentities.VMStatus vmStatus , org.ovirt.engine.core.common.businessentities.ImageStatus vmImageStatus , org.ovirt.engine.core.compat.Guid poolId ) { vms.putAll ( generateVmsMapByGuids ( vmGuids , diskCount , vmStatus , vmImageStatus , poolId ) ) ; }
Source:
protected void SelectedItemsChanging ( java.util.List newValue , java.util.List oldValue ) { if ( getNotifyPropertyChangeForAnyItem ( ) ) { return ; } UnsubscribeList ( oldValue ) ; SubscribeList ( newValue ) ; }

Target:
protected void selectedItemsChanging ( java.util.List newValue , java.util.List oldValue ) { if ( getNotifyPropertyChangeForAnyItem ( ) ) { return ; } UnsubscribeList ( oldValue ) ; SubscribeList ( newValue ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForVdsGroupWithoutMigrating ( org.ovirt.engine.core.compat.Guid id ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > vdsList = getCallsHandler ( ) . executeReadList ( "GetVdsWithoutMigratingVmsByVdsGroupId" , org.ovirt.engine.core.dao.VdsDaoImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , id ) ) ; return uniteAgents ( vdsList ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForClusterWithoutMigrating ( org.ovirt.engine.core.compat.Guid clusterId ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > vdsList = getCallsHandler ( ) . executeReadList ( "GetVdsWithoutMigratingVmsByClusterId" , org.ovirt.engine.core.dao.VdsDaoImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) ) ; return uniteAgents ( vdsList ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByJobId ( org.ovirt.engine.core.compat.Guid jobId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "job_id" , jobId ) ; return getCallsHandler ( ) . executeReadList ( "GetStepsByJobId" , createEntityRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByJobId ( org.ovirt.engine.core.compat.Guid jobId ) { return jobDao.get ( jobId ) . getSteps ( ) ; }
Source:
public int getstatus ( ) { return this . status ; }

Target:
public java.lang.String getGroupNames ( ) { return groupNames ; }
Source:
public void testUpdateWithNonGuidId ( ) { try { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "vms" , "00000001-0001-0001-0001-000000000011" , "disks" , "116" ) ; javax.ws.rs.core.Request request = mockRequest ( "PUT" ) ; control.replay ( ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/api/model#services/vm-disk/methods/update" , fault.getDetail ( ) ) ; } catch ( java.net.URISyntaxException | java.lang.ClassNotFoundException | java.io.IOException e ) { fail ( ) ; } }

Target:
public void testUpdateWithNonGuidId ( ) { try { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "vms" , "00000001-0001-0001-0001-000000000011" , "nics" , "116" ) ; javax.ws.rs.core.Request request = mockRequest ( "PUT" ) ; control.replay ( ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/api/model#services/vm-nic/methods/update" , fault.getDetail ( ) ) ; } catch ( java.net.URISyntaxException | java.lang.ClassNotFoundException | java.io.IOException e ) { fail ( ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult glusterNetworkSupported ( ) { return ( networkCluster.isGluster ( ) ) && ( ! ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterNetworkRoleSupported ( version ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.GLUSTER_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult glusterNetworkSupported ( ) { return ( networkCluster.isGluster ( ) ) && ( ! ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterNetworkRoleSupported ( version ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.GLUSTER_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private static java.util.Date MakeDTFromCTime ( long ctime ) { return new java.util.Date ( ( ctime * 1000L ) ) ; }

Target:
private static java.util.Date makeDTFromCTime ( long ctime ) { return new java.util.Date ( ( ctime * 1000L ) ) ; }
Source:
org.ovirt.engine.core.common.vdscommands.VDSReturnValue RunAsyncVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VdsAndVmIDVDSParametersBase parameters , org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command ) ;

Target:
org.ovirt.engine.core.common.vdscommands.VDSReturnValue runAsyncVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VdsAndVmIDVDSParametersBase parameters , org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command ) ;
Source:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper qosValuesTest ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos ) { mockExistingNetworks ( network ) ; org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNicSyncedWithNetwork ( "eth0" , network ) ; mockExistingIfaces ( iface ) ; iface.setQos ( qos ) ; return createHelper ( createParametersForNics ( iface ) , Version.v3_4 ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper qosValuesTest ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos ) { mockExistingNetworks ( network ) ; org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNicSyncedWithNetwork ( "eth0" , network ) ; mockExistingIfaces ( iface ) ; iface.setQos ( qos ) ; return createHelper ( createParametersForNics ( iface ) , Version.v4_0 ) ; }
Source:
protected java.lang.String getVALID ( ) { return org.ovirt.engine.core.utils.network.predicate.AbstractVdsNetworkInterfacePredicateTest.VALID ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface generateVdsNetworkInterface ( java.lang.String value ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; setIfaceProperty ( iface , value ) ; return iface ; }
Source:
public static void init ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.osRepository = org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade = org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.dal.dbbroker.DbFacade.class ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao = org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) ; }

Target:
public void init ( ) { osRepository = org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }
Source:
private void mockVds ( ) { mockVdsBroker ( ) ; mockIsValidVdsCommand ( ) ; mockGetImageDomainsListVdsCommand ( 100 , 100 ) ; }

Target:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDAO ( ) ; }
Source:
public void existsWithSnapshotReturnsFalseForNonExistingVm ( ) { org.junit.Assert.assertFalse ( dao.exists ( Guid.Empty , getExistingEntityId ( ) ) ) ; }

Target:
public void existsWithSnapshotReturnsFalseForNonExistingVm ( ) { org.junit.jupiter.api.Assertions.assertFalse ( dao.exists ( Guid.Empty , getExistingEntityId ( ) ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public void testLogEntryDoesntLogWhenNoAnnotation ( ) 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.logEntry ( log , "" , new java.lang.Object ( ) ) ; org.mockito.Mockito.verifyZeroInteractions ( log ) ; }

Target:
public void testLogEntryDoesntLogWhenNoAnnotation ( ) throws java.lang.Exception { org.slf4j.Logger log = org.mockito.Mockito.mock ( org.slf4j.Logger.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.logEntry ( log , "" , new java.lang.Object ( ) ) ; org.mockito.Mockito.verifyZeroInteractions ( log ) ; }
Source:
public boolean isValid ( java.lang.String field , java.lang.String value ) { return ( org.ovirt.engine.core.compat.DoubleCompat.tryParse ( value ) ) != null ; }

Target:
public boolean isValid ( java.lang.String field , java.lang.String value ) { try { new java.math.BigDecimal ( value ) ; return true ; } catch ( java.lang.NumberFormatException e ) { return false ; } }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase EndAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) ;

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) ;
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc executeImageActionVdsBrokerCommand ( java.lang.String spId , java.lang.String sdId , java.lang.String imgGroupId , java.lang.String imgId ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageVDSCommand.getBroker ( ) . prepareImage ( spId , sdId , imgGroupId , imgId ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc executeImageActionVdsBrokerCommand ( java.lang.String spId , java.lang.String sdId , java.lang.String imgGroupId , java.lang.String imgId ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageVDSCommand.getBroker ( ) . prepareImage ( spId , sdId , imgGroupId , imgId , org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageVDSCommand.getParameters ( ) . getAllowIllegal ( ) ) ; }
Source:
private void initIpv6Address ( ) { getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . setIpV6Addresses ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.network.IpV6Address ( ) ) ) ; }

Target:
private void initIpv6Address ( ) { getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . setIpV6Addresses ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.network.IpV6Address ( ) ) ) ; }
Source:
public static boolean isVmDeviceExists ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > vmManagedDeviceMap , org.ovirt.engine.core.common.utils.VmDeviceType type ) { return org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.isVmDeviceExists ( vmManagedDeviceMap , type.getName ( ) ) ; }

Target:
public static boolean isVmDeviceExists ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > vmManagedDeviceMap , org.ovirt.engine.core.common.utils.VmDeviceType type ) { return ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.findVmDeviceByType ( vmManagedDeviceMap , type ) ) != null ; }
Source:
public void onResponseReceived ( com.google.gwt.http.client.Request request , com.google.gwt.http.client.Response response ) { java.lang.String tokenValue = response.getHeader ( "OVIRT-SSO-TOKEN" ) ; if ( tokenValue != null ) { org.ovirt.engine.ui.frontend.communication.SSOTokenChangeEvent.fire ( eventBus , tokenValue ) ; } callback.onResponseReceived ( request , response ) ; }

Target:
public void onResponseReceived ( com.google.gwt.http.client.Request request , com.google.gwt.http.client.Response response ) { java.lang.String tokenValue = org.ovirt.engine.ui.common.utils.HttpUtils.getHeader ( response , "OVIRT-SSO-TOKEN" ) ; if ( tokenValue != null ) { org.ovirt.engine.ui.frontend.communication.SSOTokenChangeEvent.fire ( eventBus , tokenValue ) ; } callback.onResponseReceived ( request , response ) ; }
Source:
public java.lang.Void runInTransaction ( ) { initImportClonedTemplateDisks ( ) ; AddVmTemplateToDb ( ) ; AddVmInterfaces ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { initImportClonedTemplateDisks ( ) ; addVmTemplateToDb ( ) ; addVmInterfaces ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public < P extends org.ovirt.engine.core.common.action.VdcActionParametersBase > org.ovirt.engine.core.bll.CommandBase < P > createCommand ( org.ovirt.engine.core.common.action.VdcActionType action , P parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( action , parameters ) ; }

Target:
public < P extends org.ovirt.engine.core.common.action.ActionParametersBase > org.ovirt.engine.core.bll.CommandBase < P > createCommand ( org.ovirt.engine.core.common.action.ActionType action , P parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( action , parameters ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getDiskDescription ( ) ; }

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.isShareable ( ) ? org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmDiskAttachPopupWidget.resources.shareableDiskIcon ( ) : null ; }