auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void queryFailed ( ) { }

Target:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionsAvailability ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel < org.ovirt.engine.core.common.businessentities.VM > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineApplicationPresenter.constants.virtualMachineApplicationSubTabLabel ( ) , 4 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineApplicationPresenter.constants.virtualMachineApplicationSubTabLabel ( ) , 4 ) ; }
Source:
public static void logException ( org.apache.commons.logging.Log logger , java.lang.String message , java.lang.Throwable throwable ) { if ( logger.isDebugEnabled ( ) ) { logger.debug ( message , throwable ) ; } else { logger.error ( message ) ; } }

Target:
public static void logException ( org.slf4j.Logger logger , java.lang.String message , java.lang.Throwable throwable ) { if ( logger.isDebugEnabled ( ) ) { logger.debug ( message , throwable ) ; } else { logger.error ( message ) ; } }
Source:
protected void populateProfiles ( java.util.List < org.ovirt.engine.core.aaa.ProfileEntry > profiles ) { getProfile ( ) . setItems ( profiles ) ; getProfile ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( profiles ) ) ; }

Target:
protected void populateProfiles ( java.util.List < org.ovirt.engine.core.aaa.ProfileEntry > profiles ) { getProfile ( ) . setItems ( profiles ) ; getProfile ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( getProfile ( ) . getItems ( ) ) ) ; }
Source:
public void setCpuLoad ( java.lang.Double value ) { this . mVdsStatistics.setcpu_load ( value ) ; }

Target:
public void setCpuSys ( java.lang.Double value ) { this . mVdsStatistics.setCpuSys ( value ) ; }
Source:
public void executeCommandWhenFailed ( ) { setupMocks ( ) ; mockBackendStatusChange ( false ) ; cmd.executeCommand ( ) ; org.junit.Assert.assertEquals ( AuditLogType.GLUSTER_HOOK_ENABLE_FAILED , cmd.getAuditLogTypeValue ( ) ) ; }

Target:
public void executeCommandWhenFailed ( ) { setupMocks ( ) ; mockBackendStatusChange ( false ) ; cmd.executeCommand ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( AuditLogType.GLUSTER_HOOK_ENABLE_FAILED , cmd.getAuditLogTypeValue ( ) ) ; }
Source:
public void remove ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "DeleteVmStatic" , getIdParamterSource ( id ) ) ; }

Target:
public void remove ( org.ovirt.engine.core.compat.Guid id , boolean removePermissions ) { getCallsHandler ( ) . executeModification ( "DeleteVmStatic" , getIdParamterSource ( id ) . addValue ( "remove_permissions" , removePermissions ) ) ; }
Source:
private void noNewDefaultManagementNetworkFound ( ) { org.mockito.Mockito.when ( defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DC_ID1 ) ) . thenReturn ( null ) ; }

Target:
private void noNewDefaultManagementNetworkFound ( ) { managementNetworkId = null ; org.mockito.Mockito.when ( defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DC_ID1 ) ) . thenReturn ( null ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.Driver.driver.edit ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { driver.edit ( model ) ; }
Source:
public void SuccededToRunVm ( org.ovirt.engine.core.compat.Guid vmId ) { mUnrespondedAttempts.set ( 0 ) ; sshSoftFencingExecuted.set ( false ) ; org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . SuccededToRunVm ( vmId , _vds.getId ( ) ) ; }

Target:
public void succededToRunVm ( org.ovirt.engine.core.compat.Guid vmId ) { mUnrespondedAttempts.set ( 0 ) ; sshSoftFencingExecuted.set ( false ) ; org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . succededToRunVm ( vmId , _vds.getId ( ) ) ; }
Source:
public static org.ovirt.engine.core.bll.context.CommandContext createInternalJobContext ( org.ovirt.engine.core.bll.context.CommandContext commandContext , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.modifyContextForIntenralJob ( commandContext.clone ( ) , lock ) ; }

Target:
public static org.ovirt.engine.core.bll.context.CommandContext createInternalJobContext ( org.ovirt.engine.core.bll.context.CommandContext commandContext , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.modifyContextForInternalJob ( commandContext.clone ( ) , lock ) ; }
Source:
protected void unlockSnapshot ( ) { org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand.getSnapshotDAO ( ) . updateStatus ( org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand.getParameters ( ) . getSourceSnapshotId ( ) , SnapshotStatus.OK ) ; }

Target:
protected void unlockSnapshot ( ) { org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand.getSnapshotDao ( ) . updateStatus ( org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand.getParameters ( ) . getSourceSnapshotId ( ) , SnapshotStatus.OK ) ; }
Source:
public void testGetLunsThatBreakDiscardAfterDeleteSupportDiscardAfterDeleteBreaks ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lunThatBreaksDiscardSupport = createLunWithDiscardFunctionality ( 0L , true ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , lunThatBreaksDiscardSupport ) , java.util.Collections.singletonList ( lunThatBreaksDiscardSupport ) ) ; }

Target:
public void testGetLunsThatBreakDiscardAfterDeleteSupportDiscardAfterDeleteBreaks ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lunThatBreaksDiscardSupport = createLunWithDiscardSupport ( 0L ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , lunThatBreaksDiscardSupport ) , java.util.Collections.singletonList ( lunThatBreaksDiscardSupport ) ) ; }
Source:
protected org.ovirt.engine.api.model.NetworkLabel getEntity ( int index ) { org.ovirt.engine.api.model.NetworkLabel networkLabel = control.createMock ( org.ovirt.engine.api.model.NetworkLabel.class ) ; org.easymock.EasyMock.expect ( networkLabel.getId ( ) ) . andReturn ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResourceTest.LABELS [ index ] ) . anyTimes ( ) ; return networkLabel ; }

Target:
protected org.ovirt.engine.api.model.NetworkLabel getEntity ( int index ) { org.ovirt.engine.api.model.NetworkLabel networkLabel = org.mockito.Mockito.mock ( org.ovirt.engine.api.model.NetworkLabel.class ) ; org.mockito.Mockito.when ( networkLabel.getId ( ) ) . thenReturn ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResourceTest.LABELS [ index ] ) ; return networkLabel ; }
Source:
public void setDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( domain , value ) ) ) { domain = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Domain" ) ) ; } }

Target:
public void setDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( domain , value ) ) ) { domain = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Domain" ) ) ; } }
Source:
public void testReactionToDuplicatesWhenDuplicatesNotDuringStartup ( ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges macPoolUsingRanges = createMacPoolDisallowingDuplicates ( ) ; macPoolUsingRanges.initialize ( false , java.util.Arrays.asList ( org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRangesTest.MAC_ADDRESS , org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRangesTest.MAC_ADDRESS ) ) ; }

Target:
public void testReactionToDuplicatesWhenDuplicatesNotDuringStartup ( ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges macPoolUsingRanges = createMacPoolDisallowingDuplicates ( ) ; org.junit.jupiter.api.Assertions.assertThrows ( org.ovirt.engine.core.common.errors.EngineException.class , ( ) -> macPoolUsingRanges.initialize ( false , java.util.Arrays.asList ( org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRangesTest.MAC_ADDRESS , org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRangesTest.MAC_ADDRESS ) ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmMonitorCommandVDSCommand.getBroker ( ) . monitorCommand ( mVmId.toString ( ) , mMonitorCommand ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmMonitorCommandVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmMonitorCommandVDSCommand.getBroker ( ) . monitorCommand ( mVmId.toString ( ) , mMonitorCommand ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmMonitorCommandVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmWatchdogType map ( org.ovirt.engine.api.restapi.types.WatchdogModel model , org.ovirt.engine.core.common.businessentities.VmWatchdogType incoming ) { switch ( model ) { case I6300ESB : return org.ovirt.engine.core.common.businessentities.VmWatchdogType.i6300esb ; case IB700 : return org.ovirt.engine.core.common.businessentities.VmWatchdogType.ib700 ; default : return null ; } }

Target:
public static org.ovirt.engine.core.common.businessentities.VmWatchdogType map ( org.ovirt.engine.api.model.WatchdogModel model , org.ovirt.engine.core.common.businessentities.VmWatchdogType incoming ) { switch ( model ) { case I6300ESB : return org.ovirt.engine.core.common.businessentities.VmWatchdogType.i6300esb ; case IB700 : return org.ovirt.engine.core.common.businessentities.VmWatchdogType.ib700 ; default : return null ; } }
Source:
public void parseVolumeIdFromPath ( ) { org.junit.Assert.assertEquals ( "ccc" , converter.parseVolumeIdFromPath ( "/a/b/ccc" ) ) ; org.junit.Assert.assertEquals ( "" , converter.parseVolumeIdFromPath ( "" ) ) ; org.junit.Assert.assertEquals ( "" , converter.parseVolumeIdFromPath ( "not a path" ) ) ; }

Target:
public void parseVolumeIdFromPath ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "ccc" , converter.parseVolumeIdFromPath ( "/a/b/ccc" ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( "" , converter.parseVolumeIdFromPath ( "" ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( "" , converter.parseVolumeIdFromPath ( "not a path" ) ) ; }
Source:
private static java.lang.String GetCommandTypeName ( org.ovirt.engine.core.common.vdscommands.VDSCommandType command ) { java.lang.String packageName = command.getPackageName ( ) ; java.lang.String commandName = java.lang.String.format ( "%s.%s%s" , packageName , command , org.ovirt.engine.core.vdsbroker.ResourceManager.VDSCommandPrefix ) ; return commandName ; }

Target:
private static java.lang.String getCommandTypeName ( org.ovirt.engine.core.common.vdscommands.VDSCommandType command ) { java.lang.String packageName = command.getPackageName ( ) ; java.lang.String commandName = java.lang.String.format ( "%s.%s%s" , packageName , command , org.ovirt.engine.core.vdsbroker.ResourceManager.VDSCommandPrefix ) ; return commandName ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomainType getstorage_domain_type ( ) { return getStorageStaticData ( ) . getstorage_domain_type ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomainType getStorageDomainType ( ) { return getStorageStaticData ( ) . getstorage_domain_type ( ) ; }
Source:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NEEDS_PASSTHROUGH ) ) ; }

Target:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NEEDS_PASSTHROUGH ) ) ; }
Source:
public void UpdateIsDisksAvailable ( ) { getModel ( ) . setIsDisksAvailable ( ( ( getModel ( ) . getDisks ( ) ) != null ) ) ; }

Target:
public void updateIsDisksAvailable ( ) { getModel ( ) . setIsDisksAvailable ( ( ( getModel ( ) . getDisks ( ) ) != null ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.tags lookupTagByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.tags.class , VdcQueryType.GetTagByTagName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , name ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Tags lookupTagByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , VdcQueryType.GetTagByTagName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , name ) ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getEntityId ( ) . toString ( ) , LockingGroup.DISK.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getEntityId ( ) . toString ( ) , LockMessagesMatchUtil.DISK ) ; }
Source:
public native void invokeClientNative ( ) ;

Target:
private native void invokeClientNative ( java.lang.String connectionTicket ) ;
Source:
protected java.lang.String getDescription ( ) { return getAdUserName ( ) ; }

Target:
protected java.lang.String getDescription ( ) { return org.ovirt.engine.core.bll.VmPoolSimpleUserCommandBase.getVmPoolName ( ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getBackendNics ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > backendNics = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.class , VdcQueryType.GetVdsInterfacesByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return new org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ( backendNics ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.AsyncTasks getAsyncTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTask ( taskId , this , asyncTaskCreationInfo , parentCommand ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return getBackend ( ) . runInternalAction ( actionType , parameters , context ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.NetworkInterface FindInterfaceNetworkNameNotEmpty ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.NetworkInterface > items ) { for ( org.ovirt.engine.core.common.businessentities.NetworkInterface i : items ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( i.getNetworkName ( ) ) ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface FindInterfaceNetworkNameNotEmpty ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( i.getNetworkName ( ) ) ) ) { return i ; } } return null ; }
Source:
public void removeAllInBatch ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsDynamic > entities ) { for ( org.ovirt.engine.core.common.businessentities.VdsDynamic entity : entities ) { remove ( entity ) ; } }

Target:
public void remove ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ; getCallsHandler ( ) . executeModification ( "DeleteVdsDynamic" , parameterSource ) ; }
Source:
protected boolean verifyAddVM ( java.util.List < java.lang.String > reasons , int vmPriority ) { return org.ovirt.engine.core.bll.VmHandler.verifyAddVm ( reasons , getVmInterfaces ( ) . size ( ) , vmPriority , org.ovirt.engine.core.bll.AddVmCommand.getMacPool ( ) ) ; }

Target:
protected boolean verifyAddVM ( java.util.List < java.lang.String > reasons , int vmPriority ) { return org.ovirt.engine.core.bll.VmHandler.verifyAddVm ( reasons , getVmInterfaces ( ) . size ( ) , vmPriority , macPool ) ; }
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { asSuggestBox ( ) . showSuggestionList ( ) ; }

Target:
public void execute ( ) { asSuggestBox ( ) . showSuggestionList ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb ) { if ( ! ( org.ovirt.engine.core.bll.VdsSelector.IsVMSwapValueLegal ( vds ) ) ) { sb.append ( "swap value is illegal" ) ; return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_SWAP ) ; } return null ; }

Target:
public org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb ) { if ( ! ( org.ovirt.engine.core.bll.VdsSelector.isVMSwapValueLegal ( vds ) ) ) { sb.append ( "swap value is illegal" ) ; return org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_SWAP ; } return null ; }
Source:
protected void updateMainTabSelection ( java.util.List < T > mainTabSelectedItems ) { this . mainTabSelectedItems = mainTabSelectedItems ; T firstSelectedItem = getMainTabSelectedItem ( ) ; if ( firstSelectedItem != null ) { org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . setMainTabSelectedItem ( firstSelectedItem ) ; } }

Target:
public void itemChanged ( T item ) { if ( ( item != null ) && ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . asWidget ( ) . isVisible ( ) ) ) { org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . setMainTabSelectedItem ( item ) ; } }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { executeCommand ( uiCommand ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateFormStatus ( ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VDS > GetAllRunningVdssInPool ( org.ovirt.engine.core.common.businessentities.storage_pool pool ) { return org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.GetAllRunningVdssInPool ( org.ovirt.engine.core.bll.Backend.getInstance ( ) , pool ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VDS > GetAllRunningVdssInPool ( org.ovirt.engine.core.common.businessentities.storage_pool pool ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllForStoragePoolAndStatus ( pool.getId ( ) , VDSStatus.Up ) ; }
Source:
public void testExtractProperIpv6AddressWithPrefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Address ( "::/123" ) , org.hamcrest.Matchers.is ( "::" ) ) ; }

Target:
public void testExtractProperIpv6AddressWithPrefix ( ) { org.hamcrest.MatcherAssert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Address ( "::/123" ) , org.hamcrest.Matchers.is ( "::" ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser lookupEntity ( org.ovirt.engine.core.compat.Guid nullId ) { return lookupUserById ( id ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser lookupEntity ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return lookupUserById ( this . id ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > groups = getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.ClusterDaoImpl.ClusterRowMapper.instance ) ; return getHostsAndVmsForClusters ( groups ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters = getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.ClusterDaoImpl.ClusterRowMapper.instance ) ; return getHostsAndVmsForClusters ( clusters ) ; }
Source:
public void getTagIdAndChildrenIdsAsList ( java.util.HashSet < org.ovirt.engine.core.compat.Guid > tagIds ) { tagIds.add ( gettag_id ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.Tags tag : _children ) { tag.getTagIdAndChildrenIdsAsList ( tagIds ) ; } }

Target:
public void getTagIdAndChildrenIdsAsList ( java.util.HashSet < org.ovirt.engine.core.compat.Guid > tagIds ) { tagIds.add ( getTagId ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.Tags tag : _children ) { tag.getTagIdAndChildrenIdsAsList ( tagIds ) ; } }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result = dao.get ( existingVdsInterface.getVdsId ( ) , existingVdsInterface.getName ( ) ) ; org.junit.Assert.assertEquals ( existingVdsInterface , result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result = dao.get ( existingVdsInterface.getVdsId ( ) , existingVdsInterface.getName ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingVdsInterface , result ) ; }
Source:
public void edit ( ) { }

Target:
public void apply ( ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.EditNetworkModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.EditNetworkModel ) ( getWindow ( ) ) ) ; model.apply ( ) ; }
Source:
public int getTotalRequiredMemoryInMb ( org.ovirt.engine.core.common.businessentities.VM vm ) { int vmRam = vm.getVmMemSizeMb ( ) ; return vmRam + ( getOverheadInMb ( vm ) ) ; }

Target:
public int getTotalRequiredMemoryInMb ( org.ovirt.engine.core.common.businessentities.VM vm ) { int vmRam = org.ovirt.engine.core.common.utils.HugePageUtils.getRequiredMemoryWithoutHugePages ( vm.getStaticData ( ) ) ; return vmRam + ( getOverheadInMb ( vm ) ) ; }
Source:
protected void asyncSearch ( ) { }

Target:
public void stopRefresh ( ) { getTimer ( ) . stop ( ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel defaultConsoleModel = getDetailModel ( ) . getDefaultConsoleModel ( ) ; return defaultConsoleModel != null ? defaultConsoleModel.getConnectCommand ( ) : null ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getConsoleConnectCommand ( ) ; }
Source:
private static java.util.ResourceBundle readMessagesFromBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; } catch ( java.util.MissingResourceException e ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log.error ( ( "Could not load audit log messages from the file " + ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ) ) ; throw e ; } }

Target:
static java.util.ResourceBundle readMessagesFromBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; } catch ( java.util.MissingResourceException e ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log.error ( "Could not load audit log messages from the file {}" , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; throw e ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVdsGroupWithSameNameExistQuery.getQueryReturnValue ( ) . setReturnValue ( ( ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getVdsGroupDAO ( ) . getByName ( org.ovirt.engine.core.bll.IsVdsGroupWithSameNameExistQuery.getParameters ( ) . getName ( ) ) ) != null ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVdsGroupWithSameNameExistQuery.getQueryReturnValue ( ) . setReturnValue ( ( ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . getByName ( org.ovirt.engine.core.bll.IsVdsGroupWithSameNameExistQuery.getParameters ( ) . getName ( ) ) ) != null ) ) ; }
Source:
private void mockVmNetworkInterfaceDao ( ) { org.mockito.Mockito.when ( dbFacada.getVmNetworkInterfaceDAO ( ) ) . thenReturn ( vmNetworkInterfaceDao ) ; org.mockito.Mockito.when ( vmNetworkInterfaceDao.getAllForTemplate ( vmTemplateId ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VmNetworkInterface > emptyList ( ) ) ; }

Target:
private void mockVmNetworkInterfaceDao ( ) { org.mockito.Mockito.when ( dbFacada.getVmNetworkInterfaceDao ( ) ) . thenReturn ( vmNetworkInterfaceDao ) ; org.mockito.Mockito.when ( vmNetworkInterfaceDao.getAllForTemplate ( vmTemplateId ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VmNetworkInterface > emptyList ( ) ) ; }
Source:
public void setSpiceProxyEnabled ( boolean enabled ) { this . spiceProxyEnabled = enabled ; }

Target:
public void setWANDisableEffects ( java.util.List < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > disableEffects ) { this . consoleOptions.setWanDisableEffects ( disableEffects ) ; getWANDisableEffectsChangeEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
private boolean isEveryoneVnicProfileUserPermission ( org.ovirt.engine.core.common.businessentities.permissions permission ) { return ( permission.getad_element_id ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getrole_id ( ) . equals ( ApplicationGuids.vnicProfileUser.asGuid ( ) ) ) ; }

Target:
private boolean isEveryoneVnicProfileUserPermission ( org.ovirt.engine.core.common.businessentities.Permissions permission ) { return ( permission.getad_element_id ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getrole_id ( ) . equals ( ApplicationGuids.vnicProfileUser.asGuid ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTask ( asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

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 , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , entitiesMap ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.Network findNetworkByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.Network n : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( n.getName ( ) , name ) ) { return n ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.Network findNetworkByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.Network n : items ) { if ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( n.getName ( ) , name ) ) { return n ; } } return null ; }
Source:
public boolean detectBrowserPlugin ( ) { if ( configurator.isClientLinuxFirefox ( ) ) { return detectXpiPlugin ( ) ; } else if ( configurator.isClientWindownsExplorer ( ) ) { return detectActiveXPlugin ( ) ; } return false ; }

Target:
public boolean detectBrowserPlugin ( ) { if ( configurator.isClientLinuxFirefox ( ) ) { return detectXpiPlugin ( ) ; } else if ( configurator.isClientWindowsExplorer ( ) ) { return detectActiveXPlugin ( ) ; } return false ; }
Source:
public void testCanDoActionWithAttachedStorageDomain ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; org.mockito.Mockito.doReturn ( java.lang.Boolean.TRUE ) . when ( command ) . isStorageDomainAttached ( storageDomain ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction shouldn't be possible for an attached storage domain" , command , VdcBllMessages.ACTION_TYPE_FAILED_FORMAT_STORAGE_DOMAIN_WITH_ATTACHED_DATA_DOMAIN ) ; }

Target:
public void testCanDoActionWithAttachedStorageDomain ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; org.mockito.Mockito.doReturn ( java.lang.Boolean.TRUE ) . when ( command ) . isStorageDomainAttached ( storageDomain ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction shouldn't be possible for an attached storage domain" , command , EngineMessage.ACTION_TYPE_FAILED_FORMAT_STORAGE_DOMAIN_WITH_ATTACHED_DATA_DOMAIN ) ; }
Source:
public void setDedicatedVmForVds ( org.ovirt.engine.core.compat.NGuid value ) { vmStatic.setdedicated_vm_for_vds ( value ) ; }

Target:
public boolean isAutoStartup ( ) { return vmStatic.isAutoStartup ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusDetailForXmlRpc glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public java.lang.String TranslateErrorTextSingle ( java.lang.String errorMsg , java.util.Locale locale ) { return translate ( errorMsg , true , locale ) ; }

Target:
public java.lang.String translateErrorTextSingle ( java.lang.String errorMsg , java.util.Locale locale ) { return translate ( errorMsg , true , locale ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllNics ( ) { return allNics ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > getExistingNetworkAttachments ( ) { return existingNetworkAttachments ; }
Source:
public void setCurrentRefreshRate ( int newRefreshRate ) { saveRefreshRate ( newRefreshRate ) ; getModelTimer ( ) . setRefreshRate ( readRefreshRate ( ) ) ; updateTimer ( ) ; }

Target:
public void fireEvent ( com.google.gwt.event.shared.GwtEvent < ? > event ) { eventBus.fireEventFromSource ( event , modelProvider.getModel ( ) ) ; }
Source:
public void parseLunFromXmlRpcReturnsFcpForFcp ( ) throws java.lang.Exception { org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommandTest.testParseLunFromXmlRpcForDevtypeField ( StorageType.FCP , GetDeviceListVDSCommand.DEVTYPE_VALUE_FCP ) ; }

Target:
public void parseLunReturnsFcpForFcp ( ) throws java.lang.Exception { org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommandTest.testParseLunForDevtypeField ( StorageType.FCP , GetDeviceListVDSCommand.DEVTYPE_VALUE_FCP ) ; }
Source:
public void testGetAllIdsForNonExistingStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > result = dao.getAllIds ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , StorageDomainStatus.Active ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllIdsForNonExistingStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > result = dao.getAllIds ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , StorageDomainStatus.Active ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private static double anyDouble ( ) { return 100 * ( org.apache.commons.lang.math.RandomUtils.nextDouble ( ) ) ; }

Target:
private static double anyDouble ( ) { return 100 * ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextDouble ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return ( java.lang.String.valueOf ( object.getMemSizeMb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.storage.SubTabStorageTemplateBackupView.messages.megabytes ( java.lang.String.valueOf ( object.getMemSizeMb ( ) ) ) ; }
Source:
protected void ExecuteIrsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IsoDirectoryVDSCommand.getVDSReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.vdsbroker.irsbroker.IsoDirectoryVDSCommand.getCurrentIrsProxyData ( ) . getIsoDirectory ( ) ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IsoDirectoryVDSCommand.getVDSReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.vdsbroker.irsbroker.IsoDirectoryVDSCommand.getCurrentIrsProxyData ( ) . getIsoDirectory ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult validateUniqueId ( ) { if ( ( org.apache.commons.lang.StringUtils.isBlank ( vds.getUniqueId ( ) ) ) && ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.InstallVds ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.VDS_NO_UUID ) ; } return ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult validateUniqueId ( ) { if ( ( org.apache.commons.lang.StringUtils.isBlank ( vds.getUniqueId ( ) ) ) && ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.InstallVds ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.VDS_NO_UUID ) ; } return ValidationResult.VALID ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.Disk source ) { return source.isAllowSnapshot ( ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.storage.Disk source ) { return source.isAllowSnapshot ( ) ; }
Source:
private void dbFacadeThrowOnNetworkClusterSave ( ) { org.mockito.Mockito.doThrow ( new org.springframework.dao.DataIntegrityViolationException ( "test violations" ) ) . when ( networkClusterDAO ) . save ( org.mockito.Matchers.< org.ovirt.engine.core.common.businessentities.NetworkCluster > any ( org.ovirt.engine.core.common.businessentities.NetworkCluster.class ) ) ; }

Target:
private void dbFacadeThrowOnNetworkClusterSave ( ) { org.mockito.Mockito.doThrow ( new org.springframework.dao.DataIntegrityViolationException ( "test violations" ) ) . when ( networkClusterDAO ) . save ( org.mockito.Matchers.< org.ovirt.engine.core.common.businessentities.network.NetworkCluster > any ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster.class ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; if ( command == ( getConnectCommand ( ) ) ) { Connect ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getConnectCommand ( ) ) ) { Connect ( ) ; } }
Source:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemoveBond , new org.ovirt.engine.core.common.action.RemoveBondParameters ( asGuid ( hostId ) , lookupInterface ( id ) . getName ( ) ) ) ; }

Target:
protected org.ovirt.engine.api.model.HostNIC deprecatedPopulate ( org.ovirt.engine.api.model.HostNIC model , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity ) { java.util.Set < java.lang.String > details = org.ovirt.engine.api.common.util.DetailHelper.getDetails ( httpHeaders , uriInfo ) ; if ( details.contains ( "statistics" ) ) { addStatistics ( model , entity ) ; } return model ; }
Source:
public void canDoAction_noAffinityGroup_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . getAffinityGroup ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_AFFINITY_GROUP_ID ) ; }

Target:
public void validate_noAffinityGroup_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . getAffinityGroup ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_AFFINITY_GROUP_ID ) ; }
Source:
private void allocateAndFreeMacAndExpectGivenMac ( org.ovirt.engine.core.bll.network.macpoolmanager.Range range , long expectedMac ) { java.lang.Long mac = range.allocateMacs ( 1 ) . get ( 0 ) ; org.junit.Assert.assertThat ( mac , org.hamcrest.CoreMatchers.is ( expectedMac ) ) ; range.freeMac ( mac ) ; }

Target:
private void allocateAndFreeMacAndExpectGivenMac ( org.ovirt.engine.core.bll.network.macpool.Range range , long expectedMac ) { java.lang.Long mac = range.allocateMacs ( 1 ) . get ( 0 ) ; org.junit.Assert.assertThat ( mac , org.hamcrest.CoreMatchers.is ( expectedMac ) ) ; range.freeMac ( mac ) ; }
Source:
public void updateVmConfigurationBySnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel snapshotModel = snapshotsMap.get ( snapshotId ) ; snapshotModel.updateVmConfiguration ( ) ; }

Target:
protected static void buildVmOnClone ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model , org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor.build ( model , vm.getStaticData ( ) , new org.ovirt.engine.ui.uicommonweb.builders.vm.FullUnitToVmBaseBuilder ( ) ) ; org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor.build ( model , vm , new org.ovirt.engine.ui.uicommonweb.builders.vm.VmSpecificUnitToVmBuilder ( ) ) ; }
Source:
public boolean processHardwareCapabilitiesNeeded ( org.ovirt.engine.core.common.businessentities.VDS oldVds , org.ovirt.engine.core.common.businessentities.VDS newVds ) { return ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( oldVds.getcpu_flags ( ) , newVds.getcpu_flags ( ) ) ) ; }

Target:
public boolean processHardwareCapabilitiesNeeded ( org.ovirt.engine.core.common.businessentities.VDS oldVds , org.ovirt.engine.core.common.businessentities.VDS newVds ) { return ! ( org.apache.commons.lang.StringUtils.equals ( oldVds.getcpu_flags ( ) , newVds.getcpu_flags ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getSlaveVolume ( ) { return getGlusterVolumeDao ( ) . getByName ( slaveHost.getVdsGroupId ( ) , getParameters ( ) . getSlaveVolumeName ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getSlaveVolume ( ) { return getGlusterVolumeDao ( ) . getByName ( slaveHost.getClusterId ( ) , getParameters ( ) . getSlaveVolumeName ( ) ) ; }
Source:
private void updateAuditLog ( org.ovirt.engine.core.common.AuditLogType auditLogType , java.lang.Long imageSizeInGigabytes ) { addCustomValue ( "DiskAlias" , org.ovirt.engine.core.bll.ExtendImageSizeCommand.getImage ( ) . getDiskAlias ( ) ) ; org.ovirt.engine.core.bll.ExtendImageSizeCommand.addCustomValue ( "NewSize" , java.lang.String.valueOf ( imageSizeInGigabytes ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( this , auditLogType ) ; }

Target:
private void updateAuditLog ( org.ovirt.engine.core.common.AuditLogType auditLogType , java.lang.Long imageSizeInGigabytes ) { addCustomValue ( "DiskAlias" , org.ovirt.engine.core.bll.ExtendImageSizeCommand.getImage ( ) . getDiskAlias ( ) ) ; org.ovirt.engine.core.bll.ExtendImageSizeCommand.addCustomValue ( "NewSize" , java.lang.String.valueOf ( imageSizeInGigabytes ) ) ; auditLogDirector.log ( this , auditLogType ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdcOption > result = dao.getAll ( ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; assertEquals ( org.ovirt.engine.core.dao.VdcOptionDAOTest.OPTION_COUNT , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdcOption > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VdcOptionDAOTest.OPTION_COUNT , result.size ( ) ) ; }
Source:
public void smallerThan ( ) { org.junit.Assert.assertTrue ( Version.v3_5.less ( Version.v3_6 ) ) ; org.junit.Assert.assertFalse ( Version.v3_6.less ( Version.v3_5 ) ) ; }

Target:
public void smallerThan ( ) { org.junit.Assert.assertTrue ( Version.v3_6.less ( Version.v4_0 ) ) ; org.junit.Assert.assertFalse ( Version.v4_0.less ( Version.v3_6 ) ) ; }
Source:
public static org.ovirt.engine.api.model.GlusterState map ( org.ovirt.engine.api.restapi.types.GlusterStatus glusterVolumeStatus , java.lang.String template ) { switch ( glusterVolumeStatus ) { case UP : return org.ovirt.engine.api.model.GlusterState.UP ; case DOWN : return org.ovirt.engine.api.model.GlusterState.DOWN ; default : return null ; } }

Target:
private static org.ovirt.engine.api.model.GlusterVolumeStatus mapVolumeStatus ( org.ovirt.engine.api.restapi.types.GlusterStatus status ) { switch ( status ) { case UP : return org.ovirt.engine.api.model.GlusterVolumeStatus.UP ; case DOWN : return org.ovirt.engine.api.model.GlusterVolumeStatus.DOWN ; default : return null ; } }
Source:
public void testValidateNameSizeImportAsCloned ( ) { java.lang.String string300 = ( ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) + ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) ) + ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) ; checkVmName ( true , string300 ) ; }

Target:
public void testDoNotValidateNameSizeImport ( ) { checkVmName ( false , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextPropertyString ( 300 ) ) ; }
Source:
protected void executeQueryCommand ( ) { log.debug ( "Start checking connection to db" ) ; org.ovirt.engine.core.bll.CheckDBConnectionQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.CheckDBConnectionQuery.getDbFacade ( ) . checkDBConnection ( ) ) ; log.debug ( "Completed checking connection to db" ) ; }

Target:
protected void executeQueryCommand ( ) { log.debug ( "Start checking connection to db" ) ; org.ovirt.engine.core.bll.CheckDBConnectionQuery.getQueryReturnValue ( ) . setReturnValue ( dbConnectionUtil.checkDBConnection ( ) ) ; log.debug ( "Completed checking connection to db" ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.TaskManagerUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }
Source:
public javax.ws.rs.core.Response reboot ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( delegate :: reboot , action ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { return adaptUpdate ( getDelegate ( ) :: update , vm ) ; }
Source:
public static java.util.Map < org.ovirt.engine.core.common.EventNotificationEntity , java.util.HashSet < org.ovirt.engine.core.common.AuditLogType > > GetNotificationEvents ( ) { return org.ovirt.engine.core.common.VdcEventNotificationUtils._eventNotificationTypeMap ; }

Target:
public static java.util.Map < org.ovirt.engine.core.common.EventNotificationEntity , java.util.HashSet < org.ovirt.engine.core.common.AuditLogType > > getNotificationEvents ( ) { return org.ovirt.engine.core.common.VdcEventNotificationUtils._eventNotificationTypeMap ; }
Source:
public void setstorage_pool_name ( java.lang.String value ) { this . storage_pool_nameField = value ; }

Target:
public void setPmOptions ( java.lang.String value ) { mVdsStatic.setPmOptions ( value ) ; }
Source:
protected void removeSnapshot ( org.ovirt.engine.core.common.businessentities.DiskImage snapshot ) { super . removeSnapshot ( snapshot ) ; _imagesToDelete.add ( _imagesToDelete.size ( ) , snapshot.getImageId ( ) ) ; }

Target:
protected void removeSnapshot ( org.ovirt.engine.core.common.businessentities.storage.DiskImage snapshot ) { super . removeSnapshot ( snapshot ) ; _imagesToDelete.add ( _imagesToDelete.size ( ) , snapshot.getImageId ( ) ) ; }
Source:
public static java.net.URI buildUrl ( java.lang.String url ) { try { return new java.net.URI ( url ) ; } catch ( java.net.URISyntaxException ex ) { throw new java.lang.RuntimeException ( ex ) ; } }

Target:
public static java.net.URI buildUrl ( java.lang.String url ) { try { return new java.net.URI ( url ) ; } catch ( java.net.URISyntaxException ex ) { throw new java.lang.Error ( "Failed to build URL" , ex ) ; } }