auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel.maxDiskSize = ( ( java.lang.Integer ) ( returnValue ) ) ; }

Target:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( returnValue ) ) ; diskModel.getStorageDomain ( ) . setSelectedItem ( storageDomain ) ; }
Source:
public void addCustomValue ( final java.lang.String name , final java.lang.String value ) { allocateCustomValues ( ) ; customValues.put ( name.toLowerCase ( ) , value ) ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase addCustomValue ( final java.lang.String name , final java.lang.String value ) { allocateCustomValues ( ) ; customValues.put ( name.toLowerCase ( ) , value ) ; return this ; }
Source:
public void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltip , org.gwtbootstrap3.client.ui.constants.Placement placement ) { org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.addTooltipToElement ( tooltip , getElement ( ) , placement ) ; }

Target:
public void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltip , org.gwtbootstrap3.client.ui.constants.Placement placement ) { buttonTooltip.setHtml ( tooltip ) ; buttonTooltip.setPlacement ( placement ) ; }
Source:
protected void UndoActionOnSourceAndDestination ( ) { if ( ( getDestinationDiskImage ( ) ) != null ) { RemoveSnapshotFromDB ( getDestinationDiskImage ( ) ) ; } if ( ( getDiskImage ( ) ) != null ) { UnLockImage ( ) ; } }

Target:
protected void UndoActionOnSourceAndDestination ( ) { if ( ( getDestinationDiskImage ( ) ) != null ) { RemoveSnapshot ( getDestinationDiskImage ( ) ) ; } if ( ( getDiskImage ( ) ) != null ) { UnLockImage ( ) ; } }
Source:
public boolean isVisible ( ) { return getDetailModel ( ) . isImage ( ) ; }

Target:
public boolean isVisible ( ) { return getDetailModel ( ) . isLun ( ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; builder.append ( "OpenstackImageProviderProperties [pluginType=" ) . append ( ", tenantName=" ) . append ( getTenantName ( ) ) . append ( "]" ) ; return builder.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; builder.append ( "OpenStackImageProviderProperties [pluginType=" ) . append ( ", tenantName=" ) . append ( getTenantName ( ) ) . append ( "]" ) ; return builder.toString ( ) ; }
Source:
public void setQuotaId ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setQuotaId ( value ) ; }

Target:
public java.lang.String getQuotaName ( ) { return this . vmStatic.getQuotaName ( ) ; }
Source:
public void setPort ( int port ) { this . port = port ; }

Target:
public void setPort ( int port ) { this . consoleOptions.setPort ( port ) ; }
Source:
public int getVersion ( final java.util.Properties properties ) { int result = 0 ; try { result = java.lang.Integer.valueOf ( properties.getProperty ( org.ovirt.engine.core.branding.BrandingTheme.VERSION_KEY ) ) ; } catch ( java.lang.NumberFormatException nfe ) { } return result ; }

Target:
public int getVersion ( final java.util.Properties properties ) { int result = 0 ; try { result = java.lang.Integer.parseInt ( properties.getProperty ( org.ovirt.engine.core.branding.BrandingTheme.VERSION_KEY ) ) ; } catch ( java.lang.NumberFormatException nfe ) { } return result ; }
Source:
public void buildIdSetterStatement ( ) { org.junit.Assert.assertThat ( tested.buildIdSetterStatement ( ) , org.hamcrest.CoreMatchers.equalTo ( "setElementId(owner.a.b.c, \"abcId\")" ) ) ; }

Target:
public void buildIdSetterStatement ( ) { org.hamcrest.MatcherAssert.assertThat ( tested.buildIdSetterStatement ( ) , org.hamcrest.CoreMatchers.equalTo ( "setElementId(owner.a.b.c, \"abcId\")" ) ) ; }
Source:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworkResource.UpdatedNetworkResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworkResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Network get ( ) { org.ovirt.engine.api.model.Network entity = getNetwork ( ) ; if ( entity == null ) { return notFound ( ) ; } return addLinks ( map ( entity ) ) ; }
Source:
protected org.ovirt.engine.api.model.CreationStatus getAsynchronousStatus ( org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { return getVdsmTasksStatus ( result ) ; }

Target:
protected org.ovirt.engine.api.model.CreationStatus getAsynchronousStatus ( org.ovirt.engine.core.common.action.ActionReturnValue result ) { return getVdsmTasksStatus ( result ) ; }
Source:
public void vmIdNull ( ) { b.setVmId ( null ) ; final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , i ) ; }

Target:
public void vmIdNull ( ) { b.setVmId ( null ) ; final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( Guid.Empty , i ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmTemplate getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendTemplatesResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VmTemplate.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmTemplate getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendTemplatesResourceTest.setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VmTemplate.class ) , index ) ; }
Source:
private org.ovirt.engine.core.compat.Guid GetAnyVdsToRunOn ( ) { return getVdsToRunOn ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }

Target:
private org.ovirt.engine.core.compat.Guid GetAnyVdsToRunOn ( ) { return getVdsToRunOn ( getVdsDAO ( ) . getVdsToRun ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } , getVm ( ) . getvds_group_id ( ) , VDSStatus.Up , getVm ( ) . getnum_of_cpus ( ) ) ) ; }
Source:
public void testGetByOperatingSystemIdExisting ( ) { final org.ovirt.engine.core.common.businessentities.VmIconDefault vmIconDefault = dao.getByOperatingSystemId ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT.getOsId ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT , vmIconDefault ) ; }

Target:
public void testGetByOperatingSystemIdExisting ( ) { final org.ovirt.engine.core.common.businessentities.VmIconDefault vmIconDefault = dao.getByOperatingSystemId ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT.getOsId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT , vmIconDefault ) ; }
Source:
public void canDoActionDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }

Target:
public void canDoActionDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }
Source:
public void testServerKey ( ) throws java.lang.Exception { org.junit.Assume.assumeNotNull ( TestCommon.sshd ) ; client.connect ( ) ; assertEquals ( TestCommon.sshd.getKey ( ) , client.getServerKey ( ) ) ; }

Target:
public void testHostKey ( ) throws java.lang.Exception { org.junit.Assume.assumeNotNull ( TestCommon.sshd ) ; client.connect ( ) ; assertEquals ( TestCommon.sshd.getKey ( ) , client.getHostKey ( ) ) ; }
Source:
public void setKeepTitleOnSetEnabled ( boolean keepTitleOnSetEnabled ) { this . keepTitleOnSetEnabled = keepTitleOnSetEnabled ; }

Target:
public void onEditorStateUpdate ( org.ovirt.engine.ui.common.widget.editor.EditorStateUpdateEvent event ) { if ( event.isValid ( ) ) { editorStateValid = true ; markAsValid ( ) ; } else { handleInvalidState ( ) ; } }
Source:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; if ( ( getAppListModel ( ) ) != null ) { getAppListModel ( ) . setEntity ( getSelectedItem ( ) ) ; } }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; if ( ( getAppListModel ( ) ) != null ) { getAppListModel ( ) . setEntity ( getSelectedItem ( ) ) ; } }
Source:
private void prepareMocks ( org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand command ) { org.mockito.Mockito.doReturn ( glusterUtils ) . when ( command ) . getGlusterUtils ( ) ; org.mockito.Mockito.doReturn ( getUpServers ( ) ) . when ( glusterUtils ) . getAllUpServers ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }

Target:
private void prepareMocks ( org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand command ) { org.mockito.Mockito.doReturn ( glusterUtils ) . when ( command ) . getGlusterUtils ( ) ; org.mockito.Mockito.doReturn ( getUpServers ( ) ) . when ( glusterUtils ) . getAllUpServers ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }
Source:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText ) { addColumn ( column , createHeader ( column , headerText , false ) ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , boolean present , java.lang.String width ) { ensureColumnPresent ( column , new org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader ( headerHtml ) , present , width ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return CreateTask ( asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTask ( asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }
Source:
public void write ( int b ) { if ( ( count ) < ( this . max ) ) { super . write ( b ) ; } else { this . truncated = true ; } }

Target:
public void write ( int b ) { if ( ( count ) < ( _max ) ) { super . write ( b ) ; } else { _truncated = true ; } }
Source:
private static java.lang.StringBuilder replaceAll ( java.lang.StringBuilder builder , java.lang.String oldText , java.lang.String newText ) { java.lang.String t = builder.toString ( ) ; return new java.lang.StringBuilder ( t.replaceAll ( org.ovirt.engine.core.compat.StringHelper.quote ( oldText ) , newText ) ) ; }

Target:
private static java.lang.StringBuilder replaceAll ( java.lang.StringBuilder builder , java.lang.String oldText , java.lang.String newText ) { java.lang.String t = builder.toString ( ) ; return new java.lang.StringBuilder ( t.replaceAll ( org.ovirt.engine.core.searchbackend.ADSyntaxChecker.quote ( oldText ) , newText ) ) ; }
Source:
public void setnum_of_monitors ( int value ) { this . mVmStatic.setnum_of_monitors ( value ) ; }

Target:
public boolean getAllowConsoleReconnect ( ) { return this . vmStatic.getAllowConsoleReconnect ( ) ; }
Source:
protected org.ovirt.engine.api.model.Snapshot addParents ( org.ovirt.engine.api.model.Snapshot snapshot ) { snapshot.setVm ( new org.ovirt.engine.api.model.VM ( ) ) ; snapshot.getVm ( ) . setId ( parentId.toString ( ) ) ; return snapshot ; }

Target:
protected org.ovirt.engine.api.model.Snapshot addParents ( org.ovirt.engine.api.model.Snapshot snapshot ) { snapshot.setVm ( new org.ovirt.engine.api.model.Vm ( ) ) ; snapshot.getVm ( ) . setId ( parentId.toString ( ) ) ; return snapshot ; }
Source:
public java.util.LinkedList < java.lang.String > getGroupNames ( ) { return groupNames ; }

Target:
public java.util.Collection < java.lang.String > getGroupNames ( ) { return java.util.Collections.unmodifiableCollection ( groupNames ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Tags lookupTagById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , VdcQueryType.GetTagByTagId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Tags lookupTagById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , QueryType.GetTagByTagId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }
Source:
private void onIsValidPropertyChange ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { if ( model.getIsValid ( ) ) { markAsValid ( ) ; } else { markAsInvalid ( model.getInvalidityReasons ( ) ) ; } }

Target:
private void onIsValidPropertyChange ( org.ovirt.engine.ui.uicommonweb.models.Model model ) { if ( model.getIsValid ( ) ) { markAsValid ( ) ; } else { markAsInvalid ( model.getInvalidityReasons ( ) ) ; } }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithNoCpuName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setname ( "Default" ) ; group.setId ( VDSGroup.DEFAULT_VDS_GROUP_ID ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.STORAGE_POOL_ID ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithNoCpuName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setName ( "Default" ) ; group.setId ( VDSGroup.DEFAULT_VDS_GROUP_ID ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.STORAGE_POOL_ID ) ; return group ; }
Source:
public void testFetchStoragePoolWithNoQuota ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertEquals ( true , ( ( quotaList.size ( ) ) == 0 ) ) ; }

Target:
public void testFetchStoragePoolWithNoQuota ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( true , ( ( quotaList.size ( ) ) == 0 ) ) ; }
Source:
public void testBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplayIsFalse ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplayIsFalse ( false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplayIsFalse ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( false , createNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
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 ( ) . diskTemplateSubTabLabel ( ) , 2 , ginjector.getSubTabDiskTemplateModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.disks.DiskTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.diskTemplateSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.AuditLogDAODbFacadeImpl.auditLogRowMapper ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllWithQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.AuditLogDAODbFacadeImpl.auditLogRowMapper ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { vmInitLoaded ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { editedVm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) ; vmInitLoaded ( editedVm ) ; }
Source:
public void setPmOptions ( java.lang.String value ) { mVdsStatic.setPmOptions ( value ) ; }

Target:
public void setFenceAgents ( java.util.List < org.ovirt.engine.core.common.businessentities.FenceAgent > fenceAgents ) { this . fenceAgents = fenceAgents ; }
Source:
public static boolean IsLinuxOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetLinuxOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }

Target:
public static boolean isWindowsOsType ( int osType ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.windowsOsIds.contains ( osType ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updatePmModels ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { fetchSSHFingerprint ( ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel PrepareFcpStorageForEdit ( org.ovirt.engine.core.common.businessentities.storage_domains storage ) { org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel model = new org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel ( ) ; model.setRole ( storage.getstorage_domain_type ( ) ) ; PrepareSanStorageForEdit ( model ) ; return model ; }

Target:
private org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel PrepareFcpStorageForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel model = new org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel ( ) ; model.setRole ( storage.getStorageDomainType ( ) ) ; PrepareSanStorageForEdit ( model ) ; return model ; }
Source:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return this . vmStatic.getVdsGroupId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getClusterId ( ) { return this . vmStatic.getClusterId ( ) ; }
Source:
public java.lang.String getEntityNewName ( ) { return org.ovirt.engine.core.bll.storage.UpdateStorageDomainCommand.getStorageDomain ( ) . getstorage_name ( ) ; }

Target:
public java.lang.String getEntityNewName ( ) { return org.ovirt.engine.core.bll.storage.UpdateStorageDomainCommand.getStorageDomain ( ) . getStorageName ( ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . updateTag ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . update ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.UpdateTagCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { tagsDirector.updateTag ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; tagDao.update ( org.ovirt.engine.core.bll.UpdateTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.UpdateTagCommand.setSucceeded ( true ) ; }
Source:
public void testGetAsyncTaskIdsByInvalidEntity ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByEntity ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertTrue ( guids.isEmpty ( ) ) ; }

Target:
public void testGetAsyncTaskEntitiesById ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTasks > tasks = dao.getTasksByEntity ( FixturesTool.ENTITY_WITH_TASKS_ID ) ; org.junit.Assert.assertNotNull ( tasks ) ; org.junit.Assert.assertEquals ( tasks.size ( ) , 1 ) ; }
Source:
public void testParseReloadActionWithUser ( ) { parser.parse ( new java.lang.String [ ] { "-r" , "--user=username" } ) ; org.junit.Assert.assertEquals ( ConfigActionType.ACTION_RELOAD , parser.getConfigAction ( ) ) ; org.junit.Assert.assertEquals ( "username" , parser.getUser ( ) ) ; }

Target:
public void testParseReloadActionWithUser ( ) { parser.parse ( new java.lang.String [ ] { "-r" , "--user=username" } ) ; org.junit.jupiter.api.Assertions.assertEquals ( ConfigActionType.ACTION_RELOAD , parser.getConfigAction ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( "username" , parser.getUser ( ) ) ; }
Source:
public java.lang.String getDisplayIp ( ) { return this . vmDynamic.getDisplayIp ( ) ; }

Target:
public java.lang.Long getGuestMemoryCached ( ) { return vmDynamic.getGuestMemoryCached ( ) ; }
Source:
public void setmethod_id ( int value ) { this . method_idField = value ; }

Target:
public void setEventNotificationMethod ( org.ovirt.engine.core.common.EventNotificationMethods eventNotificationMethod ) { this . eventNotificationMethod = eventNotificationMethod ; }
Source:
public void onMainTabSelected ( ) { org.ovirt.engine.ui.common.uicommon.model.MainTabModelProvider.getCommonModel ( ) . setSelectedItem ( getModel ( ) ) ; }

Target:
public void onMainTabSelected ( ) { commonModelProvider.get ( ) . setSelectedItem ( org.ovirt.engine.ui.common.uicommon.model.MainTabModelProvider.getModel ( ) ) ; }
Source:
public void vdsIdRefDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsIdRef ( ) ; org.junit.Assert.assertNull ( g ) ; }

Target:
public void vdsIdRefNull ( ) { b.setVdsIdRef ( null ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsIdRef ( ) ; org.junit.Assert.assertNull ( g ) ; }
Source:
protected void addConnection ( org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.common.businessentities.storage_server_connections cnx ) { if ( ( lun.getLunConnections ( ) ) == null ) { lun.setLunConnections ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_server_connections > ( ) ) ; } lun.getLunConnections ( ) . add ( cnx ) ; }

Target:
protected void addConnection ( org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx ) { if ( ( lun.getLunConnections ( ) ) == null ) { lun.setLunConnections ( new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( ) ) ; } lun.getLunConnections ( ) . add ( cnx ) ; }
Source:
public void testIsUsingScsiReservationValidWhenSgioIsUnFiltered ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.UNFILTERED , true ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIsUsingScsiReservationValidWhenSgioIsUnFiltered ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.UNFILTERED ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) , org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createDiskVmElementUsingScsiReserevation ( ) , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGetFileFrom_InsanePath ( ) { java.io.File file = new java.io.File ( "/etc" ) ; java.io.File testFile = org.ovirt.engine.core.utils.servlet.ServletUtils.makeFileFromSanePath ( "/../hosts" , file ) ; org.junit.Assert.assertNull ( "testfile should be null" , testFile ) ; }

Target:
public void testGetFileFrom_InsanePath ( ) { java.io.File file = new java.io.File ( "/etc" ) ; java.io.File testFile = org.ovirt.engine.core.utils.servlet.ServletUtils.makeFileFromSanePath ( "/../hosts" , file ) ; org.junit.jupiter.api.Assertions.assertNull ( testFile , "testfile should be null" ) ; }
Source:
public void addSelectionChangeHandler ( com.google.gwt.view.client.SelectionChangeEvent.Handler selectionHandler ) { errataTable.getSelectionModel ( ) . addSelectionChangeHandler ( selectionHandler ) ; }

Target:
public void addSelectionChangeHandler ( com.google.gwt.view.client.SelectionChangeEvent.Handler selectionHandler ) { selectionHandlers.add ( errataTable.getSelectionModel ( ) . addSelectionChangeHandler ( selectionHandler ) ) ; }
Source:
public void onSuccess ( java.lang.String result ) { if ( result != null ) { restApiSessionId = result ; processSessionId ( result ) ; } else { processSessionIdException ( ) ; } }

Target:
public void onFailure ( java.lang.Throwable caught ) { processSessionIdException ( ) ; }
Source:
void addAllAction ( java.lang.String label , org.ovirt.engine.ui.uicommonweb.UICommand command , org.ovirt.engine.ui.webadmin.widget.alert.AuditLogActionCallback callback ) ;

Target:
void addClearAllAction ( java.lang.String label , org.ovirt.engine.ui.uicommonweb.UICommand command , org.ovirt.engine.ui.webadmin.widget.alert.AuditLogActionCallback callback ) ;
Source:
public void setMigrationHandler ( org.ovirt.engine.core.bll.scheduling.MigrationHandler migrationHandler ) { if ( ( this . migrationHandler ) != null ) { throw new java.lang.RuntimeException ( "Load balance migration handler should be set only once" ) ; } this . migrationHandler = migrationHandler ; }

Target:
public void run ( ) { if ( exSchedulerDiscovery.discover ( ) ) { reloadPolicyUnits ( ) ; } }
Source:
public void setCreateSnapshotCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { this . createSnapshotCommand = command ; }

Target:
public void setConfigureClusterSnapshotOptionsCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { this . configureClusterSnapshotOptionsCommand = command ; }
Source:
public void testCanDoActionLunDisk ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void testValidateLunDisk ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public void testRemoveNonExistant ( ) { setUpGetEntityExpectations ( 1 , true ) ; try { resource.remove ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNonExistant ( ) { setUpGetEntityExpectations ( 1 , true ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.remove ( ) ) ) ; }
Source:
public java.util.List < java.math.BigInteger > readIntegers ( ) { return readStrings ( ) . stream ( ) . map ( this :: parseInteger ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }

Target:
public java.util.List < java.lang.Boolean > readBooleans ( ) { java.util.List < java.lang.Boolean > booleans = new java.util.ArrayList < > ( ) ; for ( java.lang.String string : readStrings ( ) ) { booleans.add ( parseBoolean ( string ) ) ; } return booleans ; }
Source:
public void run ( ) { org.ovirt.engine.core.bll.VmPoolHandler.processVmPoolOnStopVm ( getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( getExecutionContext ( ) ) ) ; }

Target:
public void run ( ) { runInternalActionWithTasksContext ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( getVm ( ) . getId ( ) ) ) ; }
Source:
private < T > void invokeCallable ( java.util.concurrent.Callable < T > callable ) { try { callable.call ( ) ; } catch ( java.lang.Exception e ) { log.error ( "Error in CinderStorageHelper." , e ) ; } }

Target:
private < T > void invokeCallable ( java.util.concurrent.Callable < T > callable ) { try { callable.call ( ) ; } catch ( java.lang.Exception e ) { org.ovirt.engine.core.bll.storage.CINDERStorageHelper.log.error ( "Error in CinderStorageHelper." , e ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByTemplates ( ) { return networkNotUsed ( getDbFacade ( ) . getVmTemplateDao ( ) . getAllForNetwork ( network.getId ( ) ) , VdcBllMessages.VAR__ENTITIES__VM_TEMPLATES ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getTemplates ( ) { if ( ( templates ) == null ) { templates = getDbFacade ( ) . getVmTemplateDao ( ) . getAllForNetwork ( network.getId ( ) ) ; } return templates ; }
Source:
public java.lang.Object resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { java.lang.Object entity = lookupEntity ( id ) ; if ( entity == null ) { throw new org.ovirt.engine.api.restapi.resource.EntityNotFoundException ( id.toString ( ) ) ; } return entity ; }

Target:
public Q resolve ( T id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { Q entity = lookupEntity ( id ) ; if ( entity == null ) { throw new org.ovirt.engine.api.restapi.resource.EntityNotFoundException ( id.toString ( ) ) ; } return entity ; }
Source:
public void setVersion ( org.ovirt.engine.core.common.businessentities.VdsVersion value ) { mVdsDynamic.setVersion ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Version" ) ) ; }

Target:
public void setVersion ( org.ovirt.engine.core.compat.RpmVersion value ) { mVdsDynamic.setVersion ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Version" ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getDbFacade ( ) . getVdsDao ( ) . getHostsForStorageOperation ( org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getParameters ( ) . isLocalFsOnly ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getQueryReturnValue ( ) . setReturnValue ( vdsDao.getHostsForStorageOperation ( org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.GetHostsForStorageOperationQuery.getParameters ( ) . isLocalFsOnly ( ) ) ) ; }
Source:
private static void addSoundCard ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addSoundCard ( vmBase , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vmBase ) ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addSoundDevice ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addSoundDevice ( vmBase.getId ( ) , vmBase.getOsId ( ) , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vmBase ) ) ; }
Source:
public void setHost ( java.lang.String host ) { this . host = ( host == null ) ? new java.lang.String ( ) : host ; }

Target:
public void setHost ( java.lang.String host ) { this . host = ( host == null ) ? "" : host ; }
Source:
private void writeStructLink ( org.ovirt.api.metamodel.concepts.Link link ) { writeStartElement ( "link" ) ; writeCommon ( link ) ; writeTypeRef ( link.getType ( ) ) ; writeEndElement ( ) ; }

Target:
private void writeStructLink ( org.ovirt.api.metamodel.concepts.Link link ) { writer.writeStartElement ( "link" ) ; writeCommon ( link ) ; writeTypeRef ( link.getType ( ) ) ; writer.writeEndElement ( ) ; }
Source:
public void testValidateGatewayWhenGatewayIsNull ( ) { doTestValidateGateway ( null , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateGatewayIsNotManagementNetworkAndMultipleGatewaysSupported ( ) { doTestValidateGateway ( "someGateway" , false , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void closeClone ( ) { setConfirmWindow ( null ) ; }

Target:
private void closeClone ( ) { setConfirmWindow ( null ) ; clearCachedAssignedVmNames ( ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml noButton ( java.lang.String value , java.lang.String customStyle , java.lang.String id ) ;

Target:
public com.google.gwt.safehtml.shared.SafeHtml noButton ( java.lang.String value , com.google.gwt.safecss.shared.SafeStyles customStyle , java.lang.String id ) ;
Source:
public java.lang.Object answer ( org.mockito.invocation.InvocationOnMock invocationOnMock ) throws java.lang.Throwable { final org.ovirt.engine.core.common.businessentities.DiskImage oldDisk = createDiskImage ( ) ; oldDisk.setDiskInterface ( DiskInterface.VirtIO ) ; assert ( oldDisk.getDiskInterface ( ) ) != ( parameters.getDiskInfo ( ) . getDiskInterface ( ) ) ; return oldDisk ; }

Target:
public java.lang.Object answer ( org.mockito.invocation.InvocationOnMock invocationOnMock ) throws java.lang.Throwable { final org.ovirt.engine.core.common.businessentities.DiskImage oldDisk = createDiskImage ( ) ; oldDisk.setDiskInterface ( DiskInterface.VirtIO ) ; org.junit.Assert.assertNotSame ( oldDisk.getDiskInterface ( ) , parameters.getDiskInfo ( ) . getDiskInterface ( ) ) ; return oldDisk ; }
Source:
public double getActualDiskSize ( ) { double result = 0 ; for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk : getDiskImageMap ( ) . values ( ) ) { result += disk.getActualSize ( ) ; } return result ; }

Target:
public double getActualDiskSize ( ) { return getDiskImageMap ( ) . values ( ) . stream ( ) . mapToDouble ( DiskImage :: getActualSize ) . sum ( ) ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "libvirtSecrets" , getLibvirtSecrets ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "libvirtSecrets" , getLibvirtSecrets ( ) ) . append ( "clearUnusedSecrets" , getLibvirtSecrets ( ) ) ; }
Source:
public void install ( ) { org.ovirt.engine.ui.common.uicommon.SpicePluginImpl.logger.finer ( "Spice must be installed ahead..." ) ; InstallNatively ( ) ; }

Target:
public void install ( ) { org.ovirt.engine.ui.common.uicommon.SpicePluginImpl.logger.finer ( "Spice must be installed ahead..." ) ; installNatively ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgrade ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.CANNOT_UPGRADE_HOST_STATUS_ILLEGAL ) . unless ( org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Arrays.asList ( host ) , org.ovirt.engine.core.common.businessentities.VDS.class , ActionType.UpgradeHost ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgrade ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.CANNOT_UPGRADE_HOST_STATUS_ILLEGAL ) . unless ( org.ovirt.engine.core.common.ActionUtils.canExecute ( java.util.Arrays.asList ( host ) , org.ovirt.engine.core.common.businessentities.VDS.class , ActionType.UpgradeHost ) ) ; }
Source:
void removeColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column ) { table.removeColumn ( column ) ; tableHeader.removeColumn ( column ) ; }

Target:
public void setWidth ( java.lang.String width , boolean isFixedLayout ) { table.setWidth ( width , isFixedLayout ) ; tableHeader.setWidth ( width , isFixedLayout ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { httpTask = org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand.getBroker ( ) . setupNetworks ( generateNetworks ( ) , generateBonds ( ) , generateOptions ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { httpTask = org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand.getBroker ( ) . setupNetworks ( generateNetworks ( ) , generateBonds ( ) , generateOptions ( ) ) ; }
Source:
public void buildVmSerialNumber ( ) { new org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilder ( vm , getVdsGroup ( ) , createInfo ) . buildVmSerialNumber ( ) ; }

Target:
public void buildVmSerialNumber ( ) { new org.ovirt.engine.core.vdsbroker.vdsbroker.VmSerialNumberBuilder ( vm , getCluster ( ) , createInfo ) . buildVmSerialNumber ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult allDomainsExistAndActive ( ) { return validOrFirstFailure ( new org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator.ValidatorPredicate ( ) { @ java.lang.Override public org.ovirt.engine.core.bll.ValidationResult evaluate ( org.ovirt.engine.core.bll.validator.StorageDomainValidator validator ) { return validator.isDomainExistAndActive ( ) ; } } ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult allDomainsWithinThresholds ( ) { return validOrFirstFailure ( new org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator.ValidatorPredicate ( ) { @ java.lang.Override public org.ovirt.engine.core.bll.ValidationResult evaluate ( java.util.Map.Entry < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.validator.StorageDomainValidator > entry ) { return getStorageDomainValidator ( entry ) . isDomainWithinThresholds ( ) ; } } ) ; }
Source:
public java.util.Date getGuestLastLoginTime ( ) { return this . vmDynamic.getGuestLastLoginTime ( ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getPassthroughVnicToVfMap ( ) { return passthroughVnicToVfMap ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_VM , getVmIsBeingImportedMessage ( ) ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( getParameters ( ) . getContainerId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_VM , getVmIsBeingImportedMessage ( ) ) ) ; }
Source:
public java.lang.String getdescription ( ) { return this . description ; }

Target:
public void setStoragesNames ( java.util.ArrayList < java.lang.String > storagesNames ) { this . storagesNames = storagesNames ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.AuditLog x , org.ovirt.engine.core.common.businessentities.AuditLog y ) { long xid = x.getaudit_log_id ( ) ; long yid = y.getaudit_log_id ( ) ; return java.lang.Long.valueOf ( xid ) . compareTo ( yid ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.AuditLog x , org.ovirt.engine.core.common.businessentities.AuditLog y ) { long xid = x.getAuditLogId ( ) ; long yid = y.getAuditLogId ( ) ; return java.lang.Long.valueOf ( xid ) . compareTo ( yid ) ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHost , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { return getVdsByVdsId ( ) ; }
Source:
public void parse ( ) throws java.lang.Exception { try { org.ovirt.engine.core.utils.osinfo.OsinfoPropertiesParser.parse ( java.lang.System.getProperty ( "osinfo.properties" ) ) ; } catch ( java.lang.Exception e ) { java.lang.System.err.println ( "Ovirt-engine will fail to load with a broken osinfo properties file." ) ; java.lang.System.err.println ( "Please fix the properties file or osinfo.jj grammar under org.ovirt.engine.core.utils.osinfo." ) ; throw e ; } }

Target:
public void parse ( ) throws java.lang.Exception { try { org.ovirt.engine.core.utils.osinfo.OsinfoPropertiesParser.parse ( java.lang.System.getProperty ( "osinfo.properties" ) ) ; } catch ( java.lang.Exception e ) { java.lang.System.err.println ( "oVirt-engine will fail to load with a broken osinfo properties file." ) ; java.lang.System.err.println ( "Please fix the properties file or osinfo.jj grammar under org.ovirt.engine.core.utils.osinfo." ) ; throw e ; } }
Source:
public void setapp_list ( java.lang.String value ) { this . mVmDynamic.setapp_list ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "app_list" ) ) ; }

Target:
public void setAppList ( java.lang.String value ) { this . vmDynamic.setapp_list ( value ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { return adaptRemove ( delegate :: remove ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { return adaptRemove ( getDelegate ( ) :: remove ) ; }
Source:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringSetToFlase ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , "disk" , "disk" , null , false ) ; org.ovirt.engine.core.dao.VmDeviceDAOTest.assertGetVMDeviceByIdTypeAndDeviceFullResult ( devices ) ; }

Target:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringSetToFlase ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , VmDeviceGeneralType.DISK , "disk" , null , false ) ; org.ovirt.engine.core.dao.VmDeviceDAOTest.assertGetVMDeviceByIdTypeAndDeviceFullResult ( devices ) ; }
Source:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { assertDiskDescriptionMap ( "DiskAlias" , "" ) ; }

Target:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { disk1.setDiskAlias ( "DiskAlias" ) ; disk1.setDiskDescription ( null ) ; org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( disk1 ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel < T > excludedListModel , org.ovirt.engine.ui.uicommonweb.models.ListModel < T > includedListModel , org.ovirt.engine.ui.uicommonweb.UICommand onIncludeButtonPressed , org.ovirt.engine.ui.uicommonweb.UICommand onExcludeButtonPressed ) { edit ( excludedListModel , includedListModel ) ; this . onIncludeButtonPressed = onIncludeButtonPressed ; this . onExcludeButtonPressed = onExcludeButtonPressed ; }

Target:
public void edit ( M excludedListModel , M includedListModel , org.ovirt.engine.ui.uicommonweb.UICommand onIncludeButtonPressed , org.ovirt.engine.ui.uicommonweb.UICommand onExcludeButtonPressed ) { edit ( excludedListModel , includedListModel ) ; this . onIncludeButtonPressed = onIncludeButtonPressed ; this . onExcludeButtonPressed = onExcludeButtonPressed ; }
Source:
public boolean showMask ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return ! ( value.IsVmUp ( ) ) ; }

Target:
public boolean showMask ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return ! ( value.isVmUp ( ) ) ; }
Source:
private void injectMocks ( ) { injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; injectorRule.bind ( org.ovirt.engine.core.dao.ClusterDao.class , clusterDao ) ; injectorRule.bind ( org.ovirt.engine.core.common.businessentities.network.Network.class , managementNetwork ) ; injectorRule.bind ( org.ovirt.engine.core.dao.network.NetworkClusterDao.class , networkClusterDao ) ; }

Target:
private void mockDao ( ) { org.mockito.Mockito.when ( macPoolDao.getDefaultPool ( ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ; }
Source:
private void logInfoIfNeeded ( org.ovirt.engine.core.common.businessentities.StoragePool pool , java.lang.String message , java.lang.Object ... args ) { if ( ! ( ovfOnAnyDomainSupported ( pool ) ) ) { log.infoFormat ( message , args ) ; } }

Target:
private void logInfoIfNeeded ( org.ovirt.engine.core.common.businessentities.StoragePool pool , java.lang.String message , java.lang.Object ... args ) { if ( ! ( ovfOnAnyDomainSupported ( pool ) ) ) { log.info ( message , args ) ; } }
Source:
public void testLimit ( ) { java.lang.Integer maxVCpu = org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( null , new java.lang.Integer ( 16 ) , new java.lang.Integer ( 100 ) , 2 , 8 ) ; org.junit.Assert.assertEquals ( new java.lang.Integer ( 96 ) , maxVCpu ) ; }

Target:
public void testLimit ( ) { java.lang.Integer maxVCpu = org.ovirt.engine.core.common.utils.VmCpuCountHelper.calcMaxVCpu ( null , new java.lang.Integer ( 16 ) , new java.lang.Integer ( 100 ) , 2 , 8 ) ; org.junit.jupiter.api.Assertions.assertEquals ( new java.lang.Integer ( 96 ) , maxVCpu ) ; }
Source:
java.lang.String numOfVmsInPoolInvalod ( int maxLength , int vmsInPool ) ;

Target:
java.lang.String numOfVmsInPoolInvalid ( int maxNumOfVms , int poolNameLength ) ;