auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomainStaticEntity ( int index ) { org.ovirt.engine.api.restapi.resource.StorageDomainStatic entity = control.createMock ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic.class ) ; return org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResourceTest.setUpStorageDomainEntityExpectations ( entity , index , StorageType.NFS ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomainStaticEntity ( ) { org.ovirt.engine.api.restapi.resource.StorageDomainStatic entity = control.createMock ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic.class ) ; return org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResourceTest.setUpStorageDomainEntityExpectations ( entity , StorageType.NFS ) ; }
Source:
protected void addInvalidSDStatusMessage ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2.toString ( ) ) ; addCanDoActionMessage ( java.lang.String.format ( "$status %1$s" , status ) ) ; }

Target:
protected void addInvalidSDStatusMessage ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; addCanDoActionMessage ( java.lang.String.format ( "$status %1$s" , status ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.VDS localStorageHost = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; clusterGuideModel.localStorageHost = localStorageHost ; clusterGuideModel.UpdateOptionsLocalFS ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.VDS localStorageHost = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; clusterGuideModel.localStorageHost = localStorageHost ; clusterGuideModel.UpdateOptionsLocalFS ( ) ; }
Source:
private java.sql.Connection applyCustomSchema ( java.sql.Connection connection ) throws java.sql.SQLException { java.sql.Statement st = connection.createStatement ( ) ; st.executeUpdate ( java.lang.String.format ( "SET search_path TO %s" , org.ovirt.engine.extension.aaa.jdbc.Formatter.escapeString ( customSchema ) ) ) ; return connection ; }

Target:
private java.sql.Connection applyCustomSchema ( java.sql.Connection connection ) throws java.sql.SQLException { try ( java.sql.Statement st = connection.createStatement ( ) ) { st.executeUpdate ( java.lang.String.format ( "SET search_path TO %s" , org.ovirt.engine.extension.aaa.jdbc.Formatter.escapeString ( customSchema ) ) ) ; } return connection ; }
Source:
public java.lang.String getJavaMemberStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return javaNames.getJavaMemberStyleName ( addPrefix ( name ) ) ; }

Target:
public java.lang.String getJavaMemberStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return javaNames.getJavaMemberStyleName ( name ) ; }
Source:
public void setPanelWidget ( com.google.gwt.user.client.ui.Widget widget ) { panel.setWidget ( widget ) ; }

Target:
public void setWidget ( com.google.gwt.user.client.ui.Widget widget ) { panel.setWidget ( widget ) ; }
Source:
private void RemoveVdsStaticFromDb ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }

Target:
private void RemoveVdsStaticFromDb ( ) { getVdsStaticDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }
Source:
private void initTableOverhead ( ) { userTypes = new org.ovirt.engine.ui.common.widget.uicommon.users.UsersTypeRadioGroup ( ) ; userTypes.addChangeHandler ( this ) ; getTable ( ) . setTableOverhead ( userTypes ) ; getTable ( ) . setTableTopMargin ( 20 ) ; }

Target:
private void initTableOverhead ( ) { userTypes = new org.ovirt.engine.ui.common.widget.uicommon.users.UsersTypeRadioGroup ( ) ; userTypes.addChangeHandler ( this ) ; getTable ( ) . setTableOverhead ( userTypes ) ; }
Source:
private void initAllModels ( boolean fetchFromBackend ) { if ( fetchFromBackend ) { startProgress ( null ) ; queryLabels ( ) ; } else { initLabelModels ( ) ; initNetworkModels ( ) ; initNicModels ( ) ; } }

Target:
private void initAllModels ( boolean fetchFromBackend ) { if ( fetchFromBackend ) { startProgress ( ) ; queryLabels ( ) ; } else { initLabelModels ( ) ; initNetworkModels ( ) ; initNicModels ( ) ; } }
Source:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic distination , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return org.ovirt.engine.core.bll.VdsHandler.updateVdsStatic.IsUpdateValid ( source , distination , status ) ; }

Target:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic distination , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return org.ovirt.engine.core.bll.VdsHandler.updateVdsStatic.isUpdateValid ( source , distination , status ) ; }
Source:
protected void populateTabMap ( ) { getTabNameMapping ( ) . put ( TabName.PF_TAB , this . pfTab ) ; getTabNameMapping ( ) . put ( TabName.VFS_CONFIG_TAB , this . vfsConfigTab ) ; }

Target:
protected void populateTabMap ( ) { getTabNameMapping ( ) . put ( TabName.PF_TAB , pfTab ) ; getTabNameMapping ( ) . put ( TabName.VFS_CONFIG_TAB , vfsConfigTab ) ; }
Source:
public void setCurrentRefreshRate ( int newRefreshRate ) { saveRefreshRate ( newRefreshRate ) ; getModelTimer ( ) . setRefreshRate ( readRefreshRate ( ) ) ; updateTimer ( ) ; }

Target:
public void setCurrentRefreshRate ( int newRefreshRate ) { saveRefreshRate ( newRefreshRate ) ; updateTimer ( ) ; }
Source:
protected abstract boolean validateImageTransfer ( org.ovirt.engine.core.compat.Guid imageId ) ;

Target:
protected abstract boolean validateImageTransfer ( ) ;
Source:
public void testGet64bitOss ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( ( OsRepositoryImpl.INSTANCE.get64bitOss ( ) . size ( ) ) == 1 ) ) ; }

Target:
public void testGet64bitOss ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( 2 , OsRepositoryImpl.INSTANCE.get64bitOss ( ) . size ( ) ) ; }
Source:
public java.lang.String getTagIdAndChildrenIds ( org.ovirt.engine.core.compat.Guid tagId ) { org.ovirt.engine.core.common.businessentities.Tags tag = getTagById ( tagId ) ; if ( tag == null ) { return org.apache.commons.lang.StringUtils.EMPTY ; } java.lang.StringBuilder sb = tag.getTagIdAndChildrenIds ( ) ; return sb.toString ( ) ; }

Target:
public java.lang.String getTagIdAndChildrenIds ( org.ovirt.engine.core.compat.Guid tagId ) { org.ovirt.engine.core.common.businessentities.Tags tag = getTagById ( tagId ) ; if ( tag == null ) { return org.apache.commons.lang.StringUtils.EMPTY ; } java.lang.StringBuilder sb = getTagIdAndChildrenIds ( tag ) ; return sb.toString ( ) ; }
Source:
private void _nextTerminationEntry ( ) throws java.lang.Exception { try { _terminationDialog [ ( ( _terminationIndex ) ++ ) ] . call ( ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new java.lang.RuntimeException ( "Protocol violation" , e ) ; } }

Target:
private void _nextTerminationEntry ( ) throws java.lang.Exception { try { if ( _terminationDialog.get ( _terminationIndex ) . call ( ) ) { ( _terminationIndex ) ++ ; } } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new java.lang.RuntimeException ( "Protocol violation" , e ) ; } }
Source:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Template template ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayDataInternal ( res , template ) ; }

Target:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Template template ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayDataInternal ( res , template , null ) ; }
Source:
public void onSuccess ( java.lang.Object returnValue ) { setCommandExecutionAllowedForProvider ( ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { setCommandExecutionAllowedForProvider ( ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( returnValue.getReturnValue ( ) ) ) ) ; }
Source:
public java.lang.String getContentType ( org.ovirt.engine.core.utils.PKIResources.Resource resource ) { return getContentType ( resource , null ) ; }

Target:
public java.lang.String getContentType ( ) { return getContentType ( null ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > getCollection ( ) { return getBackendCollection ( VdcQueryType.GetVmGuestAgentInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( vmId ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > getCollection ( ) { return getBackendCollection ( VdcQueryType.GetVmGuestAgentInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ; }
Source:
protected void endSuccessfully ( ) { endActionOnDisks ( ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.freeLock ( ) ; convert ( ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.setSucceeded ( true ) ; }

Target:
protected void endSuccessfully ( ) { org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.endActionOnDisks ( ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.freeLock ( ) ; convert ( ) ; org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.setSucceeded ( true ) ; }
Source:
public void onAcccept ( org.ovirt.vdsm.jsonrpc.client.reactors.ReactorListener listener , org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient client ) ;

Target:
public void onAcccept ( org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient client ) ;
Source:
public java.lang.String getVdsGroupName ( ) { if ( ( getVdsGroup ( ) ) != null ) { return getVdsGroup ( ) . getname ( ) ; } else { return null ; } }

Target:
public java.lang.String getVdsGroupName ( ) { if ( ( getVdsGroup ( ) ) != null ) { return getVdsGroup ( ) . getName ( ) ; } else { return null ; } }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { switch ( org.ovirt.engine.core.bll.storage.domain.DeactivateStorageDomainWithOvfUpdateCommand.getActionState ( ) ) { case END_FAILURE : return org.ovirt.engine.core.common.AuditLogType.USER_DEACTIVATE_STORAGE_DOMAIN_FAILED ; default : return org.ovirt.engine.core.common.AuditLogType.UNASSIGNED ; } }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.common.AuditLogType.UNASSIGNED ; }
Source:
public void setIsDisksAvailable ( boolean value ) { if ( ( isDisksAvailable ) != value ) { isDisksAvailable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsDisksAvailable" ) ) ; } }

Target:
public void setIsDisksAvailable ( boolean value ) { isDisksAvailable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsDisksAvailable" ) ) ; }
Source:
public void Connect ( ) { org.ovirt.engine.ui.common.uicommon.RdpConnector connector = new org.ovirt.engine.ui.common.uicommon.RdpConnector ( getAddress ( ) , getDisconnectedEvent ( ) ) ; connector.setRedirectDrives ( getUseLocalDrives ( ) ) ; connector.connect ( ) ; }

Target:
public void connect ( ) { org.ovirt.engine.ui.common.uicommon.RdpConnector connector = new org.ovirt.engine.ui.common.uicommon.RdpConnector ( getAddress ( ) , getDisconnectedEvent ( ) ) ; connector.setRedirectDrives ( getUseLocalDrives ( ) ) ; connector.connect ( ) ; }
Source:
public void addLocator ( org.ovirt.api.metamodel.concepts.Locator newLocator ) { locators.add ( newLocator ) ; locators.sort ( java.util.Comparator.comparing ( Locator :: getName ) ) ; }

Target:
public void addLocator ( org.ovirt.api.metamodel.concepts.Locator newLocator ) { locators.add ( newLocator ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao , effectiveHostNetworkQos ) ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil , networkClusterDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( storageDomain ) == null ) { storageDomain = getDbFacade ( ) . getStorageDomainDao ( ) . get ( getProfile ( ) . getStorageDomainId ( ) ) ; } return storageDomain ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( storageDomain ) == null ) { storageDomain = getStorageDomain ( getProfile ( ) . getStorageDomainId ( ) ) ; } return storageDomain ; }
Source:
public void setnet_config_dirty ( java.lang.Boolean value ) { mVdsDynamic.setnet_config_dirty ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "net_config_dirty" ) ) ; }

Target:
public void setnet_config_dirty ( java.lang.Boolean value ) { mVdsDynamic.setnet_config_dirty ( value ) ; }
Source:
public void setSearchString ( java.lang.String value ) { if ( ( value == null ) || ( ! ( containsTokens ( value , SyntaxObjectType.SORTBY , SyntaxObjectType.PAGE , SyntaxObjectType.SORT_DIRECTION ) ) ) ) { setSearchString ( value , true ) ; } }

Target:
public void setSearchString ( java.lang.String value ) { setSearchString ( value , true ) ; }
Source:
protected void setVmPoolId ( org.ovirt.engine.core.compat.NGuid value ) { org.ovirt.engine.core.bll.AttachUserToVmFromPoolAndRunCommand.getParameters ( ) . setVmPoolId ( value ) ; }

Target:
protected void setVmPoolId ( org.ovirt.engine.core.compat.Guid value ) { org.ovirt.engine.core.bll.AttachUserToVmFromPoolAndRunCommand.getParameters ( ) . setVmPoolId ( value ) ; }
Source:
private void initModel ( org.ovirt.engine.ui.uicommonweb.models.ConsolePopupModel model ) { consoleOptionsPersister.loadFromLocalStorage ( model.getModel ( ) , model.getConsoleContext ( ) ) ; }

Target:
private void initModel ( org.ovirt.engine.ui.uicommonweb.models.ConsolePopupModel model ) { consoleOptionsPersister.loadFromLocalStorage ( model.getModel ( ) ) ; }
Source:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmWatchdog entity , T id ) { return entity.getId ( ) . equals ( id ) ; }

Target:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmWatchdog entity , T id ) { return true ; }
Source:
public java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.storage_domains object ) { long availableDiskSize = ( ( object.getavailable_disk_size ( ) ) != null ) ? object.getavailable_disk_size ( ) : 0 ; return ( ( long ) ( availableDiskSize ) ) ; }

Target:
public java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { long availableDiskSize = ( ( object.getavailable_disk_size ( ) ) != null ) ? object.getavailable_disk_size ( ) : 0 ; return ( ( long ) ( availableDiskSize ) ) ; }
Source:
private org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters buildRemoveMemoryVolumesParameters ( java.lang.String memoryState , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters params = new org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters ( memoryState , vmId ) ; params.setEntityInfo ( getParameters ( ) . getEntityInfo ( ) ) ; return params ; }

Target:
private org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters buildRemoveMemoryVolumesParameters ( java.lang.String memoryState , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters params = new org.ovirt.engine.core.common.action.RemoveMemoryVolumesParameters ( memoryState , vmId , true ) ; params.setEntityInfo ( getParameters ( ) . getEntityInfo ( ) ) ; return params ; }
Source:
public org.ovirt.engine.api.rsdl.RsdlBuilder.LinkBuilder responseType ( final java.lang.String responseType ) { link.setResponse ( new org.ovirt.engine.api.model.Response ( ) { { setType ( responseType ) ; } } ) ; return this ; }

Target:
public org.ovirt.engine.api.rsdl.RsdlBuilder.LinkBuilder responseType ( final java.lang.String responseType ) { org.ovirt.engine.api.model.Response response = new org.ovirt.engine.api.model.Response ( ) ; response.setType ( responseType ) ; link.setResponse ( response ) ; return this ; }
Source:
private static org.dbunit.dataset.IDataSet initDataSet ( ) throws java.lang.Exception { return new org.dbunit.dataset.xml.XmlDataSet ( org.ovirt.engine.core.dao.BaseDAOTestCase.class . getResourceAsStream ( "/fixtures.xml" ) ) ; }

Target:
protected static org.dbunit.dataset.IDataSet initDataSet ( ) throws java.lang.Exception { return new org.dbunit.dataset.xml.XmlDataSet ( org.ovirt.engine.core.dao.BaseDAOTestCase.class . getResourceAsStream ( "/fixtures.xml" ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockRequest.getServletContext ( ) ) . thenReturn ( mockServletContext ) ; org.mockito.Mockito.when ( mockServletContext.getContextPath ( ) ) . thenReturn ( "" ) ; testFilter = new org.ovirt.engine.core.utils.servlet.LocaleFilter ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockRequest.getServletContext ( ) ) . thenReturn ( mockServletContext ) ; testFilter = new org.ovirt.engine.core.utils.servlet.LocaleFilter ( ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.ChangeFloppyCommand.getSucceeded ( ) ? org.ovirt.engine.core.compat.StringHelper.EqOp ( mCdImagePath , "" ) ? org.ovirt.engine.core.common.AuditLogType.USER_EJECT_VM_FLOPPY : org.ovirt.engine.core.common.AuditLogType.USER_CHANGE_FLOPPY_VM : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_CHANGE_FLOPPY_VM ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.ChangeFloppyCommand.getSucceeded ( ) ? "" . equals ( mCdImagePath ) ? org.ovirt.engine.core.common.AuditLogType.USER_EJECT_VM_FLOPPY : org.ovirt.engine.core.common.AuditLogType.USER_CHANGE_FLOPPY_VM : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_CHANGE_FLOPPY_VM ; }
Source:
public void onUserLogin ( org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedUser ) { setLoggedUser ( loggedUser ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }

Target:
public void onUserLogin ( ) { setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase eval ( org.ovirt.engine.core.common.businessentities.VmStatic vm ) { org.ovirt.engine.core.common.action.MigrateVmToServerParameters parameters = new org.ovirt.engine.core.common.action.MigrateVmToServerParameters ( false , vm.getId ( ) , vdsId ) ; parameters.setShouldBeLogged ( false ) ; return parameters ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase eval ( org.ovirt.engine.core.common.businessentities.VmStatic vm ) { org.ovirt.engine.core.common.action.MigrateVmToServerParameters parameters = new org.ovirt.engine.core.common.action.MigrateVmToServerParameters ( false , vm.getId ( ) , vds.getId ( ) ) ; parameters.setShouldBeLogged ( false ) ; return parameters ; }
Source:
private static org.ovirt.engine.core.dao.QuotaDAO getQuotaDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getQuotaDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.QuotaDAO getQuotaDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getQuotaDao ( ) ; }
Source:
public void validateOkSucceeds ( ) throws java.lang.Exception { setupMock ( ) ; command.getParameters ( ) . setJobId ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.jobId ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateOkSucceeds ( ) throws java.lang.Exception { command.getParameters ( ) . setJobId ( org.ovirt.engine.core.bll.ClearExternalJobCommandTest.jobId ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Object > cloneObjectMap ) { startProgress ( null ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.ImportVm , buildImportVmParameters ( cloneObjectMap ) , callback , this ) ; }

Target:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { startProgress ( null ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.ImportVm , buildImportVmParameters ( ) , callback , this ) ; }
Source:
protected boolean canDoAction ( ) { return ( checkRemoveEditValidations ( ) ) && ( checkAddEditValidations ( ) ) ; }

Target:
protected boolean validate ( ) { return ( checkRemoveEditValidations ( ) ) && ( checkAddEditValidations ( ) ) ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.storage_pool source ) { return ( source.getstatus ( ) ) != ( status ) ; }

Target:
public boolean Match ( org.ovirt.engine.core.common.businessentities.StoragePool source ) { return ( source.getstatus ( ) ) != ( status ) ; }
Source:
public void testIsInternalExecutionTrue ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; query.setInternalExecution ( true ) ; org.junit.Assert.assertTrue ( "Query should be marked for internal execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionTrue ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( ) ; query.setInternalExecution ( true ) ; org.junit.Assert.assertTrue ( "Query should be marked for internal execution" , query.isInternalExecution ( ) ) ; }
Source:
public void init ( ) { org.mockito.Mockito.doReturn ( getClusters ( ) ) . when ( clusterDao ) . getAll ( ) ; org.mockito.Mockito.doReturn ( taskUtils ) . when ( tasksSyncJob ) . getGlusterTaskUtils ( ) ; }

Target:
public void init ( ) { org.mockito.Mockito.doReturn ( getClusters ( ) ) . when ( clusterDao ) . getAll ( ) ; }
Source:
public org.ovirt.engine.api.model.Role update ( org.ovirt.engine.api.model.Role role ) { validateEnums ( org.ovirt.engine.api.model.Role.class , role ) ; return performUpdate ( role , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetRoleById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateRole , new org.ovirt.engine.api.restapi.resource.BackendRoleResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Role update ( org.ovirt.engine.api.model.Role role ) { validateEnums ( org.ovirt.engine.api.model.Role.class , role ) ; return performUpdate ( role , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetRoleById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateRole , new org.ovirt.engine.api.restapi.resource.BackendRoleResource.UpdateParametersProvider ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network map ( org.ovirt.engine.api.model.Network network , org.ovirt.engine.core.common.businessentities.network template ) { return getMapper ( org.ovirt.engine.api.model.Network.class , org.ovirt.engine.core.common.businessentities.network.class ) . map ( network , template ) ; }

Target:
private org.ovirt.engine.api.model.Network map ( org.ovirt.engine.api.model.Network network , org.ovirt.engine.api.model.Network template ) { return getMapper ( org.ovirt.engine.api.model.Network.class , org.ovirt.engine.api.model.Network.class ) . map ( network , template ) ; }
Source:
protected org.ovirt.engine.ui.webadmin.widget.storage.TemplatesTree < org.ovirt.engine.ui.uicommonweb.models.quota.QuotaTemplateListModel > getTree ( ) { return new org.ovirt.engine.ui.webadmin.widget.storage.TemplatesTree < org.ovirt.engine.ui.uicommonweb.models.quota.QuotaTemplateListModel > ( resources , constants , templates ) ; }

Target:
protected org.ovirt.engine.ui.webadmin.widget.storage.TemplatesTree < org.ovirt.engine.ui.uicommonweb.models.quota.QuotaTemplateListModel > getTree ( ) { return new org.ovirt.engine.ui.webadmin.widget.storage.TemplatesTree < org.ovirt.engine.ui.uicommonweb.models.quota.QuotaTemplateListModel > ( ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; setParentEntity ( ( ( T ) ( org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.AffinityGroupListModel.getEntity ( ) ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.AffinityGroupListModel.getSearchCommand ( ) . execute ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.list.AffinityGroupListModel.getSearchCommand ( ) . execute ( ) ; }
Source:
public void getZeroSnapshotsByMemory ( ) { org.junit.Assert.assertEquals ( dao.getNumOfSnapshotsByMemory ( org.ovirt.engine.core.dao.SnapshotDaoTest.NON_EXISTING_MEMORY_VOLUME ) , 0 ) ; }

Target:
public void getZeroSnapshotsByMemory ( ) { org.junit.Assert.assertEquals ( 0 , dao.getNumOfSnapshotsByMemory ( org.ovirt.engine.core.dao.SnapshotDaoTest.NON_EXISTING_MEMORY_VOLUME ) ) ; }
Source:
public boolean removeHost ( org.ovirt.engine.core.common.businessentities.VDS entity ) { return vms.remove ( entity.getId ( ) ) ; }

Target:
public boolean removeHost ( org.ovirt.engine.core.common.businessentities.VDS entity ) { return hosts.remove ( entity.getId ( ) ) ; }
Source:
void handleUiMode ( ) { org.ovirt.engine.ui.webadmin.uimode.UiModeData uiModeData = org.ovirt.engine.ui.webadmin.uimode.UiModeData.instance ( ) ; if ( uiModeData != null ) { org.ovirt.engine.core.common.mode.ApplicationMode uiMode = uiModeData.getUiMode ( ) ; org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.setUiMode ( uiMode ) ; } }

Target:
void handleUiMode ( org.ovirt.engine.ui.webadmin.uimode.UiModeData uiModeData ) { org.ovirt.engine.core.common.mode.ApplicationMode uiMode = uiModeData.getUiMode ( ) ; org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.setUiMode ( uiMode ) ; }
Source:
public void execute ( ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.logger.fine ( ( ( this . getClass ( ) . getName ( ) ) + ": Executing search" ) ) ; if ( getIsAsync ( ) ) { asyncSearch ( ) ; } else { syncSearch ( ) ; } }

Target:
public void execute ( ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.logger.fine ( ( ( this . getClass ( ) . getName ( ) ) + ": Executing search" ) ) ; syncSearch ( ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGeoRepSessionCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( null , null ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGeoRepSessionCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeGeoRepSessionParameters ( null , null ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; modelProvider.onSubTabSelected ( ) ; if ( ( getTable ( ) ) != null ) { getTable ( ) . setLoadingState ( LoadingState.LOADING ) ; } }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; modelProvider.onSubTabSelected ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM setUpVmEntityExpectations ( org.ovirt.engine.core.common.businessentities.VM entity , int index ) { org.easymock.EasyMock.expect ( entity.getId ( ) ) . andReturn ( GUIDS [ index ] ) . anyTimes ( ) ; return entity ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM setUpVmEntityExpectations ( org.ovirt.engine.core.common.businessentities.VM entity , int index ) { org.mockito.Mockito.when ( entity.getId ( ) ) . thenReturn ( GUIDS [ index ] ) ; return entity ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.lang.Integer.valueOf ( 0 ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( source == null ) || ( ( java.lang.Boolean ) ( source ) ) ; }
Source:
private void showContextMenu ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel panel , int clientX , int clientY ) { org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.menuPopup.setWidget ( menu ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.menuPopup.setPopupPosition ( clientX , clientY ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.menuPopup.show ( ) ; }

Target:
private void showContextMenu ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel panel , int clientX , int clientY ) { if ( ! ( menu.isEmpty ( ) ) ) { org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.menuPopup.setWidget ( menu ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.menuPopup.setPopupPosition ( clientX , clientY ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.menuPopup.show ( ) ; } }
Source:
public static org.ovirt.engine.ui.uicommonweb.models.vms.NewGuideVmInterfaceModel createInstance ( org.ovirt.engine.core.common.businessentities.VmBase vm , org.ovirt.engine.core.compat.Version clusterCompatibilityVersion , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > vmNicList , org.ovirt.engine.ui.uicommonweb.models.EntityModel sourceModel ) { org.ovirt.engine.ui.uicommonweb.models.vms.NewGuideVmInterfaceModel instance = org.ovirt.engine.ui.uicommonweb.models.vms.NewGuideVmInterfaceModel.createInstance ( vm , clusterCompatibilityVersion , vmNicList , sourceModel ) ; instance.init ( ) ; return instance ; }

Target:
public static org.ovirt.engine.ui.uicommonweb.models.vms.NewGuideVmInterfaceModel createInstance ( org.ovirt.engine.core.common.businessentities.VmBase vm , org.ovirt.engine.core.compat.Version clusterCompatibilityVersion , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > vmNicList , org.ovirt.engine.ui.uicommonweb.models.EntityModel sourceModel ) { org.ovirt.engine.ui.uicommonweb.models.vms.NewGuideVmInterfaceModel instance = new org.ovirt.engine.ui.uicommonweb.models.vms.NewGuideVmInterfaceModel ( vm , clusterCompatibilityVersion , vmNicList , sourceModel ) ; instance.init ( ) ; return instance ; }
Source:
public void setUp ( ) { super . setUp ( ) ; generateStorageToDisksMap ( ) ; initDestSDs ( ) ; org.mockito.Mockito.doReturn ( snapshotsValidator ) . when ( cmd ) . createSnapshotsValidator ( ) ; }

Target:
public void setUp ( ) { super . setUp ( ) ; generateStorageToDisksMap ( ) ; initDestSDs ( ) ; }
Source:
private java.lang.String getJsonDiskDescription ( ) throws java.io.IOException { return org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) . getDiskAlias ( ) , org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) . getDiskDescription ( ) ) ; }

Target:
private java.lang.String getJsonDiskDescription ( ) throws java.io.IOException { return org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) ) ; }
Source:
public void setModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VNodeModel nodeModel ) { virtualNodeName.setText ( org.ovirt.engine.ui.common.view.popup.numa.VirtualNumaPanel.messages.vNumaName ( nodeModel.getVm ( ) . getName ( ) , nodeModel.getVmNumaNode ( ) . getIndex ( ) ) ) ; setStatusIcon ( nodeModel ) ; setTypeIcon ( nodeModel ) ; }

Target:
public void setModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VNodeModel nodeModel ) { virtualNodeName.setText ( org.ovirt.engine.ui.common.view.popup.numa.VirtualNumaPanel.messages.vNumaName ( nodeModel.getVm ( ) . getName ( ) , nodeModel.getIndex ( ) ) ) ; setStatusIcon ( nodeModel ) ; setTypeIcon ( nodeModel ) ; }
Source:
protected java.util.List < T > getSelectedItems ( ) { return org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractMainTabWithDetailsPresenter.getView ( ) . getTable ( ) . getSelectionModel ( ) . getSelectedList ( ) ; }

Target:
protected java.util.List < T > getSelectedItems ( ) { return getTable ( ) . getSelectionModel ( ) . getSelectedList ( ) ; }
Source:
private boolean hasHostExternalStatus ( ) { return ( ( org.ovirt.engine.core.bll.AddExternalEventCommand.getParameters ( ) . getEvent ( ) . getVdsId ( ) ) != null ) && ( ( org.ovirt.engine.core.bll.AddExternalEventCommand.getParameters ( ) . getExternalStatus ( ) ) != null ) ; }

Target:
private boolean hasHostExternalStatus ( ) { return ( ( getEvent ( ) . getVdsId ( ) ) != null ) && ( ( org.ovirt.engine.core.bll.AddExternalEventCommand.getParameters ( ) . getExternalStatus ( ) ) != null ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { }

Target:
public void onSuccess ( java.lang.Object returnValue ) { }
Source:
protected void TestVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalQuery ( VdcQueryType.GetVdsFenceStatus , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( vdsStatic.getId ( ) ) ) ; } }

Target:
protected void TestVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { runInternalQuery ( VdcQueryType.GetVdsFenceStatus , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( vdsStatic.getId ( ) ) ) ; } }
Source:
public boolean connectToServer ( java.lang.String server , java.lang.String passwd , long timeout ) { return wrapper.connect ( server , passwd , timeout ) ; }

Target:
public boolean connectToServer ( java.lang.String server , java.lang.String passwd , long timeout ) { this . server = server ; return wrapper.connect ( server , passwd , timeout ) ; }
Source:
public java.lang.Object getQueryableId ( ) { return getId ( ) ; }

Target:
public java.lang.String toString ( ) { return getString ( ) ; }
Source:
private void assertCanDoActionMessage ( org.ovirt.engine.core.dal.VdcBllMessages msg ) { junit.framework.Assert.assertTrue ( "canDoAction failed for the wrong reason" , command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( msg.toString ( ) ) ) ; }

Target:
private void assertCanDoActionMessage ( org.ovirt.engine.core.dal.VdcBllMessages msg ) { junit.framework.Assert.assertTrue ( "canDoAction failed for the wrong reason" , command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( msg.name ( ) ) ) ; }
Source:
protected boolean canDoAction ( ) { M validator = getQosValidator ( getQos ( ) ) ; return ( validateParameters ( ) ) && ( validate ( validator.requiredValuesPresent ( ) ) ) ; }

Target:
protected boolean validate ( ) { M validator = getQosValidator ( getQos ( ) ) ; return ( validateParameters ( ) ) && ( validate ( validator.requiredValuesPresent ( ) ) ) ; }
Source:
public static org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return ( vmBase.getVdsGroupId ( ) ) != null ? org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . getVdsGroupDao ( ) . get ( vmBase.getVdsGroupId ( ) ) . getcompatibility_version ( ) : org.ovirt.engine.core.compat.Version.v3_0 ; }

Target:
public static org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return ( vmBase.getVdsGroupId ( ) ) != null ? org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . getVdsGroupDao ( ) . get ( vmBase.getVdsGroupId ( ) ) . getCompatibilityVersion ( ) : org.ovirt.engine.core.compat.Version.v3_0 ; }
Source:
public boolean Validate ( ) { return true ; }

Target:
private boolean validate ( ) { return true ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( ) { return createVdsInterface ( "bond0" , true , null , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 100 ) , null , null , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( ) { return createVdsInterface ( "bond0" , true , null , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 100 ) , null , null , null , null ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Erratum getSelectedErratum ( ) { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) com.google.gwt.view.client.SingleSelectionModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.Erratum > > selectionModel = ( ( com.google.gwt.view.client.SingleSelectionModel ) ( errataTable.getSelectionModel ( ) ) ) ; org.ovirt.engine.core.common.businessentities.Erratum erratum = selectionModel.getSelectedObject ( ) . getEntity ( ) ; return erratum ; }

Target:
public org.ovirt.engine.core.common.businessentities.Erratum getSelectedErratum ( ) { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) com.google.gwt.view.client.SingleSelectionModel < org.ovirt.engine.core.common.businessentities.Erratum > selectionModel = ( ( com.google.gwt.view.client.SingleSelectionModel ) ( errataTable.getSelectionModel ( ) ) ) ; return selectionModel.getSelectedObject ( ) ; }
Source:
public void setOriginalReturnValue ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue originalReturnValue ) { this . OriginalReturnValue = originalReturnValue ; }

Target:
public void setOriginalReturnValue ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue originalReturnValue ) { this . originalReturnValue = originalReturnValue ; }
Source:
private static org.ovirt.engine.core.bll.storage.pool.RemoveStoragePoolCommand < org.ovirt.engine.core.common.action.StoragePoolParametersBase > createCommand ( org.ovirt.engine.core.common.action.StoragePoolParametersBase param ) { return new org.ovirt.engine.core.bll.storage.pool.RemoveStoragePoolCommand ( param ) ; }

Target:
private static org.ovirt.engine.core.bll.storage.pool.RemoveStoragePoolCommand < org.ovirt.engine.core.common.action.StoragePoolParametersBase > createCommand ( org.ovirt.engine.core.common.action.StoragePoolParametersBase param ) { return new org.ovirt.engine.core.bll.storage.pool.RemoveStoragePoolCommand ( param , null ) ; }
Source:
protected void endSuccessfully ( ) { removeImage ( org.ovirt.engine.core.bll.MoveImageGroupCommand.getParameters ( ) . getSourceDomainId ( ) . getValue ( ) ) ; super . endSuccessfully ( ) ; }

Target:
protected void endSuccessfully ( ) { removeImage ( org.ovirt.engine.core.bll.MoveImageGroupCommand.getParameters ( ) . getSourceDomainId ( ) ) ; super . endSuccessfully ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult snapshotExists ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { return org.ovirt.engine.core.bll.snapshots.SnapshotsValidator.createSnapshotExistsResult ( ( snapshot != null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult snapshotExists ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { return createSnapshotExistsResult ( ( snapshot != null ) ) ; }
Source:
public void testIsInternalExecutionFalse ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; query.setInternalExecution ( true ) ; query.setInternalExecution ( false ) ; org.junit.Assert.assertFalse ( "Query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionFalse ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( ) ; query.setInternalExecution ( true ) ; query.setInternalExecution ( false ) ; org.junit.Assert.assertFalse ( "Query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.VmDeviceDAO getVmDeviceDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VmDeviceDAO getVmDeviceDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDao ( ) ; }
Source:
java.util.Set < org.ovirt.engine.core.compat.Guid > getNetworksByVfsConfigId ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { return new java.util.HashSet < org.ovirt.engine.core.compat.Guid > ( getCallsHandler ( ) . executeReadList ( "GetNetworksByVfsConfigId" , createGuidMapper ( ) , createVfsConfigIdParameter ( vfsConfigId ) ) ) ; }

Target:
java.util.Set < org.ovirt.engine.core.compat.Guid > getNetworksByVfsConfigId ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { return new java.util.HashSet ( getCallsHandler ( ) . executeReadList ( "GetNetworksByVfsConfigId" , createGuidMapper ( ) , createVfsConfigIdParameter ( vfsConfigId ) ) ) ; }
Source:
public void load ( ) throws org.ovirt.engine.core.extensions.mgr.ConfigurationException { for ( java.io.File directory : org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getExtensionsDirectories ( ) ) { load ( directory ) ; } activate ( ) ; }

Target:
private void load ( ) throws org.ovirt.engine.core.extensions.mgr.ConfigurationException { for ( java.io.File directory : org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getExtensionsDirectories ( ) ) { load ( directory ) ; } activate ( ) ; }
Source:
public static boolean isLiveMergeSupported ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( vm != null ) && ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.LiveMergeSupported , vm.getVdsGroupCompatibilityVersion ( ) . toString ( ) ) ) ) ; }

Target:
public boolean isLiveMergeSupported ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( vm != null ) && ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveMergeSupported , vm.getVdsGroupCompatibilityVersion ( ) . toString ( ) ) ) ) ; }
Source:
public void generate ( ) throws java.io.IOException , javax.xml.bind.JAXBException { doCleanPackage ( this . distPath ) ; doGenerate ( this . distPath ) ; doCompile ( ) ; }

Target:
public void generate ( ) throws java.io.IOException , javax.xml.bind.JAXBException { doCleanPackage ( this . distPath ) ; doGenerate ( this . distPath ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getSlaveVolume ( ) { return getGlusterVolumeDao ( ) . getByName ( getVdsDAO ( ) . get ( getParameters ( ) . getId ( ) ) . getVdsGroupId ( ) , getParameters ( ) . getRemoteVolumeName ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getSlaveVolume ( ) { return getGlusterVolumeDao ( ) . getByName ( getParameters ( ) . getId ( ) , getParameters ( ) . getRemoteVolumeName ( ) ) ; }
Source:
public static < TSource > TSource firstOrDefault ( java.lang.Iterable < TSource > source ) { for ( TSource item : source ) { return item ; } return null ; }

Target:
public static < TSource > TSource firstOrDefault ( java.lang.Iterable < TSource > source ) { if ( source != null ) { for ( TSource item : source ) { return item ; } } return null ; }
Source:
public void validateOkSucceeds ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.stepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateOkSucceeds ( ) throws java.lang.Exception { parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.stepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public org.ovirt.engine.core.common.users.VdcUser getLoggedUser ( ) { privateLoggedUser.setPassword ( ( ( java.lang.String ) ( getPassword ( ) . getEntity ( ) ) ) ) ; return privateLoggedUser ; }

Target:
public org.ovirt.engine.core.common.users.VdcUser getLoggedUser ( ) { return privateLoggedUser ; }
Source:
protected static boolean canAttachPrestartedVmToUser ( org.ovirt.engine.core.compat.Guid vmId ) { boolean returnValue = ! ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmAssignedToUser ( vmId , new java.util.ArrayList < java.lang.String > ( ) ) ) ; returnValue = returnValue && ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmIsRunningStateless ( vmId ) ) ; return returnValue ; }

Target:
protected static boolean canAttachPrestartedVmToUser ( org.ovirt.engine.core.compat.Guid vmId ) { return ( ! ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmAssignedToUser ( vmId , new java.util.ArrayList < java.lang.String > ( ) ) ) ) && ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmIsRunningStateless ( vmId ) ) ; }