auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) , diskImage.getit_guid ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) , diskImage.getImageTemplateId ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.HostDeviceView , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.hostdev.VmHostDeviceListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachineHostDeviceSubTabLabel ( ) , 4 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.HostDeviceView , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.hostdev.VmHostDeviceListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachineHostDeviceSubTabLabel ( ) , 5 , modelProvider ) ; }
Source:
public void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { initChildHierarchy ( ) ; if ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( cmdEntity.getId ( ) ) ) { return ; } persistCommand ( cmdEntity ) ; saveCommandContext ( cmdEntity.getId ( ) , cmdContext ) ; }

Target:
public void persistCommandAssociatedEntities ( java.util.Collection < org.ovirt.engine.core.common.businessentities.CommandAssociatedEntity > cmdAssociatedEntities ) { commandsRepository.persistCommandAssociatedEntities ( cmdAssociatedEntities ) ; }
Source:
public void testParseEmpty ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "" , "" ) ; assertNotNull ( ret ) ; assertEquals ( 0 , ret.size ( ) ) ; }

Target:
public void testParseEmpty ( ) { java.util.List < org.ovirt.engine.api.model.Agent > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "" , "" ) ; org.junit.Assert.assertNotNull ( ret ) ; org.junit.Assert.assertEquals ( 0 , ret.size ( ) ) ; }
Source:
public void setIsValid ( boolean value ) { if ( ( isValid ) != value ) { isValid = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsValid" ) ) ; if ( isValid ) { getInvalidityReasons ( ) . clear ( ) ; } } }

Target:
public void setIsValid ( boolean value ) { if ( ( isValid ) != value ) { isValid = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsValid" ) ) ; if ( isValid ) { getInvalidityReasons ( ) . clear ( ) ; } } }
Source:
protected boolean saveDiskIfNotExists ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image ) { if ( ! ( getBaseDiskDao ( ) . exists ( image.getId ( ) ) ) ) { getBaseDiskDao ( ) . save ( image ) ; return true ; } return false ; }

Target:
protected boolean saveDiskIfNotExists ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image ) { if ( ! ( org.ovirt.engine.core.bll.BaseImagesCommand.getBaseDiskDao ( ) . exists ( image.getId ( ) ) ) ) { org.ovirt.engine.core.bll.BaseImagesCommand.getBaseDiskDao ( ) . save ( image ) ; return true ; } return false ; }
Source:
private static void assertPluggedGetAllForVMResult ( java.util.List < org.ovirt.engine.core.common.businessentities.Disk > disks ) { org.junit.Assert.assertEquals ( "VM should have only one plugged disk" , 1 , disks.size ( ) ) ; }

Target:
private static void assertPluggedGetAllForVMResult ( java.util.List < org.ovirt.engine.core.common.businessentities.Disk > disks ) { java.lang.Integer numberOfDisks = 2 ; org.junit.Assert.assertEquals ( ( ( "VM should have " + numberOfDisks ) + " plugged disk" ) , numberOfDisks.intValue ( ) , disks.size ( ) ) ; }
Source:
public boolean isSplitted ( ) { return ( ( getVmNumaNode ( ) . getNumaNodeVdsList ( ) ) != null ) && ( ( getVmNumaNode ( ) . getNumaNodeVdsList ( ) . size ( ) ) > 1 ) ; }

Target:
public boolean isSplitted ( ) { return ( ( getVmNumaNode ( ) . getVdsNumaNodeList ( ) ) != null ) && ( ( getVmNumaNode ( ) . getVdsNumaNodeList ( ) . size ( ) ) > 1 ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.migrationSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { balloonSupportMap = ( ( java.util.Map < java.lang.Integer , java.util.Map < org.ovirt.engine.core.compat.Version , java.lang.Boolean > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return constants.powerOffVm ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.suspendVmLabel ( ) ) ; }
Source:
private void setRootDSE ( org.ovirt.engine.core.ldap.LdapProviderType ldapProviderType , javax.naming.directory.Attributes rootDseRecords ) throws javax.naming.NamingException { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.RootDSE rootDSE ; rootDSE = org.ovirt.engine.extensions.aaa.builtin.kerberosldap.RootDSEFactory.get ( ldapProviderType , rootDseRecords ) ; configuration.put ( "config.rootDSE" , rootDSE ) ; configuration.put ( "config.LDAPProviderTypes" , ldapProviderType.toString ( ) ) ; }

Target:
private void setRootDSE ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.utils.ldap.LdapProviderType ldapProviderType , javax.naming.directory.Attributes rootDseRecords ) throws javax.naming.NamingException { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.RootDSE rootDSE ; rootDSE = org.ovirt.engine.extensions.aaa.builtin.kerberosldap.RootDSEFactory.get ( ldapProviderType , rootDseRecords ) ; configuration.put ( "config.rootDSE" , rootDSE ) ; configuration.put ( "config.LDAPProviderTypes" , ldapProviderType.toString ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( java.lang.Object object ) { com.google.gwt.safehtml.shared.SafeHtml superTooltip = super . getTooltip ( object ) ; if ( superTooltip == null ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( constants.importAllocationModifiedCollapse ( ) ) ; } return superTooltip ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( java.lang.Object object ) { com.google.gwt.safehtml.shared.SafeHtml superTooltip = super . getTooltip ( object ) ; if ( superTooltip == null ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.importAllocationModifiedCollapse ( ) ) ; } return superTooltip ; }
Source:
public void setup ( ) { initVm ( ) ; fullEntityOvfData = new org.ovirt.engine.core.common.businessentities.storage.FullEntityOvfData ( ) ; emulatedMachine = "pc" ; cpuId = "SandyBridge" ; underTest = new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , fullEntityOvfData , version , emulatedMachine , cpuId , osRepository ) ; }

Target:
public void setup ( ) { initVm ( ) ; fullEntityOvfData = new org.ovirt.engine.core.common.businessentities.storage.FullEntityOvfData ( ) ; emulatedMachine = "pc" ; cpuId = "SandyBridge" ; engineXml = "<Envelope></Envelope>" ; underTest = new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , fullEntityOvfData , version , emulatedMachine , cpuId , osRepository , engineXml ) ; }
Source:
public void testGetFirstUpRhelForVdsGroupFromClusterWithFedoras ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = dao.getFirstUpRhelForVdsGroup ( org.ovirt.engine.core.dao.VdsDaoTest.VDS_GROUP_WITH_FEDORA ) ; org.junit.Assert.assertNull ( vds ) ; }

Target:
public void testGetFirstUpRhelForClusterFromClusterWithFedoras ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = dao.getFirstUpRhelForCluster ( org.ovirt.engine.core.dao.VdsDaoTest.CLUSTER_WITH_FEDORA ) ; org.junit.Assert.assertNull ( vds ) ; }
Source:
private T firstItem ( ) { return dataDisplay.getVisibleItems ( ) . get ( 0 ) ; }

Target:
private T firstItem ( ) { return visibleItemsAsList ( ) . get ( 0 ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { updateInfoPanel ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateInfoPanel ( ) ; }
Source:
public void setPmSecondaryOptions ( java.lang.String value ) { mVdsStatic.setPmSecondaryOptions ( value ) ; }

Target:
public void setCountThreadsAsCores ( boolean value ) { this . countThreadsAsCores = value ; }
Source:
protected void executeCommand ( ) { }

Target:
protected void executeCommand ( ) { setSucceeded ( true ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( ) { return templates.textForCheckBoxHeader ( constants.publicNetwork ( ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ImportNetworksPopupView.templates.textForCheckBoxHeader ( org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ImportNetworksPopupView.constants.publicNetwork ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkVmSubTabLabel ( ) , 4 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkVmSubTabLabel ( ) , 5 , modelProvider ) ; }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final boolean showErrorDialog ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( actionType , parameters , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK , null , showErrorDialog ) ; }

Target:
public void runAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final boolean showErrorDialog ) { runAction ( actionType , parameters , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK , null , showErrorDialog ) ; }
Source:
public static java.lang.String toISO ( long time ) { java.util.Date date = new java.util.Date ( time ) ; return org.ovirt.engine.extension.aaa.jdbc.DateUtils.ISO.format ( date ) ; }

Target:
public static java.lang.String toTimestamp ( long time ) { return java.lang.String.format ( "to_timestamp(%d::double precision / 1000) AT TIME ZONE 'UTC'" , time ) ; }
Source:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmNetwork ( ) ; addVmStatistics ( ) ; addActiveSnapshot ( ) ; addVmPermission ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmNetwork ( ) ; addVmStatistics ( ) ; addActiveSnapshot ( ) ; addVmPermission ( ) ; addVmInit ( ) ; addVmRngDevice ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; canDoActionFailed ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
private boolean isBond ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface ) { return java.lang.Boolean.TRUE.equals ( iface.getBonded ( ) ) ; }

Target:
private java.lang.String commaSeparated ( java.util.List < ? > invalidBondIds ) { return org.apache.commons.lang.StringUtils.join ( invalidBondIds , ", " ) ; }
Source:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vm.getId ( ) ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm ) ; org.ovirt.engine.core.bll.VmHandler.lockVm ( vm.getId ( ) ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "" ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskDescription\":\"\",\"DiskAlias\":\"DiskAlias\"}" ) ) ; }

Target:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "" ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"\"}" ) ) ; }
Source:
public org.ovirt.engine.api.resource.VmDiskResource getDiskResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource ( parentId , id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }

Target:
public org.ovirt.engine.api.model.Disks list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ) ; }
Source:
public void sparsifyNotSupportedWhenWipeAfterDeleteIsOn ( ) { createStorageDomainForDisk ( StorageType.ISCSI ) ; disk.setWipeAfterDelete ( true ) ; org.junit.Assert.assertThat ( validator.isSparsifySupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPARSIFY_NOT_SUPPORTED_BY_UNDERLYING_STORAGE_WHEN_WAD_IS_ENABLED ) ) ; }

Target:
public void sparsifyNotSupportedWhenWipeAfterDeleteIsOn ( ) { createStorageDomainForDisk ( StorageType.ISCSI ) ; disk.setWipeAfterDelete ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isSparsifySupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPARSIFY_NOT_SUPPORTED_BY_UNDERLYING_STORAGE_WHEN_WAD_IS_ENABLED ) ) ; }
Source:
public org.ovirt.engine.api.model.GraphicsConsole get ( ) ;

Target:
public javax.ws.rs.core.Response proxyTicket ( org.ovirt.engine.api.model.Action action ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains createStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.storage_domains sd = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; sd.setstorage_domain_type ( StorageDomainType.Data ) ; sd.setstatus ( StorageDomainStatus.Active ) ; sd.setavailable_disk_size ( 2 ) ; return sd ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain createStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setStorageDomainType ( StorageDomainType.Data ) ; sd.setStatus ( StorageDomainStatus.Active ) ; sd.setAvailableDiskSize ( 2 ) ; return sd ; }
Source:
public void run ( org.ovirt.engine.ui.uicompat.TaskContext context ) { updateOptionsAsync ( ( ( getPrefix ( ) ) + ( getSearchString ( ) ) ) ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( ) ; updateOptionsAsync ( ( ( getPrefix ( ) ) + ( getSearchString ( ) ) ) ) ; }
Source:
void bindInfrastructure ( ) { bindCommonInfrastructure ( org.ovirt.engine.ui.webadmin.place.WebAdminPlaceManager.class ) ; bind ( org.ovirt.engine.ui.webadmin.system.ApplicationInit.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.webadmin.system.InternalConfiguration.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.webadmin.system.PostMessageDispatcher.class ) . asEagerSingleton ( ) ; }

Target:
void bindInfrastructure ( ) { bindCommonInfrastructure ( org.ovirt.engine.ui.webadmin.place.WebAdminPlaceManager.class ) ; bind ( org.ovirt.engine.ui.webadmin.system.InternalConfiguration.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.webadmin.system.PostMessageDispatcher.class ) . asEagerSingleton ( ) ; bindTypeAndImplAsSingleton ( org.ovirt.engine.ui.uicommonweb.auth.CurrentUserRole.class , org.ovirt.engine.ui.common.auth.CommonCurrentUserRole.class ) ; }
Source:
public void testCompletionMutliReturnValue ( ) { junit.framework.Assert.assertTrue ( ( ( completer.getCompletion ( "r" ) . length ) > 1 ) ) ; }

Target:
public void testCompletionMutliReturnValue ( ) { org.junit.Assert.assertTrue ( ( ( completer.getCompletion ( "r" ) . length ) > 1 ) ) ; }
Source:
public void addUrl_params ( java.lang.String name , org.ovirt.engine.api.restapi.rsdl.UrlParamData value ) { this . urlparams.put ( name , value ) ; }

Target:
public void addUrl_params ( java.lang.String name , org.ovirt.engine.api.restapi.rsdl.ParamData value ) { this . urlparams.put ( name , value ) ; }
Source:
public org.ovirt.engine.core.uutils.cli.ArgumentBuilder valueRequied ( boolean valueRequired ) { this . valueRequired = valueRequired ; return this ; }

Target:
public org.ovirt.engine.core.uutils.cli.ArgumentBuilder valueRequired ( boolean valueRequired ) { this . valueRequired = valueRequired ; return this ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > stopImageTransferSession ( java.lang.String ticketId , java.lang.String spId , java.lang.String sdId , java.lang.String imgId , java.lang.String volId ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > extend_image_ticket ( java.lang.String ticketId , long timeout ) ;
Source:
public void trace ( java.lang.Object arg0 , java.lang.Throwable arg1 ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( arg0 ) , arg1 ) ; } }

Target:
public void warn ( java.lang.Object msg , java.lang.Throwable t ) { log.warn ( addPrefixToLogMessage ( msg ) , t ) ; }
Source:
public void setpending_vmem_size ( int value ) { mVdsDynamic.setpending_vmem_size ( value ) ; }

Target:
public void setPendingVmemSize ( int value ) { mVdsDynamic.setpending_vmem_size ( value ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchInstanceTypes ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVmTemplateDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > searchDbUsers ( ) { return genericSearch ( dbUserDao , true ) ; }
Source:
public void testGetFilteredWithoutPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetFilteredWithoutPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void setAllowChangeHost ( org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( ( getHost ( ) . getEntity ( ) ) != null ) { getHost ( ) . setIsChangable ( false ) ; } else { getHost ( ) . setIsChangable ( true ) ; } }

Target:
protected void setAllowChangeHost ( org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( ( getHost ( ) . getEntity ( ) ) != null ) { getHost ( ) . setIsChangeable ( false ) ; } else { getHost ( ) . setIsChangeable ( true ) ; } }
Source:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.core.common.action.NetworkAttachmentParameters params = new org.ovirt.engine.core.common.action.NetworkAttachmentParameters ( hostId , getNetworkAttachment ( id ) ) ; return performAction ( VdcActionType.RemoveNetworkAttachment , params ) ; }

Target:
protected void verifyIfHostExistsToHandle404StatusCode ( ) { org.ovirt.engine.core.compat.Guid hostId = getHostId ( ) ; getEntity ( org.ovirt.engine.core.common.businessentities.VDS.class , VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) , hostId.toString ( ) , true ) ; }
Source:
private void createNotVirtIODisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = mockDiskImage ( ) ; disk.setDiskInterface ( DiskInterface.IDE ) ; }

Target:
private void createNotVirtIODisk ( ) { mockDiskImage ( DiskInterface.IDE ) ; command.getParameters ( ) . getDiskVmElement ( ) . setDiskInterface ( DiskInterface.IDE ) ; }
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 ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Snapshot > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Snapshot > ( ) ; }
Source:
public void debug ( java.lang.Object arg0 ) { log.debug ( addPrefixToLogMessage ( arg0 ) ) ; }

Target:
public void debug ( java.lang.Object arg0 ) { if ( isDebugEnabled ( ) ) { log.debug ( addPrefixToLogMessage ( arg0 ) ) ; } }
Source:
public void setmem_commited ( java.lang.Integer value ) { this . mVdsDynamic.setmem_commited ( value ) ; calculateFreeVirtualMemory ( ) ; }

Target:
public void setMemCommited ( java.lang.Integer value ) { this . mVdsDynamic.setmem_commited ( value ) ; calculateFreeVirtualMemory ( ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; cancel ( ) ; }
Source:
public void setSymbolMapsDirectory ( java.lang.String symbolMapsDir ) { deobfuscator = com.google.gwt.core.server.StackTraceDeobfuscator.fromFileSystem ( symbolMapsDir ) ; }

Target:
protected java.io.InputStream openInputStream ( java.lang.String fileName ) throws java.io.IOException { return java.nio.file.Files.newInputStream ( zipFs.getPath ( ( "/" + fileName ) ) ) ; }
Source:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.api.model.GlusterBrick brick = new org.ovirt.engine.api.model.GlusterBrick ( ) ; brick.setId ( id ) ; org.ovirt.engine.api.model.GlusterBricks bricks = new org.ovirt.engine.api.model.GlusterBricks ( ) ; bricks.getGlusterBricks ( ) . add ( brick ) ; return remove ( bricks ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__CREATE ) ; addCustomValue ( GlusterConstants.VOLUME_SNAPSHOT_NAME , getParameters ( ) . getSnapshot ( ) . getSnapshotName ( ) ) ; super . setActionMessageParameters ( ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__CREATE ) ; addCustomValue ( GlusterConstants.VOLUME_SNAPSHOT_NAME , getParameters ( ) . getSnapshot ( ) . getSnapshotName ( ) ) ; super . setActionMessageParameters ( ) ; }
Source:
public void verifyCall ( org.ovirt.engine.core.utils.log.Log mock , java.lang.String message , java.lang.Object args ) { org.mockito.Mockito.verify ( mock ) . errorFormat ( message , args ) ; }

Target:
public void verifyCall ( org.slf4j.Logger mock , java.lang.String message , java.lang.Object ... args ) { org.mockito.Mockito.verify ( mock ) . error ( message , args ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hostWasInstalled ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.CANNOT_UPGRADE_HOST_WITHOUT_OS ) . when ( ( ( host.getHostOs ( ) ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostWasInstalled ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.CANNOT_UPGRADE_HOST_WITHOUT_OS ) . when ( ( ( host.getHostOs ( ) ) == null ) ) ; }
Source:
private boolean CheckIfFlagsContainsCpuFlags ( org.ovirt.engine.core.common.businessentities.ServerCpu clusterCpu , java.util.Set < java.lang.String > lstServerflags ) { return ( org.apache.commons.collections.CollectionUtils.intersection ( clusterCpu.getFlags ( ) , lstServerflags ) . size ( ) ) == ( clusterCpu.getFlags ( ) . size ( ) ) ; }

Target:
private boolean checkIfFlagsContainsCpuFlags ( org.ovirt.engine.core.common.businessentities.ServerCpu clusterCpu , java.util.Set < java.lang.String > lstServerflags ) { return ( org.apache.commons.collections.CollectionUtils.intersection ( clusterCpu.getFlags ( ) , lstServerflags ) . size ( ) ) == ( clusterCpu.getFlags ( ) . size ( ) ) ; }
Source:
private void canDoActionFailed ( final org.ovirt.engine.core.common.errors.EngineMessage reason ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( reason.toString ( ) ) ) ; }

Target:
public void hasDomains ( ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ERROR_CANNOT_CHANGE_STORAGE_POOL_TYPE_WITH_DOMAINS ) ; }
Source:
public java.lang.String getVolumeStringRepresentation ( ) { return java.lang.String.format ( "%1$s,%2$s,%3$s,%4$s,%5$s,%6$s" , storageDomainId , storagePool.getId ( ) , memoryDumpImageGroupId , memoryDumpVolumeId , vmConfImageGroupId , vmConfVolumeId ) ; }

Target:
public java.lang.String getVolumeStringRepresentation ( ) { return org.ovirt.engine.core.bll.memory.MemoryUtils.createMemoryStateString ( storageDomainId , storagePool.getId ( ) , memoryDumpImageGroupId , memoryDumpVolumeId , vmConfImageGroupId , vmConfVolumeId ) ; }
Source:
public boolean handle ( org.ovirt.engine.core.config.entity.ConfigKey key ) { if ( key.getKey ( ) . equals ( keyName ) ) { org.ovirt.engine.core.config.EngineConfigLogic.log.info ( key.getValueHelper ( ) . getHelpNote ( key ) ) ; return false ; } return true ; }

Target:
public boolean handle ( org.ovirt.engine.core.config.entity.ConfigKey key ) { if ( key.getKey ( ) . equals ( keyName ) ) { org.ovirt.engine.core.config.EngineConfigLogic.console.writeLine ( key.getValueHelper ( ) . getHelpNote ( key ) ) ; return false ; } return true ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getEntityId ( ) . toString ( ) , LockMessagesMatchUtil.DISK ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getEntityId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.DISK , getDiskIsBeingRemovedLockMessage ( ) ) ) ; }
Source:
public void setvm_guid ( org.ovirt.engine.core.compat.Guid value ) { this . vmId = value ; }

Target:
public void setVmId ( org.ovirt.engine.core.compat.Guid value ) { this . vmId = value ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveVdsGroup , new org.ovirt.engine.core.common.action.VdsGroupParametersBase ( asGuid ( id ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveCluster , new org.ovirt.engine.core.common.action.ClusterParametersBase ( asGuid ( id ) ) ) ; }
Source:
public void setis_auto_suspend ( boolean value ) { this . mVmStatic.setis_auto_suspend ( value ) ; }

Target:
public int getNumOfCpus ( ) { return this . vmStatic.getnum_of_cpus ( ) ; }
Source:
public int compareTo ( org.ovirt.engine.core.common.businessentities.VmDynamic o ) { return org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityGuidComparator.< org.ovirt.engine.core.common.businessentities.VmDynamic > newInstance ( ) . compare ( this , o ) ; }

Target:
public void setGuestOsType ( java.lang.String osType ) { this . guestOsType = org.ovirt.engine.core.common.utils.EnumUtils.valueOf ( org.ovirt.engine.core.common.businessentities.OsType.class , osType , true ) ; }
Source:
public void messagingBrokerProvided ( ) { mockMessagingBrokerAddress ( "1.1.1.1" ) ; org.junit.Assert.assertThat ( validator.messagingBrokerProvided ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void messagingBrokerProvided ( ) { mockMessagingBrokerAddress ( "1.1.1.1" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.messagingBrokerProvided ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { int numOfVms = org.ovirt.engine.core.bll.GetNumberOfVmsInClusterByClusterIdQuery.getDbFacade ( ) . getClusterDao ( ) . getVmsCountByClusterId ( org.ovirt.engine.core.bll.GetNumberOfVmsInClusterByClusterIdQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.GetNumberOfVmsInClusterByClusterIdQuery.getQueryReturnValue ( ) . setReturnValue ( numOfVms ) ; }

Target:
protected void executeQueryCommand ( ) { int numOfVms = clusterDao.getVmsCountByClusterId ( org.ovirt.engine.core.bll.GetNumberOfVmsInClusterByClusterIdQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.GetNumberOfVmsInClusterByClusterIdQuery.getQueryReturnValue ( ) . setReturnValue ( numOfVms ) ; }
Source:
public static java.lang.Boolean isBalloonEnabled ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.balloonSupportMap.get ( osId ) . get ( version ) ; }

Target:
public java.lang.Boolean isBalloonEnabled ( int osId , org.ovirt.engine.core.compat.Version version ) { return balloonSupportMap.get ( osId ) . get ( version ) ; }
Source:
protected boolean isVersionSupportedForShareable ( org.ovirt.engine.core.common.businessentities.Disk disk , java.lang.String compVersion ) { if ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.ShareableDiskEnabled , compVersion ) ; } return true ; }

Target:
protected boolean isVersionSupportedForShareable ( org.ovirt.engine.core.common.businessentities.storage.Disk disk , java.lang.String compVersion ) { if ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.ShareableDiskEnabled , compVersion ) ; } return true ; }
Source:
public com.google.gwt.event.dom.client.HasClickHandlers addRunButton ( ) { org.ovirt.engine.ui.userportal.widget.basic.MainTabBasicListItemActionButton button = new org.ovirt.engine.ui.userportal.widget.basic.MainTabBasicListItemActionButton ( null , resources.playIcon ( ) , resources.playDisabledIcon ( ) , style.runButtonAdditionalStyle ( ) ) ; this . runButton = button ; addButtonToPanel ( button ) ; return button ; }

Target:
public com.google.gwt.event.dom.client.HasClickHandlers addRunButton ( ) { org.ovirt.engine.ui.userportal.widget.basic.MainTabBasicListItemActionButton button = new org.ovirt.engine.ui.userportal.widget.basic.MainTabBasicListItemActionButton ( null , org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.resources.playIcon ( ) , org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicListItemView.resources.playDisabledIcon ( ) , style.runButtonAdditionalStyle ( ) ) ; this . runButton = button ; addButtonToPanel ( button ) ; return button ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { return ( slaveVolume.getAdvancedDetails ( ) . getCapacityInfo ( ) ) != null ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { return ( slaveVolume.getAdvancedDetails ( ) . getCapacityInfo ( ) ) != null ; }
Source:
public void testGetSelectorScriptName ( ) { org.junit.Assert.assertEquals ( "webadmin.nocache.js" , testServlet.getSelectorScriptName ( ) ) ; }

Target:
public void testGetSelectorScriptName ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "webadmin.nocache.js" , testServlet.getSelectorScriptName ( ) ) ; }
Source:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver ) { return performCreate ( task , taskParams , entityResolver , expectBlocking ( ) ) ; }

Target:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver ) { return performCreate ( task , taskParams , entityResolver , expectBlocking ( ) ) ; }
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 ( ) . getCpuName ( ) , otherGroup.getCpuName ( ) , otherGroup.getCompatibilityVersion ( ) ) ; }

Target:
protected int compareCpuLevels ( org.ovirt.engine.core.common.businessentities.VDSGroup otherGroup ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getCpuFlagsManagerHandler ( ) . compareCpuLevels ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , otherGroup.getCpuName ( ) , otherGroup.getCompatibilityVersion ( ) ) ; }
Source:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . vds_group_id = value ; }

Target:
public void setManagedDeviceMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > map ) { this . managedDeviceMap = map ; }
Source:
public void validVnicProfileNullNetworkFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.validNetworkFilterId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public static java.lang.Boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.spiceSupportMatrix.get ( osId ) . get ( version ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > getDisplayTypes ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.displayTypes.get ( osId ) . get ( version ) ; }
Source:
public boolean isLinux ( int osId ) ;

Target:
java.lang.String getCdInterface ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.ChipsetType chipset ) ;
Source:
protected void setContent ( com.google.gwt.user.client.ui.Widget content ) { getTabPanel ( ) . setTabContent ( content ) ; }

Target:
protected void setContent ( com.google.gwt.user.client.ui.IsWidget content ) { getTabPanel ( ) . setTabContent ( content ) ; }
Source:
private boolean doesHostSupportAnyCluster ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > clusterList , org.ovirt.engine.core.common.businessentities.VDS host ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster : clusterList ) { if ( host.getSupportedClusterVersionsSet ( ) . contains ( cluster.getcompatibility_version ( ) ) ) { return true ; } } return false ; }

Target:
private boolean doesHostSupportAnyCluster ( java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > clusterList , org.ovirt.engine.core.common.businessentities.VDS host ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster : clusterList ) { if ( host.getSupportedClusterVersionsSet ( ) . contains ( cluster.getCompatibilityVersion ( ) ) ) { return true ; } } return false ; }
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 ; }
Source:
protected void executeCommand ( ) { job = getJobDao ( ) . get ( org.ovirt.engine.core.bll.ClearExternalJobCommand.getParameters ( ) . getJobId ( ) ) ; job.setAutoCleared ( true ) ; getJobDao ( ) . update ( job ) ; org.ovirt.engine.core.bll.ClearExternalJobCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { job = jobDao.get ( org.ovirt.engine.core.bll.ClearExternalJobCommand.getParameters ( ) . getJobId ( ) ) ; job.setAutoCleared ( true ) ; jobDao.update ( job ) ; org.ovirt.engine.core.bll.ClearExternalJobCommand.setSucceeded ( true ) ; }
Source:
public void setForceLabelMessage ( java.lang.String forceLabelMessage ) { forceEditor.setLabel ( ( forceLabelMessage == null ? constants.notAvailableLabel ( ) : forceLabelMessage ) ) ; forceEditor.setVisible ( ( forceLabelMessage != null ) ) ; }

Target:
private void initVisibilities ( ) { errorMsg.setVisible ( false ) ; geoRepForceHelpIcon.setVisible ( false ) ; }
Source:
public int compareTo ( ovirt_engine_dwh.configurationsync_4_1.ConfigurationSync.updateFirstSyncStruct other ) { int returnValue = - 1 ; returnValue = checkNullsAndCompare ( this . var_name , other.var_name ) ; if ( returnValue != 0 ) { return returnValue ; } return returnValue ; }

Target:
public int compareTo ( ovirt_engine_dwh.configurationsync_4_1.ConfigurationSync.copyOfupdateFirstSyncStruct other ) { int returnValue = - 1 ; returnValue = checkNullsAndCompare ( this . var_name , other.var_name ) ; if ( returnValue != 0 ) { return returnValue ; } return returnValue ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Permissions getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.Permissions permission = new org.ovirt.engine.core.common.businessentities.Permissions ( ) ; permission.setId ( GUIDS [ 0 ] ) ; permission.setAdElementId ( GUIDS [ 1 ] ) ; permission.setRoleId ( GUIDS [ 2 ] ) ; return permission ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Permissions getEntity ( int index ) { org.ovirt.engine.api.restapi.resource.Permissions permission = new org.ovirt.engine.api.restapi.resource.Permissions ( ) ; permission.setId ( GUIDS [ 0 ] ) ; permission.setAdElementId ( GUIDS [ 1 ] ) ; permission.setRoleId ( GUIDS [ 2 ] ) ; return permission ; }
Source:
public void testGetConnectionUrl1 ( ) throws java.net.MalformedURLException { final org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.net.URL > actual = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.getConnectionUrl ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.HOSTNAME , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.PORT , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.PATH , true ) ; final java.lang.String expectedUrl = java.lang.String.format ( "https://%s:%d/%s" , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.HOSTNAME , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.PORT , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.PATH ) ; org.junit.Assert.assertThat ( actual.getFirst ( ) , org.hamcrest.Matchers.is ( expectedUrl ) ) ; org.junit.Assert.assertThat ( actual.getSecond ( ) , org.hamcrest.Matchers.is ( new java.net.URL ( expectedUrl ) ) ) ; }

Target:
public void testGetConnectionUrl1 ( ) throws java.net.MalformedURLException { final org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.net.URL > actual = org.ovirt.engine.core.vdsbroker.HttpUtils.getConnectionUrl ( org.ovirt.engine.core.vdsbroker.HttpUtilsTest.HOSTNAME , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.PORT , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.PATH , true ) ; final java.lang.String expectedUrl = java.lang.String.format ( "https://%s:%d/%s" , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.HOSTNAME , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.PORT , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.PATH ) ; org.junit.Assert.assertThat ( actual.getFirst ( ) , org.hamcrest.Matchers.is ( expectedUrl ) ) ; org.junit.Assert.assertThat ( actual.getSecond ( ) , org.hamcrest.Matchers.is ( new java.net.URL ( expectedUrl ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.context.CommandContext createMigrateVmContext ( org.ovirt.engine.core.bll.job.ExecutionContext parentContext , org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( ) ; }

Target:
protected org.ovirt.engine.core.bll.context.CommandContext createMigrateVmContext ( org.ovirt.engine.core.bll.job.ExecutionContext parentContext , org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( org.ovirt.engine.core.bll.SetNonOperationalVdsCommand.getContext ( ) ) ; }
Source:
public void onKeyUp ( com.google.gwt.event.dom.client.KeyUpEvent event ) { storageModel.getWarningLowSpaceSize ( ) . setEntity ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . bracketsWithGB ( getWarningLowSpaceSize ( storageModel ) ) ) ; }

Target:
public void onKeyUp ( com.google.gwt.event.dom.client.KeyUpEvent event ) { if ( ! ( storageModel.isNewStorage ( ) ) ) { storageModel.getWarningLowSpaceSize ( ) . setEntity ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . bracketsWithGB ( getWarningLowSpaceSize ( storageModel ) ) ) ; } }
Source:
private void mockConfigSizeRequirements ( int requiredSpaceBufferInGB , int requiredSpacePercent ) { mcr.mockConfigValue ( ConfigValues.FreeSpaceCriticalLowInGB , requiredSpaceBufferInGB ) ; mcr.mockConfigValue ( ConfigValues.FreeSpaceLow , requiredSpacePercent ) ; }

Target:
private void mockConfigSizeDefaults ( ) { int requiredSpaceBufferInGB = 5 ; mockConfigSizeRequirements ( requiredSpaceBufferInGB ) ; }
Source:
private boolean registerLibvirtSecretsImpl ( org.ovirt.engine.core.common.businessentities.VDS vds , java.util.List < org.ovirt.engine.core.common.businessentities.storage.LibvirtSecret > libvirtSecrets ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue = backend.getResourceManager ( ) . runVdsCommand ( VDSCommandType.RegisterLibvirtSecrets , new org.ovirt.engine.core.common.vdscommands.RegisterLibvirtSecretsVDSParameters ( vds.getId ( ) , libvirtSecrets , false ) ) ; return returnValue.getSucceeded ( ) ; }

Target:
private boolean registerLibvirtSecretsImpl ( org.ovirt.engine.core.common.businessentities.VDS vds , java.util.List < org.ovirt.engine.core.common.businessentities.storage.LibvirtSecret > libvirtSecrets ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue = resourceManager.runVdsCommand ( VDSCommandType.RegisterLibvirtSecrets , new org.ovirt.engine.core.common.vdscommands.RegisterLibvirtSecretsVDSParameters ( vds.getId ( ) , libvirtSecrets , false ) ) ; return returnValue.getSucceeded ( ) ; }