auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigReset ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAll ( org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAll ( org.ovirt.engine.core.compat.Guid userID , boolean isFiltered , org.ovirt.engine.core.common.businessentities.VmEntityType entityType ) ;
Source:
public void invalidVdsGroup ( ) { org.powermock.api.mockito.PowerMockito.when ( vdsGroupDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_CLUSTER_IS_NOT_VALID ) ; }

Target:
public void invalidVdsGroup ( ) { createSimpleCommand ( ) ; org.mockito.Mockito.when ( vdsGroupDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_CLUSTER_IS_NOT_VALID ) ; }
Source:
public void testNetworkCanBeAttached ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . networkCanBeAttached ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNetworkCanBeAttached ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; java.lang.String networkName = "networkName" ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . networkCanBeAttached ( networkName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
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 ) { optimizationForServerFormatter ( object ) ; }

Target:
public void setUsePatternFly ( final boolean use ) { if ( use ) { getContentWidgetElement ( ) . removeClassName ( Styles.FORM_CONTROL ) ; removeContentWidgetStyleName ( Styles.FORM_CONTROL ) ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.pool.GetStoragePoolByDatacenterNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.storage.pool.GetStoragePoolByDatacenterNameQuery.getDbFacade ( ) . getStoragePoolDao ( ) . getByName ( org.ovirt.engine.core.bll.storage.pool.GetStoragePoolByDatacenterNameQuery.getParameters ( ) . getName ( ) , true ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > queryDataCenter ( ) { return storagePoolDao.getByName ( org.ovirt.engine.core.bll.storage.pool.GetStoragePoolByDatacenterNameQuery.getParameters ( ) . getName ( ) , true ) ; }
Source:
public int getNumOfCpus ( ) { return this . vmStatic.getnum_of_cpus ( ) ; }

Target:
public int getNumOfSockets ( ) { return this . vmStatic.getNumOfSockets ( ) ; }
Source:
public void testStorageDomainForMemoryIsValidOnlyForDataTypes ( org.ovirt.engine.core.common.businessentities.StorageDomainType storageDomainType ) { storageDomain.setStorageDomainType ( storageDomainType ) ; org.junit.Assert.assertEquals ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) , storageDomainType.isDataDomain ( ) ) ; }

Target:
public void testStorageDomainForMemoryIsValidOnlyForDataTypes ( org.ovirt.engine.core.common.businessentities.StorageDomainType storageDomainType ) { storageDomain.setStorageDomainType ( storageDomainType ) ; org.junit.Assert.assertEquals ( filter.getPredicate ( memoryDisks ) . test ( storageDomain ) , storageDomainType.isDataDomain ( ) ) ; }
Source:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.Search , org.ovirt.engine.core.common.queries.SearchParameters.class , new java.lang.String [ ] { "SearchPattern" , "SearchTypeValue" } , new java.lang.Object [ ] { "users:" , org.ovirt.engine.core.common.interfaces.SearchType.DBUser } , getUsers ( ) ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }

Target:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.Search , org.ovirt.engine.core.common.queries.SearchParameters.class , new java.lang.String [ ] { "SearchPattern" , "SearchTypeValue" } , new java.lang.Object [ ] { "users:" , org.ovirt.engine.core.common.interfaces.SearchType.DBUser } , getUsers ( ) ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VM , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.VM , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void testExecuteGetAllEntitiesCommand ( ) throws java.io.IOException , org.ovirt.engine.core.utils.ovf.OvfReaderException { createCommand ( ) ; mockCommand ( ) ; cmd.executeCommand ( ) ; org.junit.Assert.assertEquals ( "return value should be true" , true , cmd.getReturnValue ( ) . getSucceeded ( ) ) ; }

Target:
public void testExecuteGetAllEntitiesCommand ( ) throws java.io.IOException , org.ovirt.engine.core.utils.ovf.OvfReaderException { createCommand ( ) ; mockCommand ( ) ; cmd.executeCommand ( ) ; org.junit.Assert.assertTrue ( "return value should be true" , cmd.getReturnValue ( ) . getSucceeded ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; setUpDAOMocks ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; setUpDaoMocks ( ) ; }
Source:
public void testGetVmBootActiveDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk bootDisk = dao.getVmBootActiveDisk ( FixturesTool.VM_RHEL5_POOL_57 ) ; org.junit.Assert.assertNotNull ( "VM should have a boot disk attached" , bootDisk ) ; org.junit.Assert.assertEquals ( "Wrong boot disk for VM" , FixturesTool.BOOTABLE_DISK_ID , bootDisk.getId ( ) ) ; }

Target:
public void testGetVmBootActiveDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk bootDisk = dao.getVmBootActiveDisk ( FixturesTool.VM_RHEL5_POOL_57 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( bootDisk , "VM should have a boot disk attached" ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.BOOTABLE_DISK_ID , bootDisk.getId ( ) , "Wrong boot disk for VM" ) ; }
Source:
private static java.lang.String nullToEmptyString ( java.lang.Object obj ) { return org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.toStringNullToDefault ( obj , "" ) ; }

Target:
private static java.lang.String nullToEmptyString ( java.lang.Object obj ) { return java.util.Objects.toString ( obj , "" ) ; }
Source:
public void interfaceBasedOn ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createVlan ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }

Target:
public void interfaceBasedOn ( ) { org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createVlan ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( ) ; super . syncSearch ( VdcQueryType.GetEventSubscribersBySubscriberIdGrouped , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getDbFacade ( ) . getNetworkProviderDao ( ) . update ( org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getParameters ( ) . getProvider ( ) ) ; org.ovirt.engine.core.bll.provider.UpdateProviderCommand.setSucceeded ( true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider getProvider ( ) { return org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getParameters ( ) . getProvider ( ) ; }
Source:
private void setUpClientPool ( ) { this . responseWorker = new org.ovirt.vdsm.jsonrpc.client.internal.ResponseWorker ( ) ; }

Target:
private void setUpClientPool ( ) { this . responseWorker = new org.ovirt.vdsm.jsonrpc.client.internal.ResponseWorker ( java.lang.Runtime.getRuntime ( ) . availableProcessors ( ) ) ; }
Source:
public static java.lang.String singlePciRamByHeads ( int heads ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.HIGH_VIDEO_MEM ) * heads ) ) ; }

Target:
public static boolean isGraphics ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return ( device.getType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType.GRAPHICS ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeSnapshotCreate ( java.lang.String volumeName , java.lang.String snapshotName , java.lang.String description , boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionPause ( java.lang.String masterVolumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , boolean force ) ;
Source:
private void scheduleJobs ( long regularInterval , long longInterval ) { scheduler.scheduleAFixedDelayJob ( this , "refresh" , new java.lang.Class [ ] { } , new java.lang.Object [ ] { } , regularInterval , longInterval , java.util.concurrent.TimeUnit.MINUTES ) ; }

Target:
private void scheduleJobs ( long regularInterval , long initialInterval ) { scheduler.scheduleAFixedDelayJob ( this , "refresh" , new java.lang.Class [ ] { } , new java.lang.Object [ ] { } , initialInterval , regularInterval , java.util.concurrent.TimeUnit.MINUTES ) ; }
Source:
public boolean isBondSlave ( ) { return ( getBondName ( ) ) != null ; }

Target:
public boolean isPartOfBond ( ) { return ( getBondName ( ) ) != null ; }
Source:
public void updateStartedExecutionEntitiesToUnknown ( java.util.Date updateTime ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "end_time" , updateTime ) ; getCallsHandler ( ) . executeModification ( "UpdateStartedExecutionEntitiesToUnknown" , parameterSource ) ; }

Target:
public void updateStartedExecutionEntitiesToUnknown ( java.util.Date updateTime ) { updateQueryGetResult ( entityManager.createNativeQuery ( "select cast(UpdateStartedExecutionEntitiesToUnknown as text) from UpdateStartedExecutionEntitiesToUnknown(?)" ) . setParameter ( 1 , updateTime ) ) ; }
Source:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.Configurator.getRootURL ( ) ) + ( getDocumentationBasePath ( ) ) ) + "/" ; }

Target:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( getDocumentationBasePath ( ) ) ) + "/" ; }
Source:
public java.lang.Void runInTransaction ( ) { syncDbRecordsMergeFailure ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { syncDbRecords ( false ) ; return null ; }
Source:
protected org.ovirt.engine.core.dao.network.VmNetworkInterfaceDao getVmNetworkInterfaceDao ( ) { return super . getVmNetworkInterfaceDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.network.VmNicDao getVmNicDao ( ) { return super . getVmNicDao ( ) ; }
Source:
public final void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , C value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { java.lang.String id = org.ovirt.engine.ui.common.utils.ElementIdUtils.createTableCellElementId ( getElementIdPrefix ( ) , getColumnId ( ) , context ) ; render ( context , value , sb , id ) ; }

Target:
public final void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.cell.Context context , com.google.gwt.dom.client.Element parent , C value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < C > valueUpdater ) { onBrowserEvent ( context , parent , value , null , event , valueUpdater ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.NetworkBootProtocol map ( org.ovirt.engine.api.model.BootProtocol bootProtocol , org.ovirt.engine.core.common.businessentities.NetworkBootProtocol template ) { return getMapper ( org.ovirt.engine.api.model.BootProtocol.class , org.ovirt.engine.core.common.businessentities.NetworkBootProtocol.class ) . map ( bootProtocol , template ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol map ( org.ovirt.engine.api.model.BootProtocol bootProtocol , org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol template ) { return getMapper ( org.ovirt.engine.api.model.BootProtocol.class , org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol.class ) . map ( bootProtocol , template ) ; }
Source:
protected void UpdateCustomProperties ( ) { super . UpdateCustomProperties ( ) ; updateCustomPropertySheet ( ) ; }

Target:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; }
Source:
public java.lang.String getVdcUserPassword ( ) { java.lang.String password = org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getPassword ( ) ; return password == null ? "" : password ; }

Target:
public java.lang.String getVdcUserPassword ( ) { return org.ovirt.engine.ui.frontend.Frontend.getLoginPassword ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetRoleByIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getRoleDAO ( ) . get ( org.ovirt.engine.core.bll.GetRoleByIdQuery.getParameters ( ) . getRoleId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetRoleByIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getRoleDao ( ) . get ( org.ovirt.engine.core.bll.GetRoleByIdQuery.getParameters ( ) . getRoleId ( ) ) ) ; }
Source:
public void testGetAllForClusterWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForCluster ( existingVds.getClusterId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForClusterWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForCluster ( existingVds.getClusterId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private org.ovirt.engine.core.common.action.PlugUnplugVmNicParameters createPlugUnPlugParameters ( ) { org.ovirt.engine.core.common.action.PlugUnplugVmNicParameters plugUnplugVmNicParameters = new org.ovirt.engine.core.common.action.PlugUnplugVmNicParameters ( org.ovirt.engine.core.bll.AddVmInterfaceCommand.getParameters ( ) . getInterface ( ) . getId ( ) , org.ovirt.engine.core.common.action.PlugAction.PLUG ) ; plugUnplugVmNicParameters.setVmId ( org.ovirt.engine.core.bll.AddVmInterfaceCommand.getParameters ( ) . getVmId ( ) ) ; return plugUnplugVmNicParameters ; }

Target:
private org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters createActivateDeactivateParameters ( ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters activateDeactivateVmNicParameters = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( org.ovirt.engine.core.bll.AddVmInterfaceCommand.getParameters ( ) . getInterface ( ) . getId ( ) , org.ovirt.engine.core.common.action.PlugAction.PLUG ) ; activateDeactivateVmNicParameters.setVmId ( org.ovirt.engine.core.bll.AddVmInterfaceCommand.getParameters ( ) . getVmId ( ) ) ; return activateDeactivateVmNicParameters ; }
Source:
public void setQuotaEnforcementType ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum value ) { this . quotaEnforcementType = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "QuotaEnforcmentType" ) ) ; }

Target:
public void setQuotaEnforcementType ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum value ) { this . quotaEnforcementType = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "QuotaEnforcmentType" ) ) ; }
Source:
protected void executeCommand ( ) { setActionReturnValue ( org.ovirt.engine.core.bll.LoginBaseCommand.getCurrentUser ( ) ) ; getReturnValue ( ) . setLoginResult ( LoginResult.Autheticated ) ; updateUserData ( ) ; org.ovirt.engine.core.bll.LoginBaseCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { setActionReturnValue ( org.ovirt.engine.core.bll.LoginBaseCommand.getCurrentUser ( ) ) ; getReturnValue ( ) . setLoginResult ( LoginResult.Autheticated ) ; getReturnValue ( ) . setSessionId ( engineSessionId ) ; updateUserData ( ) ; org.ovirt.engine.core.bll.LoginBaseCommand.setSucceeded ( true ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue queryRetVal = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) ; invokeClientNative ( ( ( java.lang.String ) ( queryRetVal.getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue queryRetVal = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) ; java.lang.String signedTicket = queryRetVal.getReturnValue ( ) ; invokeClientNative ( signedTicket ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetQuotasByAdElementIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetQuotasByAdElementIdQuery.getDbFacade ( ) . getQuotaDAO ( ) . getQuotaByAdElementId ( org.ovirt.engine.core.bll.GetQuotasByAdElementIdQuery.getParameters ( ) . getAdElementId ( ) , org.ovirt.engine.core.bll.GetQuotasByAdElementIdQuery.getParameters ( ) . getStoragePoolId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetQuotasByAdElementIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetQuotasByAdElementIdQuery.getDbFacade ( ) . getQuotaDao ( ) . getQuotaByAdElementId ( org.ovirt.engine.core.bll.GetQuotasByAdElementIdQuery.getParameters ( ) . getAdElementId ( ) , org.ovirt.engine.core.bll.GetQuotasByAdElementIdQuery.getParameters ( ) . getStoragePoolId ( ) ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel model ) { return model.getEntity ( ) . getport ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel model ) { return model.getEntity ( ) . getPort ( ) ; }
Source:
public void setUp ( ) { vmInit = new org.ovirt.engine.core.common.businessentities.VmInit ( ) ; underTest = new org.ovirt.engine.core.vdsbroker.vdsbroker.CloudInitHandler ( vmInit ) ; }

Target:
public void setUp ( ) { vmInit = new org.ovirt.engine.core.common.businessentities.VmInit ( ) ; underTest = new org.ovirt.engine.core.vdsbroker.vdsbroker.CloudInitHandler ( vmInit , CloudInitHandler.NetConfigSourceProtocol.ENI ) ; }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDS selectedItem ) { org.ovirt.engine.ui.webadmin.section.main.view.tab.host.SubTabHostHardwareView.Driver.driver.edit ( getDetailModel ( ) ) ; formBuilder.showForm ( getDetailModel ( ) ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDS selectedItem ) { driver.edit ( getDetailModel ( ) ) ; formBuilder.update ( getDetailModel ( ) ) ; }
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; if ( ( node.attributes.get ( "ovf:disk_storage_type" ) ) != null ) { java.lang.String diskStorageType = node.attributes.get ( "ovf:disk_storage_type" ) . getValue ( ) ; if ( ( diskStorageType != null ) && ( diskStorageType.equals ( DiskStorageType.CINDER.name ( ) ) ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; if ( ( node.attributes.get ( "ovf:disk_storage_type" ) ) != null ) { java.lang.String diskStorageType = node.attributes.get ( "ovf:disk_storage_type" ) . getValue ( ) ; if ( ( diskStorageType != null ) && ( diskStorageType.equals ( DiskStorageType.CINDER.name ( ) ) ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; if ( ( node.attributes.get ( "ovf:cinder_volume_type" ) ) != null ) { java.lang.String cinderVolumeType = node.attributes.get ( "ovf:cinder_volume_type" ) . getValue ( ) ; disk.setCinderVolumeType ( cinderVolumeType ) ; } } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileListModel , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.vnicProfileTemplateSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileListModel , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.profile.SubTabVnicProfileTemplatePresenter.constants.vnicProfileTemplateSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getcompatibility_version ( ) . getValue ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getCompatibilityVersion ( ) . getValue ( ) ; }
Source:
protected void onNoVmsAdded ( org.ovirt.engine.core.compat.Guid poolId ) { org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPoolDAO ( ) . remove ( poolId ) ; }

Target:
protected void onNoVmsAdded ( org.ovirt.engine.core.compat.Guid poolId ) { org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPoolDao ( ) . remove ( poolId ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy , null ) , currentPolicy ) ; }

Target:
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 ) , UsbPolicy.DISABLED ) ; }
Source:
public void setCompulsoryActions ( java.util.List < org.ovirt.engine.ui.uicommonweb.UICommand > value ) { if ( ( compulsoryActions ) != value ) { compulsoryActions = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "CompulsoryActions" ) ) ; } }

Target:
public void setCompulsoryActions ( java.util.List < org.ovirt.engine.ui.uicommonweb.UICommand > value ) { if ( ( compulsoryActions ) != value ) { compulsoryActions = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "CompulsoryActions" ) ) ; } }
Source:
public void parametersWithSecureDeletionAreNotFixedOnFileDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false ) , true ) ; assertPostZeroValue ( parameters , false ) ; }

Target:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false ) , false ) ; assertPostZeroValue ( parameters , false ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupId , org.ovirt.engine.core.compat.Version compatibilityVersion ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setId ( vdsGroupId ) ; vdsGroup.setcompatibility_version ( compatibilityVersion ) ; return vdsGroup ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupId , org.ovirt.engine.core.compat.Version compatibilityVersion ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setId ( vdsGroupId ) ; vdsGroup.setCompatibilityVersion ( compatibilityVersion ) ; return vdsGroup ; }
Source:
private void SetIsVmRunningStateless ( ) { _isVmRunningStateless = statelessSnapshotExistsForVm ( ) ; }

Target:
private void setIsVmRunningStateless ( ) { _isVmRunningStateless = statelessSnapshotExistsForVm ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( name , clusterId , volumeType , status , replicaCount , stripeCount , disperseCount , redundancyCount , options , accessProtocols , transportTypes , bricks , asyncTask , advancedDetails , snapshotsCount , snapMaxLimit , snapshotScheduled ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( name , clusterId , volumeType , status , replicaCount , stripeCount , disperseCount , redundancyCount , isArbiter , options , accessProtocols , transportTypes , bricks , asyncTask , advancedDetails , snapshotsCount , snapMaxLimit , snapshotScheduled ) ; }
Source:
private org.ovirt.engine.core.common.queries.VdcQueryReturnValue generateQueryReturnValueForGetDiskImages ( ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue vdcQueryReturnValue = new org.ovirt.engine.core.common.queries.VdcQueryReturnValue ( ) ; vdcQueryReturnValue.setSucceeded ( true ) ; return vdcQueryReturnValue ; }

Target:
private org.ovirt.engine.core.common.queries.QueryReturnValue generateQueryReturnValueForGetDiskImages ( ) { org.ovirt.engine.core.common.queries.QueryReturnValue queryReturnValue = new org.ovirt.engine.core.common.queries.QueryReturnValue ( ) ; queryReturnValue.setSucceeded ( true ) ; return queryReturnValue ; }
Source:
public void updateWithCpuLowerThanHost ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; clusterHasVds ( ) ; cpuFlagsMissing ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }

Target:
public void updateWithCpuLowerThanHost ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; clusterHasVds ( ) ; cpuFlagsMissing ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }
Source:
public void contextDestroyed ( javax.servlet.ServletContextEvent event ) { org.ovirt.vdsmfake.AppLifecycleListener.log.info ( "Application destroyed." ) ; final org.ovirt.vdsmfake.task.TaskProcessor taskProcessor = org.ovirt.vdsmfake.task.TaskProcessor.getInstance ( ) ; taskProcessor.destroy ( ) ; org.ovirt.vdsmfake.rpc.json.JsonRpcServer.shutdown ( ) ; }

Target:
public void contextDestroyed ( javax.servlet.ServletContextEvent event ) { java.lang.System.out.println ( "Application destroyed." ) ; final org.ovirt.vdsmfake.task.TaskProcessor taskProcessor = org.ovirt.vdsmfake.task.TaskProcessor.getInstance ( ) ; taskProcessor.destroy ( ) ; org.ovirt.vdsmfake.rpc.json.JsonRpcServer.shutdown ( ) ; }
Source:
protected org.ovirt.engine.api.model.Nic deprecatedPopulate ( org.ovirt.engine.api.model.Nic model , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity ) { org.ovirt.engine.api.restapi.resource.BackendVmNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendVmNicsResource ) ( collection ) ) ; parent.addStatistics ( model , entity ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.Nic doPopulate ( org.ovirt.engine.api.model.Nic model , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity ) { org.ovirt.engine.api.restapi.resource.BackendNicHelper.addReportedDevices ( this , model , entity ) ; return model ; }
Source:
public void execute ( ) { executeCommand ( entry.getKey ( ) , command ) ; }

Target:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand com1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand com2 ) { return lexoNumeric.compare ( com1.getName ( ) , com2.getName ( ) ) ; }
Source:
private boolean nicNameAndNicIdIsIncoherent ( org.ovirt.engine.core.compat.Guid nicId , java.lang.String nicName ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface interfaceById = existingInterfacesMap.get ( nicId ) ; org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface interfaceByName = existingInterfacesMap.get ( nicName ) ; return ! ( java.util.Objects.equals ( interfaceById , interfaceByName ) ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentIdentification ( attachment.getId ( ) , attachment.getNicId ( ) , attachment.getNicName ( ) , EngineMessage.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY , existingInterfacesMap ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getStatus ( ) { return getEntity ( ) . getStatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getStatus ( ) { return ( getEntity ( ) . getCluster ( ) ) == null ? null : getEntity ( ) . getCluster ( ) . getstatus ( ) ; }
Source:
private void OnSave ( ) { }

Target:
private void onSave ( ) { }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > VmNetworkInterfaceListToBase ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > items ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > networkInterfaces = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > ( ) ; for ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface item : items ) { networkInterfaces.add ( item ) ; } return networkInterfaces ; }

Target:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > vmNetworkInterfaceListToBase ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > items ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > networkInterfaces = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > ( ) ; for ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface item : items ) { networkInterfaces.add ( item ) ; } return networkInterfaces ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllValidationPass ) { return runMultipleActions ( actionType , parameters , isRunOnlyIfAllValidationPass , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.ActionReturnValue > runMultipleActions ( org.ovirt.engine.core.common.action.ActionType actionType , java.util.List < org.ovirt.engine.core.common.action.ActionParametersBase > parameters , boolean isRunOnlyIfAllValidationPass ) { return runMultipleActions ( actionType , parameters , isRunOnlyIfAllValidationPass , false ) ; }
Source:
public void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb , java.lang.String id ) { org.ovirt.engine.ui.common.widget.table.cell.ScrollableTextCell.CellTemplate template = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.common.widget.table.cell.ScrollableTextCell.CellTemplate.class ) ; sb.append ( template.input ( value , "" , id ) ) ; }

Target:
public void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb , java.lang.String id ) { org.ovirt.engine.ui.common.widget.table.cell.ScrollableTextCell.CellTemplate template = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.common.widget.table.cell.ScrollableTextCell.CellTemplate.class ) ; sb.append ( template.input ( value , com.google.gwt.safecss.shared.SafeStylesUtils.fromTrustedString ( "" ) , id ) ) ; }
Source:
public void testPersistentAuthOtherPreferencesInSameHeader ( ) { org.junit.Assert.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "persistent-auth, x, y" ) ) ; org.junit.Assert.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "x, persistent-auth, y" ) ) ; org.junit.Assert.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "x, y, persistent-auth" ) ) ; }

Target:
public void testPersistentAuthOtherPreferencesInSameHeader ( ) { org.junit.jupiter.api.Assertions.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "persistent-auth, x, y" ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "x, persistent-auth, y" ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "x, y, persistent-auth" ) ) ; }
Source:
public void testGetByNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( "thisnameisinvalid" ) ; assertNull ( result ) ; }

Target:
public void testGetByNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( "thisnameisinvalid" ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void passDiscardSupportedForDestSdMoveOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; mockPassDiscardSupportedForDestSd ( ValidationResult.VALID , ImageOperation.Move ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }

Target:
public void passDiscardSupportedForDestSdMoveOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; mockPassDiscardSupportedForDestSd ( ValidationResult.VALID , ImageOperation.Move ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }
Source:
org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) ;

Target:
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 context ) ;
Source:
public java.math.BigInteger readInteger ( ) { java.lang.String image = readString ( ) ; try { return new java.math.BigInteger ( image ) ; } catch ( java.lang.NumberFormatException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "The text \"" + image ) + "\" isn\'t a valid integer value" ) ) ; } }

Target:
public java.math.BigDecimal readDecimal ( ) { return parseDecimal ( readString ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getId ( ) . toString ( ) ; }

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.getDiskDescription ( ) ; }
Source:
private void init ( ) { autoStartVmsToRestart = new java.util.concurrent.CopyOnWriteArraySet < > ( getInitialVmsToStart ( ) ) ; int autoStartVmsRunnerIntervalInSeconds = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.AutoStartVmsRunnerIntervalInSeconds ) ; executor.scheduleWithFixedDelay ( this :: startFailedAutoStartVms , autoStartVmsRunnerIntervalInSeconds , autoStartVmsRunnerIntervalInSeconds , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
private void init ( ) { autoStartVmsToRestart = new java.util.concurrent.CopyOnWriteArraySet < > ( getInitialVmsToStart ( ) ) ; long autoStartVmsRunnerIntervalInSeconds = org.ovirt.engine.core.common.config.Config.< java.lang.Long > getValue ( ConfigValues.AutoStartVmsRunnerIntervalInSeconds ) ; executor.scheduleWithFixedDelay ( this :: startFailedAutoStartVms , autoStartVmsRunnerIntervalInSeconds , autoStartVmsRunnerIntervalInSeconds , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
protected void AddErrorMessages ( org.ovirt.engine.core.common.errors.VdcBllMessages messageActionTypeParameter , org.ovirt.engine.core.common.errors.VdcBllMessages messageReason ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__BOOKMARK ) ; addCanDoActionMessage ( messageActionTypeParameter ) ; addCanDoActionMessage ( messageReason ) ; }

Target:
protected void addErrorMessages ( org.ovirt.engine.core.common.errors.VdcBllMessages messageActionTypeParameter , org.ovirt.engine.core.common.errors.VdcBllMessages messageReason ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__BOOKMARK ) ; addCanDoActionMessage ( messageActionTypeParameter ) ; addCanDoActionMessage ( messageReason ) ; }
Source:
public void setVmDomain ( java.lang.String value ) { this . vmStatic.setDomain ( value ) ; }

Target:
public void setVmInit ( org.ovirt.engine.core.common.businessentities.VmInit vmInit ) { this . vmStatic.setVmInit ( vmInit ) ; }
Source:
protected java.util.List < ? extends org.ovirt.engine.core.common.businessentities.network.NetworkInterface < org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics > > getAllInterfaces ( ) { return dao.getAllInterfacesForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoTest.VDS_ID ) ; }

Target:
protected java.util.List < ? extends org.ovirt.engine.core.common.businessentities.network.NetworkInterface < org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics > > getAllInterfaces ( ) { return dao.getAllInterfacesForVds ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.VDS_ID ) ; }
Source:
public void nonExistStep ( ) { org.junit.Assert.assertFalse ( dao.exists ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; }

Target:
protected void verifyEntityModification ( org.ovirt.engine.core.common.job.Step result ) { org.junit.Assert.assertEquals ( JobExecutionStatus.FINISHED , result.getStatus ( ) ) ; }
Source:
public void testDefaultPoolFlagIsNotSetInvalidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( true ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.MacPoolValidator ( macPool ) . defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_SETTING_DEFAULT_MAC_POOL_IS_NOT_SUPPORTED ) ) ; }

Target:
public void testDefaultPoolFlagIsNotSetInvalidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( true ) ; org.junit.Assert.assertThat ( macPoolValidator.defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_SETTING_DEFAULT_MAC_POOL_IS_NOT_SUPPORTED ) ) ; }
Source:
public java.lang.Double getcpu_speed_mh ( ) { return this . cpu_speed_mh.doubleValue ( ) ; }

Target:
public java.lang.Double getCpuSpeedMh ( ) { return cpuSpeedMh.doubleValue ( ) ; }
Source:
public void setCollapseSnapshots ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { this . collapseSnapshots = value ; }

Target:
public void setEntity ( java.lang.Object value ) { super . setEntity ( ( value == null ? null : ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( value ) ) . getVm ( ) ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getCpuFlagsManagerHandler ( ) . getSupportedServerCpuList ( org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getCpuFlagsManagerHandler ( ) . getLatestDictionaryVersion ( ) , org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getParameters ( ) . getMaxCpuName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getQueryReturnValue ( ) . setReturnValue ( cpuFlagsManagerHandler.getSupportedServerCpuList ( cpuFlagsManagerHandler.getLatestDictionaryVersion ( ) , org.ovirt.engine.core.bll.GetSupportedCpuListQuery.getParameters ( ) . getMaxCpuName ( ) ) ) ; }
Source:
private void addDisksDeactivatedMessage ( java.util.List < org.ovirt.engine.core.common.action.MoveDiskParameters > moveDiskParamsList ) { setActionMessageParameters ( ) ; addCanDoActionMessageVariable ( "diskAliases" , org.apache.commons.lang.StringUtils.join ( getDisksAliases ( moveDiskParamsList ) , ", " ) ) ; addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_MOVE_DISKS_MIXED_PLUGGED_STATUS ) ; org.ovirt.engine.core.bll.storage.disk.MoveDisksCommand.getReturnValue ( ) . setCanDoAction ( false ) ; }

Target:
private void addDisksDeactivatedMessage ( java.util.List < org.ovirt.engine.core.common.action.MoveDiskParameters > moveDiskParamsList ) { setActionMessageParameters ( ) ; addValidationMessageVariable ( "diskAliases" , org.apache.commons.lang.StringUtils.join ( getDisksAliases ( moveDiskParamsList ) , ", " ) ) ; addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_MOVE_DISKS_MIXED_PLUGGED_STATUS ) ; org.ovirt.engine.core.bll.storage.disk.MoveDisksCommand.getReturnValue ( ) . setValid ( false ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.tags > getChildren ( ) { return _children ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Tags > getChildren ( ) { return _children ; }
Source:
public javax.ws.rs.core.Response stopRebalance ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.StopRebalanceGlusterVolume , new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRebalanceParameters ( guid ) , action ) ; }

Target:
public javax.ws.rs.core.Response stopRebalance ( org.ovirt.engine.api.model.Action action ) { return doAction ( ActionType.StopRebalanceGlusterVolume , new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRebalanceParameters ( guid ) , action ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult managementNetworkChange ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_CANNOT_BE_CHANGED ) . when ( isManagementNetworkChangeInvalid ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult managementNetworkChange ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_CANNOT_BE_CHANGED ) . when ( isManagementNetworkChangeInvalid ( ) ) ; }