auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.api.model.Hosts list ( ) { return mapCollection ( getBackendCollection ( SearchType.VDS ) ) ; }

Target:
public org.ovirt.engine.api.model.Hosts list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllHosts , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; else return mapCollection ( getBackendCollection ( SearchType.VDS ) ) ; }
Source:
public void imageProvidedForOvirtNode ( ) { java.lang.String imageName = org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 20 ) ; org.junit.Assert.assertThat ( validator.imageProvidedForOvirtNode ( imageName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void imageProvidedForOvirtNode ( ) { java.lang.String imageName = org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 20 ) ; org.hamcrest.MatcherAssert.assertThat ( validator.imageProvidedForOvirtNode ( imageName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { super . verifyModel ( model , index ) ; assertFalse ( model.isSetUser ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Role model , int index ) { super . verifyModel ( model , index ) ; org.junit.Assert.assertFalse ( model.isSetUser ( ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getvm_name ( ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getVmName ( ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, description = %s" , super . toString ( ) , getDescription ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "description" , getDescription ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmStatic getVmStatic ( ) { org.ovirt.engine.core.common.businessentities.VmStatic vmStatic = new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; vmStatic.setOsId ( OsRepository.DEFAULT_OS ) ; vmStatic.setMemSizeMb ( 300 ) ; vmStatic.setStateless ( false ) ; vmStatic.setVmtGuid ( vmTemplateId ) ; return vmStatic ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmStatic getVmStatic ( ) { org.ovirt.engine.core.common.businessentities.VmStatic vmStatic = new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; vmStatic.setOsId ( OsRepository.DEFAULT_X86_OS ) ; vmStatic.setMemSizeMb ( 300 ) ; vmStatic.setStateless ( false ) ; vmStatic.setVmtGuid ( vmTemplateId ) ; return vmStatic ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.ServerCpu source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getCpuName ( ) , cpuName ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.ServerCpu source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getCpuName ( ) , cpuName ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network getEntity ( int index , boolean isDisplay ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.class ) , isDisplay , index ) ; }

Target:
protected org.ovirt.engine.api.model.Network getEntity ( int index , boolean isDisplay ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , isDisplay , index ) ; }
Source:
public void validateFreeSpaceOnDestinationDomains ( ) { org.junit.Assert.assertTrue ( command.checkFreeSpaceAndTypeOnDestDomains ( ) ) ; }

Target:
public void validateSufficientSpaceOnDestinationDomains ( ) { setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.checkDestDomains ( ) ) ; org.mockito.Mockito.verify ( multipleSdValidator ) . allDomainsWithinThresholds ( ) ; org.mockito.Mockito.verify ( multipleSdValidator ) . allDomainsHaveSpaceForNewDisks ( org.mockito.Matchers.anyList ( ) ) ; }
Source:
public void setName ( java.lang.String value ) { name = value ; }

Target:
public void setName ( java.lang.String value ) { name = ( value == null ) ? "" : value ; }
Source:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createHigherVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_2 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createHigherVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_2 ) ; return pool ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( java.lang.String.format ( "$volumeName %1$s" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getGlusterVolumeName ( ) ) ) ; addCanDoActionMessage ( java.lang.String.format ( "$vdsGroup %1$s" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getVdsGroupName ( ) ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessageVariable ( "volumeName" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getGlusterVolumeName ( ) ) ; addCanDoActionMessageVariable ( "vdsGroup" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getVdsGroupName ( ) ) ; }
Source:
private void logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "ResourceManager::refreshVdsRunTimeInfo::Failed to AfterRefreshTreatment VDS error = '{0}', continuing." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to AfterRefreshTreatment VDS error = '{0}', continuing." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }
Source:
public void testGetAllForUserIdsWithInvalidIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsersWithIds ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . getUuid ( ) . toString ( ) ) ; assertNotNull ( result ) ; assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUserIdsWithInvalidIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsersWithIds ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . getUuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
java.lang.String hotProfileUpdateNotSupported ( java.lang.String clusterVersion ) ;

Target:
java.lang.String usedLunIdReason ( java.lang.String id , java.lang.String reason ) ;
Source:
public static org.ovirt.engine.core.common.businessentities.storage_server_connections copyOf ( org.ovirt.engine.core.common.businessentities.storage_server_connections ssc ) { return new org.ovirt.engine.core.common.businessentities.storage_server_connections ( ssc.connection , ssc.id , ssc.iqn , ssc.password , ssc.storageType , ssc.username , ssc.port , ssc.portal , ssc.vfsType , ssc.mountOptions , ssc.nfsVersion , ssc.nfsRetrans , ssc.nfsTimeo ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageServerConnections copyOf ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ssc ) { return new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ssc.connection , ssc.id , ssc.iqn , ssc.password , ssc.storageType , ssc.username , ssc.port , ssc.portal , ssc.vfsType , ssc.mountOptions , ssc.nfsVersion , ssc.nfsRetrans , ssc.nfsTimeo ) ; }
Source:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; canDoActionFailed ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface i ) { return i.getId ( ) . equals ( getParameters ( ) . getInterface ( ) . getId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface i ) { return i.getId ( ) . equals ( getParameters ( ) . getInterface ( ) . getId ( ) ) ; }
Source:
public void testIsNotHostedEngineStorage ( ) { org.junit.Assert.assertFalse ( existingDomain.isHostedEngineStorage ( ) ) ; }

Target:
public void testIsNotHostedEngineStorage ( ) { org.junit.jupiter.api.Assertions.assertFalse ( existingDomain.isHostedEngineStorage ( ) ) ; }
Source:
public void testRemoveNonExistant ( ) { setUpGetTagExpectations ( false ) ; try { resource.remove ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNonExistant ( ) { setUpGetTagExpectations ( false ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.remove ( ) ) ) ; }
Source:
public void canDoAction_testNameChange_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( affinityGroup.getName ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }

Target:
public void canDoAction_testNameChange_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( affinityGroup.getName ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy , null ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }
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.VdsNetworkInterface findInterfaceNetworkNameNotEmpty ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i : items ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( i.getNetworkName ( ) ) ) ) { return i ; } } return null ; }
Source:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( HostSetupNetworksValidator.VAR_NETWORK_BONDS_INVALID_SLAVE_COUNT_LIST , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase successfulReturnValue ( ) { org.ovirt.engine.core.common.action.VdcReturnValueBase value = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; value.setSucceeded ( true ) ; return value ; }

Target:
private org.ovirt.engine.core.common.action.ActionReturnValue successfulReturnValue ( ) { org.ovirt.engine.core.common.action.ActionReturnValue value = new org.ovirt.engine.core.common.action.ActionReturnValue ( ) ; value.setSucceeded ( true ) ; return value ; }
Source:
protected com.google.gwt.user.cellview.client.CellTree createDataDisplayWidget ( org.ovirt.engine.ui.webadmin.uicommon.model.SystemTreeModelProvider modelProvider ) { org.ovirt.engine.ui.webadmin.widget.tree.SystemTree.SystemTreeResources res = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.webadmin.widget.tree.SystemTree.SystemTreeResources.class ) ; display = new com.google.gwt.user.cellview.client.CellTree ( modelProvider , null , res ) ; display.setAnimationEnabled ( true ) ; display.setKeyboardSelectionPolicy ( KeyboardSelectionPolicy.BOUND_TO_SELECTION ) ; return display ; }

Target:
protected void onLoad ( ) { expandTree ( display.getRootTreeNode ( ) , org.ovirt.engine.ui.webadmin.widget.tree.SystemTree.ITEM_LEVEL ) ; }
Source:
public java.lang.String getVmName ( ) { if ( ( ( vmName ) == null ) && ( ( getVm ( ) ) != null ) ) { vmName = getVm ( ) . getName ( ) ; } return vmName ; }

Target:
public java.lang.String getVmName ( ) { if ( ( org.apache.commons.lang.StringUtils.isEmpty ( vmName ) ) && ( ( getVm ( ) ) != null ) ) { vmName = getVm ( ) . getName ( ) ; } return vmName ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? constants.returnVmLabel ( ) : constants.shutDownVm ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( ( value.isPool ( ) ? org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.returnVmLabel ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.shutDownVm ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getCluster ( int idx ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setId ( GUIDS [ idx ] ) ; return cluster ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( int idx ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( GUIDS [ idx ] ) ; return cluster ; }
Source:
public void dispose ( ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.info ( "vdsManager::disposing" ) ; for ( java.lang.String jobId : registeredJobs ) { org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( jobId ) ; } vdsProxy.close ( ) ; }

Target:
public void dispose ( ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.info ( "vdsManager::disposing" ) ; for ( java.lang.String jobId : registeredJobs ) { getSchedulUtil ( ) . deleteJob ( jobId ) ; } vdsProxy.close ( ) ; }
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.compat.backendcompat.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.compat.backendcompat.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; image.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; image.setActive ( true ) ; image.setImageStatus ( ImageStatus.OK ) ; image.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( image ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; image.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; image.setActive ( true ) ; image.setImageStatus ( ImageStatus.OK ) ; image.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( image ) ; } }
Source:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel value ) { if ( ( systemTreeSelectedItem ) != value ) { systemTreeSelectedItem = value ; OnSystemTreeSelectedItemChanged ( ) ; } }

Target:
private void onSystemTreeSelectedItemChanged ( ) { updateActionAvailability ( ) ; }
Source:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml , java.lang.String width ) { table.addColumnWithHtmlHeader ( column , headerHtml , width ) ; tableHeader.addColumnWithHtmlHeader ( column , headerHtml , width ) ; }

Target:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , java.lang.String width ) { table.addColumnWithHtmlHeader ( column , headerHtml , width ) ; tableHeader.addColumnWithHtmlHeader ( column , headerHtml , width ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { result = org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand.getBroker ( ) . glusterVolumesList ( org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand.getParameters ( ) . getClusterId ( ) ) ; org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( result.getVolumes ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { result = org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand.getBroker ( ) . glusterVolumesList ( org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand.getParameters ( ) . getClusterId ( ) ) ; org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( result.getVolumes ( ) ) ; }
Source:
public java.lang.Object runInTransaction ( ) { try { boolean isPartiallySubmittedCommand = isPartiallySubmittedCommand ( tasks ) ; for ( org.ovirt.engine.core.common.businessentities.AsyncTask task : tasks ) { handleTaskOfCommandWithEmptyVdsmId ( isPartiallySubmittedCommand , task ) ; } return null ; } finally { irsBrokerLatch.countDown ( ) ; } }

Target:
public java.lang.Object runInTransaction ( ) { try { for ( org.ovirt.engine.core.common.businessentities.AsyncTask task : tasks ) { handlePartiallyExecutedTaskOfCommand ( task ) ; } return null ; } finally { irsBrokerLatch.countDown ( ) ; } }
Source:
private java.lang.String getNetworkName ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmNetworkInterface = org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getVmNetworkInterfaceDao ( ) . get ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNicId ( ) ) ; return vmNetworkInterface == null ? null : vmNetworkInterface.getNetworkName ( ) ; }

Target:
private java.lang.String getNetworkName ( ) { return org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) . getNetworkName ( ) ; }
Source:
public java.lang.String getvm_ip ( ) { return this . mVmDynamic.getvm_ip ( ) ; }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { this . vmDynamic.setstatus ( value ) ; }
Source:
private static boolean containsIlegalCharacters ( java.lang.String s ) { return ! ( java.util.regex.Pattern.matches ( ValidationUtils.NO_SPECIAL_CHARACTERS , s ) ) ; }

Target:
public void testcontainsIlegalCharacters ( ) { java.lang.String [ ] straValid = new java.lang.String [ ] { "www_redhat_com" , "127001" , "www_REDHAT_1" } ; java.lang.String [ ] straInvalid = new java.lang.String [ ] { "www.redhatcom" , "me@localhost" , "no/worries" } ; for ( java.lang.String s : straValid ) { org.junit.Assert.assertTrue ( ( "Valid strings: " + s ) , java.util.regex.Pattern.matches ( ValidationUtils.NO_SPECIAL_CHARACTERS , s ) ) ; } for ( java.lang.String s : straInvalid ) { org.junit.Assert.assertTrue ( ( "Invalid strings: " + s ) , ( ! ( java.util.regex.Pattern.matches ( ValidationUtils.NO_SPECIAL_CHARACTERS , s ) ) ) ) ; } }
Source:
public void execute ( ) { lockInteractionManager.showLoadingIndicator ( ) ; getLoginModel ( ) . autoLogin ( vdcUser ) ; }

Target:
public void execute ( ) { lockInteractionManager.showLoadingIndicator ( ) ; getLoginModel ( ) . autoLogin ( loggedUser ) ; }
Source:
public static java.util.List < java.lang.Integer > getOsIds ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osIds ; }

Target:
public int compare ( java.lang.Integer o1 , java.lang.Integer o2 ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o1 ) . compareTo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o2 ) ) ; }
Source:
public boolean IsMatch ( java.lang.String candidate ) { return pattern.matcher ( candidate ) . find ( ) ; }

Target:
public boolean isMatch ( java.lang.String candidate ) { return pattern.matcher ( candidate ) . find ( ) ; }
Source:
protected boolean extractBoolean ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { return spice.isSpiceProxyEnabled ( ) ; }

Target:
protected boolean extractBoolean ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { return spice.getOptions ( ) . isFullScreen ( ) ; }
Source:
public boolean getIsStaticAddress ( ) { return ( getBootProtocol ( ) ) == ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol.STATIC_IP ) ; }

Target:
public boolean getIsStaticAddress ( ) { return ( getIpv4BootProtocol ( ) ) == ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol.STATIC_IP ) ; }
Source:
private void handleAuthenticationException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response ) { org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandler.log.error ( "Ldap authentication failed. Please check that the login name , password and path are correct. " ) ; org.ovirt.engine.core.bll.adbroker.EngineDirectoryServiceException ex = new org.ovirt.engine.core.bll.adbroker.EngineDirectoryServiceException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.OTHER ) ; response.setServerScore ( Score.HIGH ) . setTranslatedException ( ex ) . setTryNextServer ( false ) ; }

Target:
private void handleAuthenticationException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response ) { org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandler.log.error ( "Ldap authentication failed. Please check that the login name , password and path are correct. " ) ; org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ex = new org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.OTHER ) ; response.setServerScore ( Score.HIGH ) . setTranslatedException ( ex ) . setTryNextServer ( false ) ; }
Source:
public void setCandidates ( java.util.List < org.ovirt.engine.core.common.businessentities.storage_domains > value ) { if ( ( candidates ) != value ) { candidates = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Candidates" ) ) ; getCandidatesList ( ) . setItems ( ToEntityModelList ( candidates ) ) ; } }

Target:
public void setCandidates ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > value ) { if ( ( candidates ) != value ) { candidates = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Candidates" ) ) ; getCandidatesList ( ) . setItems ( ToEntityModelList ( candidates ) ) ; } }
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) ) ; }
Source:
public void setAnonymousHugePages ( int value ) { this . anonymousHugePages = value ; }

Target:
public void setSELinuxEnforceMode ( java.lang.Integer value ) { this . selinuxEnforceMode = org.ovirt.engine.core.common.businessentities.SELinuxMode.fromValue ( value ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return ( getNetwork ( ) . isVmNetwork ( ) ) || ( org.ovirt.engine.core.bll.validator.FeatureSupported.nonVmNetwork ( org.ovirt.engine.core.bll.network.dc.NetworkCommon.getStoragePool ( ) . getcompatibility_version ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return ( getNetwork ( ) . isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( org.ovirt.engine.core.bll.network.dc.NetworkCommon.getStoragePool ( ) . getcompatibility_version ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) ; }
Source:
protected org.ovirt.engine.core.aaa.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }

Target:
protected org.ovirt.engine.core.aaa.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , new java.lang.String ( javax.xml.bind.DatatypeConverter.parseHexBinary ( EXTERNAL_IDS [ index ] ) , java.nio.charset.Charset.forName ( "UTF-8" ) ) , NAMES [ index ] ) ; }
Source:
public void setTaskList ( org.ovirt.engine.ui.uicommonweb.models.events.TaskListModel taskList ) { this . privateTaskList = taskList ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.events.TaskListModel getTaskList ( ) { return taskListModel ; }
Source:
public void setpm_type ( java.lang.String value ) { mVdsStatic.setpm_type ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "pm_type" ) ) ; }

Target:
public void setPmSecondaryIp ( java.lang.String value ) { mVdsStatic.setPmSecondaryIp ( value ) ; }
Source:
protected void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( command == ( loginModel.getLoginCommand ( ) ) ) { lockInteractionManager.showLoadingIndicator ( ) ; } super . executeCommand ( command ) ; }

Target:
void beforeLoginCommandExecuted ( T loginModel ) { lockInteractionManager.showLoadingIndicator ( ) ; }
Source:
abstract void postConnect ( ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ;

Target:
abstract void postConnect ( org.ovirt.vdsm.jsonrpc.client.utils.OneTimeCallback callback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException ;
Source:
private void writeCharacters ( java.lang.String text ) { try { writer.writeCharacters ( text ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new java.lang.IllegalStateException ( ( ( "Can\'t write text \"" + text ) + "\"" ) , exception ) ; } }

Target:
private void writeName ( org.ovirt.api.metamodel.concepts.Concept concept ) { org.ovirt.api.metamodel.concepts.Name name = concept.getName ( ) ; if ( name != null ) { writer.writeElement ( "name" , name.toString ( ) ) ; } }
Source:
public int Compare ( org.ovirt.engine.core.common.businessentities.VM x , org.ovirt.engine.core.common.businessentities.VM y ) { return ( ( int ) ( ( x.getActualDiskWithSnapshotsSize ( ) ) - ( y.getActualDiskWithSnapshotsSize ( ) ) ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VM o1 , org.ovirt.engine.core.common.businessentities.VM o2 ) { return ( ( int ) ( ( o1.getActualDiskWithSnapshotsSize ( ) ) - ( o2.getActualDiskWithSnapshotsSize ( ) ) ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . storageMainTabLabel ( ) , 4 , ginjector.getMainTabStorageModelProvider ( ) ) ; }

Target:
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.StorageDomain , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storageMainTabLabel ( ) , 4 , modelProvider ) ; }
Source:
public void setvmt_num_of_cpus ( int value ) { this . vmt_num_of_cpusField = value ; }

Target:
public int getVmtChildCount ( ) { return this . vmtchildCount ; }
Source:
public java.lang.String getDestinationStorageDomainName ( ) { return org.ovirt.engine.core.bll.ExportRepoImageCommand.getStorageDomainDAO ( ) . get ( org.ovirt.engine.core.bll.ExportRepoImageCommand.getParameters ( ) . getDestinationDomainId ( ) ) . getName ( ) ; }

Target:
public java.lang.String getDestinationStorageDomainName ( ) { return org.ovirt.engine.core.bll.ExportRepoImageCommand.getStorageDomainDao ( ) . get ( org.ovirt.engine.core.bll.ExportRepoImageCommand.getParameters ( ) . getDestinationDomainId ( ) ) . getName ( ) ; }
Source:
public boolean getIsAvailable ( ) { return ( getModel ( ) . getFormat ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.COW ) ; }

Target:
public boolean getIsAvailable ( ) { return getModel ( ) . getFileLoaded ( ) ; }
Source:
public void onFailure ( java.lang.Throwable exception ) { callback.onFailure ( exception ) ; }

Target:
public void logout ( final org.ovirt.engine.ui.frontend.communication.UserCallback callback ) { xsrfRequestBuilder.setXsrfToken ( null ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase retVal = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; retVal.setSucceeded ( true ) ; callback.onSuccess ( retVal ) ; }
Source:
public boolean isConcreteStorageType ( ) { return ( this . getValue ( ) ) > 0 ; }

Target:
public boolean isConcreteStorageType ( ) { return this . isConcreteStorageType ; }
Source:
public java.lang.String getStorageDomainName ( ) { if ( ( getStorageDomain ( ) ) != null ) { return getStorageDomain ( ) . getStorageName ( ) ; } return "" ; }

Target:
public java.lang.String getStorageDomainName ( ) { if ( ( ( storageDomainName ) == null ) && ( ( getStorageDomain ( ) ) != null ) ) { storageDomainName = getStorageDomain ( ) . getStorageName ( ) ; } return org.apache.commons.lang.StringUtils.defaultString ( storageDomainName ) ; }
Source:
protected org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAO getStorageServerConnectionLunMapDao ( ) { return org.ovirt.engine.core.bll.storage.SyncLunsInfoForIscsiStorageDomainCommand.getDbFacade ( ) . getStorageServerConnectionLunMapDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAO getStorageServerConnectionLunMapDao ( ) { return org.ovirt.engine.core.bll.storage.SyncLunsInfoForBlockStorageDomainCommand.getDbFacade ( ) . getStorageServerConnectionLunMapDao ( ) ; }
Source:
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 ) ; }

Target:
public void onConsoleModelChanged ( org.ovirt.engine.ui.common.presenter.popup.ConsoleModelChangedEvent event ) { if ( ( modelProvider.getModel ( ) . getSelectedItem ( ) ) == null ) { return ; } setupConsole ( modelProvider ) ; }
Source:
public void cpuIdIsNull ( ) { cpuId = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , images , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "cpuId" ) ; }

Target:
public void cpuIdIsNull ( ) { cpuId = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , images , luns , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "cpuId" ) ; }
Source:
public int getnice_level ( ) { return this . mVmStatic.getnice_level ( ) ; }

Target:
public java.lang.String getGuestCurentUserName ( ) { return this . vmDynamic.getguest_cur_user_name ( ) ; }
Source:
private java.lang.String getPath ( javax.ws.rs.core.UriInfo uriInfo ) { return org.ovirt.engine.api.utils.LinkHelper.combine ( uriInfo.getBaseUri ( ) . getPath ( ) , uriInfo.getPath ( ) ) ; }

Target:
private java.lang.String getPath ( javax.ws.rs.core.UriInfo uriInfo ) { return org.ovirt.engine.api.utils.LinkCreator.combine ( uriInfo.getBaseUri ( ) . getPath ( ) , uriInfo.getPath ( ) ) ; }
Source:
public void nullNetworkWhenPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.PORT_MIRRORING_REQUIRES_NETWORK ) , null , true ) ; }

Target:
public void nullNetworkWhenPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.PORT_MIRRORING_REQUIRES_NETWORK ) , null , true ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public static void debug ( final org.kie.api.runtime.rule.RuleContext drools , final java.lang.String message , final java.lang.Object ... parameters ) { final org.slf4j.Logger logger = org.ovirt.optimizer.util.RuleLogger.getLogger ( drools ) ; logger.debug ( message , parameters ) ; }

Target:
public static void debug ( final org.kie.api.runtime.rule.RuleContext drools , final java.lang.String message , final java.lang.Object ... parameters ) { final org.slf4j.Logger logger = org.ovirt.optimizer.optaplanner.RuleLogger.getLogger ( drools ) ; logger.debug ( message , parameters ) ; }
Source:
public void setvolume_format ( org.ovirt.engine.core.common.businessentities.VolumeFormat value ) { getImage ( ) . setVolumeFormat ( value ) ; }

Target:
public void setvolumeFormat ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat ) { getImage ( ) . setVolumeFormat ( volumeFormat ) ; }
Source:
public void testNonExistingUsbControllerModel ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "windows_8" ) , null ) ; org.junit.Assert.assertNull ( model ) ; }

Target:
public void testNonExistingUsbControllerModel ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "windows_8" ) , null , ChipsetType.I440FX ) ; org.junit.Assert.assertNull ( model ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterServiceModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.clusterServiceSubTabLabel ( ) , 4 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterServiceModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterServicePresenter.constants.clusterServiceSubTabLabel ( ) , 4 , modelProvider ) ; }
Source:
private boolean templateExists ( ) { if ( ( ( org.ovirt.engine.core.bll.ImportVmCommand.getVmTemplate ( ) ) == null ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; } return true ; }

Target:
private boolean templateExists ( ) { if ( ( ( org.ovirt.engine.core.bll.ImportVmCommand.getVmTemplate ( ) ) == null ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; } return true ; }
Source:
protected org.ovirt.engine.api.model.QoS postPopulate ( org.ovirt.engine.api.model.QoS model ) { model = super . postPopulate ( model ) ; model.setType ( QosType.CPU.name ( ) . toLowerCase ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.Qos postPopulate ( org.ovirt.engine.api.model.Qos model ) { model = super . postPopulate ( model ) ; model.setType ( QosType.CPU.name ( ) . toLowerCase ( ) ) ; return model ; }
Source:
private void WriteToAuditLog ( ) { try { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , getAuditLogTypeValue ( ) ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::WriteToAuditLog: An exception has been thrown." , ex ) ; } }

Target:
private void writeToAuditLog ( ) { try { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , getAuditLogTypeValue ( ) ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::WriteToAuditLog: An exception has been thrown." , ex ) ; } }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.Group model , int index ) { assertArrayEquals ( EXTERNAL_IDS [ index ] . getBytes ( ) , model.getExternalId ( ) ) ; assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Group model , int index ) { assertEquals ( EXTERNAL_IDS [ index ] . toHex ( ) , model.getExternalId ( ) ) ; assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.allServerCpuList ( org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getParameters ( ) . getVersion ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getCpuFlagsManagerHandler ( ) . allServerCpuList ( org.ovirt.engine.core.bll.GetAllServerCpuListQuery.getParameters ( ) . getVersion ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration getGlusterGeoRepSessionConfig ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration sessionConfig = new org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration ( ) ; sessionConfig.setId ( FixturesTool.GLUSTER_GEOREP_SESSION_ID ) ; sessionConfig.setKey ( "georep-crawl" ) ; sessionConfig.setValue ( "changelog" ) ; return sessionConfig ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration getGlusterGeoRepSessionConfig ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration sessionConfig = new org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration ( ) ; sessionConfig.setId ( FixturesTool.GLUSTER_GEOREP_SESSION_ID ) ; sessionConfig.setKey ( org.ovirt.engine.core.dao.gluster.GlusterGeoRepDaoTest.GEOREP_CONFIG_CRAWL ) ; sessionConfig.setDescription ( "Geo-replication session crawl" ) ; sessionConfig.setValue ( "changelog" ) ; return sessionConfig ; }
Source:
public void testGet ( ) { doTestGet ( ApplicationMode.AllModes , org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) ; }

Target:
public void testGetVirtOnly ( ) { doTestGet ( ApplicationMode.VirtOnly ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Quota getQuota ( ) { if ( ( quota ) == null ) { setQuota ( getQuotaDao ( ) . getById ( getParameters ( ) . getQuotaId ( ) ) ) ; } return quota ; }

Target:
public org.ovirt.engine.core.common.businessentities.Quota getQuota ( ) { if ( ( quota ) == null ) { setQuota ( quotaDao.getById ( getParameters ( ) . getQuotaId ( ) ) ) ; } return quota ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DiskImage cloneDiskImage ( org.ovirt.engine.core.compat.Guid newImageGuid ) { org.ovirt.engine.core.common.businessentities.DiskImage returnValue = super . cloneDiskImage ( newImageGuid ) ; returnValue.setit_guid ( org.ovirt.engine.core.bll.CreateSnapshotFromTemplateCommand.getImage ( ) . getImageId ( ) ) ; return returnValue ; }

Target:
protected org.ovirt.engine.core.common.businessentities.DiskImage cloneDiskImage ( org.ovirt.engine.core.compat.Guid newImageGuid ) { org.ovirt.engine.core.common.businessentities.DiskImage returnValue = super . cloneDiskImage ( newImageGuid ) ; returnValue.setImageTemplateId ( org.ovirt.engine.core.bll.CreateSnapshotFromTemplateCommand.getImage ( ) . getImageId ( ) ) ; return returnValue ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { populateNamespaces ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { namespacesMap = ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( result ) ) ; populateProfiles ( getProfileEntries ( ) ) ; }
Source:
protected void findUsers ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.SearchParameters ( ( ( ( "ADUSER@" + ( ( ( org.ovirt.engine.core.aaa.ProfileEntry ) ( getProfile ( ) . getSelectedItem ( ) ) ) . getAuthz ( ) ) ) + ": " ) + searchString ) , org.ovirt.engine.core.common.interfaces.SearchType.DirectoryUser ) , query ) ; }

Target:
protected void findUsers ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.Search , new org.ovirt.engine.core.common.queries.DirectorySearchParameters ( ( ( ( "ADUSER@" + ( ( ( org.ovirt.engine.core.aaa.ProfileEntry ) ( getProfile ( ) . getSelectedItem ( ) ) ) . getAuthz ( ) ) ) + ": " ) + searchString ) , org.ovirt.engine.core.common.interfaces.SearchType.DirectoryUser , getNamespace ( ) . getSelectedItem ( ) ) , query ) ; }
Source:
public void setVm ( boolean vm ) { this . vm = vm ; }

Target:
public org.ovirt.engine.core.bll.GraphicsParameters setVm ( boolean vm ) { this . vm = vm ; return this ; }
Source:
public void networkMappingsProvidedByParameters ( ) { org.junit.Assert.assertThat ( validator.networkMappingsProvided ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkMappingsProvidedByParameters ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.networkMappingsProvided ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }