auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void preSavePhase2 ( ) { final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getWindow ( ) ) ) ; final java.lang.String name = model.getName ( ) . getEntity ( ) ; validateVm ( model , name ) ; }

Target:
private void preSavePhase3 ( ) { final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getWindow ( ) ) ) ; final java.lang.String name = model.getName ( ) . getEntity ( ) ; validateVm ( model , name ) ; }
Source:
public static java.lang.String getTokenInstance ( java.lang.String content ) { return java.lang.String.format ( "0|%s|%s" , content , org.ovirt.engine.core.aaa.filters.FiltersHelper.hmacString ( content ) ) ; }

Target:
public static java.lang.String getTokenInstance ( java.lang.String content ) { return java.lang.String.format ( "0|%s" , content ) ; }
Source:
public void failNegativeNumOfValuesToShow ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = ", " ; org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , ( - 5 ) ) ; }

Target:
public void failNegativeNumOfValuesToShow ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = ", " ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , ( - 5 ) ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase createActionParameters ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.common.action.ShutdownVmParameters ( vm.getId ( ) , true ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase createActionParameters ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.common.action.ShutdownVmParameters ( vm.getId ( ) , true , model.getReason ( ) . getEntity ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; InitSpmPriorities1 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; initSpmPriorities1 ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface FindInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface findInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runAction ( VdcActionType.LogoutUser , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runAction ( VdcActionType.LogoutSession , parameters ) ; }
Source:
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.gluster.GlusterGeoRepSession , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.volumeGeoRepSubTabLabel ( ) , 4 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession , org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeGeoRepListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.gluster.SubTabVolumeGeoRepPresenter.constants.volumeGeoRepSubTabLabel ( ) , 4 , modelProvider ) ; }
Source:
private void onNicsChanged ( ) { operationFactory = new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory ( getNetworks ( ) , getNics ( ) ) ; validate ( ) ; }

Target:
private void onNicsChanged ( ) { operationFactory = new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory ( getNetworkModels ( ) , getNicModels ( ) ) ; validate ( ) ; }
Source:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.infoFormat ( "Running storage pool metadata refresh for hosts {1}" , handledHosts ) ; org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.invokeAll ( refreshStoragePoolTasks ) ; return new org.ovirt.engine.core.common.eventqueue.EventResult ( true , org.ovirt.engine.core.common.eventqueue.EventType.POOLREFRESH ) ; }

Target:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.log.info ( "Running storage pool metadata refresh for hosts '{}'" , handledHosts ) ; org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.invokeAll ( refreshStoragePoolTasks ) ; return new org.ovirt.engine.core.common.eventqueue.EventResult ( true , org.ovirt.engine.core.common.eventqueue.EventType.POOLREFRESH ) ; }
Source:
public void setGuestOsArch ( org.ovirt.engine.core.common.businessentities.ArchitectureType guestOsArch ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( this . guestOsArch , guestOsArch ) ) ) { this . guestOsArch = guestOsArch ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "GuestOsArch" ) ) ; } }

Target:
public void setGuestOsArch ( org.ovirt.engine.core.common.businessentities.ArchitectureType guestOsArch ) { if ( ! ( java.util.Objects.equals ( this . guestOsArch , guestOsArch ) ) ) { this . guestOsArch = guestOsArch ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "GuestOsArch" ) ) ; } }
Source:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( VdcBllMessages.HOT_PLUG_IS_NOT_SUPPORTED ) ; }

Target:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }
Source:
public void testGetFilteredWithPermissions ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.get ( existingVdsGroup.getId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertCorrectVDSGroup ( result ) ; }

Target:
public void testGetFilteredWithPermissions ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.get ( existingCluster.getId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertCorrectCluster ( result ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getWatchdogs ( ) { return org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getParameters ( ) . getId ( ) , VmDeviceGeneralType.WATCHDOG ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getWatchdogs ( ) { return vmDeviceDao.getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getParameters ( ) . getId ( ) , VmDeviceGeneralType.WATCHDOG ) ; }
Source:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }

Target:
private org.ovirt.engine.core.common.action.CreateOrUpdateBond createNewCreateOrUpdateBondWithNameAndId ( ) { return createNewCreateOrUpdateBond ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , "bond1" ) ; }
Source:
private java.lang.String render ( java.lang.Object obj ) { return obj == null ? null : obj.toString ( ) ; }

Target:
private java.lang.String render ( java.lang.Object obj ) { return java.util.Objects.toString ( obj , null ) ; }
Source:
public void execute ( ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.logger.info ( ( ( this . getClass ( ) . getName ( ) ) + ": Executing search" ) ) ; if ( getIsAsync ( ) ) { AsyncSearch ( ) ; } else { SyncSearch ( ) ; } }

Target:
public void execute ( ) { org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.logger.fine ( ( ( this . getClass ( ) . getName ( ) ) + ": Executing search" ) ) ; if ( getIsAsync ( ) ) { AsyncSearch ( ) ; } else { SyncSearch ( ) ; } }
Source:
private static org.ovirt.engine.core.bll.scheduling.InternalClusterPolicies.Builder create ( java.lang.String guid ) { final org.ovirt.engine.core.compat.Guid realGuid = org.ovirt.engine.core.compat.Guid.createGuidFromString ( guid ) ; final org.ovirt.engine.core.bll.scheduling.InternalClusterPolicies.Builder builder = new org.ovirt.engine.core.bll.scheduling.InternalClusterPolicies.Builder ( realGuid ) ; org.ovirt.engine.core.bll.scheduling.InternalClusterPolicies.clusterPolicies.put ( realGuid , builder.getPolicy ( ) ) ; return builder ; }

Target:
protected static org.ovirt.engine.core.bll.scheduling.InternalClusterPolicies.PolicyBuilder createBuilder ( java.lang.String guid ) { final org.ovirt.engine.core.compat.Guid realGuid = org.ovirt.engine.core.compat.Guid.createGuidFromString ( guid ) ; final org.ovirt.engine.core.bll.scheduling.InternalClusterPolicies.PolicyBuilder builder = new org.ovirt.engine.core.bll.scheduling.InternalClusterPolicies.PolicyBuilder ( realGuid ) ; return builder ; }
Source:
public int getwrite_rate ( ) { return this . writeRateFromDiskImageDynamic ; }

Target:
public void setStoragePoolId ( org.ovirt.engine.core.compat.NGuid storagePoolId ) { this . storagePoolId = storagePoolId ; }
Source:
protected javax.ws.rs.core.Response performRemove ( ) { return performAction ( VdcActionType.RemoveVfsConfigLabel , new org.ovirt.engine.core.common.action.VfsConfigLabelParameters ( parent.getHostNicId ( ) , id ) ) ; }

Target:
protected javax.ws.rs.core.Response performRemove ( ) { return performAction ( ActionType.RemoveVfsConfigLabel , new org.ovirt.engine.core.common.action.VfsConfigLabelParameters ( parent.getHostNicId ( ) , id ) ) ; }
Source:
public void testGetFullPath_SaneParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( mockFile , "/branding/test" ) ; org.junit.Assert.assertNotNull ( "Path should not be null" , fullPath ) ; org.junit.Assert.assertEquals ( "Path should be '/abs/test/branding/test'" , "/abs/test/branding/test" , fullPath ) ; }

Target:
public void testGetFullPath_SaneParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , "/branding/test" ) ; org.junit.Assert.assertNotNull ( "Path should not be null" , file ) ; org.junit.Assert.assertEquals ( "Path should be '/abs/test/branding/test'" , "/abs/test/branding/test" , file.getAbsolutePath ( ) ) ; }
Source:
public boolean getfail_back ( ) { return this . mVmStatic.getfail_back ( ) ; }

Target:
public java.lang.String getVdsGroupCpuName ( ) { return this . vdsGroupCpuName ; }
Source:
public void testIsNetworkInSyncWhenBootProtocolNotStaticAddressDifferent ( ) throws java.lang.Exception { initIpConfigurationBootProtocolAddress ( Ipv4BootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4BootProtocolNotStaticNetmaskDifferent ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocolNetmask ( Ipv4BootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private void serializeValue ( java.util.Map < java.lang.String , java.lang.Object > entry , java.lang.String curveKey , java.lang.Integer value ) { serializeValue ( entry , curveKey , value , 1 ) ; }

Target:
private void serializeValue ( java.util.Map < java.lang.String , java.lang.Object > entry , java.lang.String curveKey , java.lang.Integer value ) { serializeValue ( entry , curveKey , value , 1L ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.MultipleHostsModel object ) { hostsTable.edit ( object.getHosts ( ) ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.MultipleHostsPopupView.Driver.driver.edit ( object ) ; applyPasswordButton.setCommand ( object.getApplyPasswordCommand ( ) ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.MultipleHostsModel object ) { hostsTable.edit ( object.getHosts ( ) ) ; driver.edit ( object ) ; applyPasswordButton.setCommand ( object.getApplyPasswordCommand ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommandTest.CLUSTER_ID ) ; cluster.setname ( "TestCluster" ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommandTest.CLUSTER_ID ) ; cluster.setName ( "TestCluster" ) ; return cluster ; }
Source:
public void testGetAllForQuotaId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permission > result = dao.getConsumedPermissionsForQuotaId ( FixturesTool.QUOTA_GENERAL ) ; org.junit.Assert.assertEquals ( FixturesTool.USER_EXISTING_ID , result.get ( 0 ) . getAdElementId ( ) ) ; }

Target:
public void testGetAllForQuotaId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permission > result = dao.getConsumedPermissionsForQuotaId ( FixturesTool.QUOTA_GENERAL ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.USER_EXISTING_ID , result.get ( 0 ) . getAdElementId ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase CreateReturnValue ( ) { return new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase createReturnValue ( ) { return new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; }
Source:
java.lang.String vlanNetwork ( java.lang.String name , java.lang.String vlanId ) ;

Target:
java.lang.String glusterCapacityInfo ( java.lang.String freeSize , java.lang.String usedSize , java.lang.String totalSize ) ;
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { Window.Location.reload ( ) ; }

Target:
public void onSessionExpired ( ) { if ( ( frontend.getLoginHandler ( ) ) != null ) { frontend.getLoginHandler ( ) . onLogout ( ) ; } Window.Location.reload ( ) ; }
Source:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( ) ; super . syncSearch ( VdcQueryType.GetEventSubscribersBySubscriberIdGrouped , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void AsyncSearch ( ) { Search ( ) ; }
Source:
private java.lang.String getHostId ( java.lang.String hostName ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VdsStatic.class , VdcQueryType.GetVdsStaticByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( hostName ) , ( "Hosts: name=" + hostName ) ) . getId ( ) . toString ( ) ; }

Target:
private void validateIconParameters ( org.ovirt.engine.api.model.VM vm ) { if ( ! ( org.ovirt.engine.api.restapi.util.IconHelper.validateIconParameters ( vm ) ) ) { throw new org.ovirt.engine.api.restapi.resource.BaseBackendResource.WebFaultException ( null , localize ( Messages.INVALID_ICON_PARAMETERS ) , Response.Status.BAD_REQUEST ) ; } }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , getEffectiveCompatibilityVersion ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfileForUser ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , getEffectiveCompatibilityVersion ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }
Source:
public void testWrongPassword ( ) throws java.lang.Exception { sshDialog.setKeyPair ( null ) ; sshDialog.setPassword ( "bad" ) ; sshDialog.connect ( ) ; sshDialog.authenticate ( ) ; }

Target:
public void testWrongKeyPair ( ) throws java.lang.Exception { sshDialog.setKeyPair ( java.security.KeyPairGenerator.getInstance ( "RSA" ) . generateKeyPair ( ) ) ; sshDialog.connect ( ) ; org.junit.jupiter.api.Assertions.assertThrows ( javax.naming.AuthenticationException.class , sshDialog :: authenticate ) ; }
Source:
public void testGetAllWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testEmptyGetAllForDiskProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForDiskProfile ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testEmptyGetAllForDiskProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForDiskProfiles ( java.util.Collections.singletonList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget createWidget ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueLineModel value ) { org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget keyValueLineWidget = new org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget ( rowWidth ) ; keyValueLineWidget.edit ( value ) ; widgets.add ( keyValueLineWidget ) ; return keyValueLineWidget ; }

Target:
protected org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget createWidget ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueLineModel value ) { org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget keyValueLineWidget = new org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget ( rowWidth , fieldWidth ) ; keyValueLineWidget.edit ( value ) ; widgets.add ( keyValueLineWidget ) ; return keyValueLineWidget ; }
Source:
public void Initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { this . setSystemTreeSelectedItem ( systemTreeSelectedItem ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { this . setSystemTreeSelectedItem ( systemTreeSelectedItem ) ; }
Source:
public void testIsNetworkInSyncWhenIpConfigurationIsNull ( ) throws java.lang.Exception { this . testedNetworkAttachment.setIpConfiguration ( null ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpConfigurationIsNull ( ) { this . testedNetworkAttachment.setIpConfiguration ( null ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void setNoVncEnabled ( boolean enabled , java.lang.String reason ) { noVncImplRadioButton.setEnabled ( enabled ) ; noVncImplRadioButton.setTitle ( ( enabled ? "" : reason ) ) ; }

Target:
public void setNoVncEnabled ( boolean enabled , java.lang.String reason ) { noVncImplRadioButton.setEnabled ( enabled ) ; noVncImplRadioButtonTooltip.setText ( ( enabled ? "" : reason ) ) ; }
Source:
public void setKvmEnabled ( java.lang.Boolean value ) { this . mVdsDynamic.setkvm_enabled ( value ) ; }

Target:
public void setKvmEnabled ( java.lang.Boolean value ) { vdsDynamic.setKvmEnabled ( value ) ; }
Source:
protected org.ovirt.engine.api.model.Host deprecatedPopulate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { parent.addStatistics ( model , entity ) ; parent.addCertificateInfo ( model ) ; return model ; }

Target:
public org.ovirt.engine.api.resource.NetworkAttachmentsResource getNetworkAttachmentsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendHostNetworkAttachmentsResource ( guid ) ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateRequiredSpace ( double availableSize , double requiredSize ) { if ( availableSize >= requiredSize ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_TARGET_STORAGE_DOMAIN , storageName ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateRequiredSpace ( double availableSize , double requiredSize ) { if ( availableSize >= requiredSize ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN , storageName ( ) ) ; }
Source:
public void nonInternalLockedDisallowed ( ) { testExecution ( StorageDomainStatus.Locked ) ; canDoActionFails ( ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ) ) ; }

Target:
public void nonInternalLockedDisallowed ( ) { testExecution ( StorageDomainStatus.Locked ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ; }
Source:
private org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) , getOldNetworkCluster ( ) , getClusterVersion ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) , getOldNetworkCluster ( ) , getClusterVersion ( ) ) ; }
Source:
public boolean isWrapperFor ( java.lang.Class < ? > iface ) throws java.sql.SQLException { throw new java.sql.SQLFeatureNotSupportedException ( ) ; }

Target:
public int getLoginTimeout ( ) throws java.sql.SQLException { throw new java.sql.SQLFeatureNotSupportedException ( ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.vdsbroker.VDSExceptionBase createException ( ) { final java.lang.String errorMessage = java.lang.String.format ( "Failed to %1$s, error = %2$s, code = %3$s" , org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.getCommandName ( ) , getReturnStatus ( ) . mMessage , getReturnStatus ( ) . mCode ) ; return createDefaultConcreteException ( errorMessage ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.vdsbroker.VDSExceptionBase createException ( ) { final java.lang.String errorMessage = java.lang.String.format ( "Failed to %1$s, error = %2$s, code = %3$s" , org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.getCommandName ( ) , getReturnStatus ( ) . message , getReturnStatus ( ) . code ) ; return createDefaultConcreteException ( errorMessage ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StoragePool dataCenter ) { registerDiskModel.setQuotaEnforcementType ( dataCenter.getQuotaEnforcementType ( ) ) ; registerDiskModel.setDisks ( org.ovirt.engine.ui.uicommonweb.Linq.disksToDiskModelList ( getSelectedItems ( ) ) ) ; registerDiskModel.updateStorageDomain ( getEntity ( ) ) ; registerDiskModel.stopProgress ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StoragePool dataCenter ) { registerDiskModel.setQuotaEnforcementType ( dataCenter.getQuotaEnforcementType ( ) ) ; registerDiskModel.setDisks ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel.disksToDiskModelList ( getSelectedItems ( ) ) ) ; registerDiskModel.updateStorageDomain ( getEntity ( ) ) ; registerDiskModel.stopProgress ( ) ; }
Source:
void setSessionId ( java.lang.String sessionId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . storeInHttpSession ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , sessionId ) ; restApiSessionId = sessionId ; }

Target:
public void releaseSession ( ) { setSessionId ( null , true ) ; }
Source:
static void verifyModelSpecific ( org.ovirt.engine.api.model.NetworkFilterParameter model , int index ) { org.junit.Assert.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; org.junit.Assert.assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }

Target:
static void verifyModelSpecific ( org.ovirt.engine.api.model.NetworkFilterParameter model , int index ) { org.junit.jupiter.api.Assertions.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > getComputeResources ( ) { org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.COMPUTE_RESOURCES_HOSTS_ENTRY_POINT ) ; return runComputeResourceMethod ( method ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getFiltered ( java.lang.String filter ) { return runHostListMethod ( ( ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.HOSTS_ENTRY_POINT ) + ( java.lang.String.format ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.SEARCH_QUERY_FORMAT , filter ) ) ) ) ; }
Source:
public void setExportDate ( java.util.Date value ) { this . mVmStatic.setExportDate ( value ) ; }

Target:
public void setVmType ( org.ovirt.engine.core.common.businessentities.VmType value ) { this . vmStatic.setVmType ( value ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VM.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) , index ) ; }

Target:
public void testGetCurrentWithMatrixFalse ( ) throws java.lang.Exception { setUriInfo ( setUpUriMatrixExpectations ( "false" ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.CdRom cdrom = resource.get ( ) ; verifyModel ( cdrom ) ; }
Source:
public static java.util.List < java.lang.Integer > getOsIds ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osIds ; }

Target:
public static java.lang.Integer getDefaultOs ( org.ovirt.engine.core.common.businessentities.ArchitectureType architectureType ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.defaultOSes.get ( architectureType ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VmPools ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VmPools , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
private void setLastEvent ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { if ( ( lastEvent ) != value ) { lastEvent = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LastEvent" ) ) ; } }

Target:
private void setLastEvent ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { if ( ( lastEvent ) != value ) { lastEvent = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LastEvent" ) ) ; } }
Source:
protected org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( getNewDisk ( ) ) != null ) && ( isQuotaValidationNeeded ( ) ) ) { return ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( getNewDisk ( ) ) ) . getQuotaId ( ) ; } return null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( getNewDisk ( ) ) != null ) && ( isDiskImage ( ) ) ) { return ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( getNewDisk ( ) ) ) . getQuotaId ( ) ; } return null ; }
Source:
public void setDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( domain , value ) ) ) { domain = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Domain" ) ) ; } }

Target:
public void setDomain ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( domain , value ) ) ) { domain = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Domain" ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkView > getAllForProvider ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetAllNetworkViewsByNetworkProviderId" , org.ovirt.engine.core.dao.network.NetworkViewDaoImpl.NetworkViewRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkView > getAllForProvider ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetAllNetworkViewsByNetworkProviderId" , networkViewRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ) ; }
Source:
private void mockVmNetworkInterfaceDao ( ) { org.mockito.Mockito.when ( dbFacada.getVmNetworkInterfaceDao ( ) ) . thenReturn ( vmNetworkInterfaceDao ) ; org.mockito.Mockito.when ( vmNetworkInterfaceDao.getAllForTemplate ( vmTemplateId ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VmNetworkInterface > emptyList ( ) ) ; }

Target:
private void mockVmNetworkInterfaceDao ( ) { org.mockito.Mockito.when ( dbFacada.getVmNetworkInterfaceDao ( ) ) . thenReturn ( vmNetworkInterfaceDao ) ; org.mockito.Mockito.when ( vmNetworkInterfaceDao.getAllForTemplate ( vmTemplateId ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > emptyList ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc diskReplicateFinish ( java.lang.String vmUUID , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct srcDisk , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct dstDisk ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServicesAction ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String [ ] serviceList , java.lang.String actionType ) ;
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.clusterMainTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabClusterPresenter.constants.clusterMainTabLabel ( ) , 1 , modelProvider ) ; }
Source:
void setstorage_pool_id ( T value ) ;

Target:
void setStoragePoolId ( T value ) ;
Source:
public void run ( ) { try { org.ovirt.engine.core.utils.ISingleAsyncOperation operation = _factory.CreateSingleAsyncOperation ( ) ; operation.Execute ( currentEventId ) ; } finally { latch.countDown ( ) ; } }

Target:
public void run ( ) { try { org.ovirt.engine.core.utils.ISingleAsyncOperation operation = _factory.CreateSingleAsyncOperation ( ) ; operation.execute ( currentEventId ) ; } finally { latch.countDown ( ) ; } }
Source:
private boolean vdsGroupExists ( ) { if ( ! ( vdsGroupInDb ( ) ) ) { addCanDoActionMessage ( VdcBllMessages.VDS_CLUSTER_IS_NOT_VALID ) ; return false ; } return true ; }

Target:
private boolean networkNotAttachedToCluster ( ) { if ( networkExists ( ) ) { return failCanDoAction ( EngineMessage.NETWORK_ALREADY_ATTACHED_TO_CLUSTER ) ; } return true ; }
Source:
private void failOnDowngradingWithStorageType ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_1 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , storageType ) ; setAttachedDomains ( sd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTED_IN_DOWNGRADED_VERSION ) ; }

Target:
private void failOnDowngradingWithStorageType ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_1 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , storageType ) ; setAttachedDomains ( sd ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTED_IN_DOWNGRADED_VERSION ) ; }
Source:
protected void removeVmNetworkInterfaces ( ) { new org.ovirt.engine.core.bll.network.VmInterfaceManager ( ) . removeAll ( getVmId ( ) ) ; }

Target:
protected void removeVmNetworkInterfaces ( ) { new org.ovirt.engine.core.bll.network.VmInterfaceManager ( org.ovirt.engine.core.bll.ImportVmCommand.getMacPool ( ) ) . removeAll ( getVmId ( ) ) ; }
Source:
public void testDerivedVersionedValue ( ) { org.junit.Assert.assertEquals ( 512 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 888 , Version.v3_5 ) ) ; }

Target:
public void testdefaultVersionedValue ( ) { org.junit.Assert.assertEquals ( 1024 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 888 , Version.v4_0 ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( storageDomain ) == null ) { storageDomain = getDbFacade ( ) . getStorageDomainDao ( ) . get ( diskProfile.getStorageDomainId ( ) ) ; } return storageDomain ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( storageDomain ) == null ) { storageDomain = getDbFacade ( ) . getStorageDomainDao ( ) . get ( getDiskProfile ( ) . getStorageDomainId ( ) ) ; } return storageDomain ; }
Source:
public void removeByName ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String glusterCommand , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStage stage , java.lang.String hookName ) ;

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getById ( org.ovirt.engine.core.compat.Guid id , boolean eagerLoad ) ;
Source:
public static void clean ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.httpSessionId.remove ( ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.vdcUserKeeper.remove ( ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.correlationId.remove ( ) ; }

Target:
public static void clean ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.httpSessionId.remove ( ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.userKeeper.remove ( ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.correlationId.remove ( ) ; }
Source:
public void testChangeToExistingName ( ) { prepareVmToPassCanDoAction ( ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with vm name already in use." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testNameNotChanged ( ) { prepareVmToPassValidate ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; org.junit.Assert.assertTrue ( "validate should have passed." , command.validate ( ) ) ; }
Source:
public void setRdpPluginImplEnabled ( boolean enabled , java.lang.String reason ) { rdpPluginImplRadioButton.setEnabled ( enabled ) ; if ( ! enabled ) { rdpPluginImplRadioButton.setTitle ( reason ) ; } }

Target:
public void setRdpPluginImplEnabled ( boolean enabled , java.lang.String reason ) { rdpPluginImplRadioButton.setEnabled ( enabled ) ; if ( ! enabled ) { rdpPluginImplRadioButtonTooltip.setText ( reason ) ; } }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( com.google.gwt.user.client.ui.RadioButton ) ( event.getSource ( ) ) ) . getValue ( ) ) { handleRadioButtonClick ( event ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( com.google.gwt.user.client.ui.RadioButton ) ( event.getSource ( ) ) ) . getValue ( ) ) { getMainModel ( ) . getDiskViewType ( ) . setEntity ( disksViewRadioGroup.getDiskStorageType ( ) ) ; } }
Source:
public void setEntity ( java.lang.Object value ) { super . setEntity ( value ) ; UpdateIsCloneVmSupported ( ) ; }

Target:
public void setEntity ( java.lang.Object value ) { super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getModel ( ) . getNewServerCommand ( ) ; }

Target:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { getModel ( ) . getEditConsoleCommand ( ) . Execute ( ) ; }
Source:
public void testGetAllForImage ( ) { java.util.Map < java.lang.Boolean , org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForImage ( FixturesTool.TEMPLATE_IMAGE_ID ) ; org.junit.Assert.assertEquals ( "Wrong number of keys" , 1 , result.size ( ) ) ; org.junit.Assert.assertNotNull ( result.values ( ) ) ; }

Target:
public void testGetAllForImage ( ) { java.util.Map < java.lang.Boolean , org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForImage ( FixturesTool.TEMPLATE_IMAGE_ID ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , result.size ( ) , "Wrong number of keys" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result.values ( ) ) ; }
Source:
private void mockStorageDomainDaoGetAllStoragesForPool ( int domainSpaceGB ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Arrays.asList ( createStorageDomain ( domainSpaceGB ) ) ) ; }

Target:
private void mockStorageDomainDaoGetAllStoragesForPool ( int domainSpaceGB ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.singletonList ( createStorageDomain ( domainSpaceGB ) ) ) ; }
Source:
public org.ovirt.engine.api.model.DiskAttachments list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetDiskVmElementsByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ) ; }

Target:
public org.ovirt.engine.api.model.DiskAttachments list ( ) { return mapCollection ( getBackendCollection ( QueryType.GetDiskVmElementsByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ) ; }
Source:
public void passthroughNotChangedUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( true , true , true ) ; org.junit.Assert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughNotChangedUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( true , true , true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String getDiskAlias ( ) { return disk.getDiskAlias ( ) ; }

Target:
public java.lang.String getDiskAlias ( ) { if ( ( disk ) != null ) { return disk.getDiskAlias ( ) ; } return "" ; }
Source:
protected void addActiveSnapshot ( ) { _vmSnapshotId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . addActiveSnapshot ( _vmSnapshotId , org.ovirt.engine.core.bll.AddVmCommand.getVm ( ) , org.ovirt.engine.core.bll.AddVmCommand.getCompensationContext ( ) ) ; }

Target:
protected void addActiveSnapshot ( ) { _vmSnapshotId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . addActiveSnapshot ( _vmSnapshotId , org.ovirt.engine.core.bll.AddVmCommand.getVm ( ) , org.ovirt.engine.core.bll.AddVmCommand.getCompensationContext ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getJobIdByEntityId ( org.ovirt.engine.core.compat.Guid entityId ) { return multipleResults ( entityManager.createNamedQuery ( "JobSubjectEntity.getJobIdByEntityId" ) . setParameter ( "entityId" , entityId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getJobIdByEntityId ( org.ovirt.engine.core.compat.Guid entityId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "JobSubjectEntity.getJobIdByEntityId" ) . setParameter ( "entityId" , entityId ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( target ) ) ; model.setIsDiskHotPlugSupported ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel getSystemTreeSelectedItem ( ) { if ( ( getSystemTreeContext ( ) ) == null ) { return null ; } return getSystemTreeContext ( ) . getSystemTreeSelectedItem ( ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.CleanConnection ( storageListModel.connection , storageListModel.hostId ) ; storageListModel.OnFinish ( storageListModel.context , false , storageListModel.storageModel ) ; }
Source:
public static void UnLockVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVmStatus , new org.ovirt.engine.core.common.vdscommands.SetVmStatusVDSCommandParameters ( vm.getId ( ) , org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; vm.setStatus ( VMStatus.Down ) ; }

Target:
public static void unLockVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVmStatus , new org.ovirt.engine.core.common.vdscommands.SetVmStatusVDSCommandParameters ( vm.getId ( ) , org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; vm.setStatus ( VMStatus.Down ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 4 ) , isPostZero ( ) , false ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.PostZeroHandler.fixParametersWithPostZero ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 4 ) , isPostZero ( ) , false ) ) ; }