auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.lang.String getHostId ( java.lang.String hostName ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VdsStatic.class , VdcQueryType.GetVdsStaticByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( hostName ) , ( "Hosts: name=" + hostName ) ) . getId ( ) . toString ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.InstanceType lookupInstance ( org.ovirt.engine.api.model.Template template ) { return getEntity ( org.ovirt.engine.core.common.businessentities.InstanceType.class , VdcQueryType.GetInstanceType , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( asGuid ( template.getId ( ) ) ) , "GetInstanceType" ) ; }
Source:
public void setQos ( org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos ) { this . qos = qos ; }

Target:
public void setHostNetworkQos ( org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos ) { this . qos = qos ; }
Source:
public java.lang.String getvds_group_name ( ) { return this . vds_group_nameField ; }

Target:
public org.ovirt.engine.core.compat.Version getVdsGroupCompatibilityVersion ( ) { return this . vdsGroupCompatibilityVersion ; }
Source:
public java.lang.String getoption_value ( ) { return this . value ; }

Target:
public java.lang.String getOptionValue ( ) { return this . value ; }
Source:
private void Network_SelectedItemChanged ( org.ovirt.engine.ui.uicompat.EventArgs e ) { UpdateCanSpecify ( ) ; }

Target:
private void network_SelectedItemChanged ( org.ovirt.engine.ui.uicompat.EventArgs e ) { updateCanSpecify ( ) ; }
Source:
public final void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.cell.Context context , com.google.gwt.dom.client.Element parent , C value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < C > valueUpdater ) { onBrowserEvent ( context , parent , value , null , event , valueUpdater ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( C value , com.google.gwt.dom.client.Element parent ) { return getTooltip ( value ) ; }
Source:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return format.encode ( value , props ) ; }

Target:
public java.lang.String encode ( com.unboundid.asn1.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return format.encode ( value , props ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNameValid ( ) { return ( ! ( org.ovirt.engine.core.common.FeatureSupported.networkLinking ( version ) ) ) && ( ( nic.getNetworkName ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNameValid ( ) { return ( ! ( org.ovirt.engine.core.common.FeatureSupported.networkLinking ( version ) ) ) && ( ( nic.getNetworkName ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void setGuestLastLoginTime ( java.util.Date value ) { this . vmDynamic.setGuestLastLoginTime ( value ) ; }

Target:
public void setPassthroughVnicToVfMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > passthroughVnicToVfMap ) { this . passthroughVnicToVfMap = passthroughVnicToVfMap ; }
Source:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { try { resource.getApplicationResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { try { resource.getApplicationResource ( "foo" ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void onLoadOrError ( ) { final org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validation = new org.ovirt.engine.ui.uicommonweb.validation.IconValidation ( ) . validate ( icon ) ; updateErrorIconLabel ( validation ) ; image.getElement ( ) . setAttribute ( "src" , icon ) ; }

Target:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { readUploadedIconFile ( inputFileWidget.getElement ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { log.debug ( "Calling DB test..." ) ; org.ovirt.engine.core.bll.CheckDBConnectionQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.CheckDBConnectionQuery.getDbFacade ( ) . CheckDBConnection ( ) ) ; log.debug ( "DB test ended." ) ; }

Target:
protected void executeQueryCommand ( ) { log.debug ( "Start checking connection to db" ) ; org.ovirt.engine.core.bll.CheckDBConnectionQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.CheckDBConnectionQuery.getDbFacade ( ) . CheckDBConnection ( ) ) ; log.debug ( "Completed checking connection to db" ) ; }
Source:
public void unmanagedNetworkAddedToNic ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface nic = createNic ( "nic0" , null ) ; mockExistingIfaces ( nic ) ; nic.setNetworkName ( "net" ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( nic ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) ; }

Target:
public void unmanagedNetworkAddedToNic ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface nic = createNic ( "nic0" , null ) ; mockExistingIfaces ( nic ) ; nic.setNetworkName ( "net" ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( nic ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORKS_DONT_EXIST_IN_CLUSTER ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/rpc_backend" ) , "quantum.openstack.common.rpc.impl_qpid" ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/rpc_backend" ) , _messagingConfiguration.getBrokerType ( ) . getRpcBackendValue ( ) ) ; return true ; }
Source:
private org.ovirt.engine.ui.uicommonweb.action.UiVdcMultipleAction createAction ( boolean emptyParams ) { return new org.ovirt.engine.ui.uicommonweb.action.UiVdcMultipleAction ( ACTION_TYPE , ( emptyParams ? new java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > ( ) : java.util.Collections.singletonList ( new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ) ) , model ) ; }

Target:
private org.ovirt.engine.ui.uicommonweb.action.UiVdcMultipleAction createAction ( boolean emptyParams ) { return new org.ovirt.engine.ui.uicommonweb.action.UiVdcMultipleAction ( ACTION_TYPE , ( emptyParams ? new java.util.ArrayList < org.ovirt.engine.core.common.action.ActionParametersBase > ( ) : java.util.Collections.singletonList ( new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ) ) , model ) ; }
Source:
public java.lang.String getPassword ( ) { return ( ( java.lang.String ) ( getData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME ) ) ) ; }

Target:
public void setAuthn ( java.lang.String sessionId , org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }
Source:
protected org.ovirt.engine.core.bll.network.dc.AddNetworkCommand.AddNetworkValidator getNetworkValidator ( ) { return new org.ovirt.engine.core.bll.network.dc.AddNetworkCommand.AddNetworkValidator ( org.ovirt.engine.core.bll.network.dc.AddNetworkCommand.getNetwork ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.network.dc.AddNetworkCommand.AddNetworkValidator getNetworkValidator ( ) { return new org.ovirt.engine.core.bll.network.dc.AddNetworkCommand.AddNetworkValidator ( vmDao , org.ovirt.engine.core.bll.network.dc.AddNetworkCommand.getNetwork ( ) ) ; }
Source:
public static void AddVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert ) { alert.setVdsId ( vdsId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.Alert ( alert , type , auditLogDirector ) ; }

Target:
public static void addVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert ) { alert.setVdsId ( vdsId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.alert ( alert , type , auditLogDirector ) ; }
Source:
protected void readSnapshotsSection ( @ java.lang.SuppressWarnings ( value = "unused" ) org.ovirt.engine.core.compat.backendcompat.XmlNode section ) { }

Target:
protected void readSnapshotsSection ( @ java.lang.SuppressWarnings ( value = "unused" ) org.ovirt.engine.core.utils.ovf.xml.XmlNode section ) { }
Source:
public void testIsUp ( ) { mockHostForActivation ( VDSStatus.Up ) ; org.junit.Assert.assertTrue ( validator.isUp ( ) . isValid ( ) ) ; }

Target:
public void testIsUp ( ) { mockHostForActivation ( VDSStatus.Up ) ; org.junit.jupiter.api.Assertions.assertTrue ( validator.isUp ( ) . isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId getQueryableId ( ) { return new org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId ( getMemberId ( getFirst ( ) ) , getMemberId ( getSecond ( ) ) ) ; }

Target:
public org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId getQueryableId ( ) { return new org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId ( getMemberId ( org.ovirt.engine.core.common.utils.PairQueryable.getFirst ( ) ) , getMemberId ( org.ovirt.engine.core.common.utils.PairQueryable.getSecond ( ) ) ) ; }
Source:
public void setguest_last_login_time ( java.util.Date value ) { this . mVmDynamic.setguest_last_login_time ( value ) ; }

Target:
public java.lang.String getGuestCurentUserName ( ) { return this . vmDynamic.getguest_cur_user_name ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 0 ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.GetVmByVmIdParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.model.VM ( ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.model.VM ( ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { Test ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { test ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult evaluate ( org.ovirt.engine.core.bll.validator.StorageDomainValidator validator ) { return validator.isDomainWithinThresholds ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult evaluate ( java.util.Map.Entry < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.validator.StorageDomainValidator > entry ) { return getStorageDomainValidator ( entry ) . isDomainWithinThresholds ( ) ; }
Source:
public void testInvalidIsBackupDomain ( ) { domain.setBackup ( true ) ; org.junit.Assert.assertThat ( "Backup domain is backup, should be invalid." , validator.isNotBackupDomain ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_DISKS_ON_BACKUP_STORAGE ) ) ; }

Target:
public void testInvalidIsBackupDomain ( ) { domain.setBackup ( true ) ; org.hamcrest.MatcherAssert.assertThat ( "Backup domain is backup, should be invalid." , validator.isNotBackupDomain ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_DISKS_ON_BACKUP_STORAGE ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeDiskVDSCommand.getBroker ( ) . changeDisk ( mVmId.toString ( ) , mIsoLocation ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeDiskVDSCommand.ProceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getStatus ( ) ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeDiskVDSCommand.getBroker ( ) . changeDisk ( mVmId.toString ( ) , mIsoLocation ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.ChangeDiskVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getStatus ( ) ) ; }
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; initNetworkInterfaces ( ) ; updateMemoryBalloon ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; initNetworkInterfaces ( ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.ad_groups result = dao.getByName ( existingAdGroup.getname ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingAdGroup , result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.LdapGroup result = dao.getByName ( existingAdGroup.getname ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingAdGroup , result ) ; }
Source:
public void setVmDomain ( java.lang.String value ) { this . vmStatic.setDomain ( value ) ; }

Target:
public void setCurrentCd ( java.lang.String value ) { this . vmDynamic.setCurrentCd ( value ) ; }
Source:
public org.ovirt.engineextensions.aaa.ldap.AttrConversion getConversion ( ) { return conversion ; }

Target:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value ) { return conversion.encode ( value , conversionProps ) ; }
Source:
public java.lang.String getOsFamily ( int osId ) ;

Target:
org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureFromOS ( int osId ) ;
Source:
public org.ovirt.engine.api.model.Events list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.GetEventMessagesParameters ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( ) ) ; } }

Target:
public org.ovirt.engine.api.model.Events list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( ) ) ; } }
Source:
protected org.ovirt.engine.core.compat.Guid createTaskInCurrentTransaction ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTaskImpl ( asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

Target:
private org.ovirt.engine.core.compat.Guid createTaskImpl ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTaskImpl ( taskId , asyncTaskCreationInfo , parentCommand , description , createEntitiesMapForSingleEntityType ( entityType , entityIds ) ) ; }
Source:
public java.lang.String getImageUrl ( java.lang.String id ) { return ( ( ( getProvider ( ) . getUrl ( ) ) + ( org.ovirt.engine.core.bll.provider.OpenstackImageProviderProxy.API_VERSION ) ) + "/images/" ) + id ; }

Target:
public java.lang.String getImageUrl ( java.lang.String id ) { return ( ( ( getProvider ( ) . getUrl ( ) ) + ( org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy.API_VERSION ) ) + "/images/" ) + id ; }
Source:
private void localize ( ) { clusterNameEditor.setLabel ( constants.volumeClusterLabel ( ) ) ; volumeNameEditor.setLabel ( constants.volumeNameLabel ( ) ) ; snapshotConfigHeader.setText ( constants.snapshotConfigHeaderLabel ( ) ) ; }

Target:
private void localize ( ) { clusterNameEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GlusterVolumeSnapshotConfigureOptionsPopupView.constants.volumeClusterLabel ( ) ) ; volumeNameEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GlusterVolumeSnapshotConfigureOptionsPopupView.constants.volumeNameLabel ( ) ) ; snapshotConfigHeader.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GlusterVolumeSnapshotConfigureOptionsPopupView.constants.snapshotConfigHeaderLabel ( ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( ! ( super . canDoAction ( ) ) ) { return false ; } if ( ( org.ovirt.engine.core.bll.AddUserProfileCommand.getUserProfile ( ) ) != null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_PROFILE_ALREADY_EXISTS ) ; } return true ; }

Target:
protected boolean validate ( ) { if ( ! ( super . validate ( ) ) ) { return false ; } if ( ( org.ovirt.engine.core.bll.AddUserProfileCommand.getUserProfile ( ) ) != null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_PROFILE_ALREADY_EXISTS ) ; } return true ; }
Source:
private java.lang.String createInvalidMacAddress ( ) { return org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.replace ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.charAt ( random.nextInt ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.length ( ) ) ) , 'x' ) ; }

Target:
private java.lang.String createInvalidMacAddress ( ) { return org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.replace ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.charAt ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.random.nextInt ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS.length ( ) ) ) , 'x' ) ; }
Source:
public void getAllRunningOnOrMigratingToVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllRunningOnOrMigratingToVds ( org.ovirt.engine.core.dao.VmDAOTest.VDS_STATIC_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUsersWithGroupsAndUserRoles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForUserWithGroupsAndUserRoles ( FixturesTool.USER_EXISTING_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void testGetClustersHavingHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters = dao.getClustersHavingHosts ( ) ; org.junit.Assert.assertNotNull ( clusters ) ; org.junit.Assert.assertThat ( clusters , org.hamcrest.Matchers.hasSize ( 4 ) ) ; }

Target:
public void testGetClustersHavingHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters = dao.getClustersHavingHosts ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( clusters ) ; org.hamcrest.MatcherAssert.assertThat ( clusters , org.hamcrest.Matchers.hasSize ( 4 ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.ClientConsoleMode getClientConsoleMode ( ) { return org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel.ClientConsoleMode.valueOf ( ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigValuePreConverted ( ConfigurationValues.ClientConsoleModeDefault ) ) ) ) ; }

Target:
public boolean isClientWindowExplorerWithWebsockets ( ) { return isClientWindowsExplorer ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.LdapGroup getGroupByGroupGuid ( org.ovirt.engine.core.compat.Guid groupGuid ) { return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.LdapGroup getGroupById ( org.ovirt.engine.core.common.utils.ExternalId id ) { return null ; }
Source:
public void networkLabeled ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.getLabel ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextPropertyString ( 10 ) ) ; org.junit.Assert.assertThat ( validator.notLabeled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) ) ; }

Target:
public void networkLabeled ( ) { org.mockito.Mockito.when ( network.getLabel ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextPropertyString ( 10 ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.notLabeled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) ) ; }
Source:
public void setCloudInitParameters ( org.ovirt.engine.core.common.action.CloudInitParameters CloudInitParameters ) { this . cloudInitParameters = CloudInitParameters ; }

Target:
public void setVmInit ( org.ovirt.engine.core.common.businessentities.VmInit vmInit ) { this . vmInit = vmInit ; }
Source:
protected void onSelectedItemChanging ( java.lang.Object newValue , java.lang.Object oldValue ) { initSelectionGeustAgentData ( newValue ) ; super . onSelectedItemChanging ( newValue , oldValue ) ; }

Target:
protected void onSelectedItemChanging ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface newValue , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface oldValue ) { initSelectionGeustAgentData ( newValue ) ; super . onSelectedItemChanging ( newValue , oldValue ) ; }
Source:
protected org.ovirt.engine.core.dao.VdsDAO getVdsDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VdsDynamicDAO getVdsDynamicDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) ; }
Source:
public void separatorNotNull ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = null ; org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 5 ) ; }

Target:
public void separatorNotEmpty ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = "" ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 5 ) ) ; }
Source:
private void Cluster_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.Cluster_SelectedItemChanged ( ) ; UpdateMaximalVmMemSize ( ) ; }

Target:
private void template_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.template_SelectedItemChanged ( ) ; }
Source:
void storeToLocalStorage ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) ;

Target:
void storeToLocalStorage ( org.ovirt.engine.ui.uicommonweb.models.VmConsoles vmConsoles ) ;
Source:
public void testImportedHostedEngineImageDiskRemove ( ) { vm.setOrigin ( OriginType.MANAGED_HOSTED_ENGINE ) ; vm.setStatus ( VMStatus.Up ) ; org.mockito.Mockito.doReturn ( disk ) . when ( cmd ) . getDisk ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_HOSTED_ENGINE_DISK ) ; }

Target:
public void testImportedHostedEngineImageDiskRemove ( ) { vm.setOrigin ( OriginType.MANAGED_HOSTED_ENGINE ) ; vm.setStatus ( VMStatus.Up ) ; org.mockito.Mockito.doReturn ( disk ) . when ( cmd ) . getDisk ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_HOSTED_ENGINE_DISK ) ; }
Source:
public static java.lang.String getCdInterface ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.osRepository.getCdInterface ( vm.getOs ( ) , vm.getCompatibilityVersion ( ) , org.ovirt.engine.core.common.businessentities.ChipsetType.fromMachineType ( vm.getEmulatedMachine ( ) ) ) ; }

Target:
public java.lang.String getCdInterface ( org.ovirt.engine.core.common.businessentities.VM vm ) { return osRepository.getCdInterface ( vm.getOs ( ) , vm.getCompatibilityVersion ( ) , org.ovirt.engine.core.common.businessentities.ChipsetType.fromMachineType ( vm.getEmulatedMachine ( ) ) ) ; }
Source:
public void snapshotTypeSupported ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateValidResult ( validator.snapshotTypeSupported ( snapshot , java.util.Collections.singletonList ( snapshot.getType ( ) ) ) ) ; }

Target:
public void snapshotTypeSupported ( ) throws java.lang.Exception { snapshot.setType ( SnapshotType.REGULAR ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateValidResult ( validator.isRegularSnapshot ( snapshot ) ) ; }
Source:
private java.lang.String connectErrorMessage ( ) { return canConnectToConsole ( ) ? "" : messages.errorConnectingToConsole ( getVm ( ) . getName ( ) , getSelectedProcotol ( ) . toString ( ) ) ; }

Target:
private java.lang.String connectErrorMessage ( ) { return ( getSelectedProcotol ( ) ) == null ? messages.errorConnectingToConsoleNoProtocol ( getVm ( ) . getName ( ) ) : messages.errorConnectingToConsole ( getVm ( ) . getName ( ) , getSelectedProcotol ( ) . toString ( ) ) ; }
Source:
public void setVmId ( org.ovirt.engine.core.compat.Guid vmId ) { this . vmId = vmId ; }

Target:
protected boolean isFilterDestinationDomainsBySourceType ( ) { return false ; }
Source:
private void setUpCallParentRemoveExpectations ( ) { org.easymock.EasyMock.expect ( bricksResourceMock.remove ( org.easymock.EasyMock.anyObject ( org.ovirt.engine.api.model.GlusterBricks.class ) ) ) . andReturn ( javax.ws.rs.core.Response.ok ( ) . build ( ) ) . once ( ) ; }

Target:
private void setUpCallParentRemoveExpectations ( ) { org.easymock.EasyMock.expect ( bricksResourceMock.remove ( org.easymock.EasyMock.anyObject ( org.ovirt.engine.api.model.Action.class ) ) ) . andReturn ( javax.ws.rs.core.Response.ok ( ) . build ( ) ) . once ( ) ; }
Source:
public java.lang.String getVmDomain ( ) { return this . vmStatic.getDomain ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmInit getVmInit ( ) { return this . vmStatic.getVmInit ( ) ; }
Source:
public void setvmt_os ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmt_osField = value ; }

Target:
public int getVmtCpuPerSocket ( ) { return this . vmtCpuPerSocket ; }
Source:
private java.util.concurrent.Future < java.lang.Void > scheduleClose ( final java.lang.String message ) { this . closing.set ( true ) ; return scheduleTask ( ( ) -> { disconnect ( message ) ; return null ; } ) ; }

Target:
private java.util.concurrent.Future < java.lang.Void > scheduleClose ( final java.lang.String message ) { this . closing.set ( true ) ; clean ( ) ; return scheduleTask ( ( ) -> { disconnect ( message ) ; return null ; } ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( actionType , parameters , executionContext ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters , executionContext ) ; }
Source:
public void setDiskProfileId ( org.ovirt.engine.core.compat.Guid diskProfileId ) { diskProfileIds = new java.util.ArrayList < > ( ) ; diskProfileIds.add ( diskProfileId ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getDiskProfileId ( ) { if ( ( ( diskProfileIds ) == null ) || ( diskProfileIds.isEmpty ( ) ) ) { return null ; } return diskProfileIds.get ( 0 ) ; }
Source:
public void setHost ( java.lang.String host ) { this . host = host ; }

Target:
public void setHost ( java.lang.String host ) { this . consoleOptions.setHost ( host ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setGetVdsQueryExpectations ( 1 ) ; setGetNetworksQueryExpectations ( 1 ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpActionsUriExpectations ( ) ; setGetVdsQueryExpectations ( 1 ) ; setGetNetworksQueryExpectations ( 1 ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public void deleteRunningJobsOfTasklessCommands ( ) { updateQueryGetResult ( getEntityManager ( ) . createNativeQuery ( "select cast(DeleteRunningJobsOfTasklessCommands as text) from DeleteRunningJobsOfTasklessCommands()" ) ) ; }

Target:
public void updateJobLastUpdateTime ( org.ovirt.engine.core.compat.Guid jobId , java.util.Date lastUpdateTime ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "job_id" , jobId ) . addValue ( "last_update_time" , lastUpdateTime ) ; getCallsHandler ( ) . executeModification ( "UpdateJobLastUpdateTime" , parameterSource ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.CdRom model , int index ) { org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.verifyModelSpecific ( model , index ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.CdRom model , int index ) { org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.verifyModelWithIso ( model , org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.ISO_PATH ) ; verifyLinks ( model ) ; }
Source:
protected void LockImage ( ) { org.ovirt.engine.core.bll.BaseImagesCommand.SetImageStatus ( getDiskImage ( ) , ImageStatus.LOCKED ) ; }

Target:
protected void LockImage ( ) { org.ovirt.engine.core.bll.BaseImagesCommand.SetImageStatus ( ( org.ovirt.engine.core.bll.BaseImagesCommand.getParameters ( ) . isImportEntity ( ) ? getDestinationDiskImage ( ) : getDiskImage ( ) ) , ImageStatus.LOCKED ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigReset ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String userName ) ;
Source:
public void close ( ) throws java.lang.Exception { client.getConnectionManager ( ) . shutdown ( ) ; }

Target:
public org.apache.http.HttpResponse execute ( org.apache.http.client.methods.HttpUriRequest request ) { try { return client.execute ( request ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void testAllLunsSupportDiscardFailsOneLunHasNullValue ( ) { org.junit.Assert.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) , createLunWithDiscardFunctionality ( null , true ) ) ) ) ; }

Target:
public void testAllLunsSupportDiscardFailsOneLunHasNullValue ( ) { org.junit.Assert.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) , createLunWithDiscardSupport ( null ) ) ) ) ; }
Source:
public synchronized void CancelTasks ( java.util.List < org.ovirt.engine.core.compat.Guid > taskList ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskList ) { CancelTask ( taskID ) ; } }

Target:
public synchronized void CancelTasks ( java.util.List < org.ovirt.engine.core.compat.Guid > vdsmTaskList ) { for ( org.ovirt.engine.core.compat.Guid vdsmTaskId : vdsmTaskList ) { CancelTask ( vdsmTaskId ) ; } }
Source:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDAO ( ) . get ( storagePool.getId ( ) ) ; pool.setspm_vds_id ( null ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDAO ( ) . update ( pool ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . get ( storagePool.getId ( ) ) ; pool.setspm_vds_id ( null ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . update ( pool ) ; return null ; }
Source:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return cachedVds.getVdsGroupId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getClusterId ( ) { return cachedVds.getClusterId ( ) ; }
Source:
protected org.ovirt.engine.core.utils.lock.EngineLock acquireVolumeSnapshotLock ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.utils.lock.EngineLock lock = new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( id.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.GLUSTER_SNAPSHOT , EngineMessage.ACTION_TYPE_FAILED_VOLUME_SNAPSHOT_LOCKED ) ) , null ) ; getLockManager ( ) . acquireLockWait ( lock ) ; return lock ; }

Target:
protected org.ovirt.engine.core.utils.lock.EngineLock acquireGeoRepSessionLock ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.utils.lock.EngineLock lock = new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( id.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.GLUSTER_GEOREP , EngineMessage.ACTION_TYPE_FAILED_GEOREP_SESSION_LOCKED ) ) , null ) ; lockManager.acquireLockWait ( lock ) ; return lock ; }
Source:
public void setfail_back ( boolean value ) { this . mVmStatic.setfail_back ( value ) ; }

Target:
public void setFailBack ( boolean value ) { this . vmStatic.setFailBack ( value ) ; }
Source:
public int compareTo ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < T > o ) { return getName ( ) . compareTo ( o.getName ( ) ) ; }

Target:
public int compareTo ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < T > o ) { return org.ovirt.engine.core.common.utils.LexoNumericComparator.comp ( getName ( ) , o.getName ( ) ) ; }
Source:
public void setstatus ( int value ) { this . status = value ; }

Target:
public void setGroupNames ( java.lang.String value ) { groupNames = value ; }
Source:
protected boolean shouldRemoveMemorySnapshotVolumes ( java.lang.String memoryVolume ) { return ! ( memoryVolume.isEmpty ( ) ) ; }

Target:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ! ( memoryVolume.isEmpty ( ) ) ; }
Source:
public void setdisplay_type ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . display_type = value ; }

Target:
public java.lang.Boolean getKvmEnable ( ) { return this . kvmEnable ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getMemSizeMb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportTemplatePopupView.messages.megabytes ( java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getMemSizeMb ( ) ) ) ; }
Source:
public void addToHistoryOneValueBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 10 , 12 ) , statistics.addToHistory ( java.util.Collections.singletonList ( 10 ) , 12 , 100 ) ) ; }

Target:
public void addToHistoryOneValueBefore ( ) { org.junit.jupiter.api.Assertions.assertEquals ( java.util.Arrays.asList ( 10 , 12 ) , statistics.addToHistory ( java.util.Collections.singletonList ( 10 ) , 12 , 100 ) ) ; }
Source:
private org.ovirt.engine.core.common.action.VdcActionType getEndActionType ( org.ovirt.engine.core.common.businessentities.AsyncTasks dbAsyncTask ) { org.ovirt.engine.core.common.action.VdcActionType commandType = dbAsyncTask.getActionParameters ( ) . getCommandType ( ) ; if ( ! ( VdcActionType.Unknown.equals ( commandType ) ) ) { return commandType ; } return dbAsyncTask.getaction_type ( ) ; }

Target:
public void revertTasks ( org.ovirt.engine.core.bll.CommandBase command ) { coCoAsyncTaskHelper.revertTasks ( command ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.EMPTY_SAFE_HTML ; }

Target:
public java.lang.String getTooltip ( ) { return "" ; }
Source:
public void testSave ( ) { dao.save ( newTag ) ; org.ovirt.engine.core.common.businessentities.Tags result = dao.get ( newTag.getTagId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newTag , result ) ; }

Target:
public void testSave ( ) { dao.save ( newTag ) ; org.ovirt.engine.core.common.businessentities.Tags result = dao.get ( newTag.gettag_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newTag , result ) ; }
Source:
public org.ovirt.optimizer.common.Result planningResult ( @ javax.ws.rs.PathParam ( value = "cluster" ) java.lang.String cluster ) { response.getOutputHeaders ( ) . putSingle ( "Access-Control-Allow-Origin" , "*" ) ; response.getOutputHeaders ( ) . putSingle ( "Access-Control-Allow-Methods" , "GET" ) ; return optimizer.getCurrentResult ( cluster ) ; }

Target:
public org.ovirt.optimizer.rest.dto.Result planningResult ( @ javax.ws.rs.PathParam ( value = "cluster" ) java.lang.String cluster ) { response.getOutputHeaders ( ) . putSingle ( "Access-Control-Allow-Origin" , "*" ) ; response.getOutputHeaders ( ) . putSingle ( "Access-Control-Allow-Methods" , "GET" ) ; return optimizer.getCurrentResult ( cluster ) ; }
Source:
public void setup ( ) { existingGroup.setcompatibility_version ( Version.v3_1 ) ; createCommand ( ) ; }

Target:
public void setup ( ) { existingGroup.setCompatibilityVersion ( Version.v3_1 ) ; createCommand ( ) ; }
Source:
public void testEvalNegative ( ) { org.mockito.Mockito.when ( mockExternalNetworkPredicate.eval ( mockNetwork ) ) . thenReturn ( true ) ; org.junit.Assert.assertFalse ( underTest.eval ( mockNetwork ) ) ; }

Target:
public void testEvalNegative ( ) { mockExternalNetworkPredicate.setTestResult ( true ) ; org.junit.Assert.assertFalse ( underTest.test ( mockNetwork ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage_domains get ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.storage_domain_static staticPart = staticDAO.get ( id ) ; return createDomain ( staticPart ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage_domains get ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic staticPart = staticDAO.get ( id ) ; return createDomain ( staticPart ) ; }
Source:
public static boolean isNetwork ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return device.getType ( ) . equals ( VmDeviceType.INTERFACE.getName ( ) ) ; }

Target:
public static boolean isNetwork ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return ( device.getType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType.INTERFACE ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getStoppedVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterVolumeStatus.DOWN ) ; volume.setClusterId ( CLUSTER_ID ) ; return volume ; }

Target:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( startedVolumeId , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public static org.ovirt.engine.core.utils.customprop.VmPropertiesUtils getInstance ( ) { return org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.vmPropertiesUtils ; }

Target:
public static org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils getInstance ( ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.vmPropertiesUtils ; }
Source:
public java.lang.Object call ( ) { getStoragePoolIsoMapDao ( ) . remove ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( mapToRemove.getstorage_id ( ) , mapToRemove.getstorage_pool_id ( ) ) ) ; return null ; }

Target:
public java.lang.Object call ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap storagePoolIsoMap = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( storageDomainId , storagePoolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Maintenance ) ; getStoragePoolIsoMapDao ( ) . save ( storagePoolIsoMap ) ; return null ; }
Source:
public void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid parentCommandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status ) { commandsCache.put ( commandId , parentCommandId , rootCommandId , actionType , params , status ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.CommandEntity getCommandEntity ( org.ovirt.engine.core.compat.Guid commandId ) { return commandsCache.get ( commandId ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return this . infoReturn.mStatus ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return this . infoReturn.getXmlRpcStatus ( ) ; }
Source:
public java.lang.String generate ( org.ovirt.engine.sdk.entities.DetailedLink detailedLink ) { java.lang.StringBuffer docParamsBuffer = new java.lang.StringBuffer ( ) ; docParamsBuffer.append ( org.ovirt.engine.sdk.codegen.documentation.DocsGen.generateBodyParams ( detailedLink ) ) ; docParamsBuffer.append ( org.ovirt.engine.sdk.codegen.documentation.DocsGen.generateUrlAndHeadersParams ( detailedLink ) ) ; return docParamsBuffer.toString ( ) ; }

Target:
public java.lang.String generate ( org.ovirt.engine.sdk.entities.DetailedLink detailedLink ) { java.lang.StringBuffer docParamsBuffer = new java.lang.StringBuffer ( ) ; docParamsBuffer.append ( org.ovirt.engine.sdk.codegen.documentation.DocsGen.generateBodyParams ( detailedLink ) ) ; docParamsBuffer.append ( org.ovirt.engine.sdk.codegen.documentation.DocsGen.generateUrlParameters ( detailedLink ) ) ; return docParamsBuffer.toString ( ) ; }
Source:
public void testAllDomainsNotBackupDomainsOneBackup ( ) { domain2.setBackup ( true ) ; org.ovirt.engine.core.bll.ValidationResult result = validator.allDomainsNotBackupDomains ( ) ; org.junit.Assert.assertThat ( "One domain is in backup mode" , result , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_DISKS_ON_BACKUP_STORAGE ) ) ; }

Target:
public void testAllDomainsNotBackupDomainsOneBackup ( ) { domain2.setBackup ( true ) ; org.ovirt.engine.core.bll.ValidationResult result = validator.allDomainsNotBackupDomains ( ) ; org.hamcrest.MatcherAssert.assertThat ( "One domain is in backup mode" , result , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_DISKS_ON_BACKUP_STORAGE ) ) ; }
Source:
public void setName ( java.lang.String value ) { this . name = value ; }

Target:
public void setComment ( java.lang.String value ) { comment = ( value == null ) ? "" : value ; }
Source:
private void mockStorageDomainStatic ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { final org.ovirt.engine.core.common.businessentities.StorageDomainStatic domain = new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ; domain.setStorageType ( storageType ) ; org.mockito.Mockito.when ( storageDomainStaticDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( domain ) ; }

Target:
private void mockStorageDomainStatic ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { final org.ovirt.engine.core.common.businessentities.StorageDomainStatic domain = new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ; domain.setStorageType ( storageType ) ; org.mockito.Mockito.when ( storageDomainStaticDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( domain ) ; }