auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getVm ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; } return validate ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getVm ( ) , getVmNumaNodesForValidation ( ) ) ) ; }

Target:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getVm ( ) ) == null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; } return validate ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( org.ovirt.engine.core.bll.numa.vm.AbstractVmNumaNodeCommand.getVm ( ) , getVmNumaNodesForValidation ( ) ) ) ; }
Source:
public void checkSync ( ) { initSyncStatus ( mockNetworkAttachment , true ) ; org.junit.Assert.assertFalse ( underTest.test ( mockNetworkAttachment ) ) ; }

Target:
public void checkSync ( ) { initSyncStatus ( mockNetworkAttachment , true ) ; org.junit.jupiter.api.Assertions.assertFalse ( underTest.test ( mockNetworkAttachment ) ) ; }
Source:
public abstract void setExecutionResult ( org.ovirt.engine.core.common.action.VdcReturnValueBase result ) ;

Target:
public void executed ( org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { return ; }
Source:
private void logOvfLoadError ( java.lang.String message , java.lang.String ovfstring ) { log.errorFormat ( "Error parsing OVF due to {0}" , message ) ; log.debugFormat ( "Error parsing OVF {0}\n" , ovfstring ) ; }

Target:
private void logOvfLoadError ( java.lang.String message , java.lang.String ovfstring ) { log.error ( "Error parsing OVF due to {}" , message ) ; log.debug ( "Error parsing OVF {}\n" , ovfstring ) ; }
Source:
private void mockVds ( ) { org.mockito.Mockito.when ( vds.getId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.pm.FenceAgentExecutorTest.FENCECD_HOST_ID ) ; }

Target:
private void setUpVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( org.ovirt.engine.core.bll.pm.FenceAgentExecutorTest.FENCECD_HOST_ID ) ; }
Source:
private java.lang.String renderGigabyteSize ( long size ) { long sizeInGB = ( ( unit ) == ( org.ovirt.engine.core.common.utils.SizeConverter.SizeUnit.GB ) ) ? size : org.ovirt.engine.core.common.utils.SizeConverter.convert ( size , unit , SizeUnit.GB ) . longValue ( ) ; return sizeInGB >= 1 ? sizeInGB + " GB" : "< 1 GB" ; }

Target:
private java.lang.String renderGigabyteSize ( long size ) { long sizeInGB = ( ( unit ) == ( org.ovirt.engine.core.common.utils.SizeConverter.SizeUnit.GiB ) ) ? size : org.ovirt.engine.core.common.utils.SizeConverter.convert ( size , unit , SizeUnit.GiB ) . longValue ( ) ; return sizeInGB >= 1 ? sizeInGB + " GB" : "< 1 GB" ; }
Source:
private void Cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; setWindow ( null ) ; }

Target:
private void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; setWindow ( null ) ; }
Source:
public void CloneRole ( ) { commandType = org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType.Clone ; org.ovirt.engine.core.common.businessentities.roles role = ( ( org.ovirt.engine.core.common.businessentities.roles ) ( getSelectedItem ( ) ) ) ; InitRoleDialog ( role ) ; }

Target:
public void CloneRole ( ) { commandType = org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType.Clone ; org.ovirt.engine.core.common.businessentities.Role role = ( ( org.ovirt.engine.core.common.businessentities.Role ) ( getSelectedItem ( ) ) ) ; InitRoleDialog ( role ) ; }
Source:
public void testExtractIpv6PrefixInvalidPrefix ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Prefix ( "::/zzz" ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractIpv6PrefixNoPrefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( "::" ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { onLoggedInEvent ( loginModel ) ; }

Target:
protected void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( loginModel.getLoginCommand ( ) ) ) { beforeLoginCommandExecuted ( loginModel ) ; } super . executeCommand ( command ) ; }
Source:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void forceAddMac ( java.lang.String mac ) { macsStorage.useMacNoDuplicityCheck ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; }

Target:
public void forceAddMac ( java.lang.String mac ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.debug ( "Forcibly allocating custom mac address from {}" , mac , this ) ; macsStorage.useMacNoDuplicityCheck ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilder createVmInfoBuilder ( org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.compat.Guid vdsId , java.util.Map < java.lang.String , java.lang.Object > createInfo ) { return new org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilderImpl ( vm , vdsId , createInfo , clusterDao , networkDao , vdsNumaNodeDao , vmDeviceDao , vmNumaNodeDao , vmInfoBuildUtils ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilder createVmInfoBuilder ( org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.compat.Guid vdsId , java.util.Map < java.lang.String , java.lang.Object > createInfo ) { return new org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilderImpl ( vm , vdsId , createInfo , clusterDao , networkDao , vdsNumaNodeDao , vmDeviceDao , vmNumaNodeDao , vmInfoBuildUtils , osRepository ) ; }
Source:
public void testUpdate ( ) { existingDynamic.setused_disk_size ( org.ovirt.engine.core.dao.StorageDomainDynamicDAOTest.USED_DISK_SIZE ) ; dao.update ( existingDynamic ) ; org.ovirt.engine.core.common.businessentities.storage_domain_dynamic result = dao.get ( existingDynamic.getId ( ) ) ; assertEquals ( existingDynamic , result ) ; }

Target:
public void testUpdate ( ) { existingDynamic.setused_disk_size ( org.ovirt.engine.core.dao.StorageDomainDynamicDAOTest.USED_DISK_SIZE ) ; dao.update ( existingDynamic ) ; org.ovirt.engine.core.common.businessentities.StorageDomainDynamic result = dao.get ( existingDynamic.getId ( ) ) ; assertEquals ( existingDynamic , result ) ; }
Source:
private java.lang.String getCallbackMethod ( org.ovirt.engine.core.compat.CommandStatus status ) { switch ( status ) { case FAILED : case FAILED_RESTARTED : return "onFailed" ; case SUCCEEDED : return "onSucceeded" ; case ACTIVE : return "doPolling" ; default : return "Unknown" ; } }

Target:
private java.lang.String getCallbackMethod ( org.ovirt.engine.core.compat.CommandStatus status ) { switch ( status ) { case FAILED : case EXECUTION_FAILED : return "onFailed" ; case SUCCEEDED : return "onSucceeded" ; case ACTIVE : return "doPolling" ; default : return "Unknown" ; } }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc shutdownHost ( int reboot ) ;

Target:
java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( java.util.Map networks , java.util.Map bonding , java.util.Map options ) ;
Source:
public void testUpdate ( ) { org.ovirt.engine.core.common.businessentities.storage.StorageServerConnectionExtension ssce = dao.get ( org.ovirt.engine.core.dao.StorageServerConnectionExtensionDaoTest.EXISTING_STORAGE_SERVER_CONNECTION_EXTENSION_ID ) ; fillWithRandomData ( ssce ) ; dao.update ( ssce ) ; org.ovirt.engine.core.common.businessentities.storage.StorageServerConnectionExtension ssceFromDb = dao.get ( org.ovirt.engine.core.dao.StorageServerConnectionExtensionDaoTest.EXISTING_STORAGE_SERVER_CONNECTION_EXTENSION_ID ) ; }

Target:
public void testUpdate ( ) { org.ovirt.engine.core.common.businessentities.storage.StorageServerConnectionExtension ssce = dao.get ( org.ovirt.engine.core.dao.StorageServerConnectionExtensionDaoTest.EXISTING_STORAGE_SERVER_CONNECTION_EXTENSION_ID ) ; fillWithRandomData ( ssce ) ; dao.update ( ssce ) ; org.ovirt.engine.core.common.businessentities.storage.StorageServerConnectionExtension ssceFromDb = dao.get ( org.ovirt.engine.core.dao.StorageServerConnectionExtensionDaoTest.EXISTING_STORAGE_SERVER_CONNECTION_EXTENSION_ID ) ; org.junit.Assert.assertEquals ( ssce , ssceFromDb ) ; }
Source:
public org.ovirt.engine.ui.common.widget.HasEnabledForContainter < org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol > getBootProtocol ( ) { return bootProtocol ; }

Target:
public void focusInput ( ) { interfaceEditor.setFocus ( true ) ; }
Source:
protected void createImage ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.AddDisk , getAddDiskParameters ( ) , org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.cloneContextAndDetachFromParent ( ) ) ; persistCommand ( org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getParameters ( ) . getParentCommand ( ) , true ) ; }

Target:
protected java.lang.String getImageAlias ( ) { return ( org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getParameters ( ) . getAddDiskParameters ( ) ) != null ? org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getParameters ( ) . getAddDiskParameters ( ) . getDiskInfo ( ) . getDiskAlias ( ) : org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getDiskImage ( ) . getDiskAlias ( ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult macAvailable ( ) { return new org.ovirt.engine.core.bll.validator.MacAddressValidator ( org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getMacPool ( ) , getMacAddress ( ) ) . isMacAssignableValidator ( ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult macAvailable ( ) { return new org.ovirt.engine.core.bll.validator.MacAddressValidator ( org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getMacPool ( ) , getMacAddress ( ) , macsUsedAcrossWholeSystem ) . isMacAssignableValidator ( ) ; }
Source:
private void raiseQueryCompleteEvent ( final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.lang.Object context ) { for ( org.ovirt.engine.core.common.queries.VdcQueryType queryType : queryTypeList ) { raiseQueryCompleteEvent ( queryType , context ) ; } }

Target:
private void fireAsyncOperationCompleteEvent ( java.lang.Object target ) { org.ovirt.engine.ui.frontend.communication.AsyncOperationCompleteEvent.fire ( this , target ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.fromInt ( ( ( java.lang.Integer ) ( source ) ) . intValue ( ) ) : org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.depth16 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.fromInt ( ( ( java.lang.Integer ) ( source ) ) . intValue ( ) ) : org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth.depth16 ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.NetworkCluster network_cluster ) { return network_cluster.getis_display ( ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.NetworkCluster networkCluster ) { return networkCluster.getis_display ( ) ; }
Source:
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 ) ) ; }

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 ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.NETWORK_NAME ) ) ; org.junit.Assert.assertTrue ( vmNames.contains ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VM_NAME ) ) ; }
Source:
private org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters toParameters ( org.ovirt.engine.api.model.Action action ) { return toParameters ( action.getBricks ( ) ) ; }

Target:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { return stopMigrate ( action ) ; }
Source:
public void addTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget , int index ) { tabContainer.insert ( tabWidget , index ) ; }

Target:
public void addTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget , int index ) { if ( ( uiHandlers ) != null ) { uiHandlers.addTabWidget ( tabWidget , index ) ; } }
Source:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return "Invalid operation with unmanaged network: unmanaged network can only be detached" ; }

Target:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . invalidOperationWithUnmanagedNetwork ( ) ; }
Source:
public void testGetHook ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getGlusterHook ( FixturesTool.CLUSTER_ID , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.GLUSTER_COMMAND , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.STAGE , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.EXISTING_HOOK_NAME ) ; org.junit.Assert.assertNotNull ( hook ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.EXISTING_HOOK_NAME , hook.getName ( ) ) ; }

Target:
public void testGetHook ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getGlusterHook ( FixturesTool.GLUSTER_CLUSTER_ID , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.GLUSTER_COMMAND , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.STAGE , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.EXISTING_HOOK_NAME ) ; org.junit.Assert.assertNotNull ( hook ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.EXISTING_HOOK_NAME , hook.getName ( ) ) ; }
Source:
public void testUrlWithoutFilter ( ) { org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = new org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder ( org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilderTest.HOST_ID , null ) ; org.junit.Assert.assertEquals ( "/katello/api/v2/systems/xxx/errata" , underTest.build ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder createFilteredErrataRelativeUrlBuilder ( org.ovirt.engine.core.common.queries.ErrataFilter errataFilter ) { return new org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder ( org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilderTest.HOST_ID , errataFilter , org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilderTest.CONTENT_HOST_ERRATA_ENDPOINT ) ; }
Source:
public org.ovirt.engine.api.model.ErrorHandling adapt ( org.ovirt.engine.api.v3.types.V3ErrorHandling from ) { org.ovirt.engine.api.model.ErrorHandling to = new org.ovirt.engine.api.model.ErrorHandling ( ) ; if ( from.isSetOnError ( ) ) { to.setOnError ( from.getOnError ( ) ) ; } return to ; }

Target:
public org.ovirt.engine.api.model.ErrorHandling adapt ( org.ovirt.engine.api.v3.types.V3ErrorHandling from ) { org.ovirt.engine.api.model.ErrorHandling to = new org.ovirt.engine.api.model.ErrorHandling ( ) ; if ( from.isSetOnError ( ) ) { to.setOnError ( org.ovirt.engine.api.model.MigrateOnError.fromValue ( from.getOnError ( ) ) ) ; } return to ; }
Source:
protected void afterLoad ( ) { supportedClusterVersionsSet = parseSupportedVersions ( getSupportedClusterLevels ( ) ) ; supportedEngineVersionsSet = parseSupportedVersions ( getSupportedEngines ( ) ) ; }

Target:
public java.util.HashSet < org.ovirt.engine.core.compat.Version > getSupportedClusterVersionsSet ( ) { if ( ( supportedClusterVersionsSet ) == null ) { supportedClusterVersionsSet = parseSupportedVersions ( getSupportedClusterLevels ( ) ) ; } return supportedClusterVersionsSet ; }
Source:
public void invalidUnlessConditionDoesntOccurWithVariableReplacements2 ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR , variableReplacements ) . unless ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR , variableReplacements ) ) ; }

Target:
public void invalidUnlessConditionDoesntOccurWithVariableReplacements2 ( ) { org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR , variableReplacements ) . unless ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR , variableReplacements ) ) ; }
Source:
public void onError ( java.lang.Throwable t ) { org.junit.Assert.assertTrue ( org.ovirt.vdsm.jsonrpc.client.ClientConnectionException.class . isInstance ( t ) ) ; org.junit.Assert.assertEquals ( "Heartbeat exeeded" , t.getMessage ( ) ) ; latch.countDown ( ) ; }

Target:
public void onError ( java.lang.Throwable t ) { org.junit.Assert.assertTrue ( org.ovirt.vdsm.jsonrpc.client.ClientConnectionException.class . isInstance ( t ) ) ; org.junit.Assert.assertEquals ( "Heartbeat exceeded" , t.getMessage ( ) ) ; latch.countDown ( ) ; }
Source:
private void unplugFromExternalNetwork ( ) { new org.ovirt.engine.core.bll.network.ExternalNetworkManager ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) , getNetwork ( ) ) . deallocateIfExternal ( ) ; }

Target:
private void unplugFromExternalNetwork ( ) { externalNetworkManagerFactory.create ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) , getNetwork ( ) ) . deallocateIfExternal ( ) ; }
Source:
protected void fillImagesBySnapshots ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.fillImagesBySnapshots ( vm ) ; }

Target:
protected void fillImagesBySnapshots ( org.ovirt.engine.core.common.businessentities.VM vm ) { imagesHandler.fillImagesBySnapshots ( vm ) ; }
Source:
public void imageNotProvidedForOvirtNode ( ) { mockOvirtNode ( ) ; org.junit.Assert.assertThat ( validator.imageProvidedForOvirtNode ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ) ; }

Target:
public void imageNotProvidedForOvirtNode ( ) { mockOvirtNode ( ) ; org.junit.Assert.assertThat ( validator.imageProvidedForOvirtNode ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ) ; }
Source:
private void validateFailedWithReason ( final org.ovirt.engine.core.common.errors.EngineMessage message ) { org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( message.toString ( ) ) ) ; }

Target:
private void validateFailedWithReason ( final org.ovirt.engine.core.common.errors.EngineMessage message ) { initAndAssertValidation ( false ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( message.toString ( ) ) ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { table.ensureColumnPresent ( column , headerText , present ) ; tableHeader.ensureColumnPresent ( column , headerText , present ) ; }

Target:
public void ensureColumnVisible ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean visible , java.lang.String width ) { table.ensureColumnVisible ( column , headerText , visible , width ) ; tableHeader.ensureColumnVisible ( column , headerText , visible , width ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol getUserSelectedProtocol ( ) { return resolveSelectedProtocol ( this ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel getSelectedHasConsoleModel ( ) { if ( ( ( selectedHasConsoleModels ) == null ) || ( ( selectedHasConsoleModels.size ( ) ) != 1 ) ) { return null ; } return selectedHasConsoleModels.get ( 0 ) ; }
Source:
private int getDefaultOsId ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture ) { org.ovirt.engine.core.common.osinfo.OsRepository osRepository = org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; java.lang.Integer defaultArchOsId = osRepository.getDefaultOSes ( ) . get ( architecture ) ; return defaultArchOsId == null ? 0 : defaultArchOsId ; }

Target:
private int getDefaultOsId ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture ) { org.ovirt.engine.core.common.osinfo.OsRepository osRepository = org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; java.lang.Integer defaultArchOsId = osRepository.getDefaultOSes ( ) . get ( architecture ) ; return defaultArchOsId == null ? 0 : defaultArchOsId ; }
Source:
public void markAsValid ( ) { tabContainer.getElement ( ) . addClassName ( ( isActive ? style.active ( ) : style.inactive ( ) ) ) ; }

Target:
public void markAsValid ( ) { tabContainer.getElement ( ) . addClassName ( ( isActive ? style.obrand_active ( ) : style.inactive ( ) ) ) ; }
Source:
private void printUsage ( org.ovirt.engine.core.uutils.cli.parser.ArgumentsParser parser ) { java.lang.System.out.format ( "usage: %s" , parser.getUsage ( ) . replace ( "@PROGRAM_NAME@" , ( ( java.lang.String ) ( context.get ( org.ovirt.engine.exttool.logger.PROGRAM_NAME ) ) ) ) . replace ( "@ACTION_LIST@" , org.apache.commons.lang.StringUtils.join ( actions.keySet ( ) , ", " ) ) ) ; }

Target:
private void printUsage ( org.ovirt.engine.core.uutils.cli.parser.ArgumentsParser parser ) { java.lang.System.out.format ( "Usage: %s" , parser.getUsage ( ) . replace ( "@PROGRAM_NAME@" , ( ( java.lang.String ) ( context.get ( org.ovirt.engine.exttool.logger.PROGRAM_NAME ) ) ) ) . replace ( "@ACTION_LIST@" , org.apache.commons.lang.StringUtils.join ( actions.keySet ( ) , ", " ) ) ) ; }
Source:
public void setpm_options ( java.lang.String value ) { mVdsStatic.setpm_options ( value ) ; }

Target:
public void setStoragePoolName ( java.lang.String value ) { this . storagePoolName = value ; }
Source:
private void validateBase64 ( ) { try { rawImageData = javax.xml.bind.DatatypeConverter.parseBase64Binary ( base64Data ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException | java.lang.IllegalArgumentException e ) { validationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.VM_ICON_BASE64_PART_MALFORMED ) ; } }

Target:
private void validateBase64 ( ) { try { rawImageData = javax.xml.bind.DatatypeConverter.parseBase64Binary ( base64Data ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException | java.lang.IllegalArgumentException e ) { validationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.VM_ICON_BASE64_PART_MALFORMED ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomainType getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getstorage_domain_type ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainType getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getStorageDomainType ( ) ; }
Source:
public void testGetLunsThatBreakDiscardAfterDeleteSupportDiscardAfterDeleteDoesntBreak ( ) { storageDomain.setDiscardAfterDelete ( true ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) ) , java.util.Collections.emptyList ( ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedAllLunsHaveDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , storageDomain ) ) ; }
Source:
private void unplugFromExternalNetwork ( ) { org.ovirt.engine.core.bll.network.ExternalNetworkManager.create ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) , getNetwork ( ) ) . deallocateIfExternal ( ) ; }

Target:
private void unplugFromExternalNetwork ( ) { externalNetworkManagerFactory.create ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) , getNetwork ( ) ) . deallocateIfExternal ( ) ; }
Source:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetwork ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , vlanNetwork , nonVmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmAndNonVmAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM , NetworkType.NON_VM ) , vmNetwork1 , nonVmNetwork1 ) ; }
Source:
public org.ovirt.engine.core.ldap.LdapProviderType getLdapProvider ( ) { org.ovirt.engine.core.ldap.LdapProviderType provider = null ; if ( contains ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_PROVIDER ) ) { provider = org.ovirt.engine.core.ldap.LdapProviderType.valueOfIgnoreCase ( get ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_PROVIDER ) ) ; } return provider ; }

Target:
public org.ovirt.engine.extensions.aaa.builtin.kerberosldap.utils.ldap.LdapProviderType getLdapProvider ( ) { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.utils.ldap.LdapProviderType provider = null ; if ( contains ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_PROVIDER ) ) { provider = org.ovirt.engine.extensions.aaa.builtin.kerberosldap.utils.ldap.LdapProviderType.valueOfIgnoreCase ( get ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_PROVIDER ) ) ; } return provider ; }
Source:
public java.lang.String getDefaultBondingOption ( ) { return "mode=802.3ad miimon=150" ; }

Target:
public java.lang.String getDefaultBondingOption ( ) { return BondMode.BOND4.getConfigurationValue ( "150" ) ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; super . syncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateDataCenterVersion ( ) ; getSearchCommand ( ) . execute ( ) ; updateIsDiskHotPlugAvailable ( ) ; updateLiveStorageMigrationEnabled ( ) ; } updateActionAvailability ( ) ; }
Source:
private void detachLabeledNetworksFromClusterHosts ( ) { final org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter attachNetworkToVdsGroupParameter = org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getParameters ( ) ; runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.network.NetworkCluster > emptyList ( ) , java.util.Collections.singleton ( attachNetworkToVdsGroupParameter.getNetworkCluster ( ) ) ) ) ; }

Target:
private void detachLabeledNetworksFromClusterHosts ( ) { final org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter attachNetworkToClusterParameter = org.ovirt.engine.core.bll.network.cluster.DetachNetworkToClusterCommand.getParameters ( ) ; runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.network.NetworkCluster > emptyList ( ) , java.util.Collections.singleton ( attachNetworkToClusterParameter.getNetworkCluster ( ) ) ) ) ; }
Source:
public void testGetAllForStoragePoolFilteredWithNoPermissionsAndNoFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAllForStoragePool ( storagePool.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetAllForStoragePoolValidResult ( result ) ; }

Target:
public void testGetAllForStoragePoolFilteredWithNoPermissionsAndNoFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getAllForStoragePool ( storagePool.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetAllForStoragePoolValidResult ( result ) ; }
Source:
protected boolean doesStorageDomainhaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , long spaceForRequest ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainHasSpaceForRequest ( spaceForRequest ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator getStorageDomainsValidator ( org.ovirt.engine.core.compat.Guid spId , java.util.Set < org.ovirt.engine.core.compat.Guid > disks ) { return new org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator ( spId , disks ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetworkDAO ( ) . remove ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.removeVnicProfiles ( ) ; org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetworkDAO ( ) . remove ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.setSucceeded ( true ) ; }
Source:
public void verifyNoDomainForMemoryWhenDomainIsNotDataDomain ( ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomainType storageDomainType : org.ovirt.engine.core.common.businessentities.StorageDomainType.values ( ) ) { if ( ! ( storageDomainType.isDataDomain ( ) ) ) { validStorageDomain.setStorageDomainType ( storageDomainType ) ; verifyNoDomainForMemory ( java.util.Arrays.asList ( validStorageDomain ) ) ; } } }

Target:
public void filterAllDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filteredStorageDomains = memoryStorageHandler.filterStorageDomains ( java.util.Arrays.asList ( invalidStorageDomain1 , invalidStorageDomain2 , invalidStorageDomain3 ) , disksList ) ; org.junit.Assert.assertTrue ( filteredStorageDomains.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) { super . setIsChangable ( value ) ; } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < T > setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) { super . setIsChangable ( value ) ; } return this ; }
Source:
public java.lang.Boolean isRaiseErrorModalPanel ( org.ovirt.engine.core.common.action.VdcActionType actionType ) { return actionType != ( org.ovirt.engine.core.common.action.VdcActionType.LoginUser ) ; }

Target:
public java.lang.Boolean isRaiseErrorModalPanel ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.errors.VdcFault fault ) { return ( actionType != ( org.ovirt.engine.core.common.action.VdcActionType.LoginUser ) ) && ( ! ( ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.VmLogon ) ) && ( ( fault.getError ( ) ) == ( org.ovirt.engine.core.common.errors.VdcBllErrors.nonresp ) ) ) ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { assertEquals ( "" , query ) ; setUpEntityQueryExpectations ( VdcQueryType.GetAllStorageServerConnections , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpStorageConnections ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { assertEquals ( "" , query ) ; setUpEntityQueryExpectations ( QueryType.GetAllStorageServerConnections , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpStorageConnections ( ) , failure ) ; }
Source:
public void validVnicProfileNetworkFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.validNetworkFilterId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected java.lang.String composeRegex ( ) { return ( ( ( start ( ) ) + ( hostnameOrIp ( ) ) ) + ( path ( ) ) ) + ( end ( ) ) ; }

Target:
protected java.lang.String composeRegex ( ) { return ( ( ( start ( ) ) + ( org.ovirt.engine.core.common.utils.ValidationUtils.HOSTNAME_FOR_URI ) ) + ( path ( ) ) ) + ( end ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.AffinityGroup object ) { java.lang.String join = join ( getEntityNames ( object ) , ", " ) ; if ( join.isEmpty ( ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.AbstractSubTabAffinityGroupsView.constants.noMembersAffinityGroup ( ) ; } return join ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.AffinityGroup group ) { java.lang.String vmNames = join ( getVmNames ( group ) , ", " ) ; if ( vmNames.isEmpty ( ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.AbstractSubTabAffinityGroupsView.constants.noMembersAffinityGroup ( ) ; } return vmNames ; }
Source:
public boolean isPmSecondaryConcurrent ( ) { return mVdsStatic.isPmSecondaryConcurrent ( ) ; }

Target:
public void setHostProviderId ( org.ovirt.engine.core.compat.Guid hostProviderId ) { mVdsStatic.setHostProviderId ( hostProviderId ) ; }
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.compat.backendcompat.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.compat.backendcompat.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.Attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; image.setimage_group_id ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.Attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; image.setactive ( true ) ; image.setimageStatus ( ImageStatus.OK ) ; image.setdescription ( node.Attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( image ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.compat.backendcompat.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.compat.backendcompat.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.Attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; image.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.Attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; image.setactive ( true ) ; image.setimageStatus ( ImageStatus.OK ) ; image.setdescription ( node.Attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( image ) ; } }
Source:
protected void createImage ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.AddDisk , getAddDiskParameters ( ) , org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand.cloneContextAndDetachFromParent ( ) ) ; }

Target:
protected void createImage ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( ActionType.AddDisk , getAddDiskParameters ( ) , org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand.cloneContextAndDetachFromParent ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMTemplateName ( java.lang.String vmTemplateName , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return null ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMTemplateId ( org.ovirt.engine.core.compat.Guid vmTemplateId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return null ; }
Source:
public void updateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . update ( dynamicData ) ; }

Target:
public void updateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . updateIfNeeded ( dynamicData ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.VdsManager GetVdsManager ( org.ovirt.engine.core.compat.Guid vdsId ) { return GetVdsManager ( vdsId , false ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.VdsManager getVdsManager ( org.ovirt.engine.core.compat.Guid vdsId ) { return getVdsManager ( vdsId , false ) ; }
Source:
public void setAuthRecord ( java.lang.String engineSessionId , org.ovirt.engine.api.extensions.ExtMap authRecord ) { setData ( engineSessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.AUTH_RECORD_PARAMETER_NAME , authRecord ) ; }

Target:
public void setProfile ( java.lang.String sessionId , org.ovirt.engine.core.aaa.AuthenticationProfile profile ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PROFILE_PARAMETER_NAME , profile ) ; }
Source:
public void testParseNoOnlyReloadableFlag ( ) { parser.parse ( new java.lang.String [ ] { "--list" } ) ; org.junit.Assert.assertFalse ( parser.isOnlyReloadable ( ) ) ; }

Target:
public void testParseNoOnlyReloadableFlag ( ) { parser.parse ( new java.lang.String [ ] { "--list" } ) ; org.junit.jupiter.api.Assertions.assertFalse ( parser.isOnlyReloadable ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setName ( "BadName" ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWith ( boolean virtService , boolean glusterService ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDefaultVdsGroup ( ) ; group.setVirtService ( virtService ) ; group.setGlusterService ( glusterService ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; return group ; }
Source:
public void EntityPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { UpdateProperties ( ) ; if ( e.PropertyName.equals ( "status" ) ) { UpdateActionAvailability ( ) ; } }

Target:
public void entityPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { updateProperties ( ) ; if ( e.PropertyName.equals ( "status" ) ) { updateActionAvailability ( ) ; } }
Source:
public void init ( ) { super . init ( ) ; getIsAutoAssign ( ) . setEntity ( true ) ; getCustomPropertySheet ( ) . setKeyValueString ( customPropertiesKeysList ) ; getCustomPropertySheet ( ) . setEntity ( vm.getCustomProperties ( ) ) ; loadHosts ( ) ; }

Target:
public void init ( ) { super . init ( ) ; getIsAutoAssign ( ) . setEntity ( true ) ; getCustomPropertySheet ( ) . setKeyValueString ( customPropertiesKeysList ) ; getCustomPropertySheet ( ) . deserialize ( vm.getCustomProperties ( ) ) ; loadHosts ( ) ; }
Source:
protected boolean ConcreteCheckExistingStorageDomain ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.StorageDomainStatic , org.ovirt.engine.core.common.businessentities.SANState > domainFromIrs ) { return true ; }

Target:
protected boolean concreteCheckExistingStorageDomain ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.StorageDomainStatic , org.ovirt.engine.core.common.businessentities.SANState > domainFromIrs ) { return true ; }
Source:
protected abstract void beforeUiCommonInitEvent ( T loginModel ) ;

Target:
protected void onLogin ( T loginModel ) { restApiSessionManager.recordLoggedInTime ( ) ; }
Source:
protected boolean canDoAction ( ) { return org.ovirt.engine.core.bll.aaa.LoginOnBehalfCommand.isInternalExecution ( ) ? true : failCanDoAction ( EngineMessage.USER_CANNOT_RUN_ACTION_INTERNAL_COMMAND ) ; }

Target:
protected boolean validate ( ) { return org.ovirt.engine.core.bll.aaa.LoginOnBehalfCommand.isInternalExecution ( ) ? true : failValidation ( EngineMessage.USER_CANNOT_RUN_ACTION_INTERNAL_COMMAND ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( int idx ) { org.ovirt.engine.core.common.businessentities.storage_domains dom = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; dom.setId ( GUIDS [ idx ] ) ; return dom ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomain ( int idx ) { org.ovirt.engine.api.model.StorageDomain dom = new org.ovirt.engine.api.model.StorageDomain ( ) ; dom.setId ( GUIDS [ idx ] ) ; dom.setStorageName ( NAMES [ idx ] ) ; return dom ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { expanderContent.getStyle ( ) . setDisplay ( ( expander.isDown ( ) ? Style.Display.BLOCK : Style.Display.NONE ) ) ; }

Target:
private void initExpander ( ) { expander.initWithContent ( expanderContent ) ; }
Source:
public static java.util.List < org.ovirt.engine.api.model.PowerManagement > parse ( java.lang.String str , java.lang.String typeStr ) { return org.ovirt.engine.api.restapi.util.FencingOptionsParser.parse ( str , typeStr , false ) ; }

Target:
public static java.util.List < org.ovirt.engine.api.model.PowerManagement > parse ( java.lang.String str , java.lang.String typeStr ) { return org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( str , typeStr , false ) ; }
Source:
private void InternalEndWithFailure ( ) { log.errorFormat ( "Ending command with failure: {0}" , getClass ( ) . getName ( ) ) ; EndWithFailure ( ) ; }

Target:
private void InternalEndWithFailure ( ) { log.errorFormat ( "Ending command with failure: {0}" , getClass ( ) . getName ( ) ) ; endWithFailure ( ) ; }
Source:
public void setGroupNames ( java.util.LinkedList < java.lang.String > value ) { groupNames = value ; }

Target:
public void setGroupNames ( java.util.Collection < java.lang.String > value ) { groupNames = new java.util.HashSet < java.lang.String > ( value ) ; }
Source:
public void updateVdsDynamicPowerManagementPolicyFlag ( org.ovirt.engine.core.compat.Guid id , boolean controlledByPmPolicy ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setPowerManagementControlledByPolicy ( controlledByPmPolicy ) ; update ( 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:
public void setDeviceInfoText ( java.lang.String raidType ) { deviceSelectionInfo.setText ( ( ( ( "(" + ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.constants.getStorageDeviceSelectionInfo ( ) ) ) + raidType ) + ")" ) ) ; }

Target:
private void initInfoIcon ( ) { raidParamsInfoIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.templates.italicText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.constants.raidConfigurationWarning ( ) ) ) ; }
Source:
public boolean isProxyActive ( ) { return ( ( getForwardVdsmServer ( ) ) != null ) && ( ( getForwardVdsmServer ( ) . trim ( ) . length ( ) ) > 0 ) ; }

Target:
public boolean isJsonSecured ( ) { return jsonSecured ; }
Source:
public java.lang.String getstorage ( ) { return this . storage ; }

Target:
public java.lang.String getStorage ( ) { return storage ; }
Source:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getHostListByCluster ( query , cluster.getName ( ) ) ; }

Target:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.Cluster cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getHostListByCluster ( query , cluster.getName ( ) ) ; }