auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void updateVmDisks ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) , false , false , true ) ; mImages.addAll ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ) ; }

Target:
protected void updateVmDisks ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) , false , false , true ) ; mImages.addAll ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ) ; }
Source:
public void testIsNetworkInSyncWhenIpv6BootProtocolNotStaticAddressDifferent ( ) throws java.lang.Exception { initIpv6ConfigurationBootProtocolAddress ( Ipv6BootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv6StaticBootProtocolNetmaskEqual ( ) { initIpv6ConfigurationBootProtocolPrefix ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.IPV6_BOOT_PROTOCOL , true ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isCpuNameBlank = ( object.getCPU ( ) . getSelectedItem ( ) ) == null ; architectureEditor.setVisible ( isCpuNameBlank ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isCpuNameBlank = ( object.getCPU ( ) . getSelectedItem ( ) ) == null ; architectureEditor.setVisible ( ( isCpuNameBlank && ( org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.isModeSupported ( ApplicationMode.VirtOnly ) ) ) ) ; }
Source:
public void testJsonDiskDescription ( ) throws java.io.IOException { assertDiskDescriptionMap ( "DiskAlias" , "DiskDescription" ) ; }

Target:
public void testJsonDiskDescription ( ) throws java.io.IOException { disk1.setDiskAlias ( "DiskAlias" ) ; disk1.setDiskDescription ( "DiskDescription" ) ; org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( disk1 ) ; }
Source:
public int compareTo ( org.ovirt.engine.core.common.businessentities.VmDynamic o ) { return org.ovirt.engine.core.common.businessentities.BusinessEntityGuidComparator.< org.ovirt.engine.core.common.businessentities.VmDynamic > newInstance ( ) . compare ( this , o ) ; }

Target:
public java.lang.String getLastWatchdogAction ( ) { return lastWatchdogAction ; }
Source:
public void testCanDoActionImageDoesNotExist ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void testCanDoActionImageDoesNotExist ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
private static void assertCorrectGetAllResult ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public 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:
public void setLastAlert ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { if ( ( lastAlert ) != value ) { lastAlert = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LastAlert" ) ) ; } }
Source:
public boolean getIsGroup ( ) { return org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( getusername ( ) ) ; }

Target:
public void setRole ( java.lang.String value ) { role = value ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { optimizationForDesktopFormatter ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { optimizationForServerFormatter ( object ) ; }
Source:
public org.ovirt.engine.core.dao.VdsGroupDao getVdsGroupDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.ClusterDao getClusterDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getClusterDao ( ) ; }
Source:
private static boolean hasSnappableDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ! ( vm.getImages ( ) . isEmpty ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__IMPORT ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM ) ; }
Source:
public void setPort ( int port ) { this . port = port ; }

Target:
public void setAdminConsole ( boolean adminConsole ) { this . consoleOptions.setAdminConsole ( adminConsole ) ; }
Source:
private void unlabelConfiguredNic ( java.lang.String label , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nicToConfigure ) { if ( ( nicToConfigure.getLabels ( ) ) != null ) { nicToConfigure.getLabels ( ) . remove ( getLabel ( ) ) ; } }

Target:
private void unlabelConfiguredNic ( java.lang.String label , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nicToConfigure ) { if ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( nicToConfigure ) ) { nicToConfigure.getLabels ( ) . remove ( getLabel ( ) ) ; } }
Source:
public void attachCinderDomainToPool ( final org.ovirt.engine.core.compat.Guid storageDomainId , final org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap storagePoolIsoMap = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( storageDomainId , storagePoolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Maintenance ) ; getStoragePoolIsoMapDao ( ) . save ( storagePoolIsoMap ) ; }

Target:
public void attachCinderDomainToPool ( final org.ovirt.engine.core.compat.Guid storageDomainId , final org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap storagePoolIsoMap = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( storageDomainId , storagePoolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Maintenance ) ; storagePoolIsoMapDao.save ( storagePoolIsoMap ) ; }
Source:
public void setTaskList ( org.ovirt.engine.ui.uicommonweb.models.events.TaskListModel taskList ) { this . privateTaskList = taskList ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.events.AlertListModel getAlertList ( ) { return alertListModel ; }
Source:
protected org.ovirt.engine.api.model.GlusterVolume addParents ( org.ovirt.engine.api.model.GlusterVolume volume ) { volume.setCluster ( new org.ovirt.engine.api.model.Cluster ( ) ) ; volume.getCluster ( ) . setId ( parent.get ( ) . getId ( ) ) ; return volume ; }

Target:
protected org.ovirt.engine.api.model.GlusterVolume addParents ( org.ovirt.engine.api.model.GlusterVolume volume ) { volume.setCluster ( new org.ovirt.engine.api.model.Cluster ( ) ) ; volume.getCluster ( ) . setId ( clusterId ) ; return volume ; }
Source:
public void ClearTasks ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = GetCurrentActionTypeTasks ( ) ; for ( org.ovirt.engine.core.bll.EntityAsyncTask task : CurrentActionTypeTasks ) { task.clearAsyncTask ( ) ; } StartPollingNextTask ( ) ; } }

Target:
public void ClearTasks ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; for ( org.ovirt.engine.core.bll.EntityAsyncTask task : CurrentActionTypeTasks ) { task.clearAsyncTask ( ) ; } } }
Source:
public void setvmt_guid ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvmt_guid ( value ) ; }

Target:
public void setUsageCpuPercent ( java.lang.Integer value ) { this . vmStatistics.setusage_cpu_percent ( value ) ; }
Source:
private void writeJaxbClass ( javax.xml.stream.XMLStreamWriter writer , java.lang.String value ) throws javax.xml.stream.XMLStreamException { writeJaxbCustomization ( writer , "class" , "name" , value ) ; }

Target:
private void writeJaxbProperty ( org.ovirt.api.metamodel.tool.XmlWriter writer , java.lang.String value ) { writeJaxbCustomization ( writer , "property" , "name" , value ) ; }
Source:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType , 0 ) , VdcBllMessages.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }

Target:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ) ; }
Source:
public void activate ( ) { isActive = true ; tabContainer.getElement ( ) . replaceClassName ( style.inactive ( ) , style.active ( ) ) ; }

Target:
public void activate ( ) { isActive = true ; tabContainer.getElement ( ) . replaceClassName ( style.inactive ( ) , style.obrand_active ( ) ) ; }
Source:
public void setManagementIp ( java.lang.String value ) { this . mVdsStatic.setManagementIp ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsProtocol getProtocol ( ) { return this . mVdsStatic.getProtocol ( ) ; }
Source:
public org.ovirt.engine.api.model.Method adapt ( org.ovirt.engine.api.v3.types.V3Method from ) { org.ovirt.engine.api.model.Method to = new org.ovirt.engine.api.model.Method ( ) ; if ( from.isSetId ( ) ) { to.setId ( from.getId ( ) ) ; } return to ; }

Target:
public org.ovirt.engine.api.model.Method adapt ( org.ovirt.engine.api.v3.types.V3Method from ) { org.ovirt.engine.api.model.Method to = new org.ovirt.engine.api.model.Method ( ) ; if ( from.isSetId ( ) ) { to.setId ( org.ovirt.engine.api.model.SsoMethod.valueOf ( from.getId ( ) ) ) ; } return to ; }
Source:
public abstract void removeTabDefinition ( com.gwtplatform.mvp.client.Tab tab ) ;

Target:
public void setTabVisible ( com.gwtplatform.mvp.client.TabData tabData , boolean visible ) { }
Source:
protected < T > T doGetEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return doGetEntity ( clz , query , queryParams , identifier , true ) ; }

Target:
protected < T > T doGetEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.QueryParametersBase queryParams , java.lang.String identifier ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return doGetEntity ( clz , query , queryParams , identifier , true ) ; }
Source:
public int getvmt_num_of_sockets ( ) { return this . vmt_num_of_socketsField ; }

Target:
public void setVmtChildCount ( int value ) { this . vmtchildCount = value ; }
Source:
public void reuseSession ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , sessionId ) ; scheduleKeepAliveHeartbeat ( ) ; } else { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; } }

Target:
public void onSuccess ( java.lang.String result ) { if ( result != null ) { restApiSessionId = result ; processSessionId ( result ) ; } else { processSessionIdException ( ) ; } }
Source:
private static boolean shouldVmRunAsStateless ( org.ovirt.engine.core.common.action.RunVmParams param , org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ( param.getRunAsStateless ( ) ) != null ) { return param.getRunAsStateless ( ) ; } return vm.getis_stateless ( ) ; }

Target:
public void addQuotaPermissionSubject ( java.util.List < org.ovirt.engine.core.common.PermissionSubject > quotaPermissionList ) { }
Source:
private void processVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmCommand.getVds ( ) . getId ( ) ) ; } }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.MigrateVmCommand.getSucceeded ( ) ? ( org.ovirt.engine.core.bll.MigrateVmCommand.getActionReturnValue ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ? org.ovirt.engine.core.common.AuditLogType.VM_MIGRATION_DONE : getAuditLogForMigrationStarted ( ) : _isRerun ? org.ovirt.engine.core.common.AuditLogType.VM_MIGRATION_TRYING_RERUN : getAuditLogForMigrationFailure ( ) ; }
Source:
public void testConnection ( ) { org.apache.commons.httpclient.HttpMethod httpMethod = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.API_ENTRY_POINT ) ; runHttpMethod ( httpClient , httpMethod ) ; }

Target:
public void testConnection ( ) { org.apache.commons.httpclient.HttpMethod httpMethod = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.API_ENTRY_POINT ) ; runHttpMethod ( httpClient , httpMethod ) ; getDiscoveredHosts ( ) ; getHostGroups ( ) ; }
Source:
public org.ovirt.engine.core.common.users.VdcUser getVdcUser ( ) { return new org.ovirt.engine.core.common.users.VdcUser ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( getId ( ) ) , getUserName ( ) , getDomain ( ) ) ; }

Target:
public org.ovirt.engine.core.common.users.VdcUser getVdcUser ( ) { return new org.ovirt.engine.core.common.users.VdcUser ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( getId ( ) ) , getUserName ( ) , getDomain ( ) ) ; }
Source:
public void setSucceeded ( boolean succeeded ) { this . succeeded = succeeded ; }

Target:
protected abstract org.ovirt.engine.core.common.businessentities.pm.FenceActionType getAction ( ) ;
Source:
private void generateReadEnum ( org.ovirt.api.metamodel.concepts.StructMember member , java.lang.String variable ) { buffer.addLine ( "%1$s = reader.read_string" , variable ) ; buffer.addLine ( "reader.next_element" ) ; }

Target:
private void generateReadEnum ( org.ovirt.api.metamodel.concepts.StructMember member , java.lang.String variable ) { buffer.addLine ( "%1$s = Reader.read_string(reader)" , variable ) ; }
Source:
public void setVolumeFormat ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat ) { this . volumeFormat = volumeFormat ; }

Target:
protected abstract void updateVolumeType ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) ;
Source:
public void testGetVmIconByDataUrlWithInvalidUrl ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VmIcon > result = dao.getByDataUrl ( ( ( org.ovirt.engine.core.dao.VmIconDaoTest.OTHER_SMALL_DATAURL ) + "garbage" ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetVmIconByDataUrlWithInvalidUrl ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VmIcon > result = dao.getByDataUrl ( ( ( org.ovirt.engine.core.dao.VmIconDaoTest.OTHER_SMALL_DATAURL ) + "garbage" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.adbroker.LdapReturnValueBase RunAdAction ( org.ovirt.engine.core.bll.adbroker.AdActionType actionType , org.ovirt.engine.core.bll.adbroker.LdapBrokerBaseParameters parameters ) { org.ovirt.engine.core.bll.adbroker.LdapBrokerBase.log.debug ( ( "RunAdAction Entry, actionType=" + ( actionType.toString ( ) ) ) ) ; org.ovirt.engine.core.bll.adbroker.BrokerCommandBase command = CreateCommand ( actionType , parameters ) ; return command.Execute ( ) ; }

Target:
public org.ovirt.engine.core.bll.adbroker.LdapReturnValueBase RunAdAction ( org.ovirt.engine.core.bll.adbroker.AdActionType actionType , org.ovirt.engine.core.bll.adbroker.LdapBrokerBaseParameters parameters ) { org.ovirt.engine.core.bll.adbroker.LdapBrokerBase.log.debug ( ( "RunAdAction Entry, actionType=" + ( actionType.toString ( ) ) ) ) ; org.ovirt.engine.core.bll.adbroker.BrokerCommandBase command = CreateCommand ( actionType , parameters ) ; return command.execute ( ) ; }
Source:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase findVdcReturnValueByDescription ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > items , java.lang.String description ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase i : items ) { if ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( i.getDescription ( ) , description ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase findVdcReturnValueByDescription ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > items , java.lang.String description ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase i : items ) { if ( java.util.Objects.equals ( i.getDescription ( ) , description ) ) { return i ; } } return null ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) ; org.mockito.Mockito.when ( pool.getId ( ) ) . thenReturn ( id ) ; return pool ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StoragePool setUpStoragePool ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) ; org.mockito.Mockito.when ( pool.getId ( ) ) . thenReturn ( id ) ; return pool ; }
Source:
public void setup ( ) throws org.ovirt.engine.core.common.utils.exceptions.InitializationException { mockVmPropertiesUtils ( ) ; mockOsRepository ( ) ; }

Target:
public void setup ( ) throws org.ovirt.engine.core.common.utils.exceptions.InitializationException { mockVmPropertiesUtils ( ) ; mockOsRepository ( ) ; org.mockito.Mockito.doReturn ( snapshotValidator ) . when ( runVmValidator ) . getSnapshotValidator ( ) ; }
Source:
public void setVmPid ( java.lang.Integer value ) { this . vmDynamic.setVmPid ( value ) ; }

Target:
public void setPid ( java.lang.Integer value ) { this . vmDynamic.setPid ( value ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.EventNotificationMethod mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.EventNotificationMethod entity = new org.ovirt.engine.core.common.businessentities.EventNotificationMethod ( ) ; entity.setmethod_id ( rs.getInt ( "method_id" ) ) ; entity.setmethod_type ( EventNotificationMethods.EMAIL ) ; return entity ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.EventNotificationMethod > getEventNotificationMethodsByType ( java.lang.String method_type ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "method_type" , method_type ) ; return getCallsHandler ( ) . executeReadList ( "GetEventNotificationMethodByType" , org.ovirt.engine.core.dao.EventDAODbFacadeImpl.EventNotificationMethodRowMapper.instance , parameterSource ) ; }
Source:
public void validateWrongDiskImageTypeTemplate ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initTemplateDiskImage ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_IS_NOT_VM_DISK ) ; }

Target:
public void validateWrongDiskImageTypeTemplate ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.TEMPLATE ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_IS_NOT_VM_DISK ) ; }
Source:
private int getInt ( java.lang.String value , int defaultValue ) { return value == null ? defaultValue : java.lang.Integer.parseInt ( value ) ; }

Target:
private int getInt ( java.lang.String value , int defaultValue ) { try { return value == null ? defaultValue : java.lang.Integer.parseInt ( value ) ; } catch ( java.lang.NumberFormatException ex ) { return defaultValue ; } }
Source:
public boolean isVersionMatchStorageType ( org.ovirt.engine.core.compat.Version version , boolean isLocalType ) { return ( version.compareTo ( new org.ovirt.engine.core.compat.Version ( 3 , 0 ) ) ) >= 0 ; }

Target:
public int getUploadImageXhrTimeoutInSeconds ( ) { return ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.UploadImageXhrTimeoutInSeconds ) ) ) ; }
Source:
public void canDoActionLongName ( ) { java.lang.String longName = org.apache.commons.lang.StringUtils.leftPad ( "name" , ( ( org.ovirt.engine.core.bll.storage.UpdateStorageDomainCommandTest.STORAGE_DOMAIN_NAME_LENGTH_LIMIT ) * 2 ) , 'X' ) ; sd.setStorageName ( longName ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }

Target:
public void canDoActionLongName ( ) { java.lang.String longName = org.apache.commons.lang.StringUtils.leftPad ( "name" , ( ( org.ovirt.engine.core.bll.storage.UpdateStorageDomainCommandTest.STORAGE_DOMAIN_NAME_LENGTH_LIMIT ) * 2 ) , 'X' ) ; sd.setStorageName ( longName ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }
Source:
protected void addStyles ( ) { numOfVfs.addContentWidgetContainerStyleName ( style.valueWidth ( ) ) ; }

Target:
protected void addStyles ( ) { numOfVfs.addContentWidgetContainerStyleName ( style.valueWidth ( ) ) ; labelsWidget.titleLabel.addStyleName ( style.labelsTitle ( ) ) ; labelsWidget.scrollPanel.addStyleName ( style.labelEditorsPanel ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.AsyncTasks createAsyncTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.createAsyncTask ( this , asyncTaskCreationInfo , parentCommand ) ; }

Target:
protected void revertTasks ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.revertTasks ( this ) ; }
Source:
public void setVmId ( org.ovirt.engine.core.compat.Guid vmId ) { this . vmId = vmId ; }

Target:
public void setCancelCommand ( org.ovirt.engine.ui.uicommonweb.UICommand cancelCommand ) { this . cancelCommand = cancelCommand ; }
Source:
private void SetActionState ( ) { if ( isEndSuccessfully ( ) ) { _actionState = CommandActionState.END_SUCCESS ; } else { _actionState = CommandActionState.END_FAILURE ; } }

Target:
private void setActionState ( ) { if ( isEndSuccessfully ( ) ) { _actionState = CommandActionState.END_SUCCESS ; } else { _actionState = CommandActionState.END_FAILURE ; } }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Quota.class , org.ovirt.engine.core.common.VdcObjectType.Quota ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.QueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Quota.class , org.ovirt.engine.core.common.VdcObjectType.Quota ) ) ; }
Source:
public void storageDomainDefault ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }

Target:
public void storageDomainDefault ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.jupiter.api.Assertions.assertNull ( s ) ; }
Source:
protected void syncSearch ( ) { super . syncSearch ( ) ; org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetQuotaStorageByQuotaId , params , new org.ovirt.engine.ui.uicommonweb.models.quota.SetItemsAsyncQuery ( ) ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( ) ; org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( QueryType.GetQuotaStorageByQuotaId , params , new org.ovirt.engine.ui.uicommonweb.models.quota.SetItemsAsyncQuery ( ) ) ; }
Source:
protected java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return java.lang.Math.round ( object.getActualDiskWithSnapshotsSize ( ) ) ; }

Target:
protected java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return java.lang.Math.round ( object.getActualDiskWithSnapshotsSize ( ) ) ; }
Source:
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.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.disks.DiskGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.diskGeneralSubTabLabel ( ) , 0 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.disks.DiskGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.disk.SubTabDiskGeneralPresenter.constants.diskGeneralSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult vmStatusLegal ( org.ovirt.engine.core.common.businessentities.VMStatus status ) { return ( ( status == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) || ( status == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ) || ( status == ( org.ovirt.engine.core.common.businessentities.VMStatus.ImageLocked ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_ADD_INTERFACE_WHEN_VM_STATUS_NOT_UP_DOWN_LOCKED ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult vmStatusLegal ( org.ovirt.engine.core.common.businessentities.VMStatus status ) { return ( ( status == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) || ( status == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ) || ( status == ( org.ovirt.engine.core.common.businessentities.VMStatus.ImageLocked ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_CANNOT_ADD_INTERFACE_WHEN_VM_STATUS_NOT_UP_DOWN_LOCKED ) ; }
Source:
public org.ovirt.engine.api.model.Disk get ( ) { return performGet ( VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Disk get ( ) { return performGet ( QueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
java.lang.String geoRepEligibilityViolations ( @ com.google.gwt.i18n.client.Messages.Select org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason reason ) ;

Target:
java.lang.String uploadImageQemuCompatUnsupported ( java.lang.String compat , java.lang.String storageFormatType ) ;
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , null , networkName , true , null , false , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , null , networkName , true , null , false , null , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmTemplate mockVmTemplate ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate vmTemplate = new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ; vmTemplate.setId ( vmTemplateId ) ; vmTemplate.setstorage_pool_id ( storagePoolId ) ; setDiskList ( vmTemplate ) ; return vmTemplate ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmTemplate mockVmTemplate ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate template = new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ; template.setId ( vmTemplateId ) ; template.setstorage_pool_id ( storagePoolId ) ; org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommandTestAbstract.setDiskList ( template ) ; return template ; }
Source:
public void setAllowClusterWithVirtGlusterEnabled ( boolean value ) { allowClusterWithVirtGlusterEnabled = value ; if ( ( allowClusterWithVirtGlusterEnabled ) != value ) { allowClusterWithVirtGlusterEnabled = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AllowClusterWithVirtGlusterEnabled" ) ) ; } }

Target:
public void setAllowClusterWithVirtGlusterEnabled ( boolean value ) { allowClusterWithVirtGlusterEnabled = value ; if ( ( allowClusterWithVirtGlusterEnabled ) != value ) { allowClusterWithVirtGlusterEnabled = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AllowClusterWithVirtGlusterEnabled" ) ) ; } }
Source:
protected java.lang.String allUtfLetters ( ) { return "" ; }

Target:
protected java.lang.String composeRegex ( ) { return "^[-]*$" ; }
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:
public void getGlusterVolumesForStorageDomain ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllGlusterVolumesForStorageDomain , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
public org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }

Target:
private void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { auditLogDirector.log ( auditLogable , logType ) ; }
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 testGetLunsThatBreakDiscardAfterDeleteSupportDiscardAfterDeleteDoesntBreak ( ) { storageDomain.setDiscardAfterDelete ( true ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , java.util.Collections.emptyList ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getOrigin ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getOrigin ( ) ; }
Source:
public void useDefaultKeyPair ( ) throws java.security.KeyStoreException { _dialog.useDefaultKeyPair ( ) ; }

Target:
public void setKeyPair ( java.security.KeyPair keyPair ) { _dialog.setKeyPair ( keyPair ) ; }
Source:
public static void getISOImagesList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh ) { org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageFileType = org.ovirt.engine.core.common.businessentities.storage.ImageFileType.ISO ; org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , forceRefresh , imageFileType ) ; }

Target:
public static void getISOImagesList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh ) { org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , forceRefresh , ImageFileType.ISO , new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter ( ) ) ; }
Source:
public void vnicProfileNameTakenCaseSensitivelyByDifferentVnicProfile ( ) throws java.lang.Exception { vnicProfileAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , getSingletonNamedVnicProfileList ( DEFAULT_VNIC_PROFILE_NAME.toUpperCase ( ) , OTHER_GUID ) ) ; }

Target:
public void vnicProfileNameTakenCaseSensitivelyByDifferentVnicProfile ( ) throws java.lang.Exception { vnicProfileAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.getSingletonNamedVnicProfileList ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_VNIC_PROFILE_NAME.toUpperCase ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.OTHER_GUID ) ) ; }
Source:
public static double sumImagesTotalSizeWithSnapshotSize ( java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages ) { double sum = 0 ; for ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage : diskImages ) { sum += diskImage.getActualDiskWithSnapshotsSize ( ) ; } return sum ; }

Target:
public static double sumImagesTotalSizeWithSnapshotSize ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { double sum = 0 ; for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : diskImages ) { sum += diskImage.getActualDiskWithSnapshotsSize ( ) ; } return sum ; }
Source:
public void checkMissingPrimaryAddress ( ) { initIpConfiguration ( ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_MISSING_IP_CONFIGURATION , 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 ) ) ) ; }

Target:
public void checkMissingBothAddresses ( ) { initIpConfiguration ( ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_MISSING_IP_CONFIGURATION , 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 void shouldDetectDifferentOs ( ) { org.assertj.core.api.Assertions.assertThat ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) . isSameOs ( new org.ovirt.engine.core.bll.scheduling.OS ( "os2" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) ) ) . isFalse ( ) ; }

Target:
public void shouldDetectDifferentOs ( ) { org.assertj.core.api.Assertions.assertThat ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) . isSameOsFamily ( new org.ovirt.engine.core.bll.scheduling.OS ( "os2" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) ) ) . isFalse ( ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getSmartcardDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD.getName ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getSmartcardDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD.getName ( ) ) ; }
Source:
protected void handleEnterKey ( org.ovirt.engine.ui.common.uicommon.model.DeferredModelCommandInvoker commandInvoker ) { commandInvoker.invokeDefaultCommand ( ) ; }

Target:
protected void handleEnterKey ( org.ovirt.engine.ui.common.uicommon.model.DeferredModelCommandInvoker commandInvoker ) { beforeCommandExecuted ( model.getDefaultCommand ( ) ) ; commandInvoker.invokeDefaultCommand ( ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( storageDomainId ) ; parameters.setVdsId ( vdsId ) ; org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( storageDomainId ) ; parameters.setVdsId ( vdsId ) ; backend.runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.template.SubTabTemplateVmPresenter.constants.templateVmSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.template.SubTabTemplateVmPresenter.constants.templateVmSubTabLabel ( ) , 1 ) ; }
Source:
boolean prepareConnectStorageServer ( org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) ;

Target:
boolean prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.bll.context.CommandContext cmdContext , org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) ;
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( false ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.LUN ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.aaa.GetDbUserByUserNameAndDomainQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) . getByUsernameAndDomain ( org.ovirt.engine.core.bll.aaa.GetDbUserByUserNameAndDomainQuery.getParameters ( ) . getUserName ( ) , org.ovirt.engine.core.bll.aaa.GetDbUserByUserNameAndDomainQuery.getParameters ( ) . getDomainName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.aaa.GetDbUserByUserNameAndDomainQuery.getQueryReturnValue ( ) . setReturnValue ( dbUserDao.getByUsernameAndDomain ( org.ovirt.engine.core.bll.aaa.GetDbUserByUserNameAndDomainQuery.getParameters ( ) . getUserName ( ) , org.ovirt.engine.core.bll.aaa.GetDbUserByUserNameAndDomainQuery.getParameters ( ) . getDomainName ( ) ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel flush ( ) { table.flush ( ) ; nicTable.flush ( ) ; diskTable.flush ( ) ; if ( ( appTable ) != null ) { appTable.flush ( ) ; } return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmPopupView.Driver.driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel flush ( ) { table.flush ( ) ; nicTable.flush ( ) ; diskTable.flush ( ) ; if ( ( appTable ) != null ) { appTable.flush ( ) ; } return driver.flush ( ) ; }
Source:
public org.ovirt.engine.api.model.StorageConnection get ( ) { return performGet ( VdcQueryType.GetStorageServerConnectionById , new org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase ( guid.toString ( ) ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageConnection get ( ) { return performGet ( QueryType.GetStorageServerConnectionById , new org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase ( guid.toString ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return getVdsBroker ( ) . runVdsCommand ( commandType , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return getVdsBroker ( ) . RunVdsCommand ( commandType , parameters ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.table.SimpleActionTable < T > createActionTable ( ) { return new org.ovirt.engine.ui.userportal.widget.table.column.UserPortalSimpleActionTable < T > ( modelProvider , getTableResources ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.getEventBus ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.getClientStorage ( ) ) ; }

Target:
protected java.lang.String getTableContainerStyleName ( ) { return ( this . getTableContainerStyleName ( ) ) == null ? super . getTableContainerStyleName ( ) : this . getTableContainerStyleName ( ) ; }
Source:
public void updateWithLowerVersionThanHosts ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; VdsExistWithHigherVersion ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_COMPATIBILITY_VERSION_WITH_LOWER_HOSTS ) ; }

Target:
public void updateWithLowerVersionThanHosts ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; VdsExistWithHigherVersion ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_COMPATIBILITY_VERSION_WITH_LOWER_HOSTS ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.validation.LengthValidation createNameLengthValidation ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( ( this . getBehavior ( ) ) instanceof org.ovirt.engine.ui.uicommonweb.models.vms.TemplateVmModelBehavior ) { return new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( 40 ) ; } return new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.IsWindowsOsType ( osType ) ? org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.WINDOWS_VM_NAME_MAX_LIMIT : org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NON_WINDOWS_VM_NAME_MAX_LIMIT ) ) ; }

Target:
private void TimeZone_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }