auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void macAddressTooShortForCreate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( createShortMacAddress ( ) , org.ovirt.engine.core.common.validation.group.CreateEntity.class , true ) ; }

Target:
public void macAddressEmptyForCreate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( "" , org.ovirt.engine.core.common.validation.group.CreateEntity.class , false ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmPool getVmPool ( ) { if ( ( ( vmPool ) == null ) && ( ( getVmPoolId ( ) ) != null ) ) { vmPool = getVmPoolDao ( ) . get ( getVmPoolId ( ) ) ; } return vmPool ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmPool getVmPool ( ) { if ( ( ( vmPool ) == null ) && ( ( getVmPoolId ( ) ) != null ) ) { vmPool = vmPoolDao.get ( getVmPoolId ( ) ) ; } return vmPool ; }
Source:
public org.ovirt.engine.api.resource.AssignedTagResource getAssignedTagSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendHostTagResource ( asGuid ( parentId ) , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedTagResource getAssignedTagResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendHostTagResource ( asGuid ( parentId ) , id ) ) ; }
Source:
public void checkValidIpConfigurationNoneBootProtocol ( ) { initIpConfigurationDetails ( Ipv4BootProtocol.NONE , false , false ) ; org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , actual ) ; }

Target:
public void checkMissingV6BootProtocol ( ) { initIpv6ConfigurationWithPrimaryAddress ( ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_IP_CONFIGURATION_MISSING_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_NETWORK_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_INTERFACE_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.INTERFACE_NAME ) ) ) ; }
Source:
public com.google.gwt.view.client.HasData < org.ovirt.engine.core.common.businessentities.AuditLog > getEventDropdown ( ) { return eventsWidget ; }

Target:
public com.google.gwt.view.client.HasData < org.ovirt.engine.core.common.businessentities.AuditLog > getEventDropdown ( ) { return eventsWidget.asHasData ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StorageFormatType getStorageFormatTypeForPool ( java.sql.ResultSet rs ) throws java.sql.SQLException { return org.ovirt.engine.core.common.businessentities.StorageFormatType.forValue ( rs.getString ( "storage_pool_format_type" ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageType mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return org.ovirt.engine.core.common.businessentities.StorageType.forValue ( rs.getInt ( 1 ) ) ; }
Source:
public void testCanDoActionVmMigrating ( ) { prepareForVmValidatorTests ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.MigratingTo ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN_OR_UP ) ; }

Target:
public void testCanDoActionVmMigrating ( ) { prepareForVmValidatorTests ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.MigratingTo ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN_OR_UP ) ; }
Source:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setvm_name ( "vm1" ) ; vmStatic.setmem_size_mb ( 256 ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; }

Target:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setVmName ( "vm1" ) ; vmStatic.setMemSizeMb ( 256 ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; }
Source:
public boolean isVisible ( ) { return getModel ( ) . isQuotaAvailable ( ) ; }

Target:
public boolean getIsAvailable ( ) { return getModel ( ) . getHasDomain ( ) ; }
Source:
public void Connect ( ) { org.ovirt.engine.ui.common.uicommon.SpicePluginImpl.logger.warning ( "Connecting via spice..." ) ; if ( configurator.isClientLinuxFirefox ( ) ) { connectNativelyViaXPI ( ) ; } else if ( configurator.isClientWindownsExplorer ( ) ) { connectNativelyViaActiveX ( ) ; } }

Target:
public void Connect ( ) { org.ovirt.engine.ui.common.uicommon.SpicePluginImpl.logger.warning ( "Connecting via spice..." ) ; if ( configurator.isClientLinuxFirefox ( ) ) { connectNativelyViaXPI ( ) ; } else if ( configurator.isClientWindowsExplorer ( ) ) { connectNativelyViaActiveX ( ) ; } }
Source:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.startPollingTask ( taskID ) ; } }

Target:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { getAsyncTaskManager ( ) . StartPollingTask ( taskID ) ; } }
Source:
org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand GetAsyncCommandForVm ( org.ovirt.engine.core.compat.Guid vmId ) ;

Target:
org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand getAsyncCommandForVm ( org.ovirt.engine.core.compat.Guid vmId ) ;
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel model ) { driver.edit ( model ) ; addRemoveVmWidget.edit ( model.getVmsSelectionModel ( ) ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel model ) { driver.edit ( model ) ; addRemoveVmWidget.edit ( model.getVmsSelectionModel ( ) ) ; addRemoveHostWidget.edit ( model.getHostsSelectionModel ( ) ) ; }
Source:
protected boolean canDoAction ( ) { boolean result = ( isUserCanBeAuthenticated ( ) ) && ( attachUserToSession ( ) ) ; if ( ! result ) { logAutheticationFailure ( ) ; } return result ; }

Target:
protected void executeCommand ( ) { setActionReturnValue ( org.ovirt.engine.core.bll.LoginBaseCommand.getCurrentUser ( ) ) ; getReturnValue ( ) . setLoginResult ( LoginResult.Autheticated ) ; getReturnValue ( ) . setSessionId ( engineSessionId ) ; updateUserData ( ) ; org.ovirt.engine.core.bll.LoginBaseCommand.setSucceeded ( true ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.UICommand createCancelCommand ( java.lang.String commandName ) { org.ovirt.engine.ui.uicommonweb.UICommand command ; command = new org.ovirt.engine.ui.uicommonweb.UICommand ( commandName , this ) ; command.setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . cancel ( ) ) ; command.setIsCancel ( true ) ; return command ; }

Target:
private void checkFileDomainAttachedToDc ( java.lang.String commandName , org.ovirt.engine.core.common.businessentities.StorageServerConnections storageServerConnections ) { checkDomainAttachedToDc ( commandName , null , storageServerConnections ) ; }
Source:
private void Spice_Connected ( java.lang.Object sender ) { setIsConnected ( true ) ; UpdateActionAvailability ( ) ; }

Target:
private void spice_Connected ( java.lang.Object sender ) { setIsConnected ( true ) ; updateActionAvailability ( ) ; }
Source:
protected boolean wasSkippedDueToPolicy ( java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue fenceResult = null ; if ( returnValue instanceof org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue ) { fenceResult = ( ( org.ovirt.engine.core.common.businessentities.FenceStatusReturnValue ) ( returnValue ) ) ; } return ( fenceResult != null ) && ( fenceResult.getIsSkipped ( ) ) ; }

Target:
protected int countSkippedOperations ( java.util.List < org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue > results ) { int numOfSkipped = 0 ; for ( org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue result : results ) { if ( wasSkippedDueToPolicy ( result ) ) { numOfSkipped ++ ; } } return numOfSkipped ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createLowerVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; return pool ; }

Target:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }
Source:
public void canDoWithPinnedHostOnVm ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }

Target:
public void validateWithPinnedHostOnVm ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.assertj.core.api.Assertions.assertThat ( command.validate ( ) ) . isTrue ( ) ; }
Source:
private boolean ConnectStorage ( ) { return getStorageHelper ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) ) . connectStorageToDomainByVdsId ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) , org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getVds ( ) . getId ( ) ) ; }

Target:
private boolean connectStorage ( ) { return getStorageHelper ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) ) . connectStorageToDomainByVdsId ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) , org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getVds ( ) . getId ( ) ) ; }
Source:
java.lang.String TranslateErrorTextSingle ( java.lang.String errorMsg , boolean changeIfNotFound ) ;

Target:
java.lang.String translateErrorTextSingle ( java.lang.String errorMsg , boolean changeIfNotFound ) ;
Source:
public void setFireConsoleConnectEventCommand ( org.ovirt.engine.ui.uicommonweb.UICommand fireConsoleConnectEvent ) { this . fireConsoleConnectEventCommand = fireConsoleConnectEvent ; }

Target:
public void setConsoleConnectCommand ( org.ovirt.engine.ui.uicommonweb.UICommand consoleConnectCommand ) { this . consoleConnectCommand = consoleConnectCommand ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > allForNetwork = getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) ; return new org.ovirt.engine.core.bll.validator.NetworkValidator.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__HOST , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__HOSTS ) . getNetworkInUse ( getEntitiesNames ( allForNetwork ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { return networkNotUsed ( getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) , EngineMessage.VAR__ENTITIES__HOSTS , EngineMessage.VAR__ENTITIES__HOST ) ; }
Source:
public java.lang.String evaluate ( java.lang.String realUrlParamName , java.lang.String urlParamName , java.lang.String urlParamType ) { set ( "realUrlParamName" , realUrlParamName ) ; set ( "urlParamName" , urlParamName ) ; set ( "urlParamType" , urlParamType ) ; return evaluate ( ) ; }

Target:
public java.lang.String evaluate ( org.ovirt.engine.sdk.generator.java.ParameterData parameter ) { set ( "parameterName" , parameter.getName ( ) ) ; set ( "parameterContext" , parameter.getContext ( ) ) ; set ( "javaName" , parameter.getJavaName ( ) ) ; return evaluate ( ) ; }
Source:
public void setFile ( org.ovirt.engine.sdk.entities.PayloadFile value ) { this . file = value ; }

Target:
public void unsetFile ( ) { this . file = null ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > getDataCentersWithPermittedActionOnClusters ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > getDataCentersWithPermittedActionOnClusters ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup , boolean supportsVirtService , boolean supportsGlusterService ) ;
Source:
public boolean isFailBack ( ) { return this . vmStatic.getfail_back ( ) ; }

Target:
public void setNiceLevel ( int value ) { this . vmStatic.setNiceLevel ( value ) ; }
Source:
public void testGetAllForRoleWithInvalidRole ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.permissions > result = dao.getAllForRole ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }

Target:
public void testGetAllForRoleWithInvalidRole ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.permissions > result = dao.getAllForRole ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }
Source:
public void setnum_of_sockets ( int value ) { this . mVmStatic.setnum_of_sockets ( value ) ; }

Target:
public int getCpuPerSocket ( ) { return this . vmStatic.getcpu_per_socket ( ) ; }
Source:
protected boolean isDataOperationsBySpm ( ) { return isDataOperationsBySpm ( org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getStoragePool ( ) ) ; }

Target:
protected boolean isDataOperationsBySpm ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic targetSd ) { return ! ( isDataOperationsByHSM ( targetSd ) ) ; }
Source:
public void addLocator ( org.ovirt.api.metamodel.concepts.Locator newLocator ) { locators.add ( newLocator ) ; locators.sort ( java.util.Comparator.comparing ( Locator :: getName ) ) ; }

Target:
public java.util.List < org.ovirt.api.metamodel.concepts.Locator > getDeclaredLocators ( ) { return new java.util.concurrent.CopyOnWriteArrayList ( locators ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return null ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return null ; }
Source:
public void setvds_group_name ( java.lang.String value ) { this . vds_group_nameField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_name" ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return storagePoolId ; }
Source:
public void networkQosSupported ( ) throws java.lang.Exception { vnicProfileValidationTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , true , true , true ) ; }

Target:
public void networkInCluster ( ) throws java.lang.Exception { vnicProfileValidationTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup lookupClusterByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , "GetVdsGroupByName" ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster lookupClusterByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , "GetClusterByName" ) ; }
Source:
private void handleTimeout ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response ) { response.setTryNextServer ( true ) . setTranslatedException ( new org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.CONNECTION_TIMED_OUT , "Connection to to server has timed out." ) ) . setServerScore ( Score.LOW ) ; }

Target:
private void handleTimeout ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response ) { response.setTryNextServer ( true ) . setTranslatedException ( new org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.CONNECTION_TIMED_OUT , "Connection to to server has timed out." ) ) . setOrderingAlgorithm ( OrderingAlgorithmType.PUT_LAST ) ; }
Source:
public org.ovirt.engine.core.dao.VmAndTemplatesGenerationsDao getVmAndTemplatesGenerationsDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmAndTemplatesGenerationsDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.VmAndTemplatesGenerationsDao getVmAndTemplatesGenerationsDao ( ) { return getDbFacade ( ) . getVmAndTemplatesGenerationsDao ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getNfsVolumes ( org.ovirt.engine.core.compat.Guid clusterId ) { return org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.getGlusterVolumeDao ( ) . getVolumesByOption ( clusterId , GlusterStatus.UP , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_KEY_NFS_DISABLE , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_VALUE_OFF ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getNfsVolumes ( org.ovirt.engine.core.compat.Guid clusterId ) { return glusterVolumeDao.getVolumesByOption ( clusterId , GlusterStatus.UP , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_KEY_NFS_DISABLE , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_VALUE_OFF ) ; }
Source:
public void setApps ( java.util.List < java.lang.String > value ) { if ( ( apps ) != value ) { apps = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Apps" ) ) ; } }

Target:
public void setApps ( java.util.List < java.lang.String > value ) { if ( ( apps ) != value ) { apps = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Apps" ) ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.DisplayType > displayType = getModel ( ) . getDisplayProtocol ( ) . getSelectedItem ( ) ; enableSinglePCI ( ( ( displayType.getEntity ( ) ) == ( org.ovirt.engine.core.common.businessentities.DisplayType.qxl ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.DisplayType > displayType = getModel ( ) . getDisplayType ( ) . getSelectedItem ( ) ; enableSinglePCI ( ( ( displayType.getEntity ( ) ) == ( org.ovirt.engine.core.common.businessentities.DisplayType.qxl ) ) ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS , HostSetupNetworksValidator.VAR_NETWORK_ATTACHMENT_NOT_EXISTS_ENTITY , "null" ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , "null" ) ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithBadVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setcompatibility_version ( new org.ovirt.engine.core.compat.Version ( 5 , 0 ) ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithBadVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setCompatibilityVersion ( new org.ovirt.engine.core.compat.Version ( 5 , 0 ) ) ; return group ; }
Source:
protected boolean ovfOnAnyDomainSupported ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return org.ovirt.engine.core.common.FeatureSupported.ovfStoreOnAnyDomain ( pool.getcompatibility_version ( ) ) ; }

Target:
protected boolean ovfOnAnyDomainSupported ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return org.ovirt.engine.core.common.FeatureSupported.ovfStoreOnAnyDomain ( pool.getCompatibilityVersion ( ) ) ; }
Source:
public void testVersionedValue ( ) { org.junit.Assert.assertEquals ( 1024 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 777 , null ) ) ; org.junit.Assert.assertEquals ( 512 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 777 , Version.v3_6 ) ) ; }

Target:
public void testVersionedValue ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 1024 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 777 , null ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 512 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 777 , Version.v3_6 ) ) ; }
Source:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.HostMonitoring.log.errorFormat ( "{0} Error: {1}, vds = {2} : {3}" , messagePrefix , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) , _vds.getId ( ) , _vds.getName ( ) ) ; }

Target:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.HostMonitoring.log.error ( "{} vds={}({}): {}" , messagePrefix , _vds.getName ( ) , _vds.getId ( ) , ex.getMessage ( ) ) ; }
Source:
public static com.google.gwt.user.client.Timer factoryTimer ( java.lang.String timerName , com.google.gwt.user.client.Timer timer ) { org.ovirt.engine.ui.common.uicommon.TimerFactory.logger.info ( ( ( "Adding timer '" + timerName ) + "' to the timers list" ) ) ; org.ovirt.engine.ui.common.uicommon.TimerFactory.timerList.put ( timerName , timer ) ; return timer ; }

Target:
public static com.google.gwt.user.client.Timer factoryTimer ( java.lang.String timerName , com.google.gwt.user.client.Timer timer ) { org.ovirt.engine.ui.common.uicommon.TimerFactory.logger.fine ( ( ( "Adding timer '" + timerName ) + "' to the timers list" ) ) ; org.ovirt.engine.ui.common.uicommon.TimerFactory.timerList.put ( timerName , timer ) ; return timer ; }
Source:
public void testGet ( ) { doTestGet ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) ; }

Target:
public void testGet ( ) { doTestGet ( ApplicationMode.AllModes , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( source != null ) && ( ! ( ( java.lang.Boolean ) ( source ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc importImage ( java.lang.String spUUID , java.lang.String sdUUID , java.lang.String dstImgGUID , java.lang.String dstVolUUID , java.lang.String importLocation ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc downloadImage ( java.util.Map methodInfo , java.lang.String spUUID , java.lang.String sdUUID , java.lang.String dstImgGUID , java.lang.String dstVolUUID ) ;
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ( ( ( java.util.List < java.lang.String > ) ( source ) ) . size ( ) ) > 0 ; } return false ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.memorySnapshotSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllUpServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllForClusterWithStatusAndPeerStatus ( clusterId , VDSStatus.Up , PeerStatus.CONNECTED ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllUpServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return vdsDao.getAllForClusterWithStatusAndPeerStatus ( clusterId , VDSStatus.Up , PeerStatus.CONNECTED ) ; }
Source:
protected org.ovirt.engine.core.common.action.ActionReturnValue performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.action.StoragePoolParametersBase parameters = new org.ovirt.engine.core.common.action.StoragePoolParametersBase ( storagePoolId ) ; return backend.runInternalAction ( ActionType.ProcessOvfUpdateForStoragePool , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.action.ActionReturnValue performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.action.ProcessOvfUpdateParameters parameters = new org.ovirt.engine.core.common.action.ProcessOvfUpdateParameters ( storagePoolId , null ) ; return backend.runInternalAction ( ActionType.ProcessOvfUpdateForStoragePool , parameters ) ; }
Source:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.FenceAgentModel model ) { super . init ( model ) ; provider.initializeModel ( model ) ; addTestButtonListener ( ) ; addCiscoUcsPmTypeListener ( model ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gwt.user.client.Window.open ( dynamicMessages.fencingOptionsUrl ( ) , "_blank" , null ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : false ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source ; }
Source:
protected java.util.List < ? extends java.util.Comparator < org.ovirt.engine.core.common.businessentities.StorageDomain > > getStorageDomainComparators ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > vmDisks ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.bll.memory.sdcomparators.StorageDomainNumberOfVmDisksComparator ( vmDisks ) , new org.ovirt.engine.core.bll.memory.sdcomparators.StorageTypeLocalLastComparator ( ) , new org.ovirt.engine.core.bll.memory.sdcomparators.StorageTypeBlockLastComparator ( ) , new org.ovirt.engine.core.bll.memory.sdcomparators.StorageDomainAvailableDiskSizeComparator ( ) ) ; }

Target:
protected java.util.List < ? extends java.util.Comparator < org.ovirt.engine.core.common.businessentities.StorageDomain > > getStorageDomainComparators ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > vmDisks ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.bll.memory.sdcomparators.StorageDomainNumberOfVmDisksComparator ( vmDisks ) , org.ovirt.engine.core.bll.memory.MemoryStorageHandler.SHARED_FIRST_COMPARATOR , org.ovirt.engine.core.bll.memory.MemoryStorageHandler.FILE_FIRST_COMPARATOR , org.ovirt.engine.core.bll.memory.MemoryStorageHandler.AVAILABLE_SIZE_COMPARATOR ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveTag , new org.ovirt.engine.core.common.action.TagsActionParametersBase ( guid ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( ActionType.RemoveTag , new org.ovirt.engine.core.common.action.TagsActionParametersBase ( guid ) ) ; }
Source:
public void canDoActionFailsWithEmptyBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 0 , false ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_BRICKS_REQUIRED ) ; }

Target:
public void validateFailsWithEmptyBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 0 , false ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_BRICKS_REQUIRED ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.BaseDisk generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.BaseDisk ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.common.businessentities.DiskInterface.SCSI , true , org.ovirt.engine.core.common.businessentities.PropagateErrors.Off , "DiskName" , "" , false , false ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.BaseDisk generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.BaseDisk ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , true , org.ovirt.engine.core.common.businessentities.PropagateErrors.Off , "DiskName" , "" , false , false ) ; }
Source:
protected void updateReturnStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc newReturnStatus ) { _result.setXmlRpcStatus ( newReturnStatus ) ; }

Target:
protected void updateReturnStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.Status newReturnStatus ) { _result.setStatus ( newReturnStatus ) ; }
Source:
public org.ovirt.engine.api.model.Events list ( ) { return mapCollection ( getBackendCollection ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Events list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.GetEventMessagesParameters ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( ) ) ; } }
Source:
java.lang.Iterable < org.ovirt.engine.ui.uicommonweb.models.EntityModel > getNetworksTableItems ( ) { org.ovirt.engine.ui.uicommonweb.models.ListModel tableModel = networks.asEditor ( ) . flush ( ) ; return tableModel != null ? tableModel.getItems ( ) : new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; }

Target:
java.lang.Iterable < org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel > getNetworksTableItems ( ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel tableModel = networks.asEditor ( ) . flush ( ) ; return tableModel != null ? tableModel.getItems ( ) : new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel > ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByExternalId ( org.ovirt.engine.core.compat.Guid externalId ) { return multipleResults ( entityManager.createNamedQuery ( "Step.getStepsByExternalId" , org.ovirt.engine.core.common.job.Step.class ) . setParameter ( "externalId" , externalId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByExternalId ( org.ovirt.engine.core.compat.Guid externalId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Step.getStepsByExternalId" , org.ovirt.engine.core.common.job.Step.class ) . setParameter ( "externalId" , externalId ) ) ; }
Source:
public void onSuccess ( final org.ovirt.engine.core.common.queries.VdcQueryReturnValue result ) { operation.getCallback ( ) . onSuccess ( operation , result ) ; }

Target:
public void onSuccess ( final org.ovirt.engine.core.common.queries.QueryReturnValue result ) { operation.getCallback ( ) . onSuccess ( operation , result ) ; }
Source:
public void disconnect ( ) { if ( ( _client ) != null ) { _client.disconnect ( ) ; _client = null ; } }

Target:
public void close ( ) throws java.io.IOException { if ( ( _client ) != null ) { _client.close ( ) ; _client = null ; } }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( ) ; } return source ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel ) ( result.getState ( ) ) ) ; localModel.postOnCreateVolume ( result.getReturnValue ( ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel ) ( result.getState ( ) ) ) ; localModel.postOnCreateVolume ( result.getReturnValue ( ) , volume ) ; }
Source:
public java.lang.String getPassword ( ) { return null ; }

Target:
protected abstract org.ovirt.engine.sdk4.HttpClient createHttpClient ( ) throws org.apache.http.ProtocolException ;
Source:
public void testAllLunsSupportDiscardFailsOneLunDoesNotSupport ( ) { org.junit.Assert.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) , createLunWithDiscardSupport ( 0L ) ) ) ) ; }

Target:
public void testAllLunsSupportDiscardFailsOneLunDoesNotSupport ( ) { org.junit.jupiter.api.Assertions.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) , createLunWithDiscardSupport ( 0L ) ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] snapParams ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.AlignmentScanReturnForXmlRpc getDiskAlignment ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > driveSpecs ) ;
Source:
public void internalInactiveAllowed ( ) { testInternalExecution ( StorageDomainStatus.InActive ) ; canDoActionSucceeds ( ) ; noIllegalStatusMessage ( ) ; }

Target:
public void nonInternalInactiveAllowed ( ) { nonInternalActionAllowed ( StorageDomainStatus.InActive ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { _deploy.getParser ( ) . cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , true ) ; return true ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _deploy.getParser ( ) . cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , deployIpTables ) ; return true ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM createVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM createVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; vm.setClusterCompatibilityVersion ( Version.v4_0 ) ; return vm ; }
Source:
public java.lang.Integer getpm_port ( ) { return mVdsStatic.getpm_port ( ) ; }

Target:
public java.lang.Integer getPmPort ( ) { return mVdsStatic.getPmPort ( ) ; }
Source:
protected void changeDefualtHost ( ) { super . changeDefualtHost ( ) ; doChangeDefautlHost ( pool.fetchDedicatedVmForSingleHost ( ) ) ; }

Target:
protected void changeDefaultHost ( ) { super . changeDefaultHost ( ) ; doChangeDefaultHost ( pool.getDedicatedVmForVdsList ( ) ) ; }
Source:
public void addErrorMessageChangeListener ( org.ovirt.engine.ui.uicompat.IEventListener < org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > listener ) { getPropertyChangedEvent ( ) . addListener ( listener ) ; }

Target:
public void addPropertyChangeListener ( org.ovirt.engine.ui.uicompat.IEventListener < org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > listener ) { getPropertyChangedEvent ( ) . addListener ( listener ) ; }
Source:
org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmSessionsModel > getSubTabVirtualMachineSessionsModelProvider ( ) ;

Target:
org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmDevice , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmDevicesListModel < org.ovirt.engine.core.common.businessentities.VM > > getSubTabVirtualMachineVmDeviceModelProvider ( ) ;
Source:
public void validateVmMemoryCantRunOnVdsNotEnoughMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantRunOnVdsNotEnoughMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.StorageDomain result ) { org.junit.Assert.assertEquals ( existingDomain , result ) ; }

Target:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.StorageDomain result ) { org.junit.Assert.assertEquals ( existingDomain , result ) ; org.junit.Assert.assertEquals ( "Wrong committed disk size" , 8 , result.getCommittedDiskSize ( ) ) ; org.junit.Assert.assertEquals ( "Wrong actual disk size" , 4 , result.getActualImagesSize ( ) ) ; }
Source:
private void setLastEvent ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { if ( ( lastEvent ) != value ) { lastEvent = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "LastEvent" ) ) ; } }

Target:
private void setLastEvent ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { if ( ( lastEvent ) != value ) { lastEvent = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LastEvent" ) ) ; } }
Source:
public void testUpdateFieldsQutoaDefault ( ) { vm.setIsQuotaDefault ( true ) ; vmStatic.setIsQuotaDefault ( false ) ; org.junit.Assert.assertTrue ( "Quota default should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }

Target:
public void testUpdateFieldsQuotaEnforcementType ( ) { vm.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.DISABLED ) ; vmStatic.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.SOFT_ENFORCEMENT ) ; junit.framework.Assert.assertTrue ( "Quota enforcement type should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . virtualMachineGeneralSubTabLabel ( ) , 1 , ginjector.getSubTabVirtualMachineGeneralModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachineGeneralSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
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.HibernateVmCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , getVmIsHibernatingMessage ( ) ) ) ; }

Target:
private void addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createHibernationMemoryDisk ( org.ovirt.engine.core.bll.HibernateVmCommand.getVm ( ) , org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) , vmOverheadCalculator ) ; addDisk ( memoryDisk ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getByName ( java.lang.String name ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( org.ovirt.engine.core.dal.dbbroker.DbFacadeUtils.asSingleResult ( getByName ( name , true ) ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getByName ( java.lang.String name ) { return ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( org.ovirt.engine.core.dal.dbbroker.DbFacadeUtils.asSingleResult ( getByName ( name , true ) ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDS getVdsByVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = null ; if ( vdsId != null ) { vds = org.ovirt.engine.core.bll.hostdeploy.GetoVirtISOsQuery.getDbFacade ( ) . getVdsDao ( ) . get ( vdsId ) ; } return vds ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDS getVdsByVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = null ; if ( vdsId != null ) { vds = hostDao.get ( vdsId ) ; } return vds ; }
Source:
private java.lang.String path ( ) { return "\\:/(.*?/|.*?\\\\)?([^\\./|^\\.\\\\]+)(?:\\.([^\\\\]*)|)" ; }

Target:
private java.lang.String path ( ) { return "\\:/((.*?/|.*?\\\\)?([^\\./|^\\.\\\\]+)(?:\\.([^\\\\]*)|)/?)?" ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VmInit result = dao.get ( org.ovirt.engine.core.dao.VmInitDaoTest.EXISTING_VM ) ; org.junit.Assert.assertNotNull ( ( result != null ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VmInit result = dao.get ( org.ovirt.engine.core.dao.VmInitDaoTest.EXISTING_VM ) ; org.junit.jupiter.api.Assertions.assertNotNull ( ( result != null ) ) ; }
Source:
public org.ovirt.engine.core.compat.Version getcompatibility_version ( ) { if ( ( version ) == null ) { version = new org.ovirt.engine.core.compat.Version ( compatibilityVersion ) ; } return version ; }

Target:
public org.ovirt.engine.core.compat.Version getcompatibility_version ( ) { if ( ( version ) == null ) { version = org.ovirt.engine.core.compat.Version.getLatest ( ) ; } return version ; }
Source:
private void initHandlers ( ) { org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = tagsDirector ; serviceLoader.load ( org.ovirt.engine.core.bll.VmHandler.class ) ; org.ovirt.engine.core.bll.VdsHandler.init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }

Target:
private void initHandlers ( ) { org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = tagsDirector ; serviceLoader.load ( org.ovirt.engine.core.bll.VmHandler.class ) ; serviceLoader.load ( org.ovirt.engine.core.bll.VdsHandler.class ) ; org.ovirt.engine.core.bll.VmTemplateHandler.init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunAutoQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runInternalQuery ( actionType , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.bll.CommandBase < ? > action , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runAction ( action , true , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( executionContext ) ) ; }
Source:
public void getAAAProfilesList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.convertAAAProfilesResult ( aQuery , false ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
private java.lang.Object getConfigValuePreConvertedOptionalVersion ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , org.ovirt.engine.core.compat.Version version ) { return version != null ? getConfigValuePreConverted ( configValue , version.toString ( ) ) : getConfigValuePreConverted ( configValue ) ; }
Source:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; addRadioButtonsListeners ( model ) ; addKernelCmdlineResetListener ( model ) ; }

Target:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; addRadioButtonsListeners ( model ) ; addKernelCmdlineResetListener ( model ) ; addAddAffinityLabelButtonListener ( model ) ; }