auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testValidateBondOptionsForNewAttachementWithVmNetwork ( ) { validateValidBonds ( false , true , true , false ) ; }

Target:
public void testValidateBondOptionsForNewAttachementWithVmNetwork ( ) { validateValidBondsForAllBondModes ( false , true , true , false ) ; }
Source:
public void testGetAllByStoragePoolAndConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_CONNECTION ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID ) ; }

Target:
public void testGetAllByStoragePoolAndConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_CONNECTION ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , FixturesTool.STORAGE_POOL_NFS ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.RoleGroupMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.RoleGroupMap entity = new org.ovirt.engine.core.common.businessentities.RoleGroupMap ( org.ovirt.engine.core.common.businessentities.ActionGroup.forValue ( rs.getInt ( "action_group_id" ) ) , org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( rs.getString ( "role_id" ) ) ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.RoleGroupMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.RoleGroupMap entity = new org.ovirt.engine.core.common.businessentities.RoleGroupMap ( org.ovirt.engine.core.common.businessentities.ActionGroup.forValue ( rs.getInt ( "action_group_id" ) ) , getGuidDefaultEmpty ( rs , "role_id" ) ) ; return entity ; }
Source:
protected void enableDisableByBootProtocol ( org.ovirt.engine.ui.uicommonweb.models.hosts.NetworkAttachmentModel model ) { boolean bootProtocolsAvailable = model.getBootProtocolsAvailable ( ) ; ipv4BootProtocolLabel.setEnabled ( bootProtocolsAvailable ) ; ipv4BootProtocol.setEnabled ( bootProtocolsAvailable ) ; ipv4BootProtocol.setEnabled ( Ipv4BootProtocol.NONE , model.getNoneBootProtocolAvailable ( ) ) ; }

Target:
private void enableDisableByBootProtocol ( org.ovirt.engine.ui.uicommonweb.models.hosts.NetworkAttachmentModel model ) { boolean bootProtocolsAvailable = model.getBootProtocolsAvailable ( ) ; ipv4BootProtocolLabel.setEnabled ( bootProtocolsAvailable ) ; ipv4BootProtocol.setEnabled ( bootProtocolsAvailable ) ; ipv6BootProtocolLabel.setEnabled ( bootProtocolsAvailable ) ; ipv6BootProtocol.setEnabled ( bootProtocolsAvailable ) ; }
Source:
public java.lang.String getversion ( ) { return version ; }

Target:
public java.lang.String getVersion ( ) { return version ; }
Source:
public void testSave ( ) { dao.save ( newLUN ) ; org.ovirt.engine.core.common.businessentities.LUNs result = dao.get ( newLUN.getLUN_id ( ) ) ; assertNotNull ( result ) ; assertEquals ( newLUN , result ) ; }

Target:
public void testSave ( ) { dao.save ( newLUN ) ; org.ovirt.engine.core.common.businessentities.LUNs result = dao.get ( newLUN.getLUN_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newLUN , result ) ; }
Source:
public void testGetCollectionGettter ( ) { java.lang.reflect.Method method = org.ovirt.engine.api.utils.EntityHelper.getCollectionGetter ( new org.ovirt.engine.api.model.Vms ( ) ) ; org.junit.Assert.assertEquals ( "getVms" , method.getName ( ) ) ; }

Target:
public void testGetCollectionGettter ( ) { java.lang.reflect.Method method = org.ovirt.engine.api.utils.EntityHelper.getCollectionGetter ( new org.ovirt.engine.api.model.Vms ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( "getVms" , method.getName ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Provider < ? > generateNewEntity ( ) { org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > provider = new org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > ( ) ; provider.setId ( generateNonExistingId ( ) ) ; provider.setName ( "brovider" ) ; provider.setUrl ( "http://brovider.com/" ) ; provider.setType ( ProviderType.OPENSTACK_NETWORK ) ; org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties additionalProperties = new org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties ( ) ; additionalProperties.setTenantName ( "10ant" ) ; additionalProperties.setPluginType ( OpenstackNetworkPluginType.LINUX_BRIDGE.name ( ) ) ; provider.setAdditionalProperties ( additionalProperties ) ; return provider ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Provider < ? > generateNewEntity ( ) { org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > provider = new org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > ( ) ; provider.setId ( generateNonExistingId ( ) ) ; provider.setName ( "brovider" ) ; provider.setUrl ( "http://brovider.com/" ) ; provider.setType ( ProviderType.OPENSTACK_NETWORK ) ; org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties additionalProperties = new org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties ( ) ; additionalProperties.setTenantName ( "10ant" ) ; additionalProperties.setPluginType ( OpenstackNetworkPluginType.LINUX_BRIDGE.name ( ) ) ; provider.setAdditionalProperties ( additionalProperties ) ; provider.setAuthUrl ( "http://keystone-server:35357/v2.0/" ) ; return provider ; }
Source:
public void validPropertyValidDeviceType ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v3_3 , VmDeviceGeneralType.INTERFACE , utils.convertProperties ( "speed=10;duplex=half" ) ) ; org.junit.Assert.assertTrue ( errors.isEmpty ( ) ) ; }

Target:
public void validPropertyValidDeviceType ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v3_3 , VmDeviceGeneralType.INTERFACE , utils.convertProperties ( "speed=10;duplex=half;debug=" ) ) ; org.junit.Assert.assertTrue ( errors.isEmpty ( ) ) ; }
Source:
public void EntityPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { }

Target:
public void entityPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { }
Source:
private void syncStorageDevices ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.SyncStorageDevices , new org.ovirt.engine.core.common.action.VdsActionParameters ( getEntity ( ) . getId ( ) ) , null , true , true ) ; }

Target:
private void syncStorageDevices ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.SyncStorageDevices , new org.ovirt.engine.core.common.action.gluster.SyncGlusterStorageDevicesParameter ( getEntity ( ) . getId ( ) ) , null , true , true ) ; }
Source:
public void setId ( java.lang.String id ) { setLUN_id ( id ) ; }

Target:
public void setId ( java.lang.String id ) { setLUNId ( id ) ; }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; UpdateProperties ( ) ; }

Target:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; UpdateProperties ( ) ; }
Source:
public java.lang.String getProxyHost ( ) { return config.getProxyHost ( ) ; }

Target:
private java.lang.String getClientUrl ( ) { return ( ( ( ( ( ( com.google.gwt.user.client.Window.Location.getProtocol ( ) ) + "//" ) + ( com.google.gwt.user.client.Window.Location.getHost ( ) ) ) + "/ovirt-engine-novnc-main.html?host=" ) + ( config.getProxyHost ( ) ) ) + "&port=" ) + ( config.getProxyPort ( ) ) ; }
Source:
private void validateParsability ( ) { try { image = javax.imageio.ImageIO.read ( new java.io.ByteArrayInputStream ( rawImageData ) ) ; } catch ( java.lang.RuntimeException | java.io.IOException e ) { validationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.PROVIDED_VM_ICON_CANT_BE_READ ) ; } }

Target:
private void validateParsability ( ) { try { image = javax.imageio.ImageIO.read ( new java.io.ByteArrayInputStream ( rawImageData ) ) ; } catch ( java.lang.RuntimeException | java.io.IOException e ) { validationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.PROVIDED_VM_ICON_CANT_BE_READ ) ; } }
Source:
public org.ovirt.engine.core.bll.SPMAsyncTask CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.AsyncTaskFactory.Construct ( taskType , taskParameters , false ) ; }

Target:
public org.ovirt.engine.core.bll.SPMAsyncTask CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.AsyncTaskFactory.construct ( taskType , taskParameters , false ) ; }
Source:
private boolean isVmInPool ( org.ovirt.engine.core.compat.Guid vmId ) { return ( org.ovirt.engine.core.bll.RemoveVmCommand.getVm ( ) . getVmPoolId ( ) ) != null ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) ; }
Source:
public void prepareForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { super . prepareForEdit ( storage ) ; boolean isEditable = isEditable ( storage ) ; setVfsChangeability ( isEditable ) ; getMountOptions ( ) . setIsChangable ( isEditable ) ; }

Target:
public void prepareForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { super . prepareForEdit ( storage ) ; boolean isEditable = isEditable ( storage ) ; setVfsChangeability ( isEditable ) ; getMountOptions ( ) . setIsChangeable ( isEditable ) ; }
Source:
public void testGetAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > result = dao.getAllForVm ( FixturesTool.VM_TEMPLATE_RHEL5 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetPluggedForVMFilteredWithPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Disk > disks = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_57 , true , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.DiskDaoTest.assertPluggedGetAllForVMResult ( disks ) ; }
Source:
public void setCpuLoad ( java.lang.Double value ) { this . mVdsStatistics.setcpu_load ( value ) ; }

Target:
public void setOnlineCpus ( java.lang.String value ) { this . mVdsDynamic.setOnlineCpus ( value ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . extendedVirtualMachineGeneralSubTabLabel ( ) , 0 , ginjector.getPoolGeneralModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants , org.ovirt.engine.ui.userportal.uicommon.model.vm.PoolGeneralModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.extendedVirtualMachineGeneralSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
public org.ovirt.engine.core.bll.storage.ISingleAsyncOperation CreateSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.ConnectSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.storage.ISingleAsyncOperation createSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.ConnectSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) ) ; }
Source:
public void testGetFilteredWithPermissionsNoPermissionsAndNoFilter ( ) { org.ovirt.engine.core.common.businessentities.vm_pools result = dao.get ( existingVmPool.getvm_pool_id ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetResult ( result ) ; }

Target:
public void testGetFilteredWithPermissionsNoPermissionsAndNoFilter ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getvm_pool_id ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetResult ( result ) ; }
Source:
public void removeAsyncRunningCommand ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = backend.getResourceManager ( ) . RemoveAsyncRunningCommand ( vmId ) ; if ( command != null ) { command.reportCompleted ( ) ; } }

Target:
public void removeAsyncRunningCommand ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = vdsBroker.RemoveAsyncRunningCommand ( vmId ) ; if ( command != null ) { command.reportCompleted ( ) ; } }
Source:
public void attachmentAndNicLabelReferenceSameLabelNotConflict ( ) { attachmentAndNicLabelReferenceSameLabelCommonTest ( true , true ) ; }

Target:
public void testValidateQosNotPartiallyConfiguredWhenBothHasQos ( ) { testValidateQosNotPartiallyConfigured ( true , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void getIpv4AddressOfNetwork ( ) { nic.setIpv4Address ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.IPV4_ADDRESS ) ; org.junit.Assert.assertThat ( underTest.getIpv4AddressOfNetwork ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.NETWORK_NAME1 ) , org.hamcrest.Matchers.is ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.IPV4_ADDRESS ) ) ; }

Target:
public void getIpv4AddressOfNetwork ( ) { setIpv4Details ( nic ) ; org.junit.Assert.assertThat ( underTest.getIpv4AddressOfNetwork ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.NETWORK_NAME1 ) , org.hamcrest.Matchers.is ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.IPV4_ADDRESS ) ) ; }
Source:
public int getnum_of_cpus ( ) { return this . mVmStatic.getnum_of_cpus ( ) ; }

Target:
public void setNumOfCpus ( int value ) { }
Source:
private org.ovirt.engine.core.aaa.DirectoryGroup getDirectoryGroup ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.NAMESPACE , EXTERNAL_IDS [ index ] , org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES [ index ] ) ; }

Target:
private org.ovirt.engine.core.aaa.DirectoryGroup getDirectoryGroup ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.NAMESPACE , EXTERNAL_IDS [ index ] , org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES [ index ] , "" ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] snapParams ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks , java.lang.String memory ) ;
Source:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return poolPerDc.poolForDataCenter ( getStoragePoolId ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { return poolPerDc.poolForDataCenter ( getStoragePoolId ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByTemplates ( ) { return new org.ovirt.engine.core.bll.validator.NetworkValidator.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VM_TEMPLATE , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VM_TEMPLATES ) . getNetworkInUse ( getEntitiesNames ( getTemplates ( ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByTemplates ( ) { return networkNotUsed ( getTemplates ( ) , EngineMessage.VAR__ENTITIES__VM_TEMPLATES , EngineMessage.VAR__ENTITIES__VM_TEMPLATE ) ; }
Source:
public void describeTo ( org.hamcrest.Description description ) { description.appendText ( "valid result" ) ; }

Target:
public void describeTo ( org.hamcrest.Description description ) { description.appendText ( "valid ValidationResult" ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getNetworkCluster ( ) { if ( ( networkCluster ) == null ) { org.ovirt.engine.core.common.businessentities.network.NetworkClusterId networkClusterId = new org.ovirt.engine.core.common.businessentities.network.NetworkClusterId ( host.getVdsGroupId ( ) , getNetwork ( ) . getId ( ) ) ; networkCluster = networkClusterDao.get ( networkClusterId ) ; } return networkCluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getNetworkCluster ( ) { if ( ( networkCluster ) == null ) { org.ovirt.engine.core.common.businessentities.network.NetworkClusterId networkClusterId = new org.ovirt.engine.core.common.businessentities.network.NetworkClusterId ( host.getVdsGroupId ( ) , attachment.getNetworkId ( ) ) ; networkCluster = networkClusterDao.get ( networkClusterId ) ; } return networkCluster ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; if ( ev.equals ( ChangeCDModel.ExecutedEventDefinition ) ) { changeCD ( sender , args ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; if ( ev.matchesDefinition ( ChangeCDModel.ExecutedEventDefinition ) ) { changeCD ( sender , args ) ; } }
Source:
public void onConsoleModelChanged ( org.ovirt.engine.ui.common.presenter.popup.ConsoleModelChangedEvent event ) { if ( ( modelProvider.getModel ( ) . getSelectedItem ( ) ) == null ) { return ; } setupConsole ( modelProvider ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( modelProvider.getModel ( ) . getSelectedItem ( ) ) == null ) { return ; } setupDisks ( modelProvider ) ; }
Source:
public void setVnicProfileId ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { this . vnicProfileId = vnicProfileId ; }

Target:
public void setSourceProfileName ( java.lang.String name ) { sourceProfileName = name ; }
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 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 org.ovirt.engine.core.common.businessentities.StoragePool getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( super . getEntity ( ) ) ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
protected java.lang.String getValueTypeName ( ) { return getMessages ( ) . naturalNumber ( ) ; }

Target:
public int getMinimum ( ) { return privateMinimum ; }
Source:
private void attachIso_EntityChanged ( ) { getIsoImage ( ) . setIsChangable ( getAttachIso ( ) . getEntity ( ) ) ; getBootSequence ( ) . getCdromOption ( ) . setIsChangable ( getAttachIso ( ) . getEntity ( ) ) ; updateInitialRunFields ( ) ; }

Target:
private void attachIso_EntityChanged ( ) { getIsoImage ( ) . setIsChangeable ( getAttachIso ( ) . getEntity ( ) ) ; getBootSequence ( ) . getCdromOption ( ) . setIsChangeable ( getAttachIso ( ) . getEntity ( ) ) ; updateInitialRunFields ( ) ; }
Source:
public void lowerVersionHostsAndNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionHostsAndNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }
Source:
protected void setObjectName ( java.lang.Object object , java.lang.String name ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . setName ( name ) ; }

Target:
protected void setObjectName ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData templateData , java.lang.String name ) { templateData.getTemplate ( ) . setName ( name ) ; }
Source:
public void testPatternBasedNameFails ( ) { cmd.getParameters ( ) . getVm ( ) . setName ( "aa-??bb" ) ; org.junit.Assert.assertFalse ( "Pattern-based name should not be supported for VM" , cmd.validateInputs ( ) ) ; }

Target:
public void testPatternBasedNameFails ( ) { cmd.getParameters ( ) . getVm ( ) . setName ( "aa-??bb" ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validateInputs ( ) , "Pattern-based name should not be supported for VM" ) ; }
Source:
private void assertNoViolations ( java.util.List < org.ovirt.engine.core.dal.VdcBllMessages > violations ) { junit.framework.Assert.assertTrue ( ( "Expecting no violations, but got: " + violations ) , violations.isEmpty ( ) ) ; }

Target:
private void validateAndExpectNoViolations ( org.ovirt.engine.core.bll.SetupNetworksHelper helper ) { java.util.List < org.ovirt.engine.core.dal.VdcBllMessages > violations = helper.validate ( ) ; junit.framework.Assert.assertTrue ( ( "Expected no violations, but got: " + violations ) , violations.isEmpty ( ) ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( disk ) != null ) && ( ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) == ( disk.getDiskStorageType ( ) ) ) ) { return ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( disk ) ) . getQuotaId ( ) ; } return null ; }

Target:
private org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( getDisk ( ) ) != null ) && ( ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) == ( getDisk ( ) . getDiskStorageType ( ) ) ) ) { return getDiskImage ( ) . getQuotaId ( ) ; } return null ; }
Source:
public void shouldFailtWhenNoId ( ) { org.mockito.Mockito.when ( getQueryParameters ( ) . getOptions ( ) ) . thenReturn ( new org.ovirt.engine.core.common.console.ConsoleOptions ( org.ovirt.engine.core.common.businessentities.GraphicsType.SPICE ) ) ; org.junit.Assert.assertFalse ( getQuery ( ) . validateInputs ( ) ) ; }

Target:
public void shouldFailtWhenNoId ( ) { org.mockito.Mockito.when ( getQueryParameters ( ) . getOptions ( ) ) . thenReturn ( new org.ovirt.engine.core.common.console.ConsoleOptions ( org.ovirt.engine.core.common.businessentities.GraphicsType.SPICE ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( getQuery ( ) . validateInputs ( ) ) ; }
Source:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetClustersByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId } , setUpClusters ( ) , null ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }

Target:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetClustersByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId } , setUpClusters ( ) , null ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }
Source:
public void markAsValid ( ) { applyCommonValidationStyles ( ) ; getValidatedWidgetStyle ( ) . setBorderColor ( "gray" ) ; getValidatedWidget ( ) . setTitle ( null ) ; }

Target:
public void markAsValid ( ) { valid = true ; applyCommonValidationStyles ( ) ; getValidatedWidgetStyle ( ) . setBorderColor ( "gray" ) ; getValidatedWidget ( ) . setTitle ( null ) ; }
Source:
public void setcpu_user ( java.lang.Double value ) { this . mVmStatistics.setcpu_user ( value ) ; }

Target:
public void setUsageCpuPercent ( java.lang.Integer value ) { this . vmStatistics.setusage_cpu_percent ( value ) ; }
Source:
public void testReturnNullWhenGivenNullIp ( ) { org.ovirt.engine.api.model.IpVersion version = org.ovirt.engine.api.restapi.types.IpHelper.getVersion ( null ) ; org.junit.Assert.assertNull ( version ) ; }

Target:
public void testReturnNullWhenGivenNullIp ( ) { org.ovirt.engine.api.model.IpVersion version = org.ovirt.engine.api.restapi.types.IpHelper.getVersion ( null ) ; org.junit.jupiter.api.Assertions.assertNull ( version ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkView object ) { return ( object.getvlan_id ( ) ) == null ? "-" : object.getvlan_id ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkView object ) { return ( object.getVlanId ( ) ) == null ? "-" : object.getVlanId ( ) . toString ( ) ; }
Source:
public void onResponseReceived ( com.google.gwt.http.client.Request request , com.google.gwt.http.client.Response response ) { java.lang.String result = response.getText ( ) ; onFetched.raise ( this , new org.ovirt.engine.ui.uicommonweb.Configurator.FileFetchEventArgs ( result ) ) ; }

Target:
public void onResponseReceived ( com.google.gwt.http.client.Request request , com.google.gwt.http.client.Response response ) { if ( ( response.getStatusCode ( ) ) == ( com.google.gwt.http.client.Response.SC_OK ) ) { java.lang.String result = response.getText ( ) ; onFetched.raise ( this , new org.ovirt.engine.ui.uicommonweb.Configurator.FileFetchEventArgs ( result ) ) ; } }
Source:
public boolean disconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return true ; }

Target:
public boolean disconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.DisconnectStorageServer.getValue ( ) ) . getFirst ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map entity = new org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map ( ) ; entity.setLunId ( rs.getString ( "LUN_id" ) ) ; entity.setstorage_server_connection ( rs.getString ( "storage_server_connection" ) ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map entity = new org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map ( ) ; entity.setLunId ( rs.getString ( "lun_id" ) ) ; entity.setstorage_server_connection ( rs.getString ( "storage_server_connection" ) ) ; return entity ; }
Source:
public void setEntity ( java.lang.Object value ) { super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; }

Target:
public void setEntity ( java.lang.Object value ) { updateIsMemorySnapshotSupported ( value ) ; super . setEntity ( value ) ; updateIsCloneVmSupported ( ) ; }
Source:
private org.ovirt.engine.core.common.scheduling.PolicyUnit getPolicyUnit ( java.lang.String id ) { org.ovirt.engine.core.compat.Guid guid = asGuid ( id ) ; for ( org.ovirt.engine.core.common.scheduling.PolicyUnit policyUnit : getCollection ( ) ) { if ( policyUnit.getId ( ) . equals ( guid ) ) { return policyUnit ; } } return null ; }

Target:
public org.ovirt.engine.api.resource.SchedulingPolicyUnitResource getSchedulingPolicyUnitSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendSchedulingPolicyUnitResource ( id ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getBroker ( ) . hotPlugNic ( org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.createParametersStruct ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { result = org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getBroker ( ) . hotPlugNic ( org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.createParametersStruct ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( result ) ; }
Source:
public void asMapOneInit ( ) { schedule.addInitStep ( new org.ovirt.engine.core.common.migration.ConvergenceItem ( "action" , 10 ) ) ; org.junit.Assert.assertEquals ( new org.ovirt.engine.core.bll.migration.ConvergenceScheduleTest.ExpectedConvergence ( ) . addInit ( "action" , 10 ) , schedule.asMap ( ) ) ; }

Target:
public void asMapOneInit ( ) { schedule.addInitStep ( new org.ovirt.engine.core.common.migration.ConvergenceItem ( "action" , 10 ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( new org.ovirt.engine.core.bll.migration.ConvergenceScheduleTest.ExpectedConvergence ( ) . addInit ( "action" , 10 ) , schedule.asMap ( ) ) ; }
Source:
protected void onRefresh ( java.lang.String status ) { refreshPanel.showStatus ( status ) ; }

Target:
protected void onRefresh ( java.lang.String status ) { refreshPanel.setTooltipText ( status ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( ( e.PropertyName ) == "IsAvailable" ) { setPkPasswordSectionVisiblity ( false ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { object.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPassPkWindow ( true ) ; }
Source:
private boolean updateFloppyListFromVDSM ( org.ovirt.engine.core.compat.Guid repoStoragePoolId , org.ovirt.engine.core.compat.Guid repoStorageDomainId ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue fileStats = getFileStats ( repoStoragePoolId , repoStorageDomainId , org.ovirt.engine.core.bll.IsoDomainListSyncronizer.FLOPPY_FILE_PATTERN , VDSCommandType.GetFloppyList ) ; return refreshVdsmFileList ( repoStoragePoolId , repoStorageDomainId , null , ImageFileType.Floppy , fileStatsFromVDSReturnValue ( fileStats ) ) ; }

Target:
private boolean updateIsoListFromVDSM ( org.ovirt.engine.core.compat.Guid repoStoragePoolId , org.ovirt.engine.core.compat.Guid repoStorageDomainId ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue fileStats = getFileStats ( repoStoragePoolId , repoStorageDomainId , org.ovirt.engine.core.bll.IsoDomainListSyncronizer.ISO_VDSM_FILE_PATTERN , VDSCommandType.GetIsoList ) ; return updateIsoListFromVDSM ( repoStoragePoolId , repoStorageDomainId , fileStatsFromVDSReturnValue ( fileStats ) ) ; }
Source:
private void setUpMockQueryParameters ( ) { params = org.ovirt.engine.core.bll.AbstractQueryTest.mock ( getParameterType ( ) ) ; org.mockito.Mockito.when ( params.getSessionId ( ) ) . thenReturn ( "test" ) ; org.mockito.Mockito.when ( params.getRefresh ( ) ) . thenReturn ( true ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { initQuery ( getQuery ( ) ) ; for ( org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < ? > mcd : getExtraConfigDescriptors ( ) ) { org.ovirt.engine.core.bll.AbstractQueryTest.mcr.mockConfigValue ( mcd ) ; } }
Source:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }
Source:
protected void assertBiggerThan ( org.ovirt.engine.core.common.businessentities.StorageDomain firstStorageDomain , org.ovirt.engine.core.common.businessentities.StorageDomain secondStorageDomain ) { org.junit.Assert.assertTrue ( ( ( compareStorageDomains ( firstStorageDomain , secondStorageDomain ) ) > 0 ) ) ; }

Target:
protected void assertBiggerThan ( org.ovirt.engine.core.common.businessentities.StorageDomain firstStorageDomain , org.ovirt.engine.core.common.businessentities.StorageDomain secondStorageDomain ) { org.junit.jupiter.api.Assertions.assertTrue ( ( ( compareStorageDomains ( firstStorageDomain , secondStorageDomain ) ) > 0 ) ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > getAllForHost ( java.lang.String host ) ;

Target:
org.ovirt.engine.core.common.businessentities.VdsStatic getByHostName ( java.lang.String hostname ) ;
Source:
public java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > validateVmProperties ( org.ovirt.engine.core.compat.Version version , java.lang.String properties ) { if ( syntaxErrorInProperties ( properties ) ) { return invalidSyntaxValidationError ; } return validateProperties ( allVmProperties.get ( version ) , convertProperties ( properties ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > validateVmProperties ( org.ovirt.engine.core.compat.Version version , java.lang.String properties ) { if ( syntaxErrorInProperties ( properties ) ) { return invalidSyntaxValidationError ; } return validateProperties ( allVmProperties.get ( version ) , convertProperties ( properties ) ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , null , 0 , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void isValidVmNetworkForNetworkNotInVds ( ) { org.ovirt.engine.core.common.businessentities.VmNetworkInterface iface = createNewInterface ( ) ; iface.setNetworkName ( NETWORK_NAME ) ; org.junit.Assert.assertFalse ( vmInterfaceManager.isValidVmNetwork ( iface , java.util.Collections.< java.lang.String , org.ovirt.engine.core.common.businessentities.Network > emptyMap ( ) ) ) ; }

Target:
public void isValidVmNetworkForNetworkNotInVds ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = createNewInterface ( ) ; iface.setNetworkName ( NETWORK_NAME ) ; org.junit.Assert.assertFalse ( vmInterfaceManager.isValidVmNetwork ( iface , java.util.Collections.< java.lang.String , org.ovirt.engine.core.common.businessentities.network.Network > emptyMap ( ) ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getIsoStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid poolId ) { return getStorageDomainId ( poolId , StorageDomainType.ISO ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getIsoStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { return getStorageDomainId ( poolId , StorageDomainType.ISO , status ) ; }
Source:
private void updateMigrationOptions ( ) { org.ovirt.engine.core.compat.Version version = getVersion ( ) . getSelectedItem ( ) ; if ( version == null ) { return ; } autoConverge.updateChangeability ( ConfigurationValues.AutoConvergenceSupported , version ) ; migrateCompressed.updateChangeability ( ConfigurationValues.MigrationCompressionSupported , version ) ; }

Target:
private void updateMigrationOptions ( ) { org.ovirt.engine.core.compat.Version version = getVersion ( ) . getSelectedItem ( ) ; if ( version == null ) { return ; } autoConverge.setIsChangeable ( true ) ; migrateCompressed.setIsChangeable ( true ) ; }
Source:
private void CollapseAll ( ) { SetIsExpandedRecursively ( false , getItems ( ) . get ( 0 ) ) ; }

Target:
private void expandAll ( ) { setIsExpandedRecursively ( true , getItems ( ) . get ( 0 ) ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { roleModelProvider.getModel ( ) . setItemsFilter ( null ) ; roleModelProvider.getModel ( ) . ForceRefresh ( ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { roleModelProvider.getModel ( ) . setItemsFilter ( null ) ; roleModelProvider.getModel ( ) . forceRefresh ( ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.String > getJobMessageProperties ( ) { java.util.Map < java.lang.String , java.lang.String > map = super . getJobMessageProperties ( ) ; map.put ( VdcObjectType.VdsGroups.name ( ) , org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVdsGroupName ( ) ) ; return map ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getJobMessageProperties ( ) { java.util.Map < java.lang.String , java.lang.String > map = super . getJobMessageProperties ( ) ; map.put ( VdcObjectType.Cluster.name ( ) , org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getClusterName ( ) ) ; return map ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getVmtName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.storage.SubTabStorageVmBackupView.vmTemplateNameRenderer.render ( object ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { object.setAuthenticationMethod ( AuthenticationMethod.PublicKey ) ; displayPassPkWindow ( false ) ; }

Target:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { object.setAuthenticationMethod ( AuthenticationMethod.PublicKey ) ; displayPassPkWindow ( false ) ; }
Source:
public void setVm ( org.ovirt.engine.sdk.entities.VM vm ) { this . vm = vm ; }

Target:
public void setInstance ( org.ovirt.optimizer.solver.facts.Instance instance ) { this . instance = instance ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
private void initDataForClearTest ( java.lang.String key ) { container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , key , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.users.VdcUser.class ) ) ; }

Target:
private void initDataForClearTest ( java.lang.String key ) { container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , key , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; if ( hasSelection ( ) ) { clearSelection ( ) ; } else { updateLayout ( ) ; } org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractMainTabWithDetailsPresenter.getView ( ) . resetTableScrollPosition ( ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; if ( hasSelection ( ) ) { clearSelection ( ) ; } else { updateLayout ( ) ; } org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractMainTabWithDetailsPresenter.getView ( ) . getTable ( ) . resetScrollPosition ( ) ; }
Source:
public void init ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { super . init ( model ) ; initAdvancedModeFromLocalStorage ( model ) ; swithAccordingToMode ( model ) ; initListeners ( model ) ; }

Target:
public void init ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { super . init ( model ) ; initAdvancedModeFromLocalStorage ( model ) ; swithAccordingToMode ( model ) ; initToCreateInstanceMode ( model ) ; initListeners ( model ) ; }
Source:
public java.lang.Boolean getValue ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel : getNetworksTableItems ( ) ) { if ( canEditAssign ( clusterNetworkModel ) ) { if ( ! ( clusterNetworkModel.isAttached ( ) ) ) { return false ; } } } return true ; }

Target:
public boolean isEnabled ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel : getNetworksTableItems ( ) ) { if ( canEditAssign ( clusterNetworkModel ) ) { return true ; } } return false ; }
Source:
public void setPopupKeyPressHandler ( org.ovirt.engine.ui.common.widget.dialog.PopupNativeKeyPressHandler handler ) { asWidget ( ) . setKeyPressHandler ( handler ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration setPopupKeyPressHandler ( org.ovirt.engine.ui.common.widget.dialog.PopupNativeKeyPressHandler handler ) { return asWidget ( ) . setKeyPressHandler ( handler ) ; }
Source:
public void testgetAllForStoragePoolWithNoConnections ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > result = dao.getAllForStoragePool ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testgetAllConnectableStorageSeverConnectionWithNoConnections ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > result = dao.getAllConnectableStorageSeverConnection ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private org.ovirt.engine.api.model.DetailedLink createLink ( java.lang.String rel , org.ovirt.engine.api.common.util.LinkHelper.LinkFlags flags ) { return org.ovirt.engine.api.common.util.LinkHelper.createLink ( getUriInfo ( ) . getBaseUri ( ) . getPath ( ) , rel , flags ) ; }

Target:
private java.util.Collection < org.ovirt.engine.api.model.DetailedLink > getGlusterLinks ( ) { return org.ovirt.engine.api.restapi.util.ApiRootLinksCreator.getGlusterLinks ( getUriInfo ( ) ) ; }
Source:
private void allocateAndFreeMacAndExpectGivenMac ( org.ovirt.engine.core.bll.network.macpool.Range range , long expectedMac ) { java.lang.Long mac = range.allocateMacs ( 1 ) . get ( 0 ) ; org.junit.Assert.assertThat ( mac , org.hamcrest.CoreMatchers.is ( expectedMac ) ) ; range.freeMac ( mac ) ; }

Target:
private void allocateAndFreeMacAndExpectGivenMac ( org.ovirt.engine.core.bll.network.macpool.Range range , long expectedMac ) { java.lang.Long mac = range.allocateMacs ( 1 ) . get ( 0 ) ; org.hamcrest.MatcherAssert.assertThat ( mac , org.hamcrest.CoreMatchers.is ( expectedMac ) ) ; range.freeMac ( mac ) ; }
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.ui.uicommonweb.models.hosts.HostInterfaceLineModel , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.hostIfaceSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostInterfacePresenter.constants.hostIfaceSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public void testIsNetworkInSyncWhenIpConfigurationIsEmpty ( ) throws java.lang.Exception { 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 ) ) ; }