auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.VDS localStorageHost = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; clusterGuideModel.localStorageHost = localStorageHost ; clusterGuideModel.UpdateOptionsLocalFS ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.VDS localStorageHost = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; clusterGuideModel.localStorageHost = localStorageHost ; clusterGuideModel.updateOptionsLocalFS ( ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getSerial ( ) ; }
Source:
private void initExpander ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { numVfsExpander.initWithContent ( numVfsExpanderContent.getElement ( ) ) ; numVfsExpander.setTitleWhenExpended ( constants.numOfVfsSetting ( ) ) ; numVfsExpander.setTitleWhenCollapsed ( constants.numOfVfsSetting ( ) ) ; }

Target:
private void initExpander ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { numVfsExpander.initWithContent ( numVfsExpanderContent.getElement ( ) ) ; numVfsExpander.setTitleWhenExpanded ( constants.numOfVfsSetting ( ) ) ; numVfsExpander.setTitleWhenCollapsed ( constants.numOfVfsSetting ( ) ) ; }
Source:
public void testValidateImageNotInTemplateFalse ( ) { org.mockito.Mockito.when ( vmTemplateDAO.get ( mockSourceImage ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ) ; org.junit.Assert.assertFalse ( "validation should succeed" , cmd.validateImageNotInTemplate ( ) ) ; }

Target:
public void testValidateImageNotInTemplateTrue ( ) { org.mockito.Mockito.when ( vmTemplateDAO.get ( mockSourceImageAndGetId ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( "validation should succeed" , cmd.validateImageNotInTemplate ( ) ) ; }
Source:
public static boolean isOsSupportedForVirtIoScsi ( int osId , org.ovirt.engine.core.compat.Version clusterVersion ) { java.util.List < java.lang.String > diskInterfaces = org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getDiskInterfaces ( osId , clusterVersion ) ; return diskInterfaces.contains ( DiskInterface.VirtIO_SCSI.toString ( ) ) ; }

Target:
public static boolean isDiskInterfaceSupportedByOs ( int osId , org.ovirt.engine.core.compat.Version clusterVersion , org.ovirt.engine.core.common.businessentities.DiskInterface diskInterface ) { java.util.List < java.lang.String > diskInterfaces = org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getDiskInterfaces ( osId , clusterVersion ) ; return diskInterfaces.contains ( diskInterface.name ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult networkNotAttachedToCluster ( final org.ovirt.engine.core.common.businessentities.network.Network network ) { return org.ovirt.engine.core.bll.network.dc.NetworkCommon.getNetworkClusterDAO ( ) . getAllForNetwork ( network.getId ( ) ) . isEmpty ( ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_CLUSTER_NETWORK_IN_USE ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult networkExists ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , org.ovirt.engine.core.bll.utils.VmDeviceUtils.EMPTY_SPEC_PARAMS , true , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addConsoleDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONSOLE , VmDeviceType.CONSOLE , getConsoleDeviceSpecParams ( ) , true , false ) ; }
Source:
public void setStorageDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( storageDomain , value ) ) ) { storageDomain = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "StorageDomain" ) ) ; } }

Target:
public void setStorageDomain ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( storageDomain , value ) ) ) { storageDomain = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "StorageDomain" ) ) ; } }
Source:
public boolean handlesEvent ( com.google.gwt.view.client.CellPreviewEvent < org.ovirt.engine.ui.uicommonweb.models.EntityModel > event ) { return org.ovirt.engine.ui.common.widget.table.column.AbstractCheckboxColumn.handlesEvent ( event ) ; }

Target:
public boolean handlesEvent ( com.google.gwt.view.client.CellPreviewEvent < org.ovirt.engine.ui.uicommonweb.models.EntityModel > event ) { return org.ovirt.engine.ui.common.widget.table.cell.EventHandlingCellMixin.inputHandlesClick ( event ) ; }
Source:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public static org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy getFromStorageDomainId ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.bll.provider.ProviderProxyFactory providerProxyFactory ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomainStatic = getDbFacade ( ) . getStorageDomainStaticDao ( ) . get ( storageDomainId ) ; if ( storageDomainStatic != null ) { return org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy.getProviderFromStorageDomainStatic ( storageDomainStatic , providerProxyFactory ) ; } return null ; }

Target:
public static org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy getFromStorageDomainId ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.bll.provider.ProviderProxyFactory providerProxyFactory ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomainStatic = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.StorageDomainStaticDao.class ) . get ( storageDomainId ) ; if ( storageDomainStatic != null ) { return org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy.getProviderFromStorageDomainStatic ( storageDomainStatic , providerProxyFactory ) ; } return null ; }
Source:
public void testNullKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtilsTest.NULL_KEY_VAL ) ; org.junit.Assert.assertEquals ( 0 , map.size ( ) ) ; }

Target:
public void testNullKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.utils.StringMapUtils.string2Map ( org.ovirt.engine.core.utils.StringMapUtilsTest.NULL_KEY_VAL ) ; org.junit.Assert.assertEquals ( 0 , map.size ( ) ) ; }
Source:
private void mAC_PropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { if ( ( e.PropertyName.equals ( "IsChangeAllowed" ) ) && ( ! ( getMAC ( ) . getIsChangable ( ) ) ) ) { getMAC ( ) . setIsValid ( true ) ; } }

Target:
private void mAC_PropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { if ( ( e.propertyName.equals ( "IsChangeAllowed" ) ) && ( ! ( getMAC ( ) . getIsChangable ( ) ) ) ) { getMAC ( ) . setIsValid ( true ) ; } }
Source:
public void copyDataTo ( ovirt_engine_dwh.aggregationtohourly_3_4.AggregationToHourly.dc_aggregate_dateStruct other ) { other.var_name = this . var_name ; other.var_value = this . var_value ; other.var_datetime = this . var_datetime ; }

Target:
public void copyDataTo ( ovirt_engine_dwh.aggregationtohourly_3_4.AggregationToHourly.row18Struct other ) { other.var_name = this . var_name ; other.var_datetime = this . var_datetime ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.nicHotplugSupportMap = ( ( java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.lang.Boolean > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { customPropertiesList = ( ( java.util.Map < org.ovirt.engine.core.compat.Version , java.util.Map < java.lang.String , java.lang.String > > ) ( returnValue ) ) ; }
Source:
public void canMigrateMacsToAnotherMacPoolWhenThereAreNoDuplicates ( ) { org.mockito.Mockito.when ( vmNicDao.getAllMacsByClusterId ( cluster.getId ( ) ) ) . thenReturn ( macsToMigrate ) ; org.junit.Assert.assertThat ( underTest.canMigrateMacsToAnotherMacPool ( cluster , targetMacPoolId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void canMigrateMacsToAnotherMacPoolWhenThereAreNoDuplicates ( ) { org.mockito.Mockito.when ( vmNicDao.getAllMacsByClusterId ( cluster.getId ( ) ) ) . thenReturn ( macsToMigrate ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.canMigrateMacsToAnotherMacPool ( cluster , targetMacPoolId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected boolean isVisible ( org.ovirt.engine.core.common.businessentities.gluster.GlusterTaskSupport value ) { return ! ( ( value == null ) || ( ( value.getAsyncTask ( ) ) == null ) ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getNewVolumeCommand ( ) ; }
Source:
public boolean isLiveMergeSupported ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( vm != null ) && ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveMergeSupported , vm.getVdsGroupCompatibilityVersion ( ) . toString ( ) ) ) ) ; }

Target:
public boolean isLiveMergeSupported ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( vm != null ) && ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveMergeSupported , vm.getCompatibilityVersion ( ) . toString ( ) ) ) ) ; }
Source:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . setIsCustomPropertiesTabAvailable ( false ) ; }

Target:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . setIsCustomPropertiesTabAvailable ( false ) ; getModel ( ) . getLabelList ( ) . setIsAvailable ( false ) ; }
Source:
private void enableEditPoolFields ( ) { descriptionEditor.setEnabled ( true ) ; prestartedVmsEditor.setEnabled ( true ) ; quotaEditor.setEnabled ( true ) ; editPrestartedVmsEditor.setEnabled ( true ) ; incraseNumOfVmsEditor.setEnabled ( true ) ; }

Target:
private void enableEditPoolFields ( ) { descriptionEditor.setEnabled ( true ) ; prestartedVmsEditor.setEnabled ( true ) ; quotaEditor.setEnabled ( true ) ; editPrestartedVmsEditor.setEnabled ( true ) ; incraseNumOfVmsEditor.setEnabled ( true ) ; editMaxAssignedVmsPerUserEditor.setEnabled ( true ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getSourceVmFromDb ( ) { if ( ( sourceVm ) == null ) { sourceVm = org.ovirt.engine.core.bll.CloneVmCommand.getVmDAO ( ) . get ( oldVmId ) ; } return sourceVm ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getSourceVmFromDb ( ) { if ( ( sourceVm ) == null ) { sourceVm = org.ovirt.engine.core.bll.CloneVmCommand.getVmDao ( ) . get ( oldVmId ) ; } return sourceVm ; }
Source:
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.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:
private void Frontend_QueryStarted ( ) { ( queryCounter ) ++ ; if ( ( getProgress ( ) ) == null ) { StartProgress ( null ) ; } }

Target:
private void frontend_QueryComplete ( ) { ( queryCounter ) -- ; if ( ( queryCounter ) == 0 ) { stopProgress ( ) ; } }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getStopRebalanceCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getStatusRebalanceCommand ( ) ; }
Source:
public void setItems ( java.util.Collection < T > value ) { java.util.SortedSet < T > items = new java.util.TreeSet < T > ( comparator ) ; items.addAll ( value ) ; super . setItems ( items ) ; }

Target:
public void setItems ( java.util.Collection < T > value ) { java.util.Collection < T > sortedItems = sortItems ( value ) ; super . setItems ( sortedItems ) ; }
Source:
public void setConsole_current_user_name ( java.lang.String console_cur_user_name ) { this . console_cur_user_name = console_cur_user_name ; }

Target:
public void setHibernationVolHandle ( java.lang.String value ) { this . hibernationVolHandle = value ; }
Source:
public java.lang.String getToolTip ( ) { return null ; }

Target:
public java.lang.String getMenuItemToolTip ( ) { return null ; }
Source:
private void clearTimer ( org.ovirt.engine.core.compat.Guid domainId ) { java.lang.String jobId = _timers.remove ( domainId ) ; if ( jobId != null ) { org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( jobId ) ; } }

Target:
private void clearTimer ( org.ovirt.engine.core.compat.Guid domainId ) { java.lang.String jobId = _timers.remove ( domainId ) ; if ( jobId != null ) { getSchedulUtil ( ) . deleteJob ( jobId ) ; } }
Source:
public void setMountOptions ( java.lang.String mountOptions ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( this . mountOptions , mountOptions ) ) ) { this . mountOptions = mountOptions ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "MountOptions" ) ) ; } }

Target:
public void setMountOptions ( java.lang.String mountOptions ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( this . mountOptions , mountOptions ) ) ) { this . mountOptions = mountOptions ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "MountOptions" ) ) ; } }
Source:
public org.ovirt.engine.core.compat.Guid getTaskID ( ) { return getCreationInfo ( ) . getTaskID ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsmTaskId ( ) { return getCreationInfo ( ) . getVdsmTaskId ( ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetDomainExpectations ( StorageType.NFS , false ) ; try { resource.get ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetDomainExpectations ( StorageType.NFS , false ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { treeScrollPosition = treeContainer.getVerticalScrollPosition ( ) ; loginButton.getCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { treeScrollPosition = treeContainer.getVerticalScrollPosition ( ) ; loginButton.getCommand ( ) . execute ( ) ; }
Source:
private void InitHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.TagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.Init ( ) ; org.ovirt.engine.core.bll.VdsHandler.Init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; }

Target:
private void InitHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.TagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.Init ( ) ; org.ovirt.engine.core.bll.VdsHandler.Init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
private void logFailureToRestartHighlyAvailableVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase event = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; event.setVmId ( vmId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( event , AuditLogType.EXCEEDED_MAXIMUM_NUM_OF_RESTART_HA_VM_ATTEMPTS ) ; }

Target:
private void logFailureToRestartHighlyAvailableVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase event = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; event.setVmId ( vmId ) ; auditLogDirector.log ( event , AuditLogType.EXCEEDED_MAXIMUM_NUM_OF_RESTART_HA_VM_ATTEMPTS ) ; }
Source:
public void incorrectJsonNotValid ( ) { org.junit.Assert.assertEquals ( helper.validate ( null , "this is not a valid json" ) . isOk ( ) , false ) ; }

Target:
public void incorrectJsonNotValid ( ) { org.junit.Assert.assertFalse ( helper.validate ( null , "this is not a valid json" ) . isOk ( ) ) ; }
Source:
public org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb ) { if ( isVdsFailedToRunVm ( vds.getId ( ) ) ) { sb.append ( "have failed running this VM in the current selection cycle" ) ; return org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_CLUSTER ; } return null ; }

Target:
public org.ovirt.engine.core.dal.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) { if ( isVdsFailedToRunVm ( vds.getId ( ) ) ) { sb.append ( "have failed running this VM in the current selection cycle" ) ; return org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VDS_VM_CLUSTER ; } return null ; }
Source:
public void replace_keyNotContainsDollar ( ) { runAndCheck ( sb ( "AdminPassword=someKey" ) , "someKey" , "AAA" , "AdminPassword=AAA" ) ; }

Target:
public void replace_valueContainsDollar ( ) { runAndCheck ( "AdminPassword=$AdminPassword$" , "$AdminPassword$" , "$A$AA$" , "AdminPassword=$A$AA$" ) ; }
Source:
public void onSuccess ( java.lang.Object returnValue ) { showAvailableVolumes ( returnValue ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { showAvailableVolumes ( returnValue ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }
Source:
public int compareTo ( ovirt_engine_dwh.configurationsync_3_2.ConfigurationSync.updateFirstSyncStruct other ) { int returnValue = - 1 ; return returnValue ; }

Target:
public void copyDataTo ( ovirt_engine_dwh.configurationsync_3_2.ConfigurationSync.updateFirstSyncStruct other ) { other.var_name = this . var_name ; other.var_value = this . var_value ; other.var_datetime = this . var_datetime ; }
Source:
private static java.lang.String extractSubnet ( java.util.Map < java.lang.String , java.lang.Object > nic ) { return ( ( java.lang.String ) ( nic.get ( "netmask" ) ) ) ; }

Target:
private static java.lang.String extractSubnet ( java.util.Map < java.lang.String , java.lang.Object > properties ) { return ( ( java.lang.String ) ( properties.get ( "netmask" ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.VolumeType getVolumeTypeForDomain ( ) { if ( ( volumeTypeForDomain ) == null ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic sdStatic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDao ( ) . get ( storageDomainId ) ; volumeTypeForDomain = org.ovirt.engine.core.bll.HibernateVmCommand.getMemoryVolumeTypeForStorageDomain ( sdStatic.getStorageType ( ) ) ; } return volumeTypeForDomain ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.VolumeType getVolumeTypeForDomain ( ) { if ( ( volumeTypeForDomain ) == null ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic sdStatic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDao ( ) . get ( storageDomainId ) ; volumeTypeForDomain = org.ovirt.engine.core.bll.memory.MemoryUtils.storageTypeToMemoryVolumeType ( sdStatic.getStorageType ( ) ) ; } return volumeTypeForDomain ; }
Source:
private void plug ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.HotPlugDiskToVm , createHotPlugDiskToVmParameters ( true ) , new org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback ( ) { @ java.lang.Override public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { } } , this ) ; }

Target:
private void plug ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.HotPlugDiskToVm , createPlugOrUnplugParams ( true ) , new org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback ( ) { @ java.lang.Override public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { } } , this ) ; }
Source:
protected byte [ ] buildNetworkResponse ( java.lang.String reason ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcResponse response = org.ovirt.vdsm.jsonrpc.client.utils.JsonUtils.buildErrorResponse ( null , getHostname ( ) , reason ) ; return response.toByteArray ( ) ; }

Target:
protected byte [ ] buildNetworkResponse ( java.lang.String reason ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcResponse response = org.ovirt.vdsm.jsonrpc.client.utils.JsonUtils.buildErrorResponse ( null , getClientId ( ) , reason ) ; return response.toByteArray ( ) ; }
Source:
public java.util.Map deleteImage ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgGUID , java.lang.String postZero , java.lang.String force ) { return getOKStatusNotImplemented ( ) ; }

Target:
public java.util.Map HostDevListByCaps ( ) { return hostService.hostdevListByCaps ( ) ; }
Source:
public void testLiveSnapshotWhenNoPluggedDiskSnapshot ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isLiveSnapshotApplicable ( ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.snapshots.CreateSnapshotsForVmCommandTest.getEmptyDiskList ( ) ) . when ( cmd ) . getDisksList ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void testLiveSnapshotWhenNoPluggedDiskSnapshot ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isLiveSnapshotApplicable ( ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.snapshots.CreateSnapshotForVmCommandTest.getEmptyDiskList ( ) ) . when ( cmd ) . getDisksList ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc startSpice ( java.lang.String vdsIp , int port , java.lang.String ticket ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;
Source:
void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants , org.ovirt.engine.ui.webadmin.ApplicationDynamicConstants dynamicConstants ) { titleLabel.setText ( constants.aboutPopupCaption ( ) ) ; closeButton.setText ( constants.closeButtonLabel ( ) ) ; copyrightNotice.setText ( dynamicConstants.copyRightNotice ( ) ) ; }

Target:
void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants , org.ovirt.engine.ui.webadmin.ApplicationDynamicMessages dynamicMessages ) { closeButton.setText ( constants.closeButtonLabel ( ) ) ; copyrightNotice.setText ( dynamicMessages.copyRightNotice ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity o1 , org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity o2 ) { return ( o1.getStatus ( ) . ordinal ( ) ) - ( o2.getStatus ( ) . ordinal ( ) ) ; }

Target:
public void makeSortable ( ) { makeSortable ( java.util.Comparator.comparingInt ( ( g ) -> g.getStatus ( ) . ordinal ( ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { UpdatePmModels ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { proxyDown ( ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceedsOnVolumeWithRemoveBricksTaskCompleted ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskCompleted , getBricks ( volumeWithRemoveBricksTaskCompleted ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > glusterBricks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > ) ( returnValue ) ) ; java.util.Collections.sort ( glusterBricks , new org.ovirt.engine.ui.uicommonweb.Linq.ServerBricksComparer ( ) ) ; setItems ( glusterBricks ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getGlusterBricksForServer ( new org.ovirt.engine.ui.uicommonweb.models.hosts.SetSortedRawItemsAsyncQuery ( new org.ovirt.engine.ui.uicommonweb.Linq.ServerBricksComparer ( ) ) , getEntity ( ) . getId ( ) ) ; }
Source:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.ImportVmFromOva , buildImportVmFromOvaParameters ( ) , true , callback , null ) ; }

Target:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( ActionType.ImportVmFromOva , buildImportVmFromOvaParameters ( ) , true , callback , null ) ; }
Source:
public static org.ovirt.engine.core.bll.interfaces.BackendInternal getInstance ( ) { return org.ovirt.engine.core.utils.ejb.EjbUtils.findBean ( BeanType.BACKEND , BeanProxyType.LOCAL ) ; }

Target:
public static org.ovirt.engine.core.bll.interfaces.BackendInternal getInstance ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.interfaces.BackendInternal.class ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterSnapshotInfo ( java.lang.String snapshotName , java.lang.String volumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeSnapshotDeleteAll ( java.lang.String volumeName ) ;
Source:
public void writeRequest ( java.io.OutputStream outputStream ) throws java.io.IOException { java.io.PrintWriter pr = new java.io.PrintWriter ( outputStream ) ; pr.println ( entityBody ) ; pr.flush ( ) ; }

Target:
public void writeRequest ( java.io.OutputStream outputStream ) throws java.io.IOException { java.io.PrintWriter pr = new java.io.PrintWriter ( new java.io.OutputStreamWriter ( outputStream , java.nio.charset.StandardCharsets.UTF_8 ) ) ; pr.println ( entityBody ) ; pr.flush ( ) ; }
Source:
protected java.util.List < Q > getBackendCollection ( org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { return getBackendCollection ( entityType , query , queryParams ) ; }

Target:
protected java.util.List < Q > getBackendCollection ( org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.QueryParametersBase queryParams ) { return getBackendCollection ( entityType , query , queryParams ) ; }
Source:
public void setNfsVersion ( org.ovirt.engine.core.common.businessentities.NfsVersion nfsVersion ) { if ( ( this . nfsVersion ) != nfsVersion ) { this . nfsVersion = nfsVersion ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "NfsVersion" ) ) ; } }

Target:
public void setNfsVersion ( java.lang.String nfsVersion ) { if ( ! ( java.util.Objects.equals ( this . nfsVersion , nfsVersion ) ) ) { this . nfsVersion = nfsVersion ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "NfsVersion" ) ) ; } }
Source:
protected void executeIrsBrokerCommand ( ) { setVDSReturnValue ( org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HSMGetAllTasksStatuses , new org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksStatusesVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) ) ) ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { setVDSReturnValue ( resourceManager.runVdsCommand ( VDSCommandType.HSMGetAllTasksStatuses , new org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksStatusesVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) ) ) ) ; }
Source:
protected java.lang.String prepareImage ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue vdsRetVal = runVdsCommand ( VDSCommandType.PrepareImage , getPrepareParameters ( vdsId ) ) ; return ( org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.FILE_URL_SCHEME ) + ( ( ( org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc ) ( vdsRetVal.getReturnValue ( ) ) ) . getImagePath ( ) ) ; }

Target:
protected java.lang.String prepareImage ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue vdsRetVal = runVdsCommand ( VDSCommandType.PrepareImage , getPrepareParameters ( vdsId ) ) ; return ( org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand.FILE_URL_SCHEME ) + ( ( ( org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc ) ( vdsRetVal.getReturnValue ( ) ) ) . getImagePath ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.QuotaCluster , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.quota.SubTabQuotaClusterPresenter.constants.quotaClusterSubTabLabel ( ) , 0 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.quota.SubTabQuotaClusterPresenter.constants.quotaClusterSubTabLabel ( ) , 0 ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult networkClusterAttachmentExists ( ) { return ( getOldNetworkCluster ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult networkClusterAttachmentExists ( ) { return ( getOldNetworkCluster ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void testAddGroup ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , getAdGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddUser , org.ovirt.engine.core.common.action.AddUserParameters.class , new java.lang.String [ ] { "AdGroup.id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetAdGroupById , org.ovirt.engine.core.common.queries.GetAdGroupByIdParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testAddGroup ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , getAdGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddUser , org.ovirt.engine.core.common.action.AddUserParameters.class , new java.lang.String [ ] { "AdGroup.id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetAdGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }
Source:
public void setCpuOverCommitDurationMinutes ( int value ) { this . cpuOverCommitDurationMinutes = value ; }

Target:
public void setBootTime ( java.lang.Long value ) { this . mVdsStatistics.setboot_time ( value ) ; }
Source:
public void canExecute ( ) { org.junit.Assert.assertEquals ( result , org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.BusinessEntityWithStatus < ? , ? > > singletonList ( toTest ) , toTest.getClass ( ) , action ) ) ; }

Target:
public void canExecute ( ) { org.junit.Assert.assertEquals ( result , org.ovirt.engine.core.common.ActionUtils.canExecute ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.BusinessEntityWithStatus < ? , ? > > singletonList ( toTest ) , toTest.getClass ( ) , action ) ) ; }
Source:
public boolean isHeartbeat ( ) { return this . isHeartbeat.get ( ) ; }

Target:
public int getOutgoingHeartbeat ( ) { return this . outgoingHeartbeat ; }
Source:
public static int getAvailableUnitForScsiDisk ( java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.lang.Integer > vmDeviceUnitMap , boolean reserveFirstLun ) { int unit = ( reserveFirstLun ) ? 1 : 0 ; while ( vmDeviceUnitMap.containsValue ( unit ) ) { unit ++ ; } return unit ; }

Target:
public static int getAvailableUnitForScsiDisk ( java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.lang.Integer > vmDeviceUnitMap , boolean reserveFirstTwoLuns ) { int unit = ( reserveFirstTwoLuns ) ? 2 : 0 ; while ( vmDeviceUnitMap.containsValue ( unit ) ) { unit ++ ; } return unit ; }
Source:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmStatic getVmStatic ( ) { org.ovirt.engine.core.common.businessentities.VmStatic vmStatic = new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; vmStatic.setos ( VmOsType.Unassigned ) ; vmStatic.setmem_size_mb ( 300 ) ; vmStatic.setis_stateless ( false ) ; vmStatic.setvmt_guid ( vmTemplateId ) ; return vmStatic ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmStatic getVmStatic ( ) { org.ovirt.engine.core.common.businessentities.VmStatic vmStatic = new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; vmStatic.setOs ( VmOsType.Unassigned ) ; vmStatic.setMemSizeMb ( 300 ) ; vmStatic.setStateless ( false ) ; vmStatic.setVmtGuid ( vmTemplateId ) ; return vmStatic ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters ) ; command.setContext ( context ) ; return command.endAction ( ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return runQueryImpl ( actionType , parameters , false , engineContext ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { return adaptRemove ( delegate :: remove ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Disk update ( org.ovirt.engine.api.v3.types.V3Disk disk ) { return adaptUpdate ( getDelegate ( ) :: update , disk ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { revealStorageView ( disk ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { revealStorageView ( disk ) ; }
Source:
public boolean isSearchStringMatch ( java.lang.String searchString ) { return searchString.trim ( ) . toLowerCase ( ) . startsWith ( "network" ) ; }

Target:
public boolean isSearchStringMatch ( java.lang.String searchString ) { return searchString.trim ( ) . toLowerCase ( ) . startsWith ( "profile" ) ; }
Source:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; }

Target:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return parent.addParents ( model ) ; }
Source:
protected org.ovirt.engine.core.dao.BaseDiskDao getBaseDiskDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBaseDiskDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.SnapshotDao getSnapshotDao ( ) { return org.ovirt.engine.core.bll.BaseImagesCommand.getDbFacade ( ) . getSnapshotDao ( ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask concreteCreateTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.concreteCreateTask ( taskId , this , asyncTaskCreationInfo , parentCommand ) ; }

Target:
private org.ovirt.engine.core.compat.Guid createTaskImpl ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.createTask ( taskId , this , asyncTaskCreationInfo , parentCommand , description , entitiesMap ) ; }
Source:
public void testMacToString ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToString ( 112910729216L ) , org.hamcrest.CoreMatchers.is ( "00:1a:4a:01:00:00" ) ) ; }

Target:
public void testMacToString ( ) { org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToString ( 112910729216L ) , org.hamcrest.CoreMatchers.is ( "00:1a:4a:01:00:00" ) ) ; }
Source:
protected org.ovirt.engine.api.model.Cluster doPopulate ( org.ovirt.engine.api.model.Cluster cluster , org.ovirt.engine.core.common.businessentities.VDSGroup entity ) { return parent.doPopulate ( cluster , entity ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster doPopulate ( org.ovirt.engine.core.common.businessentities.Cluster cluster , org.ovirt.engine.core.common.businessentities.Cluster entity ) { return parent.doPopulate ( cluster , entity ) ; }
Source:
public void validVnicProfileNetworkFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.validNetworkFilterId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validVnicProfileNullNetworkFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validNetworkFilterId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void removeAll ( java.util.Collection < org.ovirt.engine.core.compat.Guid > ids ) { for ( org.ovirt.engine.core.compat.Guid id : ids ) { remove ( id ) ; } }

Target:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getStatusSqlParameterSource ( id , status ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicStatus" , parameterSource ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { mappings.setExplanation ( templates.italicText ( ( ( java.lang.String ) ( model.getInterfaceMappingsExplanation ( ) . getEntity ( ) ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { mappings.setExplanation ( org.ovirt.engine.ui.common.widget.uicommon.popup.provider.NeutronAgentWidget.templates.italicText ( ( ( java.lang.String ) ( model.getInterfaceMappingsExplanation ( ) . getEntity ( ) ) ) ) ) ; }
Source:
protected boolean isCpuUpdatable ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.isCpuUpdatable ( cluster.getCpuName ( ) , cluster.getCompatibilityVersion ( ) ) ; }

Target:
protected boolean isCpuUpdatable ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getCpuFlagsManagerHandler ( ) . isCpuUpdatable ( cluster.getCpuName ( ) , cluster.getCompatibilityVersion ( ) ) ; }
Source:
public void canMigrateMacsToAnotherMacPoolWhenSourceAndTargetMacPoolIdAreEqual ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setMacPoolId ( sourceMacPoolId ) ; org.junit.Assert.assertThat ( underTest.canMigrateMacsToAnotherMacPool ( cluster , sourceMacPoolId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void canMigrateMacsToAnotherMacPoolWhenSourceAndTargetMacPoolIdAreEqual ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setMacPoolId ( sourceMacPoolId ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.canMigrateMacsToAnotherMacPool ( cluster , sourceMacPoolId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }