auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void mockVdsDao ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setVdsType ( VDSType.oVirtVintageNode ) ; org.mockito.Mockito.when ( vdsDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vds ) ; }

Target:
public void mockVdsDao ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setVdsType ( VDSType.oVirtVintageNode ) ; org.mockito.Mockito.when ( vdsDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vds ) ; }
Source:
protected boolean isUserAuthorizedToRunAction ( ) { if ( log.isDebugEnabled ( ) ) { log.debugFormat ( "IsUserAutorizedToRunAction: Login - no permission check" ) ; } return true ; }

Target:
protected boolean isUserAuthorizedToRunAction ( ) { if ( org.ovirt.engine.core.bll.LoginBaseCommand.log.isDebugEnabled ( ) ) { org.ovirt.engine.core.bll.LoginBaseCommand.log.debug ( "IsUserAutorizedToRunAction: login - no permission check" ) ; } return true ; }
Source:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( org.ovirt.engine.core.searchbackend.StringHelper.EqOp ( fieldName , "STATUS" ) ) { retval = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.searchbackend.LdapRefStatus.class ) ; } return retval ; }

Target:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( "STATUS" . equals ( fieldName ) ) { retval = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.common.businessentities.LdapRefStatus.class ) ; } return retval ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public void getHostById ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.VDS > aQuery , org.ovirt.engine.core.compat.Guid id ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) . withoutRefresh ( ) , aQuery ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ; } return source ; }
Source:
private java.util.Map < java.lang.Integer , org.ovirt.engine.core.common.queries.VmIconIdSizePair > getIconDefaults ( ) { return ( ( java.util.Map < java.lang.Integer , org.ovirt.engine.core.common.queries.VmIconIdSizePair > ) ( getEntity ( java.util.Map.class , VdcQueryType.GetVmIconDefaults , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , "Icon defaults" ) ) ) ; }

Target:
private java.util.Map < java.lang.Integer , org.ovirt.engine.core.common.queries.VmIconIdSizePair > getIconDefaults ( ) { return ( ( java.util.Map < java.lang.Integer , org.ovirt.engine.core.common.queries.VmIconIdSizePair > ) ( getEntity ( java.util.Map.class , QueryType.GetVmIconDefaults , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , "Icon defaults" ) ) ) ; }
Source:
public void poolHasDefaultCluster ( ) { org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.DEFAULT_VDS_GROUP_ID ) ; addDefaultClusterToPool ( ) ; storagePoolWithLocalFS ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS.toString ( ) ) ; }

Target:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; setupNetworkValidator ( true ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return null ; }

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.getId ( ) . toString ( ) ; }
Source:
public org.ovirt.engine.api.model.Users list ( ) { return mapDbUserCollection ( getBackendCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; }

Target:
public org.ovirt.engine.api.model.Users list ( ) { if ( isFiltered ( ) ) { return mapDbUserCollection ( getBackendCollection ( VdcQueryType.GetAllDbUsers , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapDbUserCollection ( getBackendCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; } }
Source:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ) ; }

Target:
private void assertValidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { logAndFailTaskOfCommandWithEmptyVdsmId ( task , "Engine was restarted before all tasks of the command could be submitted to vdsm." ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { try { for ( org.ovirt.engine.core.common.businessentities.AsyncTask task : tasks ) { handlePartiallyExecutedTaskOfCommand ( task ) ; } return null ; } finally { irsBrokerLatch.countDown ( ) ; } }
Source:
public void setMaxWidth ( org.ovirt.engine.ui.common.widget.tooltip.TooltipConfig.Width width ) { addTooltipClassName ( width.getWidthClass ( ) ) ; }

Target:
public void setMaxWidth ( org.ovirt.engine.ui.common.widget.tooltip.TooltipWidth width ) { tooltipConfig.addTooltipClassName ( width.getClassName ( ) ) ; }
Source:
public boolean serverExists ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerInfo glusterServer ) { return getDbUtils ( ) . serverExists ( glusterServer.getUuid ( ) ) ; }

Target:
public boolean serverExists ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerInfo glusterServer ) { return glusterDBUtils.serverExists ( glusterServer.getUuid ( ) ) ; }
Source:
public void networkQosNull ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkQosId ( ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.networkQosExistsOrNull ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void vnicProfileSet ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.vnicProfileIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM createEmptyVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setVdsGroupCompatibilityVersion ( Version.v3_4 ) ; vm.setCustomProperties ( StringUtils.EMPTY ) ; vm.setPredefinedProperties ( StringUtils.EMPTY ) ; vm.setUserDefinedProperties ( StringUtils.EMPTY ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM createEmptyVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setClusterCompatibilityVersion ( Version.v3_4 ) ; vm.setCustomProperties ( StringUtils.EMPTY ) ; vm.setPredefinedProperties ( StringUtils.EMPTY ) ; vm.setUserDefinedProperties ( StringUtils.EMPTY ) ; return vm ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase res = result.getReturnValue ( ) ; setTestResultValue ( res ) ; stopProgress ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { testProviderConnectivity ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult nicExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) . when ( ( ( attachment.getNicName ( ) ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult nicNameIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.HOST_NETWORK_INTERFACE_DOES_NOT_HAVE_NAME_SET ) . when ( ( ( ( attachment.getNicName ( ) ) == null ) && ( ( attachment.getNicId ( ) ) == null ) ) ) ; }
Source:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void nonInternalInactiveAllowed ( ) { testExecution ( StorageDomainStatus.InActive ) ; canDoActionSucceeds ( ) ; noIllegalStatusMessage ( ) ; }

Target:
public void activeDisallowed ( ) { testExecution ( StorageDomainStatus.Active ) ; testActionDisallowed ( ) ; }
Source:
public static boolean isVdsWithSameNameExistStatic ( java.lang.String vdsName ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . get ( vdsName ) ; return vds != null ; }

Target:
public static boolean isVdsWithSameNameExistStatic ( java.lang.String vdsName ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . getByVdsName ( vdsName ) ) != null ; }
Source:
private org.ovirt.engine.core.bll.validator.DiskValidator spyDiskValidator ( org.ovirt.engine.core.common.businessentities.Disk disk ) { org.ovirt.engine.core.bll.validator.DiskValidator diskValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.DiskValidator ( disk ) ) ; org.mockito.Mockito.doReturn ( diskValidator ) . when ( command ) . getDiskValidator ( disk ) ; return diskValidator ; }

Target:
private org.ovirt.engine.core.bll.validator.storage.DiskValidator spyDiskValidator ( org.ovirt.engine.core.common.businessentities.Disk disk ) { org.ovirt.engine.core.bll.validator.storage.DiskValidator diskValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk ) ) ; org.mockito.Mockito.doReturn ( diskValidator ) . when ( command ) . getDiskValidator ( disk ) ; return diskValidator ; }
Source:
protected void releaseMacs ( ) { macs.forEach ( macPool :: freeMac ) ; }

Target:
protected void releaseMacs ( ) { macPool.freeMacs ( macs ) ; }
Source:
public void internalNetworkProvidedByChanged ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = mockExternalNetwork ( ) ; org.mockito.Mockito.when ( network.getProvidedBy ( ) ) . thenReturn ( null ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }

Target:
public void internalNetworkProvidedByChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; network.setProvidedBy ( null ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }
Source:
protected void addCustomModelsDetailModelList ( org.ovirt.engine.core.compat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list ) { list.add ( 2 , new org.ovirt.engine.ui.uicommonweb.models.templates.UserPortalTemplateDiskListModel ( ) ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.templates.UserPortalTemplateEventListModel ( ) ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.UserPortalPermissionListModel ( ) ) ; }

Target:
protected void addCustomModelsDetailModelList ( org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list ) { list.add ( 2 , new org.ovirt.engine.ui.uicommonweb.models.templates.UserPortalTemplateDiskListModel ( ) ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.templates.UserPortalTemplateEventListModel ( ) ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.UserPortalPermissionListModel ( ) ) ; }
Source:
public void testCanDoAction ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . validateVmNotDuringSnapshot ( ) ; vm.setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.VMT_CANNOT_CREATE_TEMPLATE_FROM_DOWN_VM ) ; }

Target:
public void testValidate ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . validateVmNotDuringSnapshot ( ) ; vm.setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.VMT_CANNOT_CREATE_TEMPLATE_FROM_DOWN_VM ) ; }
Source:
private java.lang.String getTargetOrigin ( ) { return "http://" + ( com.google.gwt.user.client.Window.Location.getHost ( ) ) ; }

Target:
private java.lang.String getClientUrl ( ) { return ( ( ( ( ( ( com.google.gwt.user.client.Window.Location.getProtocol ( ) ) + "//" ) + ( com.google.gwt.user.client.Window.Location.getHost ( ) ) ) + "/ovirt-engine-novnc-main.html?host=" ) + ( config.getProxyHost ( ) ) ) + "&port=" ) + ( config.getProxyPort ( ) ) ; }
Source:
public java.util.Date getGuestLastLoginTime ( ) { return this . vmDynamic.getGuestLastLoginTime ( ) ; }

Target:
public void setEmulatedMachine ( java.lang.String value ) { this . vmDynamic.setEmulatedMachine ( value ) ; }
Source:
static java.util.ResourceBundle getResourceBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.getResourceBundleName ( ) ) ; } catch ( java.util.MissingResourceException e ) { throw new java.lang.RuntimeException ( ( ( "Could not find ResourceBundle file '" + ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.getResourceBundleName ( ) ) ) + "'." ) ) ; } }

Target:
private static java.util.ResourceBundle readMessagesFromBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; } catch ( java.util.MissingResourceException e ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log.error ( "Could not load audit log messages from the file '{}'" , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; throw e ; } }
Source:
private boolean shouldBeRemoved ( org.ovirt.engine.core.compat.Guid attachmentId ) { java.util.Set < org.ovirt.engine.core.compat.Guid > removedAttachmentIds = new java.util.HashSet ( org.ovirt.engine.core.common.businessentities.Entities.getIds ( hostSetupNetworksParametersData.removedNetworkAttachments ) ) ; return removedAttachmentIds.contains ( attachmentId ) ; }

Target:
private java.util.Set < java.lang.String > getAllSlaveNames ( ) { java.util.Set < java.lang.String > slaveNames = new java.util.HashSet < > ( ) ; for ( org.ovirt.engine.core.common.action.CreateOrUpdateBond bond : hostSetupNetworksParametersData.getBonds ( ) ) { slaveNames.addAll ( bond.getSlaves ( ) ) ; } return slaveNames ; }
Source:
public void setcpu_sys ( java.lang.Double value ) { this . mVmStatistics.setcpu_sys ( value ) ; }

Target:
public void setVmtGuid ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setVmtGuid ( value ) ; }
Source:
private void RemoveVdsDynamicFromDb ( ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsDynamicDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }

Target:
private void removeVdsDynamicFromDb ( ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsDynamicDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }
Source:
public void onUserLogin ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { setUserName ( loggedUser.getUserName ( ) ) ; setUserId ( loggedUser.getUserId ( ) . toString ( ) ) ; setLoggedIn ( true ) ; fireLoginChangeEvent ( ) ; }

Target:
public java.lang.String getFullUserName ( ) { java.lang.String userName = getUserName ( ) ; java.lang.String domain = getDomain ( ) ; if ( ( ( userName != null ) && ( ! ( userName.contains ( "@" ) ) ) ) && ( domain != null ) ) { return ( userName + "@" ) + domain ; } return userName ; }
Source:
public void writeDecimal ( java.lang.String name , java.math.BigDecimal value ) { writeElement ( name , value.toString ( ) ) ; }

Target:
public static java.lang.String renderDecimal ( java.math.BigDecimal value ) { return value.toString ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.IVdsEventListener getBackendCallback ( ) { return getEventListener ( ) ; }

Target:
public void RerunFailedCommand ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid vdsId ) { java.lang.Boolean value = _asyncRunningVms.remove ( vmId ) ; if ( value != null ) { getEventListener ( ) . rerun ( vmId ) ; } }
Source:
public void testValidateUniqueId ( ) { mockHostForUniqueId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateUniqueId ( ) { org.mockito.Mockito.when ( host.getUniqueId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ( clusterNetworkModel.isAttached ( ) ) && ( ! ( clusterNetworkModel.isExternal ( ) ) ) ; }

Target:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ( ( clusterNetworkModel.isAttached ( ) ) && ( ! ( clusterNetworkModel.isExternal ( ) ) ) ) && ( ! ( isUnsetRoleProhibited ( clusterNetworkModel ) ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDAO ( ) . update ( vm.getDynamicData ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . update ( vm.getDynamicData ( ) ) ; return null ; }
Source:
void handleRefreshButtonClick ( com.google.gwt.event.dom.client.ClickEvent event ) { org.ovirt.engine.ui.common.widget.action.SimpleActionPanel.getDataProvider ( ) . getModel ( ) . getForceRefreshCommand ( ) . Execute ( ) ; }

Target:
void handleRefreshButtonClick ( com.google.gwt.event.dom.client.ClickEvent event ) { org.ovirt.engine.ui.common.widget.action.SimpleActionPanel.getDataProvider ( ) . getModel ( ) . getForceRefreshCommand ( ) . execute ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Bond > getBackendHostBonds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Bond > backendBonds = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.Bond.class , VdcQueryType.GetHostBondsByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( backendBonds ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Bond > getBackendHostBonds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Bond > backendBonds = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.Bond.class , QueryType.GetHostBondsByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( backendBonds ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "events: usrname=" + ( getEntity ( ) . getusername ( ) ) ) ) ; super . Search ( ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "events: usrname=" + ( getEntity ( ) . getusername ( ) ) ) ) ; super . search ( ) ; } }
Source:
public void nonActiveVdsDisallowed ( ) { testNonActiveVdsExecution ( StorageDomainStatus.Maintenance ) ; canDoActionFails ( ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_NO_VDS_IN_POOL.name ( ) ) ) ; }

Target:
private void testActionDisallowed ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hostStatusValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_STATUS_NOT_VALID_FOR_UPDATE ) . when ( ( ! ( isUpdateValid ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostStatusValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_STATUS_NOT_VALID_FOR_UPDATE ) . when ( ( ! ( isUpdateValid ( ) ) ) ) ; }
Source:
private org.ovirt.engine.core.common.vdscommands.VDSReturnValue verifyCalled ( org.ovirt.engine.core.common.vdscommands.VDSCommandType vdsmCmd , org.mockito.verification.VerificationMode times ) { return org.mockito.Mockito.verify ( resourceManager , times ) . runVdsCommand ( org.mockito.Matchers.eq ( vdsmCmd ) , org.mockito.Matchers.any ( ) ) ; }

Target:
private org.ovirt.engine.core.common.vdscommands.VDSReturnValue verifyCalled ( org.ovirt.engine.core.common.vdscommands.VDSCommandType vdsmCmd , org.mockito.verification.VerificationMode times ) { return org.mockito.Mockito.verify ( resourceManager , times ) . runVdsCommand ( org.mockito.ArgumentMatchers.eq ( vdsmCmd ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . extendedVirtualMachineGeneralSubTabLabel ( ) , 1 , ginjector.getVmGeneralModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants , org.ovirt.engine.ui.userportal.uicommon.model.vm.VmGeneralModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.extendedVirtualMachineGeneralSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
public void testExistingDiscardAfterDeleteFunctionalityPreservedAllLunsHaveDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , storageDomain ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedAllLunsHaveDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.jupiter.api.Assertions.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , storageDomain ) ) ; }
Source:
public void updateExternalStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.ExternalStatus status ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setExternalStatus ( status ) ; update ( entity ) ; }

Target:
public void updateExternalStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.ExternalStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "external_status" , status ) ; getCallsHandler ( ) . executeModification ( "UpdateHostExternalStatus" , parameterSource ) ; }
Source:
public java.lang.String getMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . thisFieldMustContainCidrInFormatMsg ( ) ; }

Target:
protected java.lang.String getThisFieldMustContainCidrInFormatMsg ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . thisFieldMustContainCidrInFormatMsg ( ) ; }
Source:
private boolean findDefaultManagementNetwork ( ) { managementNetwork = defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getStoragePoolId ( ) ) ; if ( ( managementNetwork ) == null ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; return false ; } return true ; }

Target:
private boolean findDefaultManagementNetwork ( ) { managementNetwork = defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getStoragePoolId ( ) ) ; if ( ( managementNetwork ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; return false ; } return true ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; syncSearch ( ) ; }

Target:
private void setProviders ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > value ) { privateProviders = value ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveVmTemplateFromImportExport , new org.ovirt.engine.core.common.action.VmTemplateImportExportParameters ( guid , parent.storageDomainId , getDataCenterId ( parent.storageDomainId ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( ActionType.RemoveVmTemplateFromImportExport , new org.ovirt.engine.core.common.action.VmTemplateImportExportParameters ( guid , parent.storageDomainId , getDataCenterId ( parent.storageDomainId ) ) ) ; }
Source:
public boolean containsMemory ( ) { return ! ( memoryVolume.isEmpty ( ) ) ; }

Target:
public boolean containsMemory ( ) { return ( ( memoryDiskId ) != null ) || ( ( metadataDiskId ) != null ) ; }
Source:
public void exception ( ) throws java.lang.Throwable { if ( ( throwable ) != null ) { throw throwable ; } org.junit.Assert.assertEquals ( 0 , expect.size ( ) ) ; org.junit.Assert.assertEquals ( 0 , send.size ( ) ) ; }

Target:
public void exception ( ) throws java.lang.Throwable { if ( ( throwable ) != null ) { throw throwable ; } org.junit.jupiter.api.Assertions.assertEquals ( 0 , expect.size ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , send.size ( ) ) ; }
Source:
public void testBootProtocolSetForDisplayNetworkWhenIpConfigurationIsNull ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = createNetwork ( ) ; doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( true , network , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentValidator.VAR_ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL_ENTITY , network.getName ( ) ) ) ) ; }

Target:
public void testBootProtocolSetForRoleNetworkWhenIpConfigurationNullAndNotRoleNetwork ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = createNetwork ( ) ; doTestBootProtocolSetForRoleNetworkWhenNullValuedIpConfiguration ( true , network , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_ROLE_NETWORK_HAS_NO_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentValidator.VAR_ACTION_TYPE_FAILED_ROLE_NETWORK_HAS_NO_BOOT_PROTOCOL_ENTITY , network.getName ( ) ) ) ) ; }
Source:
protected void forceRefresh ( ) { getRefreshCommand ( ) . Execute ( ) ; }

Target:
protected void forceRefreshWithoutTimers ( ) { getRefreshCommand ( ) . Execute ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ! ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( vm.getClientIp ( ) ) ) ? vm.getConsoleCurentUserName ( ) : null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.compat.StringHelper.isNotNullOrEmpty ( vm.getClientIp ( ) ) ? vm.getConsoleCurentUserName ( ) : null ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc monitorCommand ( java.lang.String vmId , java.lang.String monitorCommand ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc prepareImage ( java.lang.String spID , java.lang.String sdID , java.lang.String imageID , java.lang.String volumeID , boolean allowIllegal ) ;
Source:
private void initDataForClearTest ( java.lang.String key ) { container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , key , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ) ; }

Target:
private void initDataForClearTest ( java.lang.String key ) { container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , key , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ) ; container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.SOFT_LIMIT , org.apache.commons.lang.time.DateUtils.addMinutes ( new java.util.Date ( ) , ( - 1 ) ) ) ; }
Source:
public boolean canBeSelected ( ) { return getEntity ( ) . getGraphicsInfos ( ) . get ( GraphicsType.VNC ) . isSet ( ) ; }

Target:
public boolean canBeSelected ( ) { return getEntity ( ) . getGraphicsInfos ( ) . containsKey ( GraphicsType.VNC ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getByName ( existingVdsGroup.getName ( ) ) ; assertCorrectVDSGroup ( result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.getByName ( existingCluster.getName ( ) ) ; assertCorrectCluster ( result ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getDiskImageDAO ( ) . get ( getCommand ( ) . getParameters ( ) . getDestinationImageId ( ) ) ) ) ; } return disk ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getDiskImageDAO ( ) . getSnapshotById ( getCommand ( ) . getParameters ( ) . getDestinationImageId ( ) ) ) ) ; } return disk ; }
Source:
private void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { nameEditor.setLabel ( constants.name ( ) ) ; descriptionEditor.setLabel ( constants.description ( ) ) ; }

Target:
private void localize ( ) { nameEditor.setLabel ( org.ovirt.engine.ui.common.widget.uicommon.popup.pool.IscsiBondPopupWidget.constants.name ( ) ) ; descriptionEditor.setLabel ( org.ovirt.engine.ui.common.widget.uicommon.popup.pool.IscsiBondPopupWidget.constants.description ( ) ) ; }
Source:
public void setVolumeType ( java.lang.String volumeType ) { setVolumeType ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType.valueOf ( volumeType ) ) ; }

Target:
public void setVolumeType ( java.lang.String volumeType ) { setVolumeType ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType.fromValue ( volumeType ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; StopProgress ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { cancel ( ) ; stopProgress ( ) ; }
Source:
protected java.lang.String getColorByProgress ( int progress ) { if ( progress < 70 ) { return org.ovirt.engine.ui.webadmin.widget.table.column.ProgressBarColumn.ProgressBarColors.GREEN.asCode ( ) ; } else if ( progress < 95 ) { return org.ovirt.engine.ui.webadmin.widget.table.column.ProgressBarColumn.ProgressBarColors.ORANGE.asCode ( ) ; } else { return org.ovirt.engine.ui.webadmin.widget.table.column.ProgressBarColumn.ProgressBarColors.RED.asCode ( ) ; } }

Target:
protected java.lang.String getColorByProgress ( int progress ) { if ( progress < 70 ) { return org.ovirt.engine.ui.webadmin.widget.table.column.AbstractProgressBarColumn.ProgressBarColors.GREEN.asCode ( ) ; } else if ( progress < 95 ) { return org.ovirt.engine.ui.webadmin.widget.table.column.AbstractProgressBarColumn.ProgressBarColors.ORANGE.asCode ( ) ; } else { return org.ovirt.engine.ui.webadmin.widget.table.column.AbstractProgressBarColumn.ProgressBarColors.RED.asCode ( ) ; } }
Source:
public void writeStartElement ( java.lang.String uri , java.lang.String name ) { try { writer.writeStartElement ( uri , name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }

Target:
public void writeStartElement ( java.lang.String name ) { try { writer.writeStartElement ( name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }
Source:
protected boolean isDiskSnapshotNotPluggedToOtherVmsThatAreNotDown ( org.ovirt.engine.core.compat.Guid imageId ) { return validate ( createDiskValidator ( getDiskImageByImageId ( imageId ) ) . isDiskPluggedToVmsThatAreNotDown ( true , null ) ) ; }

Target:
protected boolean isDiskSnapshotNotPluggedToOtherVmsThatAreNotDown ( org.ovirt.engine.core.compat.Guid imageId ) { return validate ( createDiskValidator ( getDiskImageByImageId ( imageId ) ) . isDiskPluggedToAnyNonDownVm ( true ) ) ; }
Source:
public java.util.HashSet < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = new java.util.HashSet < org.ovirt.engine.core.compat.Guid > ( ) ; } return groupIds ; }

Target:
public java.util.LinkedList < org.ovirt.engine.core.compat.Guid > getGroupIds ( ) { if ( ( groupIds ) == null ) { groupIds = new java.util.LinkedList < org.ovirt.engine.core.compat.Guid > ( ) ; } return groupIds ; }
Source:
protected void ExecuteIrsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getIrsProxy ( ) . setStorageDomainDescription ( org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getParameters ( ) . getStorageDomainId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getParameters ( ) . getDescription ( ) ) ; org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteIrsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getIrsProxy ( ) . setStorageDomainDescription ( org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getParameters ( ) . getStorageDomainId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.getParameters ( ) . getDescription ( ) ) ; org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void testIsNetworkInSyncWhenStaticBootProtocolAddressEqual ( ) throws java.lang.Exception { initIpConfigurationBootProtocolAddress ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.BOOT_PROTOCOL , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
private void initIpv6Configuration ( ) { org.ovirt.engine.core.common.businessentities.network.IpConfiguration ipConfiguration = this . testedNetworkAttachment.getIpConfiguration ( ) ; ipConfiguration.setIpV6Addresses ( java.util.Collections.singletonList ( ipv6Address ) ) ; }
Source:
public org.ovirt.engine.api.model.Tag addParents ( org.ovirt.engine.api.model.Tag tag ) { org.ovirt.engine.api.common.util.ReflectionHelper.assignChildModel ( tag , parentType ) . setId ( parentId ) ; return tag ; }

Target:
public org.ovirt.engine.api.model.Tag addParents ( org.ovirt.engine.api.model.Tag tag ) { org.ovirt.engine.api.utils.ReflectionHelper.assignChildModel ( tag , parentType ) . setId ( parentId ) ; return tag ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM mockVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setstatus ( VMStatus.Down ) ; vm.setvmt_guid ( vmTemplateId ) ; vm.setStaticData ( getVmStatic ( ) ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM mockVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setStatus ( VMStatus.Down ) ; vm.setVmtGuid ( vmTemplateId ) ; vm.setStaticData ( getVmStatic ( ) ) ; return vm ; }
Source:
public void calculateNetworkImplementationDetailsEmptyNetworkName ( ) { testIface.setNetworkName ( "" ) ; org.junit.Assert.assertNull ( "Network implementation details should not be filled." , initMocksForNetworkImplementationDetailsUtils ( null , null , testIface ) . calculateNetworkImplementationDetails ( testIface , null ) ) ; }

Target:
public void calculateNetworkImplementationDetailsEmptyNetworkName ( ) { testIface.setNetworkName ( "" ) ; org.junit.jupiter.api.Assertions.assertNull ( initMocksForNetworkImplementationDetailsUtils ( null , null , testIface ) . calculateNetworkImplementationDetails ( testIface , null ) , "Network implementation details should not be filled." ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface createNewInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface ( ) ; iface.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; iface.setMacAddress ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; return iface ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface createNewInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface ( ) ; iface.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; iface.setMacAddress ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; return iface ; }
Source:
public java.lang.String getVdcObjectName ( ) { org.ovirt.engine.core.common.businessentities.permissions perms = org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) ; return org.ovirt.engine.core.bll.PermissionsCommandBase.getDbFacade ( ) . getEntityNameByIdAndType ( perms.getObjectId ( ) , perms.getObjectType ( ) ) ; }

Target:
public java.lang.String getVdcObjectName ( ) { org.ovirt.engine.core.common.businessentities.Permissions perms = org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) ; return org.ovirt.engine.core.bll.PermissionsCommandBase.getDbFacade ( ) . getEntityNameByIdAndType ( perms.getObjectId ( ) , perms.getObjectType ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; }
Source:
public void cancel ( ) { resetData ( ) ; setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }

Target:
public void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVideoDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.VIDEO ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addInterface ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , boolean plugged , boolean hostDev ) { return addInterface ( vmId , deviceId , plugged , hostDev , null ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { T value = asEntity ( event.getValue ( ) ) ; if ( value != null ) { handler.onValueChange ( new com.google.gwt.event.logical.shared.ValueChangeEvent < T > ( value ) { } ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { try { T value = asEntity ( event.getValue ( ) ) ; handler.onValueChange ( new com.google.gwt.event.logical.shared.ValueChangeEvent < T > ( value ) { } ) ; } catch ( java.lang.IllegalArgumentException e ) { } }
Source:
public void serializeNetwork ( ) { org.ovirt.engine.core.common.businessentities.network.Network net = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; junit.framework.Assert.assertTrue ( ( ( serialezer.serialize ( net ) . length ( ) ) > 0 ) ) ; }

Target:
public void serializeNetwork ( ) { org.ovirt.engine.core.common.businessentities.network.Network net = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; org.junit.Assert.assertTrue ( ( ( serialezer.serialize ( net ) . length ( ) ) > 0 ) ) ; }
Source:
protected boolean doesStorageDomainhaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainHasSpaceForRequest ( getDiskImageInfo ( ) . getSizeInGigabytes ( ) ) ) ; }

Target:
private boolean shouldDiskBePlugged ( ) { return ( ( org.ovirt.engine.core.bll.AddDiskCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) && ( ! ( java.lang.Boolean.FALSE.equals ( org.ovirt.engine.core.bll.AddDiskCommand.getParameters ( ) . getPlugDiskToVm ( ) ) ) ) ; }
Source:
public java.lang.String getSysprepPath ( int osId , org.ovirt.engine.core.compat.Version version ) { return getValueByVersion ( idToUnameLookup.get ( osId ) , "sysprepPath" , version ) ; }

Target:
public java.lang.String getSysprepPath ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . expandString ( getValueByVersion ( idToUnameLookup.get ( osId ) , "sysprepPath" , version ) ) ; }
Source:
public boolean allowDuplicates ( ) { return ( operationType ) instanceof org.ovirt.engine.core.common.action.VdcActionType ; }

Target:
public boolean allowDuplicates ( ) { return isAction ( ) ; }
Source:
public void noCluster ( ) { assertValidateFailure ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID.toString ( ) ) ; }

Target:
public void noCluster ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( underTest , EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; }
Source:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }

Target:
public void testValidName ( ) { prepareVmToPassValidate ( ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; boolean c = command.validate ( ) ; org.junit.Assert.assertTrue ( "validate should have passed." , c ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > getDiskInterfaceList ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > diskInterfaces = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.DiskInterface [ ] { org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO , org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO_SCSI , org.ovirt.engine.core.common.businessentities.DiskInterface.SPAPR_VSCSI } ) ) ; return diskInterfaces ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskInterface > getDiskInterfaceList ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskInterface > diskInterfaces = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskInterface > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage.DiskInterface [ ] { org.ovirt.engine.core.common.businessentities.storage.DiskInterface.IDE , org.ovirt.engine.core.common.businessentities.storage.DiskInterface.VirtIO , org.ovirt.engine.core.common.businessentities.storage.DiskInterface.VirtIO_SCSI , org.ovirt.engine.core.common.businessentities.storage.DiskInterface.SPAPR_VSCSI } ) ) ; return diskInterfaces ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.RepoImage a , org.ovirt.engine.core.common.businessentities.RepoImage b ) { return a.getRepoImageId ( ) . compareToIgnoreCase ( b.getRepoImageId ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.storage.RepoImage a , org.ovirt.engine.core.common.businessentities.storage.RepoImage b ) { return a.getRepoImageId ( ) . compareToIgnoreCase ( b.getRepoImageId ( ) ) ; }