auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test2 ( ) throws java.lang.Exception { java.lang.String encoded = "eyJhcnRpZmFjdCI6IkVudmVsb3BlUEJFIiwiaXRlcmF0aW9ucyI6IjQwMDAiLCJzZWNyZXQiOiJNWE5nZVlwNUxSWFNRZmRMYzNDOHRVNWRINFZOODExb0czNjlrU0FLOHAwPSIsInNhbHQiOiJudXFaa2M3dlMrNUNkRzVQaEMvWE5ycDMzd0luTnNnZGZIVXlQRE5RS05rPSIsImFsZ29yaXRobSI6IlBCS0RGMldpdGhIbWFjU0hBMSIsInZlcnNpb24iOiIxIn0=" ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.uutils.crypto.EnvelopePBE.check ( encoded , "password" ) ) ; org.junit.Assert.assertFalse ( org.ovirt.engine.core.uutils.crypto.EnvelopePBE.check ( encoded , "bad" ) ) ; }

Target:
public void test2 ( ) throws java.lang.Exception { java.lang.String encoded = "eyJhcnRpZmFjdCI6IkVudmVsb3BlUEJFIiwiaXRlcmF0aW9ucyI6IjQwMDAiLCJzZWNyZXQiOiJNWE5nZVlwNUxSWFNRZmRMYzNDOHRVNWRINFZOODExb0czNjlrU0FLOHAwPSIsInNhbHQiOiJudXFaa2M3dlMrNUNkRzVQaEMvWE5ycDMzd0luTnNnZGZIVXlQRE5RS05rPSIsImFsZ29yaXRobSI6IlBCS0RGMldpdGhIbWFjU0hBMSIsInZlcnNpb24iOiIxIn0=" ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.uutils.crypto.EnvelopePBE.check ( encoded , "password" ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.uutils.crypto.EnvelopePBE.check ( encoded , "bad" ) ) ; }
Source:
private void logHostCannotBeProxy ( java.lang.String hostName ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "VdsName" , hostName ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_HOST_CANNOT_SERVE_AS_PROXY ) ; }

Target:
private void logHostCannotBeProxy ( java.lang.String hostName ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "VdsName" , hostName ) ; auditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_HOST_CANNOT_SERVE_AS_PROXY ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > monitorCommand ( java.lang.String vmId , java.lang.String monitorCommand ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getHostJobs ( java.lang.String job_type , java.util.List < java.lang.String > jobIds ) ;
Source:
public void getCustomValueFromEmptyMap ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final java.lang.String s = b.GetCustomValue ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; org.junit.Assert.assertEquals ( "" , s ) ; }

Target:
public void getCustomValueFromEmptyMap ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final java.lang.String s = b.getCustomValue ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; org.junit.Assert.assertEquals ( "" , s ) ; }
Source:
public void testGetWithNotExistingDiskId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , FixturesTool.STORAGE_DOAMIN_NFS2_1 ) ; org.junit.Assert.assertTrue ( "Disk should not exists in the UnregisteredDisks table" , unregisteredDisk.isEmpty ( ) ) ; }

Target:
public void testGetWithNotExistingDiskId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , FixturesTool.STORAGE_DOMAIN_NFS2_1 ) ; org.junit.Assert.assertTrue ( "Disk should not exists in the UnregisteredDisks table" , unregisteredDisk.isEmpty ( ) ) ; }
Source:
protected void doInit ( ) { oldNumaNodeIds = org.ovirt.engine.core.common.businessentities.Entities.getIds ( org.ovirt.engine.core.bll.numa.vm.SetVmNumaNodesCommand.getVmNumaNodesForValidation ( ) ) ; setVmNumaNodesForValidation ( org.ovirt.engine.core.bll.numa.vm.SetVmNumaNodesCommand.getParameters ( ) . getVmNumaNodeList ( ) ) ; }

Target:
protected void doInit ( ) { oldNumaNodeIds = org.ovirt.engine.core.bll.numa.vm.SetVmNumaNodesCommand.getVmNumaNodesForValidation ( ) . stream ( ) . map ( VmNumaNode :: getId ) . collect ( java.util.stream.Collectors.toList ( ) ) ; setVmNumaNodesForValidation ( org.ovirt.engine.core.bll.numa.vm.SetVmNumaNodesCommand.getParameters ( ) . getVmNumaNodeList ( ) ) ; }
Source:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; canDoActionFailed ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public boolean isVisible ( ) { if ( ( getDetailModel ( ) . getEntity ( ) ) == null ) { return false ; } return ! ( ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getDetailModel ( ) . getEntity ( ) ) ) . getIsGroup ( ) ) ; }

Target:
public boolean getIsAvailable ( ) { if ( ( getDetailModel ( ) . getEntity ( ) ) == null ) { return false ; } return ! ( ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getDetailModel ( ) . getEntity ( ) ) ) . getIsGroup ( ) ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeRemoveBrickForce ( java.lang.String volumeName , java.lang.String [ ] brickDirectories ) { try { return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( vdsServer.glusterVolumeRemoveBrickForce ( volumeName , brickDirectories ) ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeRemoveBrickForce ( java.lang.String volumeName , java.lang.String [ ] brickDirectories , int replicaCount ) { try { return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( vdsServer.glusterVolumeRemoveBrickForce ( volumeName , brickDirectories , replicaCount ) ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
protected org.ovirt.engine.api.common.invocation.Current getCurrent ( ) { return org.ovirt.engine.api.common.invocation.CurrentManager.get ( ) ; }

Target:
protected org.ovirt.engine.api.restapi.invocation.Current getCurrent ( ) { return org.ovirt.engine.api.restapi.invocation.CurrentManager.get ( ) ; }
Source:
protected java.lang.String renderNullSafe ( java.util.List < T > list ) { assert ( list.size ( ) ) == 1 ; return renderer.render ( list.get ( 0 ) ) ; }

Target:
protected java.lang.String renderNullSafe ( java.util.List < T > list ) { return list.isEmpty ( ) ? "" : renderer.render ( list.get ( 0 ) ) ; }
Source:
public void testParseEmpty ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "" , "" ) ; org.junit.Assert.assertNotNull ( ret ) ; org.junit.Assert.assertEquals ( 0 , ret.size ( ) ) ; }

Target:
public void testParseEmpty ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "" , "" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( ret ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , ret.size ( ) ) ; }
Source:
private org.ovirt.engine.core.utils.hostinstall.Credentials prepareCredentials ( java.lang.String rootPassword ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = new org.ovirt.engine.core.utils.hostinstall.Credentials ( ) ; creds.setPassword ( rootPassword ) ; creds.setUsername ( "root" ) ; return creds ; }

Target:
private org.ovirt.engine.core.utils.hostinstall.Credentials _prepareCredentials ( java.lang.String rootPassword ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = new org.ovirt.engine.core.utils.hostinstall.Credentials ( ) ; creds.setPassword ( rootPassword ) ; creds.setUsername ( "root" ) ; return creds ; }
Source:
public boolean hasBricks ( org.ovirt.engine.core.compat.Guid serverId ) { return ( getGlusterBrickDao ( ) . getGlusterVolumeBricksByServerId ( serverId ) . size ( ) ) > 0 ; }

Target:
public boolean hasBricks ( org.ovirt.engine.core.compat.Guid serverId ) { return ( glusterBrickDao.getGlusterVolumeBricksByServerId ( serverId ) . size ( ) ) > 0 ; }
Source:
private void initListBoxEditors ( ) { serverEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer < org.ovirt.engine.core.common.businessentities.VDS > ( ) { @ java.lang.Override public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return vds.getHostName ( ) ; } } ) ; }

Target:
private void initEditors ( ) { showBricksListEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; serverEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer < org.ovirt.engine.core.common.businessentities.VDS > ( ) { @ java.lang.Override public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return vds.getHostName ( ) ; } } ) ; }
Source:
public java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getMigrationProgressPercent ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getStatus ( ) ; }
Source:
protected org.ovirt.engine.api.model.VmPool populate ( org.ovirt.engine.api.model.VmPool pool , org.ovirt.engine.core.common.businessentities.vm_pools entity ) { return parent.populate ( pool , entity ) ; }

Target:
protected org.ovirt.engine.api.model.VmPool deprecatedPopulate ( org.ovirt.engine.api.model.VmPool pool , org.ovirt.engine.core.common.businessentities.vm_pools entity ) { return parent.deprecatedPopulate ( pool , entity ) ; }
Source:
private void updateLUNConnectionsInfo ( org.ovirt.engine.core.common.businessentities.LUNs lun ) { lun.setLunConnections ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( org.ovirt.engine.core.bll.AbstractDiskVmCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) . getAllForLun ( lun.getLUN_id ( ) ) ) ) ; }

Target:
private void updateLUNConnectionsInfo ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { lun.setLunConnections ( new java.util.ArrayList ( org.ovirt.engine.core.bll.AbstractDiskVmCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) . getAllForLun ( lun.getLUN_id ( ) ) ) ) ; }
Source:
private void createUpVds ( ) { org.mockito.Mockito.when ( vdsDao.getAllForStoragePoolAndStatus ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) , org.mockito.Matchers.eq ( VDSStatus.Up ) ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.VDS ( ) ) ) ; }

Target:
private void createUpVds ( ) { org.mockito.Mockito.when ( vdsDao.getAllForStoragePoolAndStatus ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) , org.mockito.ArgumentMatchers.eq ( VDSStatus.Up ) ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.VDS ( ) ) ) ; }
Source:
protected void doChangeDefautlHost ( org.ovirt.engine.core.compat.Guid hostGuid ) { }

Target:
protected void doChangeDefaultHost ( java.util.List < org.ovirt.engine.core.compat.Guid > hostGuid ) { }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Cluster object ) { if ( ( object.getGroupHostsAndVms ( ) ) == null ) { return "" ; } return ( object.getGroupHostsAndVms ( ) . getVms ( ) ) + "" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Cluster object ) { if ( ( object.getClusterHostsAndVms ( ) ) == null ) { return "" ; } return ( object.getClusterHostsAndVms ( ) . getVms ( ) ) + "" ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > lookupUsers ( ) { org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return getBackendCollection ( org.ovirt.engine.core.common.businessentities.aaa.DbUser.class , QueryType.GetAllDbUsers , queryParams ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > lookupUsers ( ) { org.ovirt.engine.core.common.queries.QueryParametersBase queryParams = new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return getBackendCollection ( org.ovirt.engine.core.common.businessentities.aaa.DbUser.class , QueryType.GetAllDbUsers , queryParams ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ArchitectureType Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( org.ovirt.engine.core.common.businessentities.ArchitectureType ) ( source ) ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . getAllForVolumeGroup ( storageDomain.getstorage ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . getAllForVolumeGroup ( storageDomain.getStorage ( ) ) ; }
Source:
public void testGetSuggestedDiskAliasNotNullAliasDisk ( ) { disk.setDiskAlias ( "someAlias" ) ; org.junit.Assert.assertEquals ( "a new alias was generated instead of returning the pre-difined one" , disk.getDiskAlias ( ) , org.ovirt.engine.core.bll.ImagesHandler.getSuggestedDiskAlias ( disk , org.ovirt.engine.core.bll.ImagesHandlerTest.prefix , 1 ) ) ; }

Target:
public void testGetSuggestedDiskAliasNotNullAliasDisk ( ) { disk.setDiskAlias ( "someAlias" ) ; org.junit.Assert.assertEquals ( "a new alias was generated instead of returning the pre-defined one" , disk.getDiskAlias ( ) , org.ovirt.engine.core.bll.ImagesHandler.getSuggestedDiskAlias ( disk , org.ovirt.engine.core.bll.ImagesHandlerTest.prefix , 1 ) ) ; }
Source:
protected java.lang.String getVmLockMessage ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_BEING_MIGRATED.name ( ) ) ; builder.append ( java.lang.String.format ( "$VmName %1$s" , org.ovirt.engine.core.bll.MigrateVmCommand.getVmName ( ) ) ) ; return builder.toString ( ) ; }

Target:
protected java.lang.String getLockMessage ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_BEING_MIGRATED.name ( ) ) ; builder.append ( java.lang.String.format ( "$VmName %1$s" , org.ovirt.engine.core.bll.MigrateVmCommand.getVmName ( ) ) ) ; return builder.toString ( ) ; }
Source:
public void setCandidates ( java.util.List < org.ovirt.engine.core.common.businessentities.storage_domains > value ) { if ( ( candidates ) != value ) { candidates = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Candidates" ) ) ; getCandidatesList ( ) . setItems ( ToEntityModelList ( candidates ) ) ; } }

Target:
public void setCandidates ( java.util.List < org.ovirt.engine.core.common.businessentities.storage_domains > value ) { if ( ( candidates ) != value ) { candidates = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Candidates" ) ) ; getCandidatesList ( ) . setItems ( ToEntityModelList ( candidates ) ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType getDiskType ( ) { return getDisk ( ) . getDiskStorageType ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType getDiskType ( ) { return getDisk ( ) . getDiskStorageType ( ) ; }
Source:
public void setUpdateWatchdog ( boolean updateWatchdog ) { this . updateWatchdog = updateWatchdog ; }

Target:
public void setWatchdog ( org.ovirt.engine.core.common.businessentities.VmWatchdog watchdog ) { this . watchdog.setValue ( watchdog ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.createFenceExclusiveLocksMap ( getProblematicVdsId ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return hostLocking.getPowerManagementLock ( getProblematicVdsId ( ) ) ; }
Source:
public void testGet ( ) { java.lang.String result = dao.get ( FixturesTool.PROVIDER_BINDING_HOST_ID_HOST_ID , FixturesTool.PROVIDER_BINDING_HOST_ID_PLUGIN_TYPE ) ; org.junit.Assert.assertEquals ( FixturesTool.PROVIDER_BINDING_HOST_PLUGIN_ID , result ) ; }

Target:
public void testGet ( ) { java.lang.String result = dao.get ( FixturesTool.PROVIDER_BINDING_HOST_ID_HOST_ID , FixturesTool.PROVIDER_BINDING_HOST_ID_PLUGIN_TYPE ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.PROVIDER_BINDING_HOST_PLUGIN_ID , result ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmMonitorCommandVDSCommand.getBroker ( ) . monitorCommand ( mVmId.toString ( ) , mMonitorCommand ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmMonitorCommandVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmMonitorCommandVDSCommand.getBroker ( ) . monitorCommand ( mVmId.toString ( ) , mMonitorCommand ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmMonitorCommandVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; spice.setWANDisableEffects ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > ( ) ) ; spice.setWanOptionsEnabled ( false ) ; spice.setSpiceProxyEnabled ( isSpiceProxyDefined ( ) ) ; }

Target:
protected java.lang.String clientBrowserType ( ) { return clientAgentType.browser ; }
Source:
public void init ( javax.servlet.ServletConfig config ) throws javax.servlet.ServletException { ssoContext = org.ovirt.engine.core.sso.utils.SSOUtils.getSsoContext ( config.getServletContext ( ) ) ; }

Target:
public void init ( javax.servlet.ServletConfig config ) throws javax.servlet.ServletException { ssoContext = org.ovirt.engine.core.sso.utils.SsoUtils.getSsoContext ( config.getServletContext ( ) ) ; }
Source:
protected java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( object ) ) . getcreation_date ( ) : null ; }

Target:
protected java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( object ) ) . getCreationDate ( ) : null ; }
Source:
protected org.ovirt.engine.core.dao.ImageStorageDomainMapDao getImageStorageDomainMapDao ( ) { return org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getDbFacade ( ) . getImageStorageDomainMapDao ( ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator getDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk ) ; }
Source:
public void testGetAllNetworkLabelsForDataCenter ( ) { java.util.Set < java.lang.String > result = dao.getAllNetworkLabelsForDataCenter ( FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllNetworkLabelsForDataCenter ( ) { java.util.Set < java.lang.String > result = dao.getAllNetworkLabelsForDataCenter ( FixturesTool.DATA_CENTER ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public static org.ovirt.engine.api.model.NetworkStatus map ( org.ovirt.engine.api.model.NetworkStatus modelStatus , org.ovirt.engine.api.model.NetworkStatus template ) { if ( modelStatus == null ) { return null ; } else { switch ( modelStatus ) { case NON_OPERATIONAL : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.network.NetworkStatus ; case OPERATIONAL : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.network.NetworkStatus ; default : return null ; } } }

Target:
private static org.ovirt.engine.api.model.NetworkStatus mapNetworkStatus ( org.ovirt.engine.api.model.NetworkStatus status ) { switch ( status ) { case NON_OPERATIONAL : return org.ovirt.engine.api.model.NetworkStatus.NON_OPERATIONAL ; case OPERATIONAL : return org.ovirt.engine.api.model.NetworkStatus.OPERATIONAL ; default : return null ; } }
Source:
public int getMinimumRam ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.DisplayType > > getGraphicsAndDisplays ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { setReportBaseUrl ( ( ( java.lang.String ) ( returnValue ) ) ) ; }

Target:
public boolean execute ( ) { if ( ( ( retryCount ) > ( org.ovirt.engine.ui.uicommonweb.ReportInit.MAX_RETRY_COUNTS ) ) || ( reportsWebappDeployed ) ) { scheduledStatusCheckInProgress = false ; return false ; } ( retryCount ) ++ ; checkReportsWebAppStatus ( ) ; return true ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.pm.FenceAgent agent = org.ovirt.engine.core.bll.UpdateFenceAgentCommand.getParameters ( ) . getAgent ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getFenceAgentDao ( ) . update ( agent ) ; org.ovirt.engine.core.bll.UpdateFenceAgentCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.pm.FenceAgent agent = org.ovirt.engine.core.bll.UpdateFenceAgentCommand.getParameters ( ) . getAgent ( ) ; fenceAgentDao.update ( agent ) ; org.ovirt.engine.core.bll.UpdateFenceAgentCommand.setSucceeded ( true ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . dataCenterPermissionSubTabLabel ( ) , 4 , ginjector.getSubTabDataCenterPermissionModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.permissions , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterPermissionSubTabLabel ( ) , 5 , modelProvider ) ; }
Source:
public void checkEmptyStringNotAllowedFromConstructor ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , false ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyNotAllowed , validationResult ) ; }

Target:
public void checkEmptyStringNotAllowedFromConstructor ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , false ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "" ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyNotAllowed , validationResult ) ; }
Source:
public void checkValidIpConfigurationStaticBootProtocol ( ) { initIpConfigurationDetails ( Ipv4BootProtocol.STATIC_IP , true , true ) ; org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , actual ) ; }

Target:
public void checkValidIpv4ConfigurationStaticBootProtocol ( ) { initIpv4ConfigurationDetails ( Ipv4BootProtocol.STATIC_IP , true , true ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void updateDocumentationPathFile ( ) { fetchFile ( ( ( getDocumentationBaseURL ( ) ) + "DocumentationPath.csv" ) , documentationFileFetchedEvent ) ; }

Target:
protected void onUpdateDocumentationBaseURL ( ) { fetchFile ( ( ( getDocumentationBaseURL ( ) ) + "DocumentationPath.csv" ) , documentationFileFetchedEvent ) ; }
Source:
public void execute ( ) { doGridTimerExecute ( ) ; }

Target:
public void execute ( ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.logger.fine ( ( ( this . getClass ( ) . getName ( ) ) + ": Executing search" ) ) ; syncSearch ( ) ; }
Source:
public void Initialize ( ) { super . Initialize ( ) ; StartProgress ( null ) ; initMessages ( ) ; }

Target:
public void initialize ( ) { super . initialize ( ) ; startProgress ( null ) ; initMessages ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > ( ) ; } return source ; }
Source:
public static void updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDevice ( vmBase ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.updateBootOrderInBatch ( devices ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getRngDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.RNG ) ; }
Source:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_CPUS_PINNED ) ; }

Target:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( EngineMessage.CLUSTER_UPGRADE_DETAIL_VM_CPUS_PINNED.name ( ) ) ; }
Source:
public static void GetGlusterHosts ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String hostAddress , java.lang.String rootPassword , java.lang.String fingerprint ) { org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters ( hostAddress , rootPassword ) ; parameters.setFingerprint ( fingerprint ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterServersForImport , parameters , aQuery ) ; }

Target:
public static void getGlusterHosts ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String hostAddress , java.lang.String rootPassword , java.lang.String fingerprint ) { org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters ( hostAddress , rootPassword ) ; parameters.setFingerprint ( fingerprint ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterServersForImport , parameters , aQuery ) ; }
Source:
public void canDoActionSucceedsOnVolumeWithRemoveBricksTaskCompleted ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskCompleted , getBricks ( volumeWithRemoveBricksTaskCompleted , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceedsOnVolumeWithRemoveBricksTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTask , getBricks ( volumeWithRemoveBricksTask ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
private boolean isPoolUp ( ) { return validate ( new org.ovirt.engine.core.bll.validator.storage.StoragePoolValidator ( org.ovirt.engine.core.bll.storage.domain.UpdateStorageDomainCommand.getStoragePool ( ) ) . isUp ( ) ) ; }

Target:
private boolean isPoolUp ( ) { return validate ( new org.ovirt.engine.core.bll.validator.storage.StoragePoolValidator ( org.ovirt.engine.core.bll.storage.domain.UpdateStorageDomainCommand.getStoragePool ( ) ) . existsAndUp ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getQuotaDAO ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getQuotaDao ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup setUpVDSGroup ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = control.createMock ( org.ovirt.engine.core.common.businessentities.VDSGroup.class ) ; org.easymock.classextension.EasyMock.expect ( cluster.getId ( ) ) . andReturn ( id ) . anyTimes ( ) ; return cluster ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDSGroup setUpVDSGroup ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = control.createMock ( org.ovirt.engine.core.common.businessentities.VDSGroup.class ) ; org.easymock.EasyMock.expect ( cluster.getId ( ) ) . andReturn ( id ) . anyTimes ( ) ; return cluster ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.ExternalOperatingSystem > getOperationSystems ( ) { org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.OPERATION_SYSTEM_QUERY ) ; return runOperationSystemMethod ( method ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAll ( ) { return runHostListMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.ALL_HOSTS_QUERY ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithOlderVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_0 ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.STORAGE_POOL_ID ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithOlderVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_0 ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.STORAGE_POOL_ID ) ; return group ; }
Source:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable ) ; }

Target:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { auditLogDirector.log ( auditLogable , logType ) ; }
Source:
public static java.util.Set < java.lang.String > getPresetDisplayStrings ( ) { return org.ovirt.engine.ui.uicommonweb.models.providers.NeutronPluginTranslator.pluginForDisplay.keySet ( ) ; }

Target:
public static java.util.List < java.lang.String > getPresetDisplayStrings ( ) { return org.ovirt.engine.ui.uicommonweb.models.providers.NeutronPluginTranslator.displayStrings ; }
Source:
public static java.util.List Concat ( java.util.List ... lists ) { java.util.List result = new java.util.ArrayList < java.lang.Object > ( ) ; for ( java.util.List list : lists ) { for ( java.lang.Object item : list ) { result.add ( item ) ; } } return result ; }

Target:
public static java.util.List concat ( java.util.List ... lists ) { java.util.List result = new java.util.ArrayList < java.lang.Object > ( ) ; for ( java.util.List list : lists ) { for ( java.lang.Object item : list ) { result.add ( item ) ; } } return result ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup mockVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setvds_group_id ( vdsGroupId ) ; group.setcompatibility_version ( new org.ovirt.engine.core.compat.Version ( ) ) ; group.setstorage_pool_id ( storagePoolId ) ; return group ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDSGroup mockVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setvds_group_id ( vdsGroupId ) ; group.setcompatibility_version ( new org.ovirt.engine.core.compat.Version ( ) ) ; group.setStoragePoolId ( storagePoolId ) ; return group ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel determineAdditionalConsoleModelForVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.IsWindowsOsType ( vm.getVmOs ( ) ) ) { return cachedConsoleModels.get ( vm.getId ( ) ) . get ( org.ovirt.engine.ui.uicommonweb.models.ConsoleModelsCache.RDP_INDEX ) ; } return null ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel determineAdditionalConsoleModelForVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( vm.getVmOs ( ) ) ) { return cachedConsoleModels.get ( vm.getId ( ) ) . get ( org.ovirt.engine.ui.uicommonweb.models.ConsoleModelsCache.RDP_INDEX ) ; } return null ; }
Source:
private void mockStatistics ( ) { org.mockito.Mockito.when ( vmStatisticsDao.get ( ( ( org.ovirt.engine.core.compat.Guid ) ( org.mockito.Matchers.anyObject ( ) ) ) ) ) . thenReturn ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VmStatistics.class ) ) ; }

Target:
private void mockStatistics ( ) { org.mockito.Mockito.when ( vmStatisticsDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VmStatistics.class ) ) ; }
Source:
protected boolean ValidateTag ( java.lang.String tagName ) { boolean retValue = true ; org.ovirt.engine.core.common.businessentities.Tags tag = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getByName ( tagName ) ; if ( tag == null ) { addCanDoActionMessage ( VdcBllMessages.EN_UNKNOWN_TAG_NAME ) ; retValue = false ; } return retValue ; }

Target:
protected boolean ValidateTag ( java.lang.String tagName ) { boolean retValue = true ; org.ovirt.engine.core.common.businessentities.Tags tag = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getByName ( tagName ) ; if ( tag == null ) { addCanDoActionMessage ( EngineMessage.EN_UNKNOWN_TAG_NAME ) ; retValue = false ; } return retValue ; }
Source:
public java.lang.String getManagmentIp ( ) { return this . mVdsStatic.getManagmentIp ( ) ; }

Target:
public void setPort ( int value ) { this . mVdsStatic.setPort ( value ) ; }
Source:
public void testGetRootTag ( ) { org.ovirt.engine.core.common.businessentities.Tags tags = tagsDirector.GetRootTag ( ) ; org.junit.Assert.assertNotNull ( tags ) ; }

Target:
public void testGetRootTag ( ) { org.ovirt.engine.core.common.businessentities.Tags tags = tagsDirector.getRootTag ( ) ; org.junit.Assert.assertNotNull ( tags ) ; }
Source:
public java.lang.Integer getDisplay ( ) { return this . display ; }

Target:
public void setGraphicsInfos ( java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsInfo > graphicsInfos ) { this . graphicsInfos = graphicsInfos ; }
Source:
private void assertValidationFailure ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.EngineMessage engineMessage ) { org.junit.Assert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage ) ) ; }

Target:
private void assertValidationFailure ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.EngineMessage engineMessage ) { org.hamcrest.MatcherAssert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage ) ) ; }
Source:
public boolean isManagedVm ( ) { return ( ! ( isHostedEngine ( ) ) ) && ( ! ( isExternalVm ( ) ) ) ; }

Target:
public boolean isManagedVm ( ) { return ( ! ( ( OriginType.HOSTED_ENGINE ) == ( getOrigin ( ) ) ) ) && ( ! ( isExternalVm ( ) ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveDisk , new org.ovirt.engine.core.common.action.RemoveDiskParameters ( guid , asGuid ( storageDomainId ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { return getDelegate ( ) . remove ( ) ; }
Source:
public java.lang.Integer getvm_pid ( ) { return this . vm_pid ; }

Target:
public void setVmHost ( java.lang.String value ) { this . vmHost = value ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return constants.rebootVm ( ) ; }

Target:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.takeVmLabel ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.runVmLabel ( ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getWatchdogs ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.WATCHDOG ) ; }

Target:
public boolean hasGraphicsDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return ! ( getGraphicsDevices ( vmId , type ) . isEmpty ( ) ) ; }
Source:
public void validateGenerateVmNameWithoutMask1 ( ) { junit.framework.Assert.assertEquals ( "mypool-1" , org.ovirt.engine.core.utils.NameForVmInPoolGenerator.generateVmName ( "mypool" , 1 ) ) ; }

Target:
public void validateGenerateVmNameWithoutMask1 ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "mypool" ) ; junit.framework.Assert.assertEquals ( "mypool-1" , generator.generateVmName ( ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( EXTERNAL_IDS [ index ] . toHex ( ) , model.getExternalId ( ) ) ; assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
private void setUpMockUser ( ) { userID = new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; user = org.ovirt.engine.core.bll.AbstractUserQueryTest.mock ( org.ovirt.engine.core.common.users.VdcUser.class ) ; org.mockito.Mockito.when ( user.getUserId ( ) ) . thenReturn ( userID ) ; }

Target:
private void setUpMockUser ( ) { userID = new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; user = org.ovirt.engine.core.bll.AbstractUserQueryTest.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ; org.mockito.Mockito.when ( user.getId ( ) ) . thenReturn ( userID ) ; }
Source:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.assertj.core.api.Assertions.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) ) . contains ( UPGRADE_ERROR.VM_CPUS_PINNED ) ; }

Target:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_NOT_MIGRATABLE ) ; }
Source:
boolean StorageDomainRemoved ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) ;

Target:
boolean storageDomainRemoved ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) ;
Source:
public void bufferReset_sizeLowerBound ( ) { tested.reset ( 1 , ( - 1 ) ) ; }

Target:
public void bufferReset_sizeLowerBound ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> tested.reset ( 1 , ( - 1 ) ) ) ; }
Source:
public void setPmOptionsMap ( java.util.HashMap < java.lang.String , java.lang.String > value ) { mVdsStatic.setPmOptionsMap ( value ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > getNumaNodeList ( ) { return mVdsDynamic.getNumaNodeList ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notLabeled ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) . when ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( network ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notLabeled ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) . when ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( network ) ) ; }
Source:
public void hasDomains ( ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ) ) ; canDoActionFailed ( EngineMessage.ERROR_CANNOT_CHANGE_STORAGE_POOL_TYPE_WITH_DOMAINS ) ; }

Target:
public void hasDomains ( ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ERROR_CANNOT_CHANGE_STORAGE_POOL_TYPE_WITH_DOMAINS ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; getSearchCommand ( ) . Execute ( ) ; UpdateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . Execute ( ) ; UpdateActionAvailability ( ) ; }
Source:
public void logVolumeMessage ( final org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume , final org.ovirt.engine.core.common.AuditLogType logType ) { logAuditMessage ( volume.getClusterId ( ) , volume , null , logType , java.util.Collections.emptyMap ( ) ) ; }

Target:
public void logVolumeMessage ( final org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume , final org.ovirt.engine.core.common.AuditLogType logType ) { logAuditMessage ( volume.getClusterId ( ) , volume.getClusterName ( ) , volume , null , logType , java.util.Collections.emptyMap ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryImageParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.PostZeroHandler.fixParametersWithPostZero ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 2 ) , isPostZero ( ) , false ) ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryImageParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.domain.PostZeroHandler.fixParametersWithPostZero ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 2 ) , isPostZero ( ) , false ) ) ; }
Source:
public void nonInternalMaintenanceAllowed ( ) { testExecution ( StorageDomainStatus.Maintenance ) ; canDoActionSucceeds ( ) ; noIllegalStatusMessage ( ) ; }

Target:
public void internalActionAllowed ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { testInternalExecution ( status ) ; testActionAllowed ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }

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