auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.bll.ValidationResult portMirroringNotSetIfExternalNetwork ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( ! ( nic.isPortMirroring ( ) ) ) || ( ( network.getProvidedBy ( ) ) == null ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_PORT_MIRRORED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult portMirroringNotSetIfExternalNetwork ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( ! ( nic.isPortMirroring ( ) ) ) || ( ! ( network.isExternal ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_PORT_MIRRORED ) ; }
Source:
private void markCurrentCmdlineAsStored ( ) { final org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic = org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) . getStaticData ( ) ; org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVdsStaticDao ( ) . updateLastStoredKernelCmdline ( vdsStatic.getId ( ) , vdsStatic.getCurrentKernelCmdline ( ) ) ; }

Target:
private void markCurrentCmdlineAsStored ( ) { final org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic = org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) . getStaticData ( ) ; vdsStaticDao.updateLastStoredKernelCmdline ( vdsStatic.getId ( ) , vdsStatic.getCurrentKernelCmdline ( ) ) ; }
Source:
public boolean remove ( int index ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
protected void onRemove ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueLineModel value , org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget widget ) { super . onRemove ( value , widget ) ; model.updateKeys ( ) ; widgets.remove ( widget ) ; }
Source:
public void setInfo ( java.lang.String value ) { setinfo ( value ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Info" ) ) ; }

Target:
public void setInfo ( java.lang.String value ) { setinfo ( value ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Info" ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.storage.export.MoveOrCopyTemplateCommand.getStoragePoolId ( ) , org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getAllStorageIdsForImageIds ( diskImages ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getStoragePoolId ( ) , org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getAllStorageIdsForImageIds ( diskImages ) ) ; }
Source:
protected org.ovirt.engine.api.model.Disk getUpdate ( ) { org.ovirt.engine.api.model.Disk update = new org.ovirt.engine.api.model.Disk ( ) ; update.setWipeAfterDelete ( false ) ; return update ; }

Target:
protected org.ovirt.engine.api.model.Disk getUpdate ( ) { org.ovirt.engine.api.model.Disk update = new org.ovirt.engine.api.model.Disk ( ) ; update.setWipeAfterDelete ( false ) ; update.setReadOnly ( false ) ; return update ; }
Source:
protected boolean canDoAction ( ) { if ( ! ( super . canDoAction ( ) ) ) { return false ; } if ( ( getGeoRepSession ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.gluster.GeoRepSessionStatus.PASSIVE ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_GEOREP_SESSION_ALREADY_PAUSED ) ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ! ( super . canDoAction ( ) ) ) { return false ; } if ( ( getGeoRepSession ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.gluster.GeoRepSessionStatus.PASSIVE ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_GEOREP_SESSION_ALREADY_PAUSED ) ; } return true ; }
Source:
protected javax.ws.rs.core.UriInfo setUpRestoreExpectations ( ) { return setUpActionExpectations ( VdcActionType.RestoreAllSnapshots , org.ovirt.engine.core.common.action.RestoreAllSnapshotsParameters.class , new java.lang.String [ ] { "VmId" , "SnapshotAction" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendSnapshotResourceTest.VM_ID , org.ovirt.engine.core.common.businessentities.SnapshotActionEnum.COMMIT } , true , true , null ) ; }

Target:
protected javax.ws.rs.core.UriInfo setUpRestoreExpectations ( ) { return setUpActionExpectations ( ActionType.RestoreAllSnapshots , org.ovirt.engine.core.common.action.RestoreAllSnapshotsParameters.class , new java.lang.String [ ] { "VmId" , "SnapshotAction" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendSnapshotResourceTest.VM_ID , org.ovirt.engine.core.common.businessentities.SnapshotActionEnum.COMMIT } , true , true , null ) ; }
Source:
private org.ovirt.engine.core.bll.snapshots.RemoveSnapshotSingleDiskLiveCommand < org.ovirt.engine.core.common.action.RemoveSnapshotSingleDiskParameters > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; }

Target:
protected org.ovirt.engine.core.bll.snapshots.RemoveSnapshotSingleDiskLiveCommand < org.ovirt.engine.core.common.action.RemoveSnapshotSingleDiskParameters > getRemoveSnapshotCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( existingVds.getvds_name ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingVds.getvds_name ( ) , result.getvds_name ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( existingVds.getvds_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds.getvds_name ( ) , result.getvds_name ( ) ) ; }
Source:
public void AddError ( java.lang.String error ) { }

Target:
public void addError ( java.lang.String error ) { }
Source:
public void addOrUpdateTaskInDB ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . saveOrUpdate ( asyncTask ) ; }

Target:
public void cancelTasks ( final org.ovirt.engine.core.bll.CommandBase command ) { coCoAsyncTaskHelper.cancelTasks ( command , org.ovirt.engine.core.bll.tasks.CommandCoordinatorImpl.log ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_VM , getVmIsBeingRemovedFromExportDomainMessage ( ) ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_VM , getVmIsBeingRemovedFromExportDomainMessage ( ) ) ) ; }
Source:
protected boolean isVirtioScsiEnabled ( ) { java.lang.Boolean virtioScsiEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isVirtioScsiEnabled ( ) ; return virtioScsiEnabled != null ? virtioScsiEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isVirtioScsiControllerAttached ( getVmId ( ) ) ; }

Target:
protected boolean isVirtioScsiEnabled ( ) { java.lang.Boolean virtioScsiEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isVirtioScsiEnabled ( ) ; return virtioScsiEnabled != null ? virtioScsiEnabled : isVirtioScsiEnabledForVm ( getVmId ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return java.lang.String.valueOf ( object.getDiskMap ( ) . size ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return java.lang.String.valueOf ( object.getDiskTemplateMap ( ) . size ( ) ) ; }
Source:
public void testCanDoActionImageHasParent ( ) { getDiskImage ( ) . setParentId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }

Target:
public void testValidateImageHasParent ( ) { getDiskImage ( ) . setParentId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }
Source:
public void testSetup ( ) { mockQuotaDao ( ) ; }

Target:
public void testAddDefaultQuota ( ) { org.ovirt.engine.core.bll.AddQuotaCommand command = createCommand ( ) ; command.getParameters ( ) . getQuota ( ) . setDefault ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_QUOTA_IS_NOT_VALID ) ; }
Source:
public org.ovirt.engine.core.utils.lock.LockManager getLockManager ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.utils.lock.LockManager.class ) ; }

Target:
public void endStepJob ( org.ovirt.engine.core.common.job.Step step ) { jobRepository.updateStep ( step ) ; org.ovirt.engine.core.bll.job.ExecutionContext finalContext = executionHandler.createFinalizingContext ( step.getId ( ) ) ; executionHandler.endTaskStepAndJob ( finalContext , isTaskSuccess ( step.getStatus ( ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneLUNReturnForXmlRpc getDeviceInfo ( java.lang.String devGUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookDisable ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
private org.ovirt.engine.core.common.scheduling.AffinityGroup createAffinityGroup ( ) { affinityGroup = new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ; affinityGroup.setName ( org.ovirt.engine.core.bll.scheduling.commands.EditAffinityGroupCommandTest.AFFINITY_GROUP_NAME ) ; affinityGroup.setClusterId ( clusterId ) ; affinityGroup.setEntityIds ( new java.util.ArrayList < > ( ) ) ; return affinityGroup ; }

Target:
private org.ovirt.engine.core.common.scheduling.AffinityGroup createAffinityGroup ( ) { affinityGroup = new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ; affinityGroup.setName ( org.ovirt.engine.core.bll.scheduling.commands.EditAffinityGroupCommandTest.AFFINITY_GROUP_NAME ) ; affinityGroup.setClusterId ( clusterId ) ; affinityGroup.setVmIds ( new java.util.ArrayList < > ( ) ) ; return affinityGroup ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc extendImageTransferSession ( java.lang.String ticketId , long expiration ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.VolumeInfoReturnForXmlRpc getVolumeInfo ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
public com.google.gwt.user.client.ui.Widget getValueWidget ( ) { return valueWidget ; }

Target:
public int getRow ( ) { return ( autoPlacement ) && ( ( autoPlacementRow ) != ( org.ovirt.engine.ui.common.widget.form.FormItem.UNASSIGNED_ROW ) ) ? autoPlacementRow : row ; }
Source:
public void testValidModifiedBondsFailsWhenBondIsUnnamed ( ) throws java.lang.Exception { doTestValidModifiedBonds ( new org.ovirt.engine.core.common.businessentities.network.Bond ( ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenBondNotHaveNameAndId ( ) throws java.lang.Exception { doTestValidModifiedBonds ( new org.ovirt.engine.core.common.businessentities.network.Bond ( ) , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.BOND_DOES_NOT_HAVE_NEITHER_ID_NOR_NAME_SPECIFIED ) , ValidationResult.VALID ) ; }
Source:
java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct networks , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct bonding , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct options ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.AlignmentScanReturnForXmlRpc getDiskAlignment ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > driveSpecs ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitecture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { if ( org.apache.commons.lang.StringUtils.isNotEmpty ( group.getcpu_name ( ) ) ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.getArchitectureByCpuName ( group.getcpu_name ( ) , group.getcompatibility_version ( ) ) ; } return group.getArchitecture ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitecture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { if ( org.apache.commons.lang.StringUtils.isNotEmpty ( group.getCpuName ( ) ) ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.getArchitectureByCpuName ( group.getCpuName ( ) , group.getCompatibilityVersion ( ) ) ; } return group.getArchitecture ( ) ; }
Source:
private void cancel ( ) { cancelConfirmation ( ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
private void onSaveVm ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( getWindow ( ) ) ) ; java.lang.String name = model.getName ( ) . getEntity ( ) ; setcurrentVm ( new org.ovirt.engine.core.common.businessentities.VM ( ) ) ; validateVm ( model , name ) ; }
Source:
public void validateFailsWithEmptyBricksList ( ) { cmd.getParameters ( ) . setBricks ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithEmptyBricksList ( ) { cmd.getParameters ( ) . setBricks ( java.util.Collections.emptyList ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_GLUSTER_VOLUME_INVALID ) ; }
Source:
public boolean isSetValue ( ) { return ( this . value ) != null ; }

Target:
public void setExpectedValue ( java.lang.String value ) { this . expectedValue = value ; }
Source:
public void setHasAdditionalConsoleModel ( boolean value ) { if ( ( hasAdditionalConsoleModel ) != value ) { hasAdditionalConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "HasAdditionalConsoleModel" ) ) ; } }

Target:
public void setAdditionalConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( additionalConsoleModel ) != value ) { additionalConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AdditionalConsoleModel" ) ) ; } }
Source:
void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants , org.ovirt.engine.ui.webadmin.ApplicationDynamicMessages dynamicMessages ) { closeButton.setText ( constants.closeButtonLabel ( ) ) ; titleLabel.setText ( constants.aboutPopupCaption ( ) ) ; copyrightNotice.setText ( dynamicMessages.copyRightNotice ( ) ) ; }

Target:
void localize ( ) { closeButton.setText ( org.ovirt.engine.ui.webadmin.section.main.view.AboutPopupView.constants.closeButtonLabel ( ) ) ; titleLabel.setText ( org.ovirt.engine.ui.webadmin.section.main.view.AboutPopupView.constants.aboutPopupCaption ( ) ) ; copyrightNotice.setText ( dynamicMessages.copyRightNotice ( ) ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { test ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { updateProvisionedHosts ( ) ; }
Source:
private java.lang.String ipv6 ( ) { return org.ovirt.engine.core.common.utils.ValidationUtils.IPV6_PATTERN ; }

Target:
protected java.lang.String getIpv6Pattern ( ) { return org.ovirt.engine.core.common.utils.ValidationUtils.IPV6_PATTERN ; }
Source:
public static boolean IsVmInPool ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDAO ( ) . get ( vmId ) ; return ( vm != null ) && ( ( vm.getVmPoolId ( ) ) != null ) ; }

Target:
private boolean isVmInPool ( org.ovirt.engine.core.compat.Guid vmId ) { return ( org.ovirt.engine.core.bll.RemoveVmCommand.getVm ( ) . getVmPoolId ( ) ) != null ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > startSpice ( java.lang.String vdsIp , int port , java.lang.String ticket ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > add_image_ticket ( java.lang.String ticketId , java.lang.String [ ] ops , long timeout , long size , java.lang.String url ) ;
Source:
public void setConsole_current_user_name ( java.lang.String console_cur_user_name ) { this . consoleCurUserName = console_cur_user_name ; }

Target:
public void setConsoleCurrentUserName ( java.lang.String consoleCurUserName ) { this . consoleCurUserName = consoleCurUserName ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( addr , description , gateway , id , name , dataCenterId , stp , subnet , type , vlanId , mtu , vmNetwork , providedBy , label , qosId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( addr , description , gateway , id , name , vdsmName , dataCenterId , stp , subnet , type , vlanId , mtu , vmNetwork , providedBy , label , qosId ) ; }
Source:
private void runAndAssertCanDoActionSuccess ( ) { boolean canDoAction = command.canDoAction ( ) ; java.lang.System.out.println ( command.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; org.junit.Assert.assertTrue ( canDoAction ) ; }

Target:
private void runAndAssertCanDoActionSuccess ( ) { boolean canDoAction = command.canDoAction ( ) ; org.ovirt.engine.core.bll.AddDiskToVmCommandTest.log.info ( command.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; org.junit.Assert.assertTrue ( canDoAction ) ; }
Source:
public org.ovirt.engine.core.aaa.DirectoryGroup findGroup ( org.ovirt.engine.core.common.utils.ExternalId id ) { return null ; }

Target:
public org.ovirt.engine.core.aaa.DirectoryGroup findGroupById ( java.lang.String id ) { return null ; }
Source:
public java.lang.Boolean getKsmState ( ) { return this . mVdsStatistics.getksm_state ( ) ; }

Target:
public java.lang.Integer getKsmCpuPercent ( ) { return this . mVdsStatistics.getKsmCpuPercent ( ) ; }
Source:
public void setCloseCommand ( org.ovirt.engine.ui.uicommonweb.UICommand closeCommand ) { this . closeCommand = closeCommand ; }

Target:
public void updateModelBySnapshot ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { setDisks ( new java.util.ArrayList ( snapshot.getDiskImages ( ) ) ) ; getMemory ( ) . setEntity ( snapshot.containsMemory ( ) ) ; }
Source:
public void testAddValueGuid ( ) { org.ovirt.engine.core.compat.Guid guid = new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; paramSource.addValue ( paramName , guid ) ; org.junit.Assert.assertEquals ( "wrong value returned from parameter source" , guid.toString ( ) , paramSource.getValue ( paramName ) ) ; }

Target:
public void testAddValueGuid ( ) { org.ovirt.engine.core.compat.Guid guid = new org.ovirt.engine.core.compat.Guid ( java.util.UUID.randomUUID ( ) ) ; paramSource.addValue ( paramName , guid ) ; org.junit.Assert.assertEquals ( "wrong value returned from parameter source" , guid.getUuid ( ) , paramSource.getValue ( paramName ) ) ; }
Source:
public void onSelectionChange ( com.google.gwt.view.client.SelectionChangeEvent event ) { button.setEnabled ( ( ! ( selectionModel.getSelectedSet ( ) . isEmpty ( ) ) ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.dialog.ShapedButton createIncludeButton ( ) { return new org.ovirt.engine.ui.common.widget.dialog.ShapedButton ( org.ovirt.engine.ui.common.widget.HorizontalSplitTable.resources.arrowDownNormal ( ) , org.ovirt.engine.ui.common.widget.HorizontalSplitTable.resources.arrowDownClick ( ) , org.ovirt.engine.ui.common.widget.HorizontalSplitTable.resources.arrowDownOver ( ) , org.ovirt.engine.ui.common.widget.HorizontalSplitTable.resources.arrowDownDisabled ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterfaceWithStaticIp ( java.lang.String ip ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface networkInterface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; networkInterface.setIpv4Address ( ip ) ; networkInterface.setIpv4BootProtocol ( NetworkBootProtocol.STATIC_IP ) ; return networkInterface ; }

Target:
private static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterfaceWithStaticIp ( java.lang.String ip ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface networkInterface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; networkInterface.setIpv4Address ( ip ) ; networkInterface.setIpv4BootProtocol ( Ipv4BootProtocol.STATIC_IP ) ; return networkInterface ; }
Source:
public void testValidateBondOptionsForNewAttachementWithNonVmNetwork ( ) { validateValidBonds ( true , false , true , false ) ; }

Target:
public void validateBondOptionsForNewAttachementWithOutOfSyncVmNetworkNotOverridden ( ) { validateValidBondsForAllBondModes ( true , true , false , false ) ; }
Source:
private void assertPostZeroValue ( org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters , boolean postZeroExpectedValue ) { org.junit.Assert.assertEquals ( java.text.MessageFormat.format ( "Wrong VDS command parameters: 'postZero' should be {0}." , postZeroExpectedValue ) , parameters.getPostZero ( ) , postZeroExpectedValue ) ; }

Target:
private void assertPostZeroValue ( org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters , boolean postZeroExpectedValue ) { org.junit.jupiter.api.Assertions.assertEquals ( parameters.getPostZero ( ) , postZeroExpectedValue , java.text.MessageFormat.format ( "Wrong VDS command parameters: 'postZero' should be {0}." , postZeroExpectedValue ) ) ; }
Source:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters params = new org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( guid , vmId ) ) ; return doAction ( VdcActionType.HotPlugDiskToVm , params , action ) ; }

Target:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.VmDiskOperationParameterBase params = new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( guid , vmId ) ) ; return doAction ( VdcActionType.HotPlugDiskToVm , params , action ) ; }
Source:
public void UpdateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDAO ( ) . update ( dynamicData ) ; }

Target:
public long getLastUpdateElapsed ( ) { return ( lastUpdate ) - ( updateStartTime ) ; }
Source:
private void initializeCommand ( org.ovirt.engine.core.common.action.UpdateVmDiskParameters params ) { initializeCommand ( params , java.util.Collections.singletonList ( createVmStatusDown ( ) ) ) ; }

Target:
private void initializeCommand ( org.ovirt.engine.core.common.action.VmDiskOperationParameterBase params ) { initializeCommand ( params , java.util.Collections.singletonList ( createVmStatusDown ( ) ) ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3GraphicsConsolesServer getGraphicsConsolesResource ( ) { return new org.ovirt.engine.api.v3.servers.V3GraphicsConsolesServer ( delegate.getGraphicsConsolesResource ( ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3GraphicsConsolesServer getGraphicsConsolesResource ( ) { return new org.ovirt.engine.api.v3.servers.V3GraphicsConsolesServer ( getDelegate ( ) . getGraphicsConsolesResource ( ) ) ; }
Source:
public void shouldDetectDifferentOs ( ) { org.hamcrest.MatcherAssert.assertThat ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) . isSameOs ( new org.ovirt.engine.core.bll.scheduling.OS ( "os2" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) ) , org.hamcrest.core.Is.is ( false ) ) ; }

Target:
public void shouldDetectDifferentOs ( ) { org.hamcrest.MatcherAssert.assertThat ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) . isSameOsFamily ( new org.ovirt.engine.core.bll.scheduling.OS ( "os2" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) ) , org.hamcrest.core.Is.is ( false ) ) ; }
Source:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getCreatedTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.uploadImageFromStream ; }

Target:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getCreatedTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.uploadImageToStream ; }
Source:
protected void setHostPort ( org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( ( vds.getPort ( ) ) == 0 ) { getPort ( ) . setEntity ( org.ovirt.engine.ui.uicommonweb.models.hosts.NewHostModel.NewHostDefaultPort ) ; } }

Target:
protected void setPort ( org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( ( vds.getPort ( ) ) == 0 ) { getPort ( ) . setEntity ( org.ovirt.engine.ui.uicommonweb.models.hosts.NewHostModel.NewHostDefaultPort ) ; } }
Source:
private void UpdateVmTemplate ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . update ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplate ( ) ) ; }

Target:
private void UpdateVmTemplate ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . update ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplate ( ) ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateSmartcardDevice ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplateId ( ) , org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . getVmTemplateData ( ) . isSmartcardEnabled ( ) ) ; }
Source:
public static java.util.Map < org.ovirt.engine.core.common.EventNotificationEntity , java.util.HashSet < org.ovirt.engine.core.common.AuditLogType > > getAvailableNotificationEvents ( ) { return org.ovirt.engine.core.common.VdcEventNotificationUtils.GetNotificationEvents ( ) ; }

Target:
public static java.util.Map < org.ovirt.engine.core.common.EventNotificationEntity , java.util.HashSet < org.ovirt.engine.core.common.AuditLogType > > getAvailableNotificationEvents ( ) { return org.ovirt.engine.core.common.VdcEventNotificationUtils.getNotificationEvents ( ) ; }
Source:
public void testMethodAllowsConcurrent ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.timer.JobWrapper.methodAllowsConcurrent ( new org.ovirt.engine.core.utils.timer.JobWrapperTest.Dummy ( ) , "serialOnly" ) ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.timer.JobWrapper.methodAllowsConcurrent ( new org.ovirt.engine.core.utils.timer.JobWrapperTest.Dummy ( ) , "normalJob" ) ) ; }

Target:
public void testMethodAllowsConcurrent ( ) { org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.utils.timer.JobWrapper.methodAllowsConcurrent ( new org.ovirt.engine.core.utils.timer.JobWrapperTest.Dummy ( ) , "serialOnly" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.utils.timer.JobWrapper.methodAllowsConcurrent ( new org.ovirt.engine.core.utils.timer.JobWrapperTest.Dummy ( ) , "normalJob" ) ) ; }
Source:
public static org.ovirt.engine.core.common.action.VdcActionParametersBase eqActionParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { org.easymock.EasyMock.reportMatcher ( new org.ovirt.engine.api.restapi.test.util.TestHelper.ActionParametersEquals ( clz , names , values ) ) ; return null ; }

Target:
public static org.ovirt.engine.core.common.action.VdcActionParametersBase eqActionParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { return org.mockito.Matchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.ActionParametersEquals ( clz , names , values ) ) ; }
Source:
private void cpuIsNotUpdatable ( ) { org.mockito.Mockito.doReturn ( false ) . when ( cmd ) . isCpuUpdatable ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.Cluster.class ) ) ; }

Target:
private void cpuIsNotUpdatable ( ) { org.mockito.Mockito.doReturn ( false ) . when ( cmd ) . isCpuUpdatable ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new org.ovirt.engine.core.bll.StorageJobCallback ( ) ; }

Target:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.createVolume ; }
Source:
private org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm createVdsmVm ( org.ovirt.engine.core.compat.Guid vmId , java.util.Map < java.lang.String , java.lang.Object > xmlRpcStruct , java.lang.Double notifyTime ) { org.ovirt.engine.core.common.businessentities.VmDynamic fakeVm = new org.ovirt.engine.core.common.businessentities.VmDynamic ( ) ; fakeVm.setId ( vmId ) ; return createVdsmVm ( fakeVm , xmlRpcStruct , notifyTime ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm createVdsmVm ( org.ovirt.engine.core.compat.Guid vmId , java.util.Map < java.lang.String , java.lang.Object > struct , java.lang.Double notifyTime ) { org.ovirt.engine.core.common.businessentities.VmDynamic fakeVm = new org.ovirt.engine.core.common.businessentities.VmDynamic ( ) ; fakeVm.setId ( vmId ) ; return createVdsmVm ( fakeVm , struct , notifyTime ) ; }
Source:
private void initSpyCommand ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateDestDomainsSpaceRequirements ( ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . setAndValidateDiskProfiles ( ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateCreateAllSnapshotsFromVmCommand ( ) ; }

Target:
private void initSpyCommand ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateDestDomainsSpaceRequirements ( ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateCreateAllSnapshotsFromVmCommand ( ) ; org.mockito.Mockito.doReturn ( ActionType.LiveMigrateDisk ) . when ( command ) . getActionType ( ) ; }
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.VmTemplate > ( ) ; } return source ; }

Target:
public boolean isGetNamesOfVmsFromExternalProviderSupported ( org.ovirt.engine.core.compat.Version dataCenterVersion ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.GetNamesOfVmsFromExternalProviderSupported , dataCenterVersion.toString ( ) ) ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.storage_domains setUpStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType ) { org.ovirt.engine.core.common.businessentities.storage_domains entity = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplatesResourceTest.STORAGE_DOMAIN_ID ) ; entity.setstorage_domain_type ( domainType ) ; return entity ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageDomain setUpStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType ) { org.ovirt.engine.api.restapi.resource.StorageDomain entity = new org.ovirt.engine.api.restapi.resource.StorageDomain ( ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplatesResourceTest.STORAGE_DOMAIN_ID ) ; entity.setstorage_domain_type ( domainType ) ; return entity ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Vm.class , org.ovirt.engine.core.common.VdcObjectType.VM ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.QueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Vm.class , org.ovirt.engine.core.common.VdcObjectType.VM ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.compat.Guid diskId : diskIds ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; } compensationContext.stateChanged ( ) ; return null ; }

Target:
public static void updateImageStatus ( org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.common.businessentities.storage.ImageStatus imageStatus ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatus ( imageId , imageStatus ) ; }
Source:
public void validateSucceedsOnVolumeWithRemoveBricksTaskCompleted ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskCompleted , getBricks ( volumeWithRemoveBricksTaskCompleted ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnVolumeWithoutAsyncTask ( ) { setVolumeId ( volumeWithoutAsyncTask ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
private static void translateErrors ( java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( org.ovirt.engine.ui.frontend.Frontend.canDoActionErrorsTranslator.translateErrorText ( retVal.getCanDoActionMessages ( ) ) ) ; } }

Target:
private static void translateErrors ( java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( org.ovirt.engine.ui.frontend.Frontend.getAppErrorsTranslator ( ) . translateErrorText ( retVal.getCanDoActionMessages ( ) ) ) ; } }
Source:
org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value ) ;

Target:
org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) ;
Source:
public org.ovirt.engine.api.v3.servers.V3TemplateDisksServer getDisksResource ( ) { return new org.ovirt.engine.api.v3.servers.V3TemplateDisksServer ( ( ( org.ovirt.engine.api.restapi.resource.BackendTemplateResource ) ( getDelegate ( ) ) ) . getDisksResource ( ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3TemplateDisksServer getDisksResource ( ) { return new org.ovirt.engine.api.v3.servers.V3TemplateDisksServer ( templateId , ( ( org.ovirt.engine.api.restapi.resource.BackendTemplateResource ) ( getDelegate ( ) ) ) . getDisksResource ( ) ) ; }
Source:
public void testAdd ( ) { try { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "vms" , "00000001-0001-0001-0001-000000000011" , "disks" ) ; javax.ws.rs.core.Request request = mockRequest ( "POST" ) ; control.replay ( ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/api/model#services/vm-disks/methods/add" , fault.getDetail ( ) ) ; } catch ( java.lang.ClassNotFoundException | java.io.IOException | java.net.URISyntaxException e ) { fail ( ) ; } }

Target:
public void testAdd ( ) { try { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "vms" , "00000001-0001-0001-0001-000000000011" , "nics" ) ; javax.ws.rs.core.Request request = mockRequest ( "POST" ) ; control.replay ( ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/api/model#services/vm-nics/methods/add" , fault.getDetail ( ) ) ; } catch ( java.lang.ClassNotFoundException | java.io.IOException | java.net.URISyntaxException e ) { fail ( ) ; } }
Source:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( java.lang.String taskKey ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) , taskKey ) ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( java.lang.String taskKey ) { return super . persistAsyncTaskPlaceHolder ( org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand.getActionType ( ) , taskKey ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getPermissionDAO ( ) . save ( paramPermission ) ; getCompensationContext ( ) . snapshotNewEntity ( paramPermission ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getPermissionDao ( ) . save ( paramPermission ) ; getCompensationContext ( ) . snapshotNewEntity ( paramPermission ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public void clearError ( ) { getImportSourceValid ( ) . setMessage ( "" ) ; getImportSourceValid ( ) . setEntity ( true ) ; }

Target:
public void setWarning ( java.lang.String problem ) { if ( ! ( getProblemDescription ( ) . getIsValid ( ) ) ) { return ; } getProblemDescription ( ) . setIsValid ( true ) ; getProblemDescription ( ) . setEntity ( problem ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 3 , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.NUM_OF_NETWORKS , result.size ( ) ) ; }
Source:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { numOfVfs.setLabel ( constants.numOfVfs ( ) ) ; allowedNetworksLabel.setText ( constants.allowedNetworks ( ) ) ; }

Target:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { numOfVfs.setLabel ( constants.numOfVfs ( ) ) ; allowedNetworksLabel.setText ( constants.allowedNetworks ( ) ) ; selectNetworksLabel.setText ( constants.selectNetworks ( ) ) ; }
Source:
public void testValidateDefaultFlagIsNotChangedWhenFlagNotChanged ( ) { final org.ovirt.engine.core.common.businessentities.MacPool macPool1 = new org.ovirt.engine.core.common.businessentities.MacPool ( ) ; final org.ovirt.engine.core.common.businessentities.MacPool macPool2 = new org.ovirt.engine.core.common.businessentities.MacPool ( ) ; org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.UpdateMacPoolCommand.validateDefaultFlagIsNotChanged ( macPool1 , macPool2 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateDefaultFlagIsNotChangedWhenFlagNotChanged ( ) { final org.ovirt.engine.core.common.businessentities.MacPool macPool1 = new org.ovirt.engine.core.common.businessentities.MacPool ( ) ; final org.ovirt.engine.core.common.businessentities.MacPool macPool2 = new org.ovirt.engine.core.common.businessentities.MacPool ( ) ; org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.UpdateMacPoolCommand.validateDefaultFlagIsNotChanged ( macPool1 , macPool2 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDS getServerOfCluster ( org.ovirt.engine.core.compat.Guid clusterId , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > servers ) { for ( org.ovirt.engine.core.common.businessentities.VDS server : servers ) { if ( server.getvds_group_id ( ) . equals ( clusterId ) ) { return server ; } } return null ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDS getServerOfCluster ( org.ovirt.engine.core.compat.Guid clusterId , java.util.List < org.ovirt.engine.core.common.businessentities.VDS > servers ) { for ( org.ovirt.engine.core.common.businessentities.VDS server : servers ) { if ( server.getVdsGroupId ( ) . equals ( clusterId ) ) { return server ; } } return null ; }
Source:
protected void testVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { runInternalQuery ( VdcQueryType.GetVdsFenceStatus , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( vdsStatic.getId ( ) ) ) ; } }

Target:
protected void testVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { org.ovirt.engine.core.bll.pm.PmHealthCheckManager.getInstance ( ) . pmHealthCheck ( vdsStatic.getId ( ) ) ; } }
Source:
public void closeQuery ( java.lang.String opaque ) { org.ovirt.engine.extension.aaa.jdbc.core.datasource.Sql.Cursor < java.util.Collection < org.ovirt.engine.api.extensions.ExtMap > > remove = openSelects.remove ( opaque ) ; remove.close ( ) ; }

Target:
public void closeQuery ( java.lang.String opaque ) { org.ovirt.engine.extension.aaa.jdbc.core.datasource.Sql.Cursor < java.util.Collection < org.ovirt.engine.api.extensions.ExtMap > > remove = openSelects.remove ( opaque ) ; remove.close ( ) ; searchContexts.remove ( opaque ) ; }
Source:
public void testGetTagIdAndChildrenIdsNotExists ( ) { org.ovirt.engine.core.common.businessentities.Tags tag = createTag ( "tag1" , "desc1" ) ; java.lang.String idsStr = tagsDirector.GetTagIdAndChildrenIds ( tag.gettag_id ( ) ) ; org.junit.Assert.assertEquals ( StringUtils.EMPTY , idsStr ) ; }

Target:
public void testGetTagIdAndChildrenIdsNotExists ( ) { org.ovirt.engine.core.common.businessentities.Tags tag = createTag ( "tag1" , "desc1" ) ; java.lang.String idsStr = tagsDirector.getTagIdAndChildrenIds ( tag.gettag_id ( ) ) ; org.junit.Assert.assertEquals ( StringUtils.EMPTY , idsStr ) ; }
Source:
public void setGetSessionUserServletURL ( java.lang.String getSessionUserGetSessionUserServletURL ) { this . getSessionUserGetSessionUserServletURL = getSessionUserGetSessionUserServletURL ; }

Target:
public void setGetSessionUserServletURL ( java.lang.String getSessionUserGetSessionUserServletURL ) throws java.net.MalformedURLException { this . getSessionUserGetSessionUserServletURL = new java.net.URL ( getSessionUserGetSessionUserServletURL ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : java.util.Collections.emptyList ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : java.util.Collections.emptyList ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VnicProfile getOldVnicProfile ( ) { if ( ( oldVnicProfile ) == null ) { oldVnicProfile = org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.getDbFacade ( ) . getVnicProfileDao ( ) . get ( org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.getVnicProfile ( ) . getId ( ) ) ; } return oldVnicProfile ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VnicProfile getOldVnicProfile ( ) { if ( ( oldVnicProfile ) == null ) { oldVnicProfile = vnicProfileDao.get ( org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.getVnicProfile ( ) . getId ( ) ) ; } return oldVnicProfile ; }
Source:
public java.lang.Boolean getAlignRight ( ) { return getValueAsBoolean ( "alignRight" , false ) ; }

Target:
public java.lang.String getIcon ( ) { return getValueAsString ( "icon" , null ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > siblingVlanInterfaces = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ) ( source ) ) ; return ! ( siblingVlanInterfaces.isEmpty ( ) ) ; }

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.ExternalComputeResource > ( ) ; } return source ; }
Source:
private void logException ( java.lang.RuntimeException ex ) { log.errorFormat ( "Command {0} execution failed. Exception: {1}" , org.ovirt.engine.core.vdsbroker.VDSCommandBase.getCommandName ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logException ( java.lang.RuntimeException ex ) { log.errorFormat ( "Command {0} execution failed. Exception: {1}" , org.ovirt.engine.core.vdsbroker.VDSCommandBase.getCommandName ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; if ( log.isDebugEnabled ( ) ) { log.debugFormat ( "Detailed stacktrace:" , ex ) ; } }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.HostDevice vf ) { return ( isVfFree ( vf ) ) == shouldBeFree ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.HostDevice vf ) { return ( ( isVfFree ( vf ) ) == shouldBeFree ) && ( ( excludeVfs == null ) || ( ! ( excludeVfs.contains ( vf.getDeviceName ( ) ) ) ) ) ; }