auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static boolean isImagesExists ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > images , org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid storageDomainId ) { return org.ovirt.engine.core.bll.ImagesHandler.isImagesExists ( images , storagePoolId , storageDomainId , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > ( ) ) ; }

Target:
public static java.lang.String getDiskAliasWithDefault ( org.ovirt.engine.core.common.businessentities.BaseDisk disk , java.lang.String aliasIfNull ) { java.lang.String diskAlias = disk.getDiskAlias ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( diskAlias ) ) { org.ovirt.engine.core.bll.ImagesHandler.log.infoFormat ( "Disk alias retrieved from the client is null or empty, the suggested default disk alias to be used is {0}" , aliasIfNull ) ; return aliasIfNull ; } return diskAlias ; }
Source:
public abstract void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) ;

Target:
public abstract void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) ;
Source:
public static org.ovirt.engine.core.common.businessentities.StorageDomainStatus forValue ( int value ) { return org.ovirt.engine.core.common.businessentities.StorageDomainStatus.values ( ) [ value ] ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageDomainStatus forValue ( int value ) { return org.ovirt.engine.core.common.businessentities.StorageDomainStatus.valueToStatus.get ( value ) ; }
Source:
protected void ExecuteNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.DETACH_NETWORK.getCommand ( op1 , op2 , allNics ) . Execute ( ) ; }

Target:
protected void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.DETACH_NETWORK.getCommand ( op1 , op2 , allNics ) . execute ( ) ; }
Source:
public void testValidateSuccess ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void testValidateSuccess ( ) { org.mockito.Mockito.doReturn ( ValidationResult.VALID ) . when ( diskImagesValidator ) . isQcowVersionSupportedForDcVersion ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc diskReplicateStart ( java.lang.String vmUUID , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct srcDisk , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct dstDisk ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookRemove ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
public org.ovirt.engine.core.common.users.VdcUser getLoggedUser ( ) { return privateLoggedUser ; }

Target:
public org.ovirt.engine.core.common.users.VdcUser getLoggedUser ( ) { privateLoggedUser.setPassword ( ( ( java.lang.String ) ( getPassword ( ) . getEntity ( ) ) ) ) ; return privateLoggedUser ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { return networkNotUsed ( getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) , VdcBllMessages.VAR__ENTITIES__HOSTS ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { return networkNotUsed ( getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) , VdcBllMessages.VAR__ENTITIES__HOSTS , VdcBllMessages.VAR__ENTITIES__HOST ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ! ( isEditConsoleEnabled ( modelProvider.getModel ( ) . getSelectedItem ( ) ) ) ) { return ; } modelProvider.getModel ( ) . getEditConsoleCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ! ( isEditConsoleEnabled ( modelProvider.getModel ( ) . getSelectedItem ( ) ) ) ) { return ; } modelProvider.getModel ( ) . getEditConsoleCommand ( ) . execute ( ) ; }
Source:
public void setPmProxyPreferences ( java.lang.String pmProxyPreferences ) { vdsStatic.setPmProxyPreferences ( pmProxyPreferences ) ; }

Target:
public void setPmProxyPreferences ( java.lang.String pmProxyPreferences ) { setFenceProxySources ( org.ovirt.engine.core.common.utils.pm.FenceProxySourceTypeHelper.parseFromString ( pmProxyPreferences ) ) ; }
Source:
public static void removeVmInitFromDB ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { org.ovirt.engine.core.dao.VmInitDAO db = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmInitDao ( ) ; db.remove ( vm.getId ( ) ) ; }

Target:
public static void removeVmInitFromDB ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { org.ovirt.engine.core.dao.VmInitDao db = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmInitDao ( ) ; db.remove ( vm.getId ( ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; builder.append ( "MultiTenantProviderProperties [tenantName=" ) . append ( getTenantName ( ) ) . append ( "]" ) ; return builder.toString ( ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return tsb.append ( "tenantName" , getTenantName ( ) ) ; }
Source:
private boolean failCanDoActionWithType ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__IMPORT ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM ) ; return false ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__IMPORT ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM ) ; }
Source:
private void mockDbDAO ( ) { mockVdsGroupDAO ( ) ; mockVMPoolDAO ( ) ; mockVMTemplateDAO ( ) ; mockVmNetworkInterfaceDao ( ) ; mockStoragePoolDAO ( ) ; }

Target:
private void mockDbDao ( ) { mockVdsGroupDao ( ) ; mockVMPoolDao ( ) ; mockVMTemplateDao ( ) ; mockVmNetworkInterfaceDao ( ) ; mockStoragePoolDao ( ) ; }
Source:
public void getBaseDiskByAlias ( ) { org.junit.Assert.assertEquals ( 0 , dao.getDisksByAlias ( "No such disk alias" ) . size ( ) ) ; org.junit.Assert.assertTrue ( ( ( dao.getDisksByAlias ( "New Disk Alias Name" ) . size ( ) ) > 1 ) ) ; }

Target:
public void getBaseDiskByAlias ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 0 , dao.getDisksByAlias ( "No such disk alias" ) . size ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ( dao.getDisksByAlias ( "New Disk Alias Name" ) . size ( ) ) > 1 ) ) ; }
Source:
public java.util.ArrayList < java.lang.String > getChangeablePropertiesList ( ) { return org.ovirt.engine.core.common.businessentities.VM._vmProperties ; }

Target:
public java.lang.String getVdsGroupCpuFlagsData ( ) { return vdsGroupCpuFlagsData ; }
Source:
public org.ovirt.engine.api.resource.SnapshotCdRomsResource getSnapshotCdRomsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendSnapshotCdRomsResource ( this ) ) ; }

Target:
public org.ovirt.engine.api.resource.SnapshotCdromsResource getCdromsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendSnapshotCdRomsResource ( this ) ) ; }
Source:
private static org.ovirt.engine.core.bll.EntityMultiAsyncTasks GetEntityMultiAsyncTasksByContainerId ( java.lang.Object containerID ) { org.ovirt.engine.core.bll.EntityMultiAsyncTasks entityInfo = null ; synchronized ( org.ovirt.engine.core.bll.EntityAsyncTask._lockObject ) { entityInfo = org.ovirt.engine.core.bll.EntityAsyncTask._multiTasksByEntities.get ( containerID ) ; } return entityInfo ; }

Target:
private org.ovirt.engine.core.bll.EntityMultiAsyncTasks GetEntityMultiAsyncTasks ( ) { org.ovirt.engine.core.bll.EntityMultiAsyncTasks entityInfo = null ; synchronized ( org.ovirt.engine.core.bll.EntityAsyncTask._lockObject ) { entityInfo = org.ovirt.engine.core.bll.EntityAsyncTask._multiTasksByCommandIds.get ( getCommandId ( ) ) ; } return entityInfo ; }
Source:
public org.ovirt.engine.api.resource.GraphicsConsolesResource getVmGraphicsConsolesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmGraphicsConsolesResource ( guid ) ) ; }

Target:
public org.ovirt.engine.api.resource.GraphicsConsolesResource getGraphicsConsolesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmGraphicsConsolesResource ( guid ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterModel object ) { driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterModel object ) { driver.edit ( object ) ; updateMacPool ( object.getMacPoolModel ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsByAdElementId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , org.ovirt.engine.api.model.User.class ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsOnBehalfByAdElementId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , org.ovirt.engine.api.model.User.class ) ) ; }
Source:
public void validPropertyUnknownDeviceType ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v3_3 , VmDeviceGeneralType.UNKNOWN , utils.convertProperties ( "speed=10;duplex=half" ) ) ; org.ovirt.engine.core.utils.customprop.PropertiesUtilsTestHelper.validateFailure ( errors , ValidationFailureReason.INVALID_DEVICE_TYPE ) ; }

Target:
public void validPropertyUnknownDeviceType ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v3_3 , VmDeviceGeneralType.UNKNOWN , utils.convertProperties ( "speed=10;duplex=half" ) ) ; org.ovirt.engine.core.common.utils.customprop.PropertiesUtilsTestHelper.validateFailure ( errors , ValidationFailureReason.INVALID_DEVICE_TYPE ) ; }
Source:
public void onUiCommonInit ( org.ovirt.engine.ui.common.uicommon.model.UiCommonInitEvent event ) { super . onUiCommonInit ( event ) ; getView ( ) . addModelListeners ( ) ; }

Target:
public void initializeHandlers ( ) { super . initializeHandlers ( ) ; getView ( ) . addModelListeners ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface ) { return ( managementAddress ) == null ? false : managementAddress.equals ( iface.getAddress ( ) ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface ) { return ( managementAddress ) == null ? false : managementAddress.equals ( iface.getAddress ( ) ) ; }
Source:
private void mockDiskImageDao ( ) { org.mockito.Mockito.when ( diskImageDao.getSnapshotById ( org.mockito.Matchers.< org.ovirt.engine.core.compat.Guid > any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommandTestAbstract.getDiskImageList ( ) . get ( 0 ) ) ; }

Target:
private void mockDiskImageDao ( ) { org.mockito.Mockito.when ( diskImageDao.getSnapshotById ( org.mockito.Matchers.< org.ovirt.engine.core.compat.Guid > any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.CommonVmPoolCommandTestAbstract.getDiskImageList ( ) . get ( 0 ) ) ; }
Source:
public void testInterfaceIsBondWhenInterfaceIsNotBonded ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createVdsNetworkInterfaceWithName ( ) ; iface.setBonded ( false ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( iface ) . interfaceIsBondOrNull ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND ) ) ; }

Target:
public void testInterfaceIsBondWhenInterfaceIsNotBonded ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createVdsNetworkInterfaceWithName ( ) ; iface.setBonded ( false ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( iface ) . interfaceIsBondOrNull ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) ) ; }
Source:
public static void RemoveAlertsByBrickIdLogType ( org.ovirt.engine.core.compat.Guid brickId , org.ovirt.engine.core.common.AuditLogType logtype ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllofTypeForBrick ( brickId , logtype.getValue ( ) ) ; }

Target:
public static void removeAlertsByBrickIdLogType ( org.ovirt.engine.core.compat.Guid brickId , org.ovirt.engine.core.common.AuditLogType logtype ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllofTypeForBrick ( brickId , logtype.getValue ( ) ) ; }
Source:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice , boolean value ) { spice.setOverrideEnabledSmartcard ( value ) ; }

Target:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice , boolean value ) { spice.getOptions ( ) . setSpiceProxyEnabled ( value ) ; }
Source:
protected org.ovirt.engine.api.model.BootProtocol map ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol , org.ovirt.engine.api.model.BootProtocol params ) { return getMapper ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol.class , org.ovirt.engine.api.model.BootProtocol.class ) . map ( networkBootProtocol , params ) ; }

Target:
protected org.ovirt.engine.api.model.BootProtocol map ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , org.ovirt.engine.api.model.BootProtocol params ) { return getMapper ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.class , org.ovirt.engine.api.model.BootProtocol.class ) . map ( ipv4BootProtocol , params ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getUserId ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( cpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getUserId ( ) ) ) ; }
Source:
protected org.ovirt.engine.api.model.Disk getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendDisksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.Disk getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendDisksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) , index ) ; }
Source:
private boolean shouldRepeatEndMethodsOnFail ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { return returnValue.getEndActionTryAgain ( ) ; }

Target:
private boolean shouldRepeatEndMethodsOnFail ( org.ovirt.engine.core.common.action.ActionReturnValue returnValue ) { return returnValue.getEndActionTryAgain ( ) ; }
Source:
private void Frontend_QueryComplete ( ) { ( queryCounter ) -- ; if ( ( queryCounter ) == 0 ) { StopProgress ( ) ; } }

Target:
private void frontend_QueryStarted ( ) { ( queryCounter ) ++ ; if ( ( getProgress ( ) ) == null ) { startProgress ( null ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.RepoImage object ) { return object.getFileType ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.RepoImage object ) { return object.getFileType ( ) . toString ( ) ; }
Source:
public boolean isIommuPlaceholder ( ) { return java.lang.Boolean.TRUE.equals ( getSpecParams ( ) . get ( org.ovirt.engine.core.common.businessentities.VmHostDevice.IOMMU_PLACEHOLDER ) ) ; }

Target:
public static boolean isIommuPlaceHolder ( java.util.Map < java.lang.String , java.lang.Object > specParams ) { return java.lang.Boolean.TRUE.equals ( specParams.get ( org.ovirt.engine.core.common.businessentities.VmHostDevice.IOMMU_PLACEHOLDER ) ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryImageParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 2 ) , isPostZero ( ) , false ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryImageParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.PostZeroHandler.fixParametersWithPostZero ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 2 ) , isPostZero ( ) , false ) ) ; }
Source:
public java.lang.Integer getMaxVmNameLengthNonWin ( ) { java.lang.Integer maxVmNameLengthNonWindows = ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLengthNonWindows ) ) ) ; if ( maxVmNameLengthNonWindows == null ) { return 64 ; } return maxVmNameLengthNonWindows ; }

Target:
public java.lang.Integer getMaxVmNameLength ( ) { java.lang.Integer maxVmNameLength = ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLength ) ) ) ; if ( maxVmNameLength == null ) { return 64 ; } return maxVmNameLength ; }
Source:
protected void executeIrsBrokerCommand ( ) { setReturnValue ( org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HsmGetIsoList , new org.ovirt.engine.core.common.vdscommands.HSMGetIsoListParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getParameters ( ) . getStoragePoolId ( ) ) ) . getReturnValue ( ) ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { setReturnValue ( resourceManager.runVdsCommand ( VDSCommandType.HsmGetIsoList , new org.ovirt.engine.core.common.vdscommands.HSMGetIsoListParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getParameters ( ) . getStoragePoolId ( ) ) ) . getReturnValue ( ) ) ; }
Source:
java.lang.String guestOSVersionWindowsServer ( java.lang.String version , java.lang.String build ) ;

Target:
java.lang.String guestOSVersionWindows ( java.lang.String version , java.lang.String build ) ;
Source:
public void onApplicationFocusChange ( org.ovirt.engine.ui.common.system.ApplicationFocusChangeEvent event ) { onWindowFocusChange ( event.isInFocus ( ) ) ; }

Target:
public void onGridTimerStateChange ( org.ovirt.engine.ui.uicommonweb.models.GridTimerStateChangeEvent event ) { onRefresh ( modelTimer.getTimerRefreshStatus ( ) ) ; }
Source:
private static void handleNotLoggedInEvent ( java.lang.String errorMessage ) { if ( ( errorMessage != null ) && ( errorMessage.equals ( "USER_IS_NOT_LOGGED_IN" ) ) ) { org.ovirt.engine.ui.frontend.Frontend.frontendNotLoggedInEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , EventArgs.Empty ) ; } }

Target:
private void handleNotLoggedInEvent ( final java.lang.String errorMessage ) { if ( ( errorMessage != null ) && ( errorMessage.equals ( "USER_IS_NOT_LOGGED_IN" ) ) ) { frontendNotLoggedInEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , EventArgs.Empty ) ; } }
Source:
org.ovirt.engine.ui.common.widget.table.OrderedMultiSelectionModel < ? > getTableSelectionModel ( ) ;

Target:
public org.ovirt.engine.ui.common.widget.table.ActionTable < ? > getTable ( ) ;
Source:
public void testGetAllActiveForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllActiveForStorageDomain ( org.ovirt.engine.core.dao.VmDAOTest.STORAGE_DOMAIN_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForUser ( FixturesTool.USER_EXISTING_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( ( ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getAction ( ) ) == ( org.ovirt.engine.core.common.action.PlugAction.PLUG ) ? org.ovirt.engine.core.dal.VdcBllMessages.VAR__ACTION__ACTIVATE : org.ovirt.engine.core.dal.VdcBllMessages.VAR__ACTION__DEACTIVATE ) ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__INTERFACE ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( ( ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getAction ( ) ) == ( org.ovirt.engine.core.common.action.PlugAction.PLUG ) ? org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__ACTIVATE : org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__DEACTIVATE ) ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__INTERFACE ) ; }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getCpuProfileDao ( ) . getAllForCluster ( getParameters ( ) . getId ( ) , getUserID ( ) , getParameters ( ) . isFiltered ( ) , ActionGroup.ASSIGN_CPU_PROFILE ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( cpuProfileDao.getAllForCluster ( getParameters ( ) . getId ( ) , getUserID ( ) , getParameters ( ) . isFiltered ( ) , ActionGroup.ASSIGN_CPU_PROFILE ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionType getAttachAction ( ) { return attachAction ; }

Target:
private org.ovirt.engine.core.common.action.TagsActionParametersBase getAttachParams ( java.lang.String id ) { return new org.ovirt.engine.core.common.action.AttachEntityToTagParameters ( asGuid ( id ) , asList ( asGuid ( parentId ) ) ) ; }
Source:
protected final void postConstruct ( ) { if ( ( getParameters ( ) ) != null ) { init ( ) ; } }

Target:
protected final void postConstruct ( ) { if ( ! ( isCompensationContext ( ) ) ) { init ( ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , getNetwork ( ) ) . networkIsSet ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , getNetwork ( ) ) . networkIsSet ( vnicProfile.getNetworkId ( ) ) ; }
Source:
protected java.util.List < ? extends org.ovirt.engine.core.common.businessentities.Disk > getVmDisks ( ) { if ( ( _vmDisks ) == null ) { _vmDisks = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateId ( ) ) ; } return _vmDisks ; }

Target:
protected java.util.List < ? extends org.ovirt.engine.core.common.businessentities.Disk > getVmDisks ( ) { if ( ( _vmDisks ) == null ) { _vmDisks = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) . getAllForVm ( vmDisksSource.getId ( ) ) ; } return _vmDisks ; }
Source:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { persistCommand ( parentCommand , false ) ; }

Target:
public void persistCommandWithoutContext ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , null , enableCallBack ) ; }
Source:
public void testSaveStaticDoesNotExist ( ) { org.ovirt.engine.core.compat.Guid newGuid = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; newVmStatistics.setId ( newGuid ) ; dao.save ( newVmStatistics ) ; org.ovirt.engine.core.common.businessentities.VmStatistics stats = dao.get ( newGuid ) ; org.junit.Assert.assertNull ( stats ) ; }

Target:
public void testSaveStaticDoesNotExist ( ) { org.ovirt.engine.core.compat.Guid newGuid = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; newVmStatistics.setId ( newGuid ) ; dao.save ( newVmStatistics ) ; org.ovirt.engine.core.common.businessentities.VmStatistics stats = dao.get ( newGuid ) ; org.junit.Assert.assertNull ( stats ) ; }
Source:
public void deleteRunningJobsOfTasklessCommands ( ) { getCallsHandler ( ) . executeModification ( "DeleteRunningJobsOfTasklessCommands" , getCustomMapSqlParameterSource ( ) ) ; }

Target:
public void deleteRunningJobsOfTasklessCommands ( ) { updateQueryGetResult ( entityManager.createNativeQuery ( "select cast(DeleteRunningJobsOfTasklessCommands as text) from DeleteRunningJobsOfTasklessCommands()" ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID , org.ovirt.engine.core.common.VdcObjectType.System , org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getActionType ( ) . getActionGroup ( ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.compat.Guid.SYSTEM , org.ovirt.engine.core.common.VdcObjectType.System , org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getActionType ( ) . getActionGroup ( ) ) , new org.ovirt.engine.core.bll.utils.PermissionSubject ( calculateMacPoolIdToUse ( ) , org.ovirt.engine.core.common.VdcObjectType.MacPool , org.ovirt.engine.core.common.businessentities.ActionGroup.CONFIGURE_MAC_POOL ) ) ; }
Source:
public void setWidth ( java.lang.String width , boolean isFixedLayout ) { table.setWidth ( "100%" , isFixedLayout ) ; tableHeader.setWidth ( "100%" , isFixedLayout ) ; }

Target:
public void enableHeaderContextMenu ( ) { org.ovirt.engine.ui.common.widget.table.ActionCellTable < T > tableWithHeader = ( isTableHeaderVisible ( ) ) ? tableHeader : table ; tableWithHeader.enableHeaderContextMenu ( ) ; }
Source:
public long getExpiration ( ) { return CachedEntity.LONG_LIVED_OBJECT ; }

Target:
public org.ovirt.engine.core.common.scheduling.OptimizationType getOptimizationType ( ) { return optimizationType ; }
Source:
java.lang.String geoRepEligibilityViolations ( @ com.google.gwt.i18n.client.Messages.Select org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason reason ) ;

Target:
java.lang.String thereAreActiveVMsRequiringRestart ( int count ) ;
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . pollTasks ( org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getParameters ( ) . getTasksIDs ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.tasks.AsyncTaskManager.getInstance ( ) . pollTasks ( org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getParameters ( ) . getTasksIDs ( ) ) ) ; }
Source:
private void mockNullVm ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseMockUtils.mockVmDao ( command , vmDAO ) ; org.mockito.Mockito.when ( vmDAO.get ( command.getParameters ( ) . getVmId ( ) ) ) . thenReturn ( null ) ; cretaeVirtIODisk ( ) ; }

Target:
private void mockNullVm ( ) { org.mockito.Mockito.doReturn ( vmDAO ) . when ( command ) . getVmDAO ( ) ; org.mockito.Mockito.when ( vmDAO.get ( command.getParameters ( ) . getVmId ( ) ) ) . thenReturn ( null ) ; cretaeVirtIODisk ( ) ; }
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.test ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsValid ( ) { org.junit.Assert.assertTrue ( filter.test ( storageDomain ) ) ; }
Source:
static void verifyModelSpecific ( org.ovirt.engine.api.model.VmPool model ) { org.junit.Assert.assertNotNull ( model.getCluster ( ) ) ; org.junit.Assert.assertNotNull ( model.getCluster ( ) . getId ( ) ) ; }

Target:
static void verifyModelSpecific ( org.ovirt.engine.api.model.VmPool model ) { org.junit.jupiter.api.Assertions.assertNotNull ( model.getCluster ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( model.getCluster ( ) . getId ( ) ) ; }
Source:
public void test ( ) { getQuery ( ) . executeQueryCommand ( ) ; org.junit.Assert.assertTrue ( "Wrong filtered domains" , org.apache.commons.collections.CollectionUtils.isEqualCollection ( getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) , java.util.Arrays.asList ( "aaa" , "internal" , "zzz" ) ) ) ; }

Target:
public void test ( ) { getQuery ( ) . executeQueryCommand ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.apache.commons.collections.CollectionUtils.isEqualCollection ( getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) , java.util.Arrays.asList ( "aaa" , "internal" , "zzz" ) ) , "Wrong filtered domains" ) ; }
Source:
public java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.DiskImage > getDiskMap ( ) { return diskTemplateMap ; }

Target:
public java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.DiskImage > getDiskTemplateMap ( ) { return diskTemplateMap ; }
Source:
public void writeDate ( java.lang.String name , java.util.Date value ) { writeElement ( name , org.ovirt.api.metamodel.runtime.xml.XmlWriter.DATE_FORMAT.get ( ) . format ( value ) ) ; }

Target:
public static java.lang.String renderDate ( java.util.Date value ) { return org.ovirt.api.metamodel.runtime.xml.XmlWriter.DATE_FORMAT.get ( ) . format ( value ) ; }
Source:
private static native com.google.gwt.core.client.JsArray < ? > toGenericArray ( com.google.gwt.core.client.JavaScriptObject array ) ;

Target:
private static native com.google.gwt.core.client.JsArray < ? > toGenericArray ( com.google.gwt.core.client.JavaScriptObject arrayObj ) ;
Source:
public org.ovirt.engine.core.compat.Version getvds_group_compatibility_version ( ) { return this . vds_group_compatibility_versionField ; }

Target:
public void setNiceLevel ( int value ) { this . vmStatic.setNiceLevel ( value ) ; }
Source:
private org.ovirt.engine.core.bll.FenceExecutor createFenceExecutor ( org.ovirt.engine.core.common.businessentities.FenceActionType actionType ) { return new org.ovirt.engine.core.bll.FenceExecutor ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getVds ( ) , actionType , org.ovirt.engine.core.bll.FenceVdsBaseCommand.getParameters ( ) . getFencingPolicy ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.FenceProxyLocator createProxyHostLocator ( ) { return new org.ovirt.engine.core.bll.FenceProxyLocator ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getVds ( ) , org.ovirt.engine.core.bll.FenceVdsBaseCommand.getParameters ( ) . getFencingPolicy ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Disk getDriveToImageMap ( java.lang.String drive ) { org.ovirt.engine.core.common.businessentities.Disk image = null ; if ( mDiskMap.containsKey ( drive ) ) { image = mDiskMap.get ( drive ) ; } return image ; }

Target:
public java.lang.String getCpuPinning ( ) { return mVmStatic.getCpuPinning ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy , null ) , currentPolicy ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.DISABLED ) ; }
Source:
public void shouldHandleNoNumaNodes ( ) { vm.setvNumaNodeList ( null ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldHandleNoNumaNodes ( ) { vm.setvNumaNodeList ( null ) ; org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VM 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.VM result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void testExtractIpv4SubnetEmptyString ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractSubnet ( com.google.common.collect.ImmutableMap.of ( VdsProperties.NETMASK , "" ) ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractIpv4SubnetEmptyString ( ) { org.hamcrest.MatcherAssert.assertThat ( vdsBrokerObjectsBuilder.extractSubnet ( java.util.Collections.singletonMap ( VdsProperties.NETMASK , "" ) ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetRoleById , org.ovirt.engine.core.common.queries.MultilevelAdministrationByRoleIdParameters.class , new java.lang.String [ ] { "RoleId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetRoleById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setVdsGroupId ( clusterId ) ; vds.setHostName ( serverName ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( serverId ) ; vds.setVdsGroupId ( clusterId ) ; vds.setHostName ( serverName ) ; return vds ; }
Source:
private static void addEmptyDataCenterToList ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > dataCenters ) { org.ovirt.engine.core.common.businessentities.StoragePool tempVar = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; tempVar.setId ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel.UnassignedDataCenterId ) ; tempVar.setname ( "(none)" ) ; dataCenters.add ( tempVar ) ; }

Target:
private static void addEmptyDataCenterToList ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > dataCenters ) { org.ovirt.engine.core.common.businessentities.StoragePool tempVar = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; tempVar.setId ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel.UnassignedDataCenterId ) ; tempVar.setName ( "(none)" ) ; dataCenters.add ( tempVar ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.vm_pools mockVmPools ( ) { org.ovirt.engine.core.common.businessentities.vm_pools pool = new org.ovirt.engine.core.common.businessentities.vm_pools ( ) ; pool.setvm_pool_name ( "simplePoolName" ) ; pool.setvds_group_id ( vdsGroupId ) ; pool.setvm_pool_id ( vmPoolId ) ; return pool ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmPool mockVmPools ( ) { org.ovirt.engine.core.common.businessentities.VmPool pool = new org.ovirt.engine.core.common.businessentities.VmPool ( ) ; pool.setvm_pool_name ( "simplePoolName" ) ; pool.setvds_group_id ( vdsGroupId ) ; pool.setvm_pool_id ( vmPoolId ) ; return pool ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > createAddNetworkParameters ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsForAdd ) { org.ovirt.engine.core.bll.network.AddNetworkParametersBuilder builder = new org.ovirt.engine.core.bll.network.AddNetworkParametersBuilder ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.SyncNetworkParametersBuilder.getNetwork ( ) ) ; return builder.buildParameters ( nicsForAdd ) ; }

Target:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > createAddNetworkParameters ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsForAdd ) { org.ovirt.engine.core.bll.network.AddNetworkParametersBuilder builder = new org.ovirt.engine.core.bll.network.AddNetworkParametersBuilder ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.SyncNetworkParametersBuilder.getNetwork ( ) , org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.SyncNetworkParametersBuilder.getContext ( ) ) ; return builder.buildParameters ( nicsForAdd ) ; }
Source:
public void rollbackQuota ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > list = new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( ) ; list.add ( getQuotaId ( ) ) ; org.ovirt.engine.core.bll.RunVmCommand.getQuotaManager ( ) . rollbackQuota ( org.ovirt.engine.core.bll.RunVmCommand.getStoragePool ( ) , list ) ; }

Target:
private boolean areDisksLocked ( org.ovirt.engine.core.common.action.VdcReturnValueBase vdcReturnValue ) { return vdcReturnValue.getCanDoActionMessages ( ) . contains ( VdcBllMessages.ACTION_TYPE_FAILED_DISKS_LOCKED.name ( ) ) ; }
Source:
public void parseLunFromXmlRpcReturnsIscsiByDefault ( ) throws java.lang.Exception { org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommandTest.testParseLunFromXmlRpcForDevtypeField ( StorageType.ISCSI , "" ) ; }

Target:
public void parseLunReturnsIscsiByDefault ( ) throws java.lang.Exception { org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommandTest.testParseLunForDevtypeField ( StorageType.ISCSI , "" ) ; }
Source:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { if ( ( macPool ) == null ) { macPool = poolPerDc.poolForDataCenter ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getStoragePoolId ( ) ) ; } return macPool ; }

Target:
protected org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { if ( ( macPool ) == null ) { macPool = poolPerDc.poolForDataCenter ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getStoragePoolId ( ) ) ; } return macPool ; }
Source:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case OPENSTACK_VOLUME : return "http://localhost:8776" ; case VMWARE : return "" ; case FOREMAN : default : return "http://localhost" ; } }

Target:
private java.lang.String getDefaultUrl ( org.ovirt.engine.core.common.businessentities.ProviderType type ) { if ( type == null ) { return "" ; } switch ( type ) { case EXTERNAL_NETWORK : case OPENSTACK_NETWORK : return "http://localhost:9696" ; case OPENSTACK_IMAGE : return "http://localhost:9292" ; case OPENSTACK_VOLUME : return "http://localhost:8776" ; case VMWARE : return "" ; case FOREMAN : default : return "http://localhost" ; } }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeParameterListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeParameterListModel ) ( result.getState ( ) ) ) ; localModel.postOnSetParameter ( result.getReturnValue ( ) ) ; }
Source:
public void handlePlaceTransition ( ) ;

Target:
public void handlePlaceTransition ( boolean clickedLink ) ;
Source:
private void mockCpuFlagsManagerHandler ( ) { org.ovirt.engine.core.bll.GetVmChangedFieldsForNextRunQueryTest.injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; }

Target:
private void mockCpuFlagsManagerHandler ( ) { injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; }
Source:
public void updateAll ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsDynamic > entities ) { for ( org.ovirt.engine.core.common.businessentities.VdsDynamic entity : entities ) { update ( entity ) ; } }

Target:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getStatusSqlParameterSource ( id , status ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicStatus" , parameterSource ) ; }
Source:
public org.ovirt.engine.core.bll.provider.ProviderValidator getProviderValidator ( ) { return new org.ovirt.engine.core.bll.provider.NetworkProviderValidator ( provider ) ; }

Target:
public org.ovirt.engine.core.bll.provider.ProviderValidator getProviderValidator ( ) { return new org.ovirt.engine.core.bll.provider.NetworkProviderValidator ( getProvider ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult nameAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) . when ( ( ( getProviderDao ( ) . getByName ( provider.getName ( ) ) ) != null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult nameAvailable ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) . when ( ( ( getProviderDao ( ) . getByName ( provider.getName ( ) ) ) != null ) ) ; }
Source:
public void testTemplates ( ) { testValidSql ( "Templates: " , "SELECT * FROM ((SELECT vm_templates_view.* FROM vm_templates_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testTemplate ( ) { testValidSql ( "Template: " , "SELECT * FROM ((SELECT distinct vm_templates_view.* FROM vm_templates_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Template: hosts.name = fake1" , "SELECT * FROM ((SELECT distinct vm_templates_view.* FROM vm_templates_view LEFT OUTER JOIN vms_with_tags ON vm_templates_view.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN vds_with_tags ON vms_with_tags.run_on_vds=vds_with_tags.vds_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Templates: storage.name = 111" , "SELECT * FROM (SELECT * FROM vm_templates_view WHERE ( vmt_guid IN (SELECT distinct vm_templates_storage_domain.vmt_guid FROM vm_templates_storage_domain LEFT OUTER JOIN vms_with_tags ON vm_templates_storage_domain.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN storage_domains_with_hosts_view ON vm_templates_storage_domain.storage_id=storage_domains_with_hosts_view.id WHERE storage_domains_with_hosts_view.storage_name LIKE 111 )) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void setUp ( ) { org.mockito.Mockito.when ( mockVnicProfileViewDao.getAllForCluster ( org.ovirt.engine.core.bll.network.vm.GetVnicProfilesByClusterIdQueryTest.clusterId , org.ovirt.engine.core.bll.network.vm.GetVnicProfilesByClusterIdQueryTest.userId , true ) ) . thenReturn ( vnicProfileViews ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.when ( mockVnicProfileViewDao.getAllForCluster ( org.ovirt.engine.core.bll.network.vm.GetVnicProfilesByClusterIdQueryTest.clusterId , getUser ( ) . getId ( ) , true ) ) . thenReturn ( vnicProfileViews ) ; }
Source:
private static java.lang.Integer getIntegerOrNull ( java.sql.ResultSet rs , java.lang.String columnName ) throws java.sql.SQLException { java.lang.String string = rs.getString ( columnName ) ; return string == null ? null : java.lang.Integer.parseInt ( string ) ; }

Target:
private static java.lang.Integer getIntegerOrNull ( java.sql.ResultSet rs , java.lang.String columnName ) throws java.sql.SQLException { int i = rs.getInt ( columnName ) ; return rs.wasNull ( ) ? null : i ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( customProperties , id , name , networkId , networkQosId , portMirroring , passthrough , description , networkFilterId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( customProperties , id , name , networkId , networkQosId , portMirroring , passthrough , migratable , description , networkFilterId ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster x ) { return x.getnetwork_id ( ) . equals ( getParameters ( ) . getNetwork ( ) . getId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster x ) { return x.getNetworkId ( ) . equals ( getParameters ( ) . getNetwork ( ) . getId ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { addStorageDomainsColumn ( object ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.DiskImage disk , java.lang.String value ) { object.getDiskImportData ( disk.getId ( ) ) . setSelectedQuotaString ( value ) ; }