auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
org.ovirt.engine.core.bll.network.macpoolmanager.Range getRangeWithAvailableMac ( ) { int numberOfRanges = ranges.size ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.Range range = findRangeWithAvailableMac ( startIndexForEmptyRangeSearch , numberOfRanges , numberOfRanges ) ; if ( range != null ) { return range ; } return findRangeWithAvailableMac ( 0 , startIndexForEmptyRangeSearch , numberOfRanges ) ; }

Target:
org.ovirt.engine.core.bll.network.macpool.Range getRangeWithAvailableMac ( ) { int numberOfRanges = ranges.size ( ) ; org.ovirt.engine.core.bll.network.macpool.Range range = findRangeWithAvailableMac ( startIndexForEmptyRangeSearch , numberOfRanges , numberOfRanges ) ; if ( range != null ) { return range ; } return findRangeWithAvailableMac ( 0 , startIndexForEmptyRangeSearch , numberOfRanges ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.userportal.AttachCdModel object ) { driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.AttachCdModel object ) { driver.edit ( object ) ; }
Source:
void updatePartialVdsDynamicCalc ( org.ovirt.engine.core.compat.Guid id , int vmCount , int pendingVcpusCount , int pendingVmemSize , int memCommited , int vmsCoresCount ) ;

Target:
void updateStatusAndReasons ( org.ovirt.engine.core.common.businessentities.VdsDynamic host ) ;
Source:
public void testTooBigPort ( ) { final org.ovirt.engine.ui.uicommonweb.UriAuthority underTest = new org.ovirt.engine.ui.uicommonweb.UriAuthority ( ( ( ( org.ovirt.engine.ui.uicommonweb.UriAuthorityTest.IPV6_ADDRESS ) + ( org.ovirt.engine.ui.uicommonweb.UriAuthorityTest.COLON ) ) + ( org.ovirt.engine.ui.uicommonweb.UriAuthorityTest.TOO_BIG_PORT ) ) ) ; org.junit.Assert.assertThat ( underTest.isValid ( ) , org.hamcrest.Matchers.is ( false ) ) ; }

Target:
public void testTooBigPort ( ) { final org.ovirt.engine.ui.uicommonweb.UriAuthority underTest = new org.ovirt.engine.ui.uicommonweb.UriAuthority ( ( ( ( org.ovirt.engine.ui.uicommonweb.UriAuthorityTest.IPV6_ADDRESS ) + ( org.ovirt.engine.ui.uicommonweb.UriAuthorityTest.COLON ) ) + ( org.ovirt.engine.ui.uicommonweb.UriAuthorityTest.TOO_BIG_PORT ) ) ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.isValid ( ) , org.hamcrest.Matchers.is ( false ) ) ; }
Source:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllAuditLogsByVMTemplateName , new org.ovirt.engine.core.common.queries.GetAllAuditLogsByVMTemplateNameParameters ( getEntity ( ) . getName ( ) ) ) ; }

Target:
protected void refreshModel ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllAuditLogsByVMTemplateName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( getEntity ( ) . getName ( ) ) ) ; }
Source:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDAO ( ) ; }

Target:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDAO ( ) ; command.postConstruct ( ) ; }
Source:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidObject ( ) { org.ovirt.engine.core.common.businessentities.Permission result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.dao.PermissionDaoTest.ROLE_ID , org.ovirt.engine.core.dao.PermissionDaoTest.AD_ELEMENT_ID , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidObject ( ) { org.ovirt.engine.core.common.businessentities.Permission result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.dao.PermissionDaoTest.ROLE_ID , org.ovirt.engine.core.dao.PermissionDaoTest.AD_ELEMENT_ID , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { revealStorageView ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.CINDER ) ; revealDiskPanel ( disk ) ; }
Source:
private boolean getRemapCtrlAltDelDefault ( ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.RemapCtrlAltDelDefault ) ) ) ; }

Target:
private boolean getRemapCtrlAltDelDefault ( ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigValues.RemapCtrlAltDelDefault ) ) ) ; }
Source:
public void setpending_vcpus_count ( java.lang.Integer value ) { mVdsDynamic.setpending_vcpus_count ( value ) ; }

Target:
public void setPendingVcpusCount ( java.lang.Integer value ) { mVdsDynamic.setpending_vcpus_count ( value ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult networkNameNotUsed ( ) { org.ovirt.engine.core.common.businessentities.network.Network networkWithSameName = getOtherNetworkWithSameName ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetworks ( ) ) ; return networkWithSameName != null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_IN_USE ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult networkNameNotUsed ( ) { org.ovirt.engine.core.common.businessentities.network.Network networkWithSameName = getOtherNetworkWithSameName ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetworks ( ) ) ; return networkWithSameName != null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_NAME_IN_USE ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void rollbackQuota ( ) { org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getQuotaManager ( ) . rollbackQuota ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getStoragePool ( ) , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getQuotaManager ( ) . getQuotaListFromParameters ( getStorageQuotaListParameters ( ) ) ) ; }

Target:
public void rollbackQuota ( ) { if ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.isInternalExecution ( ) ) { return ; } org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getQuotaManager ( ) . rollbackQuota ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getStoragePool ( ) , org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getQuotaManager ( ) . getQuotaListFromParameters ( getStorageQuotaListParameters ( ) ) ) ; }
Source:
public void setkvm_enable ( java.lang.Boolean value ) { this . mVmDynamic.setkvm_enable ( value ) ; }

Target:
public org.ovirt.engine.core.compat.NGuid getLastVdsRunOn ( ) { return this . vmDynamic.getlast_vds_run_on ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterGeoRepKeysUpdate ( java.lang.String remoteUserName , java.util.List < java.lang.String > geoRepPubKeys ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterGeoRepKeysUpdate ( java.lang.String userName , java.util.List < java.lang.String > geoRepPubKeys ) ;
Source:
public void listOfMigrationPoliciesIsValid ( ) { org.junit.Assert.assertTrue ( helper.validate ( null , helper.getExamplePolicy ( ) ) . isOk ( ) ) ; }

Target:
public void listOfMigrationPoliciesIsValid ( ) { org.junit.jupiter.api.Assertions.assertTrue ( helper.validate ( null , helper.getExamplePolicy ( ) ) . isOk ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > getActiveIsoDomain ( ) { return repoFileMetaDataDao.getRepoListForStorageDomain ( FixturesTool.SHARED_ISO_STORAGE_DOAMIN_FOR_SP2_AND_SP3 , ImageFileType.ISO ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > getActiveIsoDomain ( ) { return repoFileMetaDataDao.getRepoListForStorageDomain ( FixturesTool.SHARED_ISO_STORAGE_DOMAIN_FOR_SP2_AND_SP3 , ImageFileType.ISO ) ; }
Source:
public void setSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.userportal.ConsoleProtocol selectedProtocol ) { userSelectedDisplayProtocolManager.setSelectedProtocol ( selectedProtocol , this ) ; }

Target:
public void setSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol selectedProtocol ) { userSelectedDisplayProtocolManager.setSelectedProtocol ( selectedProtocol , this ) ; }
Source:
public java.lang.String getsoftware_version ( ) { if ( ( this . getVersion ( ) . getFullVersion ( ) ) == null ) { return null ; } return this . getVersion ( ) . getFullVersion ( ) . toString ( ) ; }

Target:
public java.lang.String getsoftware_version ( ) { return this . softwareVersion ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageServerConnections conn ) { return conn.getiqn ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StorageServerConnections conn ) { return conn.getIqn ( ) ; }
Source:
void initListBoxEditors ( ) { hostListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < org.ovirt.engine.core.common.businessentities.VDS > ( new org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer < org.ovirt.engine.core.common.businessentities.VDS > ( ) { @ java.lang.Override public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return vds.getName ( ) ; } } ) ; }

Target:
void initListBoxEditors ( ) { hostListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.VDS > ( ) ) ; }
Source:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , getParent ( ) . getNetworkIdResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdatedNetworkResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }
Source:
public static java.lang.String appendHttpDocs ( java.lang.String docParams , org.ovirt.engine.sdk.entities.DetailedLink dl ) { java.lang.StringBuffer docParamsBuffer = new java.lang.StringBuffer ( docParams ) ; return docParamsBuffer.toString ( ) ; }

Target:
public java.lang.String generate ( org.ovirt.engine.sdk.entities.DetailedLink detailedLink ) { java.lang.StringBuffer docParamsBuffer = new java.lang.StringBuffer ( ) ; docParamsBuffer.append ( org.ovirt.engine.sdk.codegen.documentation.DocsGen.generateBodyParams ( detailedLink ) ) ; docParamsBuffer.append ( org.ovirt.engine.sdk.codegen.documentation.DocsGen.generateUrlAndHeadersParams ( detailedLink ) ) ; return docParamsBuffer.toString ( ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getDiscoverCommand ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkView object ) { return object.getDataCenterName ( ) ; }
Source:
public static < TSource > TSource firstOrDefault ( java.lang.Iterable < TSource > source ) { if ( source != null ) { for ( TSource item : source ) { return item ; } } return null ; }

Target:
public boolean match ( TSource tSource ) { return true ; }
Source:
protected boolean RunConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return true ; }

Target:
protected boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return true ; }
Source:
public void updateInterface ( org.ovirt.engine.core.common.businessentities.StoragePool datacenter ) { getDiskInterface ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetDiskInterfaceList ( ) ) ; getDiskInterface ( ) . setSelectedItem ( DiskInterface.VirtIO ) ; }

Target:
public void updateInterface ( org.ovirt.engine.core.common.businessentities.StoragePool datacenter ) { getDiskInterface ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDiskInterfaceList ( ) ) ; getDiskInterface ( ) . setSelectedItem ( DiskInterface.VirtIO ) ; }
Source:
public void setActiveDetailModel ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { if ( ( activeDetailModel ) != value ) { ActiveDetailModelChanging ( value , getActiveDetailModel ( ) ) ; activeDetailModel = value ; ActiveDetailModelChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ActiveDetailModel" ) ) ; } }

Target:
public void setActiveDetailModel ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { if ( ( activeDetailModel ) != value ) { activeDetailModelChanging ( value , getActiveDetailModel ( ) ) ; activeDetailModel = value ; activeDetailModelChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ActiveDetailModel" ) ) ; } }
Source:
public void addTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget , int index ) { tabContainer.insert ( tabWidget , index ) ; }

Target:
public void setTabBar ( com.google.gwt.user.client.ui.IsWidget widget ) { tabContainer.clear ( ) ; if ( widget != null ) { tabContainer.add ( widget ) ; } }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_VM , getVmIsBeingImportedMessage ( ) ) ) ; }

Target:
private void removeVmSnapshots ( ) { org.ovirt.engine.core.compat.Guid vmId = getVmId ( ) ; java.util.Set < java.lang.String > memoryStates = snapshotsManager.removeSnapshots ( vmId ) ; for ( java.lang.String memoryState : memoryStates ) { removeMemoryVolumes ( memoryState , vmId ) ; } }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > getClusterNetworksWithLabel ( java.lang.String label ) { if ( ( labeledNetworks ) == null ) { labeledNetworks = org.ovirt.engine.core.bll.network.host.LabelNicCommand.getNetworkDAO ( ) . getAllByLabelForCluster ( label , org.ovirt.engine.core.bll.network.host.LabelNicCommand.getVds ( ) . getVdsGroupId ( ) ) ; } return labeledNetworks ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > getClusterNetworksWithLabel ( java.lang.String label ) { if ( ( labeledNetworks ) == null ) { labeledNetworks = org.ovirt.engine.core.bll.network.host.LabelNicCommand.getNetworkDao ( ) . getAllByLabelForCluster ( label , org.ovirt.engine.core.bll.network.host.LabelNicCommand.getVds ( ) . getVdsGroupId ( ) ) ; } return labeledNetworks ; }
Source:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Name" ) ) ; } }

Target:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Name" ) ) ; } }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present , java.lang.String width ) { table.ensureColumnPresent ( column , headerText , present , width ) ; tableHeader.ensureColumnPresent ( column , headerText , present , width ) ; }

Target:
public void ensureColumnVisible ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean visible , java.lang.String width ) { table.ensureColumnVisible ( column , headerText , visible , width ) ; tableHeader.ensureColumnVisible ( column , headerText , visible , width ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid createGuidFromString ( java.lang.String candidate ) { if ( candidate == null ) { return Empty ; } else { return new org.ovirt.engine.core.compat.Guid ( candidate ) ; } }

Target:
public java.lang.String toString ( ) { if ( ( uuid ) == null ) return "[null]" ; else return uuid.toString ( ) ; }
Source:
private void assertHostNotValid ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > vnics , java.util.List < java.lang.String > exceptedProblematicVnics ) { validateVnics ( vnics , exceptedProblematicVnics ) ; org.junit.Assert.assertEquals ( expectedVnicToVfMap , vfScheduler.getVnicToVfMap ( vmId , hostId ) ) ; }

Target:
private void assertHostNotValid ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > vnics , java.util.List < java.lang.String > exceptedProblematicVnics ) { validateVnics ( vnics , exceptedProblematicVnics ) ; validateVnicToVfMap ( ) ; }
Source:
protected void initializeModelHandlers ( ) { super . initializeModelHandlers ( ) ; if ( ( taskHandler ) != null ) { taskHandler.updateTree ( ) ; } }

Target:
protected void initializeModelHandlers ( org.ovirt.engine.ui.uicommonweb.models.events.TaskListModel model ) { super . initializeModelHandlers ( model ) ; if ( ( taskHandler ) != null ) { taskHandler.updateTree ( ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > refreshStoragePool ( java.lang.String spUUID , java.lang.String msdUUID , int masterVersion ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getQemuImageInfo ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
public void moveDiskToGluster ( ) { initializeCommand ( ImageOperation.Move ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void moveDiskToGluster ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } getSearchCommand ( ) . execute ( ) ; }
Source:
public void setUser ( java.lang.String user ) { _dialog.setUser ( user ) ; }

Target:
public void useDefaultKeyPair ( ) throws java.security.KeyStoreException { _dialog.useDefaultKeyPair ( ) ; }
Source:
public org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter eval ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster ) { final org.ovirt.engine.core.common.businessentities.network.Network network = networkDao.get ( networkCluster.getNetworkId ( ) ) ; network.setCluster ( networkCluster ) ; return new org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter ( networkCluster.getClusterId ( ) , network ) ; }

Target:
public org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter apply ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster ) { final org.ovirt.engine.core.common.businessentities.network.Network network = networkDao.get ( networkCluster.getNetworkId ( ) ) ; network.setCluster ( networkCluster ) ; return new org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter ( networkCluster.getClusterId ( ) , network ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getvds_name ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( object ) ) . getVdsName ( ) ; }
Source:
public void onSuccess ( org.ovirt.engine.ui.frontend.communication.VdcOperation < org.ovirt.engine.core.common.queries.QueryType , org.ovirt.engine.core.common.queries.QueryParametersBase > operation , org.ovirt.engine.core.common.queries.QueryReturnValue result ) { org.junit.Assert.fail ( "Should not get here" ) ; }

Target:
public void onSuccess ( org.ovirt.engine.ui.frontend.communication.VdcOperation < org.ovirt.engine.core.common.queries.QueryType , org.ovirt.engine.core.common.queries.QueryParametersBase > operation , org.ovirt.engine.core.common.queries.QueryReturnValue result ) { org.junit.jupiter.api.Assertions.fail ( "Should not get here" ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllNics ( ) { return allNics ; }

Target:
protected boolean shouldExecute ( ) { return ! ( hostSetupNetworksParameters.isEmptyRequest ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel ) ( ev.getContext ( ) ) ) ; model.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel ) ( ev.getContext ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; updatePriority ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ) ; }
Source:
public void setPendingVmemSize ( int value ) { vdsDynamic.setPendingVmemSize ( value ) ; }

Target:
public void setPendingVmemSize ( int value ) { vdsDynamic.setPendingVmemSize ( value ) ; calculateFreeSchedulingMemoryCache ( ) ; }
Source:
protected void commonInitialize ( ) { priorityUtil = new org.ovirt.engine.ui.uicommonweb.models.vms.PriorityUtil ( getModel ( ) ) ; virtioScsiUtil = new org.ovirt.engine.ui.uicommonweb.models.vms.VirtioScsiUtil ( getModel ( ) ) ; }

Target:
protected void commonInitialize ( ) { priorityUtil = new org.ovirt.engine.ui.uicommonweb.models.vms.PriorityUtil ( getModel ( ) ) ; virtioScsiUtil = new org.ovirt.engine.ui.uicommonweb.models.vms.VirtioScsiUtil ( getModel ( ) ) ; getModel ( ) . getVmId ( ) . setIsAvailable ( false ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( java.lang.String.format ( "%saddresses/management_port" , VdsmEnv.CONFIG_PREFIX ) , java.lang.Integer.toString ( _vds.getport ( ) ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( java.lang.String.format ( "%saddresses/management_port" , VdsmEnv.CONFIG_PREFIX ) , java.lang.Integer.toString ( _vds.getPort ( ) ) ) ; return null ; }
Source:
public org.ovirt.engine.core.common.businessentities.VM getVM ( ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getSelectedItem ( ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel > getSelectedHasConsoleModels ( ) { return selectedHasConsoleModels ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getWithoutMigratingVms ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetVdsGroupsWithoutMigratingVms" , org.ovirt.engine.core.dao.VdsGroupDaoImpl.VdsGroupRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getWithoutMigratingVms ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetClustersWithoutMigratingVms" , org.ovirt.engine.core.dao.ClusterDaoImpl.ClusterRowMapper.instance , parameterSource ) ; }
Source:
public void replace_callReplaceTwoTimes ( ) { java.lang.String text = "AdminName=$AdminName$ AdminPassword=$AdminPassword$" ; java.lang.String firstPart = runAndCheck ( text , "$AdminPassword$" , "$A$AA$" , "AdminName=$AdminName$ AdminPassword=$A$AA$" ) ; runAndCheck ( firstPart , "$AdminName$" , "$B$BB$" , "AdminName=$B$BB$ AdminPassword=$A$AA$" ) ; }

Target:
public void replaceCallReplaceTwoTimes ( ) { java.lang.String text = "AdminName=$AdminName$ AdminPassword=$AdminPassword$" ; java.lang.String firstPart = runAndCheck ( text , "$AdminPassword$" , "$A$AA$" , "AdminName=$AdminName$ AdminPassword=$A$AA$" ) ; runAndCheck ( firstPart , "$AdminName$" , "$B$BB$" , "AdminName=$B$BB$ AdminPassword=$A$AA$" ) ; }
Source:
java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > runMultipleQueries ( java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryType > vdcQueryTypeList , java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > paramsList ) ;

Target:
java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > runMultipleQueries ( java.util.ArrayList < org.ovirt.engine.core.common.queries.QueryType > queryTypeList , java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > paramsList ) ;
Source:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { persistCommand ( parentCommand , false ) ; }

Target:
protected void clearTaskHandlers ( ) { taskHandlers = null ; }
Source:
public void statusNotSupportedForHostInstallation ( ) { org.mockito.Mockito.when ( oldHost.getStatus ( ) ) . thenReturn ( VDSStatus.Up ) ; validator = createValidatorForHostInstallation ( ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostInstallation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) ) ; }

Target:
public void statusNotSupportedForHostInstallation ( ) { org.mockito.Mockito.when ( oldHost.getStatus ( ) ) . thenReturn ( VDSStatus.Up ) ; validator = createValidatorForHostInstallation ( ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostInstallation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getLastVdsRunOn ( ) { return this . vmDynamic.getlast_vds_run_on ( ) ; }

Target:
public java.lang.Long getLastWatchdogEvent ( ) { return vmDynamic.getLastWatchdogEvent ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.DISABLED ) ; }
Source:
public void rerun ( ) { setFlow ( null ) ; super . rerun ( ) ; }

Target:
public void rerun ( ) { cleanupPassthroughVnics ( ) ; setFlow ( null ) ; acquireHostDevicesLock ( ) ; super . rerun ( ) ; }
Source:
protected void addCanDoActionMessage ( java.lang.String message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message ) ; }

Target:
protected void addValidationMessageVariable ( java.lang.String varName , java.lang.Object varValue ) { getReturnValue ( ) . getValidationMessages ( ) . add ( java.lang.String.format ( "$%s %s" , varName , varValue ) ) ; }
Source:
public void setAnonymousHugePages ( int value ) { this . mVdsDynamic.setAnonymousHugePages ( value ) ; }

Target:
public void setAnonymousHugePages ( int value ) { this . mVdsStatistics.setAnonymousHugePages ( value ) ; }
Source:
public void setPuppetclass_ids ( int [ ] puppetclass_ids ) { this . puppetclass_ids = puppetclass_ids ; }

Target:
public void setPuppetClassIds ( int [ ] puppetClassIds ) { this . puppetClassIds = puppetClassIds ; }
Source:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > osDisplayTypes = getDisplayTypes ( osId , version ) ; return osDisplayTypes == null ? false : osDisplayTypes.contains ( DisplayType.qxl ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.DisplayType > > getGraphicsAndDisplays ( int osId , org.ovirt.engine.core.compat.Version version ) { return graphicsAndDisplays.get ( osId ) . get ( version ) ; }
Source:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol bootProtocol ) { this . bootProtocol = bootProtocol ; }

Target:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol bootProtocol ) { this . bootProtocol = ( bootProtocol == null ) ? org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol.NONE : bootProtocol ; }
Source:
public void testValidPatternName3 ( ) { org.junit.Assert.assertTrue ( poolNameValidation.validate ( "??rt" . replace ( '?' , VmPool.MASK_CHARACTER ) ) . getSuccess ( ) ) ; }

Target:
public void testValidPatternName3 ( ) { org.junit.jupiter.api.Assertions.assertTrue ( poolNameValidation.validate ( "??rt" . replace ( '?' , VmPool.MASK_CHARACTER ) ) . getSuccess ( ) ) ; }
Source:
public void testValidModifiedBonds_failsWhenSlavesValidationFails ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , null , false , false ) ; }

Target:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }
Source:
protected boolean validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams , java.util.List < java.lang.String > reasons ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) , vmStaticFromParams.getCustomProperties ( ) , reasons ) ; }

Target:
protected void unlockSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.bll.VmCommand.getSnapshotDao ( ) . updateStatus ( snapshotId , Snapshot.SnapshotStatus.OK ) ; }
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 ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { org.ovirt.engine.core.common.businessentities.StorageDomain result = createStorageDomain ( domainSpaceGB ) ; result.setId ( ( ( org.ovirt.engine.core.compat.Guid ) ( invocation.getArguments ( ) [ 0 ] ) ) ) ; return result ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmTemplate getVmTemplate ( ) { return createVmTemplate ( ) ; }
Source:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndNetmaskIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "" , null ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ) ; }

Target:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressIsNull ( ) throws java.lang.Exception { doTestIpConfiguredForStaticBootProtocol ( null , "255.255.255.0" ) ; }
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 value ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.editConsoleLabel ( ) ) ; }
Source:
private void readUsbItem ( org.ovirt.engine.core.compat.backendcompat.XmlNode node ) { vmBase.setUsbPolicy ( org.ovirt.engine.core.common.businessentities.UsbPolicy.forStringValue ( node.SelectSingleNode ( "rasd:UsbPolicy" , _xmlNS ) . innerText ) ) ; }

Target:
private void readMemoryItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { vmBase.setMemSizeMb ( java.lang.Integer.parseInt ( node.SelectSingleNode ( "rasd:VirtualQuantity" , _xmlNS ) . innerText ) ) ; }
Source:
public static org.ovirt.engine.core.dal.dbbroker.DbFacade getInstance ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacadeLocator.getDbFacade ( ) ; }

Target:
public org.ovirt.engine.core.dao.FenceAgentDAO getFenceAgentDao ( ) { return getDao ( org.ovirt.engine.core.dao.FenceAgentDAO.class ) ; }
Source:
public static org.ovirt.engine.core.vdsbroker.VdsManager buildVdsManager ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = new org.ovirt.engine.core.vdsbroker.VdsManager ( vds ) ; return vdsManager ; }

Target:
public void updatePartialDynamicData ( org.ovirt.engine.core.common.businessentities.NonOperationalReason nonOperationalReason , java.lang.String maintenanceReason ) { cachedVds.getDynamicData ( ) . setNonOperationalReason ( nonOperationalReason ) ; cachedVds.getDynamicData ( ) . setMaintenanceReason ( maintenanceReason ) ; dbFacade.getVdsDynamicDao ( ) . updateStatusAndReasons ( cachedVds.getDynamicData ( ) ) ; }
Source:
private java.util.Map < java.lang.Integer , org.ovirt.engine.core.common.queries.VmIconIdSizePair > getIconDefaults ( ) { return ( ( java.util.Map < java.lang.Integer , org.ovirt.engine.core.common.queries.VmIconIdSizePair > ) ( getEntity ( java.util.Map.class , QueryType.GetVmIconDefaults , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , "Icon defaults" ) ) ) ; }

Target:
private java.util.Map < java.lang.Integer , org.ovirt.engine.core.common.queries.VmIconIdSizePair > getIconDefaults ( ) { return ( ( java.util.Map < java.lang.Integer , org.ovirt.engine.core.common.queries.VmIconIdSizePair > ) ( getEntity ( java.util.Map.class , QueryType.GetVmIconDefaults , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) , "Icon defaults" ) ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.network.IPv4Address createDefaultIpAddress ( ) { org.ovirt.engine.core.common.businessentities.network.IPv4Address output = new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ; output.setBootProtocol ( NetworkBootProtocol.NONE ) ; return output ; }

Target:
private static org.ovirt.engine.core.common.businessentities.network.IPv4Address createDefaultIpAddress ( ) { org.ovirt.engine.core.common.businessentities.network.IPv4Address output = new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ; output.setBootProtocol ( Ipv4BootProtocol.NONE ) ; return output ; }
Source:
public void testGetMessageFrenchLocale ( ) { java.lang.String testKey = "obrand.common.main_header_label" ; java.lang.String result = testManager.getMessage ( testKey , java.util.Locale.FRENCH ) ; org.junit.Assert.assertEquals ( "The result should be 'Main header(fr)'" , "Main header(fr)" , result ) ; }

Target:
public void testGetMessageFrenchLocale ( ) { java.lang.String testKey = "obrand.common.main_header_label" ; java.lang.String result = testManager.getMessage ( testKey , java.util.Locale.FRENCH ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Main header(fr)" , result , "The result should be 'Main header(fr)'" ) ; }
Source:
public void setFirst ( T value ) { getPair ( ) . setFirst ( value ) ; }

Target:
public org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId getQueryableId ( ) { return new org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId ( getMemberId ( org.ovirt.engine.core.common.utils.PairQueryable.getFirst ( ) ) , getMemberId ( org.ovirt.engine.core.common.utils.PairQueryable.getSecond ( ) ) ) ; }
Source:
protected void InitializeStorageDomain ( ) { org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getStorageDomain ( ) . setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; }

Target:
protected void initializeStorageDomain ( ) { org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getStorageDomain ( ) . setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.action.VdcActionType forValue ( int value ) { return org.ovirt.engine.core.common.action.VdcActionType.mappings.get ( value ) ; }

Target:
public static org.ovirt.engine.core.common.action.ActionType forValue ( int value ) { return org.ovirt.engine.core.common.action.ActionType.mappings.get ( value ) ; }
Source:
public void setdisplay_ip ( java.lang.String value ) { this . mVmDynamic.setdisplay_ip ( value ) ; }

Target:
public void setAcpiEnable ( java.lang.Boolean value ) { this . vmDynamic.setacpi_enable ( value ) ; }
Source:
protected boolean saveDiskIfNotExists ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image ) { if ( ! ( org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getBaseDiskDao ( ) . exists ( image.getId ( ) ) ) ) { org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getBaseDiskDao ( ) . save ( image ) ; return true ; } return false ; }

Target:
protected boolean saveDiskIfNotExists ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image ) { if ( ! ( baseDiskDao.exists ( image.getId ( ) ) ) ) { baseDiskDao.save ( image ) ; return true ; } return false ; }
Source:
private boolean isOutAverageUpperLimitInSync ( ) { return java.util.Objects.equals ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface.getOutAverageUpperlimit ( ifaceQos ) , org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface.getOutAverageUpperlimit ( hostNetworkQos ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.IpV6Address getIpv6PrimaryAddress ( ) { return networkDataCenterIpConfigurationDefinition.getIpv6PrimaryAddress ( ) ; }
Source:
private void assertCorrectGetAllResult ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
private void assertCorrectGetAllResult ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void testConnection ( ) { }

Target:
public void testConnection ( ) { try { getClient ( ) . execute ( new com.woorea.openstack.base.client.OpenStackRequest ( getClient ( ) , com.woorea.openstack.base.client.HttpMethod.GET , "" , null , null ) ) ; } catch ( java.lang.RuntimeException e ) { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.PROVIDER_FAILURE , e ) ; } }
Source:
public void testGetLinuxOSs ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( ( OsRepositoryImpl.INSTANCE.getLinuxOSs ( ) . get ( 0 ) ) == 777 ) ) ; }

Target:
public void testGetLinuxOSs ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.getLinuxOss ( ) . contains ( 777 ) ) ; }
Source:
void handleBootSequenceDownButtonClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( bootSequenceModel ) != null ) { bootSequenceModel.ExecuteCommand ( bootSequenceModel.getMoveItemDownCommand ( ) ) ; } }

Target:
void handleBootSequenceDownButtonClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( bootSequenceModel ) != null ) { bootSequenceModel.executeCommand ( bootSequenceModel.getMoveItemDownCommand ( ) ) ; } }
Source:
protected void executeCommand ( ) { getMacPoolDao ( ) . update ( getMacPoolEntity ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . modifyPool ( getMacPoolEntity ( ) ) ; setSucceeded ( true ) ; getReturnValue ( ) . setActionReturnValue ( getMacPoolId ( ) ) ; }

Target:
protected void executeCommand ( ) { getMacPoolDao ( ) . update ( getMacPoolEntity ( ) ) ; poolPerDc.modifyPool ( getMacPoolEntity ( ) ) ; setSucceeded ( true ) ; getReturnValue ( ) . setActionReturnValue ( getMacPoolId ( ) ) ; }
Source:
public void testIsNetworkInSyncWhenBothQosIsNull ( ) { iface.setQos ( null ) ; networkQos = null ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenBothQosIsNull ( ) { iface.setQos ( null ) ; networkQos = null ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected org.ovirt.engine.api.model.Host populate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.Host populate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { org.ovirt.engine.api.model.Host host = addStatistics ( model , entity , uriInfo , httpHeaders ) ; addCertificateInfo ( host ) ; return host ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePool getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( super . getEntity ( ) ) ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public void testList ( ) throws java.lang.Exception { setUpBricksQueryExpectations ( null ) ; javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; collection.setUriInfo ( uriInfo ) ; control.replay ( ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { setUpBricksQueryExpectations ( null ) ; javax.ws.rs.core.UriInfo uriInfo = setUpActionsUriExpectations ( ) ; collection.setUriInfo ( uriInfo ) ; control.replay ( ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public java.lang.Object runInTransaction ( ) { getStoragePoolDAO ( ) . update ( getStoragePool ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { int master_domain_version = getStoragePoolDAO ( ) . increaseStoragePoolMasterVersion ( getStoragePool ( ) . getId ( ) ) ; getStoragePool ( ) . setmaster_domain_version ( master_domain_version ) ; return null ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getByName ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String glusterCommand , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStage stage , java.lang.String hookName ) ;

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getGlusterHook ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String glusterCommand , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStage stage , java.lang.String hookName ) ;
Source:
protected void updateReturnStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc newReturnStatus ) { result.setXmlRpcStatus ( newReturnStatus ) ; }

Target:
protected void updateReturnStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.Status newReturnStatus ) { result.setStatus ( newReturnStatus ) ; }
Source:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase createLoggable ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; loggable.setClusterId ( networkCluster.getClusterId ( ) ) ; loggable.addCustomValue ( "NetworkName" , networkName ) ; return loggable ; }

Target:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase createLoggable ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; loggable.setClusterName ( getClusterName ( ) ) ; loggable.addCustomValue ( "NetworkName" , networkName ) ; return loggable ; }
Source:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 ) , 2 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { initTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 ) , 2 , 0 , false ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
public void storagePoolNameDefault ( ) { final java.lang.String s = b.getStoragePoolName ( ) ; org.junit.Assert.assertEquals ( "" , s ) ; }

Target:
public void storagePoolNameDefault ( ) { final java.lang.String s = b.getStoragePoolName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( "" , s ) ; }