auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testNullKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( NULL_KEY_VAL ) ; org.junit.Assert.assertEquals ( map.size ( ) , 0 ) ; }

Target:
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 ( map.size ( ) , 0 ) ; }
Source:
public void getUserIdVdcUserId ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; u.setId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.compat.Guid g = b.getUserId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }

Target:
public void getUserIdVdcUserId ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; u.setId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setCurrentUser ( u ) ; final org.ovirt.engine.core.compat.Guid g = b.getUserId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }
Source:
public void showOnlyPf ( ) { tabPanel.setVisible ( false ) ; contentPanel.setWidget ( pfTab.getContent ( ) ) ; mainPanel.setWidth ( "400px" ) ; mainPanel.setHeight ( "215px" ) ; }

Target:
public void showOnlyPf ( ) { getTabPanel ( ) . switchTab ( pfTab ) ; tabPanel.setVisible ( false ) ; contentPanel.setWidget ( pfTab.getContent ( ) ) ; mainPanel.setWidth ( "400px" ) ; mainPanel.setHeight ( "215px" ) ; }
Source:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { xsrfRequestBuilder.setXsrfToken ( null ) ; callback.onSuccess ( result ) ; }

Target:
public void logout ( final org.ovirt.engine.ui.frontend.communication.UserCallback callback ) { xsrfRequestBuilder.setXsrfToken ( null ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase retVal = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; retVal.setSucceeded ( true ) ; callback.onSuccess ( retVal ) ; }
Source:
private void canDoActionSucceeds ( ) { org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void nonActiveVdsDisallowed ( ) { testNonActiveVdsExecution ( StorageDomainStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NO_VDS_IN_POOL ) ; }
Source:
private boolean validateDestStorageAndSourceStorageOfSameTypes ( org.ovirt.engine.core.common.businessentities.StorageDomain destDomain , org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain ) { if ( ( destDomain.getStorageType ( ) . getStorageSubtype ( ) ) != ( sourceDomain.getStorageType ( ) . getStorageSubtype ( ) ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_DESTINATION_AND_SOURCE_STORAGE_SUB_TYPES_DIFFERENT ) ; } return true ; }

Target:
private boolean validateDestStorageAndSourceStorageOfSameTypes ( org.ovirt.engine.core.common.businessentities.StorageDomain destDomain , org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain ) { if ( ( destDomain.getStorageType ( ) . getStorageSubtype ( ) ) != ( sourceDomain.getStorageType ( ) . getStorageSubtype ( ) ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_DESTINATION_AND_SOURCE_STORAGE_SUB_TYPES_DIFFERENT ) ; } return true ; }
Source:
protected boolean addVmLease ( org.ovirt.engine.core.compat.Guid leaseStorageDomainId , org.ovirt.engine.core.compat.Guid vmId ) { if ( leaseStorageDomainId == null ) { return true ; } return runVdsCommand ( VDSCommandType.AddVmLease , new org.ovirt.engine.core.common.vdscommands.VmLeaseVDSParameters ( getStoragePoolId ( ) , leaseStorageDomainId , vmId ) ) . getSucceeded ( ) ; }

Target:
protected boolean addVmLease ( org.ovirt.engine.core.compat.Guid leaseStorageDomainId , org.ovirt.engine.core.compat.Guid vmId ) { if ( leaseStorageDomainId == null ) { return true ; } return runInternalActionWithTasksContext ( VdcActionType.AddVmLease , new org.ovirt.engine.core.common.action.VmLeaseParameters ( getStoragePoolId ( ) , leaseStorageDomainId , vmId ) ) . getSucceeded ( ) ; }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig hostNicVfsConfig ) { return getCustomMapSqlParameterSource ( ) . addValue ( "id" , hostNicVfsConfig.getId ( ) ) . addValue ( "nic_id" , hostNicVfsConfig.getNicId ( ) ) . addValue ( "all_networks_allowed" , hostNicVfsConfig.isAllNetworksAllowed ( ) ) ; }

Target:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource createVfsConfigIdParameter ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vfs_config_id" , vfsConfigId ) ; return parameterSource ; }
Source:
private void saveTaskAndPutInMap ( java.lang.String taskKey , org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.saveAsyncTaskToDb ( task ) ; taskKeyToTaskIdMap.put ( taskKey , task.getTaskId ( ) ) ; }

Target:
private void saveTaskAndPutInMap ( java.lang.String taskKey , org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.saveAsyncTaskToDb ( task ) ; taskKeyToTaskIdMap.put ( taskKey , task.getTaskId ( ) ) ; }
Source:
public org.ovirt.engine.sdk4.ConnectionBuilder keyStorePassword ( java.lang.String keyStorePassword ) { this . keyStorePassword = keyStorePassword ; return this ; }

Target:
public org.ovirt.engine.sdk4.ConnectionBuilder trustStorePassword ( java.lang.String trustStorePassword ) { this . trustStorePassword = trustStorePassword ; return this ; }
Source:
public void invalidCpuSelection ( ) { canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_CPU_NOT_FOUND ) ; }

Target:
public void invalidCpuSelection ( ) { createSimpleCommand ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_CPU_NOT_FOUND ) ; }
Source:
public void nullNetworkNameWhenUnlinkingNotSupported ( ) throws java.lang.Exception { networkNameTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED ) , false , null ) ; }

Target:
public void nullNetworkNameWhenUnlinkingNotSupported ( ) throws java.lang.Exception { networkNameTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) , false , null ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , java.util.Collections.< org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > emptyMap ( ) ) ; }

Target:
private void addToReturnValueTaskPlaceHolderIdList ( org.ovirt.engine.core.compat.Guid taskId ) { if ( ! ( getReturnValue ( ) . getTaskPlaceHolderIdList ( ) . contains ( taskId ) ) ) { getReturnValue ( ) . getTaskPlaceHolderIdList ( ) . add ( taskId ) ; } }
Source:
public void releaseSession ( ) { clearSessionId ( ) ; }

Target:
void sendRequest ( com.google.gwt.http.client.RequestBuilder requestBuilder , org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback callback ) { try { requestBuilder.sendRequest ( null , callback ) ; } catch ( com.google.gwt.http.client.RequestException e ) { } }
Source:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { this . vdsGroupCompatibilityVersion = value ; }

Target:
public void setClusterCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { this . clusterCompatibilityVersion = value ; }
Source:
public void testSubResourceLocatorBadGuid ( ) { try { collection.getDiskResource ( "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testSubResourceLocatorBadGuid ( ) { verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.collection.getDiskResource ( "foo" ) ) ) ; }
Source:
public void testSubResourceLocatorBadGuid ( ) { try { collection.getNicResource ( "foo" ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testSubResourceLocatorBadGuid ( ) { try { collection.getNicResource ( "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public final void removeSession ( ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId != null ) { removeSession ( sessionId ) ; } }

Target:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getAuthn ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , false ) ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ListModel flush ( ) { return table.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel flush ( ) { return table.asEditor ( ) . flush ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface object ) { return object.getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { return object.getName ( ) ; }
Source:
public int getpriority ( ) { return priority ; }

Target:
public int getPriority ( ) { return priority ; }
Source:
void handleUiMode ( ) { org.ovirt.engine.ui.webadmin.uimode.UiModeData uiModeData = org.ovirt.engine.ui.webadmin.uimode.UiModeData.instance ( ) ; if ( uiModeData != null ) { org.ovirt.engine.core.common.mode.ApplicationMode uiMode = uiModeData.getUiMode ( ) ; org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.setUiMode ( uiMode ) ; } }

Target:
protected void handleAutoLogin ( org.ovirt.engine.ui.common.auth.AutoLoginData autoLoginData ) { super . handleAutoLogin ( autoLoginData ) ; com.google.gwt.core.client.Scheduler.get ( ) . scheduleDeferred ( new com.google.gwt.core.client.Scheduler.ScheduledCommand ( ) { @ java.lang.Override public void execute ( ) { restApiSessionManager.reuseCurrentSession ( ) ; } } ) ; }
Source:
protected int getMaxNameLength ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . isWindowsOsType ( vm.getOs ( ) ) ? org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getMaxVmNameLengthWin ( ) : org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getMaxVmNameLengthNonWin ( ) ; }

Target:
protected int getMaxNameLength ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getMaxVmNameLength ( ) ; }
Source:
protected java.lang.String clusterVersion ( ) { return java.lang.String.format ( "$clusterVersion %s" , version.getValue ( ) ) ; }

Target:
protected java.lang.String clusterVersion ( ) { return java.lang.String.format ( org.ovirt.engine.core.bll.validator.VmNicValidator.CLUSTER_VERSION_REPLACEMENT_FORMAT , version.getValue ( ) ) ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > VdsNetworkInterfaceListToBase ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > 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.VdsNetworkInterface item : items ) { networkInterfaces.add ( item ) ; } return networkInterfaces ; }

Target:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > vdsNetworkInterfaceListToBase ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > 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.VdsNetworkInterface item : items ) { networkInterfaces.add ( item ) ; } return networkInterfaces ; }
Source:
public void InitTemplate ( ) { setupTemplate ( vm , getModel ( ) . getTemplate ( ) ) ; }

Target:
public void initTemplate ( ) { setupTemplate ( vm , getModel ( ) . getTemplate ( ) ) ; }
Source:
public java.lang.Boolean getRawValue ( org.ovirt.engine.core.common.businessentities.Network object ) { return object.isVmNetwork ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.NetworkView object ) { return object.getNetwork ( ) . getdescription ( ) ; }
Source:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] arg0 , java.lang.String arg1 ) throws java.security.cert.CertificateException { }

Target:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] certs , java.lang.String authType ) throws java.security.cert.CertificateException { }
Source:
public void generate ( org.ovirt.api.metamodel.concepts.Model model , java.io.File file ) { this . model = model ; try ( org.ovirt.api.metamodel.tool.XmlWriter tmp = new org.ovirt.api.metamodel.tool.XmlWriter ( file ) ) { writer = tmp ; writeModel ( ) ; } }

Target:
public void generate ( org.ovirt.api.metamodel.concepts.Model model , java.io.File file ) { this . model = model ; try ( org.ovirt.api.metamodel.runtime.xml.XmlWriter tmp = new org.ovirt.api.metamodel.runtime.xml.XmlWriter ( file , true ) ) { writer = tmp ; writeModel ( ) ; } }
Source:
public static boolean IsVdsAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , int vdsId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForVdsWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }

Target:
public static boolean IsUserAttachedToTag ( org.ovirt.engine.core.compat.Guid tagId , org.ovirt.engine.core.compat.Guid userId ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForUsersWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getExpandAllCommand ( ) ) ) { ExpandAll ( ) ; } if ( command == ( getCollapseAllCommand ( ) ) ) { CollapseAll ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getExpandAllCommand ( ) ) ) { expandAll ( ) ; } if ( command == ( getCollapseAllCommand ( ) ) ) { collapseAll ( ) ; } }
Source:
private void onClone ( ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.CloneVmModel ) ( getWindow ( ) ) ) . onClone ( this , false ) ; }

Target:
protected java.lang.String getSuffixCauseToClonedNameCollisionMessage ( java.lang.String existingName ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . suffixCauseToClonedVmNameCollision ( existingName ) ; }
Source:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { updateGroupLabel ( ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < T > event ) { updateGroupLabel ( ) ; }
Source:
public java.util.Map disconnectStoragePool ( java.lang.String spUUID , int hostSpmId , java.lang.String SCSIKey ) { return getOKStatusNotImplemented ( ) ; }

Target:
public java.util.Map disconnectStoragePool ( java.lang.String spUUID , int hostSpmId , java.lang.String SCSIKey ) { return getOKStatus ( ) ; }
Source:
public java.lang.Integer getDisplay ( ) { return this . vmDynamic.getDisplay ( ) ; }

Target:
public java.lang.String getCustomCpuName ( ) { return this . vmStatic.getCustomCpuName ( ) ; }
Source:
public java.lang.Void call ( ) { proxy.deleteVolume ( cinderDisk.getId ( ) . toString ( ) ) ; return null ; }

Target:
public java.lang.Void call ( ) { proxy.deleteVolume ( cinderDisk.getImageId ( ) . toString ( ) ) ; return null ; }
Source:
public void setPinned ( boolean pinned ) { this . pinned = pinned ; }

Target:
public void pinTo ( java.lang.Integer hostNodeIndex ) { java.util.Objects.requireNonNull ( hostNodeIndex ) ; pinned = true ; this . hostNodeIndex = hostNodeIndex ; }
Source:
protected final boolean failCanDoAction ( org.ovirt.engine.core.common.errors.VdcBllMessages message , java.lang.String ... variableReplacements ) { addCanDoActionMessage ( message ) ; for ( java.lang.String variableReplacement : variableReplacements ) { addCanDoActionMessage ( variableReplacement ) ; } return false ; }

Target:
private void freeLockExecute ( ) { if ( ( ( releaseLocksAtEndOfExecute ) || ( ! ( getSucceeded ( ) ) ) ) || ( ( noAsyncOperations ( ) ) && ( ! ( ( this ) instanceof org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand ) ) ) ) { freeLock ( ) ; } }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getDiskProfiles ( ) { if ( ( diskProfiles ) == null ) { diskProfiles = getDbFacade ( ) . getDiskProfileDao ( ) . getAllForStorageDomain ( diskProfile.getStorageDomainId ( ) ) ; } return diskProfiles ; }

Target:
public org.ovirt.engine.core.common.businessentities.profiles.DiskProfile getDiskProfile ( ) { if ( ( diskProfile ) == null ) { diskProfile = getDiskProfileDao ( ) . get ( diskProfileId ) ; } return diskProfile ; }
Source:
public org.ovirt.engine.api.resource.ActionResource getActionSubresource ( java.lang.String action , java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.ActionResource getActionResource ( java.lang.String action , java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , id ) ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { ensureColumnPresent ( column , headerText , present , null ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present ) { table.ensureColumnPresent ( column , headerText , present ) ; tableHeader.ensureColumnPresent ( column , headerText , present ) ; }
Source:
protected org.ovirt.engine.api.model.NIC populate ( org.ovirt.engine.api.model.NIC model , org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.NIC populate ( org.ovirt.engine.api.model.NIC model , org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity ) { addReportedDevices ( model , entity ) ; return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }
Source:
public int getmaster_domain_version ( ) { return this . masterDomainVersion ; }

Target:
public org.ovirt.engine.core.compat.Guid getMacPoolId ( ) { return macPoolId ; }
Source:
private void UpdateNumOfMonitors ( ) { if ( isVncSelected ( ) ) { getNumOfMonitors ( ) . setSelectedItem ( 1 ) ; getNumOfMonitors ( ) . setIsChangable ( false ) ; } else { getNumOfMonitors ( ) . setIsChangable ( true ) ; } }

Target:
private void updateNumOfMonitors ( ) { if ( isVncSelected ( ) ) { getNumOfMonitors ( ) . setSelectedItem ( 1 ) ; getNumOfMonitors ( ) . setIsChangable ( false ) ; } else { getNumOfMonitors ( ) . setIsChangable ( true ) ; } }
Source:
public static < T extends java.lang.Object > T get ( java.lang.Class < T > clazz ) { return org.ovirt.engine.core.di.Injector.injector.instanceOf ( clazz ) ; }

Target:
public static < T extends java.lang.Object > T get ( java.lang.Class < T > clazz ) { return javax.enterprise.inject.spi.CDI.current ( ) . select ( clazz , org.ovirt.engine.core.di.Injector.DefaultLiteral.INSTANCE ) . get ( ) ; }
Source:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateConsoleModels ( ) ; UpdateActionAvailability ( ) ; }

Target:
public void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }
Source:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( removeAction , getRemoveParameters ( id ) ) ; }

Target:
public javax.ws.rs.core.Response deprecatedRemove ( java.lang.String id ) { org.ovirt.engine.api.restapi.resource.AbstractBackendDevicesResource.getEntity ( id ) ; return performAction ( removeAction , getRemoveParameters ( id ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkPrefixValid ( ) { return network.getName ( ) . toLowerCase ( ) . startsWith ( "bond" ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_CONTAIN_BOND_NAME ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkPrefixValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NETWORK_CANNOT_CONTAIN_BOND_NAME ) . when ( network.getName ( ) . toLowerCase ( ) . startsWith ( "bond" ) ) ; }
Source:
private static void raiseQueryCompleteEvent ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final java.lang.String context ) { org.ovirt.engine.ui.frontend.Frontend.raiseQueryEvent ( org.ovirt.engine.ui.frontend.Frontend.getQueryCompleteEvent ( ) , queryType , context ) ; }

Target:
private void raiseQueryStartedEvent ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final java.lang.String context ) { raiseQueryEvent ( getQueryStartedEvent ( ) , queryType , context ) ; }
Source:
public org.ovirt.engine.core.bll.adbroker.LdapGuidEncoder getLdapGuidEncoder ( ) ;

Target:
public org.ovirt.engine.core.bll.adbroker.LdapIdEncoder getLdapIdEncoder ( ) ;
Source:
public void setusage_network_percent ( java.lang.Integer value ) { this . usage_network_percent = value ; }

Target:
public void setUsageNetworkPercent ( java.lang.Integer value ) { this . usageNetworkPercent = value ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWith ( boolean virtService , boolean glusterService ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDefaultVdsGroup ( ) ; group.setVirtService ( virtService ) ; group.setGlusterService ( glusterService ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.Cluster createClusterWith ( boolean virtService , boolean glusterService ) { org.ovirt.engine.core.common.businessentities.Cluster group = org.ovirt.engine.core.bll.UpdateClusterCommandTest.createDefaultCluster ( ) ; group.setVirtService ( virtService ) ; group.setGlusterService ( glusterService ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.VERSION_1_1 ) ; return group ; }
Source:
public boolean isSetStorage ( ) { return ( ( this . storage ) != null ) && ( ! ( this . storage.isEmpty ( ) ) ) ; }

Target:
public boolean isSetAddress ( ) { return ( this . address ) != null ; }
Source:
private boolean isAsyncTasksRunningOnPool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { java.util.List < org.ovirt.engine.core.compat.Guid > tasks = org.ovirt.engine.core.bll.storage.pool.ForceSelectSPMCommand.getAsyncTaskDao ( ) . getAsyncTaskIdsByStoragePoolId ( storagePoolId ) ; return ! ( tasks.isEmpty ( ) ) ; }

Target:
private boolean isAsyncTasksRunningOnPool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { java.util.List < org.ovirt.engine.core.compat.Guid > tasks = asyncTaskDao.getAsyncTaskIdsByStoragePoolId ( storagePoolId ) ; return ! ( tasks.isEmpty ( ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.SSH_KEY , org.ovirt.engine.core.bll.VdsDeploy.getEngineSSHPublicKey ( ) . replace ( "\n" , "" ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.SSH_KEY , org.ovirt.engine.core.bll.VdsDeploy._getEngineSSHPublicKey ( ) . replace ( "\n" , "" ) ) ; return null ; }
Source:
private boolean IsAnyRoleReadOnly ( java.util.List roles ) { for ( java.lang.Object item : roles ) { org.ovirt.engine.core.common.businessentities.Role r = ( ( org.ovirt.engine.core.common.businessentities.Role ) ( item ) ) ; if ( r.getis_readonly ( ) ) { return true ; } } return false ; }

Target:
private boolean isAnyRoleReadOnly ( java.util.List roles ) { for ( java.lang.Object item : roles ) { org.ovirt.engine.core.common.businessentities.Role r = ( ( org.ovirt.engine.core.common.businessentities.Role ) ( item ) ) ; if ( r.getis_readonly ( ) ) { return true ; } } return false ; }
Source:
public void setExternalAttachableDisks ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { externalAttachableDisks = value ; }

Target:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { this . systemTreeSelectedItem = systemTreeSelectedItem ; }
Source:
public void removeMemoryFromSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "snapshot_id" , snapshotId ) . addValue ( "memory_volume" , null ) ; getCallsHandler ( ) . executeModification ( "UpdateMemoryOfSnapshot" , parameterSource ) ; }

Target:
public void removeMemoryFromActiveSnapshot ( org.ovirt.engine.core.compat.Guid vmId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_id" , vmId ) . addValue ( "snapshot_type" , SnapshotType.ACTIVE.name ( ) ) ; getCallsHandler ( ) . executeModification ( "RemoveMemoryFromSnapshotByVmIdAndType" , parameterSource ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntityStatus ( diskImage.getImage ( ) , diskImage.getimageStatus ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; setImageStatus ( ImageStatus.LOCKED ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntityStatus ( diskImage.getImage ( ) , diskImage.getImageStatus ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; setImageStatus ( ImageStatus.LOCKED ) ; return null ; }
Source:
private void Cluster_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.Cluster_SelectedItemChanged ( ) ; }

Target:
private void Cluster_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.Cluster_SelectedItemChanged ( ) ; UpdateMaximalVmMemSize ( ) ; }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendIconResource ( "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 0 , true ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , resource :: get ) ) ; }
Source:
public static org.ovirt.engine.api.model.Statistic clone ( org.ovirt.engine.api.model.Statistic s ) { return org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery.create ( s.getName ( ) , s.getDescription ( ) , s.getType ( ) , s.getUnit ( ) , s.getValues ( ) . getType ( ) ) ; }

Target:
public static org.ovirt.engine.api.model.Statistic clone ( org.ovirt.engine.api.model.Statistic s ) { return org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery.create ( s.getName ( ) , s.getDescription ( ) , s.getKind ( ) , s.getUnit ( ) , s.getType ( ) ) ; }
Source:
public void setUp ( ) { disk1 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk2 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk3 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; }

Target:
public void setUp ( ) { disk1 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk2 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk3 = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; lunDisk1 = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; lunDisk2 = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; }
Source:
public void statusMatches ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertTrue ( cmd.checkStorageDomainStatus ( StorageDomainStatus.InActive ) ) ; org.junit.Assert.assertFalse ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusMatches ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; org.junit.Assert.assertTrue ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Inactive ) ) ; org.junit.Assert.assertFalse ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
static void verifyParent ( org.ovirt.engine.api.model.Tag model , java.lang.String parentId ) { assertNotNull ( model.getParent ( ) ) ; assertEquals ( parentId , model.getParent ( ) . getId ( ) ) ; }

Target:
static void verifyParent ( org.ovirt.engine.api.model.Tag model , java.lang.String parentId ) { org.junit.Assert.assertNotNull ( model.getParent ( ) ) ; org.junit.Assert.assertEquals ( parentId , model.getParent ( ) . getId ( ) ) ; }
Source:
public void setRunOnVds ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setrun_on_vds ( value ) ; }

Target:
public java.util.Date getGuestLastLoginTime ( ) { return this . vmDynamic.getGuestLastLoginTime ( ) ; }
Source:
private void mockVdsCommand ( ) { vdsBrokerFrontendMock = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.interfaces.VDSBrokerFrontend.class ) ; org.mockito.Mockito.doReturn ( vdsBrokerFrontendMock ) . when ( getQuery ( ) ) . getVdsBroker ( ) ; }

Target:
private void mockStoragePoolDao ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.mockito.Mockito.when ( storagePoolDaoMock.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( storagePool ) ; }
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 ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) . endAction ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) . endAction ( ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { setLastExecutedCommand ( command ) ; if ( command == ( getOpenDocumentationCommand ( ) ) ) { OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "OpenDocumentation" ) ) ; } }

Target:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { setLastExecutedCommand ( command ) ; if ( command == ( getOpenDocumentationCommand ( ) ) ) { onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "OpenDocumentation" ) ) ; } }
Source:
private org.ovirt.engine.api.model.Network getNetwork ( ) { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , guid.toString ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Network get ( ) { org.ovirt.engine.core.common.businessentities.IscsiBond bond = getBond ( ) ; if ( ! ( bond.getNetworkIds ( ) . contains ( guid ) ) ) { notFound ( ) ; } return performGet ( VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public void testIsBackupDomain ( ) { domain.setBackup ( false ) ; org.junit.Assert.assertThat ( "Backup domain is not backup, should be valid." , validator.isNotBackupDomain ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIsBackupDomain ( ) { domain.setBackup ( false ) ; org.hamcrest.MatcherAssert.assertThat ( "Backup domain is not backup, should be valid." , validator.isNotBackupDomain ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setup ( org.ovirt.engine.core.utils.log.Log mock , java.lang.String message , java.lang.Object args ) { org.mockito.Mockito.when ( mock.isFatalEnabled ( ) ) . thenReturn ( true ) ; }

Target:
public void setup ( org.slf4j.Logger mock , java.lang.String message , java.lang.Object ... args ) { org.mockito.Mockito.when ( mock.isErrorEnabled ( ) ) . thenReturn ( true ) ; }
Source:
public void getOsMaxRam ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.GetMaxOsRam , osId , version ) , asyncQuery ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VdsNumaNode > ( ) ; } return source ; }
Source:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , null , 0 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void setErrorMessage ( java.lang.String errorMessage ) { errorMsg.setText ( errorMessage ) ; errorMsg.setVisible ( ( errorMessage != null ) ) ; }

Target:
public void setErrorMessage ( java.lang.String errorMessage ) { boolean isNonEmptyErrorMessage = errorMessage != null ; if ( isNonEmptyErrorMessage ) { errorMsg.setText ( errorMessage ) ; } errorMsg.setVisible ( isNonEmptyErrorMessage ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.AsyncTasks getAsyncTaskFromDb ( org.ovirt.engine.core.compat.Guid asyncTaskId ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.getAsyncTaskFromDb ( asyncTaskId ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.AsyncTasks getAsyncTaskFromDb ( org.ovirt.engine.core.compat.Guid asyncTaskId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.getAsyncTaskFromDb ( asyncTaskId ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel.ON_DISK_LOAD ) ) ; }

Target:
public void onDataLoad ( ) { checkIfDefaultStorageApplicableForAllDisks ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel.ON_DISK_LOAD ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; } return source ; }
Source:
public void displayAllAlerts ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( ActionType.DisplayAllAuditLogAlerts , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ) ; }

Target:
public void displayAllAlerts ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( ActionType.DisplayAllAuditLogAlerts , new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ) ; }
Source:
public java.lang.Integer getUsageNetworkPercent ( ) { return this . vmStatistics.getusage_network_percent ( ) ; }

Target:
public java.lang.Double getElapsedTime ( ) { return this . vmStatistics.getElapsedTime ( ) ; }
Source:
private void endUnlockOps ( ) { if ( isVmInDb ) { org.ovirt.engine.core.bll.VmHandler.unLockVm ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; } org.ovirt.engine.core.bll.VmTemplateHandler.UnLockVmTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVmTemplateId ( ) ) ; }

Target:
private void endUnlockOps ( ) { if ( isVmInDb ) { org.ovirt.engine.core.bll.VmHandler.unLockVm ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; } org.ovirt.engine.core.bll.VmTemplateHandler.unlockVmTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVmTemplateId ( ) ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.Cluster returnValue ) { onShowBrickAdvancedDetails ( volumeEntity ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.gluster.ReplaceBrickModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.ReplaceBrickModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; setWindow ( null ) ; }
Source:
public void testGetAllDisksByDiskProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages = dao.getAllForDiskProfile ( FixturesTool.DISK_PROFILE_1 ) ; org.junit.Assert.assertNotNull ( diskImages ) ; org.junit.Assert.assertEquals ( 6 , diskImages.size ( ) ) ; }

Target:
public void testGetAllDisksByDiskProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages = dao.getAllForDiskProfiles ( java.util.Arrays.asList ( FixturesTool.DISK_PROFILE_1 , FixturesTool.DISK_PROFILE_2 ) ) ; org.junit.Assert.assertNotNull ( diskImages ) ; org.junit.Assert.assertEquals ( 6 , diskImages.size ( ) ) ; }
Source:
public void hideLabel ( ) { getLabelElement ( ) . addClassName ( style.labelHidden ( ) ) ; }

Target:
public void setContentWidgetStyleName ( java.lang.String styleName ) { getContentWidget ( ) . asWidget ( ) . setStyleName ( styleName ) ; }
Source:
public java.util.Date getVmCreationDate ( ) { return this . vmStatic.getcreation_date ( ) ; }

Target:
public void setVmCreationDate ( java.util.Date value ) { this . vmStatic.setCreationDate ( value ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { uniqueOsNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( uniqueOsNames ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { uniqueOsNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( uniqueOsNames ) ) ; }
Source:
public static < TSource > TSource firstOrDefault ( java.lang.Iterable < TSource > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( source , new org.ovirt.engine.ui.uicommonweb.Linq.TruePredicate < TSource > ( ) ) ; }

Target:
public static < TSource > TSource firstOrNull ( java.lang.Iterable < TSource > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( source , new org.ovirt.engine.ui.uicommonweb.Linq.TruePredicate < TSource > ( ) ) ; }
Source:
protected boolean checkDiskUsedAsOvfStore ( org.ovirt.engine.core.bll.validator.DiskValidator diskValidator ) { return validate ( diskValidator.isDiskUsedAsOvfStore ( ) ) ; }

Target:
protected boolean checkDiskUsedAsOvfStore ( org.ovirt.engine.core.bll.validator.storage.DiskValidator diskValidator ) { return validate ( diskValidator.isDiskUsedAsOvfStore ( ) ) ; }
Source:
public static void decreasePendingVms ( org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.bll.VmHandler.decreasePendingVms ( vdsId , vm.getNumOfCpus ( ) , vm.getMinAllocatedMem ( ) , vm.getName ( ) ) ; }

Target:
public static void decreasePendingVms ( org.ovirt.engine.core.common.businessentities.VmStatic vm , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.bll.VmHandler.decreasePendingVms ( vdsId , vm.getNumOfCpus ( ) , vm.getMinAllocatedMem ( ) , vm.getName ( ) ) ; }
Source:
private java.lang.String getDefaultPluginTypeString ( ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . get ( OpenstackNetworkPluginType.OPEN_VSWITCH ) ; }

Target:
private java.lang.String getDefaultPluginTypeString ( ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( OpenstackNetworkPluginType.OPEN_VSWITCH ) ; }
Source:
public void setCreateQuotaCommand ( org.ovirt.engine.ui.uicommonweb.UICommand createQuotaCommand ) { this . createQuotaCommand = createQuotaCommand ; }

Target:
public void setCreateCommand ( org.ovirt.engine.ui.uicommonweb.UICommand createQuotaCommand ) { this . createCommand = createQuotaCommand ; }
Source:
public void testExtractIpv6GatewayEmptyString ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Gateway ( com.google.common.collect.ImmutableMap.of ( VdsProperties.IPV6_GLOBAL_GATEWAY , "" ) ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractIpv4GatewayEmptyString ( ) { org.hamcrest.MatcherAssert.assertThat ( vdsBrokerObjectsBuilder.extractGateway ( java.util.Collections.singletonMap ( VdsProperties.GLOBAL_GATEWAY , "" ) ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] snapParams ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookRemove ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
public boolean eval ( org.ovirt.engine.core.compat.Guid userId ) { org.ovirt.engine.core.common.businessentities.Permission superUserPermission = getPermissionDao ( ) . getForRoleAndAdElementAndObjectWithGroupCheck ( PredefinedRoles.SUPER_USER.getId ( ) , userId , MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ; return superUserPermission != null ; }

Target:
public boolean test ( org.ovirt.engine.core.compat.Guid userId ) { org.ovirt.engine.core.common.businessentities.Permission superUserPermission = getPermissionDao ( ) . getForRoleAndAdElementAndObjectWithGroupCheck ( PredefinedRoles.SUPER_USER.getId ( ) , userId , MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ; return superUserPermission != null ; }
Source:
public void setVmOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmStatic.setOs ( value ) ; }

Target:
public int getVmOsId ( ) { return this . vmStatic.getOsId ( ) ; }
Source:
public void isNetworkDevicePossitive ( ) { org.junit.Assert.assertEquals ( false , hostNicVfsConfigHelper.isNetworkDevice ( pciDevice ) ) ; }

Target:
public void isNetworkDevicePossitive ( ) { org.junit.Assert.assertFalse ( hostNicVfsConfigHelper.isNetworkDevice ( pciDevice ) ) ; }
Source:
public int compareTo ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < T > o ) { return org.ovirt.engine.core.common.utils.LexoNumericComparator.comp ( getName ( ) , o.getName ( ) ) ; }

Target:
public int compareTo ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < T > o ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( getName ( ) , o.getName ( ) ) ; }
Source:
protected void AddStoragePoolToDb ( ) { org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setstatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePoolDAO ( ) . save ( org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) ) ; }

Target:
protected void addStoragePoolToDb ( ) { org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setstatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePoolDAO ( ) . save ( org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) ) ; }
Source:
void initEditors ( ) { quotaListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < org.ovirt.engine.core.common.businessentities.Quota > ( new org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer < org.ovirt.engine.core.common.businessentities.Quota > ( ) { @ java.lang.Override public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.Quota quota ) { return quota.getQuotaName ( ) ; } } ) ; }

Target:
void initEditors ( ) { quotaListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.Quota > ( ) ) ; }