auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { if ( args instanceof org.ovirt.engine.core.compat.PropertyChangedEventArgs ) { updateMessages ( object ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( args instanceof org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) { updateMessages ( object ) ; } }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveNetwork , new org.ovirt.engine.core.common.action.RemoveNetworkParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworksResource getParent ( ) { return parent ; }
Source:
protected org.ovirt.engine.api.model.CreationStatus awaitCompletion ( org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { return awaitCompletion ( result , org.ovirt.engine.api.restapi.resource.AbstractBackendResource.PollingType.VDSM_TASKS ) ; }

Target:
protected org.ovirt.engine.api.model.CreationStatus awaitCompletion ( org.ovirt.engine.core.common.action.ActionReturnValue result ) { return awaitCompletion ( result , org.ovirt.engine.api.restapi.resource.AbstractBackendResource.PollingType.VDSM_TASKS ) ; }
Source:
private boolean oldAndNewNetworkIsNotExternal ( ) { return ( ( getOldNetwork ( ) . getProvidedBy ( ) ) == null ) && ( ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . getProvidedBy ( ) ) == null ) ; }

Target:
private boolean oldAndNewNetworkIsNotExternal ( ) { return ( ! ( getOldNetwork ( ) . isExternal ( ) ) ) && ( ! ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . isExternal ( ) ) ) ; }
Source:
public void nonVmNetworkWhenSupported ( ) throws java.lang.Exception { vmNetworkSetupTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , false , true ) ; }

Target:
public void mtuValid ( ) { org.junit.Assert.assertThat ( validator.mtuValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.tags result = dao.get ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.tags result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void testGetManagedInterfaceForVdsFilteredForPriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result = dao.getManagedInterfaceForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoTest.VDS_ID , org.ovirt.engine.core.dao.network.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.network.InterfaceDaoTest.assertCorrectGetManagedInterfaceForVdsResult ( result ) ; }

Target:
public void testGetManagedInterfaceForVdsFilteredForPriviligedUser ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface result = dao.getManagedInterfaceForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.VDS_ID , org.ovirt.engine.core.dao.network.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.assertCorrectGetManagedInterfaceForVdsResult ( result ) ; }
Source:
public void setStyle ( final org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkPanelsStyle style ) { this . style = style ; setSpacing ( 10 ) ; animatedPanel.getElement ( ) . addClassName ( style.unassignedNetworksPanel ( ) ) ; }

Target:
public void setStyle ( final org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkPanelsStyle style ) { this . style = style ; addStyleName ( "ts10" ) ; animatedPanel.getElement ( ) . addClassName ( style.unassignedNetworksPanel ( ) ) ; }
Source:
public void shouldFailWhenVmNull ( ) { org.ovirt.engine.core.common.console.ConsoleOptions options = new org.ovirt.engine.core.common.console.ConsoleOptions ( org.ovirt.engine.core.common.businessentities.GraphicsType.SPICE ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getOptions ( ) ) . thenReturn ( options ) ; org.junit.Assert.assertFalse ( getQuery ( ) . validateInputs ( ) ) ; }

Target:
public void shouldFailWhenVmNull ( ) { org.ovirt.engine.core.common.console.ConsoleOptions options = new org.ovirt.engine.core.common.console.ConsoleOptions ( org.ovirt.engine.core.common.businessentities.GraphicsType.SPICE ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getOptions ( ) ) . thenReturn ( options ) ; org.junit.jupiter.api.Assertions.assertFalse ( getQuery ( ) . validateInputs ( ) ) ; }
Source:
public void biggerThanOrEquals ( ) { org.junit.Assert.assertFalse ( Version.v3_6.greaterOrEquals ( Version.v4_0 ) ) ; org.junit.Assert.assertTrue ( Version.v4_0.greaterOrEquals ( Version.v3_6 ) ) ; org.junit.Assert.assertTrue ( Version.v4_0.greaterOrEquals ( new org.ovirt.engine.core.compat.Version ( "3.6" ) ) ) ; }

Target:
public void biggerThanOrEquals ( ) { org.junit.jupiter.api.Assertions.assertFalse ( Version.v3_6.greaterOrEquals ( Version.v4_0 ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( Version.v4_0.greaterOrEquals ( Version.v3_6 ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( Version.v4_0.greaterOrEquals ( new org.ovirt.engine.core.compat.Version ( "3.6" ) ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . update ( org.ovirt.engine.core.bll.UpdateBookmarkCommand.getBookmark ( ) ) ; org.ovirt.engine.core.bll.UpdateBookmarkCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { bookmarkDao.update ( org.ovirt.engine.core.bll.UpdateBookmarkCommand.getBookmark ( ) ) ; org.ovirt.engine.core.bll.UpdateBookmarkCommand.setSucceeded ( true ) ; }
Source:
public static void addPermissionsOnVnicProfile ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid vnicProfileId , boolean publicUse ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( userId , vnicProfileId , PredefinedRoles.NETWORK_ADMIN ) ; if ( publicUse ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , vnicProfileId , PredefinedRoles.VNIC_PROFILE_USER ) ; } }

Target:
public static void addPermissionsOnVnicProfile ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid vnicProfileId , boolean publicUse ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( userId , vnicProfileId , PredefinedRoles.NETWORK_ADMIN , VdcObjectType.VnicProfile ) ; if ( publicUse ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , vnicProfileId , PredefinedRoles.VNIC_PROFILE_USER , VdcObjectType.VnicProfile ) ; } }
Source:
public void ovfUpdateTimer ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > storagePools = getStoragePoolDao ( ) . getAllByStatus ( StoragePoolStatus.Up ) ; updateOvfData ( storagePools ) ; }

Target:
public void ovfUpdateTimer ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > storagePools = storagePoolDao.getAllByStatus ( StoragePoolStatus.Up ) ; updateOvfData ( storagePools ) ; }
Source:
private void guestAgentIsUpOrBalloonDeflated ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.vmsWithUncontrolledBalloon.remove ( vmId ) ; }

Target:
private void guestAgentIsUpOrBalloonDeflated ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.vdsbroker.HostMonitoring.vmsWithUncontrolledBalloon.remove ( vmId ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
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 org.ovirt.engine.core.common.businessentities.StorageDomain createStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageFormatType formatType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setStorageFormat ( formatType ) ; sd.setStorageType ( storageType ) ; return sd ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getLUN_id ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getDiskAlias ( ) ; }
Source:
public static void RemoveAllVdsAlerts ( org.ovirt.engine.core.compat.Guid vdsId , boolean removeConfigAlerts ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllForVds ( vdsId , removeConfigAlerts ) ; }

Target:
public static void removeAllVdsAlerts ( org.ovirt.engine.core.compat.Guid vdsId , boolean removeConfigAlerts ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllForVds ( vdsId , removeConfigAlerts ) ; }
Source:
public void testGetAllInterfacesForVdsWithPermissionsDisabledForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoTest.VDS_ID , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , false ) ; assertGetAllForVdsCorrectResult ( result ) ; }

Target:
public void testGetAllInterfacesForVdsWithPermissionsDisabledForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.VDS_ID , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , false ) ; assertGetAllForVdsCorrectResult ( result ) ; }
Source:
protected static void verifyHostDevices ( java.util.List < org.ovirt.engine.api.model.HostDevice > devices ) { org.junit.Assert.assertEquals ( 1 , devices.size ( ) ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendHostDevicesResourceTest.verifyHostDevice ( devices.get ( 0 ) ) ; }

Target:
protected static void verifyHostDevices ( java.util.List < org.ovirt.engine.api.model.HostDevice > devices ) { org.junit.jupiter.api.Assertions.assertEquals ( 1 , devices.size ( ) ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendHostDevicesResourceTest.verifyHostDevice ( devices.get ( 0 ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel object ) { org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmSnapshotCreatePopupWidget.Driver.driver.edit ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.core.compat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; if ( "Message" . equals ( propName ) ) { appendMessage ( model.getMessage ( ) ) ; } }
Source:
private void closeSshConnection ( org.ovirt.engine.core.bll.utils.EngineSSHClient sshClient ) { if ( sshClient != null ) { try { sshClient.disconnect ( ) ; } catch ( java.lang.Exception ex ) { log.error ( "Error disconnecting SSH connection" , ex ) ; } } }

Target:
private void closeSshConnection ( org.ovirt.engine.core.utils.ssh.EngineSSHClient sshClient ) { if ( sshClient != null ) { try { sshClient.disconnect ( ) ; } catch ( java.lang.Exception ex ) { log.error ( "Error disconnecting SSH connection" , ex ) ; } } }
Source:
private java.util.Set < org.ovirt.engine.ui.uicommonweb.models.vms.register.VnicProfileMappingEntity > getClusterVnicProfileMappingEntities ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { final java.util.Set < org.ovirt.engine.ui.uicommonweb.models.vms.register.VnicProfileMappingEntity > result = externalVnicProfilesPerTargetCluster.get ( cluster ) ; if ( result == null ) { return new java.util.HashSet < > ( ) ; } else { return result ; } }

Target:
private java.util.Set < org.ovirt.engine.ui.uicommonweb.models.vms.register.VnicProfileMappingEntity > getClusterVnicProfileMappingEntities ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { final java.util.Set < org.ovirt.engine.ui.uicommonweb.models.vms.register.VnicProfileMappingEntity > result = externalVnicProfilesPerTargetCluster.get ( cluster ) ; if ( ! ( isVnicMappingChangeConfirmed ) ) { return new java.util.HashSet < > ( ) ; } else { return result ; } }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getAffinityGroupDao ( ) . get ( getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( affinityGroupDao.get ( getParameters ( ) . getId ( ) ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getSmartcardDeviceSpecParams ( ) , true , false ) ; }

Target:
public void removeSmartcardDevices ( org.ovirt.engine.core.compat.Guid vmId ) { removeVmDevices ( getSmartcardDevices ( vmId ) ) ; }
Source:
public void OnTimer ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.LdapGroup > groups = org.ovirt.engine.core.bll.DbUserCacheManager.updateGroups ( ) ; refreshAllUserData ( groups ) ; }

Target:
public void onTimer ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DbGroup > groups = org.ovirt.engine.core.bll.DbUserCacheManager.updateGroups ( ) ; refreshAllUserData ( groups ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllVMsForStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.GetVmsByStorageDomainQuery.getDbFacade ( ) . getVmDao ( ) . getAllForStorageDomain ( domainId ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllVMsForStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return vmDao.getAllForStorageDomain ( domainId ) ; }
Source:
public void setversion_name ( java.lang.String value ) { this . versionName = value ; }

Target:
public void setVersionName ( java.lang.String value ) { versionName = value ; }
Source:
public void setIsQuotaDefault ( boolean isQuotaDefault ) { this . mVmStatic.setIsQuotaDefault ( isQuotaDefault ) ; }

Target:
public void setIsQuotaDefault ( boolean isQuotaDefault ) { this . vmStatic.setIsQuotaDefault ( isQuotaDefault ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getCdImage ( ) . setIsChangable ( getCdAttached ( ) . getEntity ( ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getCdImage ( ) . setIsChangeable ( getCdAttached ( ) . getEntity ( ) ) ; }
Source:
public java.lang.Boolean getValue ( IVdcQueryable object ) { return getSelectionModel ( ) . isSelected ( object ) ; }

Target:
public java.lang.Boolean getValue ( ) { if ( ( ( listModel ) == null ) || ( ( listModel.getItems ( ) ) == null ) ) { return false ; } return getCheckValue ( listModel.getItems ( ) , getSelectionModel ( ) ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , EngineMessage.ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED ) ) ; }
Source:
public static java.lang.Integer getMaxMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version clusterVersion ) { return org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getMaximumRam ( osId , clusterVersion ) ; }

Target:
public java.lang.Integer getMaxMemorySizeInMb ( int osId , org.ovirt.engine.core.compat.Version clusterVersion ) { return osRepository.getMaximumRam ( osId , clusterVersion ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3ClusterNetworkServer getNetworkResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3ClusterNetworkServer ( getDelegate ( ) . getNetworkResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3AssignedNetworkServer getNetworkResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3AssignedNetworkServer ( getDelegate ( ) . getNetworkResource ( id ) ) ; }
Source:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDiscardFunctionality ( ) { setSdDiscardSupport ( false , true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }

Target:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDisks ( ) { storageDomain.setSupportsDiscard ( true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDS getValue ( S object ) { if ( object instanceof org.ovirt.engine.core.common.businessentities.VDS ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) ; } return null ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getEntityObject ( org.ovirt.engine.core.common.businessentities.VDS object ) { if ( object instanceof org.ovirt.engine.core.common.businessentities.VDS ) { return object ; } else { return null ; } }
Source:
boolean hotsetAllowed ( ) default false ;

Target:
VMStatus.Group hotSettableOnStatus ( ) default VMStatus.Group.NONE ;
Source:
public void stringToVCpupinIntervalsList ( ) { org.ovirt.engine.api.model.VcpuPin pin = org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "1#1-4,6" ) ; org.junit.Assert.assertEquals ( 1 , ( ( int ) ( pin.getVcpu ( ) ) ) ) ; org.junit.Assert.assertEquals ( "1-4,6" , pin.getCpuSet ( ) ) ; }

Target:
public void stringToVCpupinIntervalsList ( ) { org.ovirt.engine.api.model.VcpuPin pin = org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "1#1-4,6" ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , ( ( int ) ( pin.getVcpu ( ) ) ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( "1-4,6" , pin.getCpuSet ( ) ) ; }
Source:
public void checkSync ( ) { initSyncStatus ( mockNetworkAttachment , true ) ; org.junit.Assert.assertFalse ( underTest.eval ( mockNetworkAttachment ) ) ; }

Target:
public void checkSync ( ) { initSyncStatus ( mockNetworkAttachment , true ) ; org.junit.Assert.assertFalse ( underTest.test ( mockNetworkAttachment ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return null ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskInterface getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.getDiskInterface ( ) ; }
Source:
public boolean match ( java.util.Map.Entry < java.lang.String , java.lang.String > source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getKey ( ) , timeZone ) ; }

Target:
public boolean match ( org.ovirt.engine.ui.uicommonweb.models.vms.TimeZoneModel source ) { return org.ovirt.engine.core.compat.StringHelper.stringsEqual ( source.getTimeZoneKey ( ) , timeZone ) ; }
Source:
public boolean getRefreshStatistics ( ) { return ( refreshIteration ) == ( org.ovirt.engine.core.vdsbroker.VdsManager.NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.RefresherFactory getRefresherFactory ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.vdsbroker.RefresherFactory.class ) ; }
Source:
public void getIsUsbEnabledDisabled ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.Assert.assertFalse ( org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getIsUsbEnabled ( usbPolicy ) ) ; }

Target:
public void getIsUsbEnabledDisabled ( ) { org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.api.restapi.utils.UsbMapperUtils.getIsUsbEnabled ( usbPolicy ) ) ; }
Source:
private boolean deviceExists ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType generalType ) { return ! ( org.ovirt.engine.core.bll.UpdateVmVersionCommand.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.UpdateVmVersionCommand.getVmTemplateId ( ) , generalType ) . isEmpty ( ) ) ; }

Target:
private boolean deviceExists ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType generalType ) { return ! ( vmDeviceDao.getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.UpdateVmVersionCommand.getVmTemplateId ( ) , generalType ) . isEmpty ( ) ) ; }
Source:
public void testUrlWithoutFilter ( ) { org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = createFilteredErrataRelativeUrlBuilder ( null ) ; org.junit.Assert.assertEquals ( "/katello/api/v2/systems/xxx/errata" , underTest.build ( ) ) ; }

Target:
public void testUrlWithoutFilter ( ) { org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = createFilteredErrataRelativeUrlBuilder ( null ) ; org.junit.jupiter.api.Assertions.assertEquals ( "/katello/api/v2/systems/xxx/errata" , underTest.build ( ) ) ; }
Source:
public void setError ( java.lang.String msg ) { getInfoMessage ( ) . setIsValid ( false ) ; getInfoMessage ( ) . setEntity ( msg ) ; }

Target:
public void setWarning ( java.lang.String problem ) { if ( ! ( getProblemDescription ( ) . getIsValid ( ) ) ) { return ; } getProblemDescription ( ) . setIsValid ( true ) ; getProblemDescription ( ) . setEntity ( problem ) ; }
Source:
protected void OnPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { }

Target:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { }
Source:
public java.lang.Void runInTransaction ( ) { getVmStaticDAO ( ) . incrementDbGeneration ( getVm ( ) . getId ( ) ) ; getVmDeviceDao ( ) . updateAll ( "UpdateVmDeviceForHotPlugDisk" , devices ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( getVm ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDeviceAndStoreToDB ( getVm ( ) . getStaticData ( ) ) ; return null ; }
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 ( ) . quotaClusterSubTabLabel ( ) , 0 , ginjector.getSubTabQuotaClusterModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.quotaClusterSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getPoolSpmId ( ) { if ( ( cachedSpmId ) == null ) { cachedSpmId = org.ovirt.engine.core.bll.ImageSpmCommand.getStoragePool ( ) . getspm_vds_id ( ) ; } return cachedSpmId ; }

Target:
private org.ovirt.engine.core.compat.Guid getPoolSpmId ( ) { if ( ( cachedSpmId ) == null ) { cachedSpmId = org.ovirt.engine.core.bll.ImageSpmCommand.getStoragePool ( ) . getSpmVdsId ( ) ; } return cachedSpmId ; }
Source:
void dispatchEvent ( org.ovirt.engine.core.notifier.filter.Event event , java.lang.String address ) ;

Target:
public abstract void dispatchEvent ( org.ovirt.engine.core.notifier.filter.AuditLogEvent event , java.lang.String address ) ;
Source:
public void onRollback ( ) { log.debug ( "Rollback occurred, releasing macs {}." , super . macs ) ; releaseMacs ( ) ; }

Target:
public void releaseMacsOnCommit ( java.util.List < java.lang.String > macs ) { registerRollbackHandler ( ( ( org.ovirt.engine.core.utils.transaction.TransactionSuccessListener ) ( ( ) -> { log.debug ( "Command succeeded, releasing macs {}." , macs ) ; org.ovirt.engine.core.bll.network.macpool.macPool.freeMacs ( macs ) ; } ) ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.UserPortalRunOnceModel ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }
Source:
public void testExtractIpv6GatewayEmptyString ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Gateway ( com.google.common.collect.ImmutableMap.of ( VdsProperties.IPV6_GLOBAL_GATEWAY , "" ) ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractIpv6GatewayEmptyString ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Gateway ( java.util.Collections.singletonMap ( VdsProperties.IPV6_GLOBAL_GATEWAY , "" ) ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setIsEveryoneSelected ( false ) ; model.setIsMyGroupsSelected ( false ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryoneOrMyGroups ( false , false ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setSearchType ( AdSearchType.USER ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryoneOrMyGroups ( false , false ) ; getView ( ) . userTypeChanged ( UserOrGroup.User , true ) ; model.setItems ( null ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, status=%s, nonOperationalReason=%s" , super . toString ( ) , getStatus ( ) , getNonOperationalReason ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, status=%s, nonOperationalReason=%s, stopSpmFailureLogged=%s" , super . toString ( ) , getStatus ( ) , getNonOperationalReason ( ) , isStopSpmFailureLogged ( ) ) ; }
Source:
public void testValidateCompletion ( ) { org.junit.Assert.assertTrue ( "TRUE" , comp.validateCompletion ( "TRUE" ) ) ; org.junit.Assert.assertTrue ( "TR" , comp.validateCompletion ( "TR" ) ) ; org.junit.Assert.assertFalse ( "JarJar" , comp.validateCompletion ( "JarJar" ) ) ; }

Target:
public void testValidateCompletion ( ) { org.junit.jupiter.api.Assertions.assertTrue ( comp.validateCompletion ( "TRUE" ) , "TRUE" ) ; org.junit.jupiter.api.Assertions.assertTrue ( comp.validateCompletion ( "TR" ) , "TR" ) ; org.junit.jupiter.api.Assertions.assertFalse ( comp.validateCompletion ( "JarJar" ) , "JarJar" ) ; }
Source:
public static void LoginAsync ( final java.lang.String userName , final java.lang.String password , final java.lang.String domain , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTServiceAsync service = GenericApiGWTServiceAsync.Util.getInstance ( ) ; org.ovirt.engine.ui.frontend.Frontend.LoginAsync ( userName , password , domain , callback , service ) ; }

Target:
public static void LoginAsync ( final java.lang.String userName , final java.lang.String password , final java.lang.String domain , final boolean isAdmin , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . loginAsync ( userName , password , domain , isAdmin , callback ) ; }
Source:
public void addOldPassword ( org.ovirt.engine.extension.aaa.jdbc.core.Schema.User.PasswordHistory passwordHistory , int passwordHistoryLimit ) { oldPasswords.add ( passwordHistory ) ; if ( ( oldPasswords.size ( ) ) > passwordHistoryLimit ) { oldPasswords.remove ( oldPasswords.last ( ) ) ; } }

Target:
public void addOldPassword ( org.ovirt.engine.extension.aaa.jdbc.core.Schema.User.PasswordHistory passwordHistory , int passwordHistoryLimit ) { oldPasswords.add ( passwordHistory ) ; if ( ( oldPasswords.size ( ) ) >= passwordHistoryLimit ) { oldPasswords.remove ( oldPasswords.first ( ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > getImagesParameters ( ) { return imagesParameters ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.ActionParametersBase > getImagesParameters ( ) { return imagesParameters ; }
Source:
protected void onLoad ( ) { expandTree ( getDataDisplayWidget ( ) . getRootTreeNode ( ) , org.ovirt.engine.ui.webadmin.widget.tree.SystemTree.ITEM_LEVEL ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { nodeStateMap.clear ( ) ; getNodeOpenMap ( getDataDisplayWidget ( ) . getRootTreeNode ( ) , nodeStateMap ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.action.PersistentHostSetupNetworksParameters > transform ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > attachments , java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > detachments ) ;

Target:
java.util.List < org.ovirt.engine.core.common.action.PersistentHostSetupNetworksParameters > transform ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > attachments , java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > detachments , java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > updates ) ;
Source:
public void removeAllCommandsInHierarchy ( final org.ovirt.engine.core.compat.Guid commandId ) { new java.util.ArrayList ( getChildCommandIds ( commandId ) ) . forEach ( this :: removeAllCommandsInHierarchy ) ; removeCommand ( commandId ) ; }

Target:
public void removeAllCommandsInHierarchy ( final org.ovirt.engine.core.compat.Guid commandId ) { for ( org.ovirt.engine.core.compat.Guid childCmdId : new java.util.ArrayList ( getChildCommandIds ( commandId ) ) ) { removeAllCommandsInHierarchy ( childCmdId ) ; } removeCommand ( commandId ) ; }
Source:
public void testIsInternalExecutionTrue ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( ) ; query.setInternalExecution ( true ) ; org.junit.Assert.assertTrue ( "Query should be marked for internal execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionTrue ( ) { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; query.setInternalExecution ( true ) ; org.junit.Assert.assertTrue ( "Query should be marked for internal execution" , query.isInternalExecution ( ) ) ; }
Source:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "" ) ; org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.assertDiskDescriptionMap ( disk ) ; }

Target:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( null ) ; assertDiskDescriptionMap ( disk ) ; }
Source:
private static void updateDisksStorageType ( org.ovirt.engine.core.common.businessentities.StorageType storageType , org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.VolumeType volumeType = ( storageType.isFileDomain ( ) ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; disk.setVolumeType ( volumeType ) ; }

Target:
private static void updateDiskVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType , org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.VolumeType volumeType = ( storageType.isFileDomain ( ) ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; disk.setVolumeType ( volumeType ) ; }
Source:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; setupNetworkValidator ( false ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
private void hidePoolSpecificFields ( ) { numOfVmsEditor.setVisible ( false ) ; newPoolEditVmsPanel.setVisible ( false ) ; editPoolEditVmsPanel.setVisible ( false ) ; editPoolIncraseNumOfVmsPanel.setVisible ( false ) ; }

Target:
protected java.util.List < com.google.gwt.user.client.ui.Widget > poolSpecificFields ( ) { return java.util.Arrays.< com.google.gwt.user.client.ui.Widget > asList ( numOfVmsEditor , newPoolEditVmsPanel , editPoolEditVmsPanel , editPoolIncraseNumOfVmsPanel , poolTab , prestartedVmsEditor , poolNameIcon , newPoolEditMaxAssignedVmsPerUserPanel , editPoolEditMaxAssignedVmsPerUserPanel ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getTemplateId ( org.ovirt.engine.api.model.VM vm ) { return vm.getTemplate ( ) . isSetId ( ) ? asGuid ( vm.getTemplate ( ) . getId ( ) ) : getTemplateByName ( vm ) . getId ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmTemplate getTemplateByName ( org.ovirt.engine.api.model.Template template ) { return lookupTemplateByName ( template.getName ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( returnValue ) ) ; if ( cluster != null ) { maintenance ( cluster.isMaintenanceReasonRequired ( ) ) ; } }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = ( ( org.ovirt.engine.core.common.businessentities.Cluster ) ( returnValue ) ) ; if ( cluster != null ) { maintenance ( cluster.isMaintenanceReasonRequired ( ) , cluster.supportsGlusterService ( ) ) ; } }
Source:
protected org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.macpool.MacPoolPerDc.class ) . poolForDataCenter ( params.getStoragePoolId ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.macpool.MacPoolPerDc.class ) . getMacPoolForDataCenter ( params.getStoragePoolId ( ) ) ; }
Source:
private boolean isNetworkChanged ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface iface ) { return ! ( org.ovirt.engine.core.bll.network.template.UpdateVmTemplateInterfaceCommand.getNetworkName ( ) . equals ( iface.getNetworkName ( ) ) ) ; }

Target:
private boolean isNetworkChanged ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) { return ! ( org.ovirt.engine.core.bll.network.template.UpdateVmTemplateInterfaceCommand.getNetworkName ( ) . equals ( iface.getNetworkName ( ) ) ) ; }
Source:
public org.ovirt.engine.api.resource.ActionResource getActionResource ( java.lang.String action , java.lang.String oid ) { return null ; }

Target:
public org.ovirt.engine.api.resource.ActionResource getActionResource ( java.lang.String action , java.lang.String oid ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , oid ) ) ; }
Source:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( networkDeviceHelper.getFreeVf ( nic , null ) ) ; }

Target:
public void areAllVfsFreeFalseHasVfPartOfBond ( ) { freeVfCommon ( 4 , 0 , 0 , 0 , 0 , 1 ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }
Source:
public void networkNameTakenByDifferentNetwork ( ) throws java.lang.Exception { networkNameAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_NAME_IN_USE ) , getSingletonNamedNetworkList ( DEFAULT_NETWORK_NAME , OTHER_GUID ) ) ; }

Target:
public void networkNameTakenCaseSensitivelyByDifferentNetwork ( ) throws java.lang.Exception { networkNameAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , org.ovirt.engine.core.bll.validator.NetworkValidatorTest.getSingletonNamedNetworkList ( org.ovirt.engine.core.bll.validator.NetworkValidatorTest.DEFAULT_NETWORK_NAME.toUpperCase ( ) , org.ovirt.engine.core.bll.validator.NetworkValidatorTest.OTHER_GUID ) ) ; }
Source:
javax.ws.rs.core.Response remove ( org.ovirt.engine.api.model.Action action ) ;

Target:
org.ovirt.engine.api.model.Disk update ( org.ovirt.engine.api.model.Disk device ) ;
Source:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( session ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( session ) ; }

Target:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSessionOnLogout ( session ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallBack ( ) { return new org.ovirt.engine.core.bll.MergeStatusCommandCallback ( ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallback ( ) { return new org.ovirt.engine.core.bll.MergeStatusCommandCallback ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isNotLocalfsWithDefaultCluster ( ) { if ( ( ( storagePool.getstorage_pool_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS ) ) && ( containsDefaultCluster ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isNotLocalfsWithDefaultCluster ( ) { if ( ( ( storagePool.getStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS ) ) && ( containsDefaultCluster ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 ) , 2 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 ) , 2 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDAO ( ) . updateDefaultDisplayForVmTag ( org.ovirt.engine.core.bll.UpdateTagsVmMapDefaultDisplayTypeCommand.getParameters ( ) . getTagsVmMap ( ) ) ; org.ovirt.engine.core.bll.UpdateTagsVmMapDefaultDisplayTypeCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . updateDefaultDisplayForVmTag ( org.ovirt.engine.core.bll.UpdateTagsVmMapDefaultDisplayTypeCommand.getParameters ( ) . getTagsVmMap ( ) ) ; org.ovirt.engine.core.bll.UpdateTagsVmMapDefaultDisplayTypeCommand.setSucceeded ( true ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final boolean isRunOnlyIfAllCanDoPass , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , isRunOnlyIfAllCanDoPass , callback , state , true , false ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final boolean isRunOnlyIfAllValidationPass , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , isRunOnlyIfAllValidationPass , callback , state , true , false ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; getModel ( ) . updateReportsAvailability ( ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; getModel ( ) . setReportsTabSelected ( true ) ; org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabReportsPresenter.reportsWebappDeployed = true ; getModel ( ) . updateReportsAvailability ( ) ; }
Source:
private void setNetworkList ( org.ovirt.engine.ui.uicommonweb.models.ListModel networkList ) { this . networkList = networkList ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel getImportedNetworks ( ) { return importedNetworks ; }
Source:
public void testSetupNetworksSyncsNetwork ( ) throws java.lang.Exception { setUpNetworkQueryExpectations ( 2 ) ; doTestSetupNetworksSyncsNetwork ( true , java.util.Collections.singletonList ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_NAME ) ) ; }

Target:
public void testSetupNetworksSyncsNetwork ( ) throws java.lang.Exception { setUpNetworkQueryExpectations ( 2 ) ; setUpEntityQueryExpectations ( 1 ) ; doTestSetupNetworksSyncsNetwork ( true , java.util.Collections.singletonList ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_NAME ) ) ; }
Source:
public void testExtractIpv6PrefixNull ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( null ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractIpv6PrefixNull ( ) { org.hamcrest.MatcherAssert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( null ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
public void setmax_vds_memory_over_commit ( int value ) { this . max_vds_memory_over_commitField = value ; }

Target:
public void setVdsStrength ( int value ) { this . mVdsStatic.setVdsStrength ( value ) ; }
Source:
private boolean isActionExternal ( org.ovirt.engine.core.common.action.VdcActionType actionType ) { return ( ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.EndExternalJob ) ) || ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.EndExternalStep ) ) ) || ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.ClearExternalJob ) ) ; }

Target:
private boolean isActionExternal ( org.ovirt.engine.core.common.action.ActionType actionType ) { return ( ( actionType == ( org.ovirt.engine.core.common.action.ActionType.EndExternalJob ) ) || ( actionType == ( org.ovirt.engine.core.common.action.ActionType.EndExternalStep ) ) ) || ( actionType == ( org.ovirt.engine.core.common.action.ActionType.ClearExternalJob ) ) ; }
Source:
public void checkIfJobHasTasks ( ) { org.junit.Assert.assertTrue ( "Job has step for VDSM task" , dao.checkIfJobHasTasks ( org.ovirt.engine.core.dao.JobDaoTest.EXISTING_JOB_ID ) ) ; }

Target:
public void checkIfJobHasTasks ( ) { org.junit.jupiter.api.Assertions.assertTrue ( dao.checkIfJobHasTasks ( org.ovirt.engine.core.dao.JobDaoTest.EXISTING_JOB_ID ) , "Job has step for VDSM task" ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback ) ( target ) ) ; org.ovirt.engine.core.compat.Event notifyEvent = callback.getNotifyEvent ( ) ; notifyEvent.raise ( this , new org.ovirt.engine.ui.uicommonweb.models.hosts.ValueEventArgs ( returnValue ) ) ; }

Target:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback ) ( target ) ) ; org.ovirt.engine.ui.uicompat.Event notifyEvent = callback.getNotifyEvent ( ) ; notifyEvent.raise ( this , new org.ovirt.engine.ui.uicommonweb.models.hosts.ValueEventArgs ( returnValue ) ) ; }