auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setmCurrentIrsHost ( java.lang.String value ) { privatemCurrentIrsHost = value ; }

Target:
public void Init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getport ( ) ) ; privatemCurrentIrsHost = vds.gethost_name ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSType getvds_type ( ) { return this . mVdsStatic.getvds_type ( ) ; }

Target:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { this . mVdsStatic.setVdsGroupId ( value ) ; }
Source:
public static org.ovirt.engine.api.model.NicStatus map ( org.ovirt.engine.core.common.businessentities.network.InterfaceStatus interfaceStatus , org.ovirt.engine.api.model.NicStatus template ) { if ( interfaceStatus != null ) { switch ( interfaceStatus ) { case Up : return org.ovirt.engine.api.model.NicStatus.UP ; case Down : return org.ovirt.engine.api.model.NicStatus.DOWN ; default : return null ; } } return null ; }

Target:
public static org.ovirt.engine.api.model.NicStatus map ( org.ovirt.engine.core.common.businessentities.network.InterfaceStatus interfaceStatus , org.ovirt.engine.api.model.NicStatus template ) { if ( interfaceStatus != null ) { switch ( interfaceStatus ) { case UP : return org.ovirt.engine.api.model.NicStatus.UP ; case DOWN : return org.ovirt.engine.api.model.NicStatus.DOWN ; default : return null ; } } return null ; }
Source:
public org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network network ) { network.setCluster ( new org.ovirt.engine.api.model.Cluster ( ) ) ; network.getCluster ( ) . setId ( clusterId ) ; return network ; }

Target:
public org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network network ) { network.setCluster ( new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; network.getCluster ( ) . setId ( clusterId ) ; return network ; }
Source:
public static void GetDefaultPmProxyPreferences ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.FenceProxyDefaultPreferences , org.ovirt.engine.core.common.config.Config.DefaultConfigurationVersion ) , query ) ; }

Target:
public static void GetDefaultPmProxyPreferences ( org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.FenceProxyDefaultPreferences , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) , query ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getBroker ( ) . getHardwareInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.UpdateHardwareSystemInformation ( infoReturn.mInfo , org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getVds ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getBroker ( ) . getHardwareInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.UpdateHardwareSystemInformation ( infoReturn.mInfo , org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getVds ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNameValid ( ) { return ( ! ( org.ovirt.engine.core.common.FeatureSupported.networkLinking ( version ) ) ) && ( ( nic.getNetworkName ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult emptyNetworkValid ( ) { return ( ! ( org.ovirt.engine.core.common.FeatureSupported.networkLinking ( version ) ) ) && ( ( nic.getVnicProfileId ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( 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 ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ) ; }
Source:
private void logHostCannotBeProxy ( java.lang.String hostName ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; logable.addCustomValue ( "VdsName" , hostName ) ; auditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_HOST_CANNOT_SERVE_AS_PROXY ) ; }

Target:
private void logHostCannotBeProxy ( org.ovirt.engine.core.common.businessentities.VDS host ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl ( ) ; logable.setVdsName ( host.getName ( ) ) ; logable.setVdsId ( host.getId ( ) ) ; logable.setUserName ( java.lang.String.format ( "%s@%s" , org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.getUser ( ) . getLoginName ( ) , org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.getUser ( ) . getDomain ( ) ) ) ; auditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_HOST_CANNOT_SERVE_AS_PROXY ) ; }
Source:
public java.lang.Boolean getkvm_enable ( ) { return this . mVmDynamic.getkvm_enable ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DisplayType getDisplayType ( ) { return this . vmDynamic.getdisplay_type ( ) ; }
Source:
protected boolean canDoAction ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__NETWORK ) ; return org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.CommonNetworkValidation ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) , org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; }
Source:
public static org.ovirt.engine.core.utils.transaction.Transaction suspend ( ) { try { org.ovirt.engine.core.utils.transaction.TransactionManager tm = org.ovirt.engine.core.utils.transaction.TransactionSupport.findTransactionManager ( ) ; return tm.suspend ( ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( "Unable to suspend transaction" , e ) ; } }

Target:
public static javax.transaction.Transaction suspend ( ) { try { javax.transaction.TransactionManager tm = org.ovirt.engine.core.utils.transaction.TransactionSupport.findTransactionManager ( ) ; return tm.suspend ( ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( "Unable to suspend transaction" , e ) ; } }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; if ( ( getSelectedItem ( ) ) != null ) { updateAlerts ( ) ; } }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; if ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.getSelectedItem ( ) ) != null ) { updateAlerts ( ) ; } }
Source:
void addStyle ( ) { isTemplatePublicEditor.setContentWidgetStyleName ( style.editorLabel ( ) ) ; }

Target:
void addStyle ( ) { isTemplatePublicEditor.setContentWidgetStyleName ( style.editorLabel ( ) ) ; copyVmPermissions.setContentWidgetStyleName ( style.editorLabel ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.queries.CommandVersionsInfo getCommandVersionsInfo ( org.ovirt.engine.core.common.action.VdcActionType vdcActionType ) { if ( ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedCommandsCompatibilityVersions ) == null ) { return null ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedCommandsCompatibilityVersions.get ( vdcActionType ) ; }

Target:
public org.ovirt.engine.core.common.queries.CommandVersionsInfo getCommandVersionsInfo ( org.ovirt.engine.core.common.action.VdcActionType vdcActionType ) { if ( ( cachedCommandsCompatibilityVersions ) == null ) { return null ; } return cachedCommandsCompatibilityVersions.get ( vdcActionType ) ; }
Source:
protected void executeQueryCommand ( ) { log.debug ( "Start checking connection to db" ) ; org.ovirt.engine.core.bll.CheckDBConnectionQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.CheckDBConnectionQuery.getDbFacade ( ) . CheckDBConnection ( ) ) ; log.debug ( "Completed checking connection to db" ) ; }

Target:
protected void executeQueryCommand ( ) { log.debug ( "Start checking connection to db" ) ; org.ovirt.engine.core.bll.CheckDBConnectionQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.CheckDBConnectionQuery.getDbFacade ( ) . checkDBConnection ( ) ) ; log.debug ( "Completed checking connection to db" ) ; }
Source:
public void removeSubnet ( java.lang.String id ) { try { getClient ( ) . subnets ( ) . delete ( id ) . execute ( ) ; } catch ( java.lang.RuntimeException e ) { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.PROVIDER_FAILURE , e ) ; } }

Target:
public void removeSubnet ( java.lang.String id ) { try { getClient ( ) . subnets ( ) . delete ( id ) . execute ( ) ; } catch ( java.lang.RuntimeException e ) { throw new org.ovirt.engine.core.common.errors.EngineException ( org.ovirt.engine.core.common.errors.EngineError.PROVIDER_FAILURE , e ) ; } }
Source:
public void StartProgress ( java.lang.String operation ) { org.ovirt.engine.ui.uicommonweb.models.common.ProgressModel tempVar = new org.ovirt.engine.ui.uicommonweb.models.common.ProgressModel ( ) ; tempVar.setCurrentOperation ( operation ) ; setProgress ( tempVar ) ; }

Target:
public void startProgress ( java.lang.String operation ) { org.ovirt.engine.ui.uicommonweb.models.common.ProgressModel tempVar = new org.ovirt.engine.ui.uicommonweb.models.common.ProgressModel ( ) ; tempVar.setCurrentOperation ( operation ) ; setProgress ( tempVar ) ; }
Source:
public static java.lang.Double percent2bytes ( java.lang.Integer speedValueInMegaBits , java.lang.Double rxTxValueInPrecent ) { if ( ( speedValueInMegaBits == null ) || ( rxTxValueInPrecent == null ) ) { return 0.0 ; } return org.ovirt.engine.api.restapi.util.RxTxCalculator.megaBitToByte ( ( ( speedValueInMegaBits * rxTxValueInPrecent ) / 100 ) ) ; }

Target:
private static double percent2megaBits ( java.lang.Integer speedValueInMegaBits , java.lang.Double rxTxValueInPrecent ) { if ( ( speedValueInMegaBits == null ) || ( rxTxValueInPrecent == null ) ) { return 0.0 ; } return ( speedValueInMegaBits * rxTxValueInPrecent ) / 100 ; }
Source:
public void interfaceBasedOn ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( generateVlanName ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }

Target:
public void interfaceBasedOn ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createVlan ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }
Source:
public static native boolean isArray ( com.google.gwt.core.client.JavaScriptObject obj ) ;

Target:
private static native void pushString ( com.google.gwt.core.client.JavaScriptObject arrayObj , java.lang.String value ) ;
Source:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( boolean glusterEnabled ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( clusterId ) ; cluster.setVirtService ( false ) ; cluster.setGlusterService ( glusterEnabled ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( boolean glusterEnabled ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommandTest.clusterId ) ; cluster.setVirtService ( false ) ; cluster.setGlusterService ( glusterEnabled ) ; return cluster ; }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmResource ( null , "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testIncompleteExport ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; verifyIncompleteException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.export ( new org.ovirt.engine.api.model.Action ( ) ) ) , "Action" , "export" , "storageDomain.id|name" ) ; }
Source:
public void testGetByNameForUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( existingVdsGroup.getName ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameForUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.getByName ( existingCluster.getName ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void canDoActionFailsPoolSpecifiedDoesNotExist ( ) { params.setStoragePoolId ( spId ) ; org.mockito.Mockito.when ( spDao.get ( spId ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }

Target:
public void canDoActionFailsPoolSpecifiedDoesNotExist ( ) { params.setStoragePoolId ( spId ) ; org.mockito.Mockito.when ( spDao.get ( spId ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }
Source:
public void execute ( ) { determineButtonVisiblity ( ) ; positionLeftCollapseButton ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { toggleVisibleWestPanel ( ) ; }
Source:
protected void cancel ( ) { getCancelCommand ( ) . Execute ( ) ; }

Target:
protected void cancel ( ) { getCancelCommand ( ) . execute ( ) ; }
Source:
public void setup ( org.ovirt.engine.core.utils.log.Log mock , java.lang.String message , java.lang.Object args ) { org.mockito.Mockito.when ( mock.isErrorEnabled ( ) ) . thenReturn ( true ) ; }

Target:
public void setup ( org.slf4j.Logger mock , java.lang.String message , java.lang.Object ... args ) { org.mockito.Mockito.when ( mock.isErrorEnabled ( ) ) . thenReturn ( true ) ; }
Source:
void clearSessionId ( ) { clientStorage.removeLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY ) ; }

Target:
void getSessionId ( final org.ovirt.engine.ui.frontend.communication.StorageCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . retrieveFromHttpSession ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , callback ) ; }
Source:
public void trace ( java.lang.Object arg0 ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( arg0 ) ) ; } }

Target:
public boolean isFatalEnabled ( ) { return log.isErrorEnabled ( ) ; }
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 ; }
Source:
protected org.ovirt.engine.core.common.scheduling.AffinityGroup getEntity ( ) { return getEntity ( org.ovirt.engine.core.common.scheduling.AffinityGroup.class , VdcQueryType.GetAffinityGroupById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( affinityGroupId ) , affinityGroupId.toString ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.scheduling.AffinityGroup getEntity ( ) { return getEntity ( org.ovirt.engine.core.common.scheduling.AffinityGroup.class , QueryType.GetAffinityGroupById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( affinityGroupId ) , affinityGroupId.toString ( ) ) ; }
Source:
public static < 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 , null ) ; }

Target:
public static < P extends org.ovirt.engine.core.common.action.VdcActionParametersBase > 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 , null ) ; }
Source:
private java.lang.String resolveSystemHostName ( ) { try { return java.net.InetAddress.getLocalHost ( ) . getHostName ( ) ; } catch ( java.net.UnknownHostException e ) { org.ovirt.engine.core.bll.host.provider.foreman.SystemProviderFinder.log.error ( "Failed to resolve hostname for the engine server" , e ) ; return null ; } }

Target:
private java.lang.String resolveEngineHostName ( ) { try { return java.net.InetAddress.getLocalHost ( ) . getHostName ( ) ; } catch ( java.net.UnknownHostException e ) { org.ovirt.engine.core.bll.host.provider.foreman.EngineForemanProviderFinder.log.error ( "Failed to resolve hostname for the engine server" , e ) ; return null ; } }
Source:
protected void ExecuteVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeFloppyVDSCommand.getBroker ( ) . changeFloppy ( mVmId.toString ( ) , mIsoLocation ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeFloppyVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getStatus ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeFloppyVDSCommand.getBroker ( ) . changeFloppy ( mVmId.toString ( ) , mIsoLocation ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeFloppyVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getStatus ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage.LUN_storage_server_connection_map_id getId ( ) { return this . id ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMapId getId ( ) { return this . id ; }
Source:
public void testGetBynameAndVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getoption_name ( ) , existingOption.getversion ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingOption , result ) ; }

Target:
public void testGetBynameAndVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getoption_name ( ) , existingOption.getversion ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingOption , result ) ; }
Source:
public void testLongMessage ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { java.lang.String message = "Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms." + ( ( ( ( "The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, http://www.python.org/, and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation." + "The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). Python is also suitable as an extension language for customizable applications." ) + "This tutorial introduces the reader informally to the basic concepts and features of the Python language and system. It helps to have a Python interpreter handy for hands-on experience, but all examples are self-contained, so the tutorial can be read off-line as well." ) + "For a description of standard objects and modules, see The Python Standard Library. The Python Language Reference gives a more formal definition of the language. To write extensions in C or C++, read Extending and Embedding the Python Interpreter and Python/C API Reference Manual. There are also several books covering Python in depth." ) + "This tutorial does not attempt to be comprehensive and cover every single feature, or even every commonly used feature. Instead, it introduces many of Python’s most noteworthy features, and will give you a good idea of the language’s flavor and style. After reading it, you will be able to read and write Python modules and programs, and you will be ready to learn more about the various Python library modules described in The Python Standard Library." ) ; testEchoMessage ( message , 61627 ) ; }

Target:
public void testLongMessage ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { testEchoMessage ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.SSLStompClientTestCase.generateRandomMessage ( 524288 ) , 61627 ) ; }
Source:
protected void revealInParent ( ) { com.gwtplatform.mvp.client.proxy.RevealContentEvent.fire ( this , TemplateSubTabPanelPresenter.TYPE_SetTabContent , this ) ; }

Target:
protected com.gwtplatform.mvp.client.proxy.PlaceRequest getMainTabRequest ( ) { return org.ovirt.engine.ui.common.place.PlaceRequestFactory.get ( ApplicationPlaces.templateMainTabPlace ) ; }
Source:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return diskImage.getimage_group_id ( ) . getValue ( ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult templateExists ( ) { return ( org.ovirt.engine.core.bll.VmTemplateCommand.getVmTemplate ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) : ValidationResult.VALID ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookAdd ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum , java.lang.Boolean enabled ) ;
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getnetwork_id ( ) ) ; } return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getNetworkId ( ) ) ; } return network ; }
Source:
protected boolean checkStorageDomainSharedStatusNotLocked ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean returnValue = ( storageDomain != null ) && ( ( storageDomain.getstorage_domain_shared_status ( ) ) != ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus.Locked ) ) ; if ( ! returnValue ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL ) ; } return returnValue ; }

Target:
protected boolean checkStorageDomainSharedStatusNotLocked ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean returnValue = ( storageDomain != null ) && ( ( storageDomain.getStorageDomainSharedStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus.Locked ) ) ; if ( ! returnValue ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL ) ; } return returnValue ; }
Source:
protected void initializeStorageDomain ( ) { org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getStorageDomain ( ) . setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }

Target:
protected void initializeStorageDomain ( ) { org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getStorageDomain ( ) . setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; updateStorageDomainWipeAfterDelete ( ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { initiateResumeUploadStartTransfer ( result ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { initiateResumeUploadCheckStatus ( result ) ; }
Source:
private void updateGuestAgentInterfacesChanges ( org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic , java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > vmGuestAgentInterfaces , int guestAgentNicHash ) { vmDynamic.setGuestAgentNicsHash ( guestAgentNicHash ) ; vmDynamic.setVmIp ( extractVmIpsFromGuestAgentInterfaces ( vmGuestAgentInterfaces ) ) ; }

Target:
private void updateGuestAgentInterfacesChanges ( org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic , java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > vmGuestAgentInterfaces , int guestAgentNicHash ) { vmDynamic.setGuestAgentNicsHash ( guestAgentNicHash ) ; vmDynamic.setVmIp ( extractVmIpsFromGuestAgentInterfaces ( vmGuestAgentInterfaces ) ) ; vmsMonitoring.addVmGuestAgentNics ( dbVm.getId ( ) , vmGuestAgentInterfaces ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Integer object ) { return object.toString ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Integer object ) { return ( object.toString ( ) ) + "%" ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN ) ? ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( object ) ) . getLun ( ) . getLUN_id ( ) : null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN ) ? ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( object ) ) . getLun ( ) . getLUNId ( ) : null ; }
Source:
private void mockVmDaoGetVm ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vm ) ; }

Target:
private void mockSameNameQuery ( boolean result ) { org.mockito.Mockito.doReturn ( result ) . when ( command ) . isVmWithSameNameExists ( org.mockito.ArgumentMatchers.anyString ( ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }
Source:
public static java.lang.String LocalDateToUtcDateString ( java.util.Date date ) { return org.ovirt.engine.core.utils.ovf.OvfParser.getDateFormat ( org.ovirt.engine.core.utils.ovf.OvfParser.utcDateFormatStr ) . format ( date ) ; }

Target:
public static java.lang.String localDateToUtcDateString ( java.util.Date date ) { return org.ovirt.engine.core.utils.ovf.OvfParser.getDateFormat ( org.ovirt.engine.core.utils.ovf.OvfParser.utcDateFormatStr ) . format ( date ) ; }
Source:
public void vnicProfileNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.VnicProfileValidator ( null ) ; org.junit.Assert.assertThat ( validator.vnicProfileIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }

Target:
public void vnicProfileNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.VnicProfileValidator ( vmDao , null ) ; org.junit.Assert.assertThat ( validator.vnicProfileIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc diskReplicateFinish ( java.lang.String vmUUID , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct srcDisk , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct dstDisk ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServiceManage ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String [ ] serviceList , java.lang.String actionType , boolean failOnError ) ;
Source:
public void render ( org.ovirt.engine.ui.webadmin.widget.bookmark.Context context , org.ovirt.engine.core.common.businessentities.Bookmark value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { sb.append ( templates.bookmarkItem ( org.ovirt.engine.ui.common.utils.ElementIdUtils.createElementId ( elementId , value.getbookmark_name ( ) ) , value.getbookmark_name ( ) ) ) ; }

Target:
public void render ( org.ovirt.engine.ui.webadmin.widget.bookmark.Context context , org.ovirt.engine.core.common.businessentities.Bookmark value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { sb.append ( org.ovirt.engine.ui.webadmin.widget.bookmark.BookmarkListItemCell.templates.bookmarkItem ( org.ovirt.engine.ui.common.utils.ElementIdUtils.createElementId ( elementId , value.getbookmark_name ( ) ) , value.getbookmark_name ( ) ) ) ; }
Source:
public void ovfUpdate_timer ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > storagePools = getStoragePoolDao ( ) . getAllByStatus ( StoragePoolStatus.Up ) ; updateOvfData ( storagePools ) ; }

Target:
public void ovfUpdateTimer ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > storagePools = getStoragePoolDao ( ) . getAllByStatus ( StoragePoolStatus.Up ) ; updateOvfData ( storagePools ) ; }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( actionType , parameters , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) ; }

Target:
public void runAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { runAction ( actionType , parameters , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS ) ( object ) ) . getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS networkQoS ) { return networkQoS.getName ( ) ; }
Source:
java.lang.String GetTagIdAndChildrenIds ( org.ovirt.engine.core.compat.Guid tagId ) ;

Target:
java.lang.String getTagIdAndChildrenIds ( org.ovirt.engine.core.compat.Guid tagId ) ;
Source:
public void write ( int b ) throws java.io.IOException { out.write ( b ) ; ( this . index ) ++ ; }

Target:
public void write ( int b ) throws java.io.IOException { out.write ( b ) ; ( _index ) ++ ; }
Source:
public void testGetEntityNameByIdAndTypeForQuota ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = quotaDao.getById ( org.ovirt.engine.core.dao.EntityDaoImplTest.QUOTA_ID ) ; org.junit.Assert.assertNotNull ( quota ) ; java.lang.String name = quota.getQuotaName ( ) ; org.junit.Assert.assertEquals ( name , dao.getEntityNameByIdAndType ( org.ovirt.engine.core.dao.EntityDaoImplTest.QUOTA_ID , VdcObjectType.Quota ) ) ; }

Target:
public void testGetEntityNameByIdAndTypeForQuota ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = quotaDao.getById ( org.ovirt.engine.core.dao.EntityDaoImplTest.QUOTA_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( quota ) ; java.lang.String name = quota.getQuotaName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( name , dao.getEntityNameByIdAndType ( org.ovirt.engine.core.dao.EntityDaoImplTest.QUOTA_ID , VdcObjectType.Quota ) ) ; }
Source:
public void shouldDetectHostWihtoutNumaSupport ( ) { vdsNumaNodes = new java.util.ArrayList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVdsNumaNode ( 1 ) ) ) ; assertValidationFailure ( underTest.validateNumaCompatibility ( vm , vm.getvNumaNodeList ( ) , vdsNumaNodes ) , EngineMessage.HOST_NUMA_NOT_SUPPORTED ) ; }

Target:
public void shouldDetectHostWihtoutNumaSupport ( ) { vdsNumaNodes = new java.util.ArrayList ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVdsNumaNode ( 1 ) ) ) ; assertValidationFailure ( underTest.validateNumaCompatibility ( vm , vm.getvNumaNodeList ( ) , vdsNumaNodes ) , EngineMessage.HOST_NUMA_NOT_SUPPORTED ) ; }
Source:
public void validateIsoPrefixCaseSensitive ( ) throws java.lang.Exception { java.lang.String initrd = "ISO://" ; org.ovirt.engine.core.common.businessentities.VM vm = createVmForTesting ( initrd , null ) ; org.junit.Assert.assertEquals ( vm.getinitrd_url ( ) , "" ) ; }

Target:
public void validateIsoPrefixCaseSensitive ( ) throws java.lang.Exception { java.lang.String initrd = "ISO://" ; org.ovirt.engine.core.common.businessentities.VM vm = createVmForTesting ( initrd , null ) ; org.junit.Assert.assertEquals ( vm.getInitrdUrl ( ) , "" ) ; }
Source:
private void addInvalidVmStateMessage ( org.ovirt.engine.core.common.businessentities.VM vm ) { setActionMessageParameters ( ) ; addCanDoActionMessageVariable ( "VmName" , vm.getName ( ) ) ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN_OR_UP ) ; org.ovirt.engine.core.bll.MoveDisksCommand.getReturnValue ( ) . setCanDoAction ( false ) ; }

Target:
private void addInvalidVmStateMessage ( org.ovirt.engine.core.common.businessentities.VM vm ) { setActionMessageParameters ( ) ; addCanDoActionMessageVariable ( "VmName" , vm.getName ( ) ) ; addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN_OR_UP ) ; org.ovirt.engine.core.bll.MoveDisksCommand.getReturnValue ( ) . setCanDoAction ( false ) ; }
Source:
private int calculateCpuUsage ( org.ovirt.engine.core.common.businessentities.VDS o1 ) { return ( ( o1.getUsageCpuPercent ( ) ) * ( org.ovirt.engine.core.bll.scheduling.SlaValidator.getEffectiveCpuCores ( o1 , countThreadsAsCores ) ) ) / ( o1.getVdsStrength ( ) ) ; }

Target:
private int calculateCpuUsage ( org.ovirt.engine.core.common.businessentities.VDS o1 ) { return ( ( o1.getUsageCpuPercent ( ) ) * ( slaValidator.getEffectiveCpuCores ( o1 , countThreadsAsCores ) ) ) / ( o1.getVdsStrength ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Quota getQuotaByQuotaName ( java.lang.String quotaName ) ;

Target:
public org.ovirt.engine.core.common.businessentities.Quota getQuotaByQuotaName ( java.lang.String quotaName , org.ovirt.engine.core.compat.Guid storagePoolId ) ;
Source:
public void run ( ) { EditNetworkThreadCompat ( parameters ) ; }

Target:
public void run ( ) { editNetworkThreadCompat ( parameters ) ; }
Source:
protected boolean isStoragePoolVersionSupported ( ) { return org.ovirt.engine.core.bll.utils.VersionSupport.checkVersionSupported ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePool ( ) . getcompatibility_version ( ) ) ; }

Target:
protected boolean isStoragePoolVersionSupported ( ) { return org.ovirt.engine.core.bll.utils.VersionSupport.checkVersionSupported ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand.getStoragePool ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void testCanDoActionDomainInMaintenance ( ) { getDiskStorageDomain ( ) . setStatus ( StorageDomainStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; }

Target:
public void testValidateDomainInMaintenance ( ) { getDiskStorageDomain ( ) . setStatus ( StorageDomainStatus.Maintenance ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; }
Source:
public void snapshotEntity ( org.ovirt.engine.core.common.businessentities.BusinessEntity < ? > entity ) { snapshotEntityInMemory ( entity , entity , SnapshotType.CHANGED_ENTITY ) ; }

Target:
public void snapshotEntity ( org.ovirt.engine.core.common.businessentities.BusinessEntity < ? > entity ) { snapshotEntityInMemory ( entity , entity , SnapshotType.DELETED_OR_UPDATED_ENTITY ) ; }
Source:
protected void beforeStore ( ) { supportedClusterLevels = supportedVersionsToString ( supportedClusterVersionsSet ) ; supportedEngines = supportedVersionsToString ( supportedEngineVersionsSet ) ; }

Target:
public java.util.HashSet < org.ovirt.engine.core.compat.Version > getSupportedClusterVersionsSet ( ) { if ( ( supportedClusterVersionsSet ) == null ) { supportedClusterVersionsSet = parseSupportedVersions ( getSupportedClusterLevels ( ) ) ; } return supportedClusterVersionsSet ; }
Source:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . getVmType ( ) . setIsChangable ( true ) ; templateValidate ( ) ; instanceTypeManager = new org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.NewPoolInstanceTypeManager ( getModel ( ) ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . getVmType ( ) . setIsChangeable ( true ) ; templateValidate ( ) ; instanceTypeManager = new org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.NewPoolInstanceTypeManager ( getModel ( ) ) ; }
Source:
protected void insertAsyncTaskPlaceHolders ( ) { persistAsyncTaskPlaceHolder ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getParameters ( ) . getParentCommand ( ) ) ; }

Target:
protected void endSuccessfully ( ) { super . endSuccessfully ( ) ; setActionReturnValue ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getDestinationDiskImage ( ) ) ; }
Source:
public void testRemove ( ) { dao.remove ( FixturesTool.HOOK_ID ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getById ( FixturesTool.HOOK_ID ) ; org.junit.Assert.assertNull ( hook ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverhook = dao.getGlusterServerHook ( FixturesTool.HOOK_ID , FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.junit.Assert.assertNull ( serverhook ) ; }

Target:
public void testRemove ( ) { dao.remove ( FixturesTool.HOOK_ID ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getById ( FixturesTool.HOOK_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( hook ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverhook = dao.getGlusterServerHook ( FixturesTool.HOOK_ID , FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.junit.jupiter.api.Assertions.assertNull ( serverhook ) ; }
Source:
protected boolean canPerformHotPlug ( ) { return ( isHotPlugSupported ( ) ) && ( isOsSupportingHotPlug ( ) ) ; }

Target:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( VdcBllMessages.HOT_PLUG_IS_NOT_SUPPORTED ) ; }
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 ( VdcBllMessages.EN_UNKNOWN_TAG_NAME ) ; retValue = false ; } return retValue ; }
Source:
public void existingIscsiBondsForNetowrkTest ( ) throws java.lang.Exception { notIscsiBondNetworkTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_CANNOT_REMOVE_ISCSI_BOND_NETWORK ) , getIscsiBondList ( ) ) ; }

Target:
public void existingIscsiBondsForNetowrkTest ( ) throws java.lang.Exception { notIscsiBondNetworkTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_CANNOT_REMOVE_ISCSI_BOND_NETWORK ) , getIscsiBondList ( ) ) ; }
Source:
private boolean validateDomainsThreshold ( org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator ) { return validate ( storageDomainValidator.isDomainWithinThresholds ( ) ) ; }

Target:
private boolean validateDomainsThreshold ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator ) { return validate ( storageDomainValidator.isDomainWithinThresholds ( ) ) ; }
Source:
public org.springframework.jdbc.core.namedparam.MapSqlParameterSource map ( org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails entity ) { return createFullParametersMapper ( entity ) ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails > getDetailsBatchMapper ( ) { return this :: createFullParametersMapper ; }
Source:
private void ResetData ( ) { hosts = null ; allHosts = null ; localStorageHost = null ; dataCenter = null ; isAnyHostUpInCluster = null ; }

Target:
private void resetData ( ) { hosts = null ; allHosts = null ; localStorageHost = null ; dataCenter = null ; isAnyHostUpInCluster = null ; }
Source:
public void close ( ) throws java.lang.Exception { revokeAccessToken ( ) ; if ( ( client ) != null ) { client.close ( ) ; } }

Target:
public void close ( boolean logout ) throws java.lang.Exception { if ( logout ) { revokeAccessToken ( ) ; } if ( ( client ) != null ) { client.close ( ) ; } }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return object.isBoot ( ) ? getDefaultImage ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return object.isBoot ( ) ? getDefaultImage ( ) : null ; }
Source:
public void testHasUniqueNameUsingExistingName ( ) { final java.lang.String macPoolName = "macPool1" ; org.junit.Assert.assertThat ( callHasUniqueName ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) , macPoolName , macPoolName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ) ; }

Target:
public void testHasUniqueNameUsingExistingName ( ) { final java.lang.String macPoolName = "macPool1" ; org.hamcrest.MatcherAssert.assertThat ( callHasUniqueName ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) , macPoolName , macPoolName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ) ; }
Source:
public void shouldAllowUnpinnedNumaNodes ( ) { validVM.setvNumaNodeList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 ) ) ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) ) . isEmpty ( ) ; }

Target:
public void shouldAllowUnpinnedNumaNodes ( ) { validVM.setvNumaNodeList ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 ) ) ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) ) . isEmpty ( ) ; }
Source:
public java.lang.String getbuild_name ( ) { return this . getVersion ( ) . getBuildName ( ) ; }

Target:
public java.lang.String getbuild_name ( ) { return this . buildName ; }
Source:
public void initTemplate ( ) { setupTemplate ( vm , getModel ( ) . getTemplate ( ) ) ; }

Target:
private int calculateHostCpus ( ) { return getModel ( ) . getSelectedCluster ( ) . getCountThreadsAsCores ( ) ? runningOnHost.getCpuThreads ( ) : runningOnHost.getCpuCores ( ) ; }
Source:
private void writePrimitiveType ( org.ovirt.api.metamodel.concepts.PrimitiveType type ) { writeStartElement ( "primitive" ) ; writeCommon ( type ) ; writeEndElement ( ) ; }

Target:
private void writePrimitiveType ( org.ovirt.api.metamodel.concepts.PrimitiveType type ) { writer.writeStartElement ( "primitive" ) ; writeCommon ( type ) ; writer.writeEndElement ( ) ; }
Source:
protected void handleEscapeKey ( org.ovirt.engine.ui.common.uicommon.model.DeferredModelCommandInvoker commandInvoker ) { beforeCommandExecuted ( model.getCancelCommand ( ) ) ; commandInvoker.invokeCancelCommand ( ) ; }

Target:
protected void handleEscapeKey ( ) { beforeCommandExecuted ( model.getCancelCommand ( ) ) ; modelCommandInvoker.invokeCancelCommand ( ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getUserId ( ) ) ) ; }