auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void attachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.AttachStorageDomainToPool , new org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase ( storageId , dataCenterId ) , null , this ) ; }

Target:
private void attachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.AttachStorageDomainToPool , new org.ovirt.engine.core.common.action.AttachStorageDomainToPoolParameters ( storageId , dataCenterId ) , null , this ) ; }
Source:
protected void cretaeDiskWrongPlug ( boolean plugged ) { cretaeVirtIODisk ( ) ; mockVmDevice ( plugged ) ; }

Target:
protected void createDiskWrongPlug ( boolean plugged ) { createVirtIODisk ( ) ; mockVmDevice ( plugged ) ; }
Source:
public void setCanDoActionMessages ( java.util.List < java.lang.String > canDoActionMessages ) { this . canDoActionMessages = canDoActionMessages ; }

Target:
public void setValidationMessages ( java.util.List < java.lang.String > validationMessages ) { this . validationMessages = validationMessages ; }
Source:
public static void Initialize ( org.ovirt.engine.ui.uicommonweb.ITypeResolver implementation ) { org.ovirt.engine.ui.uicommonweb.TypeResolver.setInstance ( new org.ovirt.engine.ui.uicommonweb.TypeResolver ( implementation ) ) ; }

Target:
public static void initialize ( org.ovirt.engine.ui.uicommonweb.ITypeResolver implementation ) { org.ovirt.engine.ui.uicommonweb.TypeResolver.setInstance ( new org.ovirt.engine.ui.uicommonweb.TypeResolver ( implementation ) ) ; }
Source:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getVmPoolId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getVmPoolId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
private void checkStoragePoolNameLengthSucceeds ( ) { org.junit.Assert.assertFalse ( cmd.checkStoragePoolNameLengthValid ( ) ) ; }

Target:
private void checkStoragePoolNameLengthSucceeds ( ) { org.junit.jupiter.api.Assertions.assertFalse ( cmd.checkStoragePoolNameLengthValid ( ) ) ; }
Source:
private java.util.Collection < java.lang.String > getFreeLabels ( ) { java.util.SortedSet < java.lang.String > freeLabels = new java.util.TreeSet < > ( dcLabels ) ; freeLabels.removeAll ( labelToIface.keySet ( ) ) ; return freeLabels ; }

Target:
private void initLabelModels ( ) { networkLabelMap.clear ( ) ; for ( java.lang.String label : dcLabels ) { networkLabelMap.put ( label , new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkLabelModel ( label , this ) ) ; } }
Source:
public abstract org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > getBatchMapper ( ) ;

Target:
public org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > getBatchMapper ( ) { return new org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > ( ) { @ java.lang.Override public org.springframework.jdbc.core.namedparam.MapSqlParameterSource map ( T entity ) { return createFullParametersMapper ( entity ) ; } } ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.action.UiVdcAction createAction ( ) { return new org.ovirt.engine.ui.uicommonweb.action.UiVdcAction ( ACTION_TYPE , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) , model ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.action.UiVdcAction createAction ( ) { return new org.ovirt.engine.ui.uicommonweb.action.UiVdcAction ( ACTION_TYPE , new org.ovirt.engine.core.common.action.ActionParametersBase ( ) , model ) ; }
Source:
private void RemoveTemplateFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateCommand.RemoveNetwork ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }

Target:
private void removeTemplateFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmTemplateCommand.RemoveNetwork ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.HostDevice getFreeVf ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) ;

Target:
public org.ovirt.engine.core.common.businessentities.HostDevice getFreeVf ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic , java.util.List < java.lang.String > excludeVfs ) ;
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > initParametersForPassthroughVnics ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > result = getVnicToVfMap ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ; vfScheduler.cleanVmData ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ; return result ; }

Target:
protected void initParametersForPassthroughVnics ( ) { org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . setPassthroughVnicToVfMap ( getVnicToVfMap ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) ) ) ; vfScheduler.cleanVmData ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ; }
Source:
protected void onClick ( T value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommand ( value ) ; if ( command != null ) { command.execute ( ) ; } }

Target:
protected void onClick ( T value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommandOnClick ( value ) ; if ( command != null ) { command.execute ( ) ; } }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig hostNicVfsConfig ) { return getCustomMapSqlParameterSource ( ) . addValue ( "id" , hostNicVfsConfig.getId ( ) ) . addValue ( "nic_id" , hostNicVfsConfig.getNicId ( ) ) . addValue ( "all_networks_allowed" , hostNicVfsConfig.isAllNetworksAllowed ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > getAllVfsConfigByHostId ( org.ovirt.engine.core.compat.Guid hostId ) { return getCallsHandler ( ) . executeReadList ( "GetAllVfsConfigByHostId" , createEntityRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "host_id" , hostId ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { if ( ( object.getguest_cur_user_name ( ) ) == null ) { return "" ; } return java.lang.String.valueOf ( object.getguest_cur_user_name ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { if ( ( object.getGuestCurUserName ( ) ) == null ) { return "" ; } return java.lang.String.valueOf ( object.getGuestCurUserName ( ) ) ; }
Source:
public void testIsDomainExistAndActiveDomainUp ( ) { domain.setStatus ( StorageDomainStatus.Active ) ; org.junit.Assert.assertTrue ( "domain should be up" , validator.isDomainExistAndActive ( ) . isValid ( ) ) ; }

Target:
public void testIsDomainExistAndActiveDomainUp ( ) { domain.setStatus ( StorageDomainStatus.Active ) ; org.junit.Assert.assertThat ( "domain should be up" , validator.isDomainExistAndActive ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateProperties ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateProperties ( ) ; } }
Source:
public void setTimeout ( java.lang.Short timeout ) { if ( ( this . timeout ) != timeout ) { this . timeout = timeout ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Timeout" ) ) ; } }

Target:
public void setTimeout ( java.lang.Short timeout ) { if ( ! ( isShortsEqual ( this . timeout , timeout ) ) ) { this . timeout = timeout ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Timeout" ) ) ; } }
Source:
private boolean _doConnect ( java.lang.String server , org.ovirt.engine.core.utils.hostinstall.Credentials creds ) { return _doConnect ( server , creds , ( ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.SSHInactivityTimoutSeconds ) ) * 1000 ) ) ; }

Target:
private boolean _doConnect ( java.lang.String server , java.lang.String user , java.lang.String userPassword , java.lang.String keyStore , java.lang.String keyStorePassword ) { return _doConnect ( server , user , userPassword , keyStore , keyStorePassword , ( ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.SSHInactivityTimoutSeconds ) ) * 1000 ) ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedNetworksResource getAssignedNetworksSubResource ( ) ;

Target:
public org.ovirt.engine.api.resource.AssignedNetworksResource getAssignedNetworksResource ( ) ;
Source:
public java.util.concurrent.Future < java.lang.Void > close ( ) { return disconnect ( ) ; }

Target:
public abstract void clearBuff ( ) ;
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { revealStorageView ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( true ) ; revealDiskPanel ( disk ) ; }
Source:
public java.lang.String getLocalItem ( java.lang.String key ) { if ( ( org.ovirt.engine.ui.common.system.ClientStorageImpl.localStorage ) != null ) { return org.ovirt.engine.ui.common.system.ClientStorageImpl.localStorage.getItem ( key ) ; } else { return com.google.gwt.user.client.Cookies.getCookie ( key ) ; } }

Target:
java.lang.String getLocalItemImpl ( java.lang.String key ) { if ( ( org.ovirt.engine.ui.common.system.ClientStorageImpl.localStorage ) != null ) { return org.ovirt.engine.ui.common.system.ClientStorageImpl.localStorage.getItem ( key ) ; } else { return com.google.gwt.user.client.Cookies.getCookie ( key ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VDSType getvds_type ( ) { return this . mVdsStatic.getvds_type ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSType getVdsType ( ) { return this . mVdsStatic.getVdsType ( ) ; }
Source:
public java.lang.String getvm_ip ( ) { return this . mVmDynamic.getvm_ip ( ) ; }

Target:
public java.lang.String getVmIp ( ) { return this . vmDynamic.getvm_ip ( ) ; }
Source:
public void setType ( org.ovirt.engine.ui.uicommonweb.models.tags.TagModelType value ) { if ( ( type ) != value ) { type = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Type" ) ) ; } }

Target:
public void setType ( org.ovirt.engine.ui.uicommonweb.models.tags.TagModelType value ) { if ( ( type ) != value ) { type = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Type" ) ) ; } }
Source:
protected boolean validateVmArchitecture ( ) { return ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_VM_WITH_NOT_SUPPORTED_ARCHITECTURE ) : true ; }

Target:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failValidation ( EngineMessage.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsDao ( ) ; existingVds = dao.get ( org.ovirt.engine.core.dao.VdsDaoTest.EXISTING_VDS_ID ) ; existingVds2 = dao.get ( org.ovirt.engine.core.dao.VdsDaoTest.EXISTING_VDS_ID_2 ) ; newVmId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsDao ( ) ; existingVds = dao.get ( org.ovirt.engine.core.dao.VdsDaoTest.EXISTING_VDS_ID ) ; existingVds2 = dao.get ( FixturesTool.VDS_RHEL6_NFS_SPM ) ; newVmId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
public java.lang.String getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getOsName ( value.getOsId ( ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel object ) { java.lang.String osId = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getOsName ( object.getOsId ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( osId ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator createDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator createDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk , vmDeviceUtils ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc glusterVolumeCreate ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicaCount , int stripeCount , java.lang.String [ ] transportList , boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc glusterVolumeCreate ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicaCount , int stripeCount , java.lang.String [ ] transportList , boolean force , boolean arbiter ) ;
Source:
protected org.ovirt.engine.core.dao.StoragePoolIsoMapDAO getStoragePoolIsoMapDAO ( ) { return getDbFacade ( ) . getStoragePoolIsoMapDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.StoragePoolIsoMapDAO getStoragePoolIsoMapDAO ( ) { return org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getDbFacade ( ) . getStoragePoolIsoMapDao ( ) ; }
Source:
javax.ws.rs.core.Response remove ( org.ovirt.engine.api.model.GlusterBricks bricks ) ;

Target:
javax.ws.rs.core.Response remove ( org.ovirt.engine.api.model.Action action ) ;
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturnForXmlRpc setVolumeLegality ( java.lang.String spID , java.lang.String sdID , java.lang.String imageID , java.lang.String volumeID , java.lang.String legality ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturnForXmlRpc verifyUntrustedVolume ( java.lang.String spId , java.lang.String sdId , java.lang.String imgGroupId , java.lang.String imgId ) ;
Source:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , org.ovirt.engine.core.common.businessentities.VMStatus status , boolean hotsetEnabled ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.IsUpdateValid ( source , destination , status , hotsetEnabled ) ; }

Target:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , org.ovirt.engine.core.common.businessentities.VMStatus status , boolean hotsetEnabled ) { return org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.IsUpdateValid ( source , destination , status , hotsetEnabled ) ; }
Source:
protected void update ( ) { updateInternal ( ) ; setIsValid ( true ) ; }

Target:
protected void update ( ) { lastDiscoveredTargets.clear ( ) ; updateInternal ( ) ; setIsValid ( true ) ; }
Source:
protected void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltipText ) { this . tooltipText = tooltipText ; }

Target:
protected void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltipText ) { this . tooltipText = tooltipText ; setHeaderTooltipStyle ( tooltipText ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImageDynamic > o1 , org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImageDynamic > o2 ) { return o1.getFirst ( ) . compareTo ( o2.getFirst ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImageDynamic > o1 , org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImageDynamic > o2 ) { return o1.getSecond ( ) . getId ( ) . compareTo ( o2.getSecond ( ) . getId ( ) ) ; }
Source:
public void setStoragesNames ( java.util.ArrayList < java.lang.String > value ) { storagesNames = value ; }

Target:
public int getWriteRate ( ) { return writeRateFromDiskImageDynamic ; }
Source:
public void testFindProblematicMacsDuplicateMacAddressesAllowed ( ) { org.mockito.Mockito.when ( mockReadMacPool.isDuplicateMacAddressesAllowed ( ) ) . thenReturn ( true ) ; final java.util.Collection < java.lang.String > actual = underTest.findProblematicMacs ( mockVm ) ; org.junit.Assert.assertThat ( actual , org.hamcrest.Matchers.empty ( ) ) ; }

Target:
public void testFindProblematicMacsDuplicateMacAddressesAllowed ( ) { org.mockito.Mockito.when ( mockReadMacPool.isDuplicateMacAddressesAllowed ( ) ) . thenReturn ( true ) ; final java.util.Collection < java.lang.String > actual = underTest.findProblematicMacs ( mockVm ) ; org.hamcrest.MatcherAssert.assertThat ( actual , org.hamcrest.Matchers.empty ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList ( ) ; }
Source:
protected abstract java.util.List < org.ovirt.engine.core.common.businessentities.RepoFileMetaData > getUserRequestForStorageDomainRepoFileList ( ) ;

Target:
protected abstract org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) ;
Source:
public void setSelectedItem ( java.lang.Object value ) { super . setSelectedItem ( value ) ; }

Target:
private void setDetailList ( final org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RolePermissionListModel rolePermissionListModel ) { java.util.List < org.ovirt.engine.ui.uicommonweb.models.HasEntity < org.ovirt.engine.core.common.businessentities.Role > > list = new java.util.ArrayList < > ( ) ; list.add ( rolePermissionListModel ) ; setDetailModels ( list ) ; }
Source:
public void checkValidMask ( ) { runSetup ( TEST_MASK , true , true , "" ) ; org.junit.Assert.assertTrue ( underTest.isValid ( TEST_MASK , contextMock ) ) ; org.mockito.Mockito.verifyZeroInteractions ( contextMock ) ; }

Target:
public void checkValidMask ( ) { runSetup ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , true , true , "" ) ; org.junit.Assert.assertTrue ( underTest.isValid ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , contextMock ) ) ; org.mockito.Mockito.verifyZeroInteractions ( contextMock ) ; }
Source:
public boolean isVmTemlateWithSameNameExist ( java.lang.String name , org.ovirt.engine.core.compat.Guid datacenterId ) { return ( vmTemplateDao.getByName ( name , datacenterId , null , false ) ) != null ; }

Target:
public boolean isVmTemplateWithSameNameExist ( java.lang.String name , org.ovirt.engine.core.compat.Guid datacenterId ) { return ( vmTemplateDao.getByName ( name , datacenterId , null , false ) ) != null ; }
Source:
protected java.lang.String getStorageArgs ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( org.ovirt.engine.core.bll.storage.domain.AddStorageDomainCommon.getStorageDomain ( ) . getStorage ( ) ) . getconnection ( ) ; }

Target:
protected java.lang.String getStorageArgs ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( org.ovirt.engine.core.bll.storage.domain.AddStorageDomainCommon.getStorageDomain ( ) . getStorage ( ) ) . getConnection ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ADD ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessageVariable ( "server" , org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand.getParameters ( ) . getvds ( ) . getHostName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__ADD ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__HOST ) ; addCanDoActionMessageVariable ( "server" , org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand.getParameters ( ) . getvds ( ) . getHostName ( ) ) ; }
Source:
public boolean isSpiceProxyDefined ( ) { java.lang.String spiceProxy = ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigValuePreConverted ( ConfigurationValues.SpiceProxyDefault ) ) ) ; return ( spiceProxy != null ) && ( ! ( "" . equals ( spiceProxy ) ) ) ; }

Target:
public boolean isSpiceProxyDefined ( ) { java.lang.String spiceProxy = ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.SpiceProxyDefault ) ) ) ; return ( spiceProxy != null ) && ( ! ( "" . equals ( spiceProxy ) ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml strongTextWithColor ( java.lang.String text , java.lang.String color ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml coloredText ( java.lang.String text , com.google.gwt.safecss.shared.SafeStyles color ) ;
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskModel ) ( result.getState ( ) ) ) ; diskModel.StopProgress ( ) ; diskModel.cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskModel ) ( result.getState ( ) ) ) ; diskModel.StopProgress ( ) ; diskModel.cancel ( ) ; }
Source:
public org.ovirt.engine.ui.uicompat.UIMessages getMessages ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.messages ; }

Target:
public org.ovirt.engine.ui.uicompat.Enums getEnums ( ) { if ( ( org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.enums ) == null ) { org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.enums = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.uicompat.Enums.class ) ; } return org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.enums ; }
Source:
protected boolean canDoAction ( ) { if ( ! ( entityExists ( ) ) ) { return failCanDoAction ( ( org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getParameters ( ) . isVm ( ) ? org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND : org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ) ; } return true ; }

Target:
protected boolean validate ( ) { if ( ! ( entityExists ( ) ) ) { return failValidation ( ( org.ovirt.engine.core.bll.AbstractVmWatchdogCommand.getParameters ( ) . isVm ( ) ? org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND : org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ) ; } return true ; }
Source:
protected boolean canAddDomain ( ) { return true ; }

Target:
protected boolean canAddDomain ( ) { if ( ( org.ovirt.engine.core.bll.storage.AddExistingBlockStorageDomainCommand.getStorageDomainStaticDAO ( ) . get ( org.ovirt.engine.core.bll.storage.AddExistingBlockStorageDomainCommand.getStorageDomain ( ) . getId ( ) ) ) != null ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; } return true ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getMemSizeMb ( ) ) ) + " MB" ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getOrigin ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.StoragePool > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterPermissionPresenter.constants.dataCenterPermissionSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterPermissionPresenter.constants.dataCenterPermissionSubTabLabel ( ) , 5 ) ; }
Source:
public void canDoActionInvalidFileToBlock ( ) { canDoActionInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.NFS , StorageType.ISCSI , false ) ; }

Target:
public void validateInvalidFileToBlock ( ) { validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.NFS , StorageType.ISCSI , false ) ; }
Source:
public void trace ( java.lang.Object msg ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( msg ) ) ; } }

Target:
public void trace ( java.lang.Object msg , java.lang.Throwable t ) { log.trace ( convertToString ( msg ) , t ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.SPMAsyncTask createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskFactory.construct ( this , taskType , taskParameters , false ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.SPMAsyncTask createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return coCoAsyncTaskHelper.createTask ( taskType , taskParameters ) ; }
Source:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }
Source:
public void testGetSystemStatisticsValueWithoutSpecifiedStatus ( ) { int numOfUsers = dao.getSystemStatisticsValue ( "User" , "" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.SystemStatisticsDaoImplTest.NUM_OF_USERS_IN_FIXTURES , numOfUsers ) ; }

Target:
public void testGetSystemStatisticsValueWithoutSpecifiedStatus ( ) { int numOfUsers = dao.getSystemStatisticsValue ( "User" , "" ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.SystemStatisticsDaoImplTest.NUM_OF_USERS_IN_FIXTURES , numOfUsers ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.VmsService vmsService = connection.systemService ( ) . vmsService ( ) ; org.ovirt.engine.sdk4.types.Vm vm = vmsService.list ( ) . search ( "name=myvm" ) . send ( ) . vms ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.types.Cluster cluster = connection.followLink ( vm.cluster ( ) ) ; org.ovirt.engine.sdk4.types.Template template = connection.followLink ( vm.template ( ) ) ; java.lang.System.out.printf ( "cluster: %s" , cluster.name ( ) ) ; java.lang.System.out.printf ( "template: %s" , template.name ( ) ) ; connection.close ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.VmsService vmsService = connection.systemService ( ) . vmsService ( ) ; org.ovirt.engine.sdk4.types.Vm vm = vmsService.list ( ) . search ( "name=myvm" ) . send ( ) . vms ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.types.Cluster cluster = connection.followLink ( vm.cluster ( ) ) ; org.ovirt.engine.sdk4.types.Template template = connection.followLink ( vm.template ( ) ) ; java.lang.System.out.printf ( "cluster: %s\n" , cluster.name ( ) ) ; java.lang.System.out.printf ( "template: %s\n" , template.name ( ) ) ; connection.close ( ) ; }
Source:
public java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getUsageMemPercent ( ) ; }

Target:
protected java.util.List < java.lang.Integer > getProgressValues ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getMemoryUsageHistory ( ) ; }
Source:
public void setHibernationVolHandle ( java.lang.String value ) { this . hibernationVolHandle = value ; }

Target:
public void setPassthroughVnicToVfMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > passthroughVnicToVfMap ) { this . passthroughVnicToVfMap = passthroughVnicToVfMap ; }
Source:
public static java.lang.String getOsName ( java.lang.Integer osId ) { if ( osId == null ) { return "" ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( osId ) ; }

Target:
public static boolean osNameExists ( java.lang.Integer osId ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.keySet ( ) . contains ( osId ) ; }
Source:
private boolean NeedToUpdateVdsBroker ( ) { return org.ovirt.engine.core.bll.VdsHandler.IsFieldsUpdated ( org.ovirt.engine.core.bll.UpdateVdsCommand.getParameters ( ) . getVdsStaticData ( ) , _oldVds.getStaticData ( ) , org.ovirt.engine.core.bll.UpdateVdsCommand.UPDATE_FIELDS_VDS_BROKER ) ; }

Target:
private boolean NeedToUpdateVdsBroker ( ) { return org.ovirt.engine.core.bll.VdsHandler.isFieldsUpdated ( org.ovirt.engine.core.bll.UpdateVdsCommand.getParameters ( ) . getVdsStaticData ( ) , _oldVds.getStaticData ( ) , org.ovirt.engine.core.bll.UpdateVdsCommand.UPDATE_FIELDS_VDS_BROKER ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity object ) { return object.getSnapshotScheduled ( ) . toString ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getNewVolumeCommand ( ) ; }
Source:
protected void OnPropertyChanged ( org.ovirt.engine.core.compat.PropertyChangedEventArgs e ) { super . OnPropertyChanged ( e ) ; getPropertyChangedEvent ( ) . raise ( this , e ) ; }

Target:
protected void OnPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . OnPropertyChanged ( e ) ; getPropertyChangedEvent ( ) . raise ( this , e ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAll ( ) { return getCallsHandler ( ) . executeReadList ( "GetAllFromVmTemplates" , org.ovirt.engine.core.dao.VmTemplateDAODbFacadeImpl.VMTemplateRowMapper.instance , getCustomMapSqlParameterSource ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAll ( org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return getCallsHandler ( ) . executeReadList ( "GetAllFromVmTemplates" , org.ovirt.engine.core.dao.VmTemplateDAODbFacadeImpl.VMTemplateRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "user_id" , userID ) . addValue ( "is_filtered" , isFiltered ) ) ; }
Source:
private void setupParams ( ) { params = new org.ovirt.engine.core.common.queries.gluster.AddedGlusterServersParameters ( CLUSTER_ID , true ) ; }

Target:
private void setupParams ( ) { params = new org.ovirt.engine.core.common.queries.gluster.AddedGlusterServersParameters ( org.ovirt.engine.core.bll.gluster.GetAddedGlusterServersQueryTest.CLUSTER_ID , true ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Cluster lookupClusterByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Cluster: name=" + name ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster lookupClusterByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , QueryType.GetClusterByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , ( "Cluster: name=" + name ) ) ; }
Source:
public boolean showExternalProviderPanel ( ) { return true ; }

Target:
public void updateHosts ( ) { }
Source:
public void removeDisk ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.RemoveDisk , new org.ovirt.engine.core.common.action.RemoveDiskParameters ( org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getImageGroupID ( ) ) ) ; }

Target:
public void removeDisk ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( ActionType.RemoveDisk , new org.ovirt.engine.core.common.action.RemoveDiskParameters ( org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getImageGroupID ( ) ) ) ; }
Source:
public void lowerVersion ( ) { storagePoolWithLowerVersion ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION.toString ( ) ) ; }

Target:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public void validateFailsNullParameterForIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( null ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }

Target:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; command.getParameters ( ) . setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePoolLocalFSOldVersion ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setIsLocal ( true ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_2 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePoolLocalFSOldVersion ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setIsLocal ( true ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_2 ) ; return pool ; }
Source:
private void verifyIfHostExistsToHandle404StatusCode ( ) { getEntity ( org.ovirt.engine.core.common.businessentities.VDS.class , VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) , hostId.toString ( ) , true ) ; }

Target:
private void verifyIfHostExistsToHandle404StatusCode ( ) { getEntity ( org.ovirt.engine.core.common.businessentities.VDS.class , QueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) , hostId.toString ( ) , true ) ; }
Source:
protected int compareCpuLevels ( org.ovirt.engine.core.common.businessentities.VDSGroup otherGroup ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.compareCpuLevels ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , otherGroup.getcpu_name ( ) , otherGroup.getcompatibility_version ( ) ) ; }

Target:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc hotplugDisk ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct info ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookEnable ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
public boolean Validate ( ) { getPath ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) } ) ; return getPath ( ) . getIsValid ( ) ; }

Target:
public boolean Validate ( ) { getPath ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LocalfsLinuxMountPointValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.NonUtfValidation ( ) } ) ; return getPath ( ) . getIsValid ( ) ; }
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 ( MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID , org.ovirt.engine.core.common.VdcObjectType.System , org.ovirt.engine.core.common.businessentities.ActionGroup.CONFIGURE_ENGINE ) ) ; }

Target:
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.compat.Guid.SYSTEM , org.ovirt.engine.core.common.VdcObjectType.System , org.ovirt.engine.core.common.businessentities.ActionGroup.CREATE_MAC_POOL ) ) ; }
Source:
private void initHandlers ( ) { org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = tagsDirector ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.ovirt.engine.core.bll.VdsHandler.init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }

Target:
private void initHandlers ( ) { org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.tagsHandler = tagsDirector ; serviceLoader.load ( org.ovirt.engine.core.bll.VmHandler.class ) ; org.ovirt.engine.core.bll.VdsHandler.init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
public void testCanDoActionImageHasParent ( ) { getDiskImage ( ) . setParentId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }

Target:
public void testCanDoActionImageHasParent ( ) { getDiskImage ( ) . setParentId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }
Source:
public void validUri ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "a://asdasd:21" ) ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "a://asdasd" ) ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "asdasd:21" ) ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "asdasd" ) ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "1.2.3.4" ) ) ; org.junit.Assert.assertFalse ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "://asdasd:12" ) ) ; org.junit.Assert.assertFalse ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "asd asd" ) ) ; }

Target:
public void validUri ( ) { org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "a://asdasd:21" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "a://asdasd" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "asdasd:21" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "asdasd" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "1.2.3.4" ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "://asdasd:12" ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.common.utils.ValidationUtils.validUri ( "asd asd" ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvm_id ( ) { return this . id.vmId ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmId ( ) { return this . id.vmId ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusDetailForXmlRpc glusterVolumeGeoRepStatusDetail ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;
Source:
public boolean isLsmBetweenMixedStorageDomainsSupported ( org.ovirt.engine.core.compat.Version version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveStorageMigrationBetweenDifferentStorageTypes , version.toString ( ) ) ) ) ; }

Target:
public java.lang.Integer getMaxVmNameLengthSysprep ( ) { java.lang.Integer maxVmNameLengthSysprep = ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLengthSysprep ) ) ) ; if ( maxVmNameLengthSysprep == null ) { return 64 ; } return maxVmNameLengthSysprep ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public static java.util.HashMap < java.lang.Integer , java.lang.String > getOsNames ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames ; }

Target:
public static boolean osNameExists ( java.lang.Integer osId ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.keySet ( ) . contains ( osId ) ; }
Source:
public void setIsQuotaDefault ( boolean isQuotaDefault ) { this . vmStatic.setIsQuotaDefault ( isQuotaDefault ) ; }

Target:
public void setIsQuotaDefault ( boolean isQuotaDefault ) { this . vmStatic.setQuotaDefault ( isQuotaDefault ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.StartSpiceVDSCommand.getBroker ( ) . startSpice ( _ip , _port , _ticket ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StartSpiceVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.StartSpiceVDSCommand.getBroker ( ) . startSpice ( _ip , _port , _ticket ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.StartSpiceVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public static org.ovirt.engine.core.common.queries.VdcQueryReturnValue instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { return new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; }

Target:
public static org.ovirt.engine.core.common.queries.QueryReturnValue instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { return new org.ovirt.engine.core.common.queries.QueryReturnValue ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkAttachment getNetworkAttachment ( ) { return getSetupModel ( ) . getNetworkAttachmentForNetwork ( getNetwork ( ) . getId ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkAttachment getNetworkAttachment ( ) { return networkAttachment ; }