auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean AddAsyncRunningVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.IVdsEventListener listener ) { boolean returnValue = false ; if ( ( _asyncRunningVms.putIfAbsent ( vmId , listener ) ) == null ) { returnValue = true ; } return returnValue ; }

Target:
public boolean AddAsyncRunningVm ( org.ovirt.engine.core.compat.Guid vmId ) { boolean returnValue = false ; if ( ( _asyncRunningVms.putIfAbsent ( vmId , java.lang.Boolean.TRUE ) ) == null ) { returnValue = true ; } return returnValue ; }
Source:
public void AddDisk ( ) { if ( ( getEntity ( ) ) != null ) { StartProgress ( null ) ; disks = null ; AddDiskUpdateData ( ) ; } }

Target:
public void AddDisk ( ) { if ( ( getEntity ( ) ) != null ) { AddDiskUpdateData ( ) ; } }
Source:
public java.lang.String getRelatedTableName ( java.lang.String obj ) { if ( obj == null ) { return null ; } else if ( ( org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( obj ) ) != null ) { return org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( obj ) . relatedTableName ; } return null ; }

Target:
private java.lang.String getRelatedTableName ( java.lang.String obj ) { if ( obj == null ) { return null ; } else if ( ( org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( obj ) ) != null ) { return org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter.getEntitySearchInfo ( obj ) . relatedTableName ; } return null ; }
Source:
public void run ( ) { org.ovirt.engine.core.bll.InitBackendServicesOnStartupBean.log.infoFormat ( "MacPoolManager started: {0}" , new java.util.Date ( ) ) ; org.ovirt.engine.core.bll.network.MacPoolManager.getInstance ( ) . initialize ( ) ; org.ovirt.engine.core.bll.InitBackendServicesOnStartupBean.log.infoFormat ( "MacPoolManager finished: {0}" , new java.util.Date ( ) ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.bll.network.MacPoolManager.getInstance ( ) . initialize ( ) ; }
Source:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( FixturesTool.USER_EXISTING_ID , ActionGroup.CONSUME_QUOTA , FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( FixturesTool.USER_EXISTING_ID , ActionGroup.CONSUME_QUOTA , FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot getInPreview ( ) { for ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot : ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Snapshot > ) ( getItems ( ) ) ) ) { if ( ( snapshot.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.IN_PREVIEW ) ) { return snapshot ; } } return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot getInPreview ( ) { return getInPreview ( getItems ( ) ) ; }
Source:
protected javax.ws.rs.core.Response actionStatus ( org.ovirt.engine.api.model.CreationStatus status , org.ovirt.engine.api.model.Action action , java.lang.Object result ) { setActionItem ( action , result ) ; action.setStatus ( org.ovirt.engine.api.common.util.StatusUtils.create ( status ) ) ; return javax.ws.rs.core.Response.ok ( ) . entity ( action ) . build ( ) ; }

Target:
protected javax.ws.rs.core.Response actionStatus ( org.ovirt.engine.api.model.CreationStatus status , org.ovirt.engine.api.model.Action action , java.lang.Object result ) { setActionItem ( action , result ) ; action.setStatus ( status.value ( ) ) ; return javax.ws.rs.core.Response.ok ( ) . entity ( action ) . build ( ) ; }
Source:
public void setParameters ( java.lang.String value ) { switch ( getVmPoolType ( ) ) { case TimeLease : { initializeTimeLeasedDefaultData ( value ) ; break ; } default : { parameters = value ; break ; } } }

Target:
public void setParameters ( java.lang.String value ) { parameters = value ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getVmMemSizeMb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return ( java.lang.String.valueOf ( object.getVm ( ) . getVmMemSizeMb ( ) ) ) + " MB" ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.Cluster > clusters = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.Cluster > ) ( returnValue ) ) ; dcClusters.put ( dcId , clusters ) ; attachNetworkToClusters ( network , clusters , publicUse ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters ) { dcClusters.put ( dcId , clusters ) ; attachNetworkToClusters ( network , clusters , publicUse ) ; }
Source:
public void canCreateAsMuchNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 4 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }

Target:
public void canCreateAsMuchNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 4 ) ; org.assertj.core.api.Assertions.assertThat ( command.validate ( ) ) . isTrue ( ) ; }
Source:
public void add ( ) { if ( ( getWindow ( ) ) != null ) { return ; } final org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel providerModel = new org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel ( this ) ; setWindow ( providerModel ) ; }

Target:
private void add ( ) { if ( ( getWindow ( ) ) != null ) { return ; } setWindow ( new org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel ( this ) ) ; }
Source:
public org.ovirt.engine.api.model.Quota get ( ) { org.ovirt.engine.core.common.queries.GetQuotaByQuotaIdQueryParameters params = new org.ovirt.engine.core.common.queries.GetQuotaByQuotaIdQueryParameters ( ) ; params.setQuotaId ( guid ) ; org.ovirt.engine.api.model.Quota quota = performGet ( VdcQueryType.GetQuotaByQuotaId , params ) ; return quota ; }

Target:
public org.ovirt.engine.api.model.Quota get ( ) { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ; org.ovirt.engine.api.model.Quota quota = performGet ( VdcQueryType.GetQuotaByQuotaId , params ) ; return quota ; }
Source:
public void setbookmark_name ( java.lang.String name ) { this . name = name ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "bookmark_name" ) ) ; }

Target:
public void setbookmark_name ( java.lang.String name ) { this . name = name ; }
Source:
public boolean isSetBoot ( ) { return ( ( this . boot ) != null ) && ( ! ( this . boot.isEmpty ( ) ) ) ; }

Target:
public boolean isSetBoot ( ) { return ( this . boot ) != null ; }
Source:
public void testVmAppliedBeforeConfig ( ) { setupVmWithSerialNumber ( SerialNumberPolicy.CUSTOM , org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_VM_SERIAL ) ; setupConfigWithSerialNumber ( SerialNumberPolicy.CUSTOM , org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_CONFIG_SERIAL ) ; assertSerialNumber ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_VM_SERIAL ) ; }

Target:
public void testVmAppliedBeforeConfig ( ) { setupVmWithSerialNumber ( SerialNumberPolicy.CUSTOM , org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_VM_SERIAL ) ; assertSerialNumber ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilderTest.CUSTOM_VM_SERIAL ) ; }
Source:
protected void updateCustomPropertySheet ( ) { if ( ( getModel ( ) . getSelectedCluster ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getModel ( ) . getSelectedCluster ( ) ; updateCustomPropertySheet ( cluster.getCompatibilityVersion ( ) ) ; }

Target:
protected void updateCustomPropertySheet ( ) { if ( ( getModel ( ) . getCompatibilityVersion ( ) ) != null ) { updateCustomPropertySheet ( getModel ( ) . getCompatibilityVersion ( ) ) ; } }
Source:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; vds.setClusterCompatibilityVersion ( Version.v3_4 ) ; }

Target:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; }
Source:
private org.ovirt.engine.core.bll.AddQuotaCommand createCommand ( ) { org.ovirt.engine.core.common.action.QuotaCRUDParameters param = new org.ovirt.engine.core.common.action.QuotaCRUDParameters ( mockGeneralStorageQuota ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddQuotaCommand ( param ) ) ; org.mockito.Mockito.doReturn ( quotaDao ) . when ( command ) . getQuotaDao ( ) ; return command ; }

Target:
private org.ovirt.engine.core.bll.AddQuotaCommand createCommand ( ) { org.ovirt.engine.core.common.action.QuotaCRUDParameters param = new org.ovirt.engine.core.common.action.QuotaCRUDParameters ( mockGeneralStorageQuota ( ) ) ; command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.AddQuotaCommand ( param , null ) ) ; org.mockito.Mockito.doReturn ( quotaDao ) . when ( command ) . getQuotaDao ( ) ; return command ; }
Source:
public void add ( ) { runAddAndVerify ( createNewInterface ( ) , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }

Target:
public void add ( ) { runAddAndVerify ( createNewInterface ( ) , false , org.mockito.Mockito.times ( 0 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }
Source:
public static double truncatePercentage ( double value ) { return java.lang.Math.min ( 100 , value ) ; }

Target:
private static double truncatePercentage ( double value ) { return java.lang.Math.min ( 100 , value ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel clusterNetworkManageModel ) { networks.asEditor ( ) . edit ( clusterNetworkManageModel ) ; initEntityModelCellTable ( constants , templates ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel clusterNetworkManageModel ) { networks.asEditor ( ) . edit ( clusterNetworkManageModel ) ; initEntityModelCellTable ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . setTestResultImage ( ( ( java.lang.Boolean ) ( model.getTestResult ( ) . getEntity ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getView ( ) . setTestResultImage ( ( ( java.lang.String ) ( model.getTestResult ( ) . getEntity ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmInit get ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.VmInit vmInit = getCallsHandler ( ) . executeRead ( "GetVmInitByVmId" , org.ovirt.engine.core.dao.VmInitDaoImpl.VMInitRowMapper.instance , getIdParamterSource ( id ) ) ; return vmInit ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmInit get ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetVmInitByVmId" , org.ovirt.engine.core.dao.VmInitDaoImpl.VMInitRowMapper.instance , getIdParamterSource ( id ) ) ; }
Source:
public void findActiveVmsUsingNetworks ( ) { mockDaos ( ) ; java.util.List < java.lang.String > vmNames = vmInterfaceManager.findActiveVmsUsingNetworks ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , java.util.Collections.singletonList ( NETWORK_NAME ) ) ; org.junit.Assert.assertTrue ( vmNames.contains ( VM_NAME ) ) ; }

Target:
public void findActiveVmsUsingNetworks ( ) { mockDaos ( true ) ; java.util.List < java.lang.String > vmNames = vmInterfaceManager.findActiveVmsUsingNetworks ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , java.util.Collections.singletonList ( NETWORK_NAME ) ) ; org.junit.Assert.assertTrue ( vmNames.contains ( VM_NAME ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addNetworkInterfaceDevice ( org.ovirt.engine.core.common.businessentities.VmDeviceId id , boolean plugged ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( id , VmDeviceGeneralType.INTERFACE , VmDeviceType.BRIDGE , java.util.Collections.< java.lang.String , java.lang.Object > emptyMap ( ) , plugged , false ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addNetworkInterfaceDevice ( org.ovirt.engine.core.common.businessentities.VmDeviceId id , boolean plugged ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( id , VmDeviceGeneralType.INTERFACE , VmDeviceType.BRIDGE , java.util.Collections.< java.lang.String , java.lang.Object > emptyMap ( ) , plugged , false , null ) ; }
Source:
public void testRemoveWithParam ( ) { container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ; container.removeSession ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.junit.Assert.assertNull ( "Get should return null since the session was removed" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ) ; }

Target:
public void testRemoveWithParam ( ) { container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ; container.removeSession ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.junit.Assert.assertNull ( "Get should return null since the session was removed" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
public void setLogo ( com.google.gwt.user.client.ui.Widget widget ) { logoPanel.setWidget ( widget ) ; updateTitlePadding ( ) ; }

Target:
public void setLogo ( com.google.gwt.user.client.ui.Widget widget ) { logoPanel.setWidget ( widget ) ; }
Source:
public void testGetAllForConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForConnection ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForConnection ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogoffVDSCommand.getBroker ( ) . desktopLogoff ( mVmId.toString ( ) , new java.lang.Boolean ( mForce ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogoffVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogoffVDSCommand.getBroker ( ) . desktopLogoff ( mVmId.toString ( ) , java.lang.String.valueOf ( mForce ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmLogoffVDSCommand.ProceedProxyReturnValue ( ) ; }
Source:
private void logException ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VDSCommandBase.log.errorFormat ( "Command {0} execution failed. Exception: {1}" , org.ovirt.engine.core.vdsbroker.VDSCommandBase.getCommandName ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logException ( java.lang.RuntimeException ex ) { log.errorFormat ( "Command {0} execution failed. Exception: {1}" , org.ovirt.engine.core.vdsbroker.VDSCommandBase.getCommandName ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }
Source:
public void testGetDataAndSetDataWithEmptySession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( "" ) ; org.junit.Assert.assertFalse ( "Set should fail with an empty session" , container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ) ; org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ) ; }

Target:
public void testGetDataAndSetDataWithEmptySession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( "" ) ; org.junit.Assert.assertFalse ( "Set should fail with an empty session" , container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_VALUE ) ) ; org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
public void setiso_path ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( mVmStatic.getiso_path ( ) , value ) ) ) { mVmStatic.setiso_path ( value ) ; } }

Target:
public void setiso_path ( java.lang.String value ) { mVmStatic.setiso_path ( value ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { java.lang.String propName = args.propertyName ; if ( propName.equals ( "IsValid" ) ) { onIsValidPropertyChange ( object ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { java.lang.String propName = args.propertyName ; if ( propName.equals ( "IsValid" ) ) { onIsValidPropertyChange ( object ) ; } }
Source:
protected org.ovirt.engine.core.dao.StorageDomainDAO getStorageDomainDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.StorageDomainDAO getStorageDomainDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Role object ) { return object.getname ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Role object ) { return object.getName ( ) ; }
Source:
protected boolean canDoAction ( ) { return org.ovirt.engine.core.bll.storage.pool.SetStoragePoolStatusCommand.checkStoragePool ( ) ; }

Target:
protected boolean validate ( ) { return org.ovirt.engine.core.bll.storage.pool.SetStoragePoolStatusCommand.checkStoragePool ( ) ; }
Source:
public void canDoActionSucceeds ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand < org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters > ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_3 ) ) ) ; prepareMocks ( command ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_3 ) ) ) ; prepareMocks ( command ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
public static < T > org.ovirt.engine.ui.common.widget.editor.ValueBoxEditorChanger < T > of ( com.google.gwt.user.client.ui.ValueBoxBase < T > valueBox ) { return new org.ovirt.engine.ui.common.widget.editor.ValueBoxEditorChanger < T > ( valueBox ) ; }

Target:
public static < T > org.ovirt.engine.ui.common.widget.editor.ValueBoxEditorChanger < T > of ( com.google.gwt.user.client.ui.ValueBoxBase < T > valueBox ) { return new org.ovirt.engine.ui.common.widget.editor.ValueBoxEditorChanger ( valueBox ) ; }
Source:
public void setStorageName ( java.lang.String storageName ) { getStorageStaticData ( ) . setstorage_name ( storageName ) ; }

Target:
public void setStorageName ( java.lang.String storageName ) { getStorageStaticData ( ) . setStorageName ( storageName ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 120 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 0 ; }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback , final java.lang.Object state , final boolean showErrorDialog ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( actionType , parameters , callback , state , showErrorDialog ) ; }

Target:
public void runAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback ) { runAction ( actionType , parameters , callback , null ) ; }
Source:
private void mockDbDAO ( ) { mockDbFacade ( ) ; mockVdsGroupDAO ( ) ; mockVMPoolDAO ( ) ; mockVMTemplateDAO ( ) ; mockVmNetworkInterfaceDao ( ) ; }

Target:
private void mockDbDAO ( ) { mockVdsGroupDAO ( ) ; mockVMPoolDAO ( ) ; mockVMTemplateDAO ( ) ; mockVmNetworkInterfaceDao ( ) ; }
Source:
private void cancelUpload ( ) { org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.showCancelUploadDialog ( this , HelpTag.cancel_upload_image_to_domain , org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.storage.DiskImage > cast ( getSelectedItems ( ) ) ) ; }

Target:
private void cancelUpload ( ) { org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.showCancelUploadDialog ( this , HelpTag.cancel_upload_image_to_domain , getSelectedItems ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , java.util.Collections.< org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > emptyMap ( ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , new java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true , null ) ; org.ovirt.engine.core.bll.quota.QuotaManager.getInstance ( ) . updateUsage ( quotaList ) ; return quotaList ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true ) ; org.ovirt.engine.core.bll.quota.QuotaManager.getInstance ( ) . updateUsage ( quotaList ) ; return quotaList ; }
Source:
protected boolean shouldDestroyOnClose ( ) { return false ; }

Target:
protected boolean shouldDestroyOnClose ( ) { return true ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > GetAllTags ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > ret = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > ( tagsMapByID.values ( ) ) ; ret.remove ( GetRootTag ( ) ) ; return ret ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > GetAllTags ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Tags > ret = new java.util.ArrayList ( tagsMapByID.values ( ) ) ; ret.remove ( GetRootTag ( ) ) ; return ret ; }
Source:
protected boolean checkStorageDomainSharedStatusNotLocked ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { boolean returnValue = ( storageDomain != null ) && ( ( storageDomain.getstorage_domain_shared_status ( ) ) != ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus.Locked ) ) ; if ( ! returnValue ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL ) ; } return returnValue ; }

Target:
protected boolean checkStorageDomainSharedStatusNotLocked ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean returnValue = ( storageDomain != null ) && ( ( storageDomain.getstorage_domain_shared_status ( ) ) != ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus.Locked ) ) ; if ( ! returnValue ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL ) ; } return returnValue ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.provider.ProviderValidator validator = new org.ovirt.engine.core.bll.provider.ProviderValidator ( getProvider ( ) ) ; return ( validate ( validator.providerIsSet ( ) ) ) && ( super . canDoAction ( ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.bll.provider.ProviderValidator validator = new org.ovirt.engine.core.bll.provider.ProviderValidator ( getProvider ( ) ) ; return ( validate ( validator.providerIsSet ( ) ) ) && ( super . validate ( ) ) ; }
Source:
public void setUp ( ) { comp = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( true ) ; }

Target:
public void setUp ( ) { comp = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromBookmarks" , new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromBookmarks" , org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper.instance , parameterSource ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getDeletedProvider ( ) { if ( ( deletedProvider ) == null ) { deletedProvider = getProviderDao ( ) . get ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; } return deletedProvider ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getDeletedProvider ( ) { if ( ( deletedProvider ) == null ) { deletedProvider = org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getProviderDao ( ) . get ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; } return deletedProvider ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { return org.apache.commons.lang.StringUtils.equals ( i.getNetworkName ( ) , net.getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i ) { return org.apache.commons.lang.StringUtils.equals ( i.getNetworkName ( ) , net.getname ( ) ) ; }
Source:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( vds_group_compatibility_versionField , value ) ) { this . vds_group_compatibility_versionField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_compatibility_version" ) ) ; } }

Target:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( vds_group_compatibility_versionField , value ) ) { this . vds_group_compatibility_versionField = value ; } }
Source:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) ) == null ) { return ; } org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.reestablishConnectionIfNeeded ( ) ; vdsInitialStatus = org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) . getStatus ( ) ; installHost ( ) ; }

Target:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) ) == null ) { return ; } vdsInitialStatus = org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) . getStatus ( ) ; installHost ( ) ; }
Source:
public void validateFailsWithEmptyBricksList ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , new java.util.ArrayList < > ( ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithEmptyBricksList ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , new java.util.ArrayList < > ( ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
private boolean isBalloonEnabled ( ) { java.lang.Boolean balloonEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isBalloonEnabled ( ) ; return balloonEnabled != null ? balloonEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isBalloonEnabled ( getVmId ( ) ) ; }

Target:
protected boolean isBalloonEnabled ( ) { java.lang.Boolean balloonEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isBalloonEnabled ( ) ; return balloonEnabled != null ? balloonEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isBalloonEnabled ( getVmId ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getVmImageDisks ( ) { if ( ( cachedVmImageDisks ) == null ) { cachedVmImageDisks = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getVmDisks ( ) , true , false ) ; } return cachedVmImageDisks ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getVmImageDisks ( ) { if ( ( cachedVmImageDisks ) == null ) { cachedVmImageDisks = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getVmDisks ( ) , true , false , false ) ; } return cachedVmImageDisks ; }
Source:
private org.ovirt.engine.core.vdsbroker.VmsMonitoring getVmsMonitoring ( org.ovirt.engine.core.vdsbroker.VmsListFetcher fetcher , long fetchTime ) { return new org.ovirt.engine.core.vdsbroker.VmsMonitoring ( vdsManager , fetcher.getChangedVms ( ) , fetcher.getVmsWithChangedDevices ( ) , auditLogDirector , fetchTime , isTimeToRefreshStatistics ( ) ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.VmsMonitoring getVmsMonitoring ( org.ovirt.engine.core.vdsbroker.VmsListFetcher fetcher , long fetchTime ) { return new org.ovirt.engine.core.vdsbroker.VmsMonitoring ( vdsManager , fetcher.getChangedVms ( ) , auditLogDirector , fetchTime , isTimeToRefreshStatistics ( ) ) ; }
Source:
public static org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vm.getStaticData ( ) ) ; }

Target:
public org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VM vm ) { return getCompatibilityVersion ( vm.getStaticData ( ) ) ; }
Source:
public void toFile ( java.lang.String krb5ConfPath , java.lang.StringBuffer sb ) throws java.io.FileNotFoundException , java.io.IOException { java.io.FileOutputStream fos = new java.io.FileOutputStream ( krb5ConfPath ) ; fos.write ( sb.toString ( ) . getBytes ( ) ) ; fos.close ( ) ; }

Target:
public void toFile ( java.lang.String krb5ConfPath , java.lang.StringBuffer sb ) throws java.io.FileNotFoundException , java.io.IOException { try ( java.io.FileOutputStream fos = new java.io.FileOutputStream ( krb5ConfPath ) ) { fos.write ( sb.toString ( ) . getBytes ( ) ) ; } }
Source:
protected org.ovirt.engine.api.model.Template getRestModel ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendTemplatesResourceTest.getModel ( index ) ; }

Target:
private org.ovirt.engine.api.model.Template getRestModel ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendTemplatesResourceTest.getModel ( index ) ; }
Source:
public void testNewStorageTypes ( ) { org.junit.Assert.assertTrue ( ( "A storage type was added/removed. Update this test, and the isFileDomain/isBlockDomain " + "method accordingly" ) , ( ( org.ovirt.engine.core.common.businessentities.storage.StorageType.values ( ) . length ) == 9 ) ) ; }

Target:
public void testNewStorageTypes ( ) { org.junit.Assert.assertEquals ( ( "A storage type was added/removed. Update this test, and the isFileDomain/isBlockDomain " + "method accordingly" ) , 9 , org.ovirt.engine.core.common.businessentities.storage.StorageType.values ( ) . length ) ; }
Source:
private org.ovirt.engine.core.bll.ImportVmTemplateCommand setupDiskSpaceTest ( final int extraDiskSpaceRequired , final int pctOfSpaceRequired ) { mcr.mockConfigValue ( ConfigValues.FreeSpaceCriticalLowInGB , extraDiskSpaceRequired ) ; mcr.mockConfigValue ( ConfigValues.FreeSpaceLow , pctOfSpaceRequired ) ; return new org.ovirt.engine.core.bll.TestHelperImportVmTemplateCommand ( createParameters ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.ImportVmTemplateCommand setupDiskSpaceTest ( final int extraDiskSpaceRequired ) { mcr.mockConfigValue ( ConfigValues.FreeSpaceCriticalLowInGB , extraDiskSpaceRequired ) ; return new org.ovirt.engine.core.bll.TestHelperImportVmTemplateCommand ( createParameters ( ) ) ; }
Source:
public static java.lang.String getI18NPrefix ( ) { if ( ( org.ovirt.engine.core.common.config.Config.getConfigUtils ( ) ) == null ) return "" ; else return org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.DBI18NPrefix ) ; }

Target:
public static java.lang.String getI18NPrefix ( ) { if ( ( org.ovirt.engine.core.common.config.Config.getConfigUtils ( ) ) == null ) return "" ; else return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.DBI18NPrefix ) ; }
Source:
private org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }
Source:
private void closeChannel ( ) { try { this . channel.close ( ) ; } catch ( java.io.IOException e ) { } finally { this . channel = null ; } }

Target:
private void closeChannel ( ) { try { if ( ( this . channel ) != null ) { this . channel.close ( ) ; } } catch ( java.io.IOException e ) { } finally { this . channel = null ; } }
Source:
public java.util.Collection < java.lang.String > getGroupNames ( ) { return java.util.Collections.unmodifiableCollection ( groupNames ) ; }

Target:
public java.util.Collection < java.lang.String > getGroupNames ( ) { return new java.util.ArrayList < java.lang.String > ( groupNames ) ; }
Source:
public java.lang.Void runInTransaction ( ) { hostDeviceDao.saveAllInBatch ( newDevices ) ; hostDeviceDao.updateAllInBatch ( changedDevices ) ; hostDeviceDao.removeAllInBatch ( removedDevices ) ; handleHostNicVfsConfigUpdate ( newDevices , changedDevices , removedDevices ) ; vmDeviceDao.removeAllInBatch ( removedVmDevices ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { hostDeviceDao.saveAllInBatch ( newDevices ) ; hostDeviceDao.updateAllInBatch ( changedDevices ) ; hostDeviceDao.removeAllInBatch ( removedDevices ) ; handleHostNicVfsConfigUpdate ( ) ; vmDeviceDao.removeAllInBatch ( removedVmDevices ) ; return null ; }
Source:
protected void init ( ) { super . init ( ) ; resource.getParent ( ) . backend = backend ; resource.getParent ( ) . mappingLocator = resource.mappingLocator ; resource.getParent ( ) . httpHeaders = httpHeaders ; }

Target:
protected void init ( ) { super . init ( ) ; resource.getParent ( ) . mappingLocator = resource.mappingLocator ; resource.getParent ( ) . httpHeaders = httpHeaders ; }
Source:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { this . id = value ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid id ) { this . id = id ; }
Source:
private void processSessionIdException ( ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; }

Target:
void processSessionIdException ( ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase EndAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return endAction ( actionType , parameters , null ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return endAction ( actionType , parameters , null ) ; }
Source:
protected final boolean failCanDoAction ( org.ovirt.engine.core.common.errors.VdcBllMessages message , java.lang.String ... variableReplacements ) { addCanDoActionMessage ( message ) ; for ( java.lang.String variableReplacement : variableReplacements ) { addCanDoActionMessage ( variableReplacement ) ; } return false ; }

Target:
protected final boolean failCanDoAction ( org.ovirt.engine.core.common.errors.EngineMessage message , java.lang.String ... variableReplacements ) { addCanDoActionMessage ( message ) ; for ( java.lang.String variableReplacement : variableReplacements ) { addCanDoActionMessage ( variableReplacement ) ; } return false ; }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.DISABLED ) ; }
Source:
public void render ( com.google.gwt.cell.client.Cell.Context context , java.lang.Boolean value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb , java.lang.String id ) { super . render ( context , value , sb , id ) ; sb.append ( title ) ; }

Target:
public void render ( com.google.gwt.cell.client.Cell.Context context , java.lang.Boolean value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb , java.lang.String id ) { super . render ( context , value , sb , id ) ; }
Source:
private java.lang.String getNetworkNameReplacement ( ) { return java.lang.String.format ( "$NetworkName %s" , network.getName ( ) ) ; }

Target:
protected java.lang.String getNetworkNameReplacement ( ) { return java.lang.String.format ( "$NetworkName %s" , network.getName ( ) ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setGetQuotasExpectations ( ) ; control.replay ( ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setGetQuotasExpectations ( ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public static void getWatchdogByVmId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }

Target:
public static void getWatchdogByVmId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addConsoleDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONSOLE , VmDeviceType.CONSOLE , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getConsoleDeviceSpecParams ( ) , true , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addConsoleDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONSOLE , VmDeviceType.CONSOLE , getConsoleDeviceSpecParams ( ) , true , false ) ; }
Source:
public void testUnknownQuery ( ) throws java.lang.Exception { 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 ) ) ; org.junit.Assert.assertEquals ( "Wrong type for 'ThereIsNoSuchQuery' " , VdcQueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }

Target:
public void testUnknownQuery ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( ) ; org.junit.Assert.assertEquals ( "Wrong type for 'ThereIsNoSuchQuery' " , VdcQueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }
Source:
protected java.lang.String getLockMessage ( ) { return EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ; }

Target:
private java.lang.String getLockMessage ( ) { return EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ; }
Source:
void mockSessionDataContainer ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQuery query ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.SSO_TOKEN ) . when ( sessionDataContainer ) . getSsoAccessToken ( org.mockito.Matchers.anyString ( ) ) ; }

Target:
void mockSessionDataContainer ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.SSO_TOKEN ) . when ( sessionDataContainer ) . getSsoAccessToken ( org.mockito.Matchers.anyString ( ) ) ; }
Source:
public void testGetSystemStatisticsValueWithoutSpecifiedStatus ( ) { int numOfUsers = underTest.getSystemStatisticsValue ( "User" , "" ) ; org.junit.Assert.assertTrue ( ( numOfUsers == ( org.ovirt.engine.core.dao.SystemStatisticsDaoImplTest.NUM_OF_USERS_IN_FIXTURES ) ) ) ; }

Target:
public void testGetSystemStatisticsValueWithoutSpecifiedStatus ( ) { int numOfUsers = underTest.getSystemStatisticsValue ( "User" , "" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.SystemStatisticsDaoImplTest.NUM_OF_USERS_IN_FIXTURES , numOfUsers ) ; }
Source:
private static java.lang.String getSysprepDir ( ) { return ( ( org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.DataDir ) ) + ( java.io.File.separator ) ) + "sysprep" ; }

Target:
private static java.lang.String getSysprepDir ( ) { return ( ( org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.DataDir ) ) + ( java.io.File.separator ) ) + "sysprep" ; }
Source:
public byte nextByte ( byte b ) { return ( ( byte ) ( super . nextInt ( b ) ) ) ; }

Target:
public byte nextByte ( byte b ) { return ( ( byte ) ( nextInt ( b ) ) ) ; }
Source:
protected abstract R doPopulate ( R model , Q entity ) ;

Target:
protected R doPopulate ( R model , Q entity ) { return model ; }
Source:
public java.lang.String getStoragePoolName ( ) { if ( ( getStoragePool ( ) ) != null ) { return getStoragePool ( ) . getname ( ) ; } return "" ; }

Target:
public java.lang.String getStoragePoolName ( ) { if ( ( getStoragePool ( ) ) != null ) { return getStoragePool ( ) . getName ( ) ; } return "" ; }