auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void setUpGetEntityExpectations ( boolean withVms ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAffinityGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendAffinityGroupVmsResourceTest.AFFINITY_GROUP_ID } , getAffinityGroup ( withVms ) ) ; }

Target:
private void setUpGetEntityExpectations ( boolean withVms ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetAffinityGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendAffinityGroupVmsResourceTest.AFFINITY_GROUP_ID } , getAffinityGroup ( withVms ) ) ; }
Source:
protected void initTemplate ( ) { if ( ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getVmTemplate ( ) ) != null ) { org.ovirt.engine.core.bll.VmTemplateHandler.UpdateDisksFromDb ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getVmTemplate ( ) ) ; } }

Target:
protected void initTemplate ( ) { if ( ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getVmTemplate ( ) ) != null ) { org.ovirt.engine.core.bll.VmTemplateHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getVmTemplate ( ) ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { if ( isPolicyReset ) { updateHeartbeatPolicy ( client.getClientRetryPolicy ( ) . clone ( ) , false ) ; } return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }

Target:
public boolean isDone ( ) { if ( callable.isDone ( ) ) { if ( isPolicyReset ) { updateHeartbeatPolicy ( client.getClientRetryPolicy ( ) , true ) ; } return true ; } return false ; }
Source:
public void diskImagesHasDerivedDisksNoStorageDomainSpecifiedSuccess ( ) { disk1.setVmEntityType ( VmEntityType.TEMPLATE ) ; org.junit.Assert.assertThat ( validator.diskImagesHaveNoDerivedDisks ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void diskImagesHasDerivedDisksNoStorageDomainSpecifiedSuccess ( ) { disk1.setVmEntityType ( VmEntityType.TEMPLATE ) ; org.hamcrest.MatcherAssert.assertThat ( validator.diskImagesHaveNoDerivedDisks ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void readMemoryItem ( org.ovirt.engine.core.compat.backendcompat.XmlNode node ) { _vm.getStaticData ( ) . setMemSizeMb ( java.lang.Integer.parseInt ( node.SelectSingleNode ( "rasd:VirtualQuantity" , _xmlNS ) . innerText ) ) ; }

Target:
private void readMemoryItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { _vm.getStaticData ( ) . setMemSizeMb ( java.lang.Integer.parseInt ( node.SelectSingleNode ( "rasd:VirtualQuantity" , _xmlNS ) . innerText ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > ) ( source ) ) ; }

Target:
public void getCinderVolumeTypesList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > > aQuery , org.ovirt.engine.core.compat.Guid storageDomainId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetCinderVolumeTypesByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , aQuery ) ; }
Source:
public void warn ( java.lang.Object msg ) { log.warn ( addPrefixToLogMessage ( msg ) ) ; }

Target:
public void trace ( java.lang.Object msg ) { log.trace ( convertToString ( msg ) ) ; }
Source:
public java.util.Date getGuestLastLogoutTime ( ) { return this . vmDynamic.getGuestLastLogoutTime ( ) ; }

Target:
public org.ovirt.engine.core.common.locks.LockInfo getLockInfo ( ) { return lockInfo ; }
Source:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic ) ) ; }

Target:
public void getFreeVfNotSriovNic ( ) { commonIsSriovDevice ( false ) ; hostNicVfsConfigHelper.getFreeVf ( nic , null ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( 4 , result.size ( ) ) ; }
Source:
protected boolean isHotPlugDiskSnapshotSupported ( ) { if ( ! ( org.ovirt.engine.core.common.FeatureSupported.hotPlugDiskSnapshot ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVds ( ) . getVdsGroupCompatibilityVersion ( ) ) ) ) { return failCanDoAction ( EngineMessage.HOT_PLUG_DISK_SNAPSHOT_IS_NOT_SUPPORTED ) ; } return true ; }

Target:
protected boolean isHotPlugDiskSnapshotSupported ( ) { if ( ! ( org.ovirt.engine.core.common.FeatureSupported.hotPlugDiskSnapshot ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVds ( ) . getVdsGroupCompatibilityVersion ( ) ) ) ) { return failValidation ( EngineMessage.HOT_PLUG_DISK_SNAPSHOT_IS_NOT_SUPPORTED ) ; } return true ; }
Source:
public void resizeToFullHeight ( ) { table.updateGridSize ( ) ; }

Target:
public void resizeToFullHeight ( ) { int tableTop = table.getTableAbsoluteTop ( ) ; if ( tableTop > 0 ) { table.setMaxGridHeight ( ( ( com.google.gwt.user.client.Window.getClientHeight ( ) ) - tableTop ) ) ; table.updateGridSize ( ) ; } }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalConsolePopupModel model ) { editCheckBoxes ( model , ctrlAltDel , enableUsbAutoshare , openInFullScreen , useLocalDrives , wanEnabled ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalConsolePopupModel model ) { editCheckBoxes ( model , ctrlAltDel , enableUsbAutoshare , openInFullScreen , useLocalDrives , wanEnabled , disableSmartcard ) ; }
Source:
public void testNoDataCentersByExternalNetworkId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > result = dao.getDcIdByExternalNetworkId ( "foo" ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testNoDataCentersByExternalNetworkId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > result = dao.getDcIdByExternalNetworkId ( "foo" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public static java.lang.String map ( org.ovirt.engine.api.model.DisplayType type , java.lang.String incoming ) { switch ( type ) { case vnc : return DisplayType.VNC.value ( ) ; case qxl : return DisplayType.SPICE.value ( ) ; default : return null ; } }

Target:
public static java.lang.String map ( org.ovirt.engine.api.model.DisplayType type , java.lang.String incoming ) { switch ( type ) { case cirrus : return DisplayType.VNC.value ( ) ; case qxl : return DisplayType.SPICE.value ( ) ; default : return null ; } }
Source:
public abstract boolean showImportAsTemplateOption ( ) ;

Target:
public abstract boolean showImportAsTemplateOptions ( ) ;
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.core.common.console.ConsoleOptions.WanDisableEffects > ( ) ) ; spice.setWanOptionsEnabled ( false ) ; }

Target:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; spice.getOptions ( ) . setWanDisableEffects ( new java.util.ArrayList < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > ( ) ) ; spice.getOptions ( ) . setWanOptionsEnabled ( false ) ; }
Source:
public void validateFailedWrongPlugStatus ( ) throws java.lang.Exception { mockVmStatusUp ( ) ; mockInterfaceList ( ) ; cretaeDiskWrongPlug ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.HOT_UNPLUG_DISK_IS_NOT_PLUGGED ) ; }

Target:
public void validateFailedWrongPlugStatus ( ) throws java.lang.Exception { mockVmStatusUp ( ) ; mockInterfaceList ( ) ; createDiskWrongPlug ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.HOT_UNPLUG_DISK_IS_NOT_PLUGGED ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( getDisk ( ) ) != null ) && ( ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) == ( getDisk ( ) . getDiskStorageType ( ) ) ) ) { return getDiskImage ( ) . getQuotaId ( ) ; } return null ; }

Target:
private org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( getDisk ( ) ) != null ) && ( ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) == ( getDisk ( ) . getDiskStorageType ( ) ) ) ) { return getDiskImage ( ) . getQuotaId ( ) ; } return null ; }
Source:
public java.security.PublicKey getServerKey ( ) { return this . serverKey ; }

Target:
public java.security.PublicKey getServerKey ( ) { return _serverKey ; }
Source:
public void setToolTipMaxWidth ( org.ovirt.engine.ui.common.widget.tooltip.TooltipConfig.Width width ) { tooltip.setMaxWidth ( width ) ; }

Target:
public void setToolTipMaxWidth ( org.ovirt.engine.ui.common.widget.tooltip.TooltipWidth width ) { tooltip.setMaxWidth ( width ) ; }
Source:
private void handleNotLoggedInEvent ( final java.lang.String errorMessage ) { if ( ( errorMessage != null ) && ( errorMessage.equals ( "USER_IS_NOT_LOGGED_IN" ) ) ) { frontendNotLoggedInEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , EventArgs.Empty ) ; } }

Target:
private void handleNotLoggedInEvent ( final java.lang.String errorMessage ) { if ( ( errorMessage != null ) && ( errorMessage.equals ( "USER_IS_NOT_LOGGED_IN" ) ) ) { frontendNotLoggedInEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , EventArgs.EMPTY ) ; } }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.AsyncTasks result = dao.get ( existingAsyncTask.gettask_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingAsyncTask , result ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.AsyncTasks result = dao.get ( existingAsyncTask.getTaskId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingAsyncTask , result ) ; }
Source:
void buildVmFloppy ( ) ;

Target:
void buildVmFloppy ( org.ovirt.engine.core.common.businessentities.VmPayload payload ) ;
Source:
public void setVmId ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( vmId , value ) ) ) { vmId = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VmId" ) ) ; } }

Target:
public void setVmId ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( vmId , value ) ) ) { vmId = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VmId" ) ) ; } }
Source:
public static void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid parentCommandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.persistCommand ( commandId , parentCommandId , rootCommandId , actionType , params , status ) ; }

Target:
public static void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.persistCommand ( commandId , rootCommandId , actionType , params , status , enableCallBack ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPredefinedDestinationVdsId ( ) { return ( org.ovirt.engine.core.bll.RunVmOnceCommand.getParameters ( ) . getDestinationVdsId ( ) ) != null ? org.ovirt.engine.core.bll.RunVmOnceCommand.getParameters ( ) . getDestinationVdsId ( ) : super . getPredefinedDestinationVdsId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPredefinedVdsIdToRunOn ( ) { return ( org.ovirt.engine.core.bll.RunVmOnceCommand.getParameters ( ) . getDestinationVdsId ( ) ) != null ? org.ovirt.engine.core.bll.RunVmOnceCommand.getParameters ( ) . getDestinationVdsId ( ) : super . getPredefinedVdsIdToRunOn ( ) ; }
Source:
public void releaseSession ( ) { setSessionId ( null ) ; }

Target:
com.google.gwt.http.client.RequestBuilder createRequest ( java.lang.String engineAuthToken ) { com.google.gwt.http.client.RequestBuilder builder = createRequest ( ) ; java.lang.String preferValue = builder.getHeader ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.PREFER_HEADER ) ; builder.setHeader ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.PREFER_HEADER , ( preferValue + ", new-auth" ) ) ; builder.setHeader ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.ENGINE_AUTH_TOKEN_HEADER , engineAuthToken ) ; return builder ; }
Source:
public void onSuccess ( java.lang.Object model1 , java.lang.Object returnValue1 ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue1 ) ) . getReturnValue ( ) ) ) ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.profiles.RemoveProfileModel < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getRemoveProfileModel ( ) { return new org.ovirt.engine.ui.uicommonweb.models.profiles.RemoveDiskProfileModel ( this , getSelectedItems ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > getQuotaVdsGroupByQuotaGuid ( org.ovirt.engine.core.compat.Guid quotaId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createQuotaIdParameterMapper ( quotaId ) ; return getCallsHandler ( ) . executeReadList ( "GetQuotaVdsGroupByQuotaGuid" , getVdsGroupQuotaResultSet ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > getQuotaClusterByQuotaGuid ( org.ovirt.engine.core.compat.Guid quotaId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createQuotaIdParameterMapper ( quotaId ) ; return getCallsHandler ( ) . executeReadList ( "GetQuotaClusterByQuotaGuid" , getClusterQuotaResultSet ( ) , parameterSource ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { object.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPassPkWindow ( true ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { object.setAuthenticationMethod ( AuthenticationMethod.PublicKey ) ; displayPassPkWindow ( false ) ; }
Source:
public void testGetFilteredWithoutPermissions ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk result = dao.get ( getExistingEntityId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetFilteredWithoutPermissions ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk result = dao.get ( getExistingEntityId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vNic ) { return vNic.isPlugged ( ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vNic ) { return vNic.isPlugged ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { updateHeartbeatPolicy ( policy.clone ( ) , false ) ; return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { if ( isPolicyReset ) { updateHeartbeatPolicy ( client.getClientRetryPolicy ( ) . clone ( ) , false ) ; } return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }
Source:
private static java.lang.Double getTotalStorageCount ( javax.sql.DataSource dwhDataSource ) throws java.sql.SQLException , org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException { org.ovirt.engine.ui.frontend.server.dashboard.dao.StorageDomainDwhDAO dao = new org.ovirt.engine.ui.frontend.server.dashboard.dao.StorageDomainDwhDAO ( dwhDataSource ) ; return ( dao.getTotalStorageCount ( ) ) / 1024 ; }

Target:
private static java.lang.Double getTotalStorageCount ( javax.sql.DataSource dwhDataSource ) throws org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException { org.ovirt.engine.ui.frontend.server.dashboard.dao.StorageDomainDwhDao dao = new org.ovirt.engine.ui.frontend.server.dashboard.dao.StorageDomainDwhDao ( dwhDataSource ) ; return ( dao.getTotalStorageCount ( ) ) / 1024 ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; setWindow ( null ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; setWindow ( null ) ; }
Source:
public org.ovirt.engine.api.model.OpenStackImages list ( ) { org.ovirt.engine.core.compat.Guid storageDomainId = org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackImageProviderHelper.getStorageDomainId ( this , providerId ) ; org.ovirt.engine.core.common.queries.GetImagesListParameters parameters = new org.ovirt.engine.core.common.queries.GetImagesListParameters ( storageDomainId , org.ovirt.engine.core.common.businessentities.storage.ImageFileType.All ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetImagesList , parameters ) ) ; }

Target:
public org.ovirt.engine.api.model.OpenStackImages list ( ) { org.ovirt.engine.core.compat.Guid storageDomainId = org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackStorageProviderHelper.getStorageDomainId ( this , providerId ) ; org.ovirt.engine.core.common.queries.GetImagesListParameters parameters = new org.ovirt.engine.core.common.queries.GetImagesListParameters ( storageDomainId , org.ovirt.engine.core.common.businessentities.storage.ImageFileType.All ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetImagesList , parameters ) ) ; }
Source:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . StartPollingTask ( taskID ) ; } }

Target:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { getAsyncTaskManager ( ) . StartPollingTask ( taskID ) ; } }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.HashMap < org.ovirt.engine.core.common.businessentities.network.Network , java.util.Set < org.ovirt.engine.core.compat.Guid > > ( ) ; } 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.HashMap < org.ovirt.engine.core.common.businessentities.network.Network , java.util.Set < org.ovirt.engine.core.compat.Guid > > ( ) ; } return source ; }
Source:
public void writeData ( java.io.ObjectOutputStream dos ) { try { writeString ( this . time , dos ) ; writeString ( this . message , dos ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void writeData ( java.io.ObjectOutputStream dos ) { try { writeString ( this . var_name , dos ) ; writeString ( this . var_value , dos ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public static org.ovirt.engine.core.common.businessentities.network.Network findNetworkByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.Network n : items ) { if ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( n.getName ( ) , name ) ) { return n ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.Network findNetworkByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.Network n : items ) { if ( java.util.Objects.equals ( n.getName ( ) , name ) ) { return n ; } } return null ; }
Source:
java.lang.String errorRetrievingStorageDomains ( ) ;

Target:
java.lang.String removeBricksReplicateVolumeMessage ( int oldReplicaCount , int newReplicaCount ) ;
Source:
public void networkNameTakenByDifferentNetwork ( ) throws java.lang.Exception { networkNameAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_NAME_IN_USE ) , getSingletonNamedNetworkList ( DEFAULT_NETWORK_NAME , OTHER_GUID ) ) ; }

Target:
public void networkNameTakenByDifferentNetwork ( ) throws java.lang.Exception { networkNameAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_NAME_IN_USE ) , getSingletonNamedNetworkList ( DEFAULT_NETWORK_NAME , OTHER_GUID ) ) ; }
Source:
public void testExistJobMessages ( ) { org.ovirt.engine.core.dal.job.ExecutionMessageDirector messageDirector = org.ovirt.engine.core.dal.job.ExecutionMessageDirector.getInstance ( ) ; messageDirector.initialize ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.TEST_BUNDLE_NAME ) ; java.lang.String updateVdsGroupMessage = messageDirector.getJobMessage ( VdcActionType.UpdateVdsGroup ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.UPDATE_CLUSTER_VDS_GROUPS_MESSAGE.equals ( updateVdsGroupMessage ) ) ; }

Target:
public void testExistJobMessages ( ) { org.ovirt.engine.core.dal.job.ExecutionMessageDirector messageDirector = org.ovirt.engine.core.dal.job.ExecutionMessageDirector.getInstance ( ) ; messageDirector.initialize ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.TEST_BUNDLE_NAME ) ; java.lang.String updateClusterMessage = messageDirector.getJobMessage ( VdcActionType.UpdateCluster ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.UPDATE_CLUSTER_CLUSTERS_MESSAGE.equals ( updateClusterMessage ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getNetworkClusterDAO ( ) . remove ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getParameters ( ) . getVdsGroupId ( ) , org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.setSucceeded ( true ) ; }

Target:
public java.lang.Void runInTransaction ( ) { getNetworkClusterDAO ( ) . remove ( getParameters ( ) . getVdsGroupId ( ) , getParameters ( ) . getNetwork ( ) . getId ( ) ) ; return null ; }
Source:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( networkDeviceHelper.getFreeVf ( nic , null ) ) ; }

Target:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 , 5 ) ; org.junit.Assert.assertNull ( networkDeviceHelper.getFreeVf ( nic , null ) ) ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel targetModel1 , org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel targetModel2 ) { return lexoNumeric.compare ( targetModel1.getEntity ( ) . getiqn ( ) , targetModel2.getEntity ( ) . getiqn ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel targetModel1 , org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel targetModel2 ) { return lexoNumeric.compare ( targetModel1.getEntity ( ) . getIqn ( ) , targetModel2.getEntity ( ) . getIqn ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { AddVmStatic ( ) ; AddVmDynamic ( ) ; AddVmNetwork ( ) ; AddVmStatistics ( ) ; addActiveSnapshot ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { AddVmStatic ( ) ; addVmDynamic ( ) ; AddVmNetwork ( ) ; AddVmStatistics ( ) ; addActiveSnapshot ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
protected org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return org.ovirt.engine.core.bll.RunVmCommand.runVmValidator ; }

Target:
protected org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return new org.ovirt.engine.core.bll.validator.RunVmValidator ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) , org.ovirt.engine.core.bll.RunVmCommand.isInternalExecution ( ) ) ; }
Source:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel.setWindow ( null ) ; updateActionAvailability ( ) ; }
Source:
private void CoresPerSocket_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.coresPerSocketChanged ( ) ; }

Target:
private void coresPerSocket_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.coresPerSocketChanged ( ) ; }
Source:
private void addLunsToStorageDomain ( java.util.List < org.ovirt.engine.api.model.LogicalUnit > newLuns , boolean overrideLuns ) { org.ovirt.engine.core.common.action.ExtendSANStorageDomainParameters params = createParameters ( guid , newLuns , overrideLuns ) ; performAction ( VdcActionType.ExtendSANStorageDomain , params ) ; }

Target:
private void addLunsToStorageDomain ( java.util.List < org.ovirt.engine.api.model.LogicalUnit > newLuns , boolean overrideLuns ) { org.ovirt.engine.core.common.action.ExtendSANStorageDomainParameters params = createParameters ( guid , newLuns , overrideLuns ) ; performAction ( ActionType.ExtendSANStorageDomain , params ) ; }
Source:
public void setDescription ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( description , value ) ) ) { description = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_DESCRIPTION ) ) ; } }

Target:
public void setDescription ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( description , value ) ) ) { description = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_DESCRIPTION ) ) ; } }
Source:
public long getAvailableDiskSizeInBytes ( ) { return ( getAvailableDiskSize ( ) ) * ( org.ovirt.engine.core.common.utils.SizeConverter.BYTES_IN_GB ) ; }

Target:
public java.lang.Long getAvailableDiskSizeInBytes ( ) { java.lang.Integer availableSize = getAvailableDiskSize ( ) ; return availableSize != null ? availableSize * ( org.ovirt.engine.core.common.utils.SizeConverter.BYTES_IN_GB ) : null ; }
Source:
public static void alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector ) { auditLogDirector.log ( auditLogable , logType ) ; }

Target:
public static void alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable auditLogable , org.ovirt.engine.core.common.AuditLogType logType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector ) { auditLogDirector.log ( auditLogable , logType ) ; }
Source:
public void clusterAlreadyInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; storagePoolAlreadyHasCluster ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( EngineMessage.VDS_GROUP_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }

Target:
public void clusterAlreadyInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; storagePoolAlreadyHasCluster ( ) ; architectureIsUpdatable ( ) ; validateFailedWithReason ( EngineMessage.VDS_GROUP_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.VmsListFetcher getVmsFetcher ( ) { return new org.ovirt.engine.core.vdsbroker.VmsStatisticsFetcher ( manager ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.VmsListFetcher getVmsFetcher ( ) { return new org.ovirt.engine.core.vdsbroker.VmsStatisticsFetcher ( vdsManager ) ; }
Source:
public void testConfigurationEntries ( ) throws java.lang.Exception { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( java.util.Collections.singletonList ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.FilterEntry ( "message0" , false , "smtp" , "dbtest1@redhat.com" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.ovirt.engine.core.notifier.filter.AuditLogEvent event = smtp.getEvents ( ) . get ( 0 ) ; java.lang.String address = smtp.getNames ( ) . get ( 0 ) ; org.junit.Assert.assertTrue ( event.getName ( ) . equals ( "message0" ) ) ; org.junit.Assert.assertTrue ( address.equals ( "dbtest1@redhat.com" ) ) ; }

Target:
public void testConfigurationEntries ( ) throws java.lang.Exception { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( java.util.Collections.singletonList ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.FilterEntry ( "message0" , false , "smtp" , "dbtest1@redhat.com" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.junit.Assert.assertTrue ( smtp.getEvents ( ) . contains ( "message0-->dbtest1@redhat.com" ) ) ; }
Source:
public void detachedClusterMovesToDcWithExistingManagementNetwork ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultClusterID , Guid.Empty ) ; createCommandWithDefaultCluster ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; storagePoolIsLocalFS ( ) ; initAndAssertValidation ( true ) ; }

Target:
public void detachedClusterMovesToDcWithExistingManagementNetwork ( ) { newDefaultManagementNetworkFound ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultClusterID , Guid.Empty ) ; createCommandWithDefaultCluster ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; storagePoolIsLocalFS ( ) ; initAndAssertValidation ( true ) ; }
Source:
public void testAcceptsBooleans ( ) { junit.framework.TestCase.assertEquals ( org.ovirt.engine.api.utils.BooleanParser.parseBoolean ( "true" ) , true ) ; junit.framework.TestCase.assertEquals ( org.ovirt.engine.api.utils.BooleanParser.parseBoolean ( "false" ) , false ) ; }

Target:
public void testAcceptsBooleans ( ) { org.junit.Assert.assertEquals ( org.ovirt.engine.api.utils.BooleanParser.parseBoolean ( "true" ) , true ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.utils.BooleanParser.parseBoolean ( "false" ) , false ) ; }
Source:
private boolean shouldUpdateStorageDisk ( ) { return ( ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Move ) ) || ( ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.ImportVm ) ) ; }

Target:
private boolean shouldUpdateStorageDisk ( ) { return ( ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Move ) ) || ( ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.ActionType.ImportVm ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getDbFacade ( ) . getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getVmPoolId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPoolDAO ( ) . save ( vmPool ) ; return vmPool.getVmPoolId ( ) ; }
Source:
public void validateVmMemoryCantRunOnVdsNotEnoughMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCantRunOnVdsNotEnoughMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.jupiter.api.Assertions.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public void setTitle ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( title , value ) ) ) { title = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Title" ) ) ; } }

Target:
public void setTitle ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( title , value ) ) ) { title = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Title" ) ) ; } }
Source:
public void Dispose ( ) { if ( ( jobId ) != null ) { org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( jobId ) ; } }

Target:
public void dispose ( ) { if ( ( jobId ) != null ) { org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( jobId ) ; } }
Source:
protected void updateVMDetails ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateVmGuestAgentVersion ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateNetworkInterfacesFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateVmInitFromDB ( vm.getStaticData ( ) , true ) ; }

Target:
protected void updateVMDetails ( org.ovirt.engine.core.common.businessentities.VM vm ) { vmHandler.updateDisksFromDb ( vm ) ; vmHandler.updateVmGuestAgentVersion ( vm ) ; vmHandler.updateNetworkInterfacesFromDb ( vm ) ; vmHandler.updateVmInitFromDB ( vm.getStaticData ( ) , true ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return ( java.lang.String.valueOf ( object.getmem_size_mb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return ( java.lang.String.valueOf ( object.getMemSizeMb ( ) ) ) + " MB" ; }
Source:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { operation.getCallback ( ) . onSuccess ( operation , result ) ; }

Target:
public void onSuccess ( final org.ovirt.engine.core.common.action.ActionReturnValue result ) { operation.getCallback ( ) . onSuccess ( operation , result ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQueryImpl ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , boolean isPerformUserCheck ) { return runQueryImpl ( actionType , parameters , isPerformUserCheck , null ) ; }

Target:
protected org.ovirt.engine.core.common.queries.QueryReturnValue runQueryImpl ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters , boolean isPerformUserCheck ) { return runQueryImpl ( actionType , parameters , isPerformUserCheck , null ) ; }
Source:
protected org.ovirt.engine.api.model.Nic doPopulate ( org.ovirt.engine.api.model.Nic model , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity ) { org.ovirt.engine.api.restapi.resource.BackendVmNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendVmNicsResource ) ( collection ) ) ; parent.addReportedDevices ( model , entity ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.Nic doPopulate ( org.ovirt.engine.api.model.Nic model , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity ) { org.ovirt.engine.api.restapi.resource.BackendNicHelper.addReportedDevices ( this , model , entity ) ; return model ; }
Source:
void removeColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column ) { table.removeColumn ( column ) ; tableHeader.removeColumn ( column ) ; }

Target:
public void setColumnVisible ( com.google.gwt.user.cellview.client.Column < T , ? > column , boolean visible ) { super . setColumnVisible ( column , visible ) ; table.setColumnVisible ( column , visible ) ; }
Source:
public void setpriority ( int value ) { priority = value ; }

Target:
public void setPriority ( int value ) { priority = value ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult validateModelCompatibleWithOs ( ) { org.ovirt.engine.core.bll.validator.VmWatchdogValidator validator = getVmWatchdogValidator ( ) ; if ( validator != null ) { return validator.isModelCompatibleWithOs ( ) ; } else { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } }

Target:
protected org.ovirt.engine.core.bll.ValidationResult validateModelCompatibleWithOs ( ) { org.ovirt.engine.core.bll.validator.VmWatchdogValidator validator = getVmWatchdogValidator ( ) ; if ( validator != null ) { return validator.isModelCompatibleWithOs ( ) ; } else { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } }
Source:
public void canDoChangeNamePoolNotUp ( ) { sd.setStorageName ( org.apache.commons.lang.StringUtils.reverse ( sd.getStorageName ( ) ) ) ; sp.setStatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void validateChangeNamePoolNotUp ( ) { sd.setStorageName ( org.apache.commons.lang.StringUtils.reverse ( sd.getStorageName ( ) ) ) ; sp.setStatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }
Source:
protected boolean shouldRemoveMemorySnapshotVolumes ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( org.ovirt.engine.core.bll.VmCommand.getDbFacade ( ) . getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 1 ) ; }

Target:
protected void removeVmStatic ( ) { removeVmStatic ( true ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookUpdate ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum ) ;
Source:
public void testLongName ( ) { vmStatic.setVmName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; junit.framework.Assert.assertFalse ( "canDoAction should fail for too long vm name." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }

Target:
public void testLongName ( ) { vmStatic.setName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; junit.framework.Assert.assertFalse ( "canDoAction should fail for too long vm name." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }
Source:
public static void setFrontendEventHandler ( org.ovirt.engine.ui.frontend.IFrontendEventsHandler eventHandler ) { org.ovirt.engine.ui.frontend.Frontend.eventsHandler = eventHandler ; }

Target:
public static void setLoginHandler ( org.ovirt.engine.ui.frontend.FrontendLoginHandler loginHandler ) { org.ovirt.engine.ui.frontend.Frontend.loginHandler = loginHandler ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__FORCE_SELECT ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__SPM ) ; addCanDoActionMessageVariable ( "VdsName" , org.ovirt.engine.core.bll.storage.pool.ForceSelectSPMCommand.getVds ( ) . getName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__FORCE_SELECT ) ; addValidationMessage ( EngineMessage.VAR__TYPE__SPM ) ; addValidationMessageVariable ( "VdsName" , org.ovirt.engine.core.bll.storage.pool.ForceSelectSPMCommand.getVds ( ) . getName ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( dataCenterId ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getIso ( ) . setIsChangeable ( getAttachDrivers ( ) . getEntity ( ) ) ; }
Source:
public void canUpdateNumaConfigurationWithVmFromDb ( ) { mockCommandWithVmFromDb ( ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( vmNumaNodeDao ) . massUpdateNumaNode ( org.mockito.Matchers.eq ( paramNumaNodes ) ) ; }

Target:
public void canUpdateNumaConfigurationWithVmFromDb ( ) { mockCommandWithVmFromDb ( ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( vmNumaNodeDao ) . massUpdateNumaNode ( org.mockito.ArgumentMatchers.eq ( paramNumaNodes ) ) ; }
Source:
public void testIsInternalExecutionDefault ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( ) ; org.junit.Assert.assertFalse ( "By default, a query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionDefault ( ) { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; org.junit.Assert.assertFalse ( "By default, a query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }
Source:
public void testFailWhenUsingMacOutsideOfRange ( ) throws java.lang.Exception { rangeOf10Macs.use ( org.ovirt.engine.core.bll.network.macpoolmanager.RangeTest.MAC_OUTSIDE_OF_RANGE , false ) ; }

Target:
public void testFailWhenUsingMacOutsideOfRange ( ) throws java.lang.Exception { rangeOf10Macs.use ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_OUTSIDE_OF_RANGE , false ) ; }
Source:
protected void endWithFailure ( ) { RemoveNetwork ( ) ; RemoveImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDAO ( ) . remove ( getVmTemplateId ( ) ) ; rollbackQuota ( ) ; setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { removeNetwork ( ) ; removeImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDAO ( ) . remove ( getVmTemplateId ( ) ) ; rollbackQuota ( ) ; setSucceeded ( true ) ; }
Source:
protected void postInitTemplate ( ) { }

Target:
private org.ovirt.engine.core.common.businessentities.VmTemplate createLatestTemplate ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { org.ovirt.engine.core.common.businessentities.VmTemplate latestTemplate = new org.ovirt.engine.core.common.businessentities.VmTemplate ( template ) ; latestTemplate.setTemplateVersionName ( constants.latestTemplateVersionName ( ) ) ; latestTemplate.setDescription ( constants.latestTemplateVersionDescription ( ) ) ; return latestTemplate ; }
Source:
protected int getNeededDiskSize ( org.ovirt.engine.core.compat.Guid domainId ) { return ( org.ovirt.engine.core.bll.AddVmCommand.getBlockSparseInitSizeInGb ( ) ) * ( storageToDisksMap.get ( domainId ) . size ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Command ) ; }
Source:
public static java.lang.Integer getMinMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getMinimumRam ( osId , version ) ; }

Target:
public static java.lang.Integer getMinMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getMinimumRam ( osId , version ) ; }
Source:
protected final void postConstruct ( ) { if ( ! ( isCompensationContext ( ) ) ) { init ( ) ; } }

Target:
protected final void postConstruct ( ) { if ( ! ( isCompensationContext ( ) ) ) { initCommandBase ( ) ; init ( ) ; } }