auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testDisksUsages ( ) { java.lang.Object [ ] disksUsages = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.initDisksUsageData ( ) ; java.util.Map < java.lang.String , java.lang.Object > map = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.setDisksUsage ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.getVmStatistics ( ) , disksUsages , map ) ; }

Target:
public void testDisksUsages ( ) { java.lang.Object [ ] disksUsages = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.initDisksUsageData ( ) ; java.util.Map < java.lang.String , java.lang.Object > map = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.setDisksUsage ( disksUsages ) ; validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.getVmStatistics ( ) , disksUsages , map ) ; }
Source:
public java.lang.String toString ( ) { return ( "Host[" + ( ( mVdsStatic ) == null ? "null" : mVdsStatic.getVdsName ( ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( "Host[" + ( ( mVdsStatic ) == null ? "null" : mVdsStatic.getName ( ) ) ) + "]" ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgrade ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) . unless ( org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Arrays.asList ( getHost ( ) ) , org.ovirt.engine.core.common.businessentities.VDS.class , VdcActionType.UpgradeHost ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgrade ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) . unless ( org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Arrays.asList ( host ) , org.ovirt.engine.core.common.businessentities.VDS.class , VdcActionType.UpgradeHost ) ) ; }
Source:
public org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey update ( org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey resource ) { validateEnums ( org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey.class , resource ) ; return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.openstack.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetLibvirtSecretById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateLibvirtSecret , new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeAuthenticationKeyResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey update ( org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKey resource ) { return performUpdate ( resource , new org.ovirt.engine.api.restapi.resource.openstack.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetLibvirtSecretById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) , VdcActionType.UpdateLibvirtSecret , new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeAuthenticationKeyResource.UpdateParametersProvider ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDS get ( org.ovirt.engine.core.compat.NGuid id ) { return get ( id , null , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDS get ( org.ovirt.engine.core.compat.Guid id ) { return get ( id , null , false ) ; }
Source:
public java.lang.String getVdsName ( ) { return this . mVdsStatic.getVdsName ( ) ; }

Target:
public java.lang.String getName ( ) { return this . mVdsStatic.getName ( ) ; }
Source:
public java.lang.String getMessage ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 ) { return appendDetachNetworkSuggestion ( getVerb ( op1 ) , ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel ) ( op2 ) ) ) ; }

Target:
public java.lang.String getMessage ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 ) { return getVerb ( op1 ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getMigratingToVds ( ) { return this . vmDynamic.getMigratingToVds ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getMigratingToVds ( ) { return this . vmDynamic.getMigratingToVds ( ) ; }
Source:
public boolean isMacInUse ( java.lang.String mac ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.readLock ( ) ) ) { checkIfInitialized ( ) ; return macsStorage.isMacInUse ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; } }

Target:
public boolean isMacInUse ( java.lang.String mac ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.readLock ( ) ) ) { return macsStorage.isMacInUse ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Disk > getAllForVm ( org.ovirt.engine.core.compat.Guid id ) { return getAllForVm ( id , null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Disk > getAllForVm ( org.ovirt.engine.core.compat.Guid id ) { return getAllForVm ( id , false ) ; }
Source:
protected void proceedProxyReturnValue ( ) { if ( isRefreshStoragePool ( ) ) { super . proceedProxyReturnValue ( ) ; } else { proceedConnectProxyReturnValue ( ) ; } }

Target:
protected void proceedProxyReturnValue ( ) { proceedConnectProxyReturnValue ( ) ; }
Source:
public java.lang.String getSearchString ( ) { return ( searchString ) + ( ( pagingSearchString ) == null ? "" : pagingSearchString ) ; }

Target:
public java.lang.String getSearchString ( ) { if ( ( searchString ) == null ) { return null ; } return ( searchString ) + ( ( pagingSearchString ) == null ? "" : pagingSearchString ) ; }
Source:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getStoragePoolIdFromSourceImageContainer ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getstorage_pool_id ( ) . getValue ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStoragePoolIdFromSourceImageContainer ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) . getValue ( ) ; }
Source:
private void doStop ( ) { reset ( ) ; cancel ( ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , getRefreshRate ( ) ) ; }

Target:
private void doStop ( ) { reset ( ) ; cancel ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VdsStatic get ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByVdsId" , new org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ) ; }

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 void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VmTemplate , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getVmId ( ) , LockingGroup.VM.name ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getVmId ( ) . toString ( ) , LockingGroup.VM.name ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hostList = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > ) ( result ) ) ; hostList.add ( 0 , null ) ; getHostList ( ) . setItems ( hostList ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hostList = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > ) ( result ) ) ; hostList.add ( 0 , null ) ; getHostList ( ) . setItems ( hostList ) ; }
Source:
public void snapshotName ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setSnapshotName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; final java.lang.String s = b.getSnapshotName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , s ) ; }

Target:
public void snapshotName ( ) { b.setSnapshotName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; final java.lang.String s = b.getSnapshotName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , s ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePoolStatus getRawValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePoolStatus getRawValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getStatus ( ) ; }
Source:
public native java.lang.String getPath ( ) ;

Target:
private native java.lang.String getValue ( ) ;
Source:
protected org.ovirt.engine.core.compat.Guid getExistingEntityId ( ) { return org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( "1115c1c6-cb15-4832-b2a4-023770607111" ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getExistingEntityId ( ) { return new org.ovirt.engine.core.compat.Guid ( "1115c1c6-cb15-4832-b2a4-023770607111" ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state , true ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state ) ; }
Source:
private void mockVmDaoGetVm ( ) { org.mockito.Mockito.doReturn ( vmDao ) . when ( command ) . getVmDao ( ) ; org.mockito.Mockito.when ( vmDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vm ) ; }

Target:
private void mockVmDaoGetVm ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vm ) ; }
Source:
public void setUserId ( final org.ovirt.engine.core.compat.NGuid value ) { mUserId = value.getValue ( ) ; }

Target:
public void setUserId ( final org.ovirt.engine.core.compat.Guid value ) { mUserId = value ; }
Source:
private void postAction ( ) { resetData ( ) ; updateOptions ( ) ; }

Target:
protected void postAction ( ) { resetData ( ) ; updateOptions ( ) ; }
Source:
private void mockVds ( ) { mockGetStorageDomainList ( 100 , 100 ) ; mockGetImagesList ( ) ; }

Target:
private void mockVds ( ) { mockGetStorageDomainList ( 100 , 100 ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel ) ( result.getState ( ) ) ) ; localModel.getWindow ( ) . StopProgress ( ) ; Cancel ( ) ; }
Source:
public static boolean getClusterDefaultCountThreadsAsCores ( ) { return false ; }

Target:
public boolean getClusterDefaultCountThreadsAsCores ( ) { return false ; }
Source:
public java.lang.Void runInTransaction ( ) { processOldImageFromDb ( ) ; addDiskImageToDb ( newDiskImage , getCompensationContext ( ) ) ; setActionReturnValue ( newDiskImage ) ; setSucceeded ( true ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { processOldImageFromDb ( ) ; addDiskImageToDb ( newDiskImage , getCompensationContext ( ) , java.lang.Boolean.TRUE ) ; setActionReturnValue ( newDiskImage ) ; setSucceeded ( true ) ; return null ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; }
Source:
public void testBeanValidations ( ) { mockOsRepository ( ) ; org.junit.Assert.assertTrue ( createCommand ( initializeMock ( 1 , 1 ) ) . validateInputs ( ) ) ; }

Target:
public void testBeanValidations ( ) { org.junit.Assert.assertTrue ( createCommand ( initializeMock ( 1 , 1 ) ) . validateInputs ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.Label > vmLabelsList = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Label > ) ( returnValue ) ) ; labelList.setItems ( allLabels ) ; labelList.setSelectedItems ( vmLabelsList ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Label > vmLabelsList ) { labelList.setItems ( allLabels ) ; labelList.setSelectedItems ( vmLabelsList ) ; }
Source:
public org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { model = org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; model.setCluster ( new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; model.getCluster ( ) . setId ( clusterId.toString ( ) ) ; return model ; }

Target:
public org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network network ) { network.setCluster ( new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; network.getCluster ( ) . setId ( clusterId ) ; return network ; }
Source:
public void remove ( java.util.Set < java.lang.String > memoryStates ) { removeMemoryVolumes ( memoryStates ) ; }

Target:
public boolean remove ( java.util.Set < java.lang.String > memoryStates ) { return removeMemoryVolumes ( memoryStates ) ; }
Source:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter completer = null ; if ( ( org.ovirt.engine.core.compat.StringHelper.EqOp ( fieldName , org.ovirt.engine.core.searchbackend.NetworkConditionFieldAutoCompleter.STP ) ) || ( org.ovirt.engine.core.compat.StringHelper.EqOp ( fieldName , org.ovirt.engine.core.searchbackend.NetworkConditionFieldAutoCompleter.VM_NETWORK ) ) ) { completer = new org.ovirt.engine.core.searchbackend.BitValueAutoCompleter ( ) ; } return completer ; }

Target:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter completer = null ; if ( ( org.ovirt.engine.core.searchbackend.NetworkConditionFieldAutoCompleter.STP.equals ( fieldName ) ) || ( org.ovirt.engine.core.searchbackend.NetworkConditionFieldAutoCompleter.VM_NETWORK.equals ( fieldName ) ) ) { completer = new org.ovirt.engine.core.searchbackend.BitValueAutoCompleter ( ) ; } return completer ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineNetworkInterfacePresenter.constants.virtualMachineNetworkInterfaceSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineNetworkInterfacePresenter.constants.virtualMachineNetworkInterfaceSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
private void doQueryClose ( org.ovirt.engine.api.extensions.ExtMap input , org.ovirt.engine.api.extensions.ExtMap output ) throws java.sql.SQLException { authorization.closeQuery ( input.get ( Authz.InvokeKeys.QUERY_OPAQUE , java.lang.String.class ) ) ; output.put ( Base.InvokeKeys.RESULT , Base.InvokeResult.SUCCESS ) ; output.put ( Authz.InvokeKeys.STATUS , Authz.Status.SUCCESS ) ; }

Target:
private void doQueryClose ( org.ovirt.engine.api.extensions.ExtMap input , org.ovirt.engine.api.extensions.ExtMap output ) throws java.sql.SQLException { authorization.closeQuery ( input.get ( Authz.InvokeKeys.QUERY_OPAQUE , java.lang.String.class ) ) ; }
Source:
public int getVlanId ( ) { java.lang.Integer vlanId = getEntity ( ) . getvlan_id ( ) ; return vlanId == null ? 0 : vlanId ; }

Target:
public int getVlanId ( ) { java.lang.Integer vlanId = getEntity ( ) . getvlan_id ( ) ; return vlanId == null ? - 1 : vlanId ; }
Source:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_INTERFACES_ALREADY_SPECIFIED , bond.getName ( ) ) ; }

Target:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_INTERFACES_ALREADY_SPECIFIED , bond.getName ( ) ) ; }
Source:
private void providers_SelectedItemChanged ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = getProviders ( ) . getSelectedItem ( ) ; setEnableSearchHost ( ( provider != null ) ) ; getExternalHostName ( ) . setItems ( null ) ; getExternalHostName ( ) . setIsChangable ( false ) ; }

Target:
private void providers_SelectedItemChanged ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = getProviders ( ) . getSelectedItem ( ) ; setEnableSearchHost ( ( provider != null ) ) ; }
Source:
private void markHostDevicesAsUsed ( ) { if ( needsHostDevices ) { hostDeviceManager.allocateVmHostDevices ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ; } }

Target:
private void markHostDevicesAsUsed ( ) { if ( needsHostDevices ) { hostDeviceManager.allocateVmHostDevices ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } }
Source:
public void newNetwork ( ) { if ( ( getWindow ( ) ) != null ) { return ; } final org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkModel networkModel = new org.ovirt.engine.ui.uicommonweb.models.datacenters.NewNetworkModel ( this ) ; setWindow ( networkModel ) ; networkModel.startProgress ( null ) ; initDcList ( networkModel ) ; }

Target:
public void newNetwork ( ) { if ( ( getWindow ( ) ) != null ) { return ; } final org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkModel networkModel = new org.ovirt.engine.ui.uicommonweb.models.datacenters.NewNetworkModel ( this ) ; setWindow ( networkModel ) ; initDcList ( networkModel ) ; }
Source:
public void noVdsGroup ( ) { simulateNetworkDoesNotExist ( ) ; simulateVdsGroupDoesNotExist ( ) ; assertCanDoActionFailure ( VdcBllMessages.VDS_CLUSTER_IS_NOT_VALID.toString ( ) ) ; }

Target:
public void noVdsGroup ( ) { simulateVdsGroupDoesNotExist ( ) ; assertCanDoActionFailure ( VdcBllMessages.VDS_CLUSTER_IS_NOT_VALID.toString ( ) ) ; }
Source:
public void testListWithCustomGlobalHeader ( ) { clustersService.list ( ) . send ( ) ; org.junit.Assert.assertEquals ( getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) , "value" ) ; }

Target:
public void testListWithCustomGlobalHeader ( ) { clustersService.list ( ) . send ( ) ; org.junit.Assert.assertEquals ( "value" , getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result1 ) { org.ovirt.engine.core.common.action.VdcReturnValueBase retVal = result1.getReturnValue ( ) ; postSaveAction ( null , ( ( retVal != null ) && ( retVal.getSucceeded ( ) ) ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase retVal = result.getReturnValue ( ) ; postSaveAction ( null , ( ( retVal != null ) && ( retVal.getSucceeded ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { if ( ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) ) != null ) { setVdsGroupId ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) . getClusterId ( ) ) ; } return super . getVdsGroup ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { if ( ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) ) != null ) { setVdsGroupId ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) . getClusterId ( ) ) ; } return super . getVdsGroup ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; diskDao = prepareDAO ( dbFacade.getBaseDiskDao ( ) ) ; existingTemplate = dao.get ( org.ovirt.engine.core.dao.FixturesTool.TEMPLATE_IMAGE_ID ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; diskDao = dbFacade.getBaseDiskDao ( ) ; existingTemplate = dao.get ( org.ovirt.engine.core.dao.FixturesTool.TEMPLATE_IMAGE_ID ) ; }
Source:
public abstract boolean equalValues ( org.ovirt.engine.core.common.businessentities.qos.QosBase other ) ;

Target:
public boolean equalValues ( org.ovirt.engine.core.common.businessentities.qos.QosBase other ) { return false ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType determineSnapshotType ( ) { return org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.isInternalExecution ( ) ? org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getParameters ( ) . getSnapshotType ( ) : org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.REGULAR ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType determineSnapshotType ( ) { return org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.isInternalExecution ( ) ? getParameters ( ) . getSnapshotType ( ) : org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.REGULAR ; }
Source:
protected static boolean canAttachNonPrestartedVmToUser ( org.ovirt.engine.core.compat.Guid vm_guid , java.util.ArrayList < java.lang.String > messages ) { return org.ovirt.engine.core.bll.VmPoolCommandBase.isVmFree ( vm_guid , messages ) ; }

Target:
protected static boolean canAttachNonPrestartedVmToUser ( org.ovirt.engine.core.compat.Guid vmId , java.util.List < java.lang.String > messages ) { return org.ovirt.engine.core.bll.VmPoolCommandBase.isVmFree ( vmId , messages ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > bonds = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; allBonds = bonds ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > bonds = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; allBonds = bonds ; }
Source:
public void removeAllCommandsInHierarchy ( final org.ovirt.engine.core.compat.Guid commandId ) { for ( org.ovirt.engine.core.compat.Guid childCmdId : getChildCommandIds ( commandId ) ) { removeAllCommandsInHierarchy ( childCmdId ) ; } removeCommand ( commandId ) ; }

Target:
public void removeAllCommandsInHierarchy ( final org.ovirt.engine.core.compat.Guid commandId ) { for ( org.ovirt.engine.core.compat.Guid childCmdId : new java.util.ArrayList < org.ovirt.engine.core.compat.Guid > ( getChildCommandIds ( commandId ) ) ) { removeAllCommandsInHierarchy ( childCmdId ) ; } removeCommand ( commandId ) ; }
Source:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid storagePoolId ) { getStoragePoolIsoMapData ( ) . setstorage_pool_id ( storagePoolId ) ; }

Target:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid storagePoolId ) { getStoragePoolIsoMapData ( ) . setStoragePoolId ( storagePoolId ) ; }
Source:
public void testConvertFieldEnumValueToActualValue ( ) { org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter comp = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.searchbackend.Jedi.class ) ; org.junit.Assert.assertEquals ( "MACE" , "4" , comp.convertFieldEnumValueToActualValue ( "MACE" ) ) ; org.junit.Assert.assertEquals ( "mace" , "4" , comp.convertFieldEnumValueToActualValue ( "mace" ) ) ; }

Target:
public void testConvertFieldEnumValueToActualValue ( ) { org.junit.Assert.assertEquals ( "MACE" , "4" , comp.convertFieldEnumValueToActualValue ( "MACE" ) ) ; org.junit.Assert.assertEquals ( "mace" , "4" , comp.convertFieldEnumValueToActualValue ( "mace" ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Snapshot getDstSnapshot ( ) { if ( ( cachedSnapshot ) == null ) { cachedSnapshot = getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.TryBackToAllSnapshotsOfVmCommand.getParameters ( ) . getDstSnapshotId ( ) ) ; } return cachedSnapshot ; }

Target:
private org.ovirt.engine.core.common.businessentities.Snapshot getDstSnapshot ( ) { if ( ( cachedSnapshot ) == null ) { cachedSnapshot = org.ovirt.engine.core.bll.TryBackToAllSnapshotsOfVmCommand.getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.TryBackToAllSnapshotsOfVmCommand.getParameters ( ) . getDstSnapshotId ( ) ) ; } return cachedSnapshot ; }
Source:
public void initTest ( ) { initEntitiesIds ( ) ; initialSetup ( ) ; initCommand ( ) ; }

Target:
public void initTest ( ) { initialSetup ( ) ; initCommand ( ) ; }
Source:
public void setupMocks ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDao ( ) ; command.init ( ) ; }

Target:
public void setupMocks ( ) { mockGlobalParameters ( ) ; setUpCommand ( ) ; mockVds ( ) ; mockDbDao ( ) ; command.init ( ) ; }
Source:
public boolean getIsAvailable ( ) { return ( getDetailModel ( ) . getExternalId ( ) ) == null ; }

Target:
public boolean getIsAvailable ( ) { return ( getDetailModel ( ) . getExternalId ( ) ) != null ; }
Source:
public void addWithExistingMacAddressSucceed ( ) { org.ovirt.engine.core.common.businessentities.network.VmNic iface = org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) ; runAddAndVerify ( iface , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID ) ; }

Target:
public void add ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , true ) ; }
Source:
public void onUserPortalModelInit ( org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent event ) { connectAutomaticallyManager.unregisterModels ( ) ; connectAutomaticallyManager.registerModel ( provider.getModel ( ) ) ; }

Target:
public void onUserPortalModelInit ( org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent event ) { connectAutomaticallyManager.registerModel ( provider.getModel ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getId ( ) { return Id ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( ) { return Id ; }
Source:
public static boolean checkImagesLocked ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < java.lang.String > messages ) { return org.ovirt.engine.core.bll.ImagesHandler.checkImagesLocked ( vm , messages , org.ovirt.engine.core.bll.ImagesHandler.getImages ( vm , null ) ) ; }

Target:
public static boolean checkImagesLocked ( org.ovirt.engine.core.compat.Guid vmId , java.util.List < java.lang.String > messages ) { return org.ovirt.engine.core.bll.ImagesHandler.checkImagesLocked ( messages , org.ovirt.engine.core.bll.ImagesHandler.getImages ( vmId , null ) ) ; }
Source:
public void testValidateStoragePoolRandomStoragePoolId ( ) { command.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( command.validateStoragePool ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "" , command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }

Target:
public void testValidateStoragePoolRandomStoragePoolId ( ) { command.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "" , command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }
Source:
private void stubFailedCalls ( ) { org.mockito.Mockito.when ( resourceManager.runVdsCommand ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.vdscommands.VDSCommandType.class ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.vdscommands.VdsIdAndVdsVDSCommandParametersBase.class ) ) ) . thenReturn ( getFailedVdsReturnValue ( ) ) ; }

Target:
private void stubFailedCalls ( ) { org.mockito.Mockito.when ( resourceManager.runVdsCommand ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( getFailedVdsReturnValue ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm , vm.getstatus ( ) ) ; vm.setstatus ( VMStatus.Down ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm.getId ( ) ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm , vm.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
protected void setActionMessageParameters ( ) { if ( ( getMoveOrCopyImageOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Move ) ) { addValidationMessage ( EngineMessage.VAR__ACTION__MOVE ) ; } else { addValidationMessage ( EngineMessage.VAR__ACTION__COPY ) ; } addValidationMessage ( EngineMessage.VAR__TYPE__VM_TEMPLATE ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__COPY ) ; addValidationMessage ( EngineMessage.VAR__TYPE__VM_TEMPLATE ) ; }
Source:
private static < T > void excludeExceptions ( T dstobj ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { for ( java.lang.String field : org.ovirt.engine.sdk.mapping.Mapper.MAPPING_EXCEPTIONS ) { org.apache.commons.beanutils.PropertyUtils.setProperty ( dstobj , field , null ) ; } }

Target:
private static < T > void excludeExceptions ( T dstobj ) { for ( java.lang.String field : org.ovirt.engine.sdk.mapping.Mapper.MAPPING_EXCEPTIONS ) { try { org.apache.commons.beanutils.PropertyUtils.setProperty ( dstobj , field , null ) ; } catch ( java.lang.IllegalAccessException | java.lang.reflect.InvocationTargetException | java.lang.NoSuchMethodException e ) { } } }
Source:
public void testLoginNameAtDirectoryWhenDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "MiddleEarth.com" ) ; command.setCurrentUser ( user ) ; org.junit.Assert.assertEquals ( command.getConsoleUserName ( ) , "Legolas@MiddleEarth.com" ) ; }

Target:
public void testLoginNameAtDirectoryWhenDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "MiddleEarth.com" ) ; command.setCurrentUser ( user ) ; org.junit.Assert.assertEquals ( "Legolas@MiddleEarth.com" , command.getConsoleUserName ( ) ) ; }
Source:
public void testGetByNameAndCluster ( ) { org.ovirt.engine.core.common.businessentities.Network result = dao.getByNameAndCluster ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , cluster ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , result.getname ( ) ) ; }

Target:
public void testGetByNameAndCluster ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndCluster ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , cluster ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.NetworkDAOTest.EXISTING_NETWORK_NAME , result.getname ( ) ) ; }
Source:
public short nextShort ( short s ) { return ( ( short ) ( super . nextInt ( s ) ) ) ; }

Target:
public short nextShort ( short s ) { return ( ( short ) ( nextInt ( s ) ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return object.getname ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return object.getName ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network > getNetworkList ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network > list = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network > ( ) ; list.add ( network ) ; return list ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Network > getNetworkList ( ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Network > list = new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Network > ( ) ; list.add ( network ) ; return list ; }
Source:
public void onSuccess ( java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > qoss = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > ) ( returnValue ) ) ; qosById = org.ovirt.engine.core.common.businessentities.Entities.businessEntitiesById ( qoss ) ; queryInterfaces ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > qoss ) { qosById = org.ovirt.engine.core.common.businessentities.Entities.businessEntitiesById ( qoss ) ; queryInterfaces ( ) ; }
Source:
private void mockDiskImageDao ( ) { org.mockito.Mockito.when ( diskImageDao.getSnapshotById ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.CommonVmPoolCommandTestAbstract.getDiskImageList ( ) . get ( 0 ) ) ; }

Target:
private void mockDiskImageDao ( ) { org.mockito.Mockito.when ( diskImageDao.getSnapshotById ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( org.ovirt.engine.core.bll.CommonVmPoolCommandTestAbstract.getDiskImageList ( ) . get ( 0 ) ) ; }
Source:
private java.lang.String readFileTemplate ( ) throws java.io.FileNotFoundException { return org.ovirt.engine.sdk.codegen.utils.FileUtils.getFileContent ( ( ( getTemplatePath ( ) ) + ( this . name ) ) ) ; }

Target:
private java.lang.String readFileTemplate ( ) throws java.io.FileNotFoundException { return org.ovirt.engine.sdk.codegen.utils.FileUtils.getFileContent ( ( ( getTemplatePath ( ) ) + ( getName ( ) ) ) ) ; }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback , final java.lang.Object state ) { org.ovirt.engine.ui.frontend.Frontend.runActionImpl ( actionType , parameters , ( callback != null ? callback : org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) , state ) ; }

Target:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback , final java.lang.Object state ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( actionType , parameters , ( callback != null ? callback : org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) , state , true ) ; }
Source:
public synchronized org.ovirt.engine.api.model.RSDL getRSDL ( ) throws java.io.IOException , java.lang.ClassNotFoundException { if ( ( org.ovirt.engine.api.restapi.resource.BackendApiResource.rsdl ) == null ) { org.ovirt.engine.api.rsdl.RsdlManager rsdlManager = new org.ovirt.engine.api.rsdl.RsdlManager ( ) ; org.ovirt.engine.api.restapi.resource.BackendApiResource.rsdl = rsdlManager.loadRsdl ( getCurrent ( ) . get ( org.ovirt.engine.core.common.mode.ApplicationMode.class ) ) ; } return org.ovirt.engine.api.restapi.resource.BackendApiResource.rsdl ; }

Target:
public synchronized org.ovirt.engine.api.model.RSDL getRSDL ( ) throws java.io.IOException , java.lang.ClassNotFoundException { if ( ( org.ovirt.engine.api.restapi.resource.BackendApiResource.rsdl ) == null ) { org.ovirt.engine.api.restapi.resource.BackendApiResource.rsdl = org.ovirt.engine.api.rsdl.RsdlManager.loadRsdl ( getCurrent ( ) . get ( org.ovirt.engine.core.common.mode.ApplicationMode.class ) ) ; } return org.ovirt.engine.api.restapi.resource.BackendApiResource.rsdl ; }
Source:
public void sparsifyNotSupportedWhenWipeAfterDeleteIsOn ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = createStorageDomainForDisk ( StorageType.ISCSI ) ; disk.setWipeAfterDelete ( true ) ; storageDomain.setSupportsDiscardZeroesData ( false ) ; org.junit.Assert.assertThat ( validator.isSparsifySupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPARSIFY_NOT_SUPPORTED_BY_UNDERLYING_STORAGE_WHEN_WAD_IS_ENABLED ) ) ; }

Target:
public void sparsifyNotSupportedWhenWipeAfterDeleteIsOn ( ) { createStorageDomainForDisk ( StorageType.ISCSI ) ; disk.setWipeAfterDelete ( true ) ; org.junit.Assert.assertThat ( validator.isSparsifySupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPARSIFY_NOT_SUPPORTED_BY_UNDERLYING_STORAGE_WHEN_WAD_IS_ENABLED ) ) ; }
Source:
protected java.lang.String getDisabledMessage ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( model ) ) . getClone ( ) . getChangeProhibitionReason ( ) ; }

Target:
protected java.lang.String getDisabledMessage ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData model ) { return model.getClone ( ) . getChangeProhibitionReason ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface createVlan ( java.lang.String baseIfaceName , int vlanId , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , ( ( baseIfaceName + "." ) + vlanId ) , false , null , vlanId , networkName ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface createVlan ( java.lang.String baseIfaceName , int vlanId , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , ( ( baseIfaceName + "." ) + vlanId ) , false , null , vlanId , networkName , true ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _messages.post ( InstallerMessages.Severity.INFO , java.lang.String.format ( "Logs at host located at: '%1$s'" , _parser.cliEnvironmentGet ( CoreEnv.LOG_FILE_NAME ) ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _messages.post ( InstallerMessages.Severity.INFO , java.lang.String.format ( "Logs at host located at: '%1$s'" , _parser.cliEnvironmentGet ( CoreEnv.LOG_FILE_NAME ) ) ) ; return true ; }
Source:
private static org.ovirt.engine.core.common.action.InstallVdsParameters createParameters ( ) { org.ovirt.engine.core.common.action.InstallVdsParameters param = new org.ovirt.engine.core.common.action.InstallVdsParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , null ) ; param.setIsReinstallOrUpgrade ( true ) ; return param ; }

Target:
private static org.ovirt.engine.core.common.action.InstallVdsParameters createParameters ( ) { org.ovirt.engine.core.common.action.InstallVdsParameters param = new org.ovirt.engine.core.common.action.InstallVdsParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; param.setIsReinstallOrUpgrade ( true ) ; return param ; }
Source:
public void validateSucceeds ( ) { command.getParameters ( ) . setAuditLogId ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_3 ) ; prepareMocks ( command ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { command.getParameters ( ) . setAuditLogId ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_3 ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils getInstance ( ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.vmPropertiesUtils ; }

Target:
public static org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils getInstance ( ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.instance ; }
Source:
public void testGetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePool ( existingVds.getstorage_pool_id ( ) ) ; assertGetAllForStoragePoolCorrectResult ( result ) ; }

Target:
public void testGetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePool ( existingVds.getStoragePoolId ( ) ) ; assertGetAllForStoragePoolCorrectResult ( result ) ; }
Source:
public void interfaceBasedOnNullProposedVlan ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( ( ( java.lang.String ) ( null ) ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }

Target:
public void interfaceBasedOnNullProposedVlan ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( null , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }
Source:
public static void endTaskStepAndJob ( org.ovirt.engine.core.bll.job.ExecutionContext context , boolean exitStatus ) { org.ovirt.engine.core.bll.job.ExecutionHandler.endFinalizingStepAndCurrentStep ( context , exitStatus ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.endTaskJobIfNeeded ( context , exitStatus ) ; }

Target:
public void endTaskStepAndJob ( org.ovirt.engine.core.bll.job.ExecutionContext context , boolean exitStatus ) { endFinalizingStepAndCurrentStep ( context , exitStatus ) ; endTaskJobIfNeeded ( context , exitStatus ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
protected boolean syntaxErrorInProperties ( java.lang.String properties ) { return ! ( VALIDATION_PATTERN.matcher ( properties ) . matches ( ) ) ; }

Target:
public boolean syntaxErrorInProperties ( java.lang.String properties ) { return ! ( VALIDATION_PATTERN.matcher ( properties ) . matches ( ) ) ; }
Source:
public void testConfigHostPolicy ( ) { setupConfigWithSerialNumber ( SerialNumberPolicy.HOST_ID , null ) ; assertSerialNumber ( null ) ; }

Target:
public void testConfigHostPolicy ( ) { assertSerialNumber ( null ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 4 ) , isPostZero ( ) , false ) ; }

Target:
protected abstract org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) ;
Source:
public void testRemoveIfUnusedWithUnused ( ) { prepareDao ( ) . removeIfUnused ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon nothing = prepareDao ( ) . get ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ; org.junit.Assert.assertNull ( nothing ) ; }

Target:
public void testRemoveIfUnusedWithUnused ( ) { dao.removeIfUnused ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon nothing = dao.get ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ; org.junit.Assert.assertNull ( nothing ) ; }