auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testEncryptThreads ( ) throws java.lang.Exception { java.util.List < java.lang.Thread > l = new java.util.LinkedList < > ( ) ; final java.lang.String plain = "Test123!32@" ; final java.util.concurrent.atomic.AtomicBoolean failed = new java.util.concurrent.atomic.AtomicBoolean ( ) ; final java.lang.StringBuffer failures = new java.lang.StringBuffer ( ) ; for ( int i = 0 ; i < 100 ; i ++ ) { final int threadCount = i ; l.add ( new java.lang.Thread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { try { java.lang.String encrypted = org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.encrypt ( plain ) ; java.lang.String actualDecrypted = org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.decrypt ( encrypted ) ; if ( ! ( plain.equals ( actualDecrypted ) ) ) { java.lang.String failure = java.lang.String.format ( "Failure in test %d, plain is %s%n" , threadCount , actualDecrypted ) ; failures.append ( failure ) ; failed.set ( true ) ; } } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } } } ) ) ; } for ( java.lang.Thread t : l ) { t.start ( ) ; } for ( java.lang.Thread t : l ) { t.join ( ) ; } org.junit.Assert.assertFalse ( failures.toString ( ) , failed.get ( ) ) ; }

Target:
public void testEncryptThreads ( ) throws java.lang.Exception { java.util.List < java.lang.Thread > l = new java.util.LinkedList < > ( ) ; final java.lang.String plain = "Test123!32@" ; final java.util.concurrent.atomic.AtomicBoolean failed = new java.util.concurrent.atomic.AtomicBoolean ( ) ; final java.lang.StringBuffer failures = new java.lang.StringBuffer ( ) ; for ( int i = 0 ; i < 100 ; i ++ ) { final int threadCount = i ; l.add ( new java.lang.Thread ( ( ) -> { try { java.lang.String encrypted = org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.encrypt ( plain ) ; java.lang.String actualDecrypted = org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.decrypt ( encrypted ) ; if ( ! ( plain.equals ( actualDecrypted ) ) ) { java.lang.String failure = java.lang.String.format ( "Failure in test %d, plain is %s%n" , threadCount , actualDecrypted ) ; failures.append ( failure ) ; failed.set ( true ) ; } } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } } ) ) ; } for ( java.lang.Thread t : l ) { t.start ( ) ; } for ( java.lang.Thread t : l ) { t.join ( ) ; } org.junit.Assert.assertFalse ( failures.toString ( ) , failed.get ( ) ) ; }
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 ) { onDataLoad ( ) ; }

Target:
protected void postInitDisks ( ) { onDataLoad ( ) ; checkDestFormatCompatibility ( ) ; stopProgress ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return getDbFacade ( ) . getVmDao ( ) . getAllForCpuProfiles ( java.util.Collections.singletonList ( getProfile ( ) . getId ( ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getTemplatesUsingProfile ( ) { return vmTemplateDao.getAllForCpuProfile ( getProfile ( ) . getId ( ) ) ; }
Source:
public void setMessage ( java.lang.String msg , org.gwtbootstrap3.client.ui.Alert alert ) { alert.setText ( msg ) ; alert.setVisible ( ( ! ( org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( msg ) ) ) ) ; }

Target:
public void setMessage ( java.lang.String msg , org.gwtbootstrap3.client.ui.Alert alert ) { alert.setText ( msg ) ; alert.setVisible ( org.ovirt.engine.core.compat.StringHelper.isNotNullOrEmpty ( msg ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByHostName ( java.lang.String host ) { return singleResult ( entityManager.createNamedQuery ( "VdsStatic.getByHostName" , org.ovirt.engine.core.common.businessentities.VdsStatic.class ) . setParameter ( "hostName" , host ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsStatic get ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByVdsId" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { return getNetworkDao ( ) . get ( getNetworkId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { return networkDao.get ( getNetworkId ( ) ) ; }
Source:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Frontend: sucessfully executed RunAction, determining result!" ) ; org.ovirt.engine.ui.frontend.Frontend.handleActionResult ( actionType , parameters , result , callback , state ) ; }

Target:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Frontend: sucessfully executed RunAction, determining result!" ) ; org.ovirt.engine.ui.frontend.Frontend.handleActionResult ( actionType , parameters , result , callback , state , showErrorDialog ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs pcArgs = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( "Progress" . equals ( pcArgs.PropertyName ) ) { updatePopupProgress ( model , popup ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs pcArgs = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( "Progress" . equals ( pcArgs.propertyName ) ) { updatePopupProgress ( model , popup ) ; } }
Source:
protected void endSuccessfully ( ) { org.ovirt.engine.core.bll.storage.connection.StorageHelperDirector.getInstance ( ) . getItem ( org.ovirt.engine.core.bll.storage.domain.RemoveDeviceFromSANStorageDomainCommand.getStorageDomain ( ) . getStorageType ( ) ) . removeLunFromStorageDomain ( org.ovirt.engine.core.bll.storage.domain.RemoveDeviceFromSANStorageDomainCommand.getParameters ( ) . getDeviceId ( ) ) ; org.ovirt.engine.core.bll.storage.domain.RemoveDeviceFromSANStorageDomainCommand.setSucceeded ( true ) ; }

Target:
protected void endSuccessfully ( ) { storageHelperDirector.getItem ( org.ovirt.engine.core.bll.storage.domain.RemoveDeviceFromSANStorageDomainCommand.getStorageDomain ( ) . getStorageType ( ) ) . removeLunFromStorageDomain ( org.ovirt.engine.core.bll.storage.domain.RemoveDeviceFromSANStorageDomainCommand.getParameters ( ) . getDeviceId ( ) ) ; org.ovirt.engine.core.bll.storage.domain.RemoveDeviceFromSANStorageDomainCommand.setSucceeded ( true ) ; }
Source:
public void updateVisibility ( ) { super . updateVisibility ( ) ; attachPanel.setVisible ( false ) ; clusterTab.setVisible ( false ) ; }

Target:
public void updateVisibility ( ) { super . updateVisibility ( ) ; attachPanel.setVisible ( false ) ; clusterTab.setVisible ( false ) ; toggleSubnetVisibility ( false ) ; }
Source:
public final boolean setUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return SetData ( org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }

Target:
public final boolean setUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( source ) ) : new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public void testGetDataAndSetDataWithFullSession ( ) { container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE , container.getData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) ) ; clearSession ( ) ; }

Target:
public void testGetDataAndSetDataWithFullSession ( ) { container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE , container.getData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) , "Get should return the value with a given session" ) ; clearSession ( ) ; }
Source:
void insertAsyncTaskEntity ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.compat.Guid entityId , org.ovirt.engine.core.common.VdcObjectType value ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTaskEntity > getAllAsyncTaskEntitiesByTaskId ( org.ovirt.engine.core.compat.Guid taskId ) ;
Source:
public java.util.Map < java.lang.String , java.lang.Object > createStorageDomain ( int domainType , java.lang.String sdUUID , java.lang.String domainName , java.lang.String arg , int storageType ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > vmUpdateDevice ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.Object > device ) ;
Source:
protected void updateBootableDiskAvailable ( ) { updateBootableFrom ( parentModel.getAllCurrentDisks ( ) ) ; }

Target:
protected void updateBootableDiskAvailable ( ) { updateBootableFrom ( parentModel.getAllCurrentDisksModels ( ) ) ; }
Source:
protected abstract void init ( ) ;

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel getPublicUse ( ) { return publicUse ; }
Source:
private org.ovirt.engine.core.common.businessentities.Snapshot getActiveSnapshot ( ) { return getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) , SnapshotType.ACTIVE ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) ; }
Source:
public void testGetAllForVdsGroupWithPermissionsDisabledForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForVdsGroup ( existingVds.getVdsGroupId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetAllForVdsGroupCorrectResult ( result ) ; }

Target:
public void testGetAllForClusterWithPermissionsDisabledForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForCluster ( existingVds.getClusterId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertGetAllForClusterCorrectResult ( result ) ; }
Source:
private void verifyActionResponse ( javax.ws.rs.core.Response r ) throws java.lang.Exception { verifyActionResponse ( r , ( ( ( "vms/" + ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.PARENT_GUID.toString ( ) ) ) + "/nics/" ) + ( org.ovirt.engine.api.restapi.resource.BackendVmNicResourceTest.NIC_ID.toString ( ) ) ) , false ) ; }

Target:
private void verifyActionResponse ( javax.ws.rs.core.Response r ) throws java.lang.Exception { verifyActionResponse ( r , ( ( ( "vms/" + ( org.ovirt.engine.api.restapi.resource.BackendVmNicResourceTest.VM_ID ) ) + "/nics/" ) + ( org.ovirt.engine.api.restapi.resource.BackendVmNicResourceTest.NIC_ID ) ) , false ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc vmUpdateDevice ( java.lang.String vmId , java.util.Map device ) ;
Source:
protected boolean isVdsGroupUnique ( java.lang.String vdsGroupName ) { org.ovirt.engine.core.dao.VdsGroupDao vdsGroupDao = org.ovirt.engine.core.bll.VdsGroupOperationCommandBase.getVdsGroupDao ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > vdsGroups = vdsGroupDao.getByName ( vdsGroupName , true ) ; return ( vdsGroups == null ) || ( vdsGroups.isEmpty ( ) ) ; }

Target:
protected boolean isClusterUnique ( java.lang.String clusterName ) { org.ovirt.engine.core.dao.ClusterDao clusterDao = org.ovirt.engine.core.bll.ClusterOperationCommandBase.getClusterDao ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > clusters = clusterDao.getByName ( clusterName , true ) ; return ( clusters == null ) || ( clusters.isEmpty ( ) ) ; }
Source:
public void testIdIsInvalid ( ) { org.junit.Assert.assertThat ( validator.parameterHavingIdExists ( unUsedId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NIC_FILTER_PARAMETER_ID_NOT_EXISTS , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( org.ovirt.engine.core.bll.validator.VmNicFilterParameterValidatorTest.VAR_FILTER_ID , unUsedId ) ) ) ; }

Target:
public void testIdIsInvalid ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.parameterHavingIdExists ( unUsedId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NIC_FILTER_PARAMETER_ID_NOT_EXISTS , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( org.ovirt.engine.core.bll.validator.VmNicFilterParameterValidatorTest.VAR_FILTER_ID , unUsedId ) ) ) ; }
Source:
public void setGuestOsType ( java.lang.String osType ) { vmDynamic.setGuestOsType ( osType ) ; }

Target:
public boolean hasIllegalImages ( ) { return hasIllegalImages ; }
Source:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] snapParams ) ;

Target:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks , java.lang.String memory ) ;
Source:
public static boolean is64bitOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.get64bitOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }

Target:
public int compare ( java.lang.Integer o1 , java.lang.Integer o2 ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o1 ) . compareTo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o2 ) ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , executionContext ) ; }
Source:
private static double truncatePercentage ( double value ) { return java.lang.Math.min ( 100 , value ) ; }

Target:
private static java.lang.Double truncatePercentage ( java.lang.Double value ) { return value == null ? null : java.lang.Math.min ( 100 , value ) ; }
Source:
public void testSubResourceLocator ( ) throws java.lang.Exception { assertTrue ( ( ( resource.getApplicationResource ( org.ovirt.engine.api.restapi.resource.BackendVmApplicationsResourceTest.VM_ID.toString ( ) ) ) instanceof org.ovirt.engine.api.resource.VmApplicationResource ) ) ; }

Target:
public void testSubResourceLocator ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( ( resource.getApplicationResource ( org.ovirt.engine.api.restapi.resource.BackendVmApplicationsResourceTest.VM_ID.toString ( ) ) ) instanceof org.ovirt.engine.api.resource.VmApplicationResource ) ) ; }
Source:
public static org.ovirt.engine.api.model.TransportType map ( org.ovirt.engine.api.model.TransportType transportType , org.ovirt.engine.api.model.TransportType template ) { switch ( transportType ) { case TCP : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.gluster.TransportType ; case RDMA : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.gluster.TransportType ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.TransportType map ( org.ovirt.engine.api.model.TransportType transportType , org.ovirt.engine.api.model.TransportType template ) { switch ( transportType ) { case TCP : return org.ovirt.engine.api.model.TransportType.TCP ; case RDMA : return org.ovirt.engine.api.model.TransportType.RDMA ; default : return null ; } }
Source:
public void init ( ) { super . init ( ) ; org.ovirt.engine.api.restapi.utils.OsTypeMockUtils.mockOsTypes ( ) ; }

Target:
public void init ( ) { super . init ( ) ; org.ovirt.engine.api.restapi.utils.OsTypeMockUtils.mockOsTypes ( ) ; osRepository = control.createMock ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc glusterSnapshotCreate ( java.lang.String volumeName , java.lang.String snapshotName , java.lang.String description , boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotCreateReturnForXmlRpc glusterVolumeSnapshotCreate ( java.lang.String volumeName , java.lang.String snapshotName , java.lang.String description , boolean force ) ;
Source:
public void OnPreSaveInternal ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel model ) { if ( ( ( java.lang.Boolean ) ( model.getIsImportGlusterConfiguration ( ) . getEntity ( ) ) ) ) { fetchAndImportClusterHosts ( model ) ; } else { OnSaveInternal ( ) ; } }

Target:
public void onPreSaveInternal ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel model ) { if ( ( ( java.lang.Boolean ) ( model.getIsImportGlusterConfiguration ( ) . getEntity ( ) ) ) ) { fetchAndImportClusterHosts ( model ) ; } else { onSaveInternal ( ) ; } }
Source:
public void testDefaultConfigurationValues ( ) { org.junit.Assert.assertEquals ( ConfigurationValues.DefaultWindowsTimeZone , org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getDefaultTimeZoneConfigurationKey ( ) ) ; org.junit.Assert.assertEquals ( ConfigurationValues.DefaultGeneralTimeZone , org.ovirt.engine.core.common.TimeZoneTypeTest.general.getDefaultTimeZoneConfigurationKey ( ) ) ; }

Target:
public void testDefaultConfigurationValues ( ) { org.junit.Assert.assertEquals ( ConfigValues.DefaultWindowsTimeZone , org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getDefaultTimeZoneConfigurationKey ( ) ) ; org.junit.Assert.assertEquals ( ConfigValues.DefaultGeneralTimeZone , org.ovirt.engine.core.common.TimeZoneTypeTest.general.getDefaultTimeZoneConfigurationKey ( ) ) ; }
Source:
public void InitTest ( ) { mockOsRepository ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.dal.dbbroker.DbFacade.class , dbFacade ) ; }

Target:
public void InitTest ( ) { mockCpuFlagsManagerHandler ( ) ; mockOsRepository ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.dal.dbbroker.DbFacade.class , dbFacade ) ; }
Source:
public boolean isInSync ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return ( details == null ) || ( details.isInSync ( ) ) ; }

Target:
public boolean isManaged ( ) { return ! ( ( isAttached ( ) ) && ( ( getNetworkAttachment ( ) ) == null ) ) ; }
Source:
public void testAddSupportedHostFeature ( ) { java.lang.String newFeature = "NEW_FEATURE_1" ; dao.addSupportedHostFeature ( FixturesTool.HOST_ID , newFeature ) ; java.util.Set < java.lang.String > featuresSupported = dao.getSupportedHostFeaturesByHostId ( FixturesTool.HOST_ID ) ; org.junit.Assert.assertThat ( "Failed to add the feature" , featuresSupported , org.hamcrest.CoreMatchers.hasItem ( newFeature ) ) ; }

Target:
public void testAddSupportedHostFeature ( ) { java.lang.String newFeature = "NEW_FEATURE_1" ; dao.addSupportedHostFeature ( FixturesTool.HOST_ID , newFeature ) ; java.util.Set < java.lang.String > featuresSupported = dao.getSupportedHostFeaturesByHostId ( FixturesTool.HOST_ID ) ; org.hamcrest.MatcherAssert.assertThat ( "Failed to add the feature" , featuresSupported , org.hamcrest.CoreMatchers.hasItem ( newFeature ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.scheduling.PolicyUnit > getCollection ( ) { return getBackendCollection ( VdcQueryType.GetAllPolicyUnits , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.scheduling.PolicyUnit > getCollection ( ) { return getBackendCollection ( QueryType.GetAllPolicyUnits , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }
Source:
public void setManagement ( boolean management ) { this . management = management ; }

Target:
public void setManagement ( boolean management ) { getEntity ( ) . getCluster ( ) . setManagement ( management ) ; }
Source:
private void doTest ( java.lang.String value , boolean valid ) { doTest ( value , valid , new org.ovirt.engine.ui.uicommonweb.validation.UriHostAddressValidationTest.MyHostAddressValidation ( ) ) ; }

Target:
private void doTest ( java.lang.String value , boolean valid ) { doTest ( value , valid , new org.ovirt.engine.ui.uicommonweb.validation.UriHostAddressValidation ( org.ovirt.engine.ui.uicommonweb.validation.UriHostAddressValidationTest.TEST_VIOLATION_MESSAGE ) ) ; }
Source:
private void auditLogOvfLoadError ( java.lang.String machineName , java.lang.String errorMessage ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "ImportedVmName" , machineName ) ; logable.addCustomValue ( "ErrorMessage" , errorMessage ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_FAILED_TO_IMPORT_VM ) ; }

Target:
private void auditLogOvfLoadError ( java.lang.String machineName , java.lang.String errorMessage ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "ImportedVmName" , machineName ) ; logable.addCustomValue ( "ErrorMessage" , errorMessage ) ; auditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_FAILED_TO_IMPORT_VM ) ; }
Source:
public void onFailure ( final java.lang.Throwable exception ) { handleRunMultipleActionFailure ( operations , exception ) ; }

Target:
public void onFailure ( final java.lang.Throwable exception ) { xsrfRequestBuilder.setXsrfToken ( null ) ; handleRunMultipleActionFailure ( operations , exception ) ; }
Source:
public org.ovirt.engine.api.model.Clusters list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVdsGroups , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; else return mapCollection ( getBackendCollection ( SearchType.Cluster ) ) ; }

Target:
private org.ovirt.engine.api.model.Clusters listAll ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVdsGroups , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.Cluster ) ) ; } }
Source:
public void removeCommand ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsCache.remove ( commandId ) ; }

Target:
public void removeCommand ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsCache.remove ( commandId ) ; updateCmdHierarchy ( commandId ) ; }
Source:
public void testGetFullPath_nullParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , null ) ; org.junit.Assert.assertNull ( "Path should be null" , file ) ; }

Target:
public void testGetFullPathNullParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , null ) ; org.junit.Assert.assertNull ( "Path should be null" , file ) ; }
Source:
public java.lang.Void runInTransaction ( ) { updatePassthoughDeviceIfNeeded ( ) ; getCompensationContext ( ) . snapshotEntity ( oldIface ) ; getVmNicDao ( ) . update ( getInterface ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { bumpVmVersion ( ) ; updatePassthoughDeviceIfNeeded ( ) ; getCompensationContext ( ) . snapshotEntity ( oldIface ) ; getVmNicDao ( ) . update ( getInterface ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
private void MAC_PropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { if ( ( e.PropertyName.equals ( "IsChangeAllowed" ) ) && ( ! ( getMAC ( ) . getIsChangable ( ) ) ) ) { getMAC ( ) . setIsValid ( true ) ; } }

Target:
private void mAC_PropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { if ( ( e.PropertyName.equals ( "IsChangeAllowed" ) ) && ( ! ( getMAC ( ) . getIsChangable ( ) ) ) ) { getMAC ( ) . setIsValid ( true ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > getQuotaVdsConsumptionParameters ( ) { return java.util.Arrays.< org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > asList ( new org.ovirt.engine.core.bll.quota.QuotaSanityParameter ( getQuotaId ( ) , null ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > getQuotaVdsConsumptionParameters ( ) { return java.util.Collections.< org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > singletonList ( new org.ovirt.engine.core.bll.quota.QuotaSanityParameter ( getQuotaId ( ) , null ) ) ; }
Source:
private boolean hostChanged ( com.woorea.openstack.quantum.model.Port port , java.lang.String hostId ) { return ( ( port.getBinding ( ) ) == null ) || ( ! ( org.apache.commons.lang.StringUtils.equals ( port.getBinding ( ) . getHostId ( ) , hostId ) ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > createPortAllocationRuntimeProperties ( com.woorea.openstack.quantum.model.Port port ) { java.util.Map < java.lang.String , java.lang.String > runtimeProperties = super . createPortAllocationRuntimeProperties ( port ) ; runtimeProperties.put ( "plugin_type" , provider.getAdditionalProperties ( ) . getPluginType ( ) ) ; return runtimeProperties ; }
Source:
public void testOneKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( ONE_KEY_VAL ) ; org.junit.Assert.assertEquals ( map.size ( ) , 1 ) ; }

Target:
public void testOneKeyVal ( ) { 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.ONE_KEY_VAL ) ; org.junit.Assert.assertEquals ( map.size ( ) , 1 ) ; }
Source:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Vm vm ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( res , vm , null ) ; }

Target:
public static void adjustDisplayData ( org.ovirt.engine.api.restapi.resource.BackendResource res , org.ovirt.engine.api.model.Vm vm , java.util.Map < org.ovirt.engine.core.compat.Guid , java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsDevice > > vmsGraphicsDevices , boolean nextRun ) { org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayDataInternal ( res , vm , vmsGraphicsDevices , nextRun ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel object ) { super . edit ( object ) ; initTabAvailabilityListeners ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) { super . edit ( unitVmModel ) ; changeApplicationLevelVisibility ( highAvailabilityTab , unitVmModel.getVmType ( ) . equals ( VmType.Server ) ) ; }
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 ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
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 ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public boolean isSetCore ( ) { return ( ( this . core ) != null ) && ( ! ( this . core.isEmpty ( ) ) ) ; }

Target:
public boolean isSetCores ( ) { return ( ( this . cores ) != null ) && ( ! ( this . cores.isEmpty ( ) ) ) ; }
Source:
public void run ( ) { for ( org.ovirt.engine.core.compat.Guid vmId : vmIds ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( vmId ) ) ; } }

Target:
public void run ( ) { processOnVmStopInternal ( vmIds , hostId ) ; }
Source:
public boolean getIsVmUp ( ) { return IsVmUp ( ) ; }

Target:
public boolean getIsVmUp ( ) { return isVmUp ( ) ; }
Source:
public void validateFailureOnMovingCinderDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnMovingLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) , null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
private static org.ovirt.engine.api.model.ImageTransferDirection mapType ( org.ovirt.engine.core.common.businessentities.storage.TransferType type ) { switch ( type ) { case Download : return org.ovirt.engine.api.model.ImageTransferDirection.DOWNLOAD ; case Upload : return org.ovirt.engine.api.model.ImageTransferDirection.UPLOAD ; default : return null ; } }

Target:
private static org.ovirt.engine.api.model.ImageTransferDirection mapDirection ( org.ovirt.engine.core.common.businessentities.storage.TransferType type ) { switch ( type ) { case Download : return org.ovirt.engine.api.model.ImageTransferDirection.DOWNLOAD ; case Upload : return org.ovirt.engine.api.model.ImageTransferDirection.UPLOAD ; default : return null ; } }
Source:
protected void updateDeviceProperties ( ) { oldVmDevice.setIsPlugged ( false ) ; oldVmDevice.setAddress ( "" ) ; oldVmDevice.setLogicalName ( null ) ; vmDeviceDao.update ( oldVmDevice ) ; }

Target:
protected void updateDeviceProperties ( ) { oldVmDevice.setPlugged ( false ) ; oldVmDevice.setAddress ( "" ) ; oldVmDevice.setLogicalName ( null ) ; vmDeviceDao.update ( oldVmDevice ) ; }
Source:
private boolean hasVolumeOnServer ( ) { if ( ( getGlusterBrickDao ( ) . getGlusterVolumeBricksByServerId ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) . size ( ) ) > 0 ) { return true ; } else { return false ; } }

Target:
private boolean hasVolumeBricksOnServer ( ) { if ( ( getGlusterBrickDao ( ) . getGlusterVolumeBricksByServerId ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) . size ( ) ) > 0 ) { return true ; } else { return false ; } }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Plugin ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . selectSpiceImplementation ( SpiceConsoleModel.ClientConsoleMode.Native ) ; }
Source:
public void managementNetworkNotExternalValidInvalidExternal ( ) { testmanagementNetworkNotExternal ( true , true , org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_CANNOT_BE_EXTERNAL ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.hasItem ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.NETWORK_NAME_REPLACEMENT ) ) ) ) ; }

Target:
public void managementNetworkNotExternalValidInvalidExternal ( ) { testmanagementNetworkNotExternal ( true , true , org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_CANNOT_BE_EXTERNAL ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.hasItem ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.NETWORK_NAME_REPLACEMENT ) ) ) ) ; }
Source:
public void setVolumeType ( org.ovirt.engine.core.common.businessentities.VolumeType type ) { volumeType = type ; setSelectedVolumeType ( type ) ; }

Target:
public void setVolumeType ( org.ovirt.engine.core.common.businessentities.storage.VolumeType type ) { volumeType = type ; setSelectedVolumeType ( type ) ; }
Source:
public void addToHistoryAddingNull ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 1 , 2 ) , statistics.addToHistory ( java.util.Arrays.asList ( 1 , 2 ) , null , 100 ) ) ; }

Target:
public void addToHistoryAddingNull ( ) { org.junit.jupiter.api.Assertions.assertEquals ( java.util.Arrays.asList ( 1 , 2 ) , statistics.addToHistory ( java.util.Arrays.asList ( 1 , 2 ) , null , 100 ) ) ; }
Source:
public org.ovirt.engine.core.compat.Version getVdsGroupCompatibilityVersion ( ) { return this . vdsGroupCompatibilityVersion ; }

Target:
public org.ovirt.engine.core.compat.Version getClusterCompatibilityVersion ( ) { return this . clusterCompatibilityVersion ; }
Source:
public void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh , org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageFileType ) { getIrsImageList ( aQuery , storagePoolId , forceRefresh , imageFileType , new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.RepoImageToImageFileNameAsyncConverter ( ) ) ; }

Target:
public void getUserProfile ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetUserProfile , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) . withoutRefresh ( ) , aQuery ) ; }
Source:
private java.util.Collection < java.lang.String > getFreeLabels ( ) { java.util.SortedSet < java.lang.String > freeLabels = new java.util.TreeSet < java.lang.String > ( dcLabels ) ; freeLabels.removeAll ( labelToIface.keySet ( ) ) ; return freeLabels ; }

Target:
private void initLabelModels ( ) { networkLabelMap.clear ( ) ; for ( java.lang.String label : dcLabels ) { networkLabelMap.put ( label , new org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkLabelModel ( label , this ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageServerConnections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getstorage ( ) ) } ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageServerConnections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getStorage ( ) ) } ) ) ; }
Source:
public void setSearchStringPrefix ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchStringPrefix , value ) ) ) { searchStringPrefix = value ; SearchStringPrefixChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "SearchStringPrefix" ) ) ; } }

Target:
private void setHasSearchStringPrefix ( boolean value ) { if ( ( hasSearchStringPrefix ) != value ) { hasSearchStringPrefix = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HasSearchStringPrefix" ) ) ; } }
Source:
private void Pause ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.HibernateVm , new org.ovirt.engine.core.common.action.HibernateVmParameters ( entity.getId ( ) ) ) ; }

Target:
private void pause ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.HibernateVm , new org.ovirt.engine.core.common.action.VmOperationParameterBase ( entity.getId ( ) ) ) ; }
Source:
public void disableCifs ( ) { accessProtocols.remove ( AccessProtocol.CIFS ) ; }

Target:
public void disableCifs ( ) { accessProtocols.remove ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_CIFS_DISABLE , GlusterConstants.ON ) ; }
Source:
public void setMemoryVolume ( java.lang.String memoryVolume ) { this . memoryVolume = ( memoryVolume == null ) ? "" : memoryVolume ; }

Target:
public boolean containsMemory ( ) { return ( ( memoryDiskId ) != null ) || ( ( metadataDiskId ) != null ) ; }
Source:
private void removeMemoryImages ( ) { new org.ovirt.engine.core.bll.memory.MemoryImageRemoverFromExportDomain ( getVm ( ) , this , org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getParameters ( ) . getStorageDomainId ( ) ) . remove ( ) ; }

Target:
private void removeMemoryImages ( ) { org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.memory.MemoryImageRemoverFromExportDomain ( getVm ( ) , this , org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getParameters ( ) . getStorageDomainId ( ) ) ) . remove ( ) ; }
Source:
public void testIsNetworkInSyncWhenIpv6GatewayEqual ( ) { initIpv6ConfigurationBootProtocolGateway ( Ipv6BootProtocol.STATIC_IP , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv6BootProtocolNotStaticNetmaskDifferent ( ) { initIpv6ConfigurationBootProtocolPrefix ( Ipv6BootProtocol.NONE , false ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyUsbTypeLegacy ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDAO ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmId ) ; }

Target:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmId ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( "IsSelectedNullable" . equals ( ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ) ) { com.google.gwt.event.logical.shared.SelectionEvent.fire ( this , this ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( "IsSelectedNullable" . equals ( ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName ) ) { com.google.gwt.event.logical.shared.SelectionEvent.fire ( this , this ) ; } }
Source:
public void passDiscardSupportedForDestSdCopyTemplateDiskOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; mockPassDiscardSupportedForDestSd ( ValidationResult.VALID , ImageOperation.Copy ) ; initTemplateDiskImage ( ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }

Target:
public void passDiscardSupportedForDestSdCopyTemplateDiskOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.TEMPLATE ) ; mockPassDiscardSupportedForDestSd ( ValidationResult.VALID , ImageOperation.Copy ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }
Source:
private java.lang.String getHostNameOfServer ( org.ovirt.engine.core.compat.Guid serverId ) { return jdbcTemplate.queryForObject ( "select host_name from vds_static where vds_id = ?" , java.lang.String.class , serverId.getUuid ( ) ) ; }

Target:
public void updateBrickTaskByHostIdBrickDir ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String brickDir , org.ovirt.engine.core.compat.Guid taskId ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterBrickTaskByServerIdBrickDir" , getCustomMapSqlParameterSource ( ) . addValue ( "server_id" , serverId ) . addValue ( "brick_dir" , brickDir ) . addValue ( "task_id" , taskId ) ) ; }
Source:
java.lang.String errConnectingVmUsingRdpMsg ( java.lang.Object errCode ) ;

Target:
java.lang.String errConnectingVmUsingSpiceMsg ( java.lang.Object errCode ) ;
Source:
void initTableOverhead ( ) { disksViewRadioGroup.setClickHandler ( clickHandler ) ; org.ovirt.engine.ui.common.widget.uicommon.vm.BaseVmDiskListModelTable.getTable ( ) . setTableOverhead ( disksViewRadioGroup ) ; org.ovirt.engine.ui.common.widget.uicommon.vm.BaseVmDiskListModelTable.getTable ( ) . setTableTopMargin ( 20 ) ; }

Target:
void initTableOverhead ( ) { disksViewRadioGroup.setClickHandler ( clickHandler ) ; disksViewRadioGroup.addStyleName ( "dvrg_radioGroup_pfly_fix" ) ; org.ovirt.engine.ui.common.widget.uicommon.vm.BaseVmDiskListModelTable.getTable ( ) . setTableOverhead ( disksViewRadioGroup ) ; org.ovirt.engine.ui.common.widget.uicommon.vm.BaseVmDiskListModelTable.getTable ( ) . setTableTopMargin ( 20 ) ; }
Source:
public java.util.Map getOKStatusNotImplemented ( ) { log.warn ( "The method is not fully implemented!" , new java.lang.Exception ( ) ) ; return ResultCodes.OK.newMap ( ) ; }

Target:
public java.util.Map getOKStatusNotImplemented ( ) { log.warn ( "The method is not fully implemented!" , new java.lang.Exception ( ) ) ; return org.ovirt.vdsmfake.service.AbstractService.getStatusMap ( "OK" , 0 ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( "Recipient{" + "transport='" ) + ( transport ) ) + '\'' ) + ", name='" ) + ( name ) ) + '\'' ) + '}' ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "transport" , transport ) . append ( "name" , name ) . build ( ) ; }
Source:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( returnValue ) ) ) ; }