auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase params ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . runVdsCommand ( commandType , params ) ; }

Target:
private org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase params ) { return vdsBrokerFrontend.runVdsCommand ( commandType , params ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.LUNs > getAllForVolumeGroup ( java.lang.String id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "volume_group_id" , id ) ; return getCallsHandler ( ) . executeReadList ( "GetLUNsByVolumeGroupId" , org.ovirt.engine.core.dao.LunDAODbFacadeImpl.MAPPER , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > getAllForVolumeGroup ( java.lang.String id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "volume_group_id" , id ) ; return getCallsHandler ( ) . executeReadList ( "GetLUNsByVolumeGroupId" , org.ovirt.engine.core.dao.LunDAODbFacadeImpl.MAPPER , parameterSource ) ; }
Source:
public static org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return ( vmBase.getVdsGroupId ( ) ) != null ? org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . getVdsGroupDao ( ) . get ( vmBase.getVdsGroupId ( ) ) . getCompatibilityVersion ( ) : org.ovirt.engine.core.compat.Version.v3_0 ; }

Target:
public static org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return ( vmBase.getClusterId ( ) ) != null ? org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . getClusterDao ( ) . get ( vmBase.getClusterId ( ) ) . getCompatibilityVersion ( ) : org.ovirt.engine.core.compat.Version.v3_0 ; }
Source:
public org.ovirt.engine.core.common.businessentities.Role getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "name" , name ) ; return getCallsHandler ( ) . executeRead ( "GetRoleByName" , RolesRowMapper.instance , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Role getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "name" , name ) ; return getCallsHandler ( ) . executeRead ( "GetRoleByName" , org.ovirt.engine.core.dao.RoleDAODbFacadeImpl.RolesRowMapper.instance , parameterSource ) ; }
Source:
public void validateFails ( ) { cmd.setGlusterVolumeId ( stoppedVolumeId ) ; cmd.getParameters ( ) . setGeoRepSessionId ( geoRepSessionId ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { cmd.setGlusterVolumeId ( stoppedVolumeId ) ; cmd.getParameters ( ) . setGeoRepSessionId ( geoRepSessionId ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
private void initTimeZones ( ) { java.util.Set < java.lang.String > timeZoneTypes = TimeZoneType.GENERAL_TIMEZONE.getTimeZoneList ( ) . keySet ( ) ; getTimeZones ( ) . setItems ( timeZoneTypes ) ; }

Target:
public boolean match ( java.util.Map.Entry < java.lang.String , java.lang.String > item ) { return item.getValue ( ) . startsWith ( "(GMT) Greenwich" ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , memoryVolume , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , snapshotStatus , memoryVolume , null , compensationContext ) ; }
Source:
private boolean isNotSPM ( org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue ) { return ( ( returnValue.getVdsError ( ) ) != null ) && ( ( returnValue.getVdsError ( ) . getCode ( ) ) == ( org.ovirt.engine.core.common.errors.VdcBllErrors.SpmStatusError ) ) ; }

Target:
private boolean isNotSPM ( org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue ) { return ( ( returnValue.getVdsError ( ) ) != null ) && ( ( returnValue.getVdsError ( ) . getCode ( ) ) == ( org.ovirt.engine.core.common.errors.EngineError.SpmStatusError ) ) ; }
Source:
private void getVmsFromExportDomain ( org.ovirt.engine.core.compat.Guid dataCenterId , org.ovirt.engine.core.compat.Guid storageDomainId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmsFromExportDomain , new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( dataCenterId , storageDomainId ) , new org.ovirt.engine.ui.frontend.AsyncQuery ( this , createGetVmsFromExportDomainCallback ( ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { clearVms ( ) ; }
Source:
protected void setActionMessageParameters ( ) { if ( ( getMoveOrCopyImageOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageOperation.Move ) ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__MOVE ) ; } else { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__COPY ) ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM_TEMPLATE ) ; }

Target:
protected void setActionMessageParameters ( ) { if ( ( getMoveOrCopyImageOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Move ) ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__MOVE ) ; } else { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__COPY ) ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM_TEMPLATE ) ; }
Source:
private void runQueryByIdParameter ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.AsIsAsyncConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( queryType , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , aQuery ) ; }

Target:
private void runQueryByIdParameter ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( queryType , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , aQuery ) ; }
Source:
protected void setUpWindowsGetEntityExpectations ( int times , boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( times , notFound , new org.ovirt.engine.api.model.VM ( ) { { setId ( GUIDS [ 0 ] ) ; setvm_os ( VmOsType.WindowsXP ) ; } } ) ; }

Target:
protected void setUpWindowsGetEntityExpectations ( int times , boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( times , notFound , new org.ovirt.engine.api.model.VM ( ) { { setId ( GUIDS [ 0 ] ) ; setVmOs ( VmOsType.WindowsXP ) ; } } ) ; }
Source:
protected boolean isSoundDeviceEnabled ( org.ovirt.engine.core.compat.Guid vmId ) { return getVmDeviceUtils ( ) . hasSoundDevice ( vmId ) ; }

Target:
protected boolean isSoundDeviceEnabled ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVmDeviceUtils ( ) . hasSoundDevice ( vmId ) ; }
Source:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNetworkToPool ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void setConsoleWarningMessage ( java.lang.String message ) { protocolMessage.setText ( message ) ; protocolMessage.setStyleName ( style.protocolWarning ( ) ) ; }

Target:
public void setConsoleProtocolMessage ( java.lang.String message ) { protocolMessage.setText ( message ) ; protocolMessage.setStyleName ( style.protocolWarning ( ) ) ; }
Source:
public void validateEnums ( org.ovirt.engine.api.model.QoS qos ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.core.common.businessentities.qos.QosType.class , qos.getType ( ) , true ) ; }

Target:
public void validateEnums ( org.ovirt.engine.api.model.QoS qos ) { if ( qos.isSetType ( ) ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.core.common.businessentities.qos.QosType.class , qos.getType ( ) , true ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { init ( ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel vnicsModel , org.ovirt.engine.ui.uicommonweb.models.ListModel profilesModel ) { this . profilesModel = profilesModel ; super . edit ( vnicsModel ) ; driver.edit ( vnicsModel ) ; }
Source:
private void bootProtocolChanged ( ) { updateCanSpecify ( ) ; getAddress ( ) . setIsValid ( true ) ; getSubnet ( ) . setIsValid ( true ) ; }

Target:
private void bootProtocolChanged ( ) { updateCanSpecify ( ) ; getAddress ( ) . setIsValid ( true ) ; getSubnet ( ) . setIsValid ( true ) ; getGateway ( ) . setIsValid ( true ) ; }
Source:
public void settime_zone ( java.lang.String value ) { timezone = value ; }

Target:
public void setTimeZone ( java.lang.String value ) { timezone = value ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/qpid_username" ) , _openStackAgentProperties.getAgentConfiguration ( ) . getQpidConfiguration ( ) . getUsername ( ) ) ; return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/qpid_port" ) , _openStackAgentProperties.getAgentConfiguration ( ) . getQpidConfiguration ( ) . getPort ( ) ) ; return null ; }
Source:
private org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ... hostInterfaces ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister ( networkAttachmentDao , hostId , new java.util.ArrayList ( java.util.Arrays.asList ( hostInterfaces ) ) , userNetworkAttachments , clusterNetworks ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ... hostInterfaces ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister ( networkAttachmentDao , hostId , new java.util.ArrayList ( java.util.Arrays.asList ( hostInterfaces ) ) , customPropertiesForNics , userNetworkAttachments , clusterNetworks ) ; }
Source:
private void initTimeZones ( ) { getOSType ( ) . getSelectedItemChangedEvent ( ) . addListener ( new org.ovirt.engine.core.compat.IEventListener ( ) { @ java.lang.Override public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { getBehavior ( ) . updateTimeZone ( ) ; } } ) ; }

Target:
private void initTimeZones ( ) { getOSType ( ) . getSelectedItemChangedEvent ( ) . addListener ( new org.ovirt.engine.ui.uicompat.IEventListener ( ) { @ java.lang.Override public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getBehavior ( ) . updateTimeZone ( ) ; } } ) ; }
Source:
public int getnum_of_cpus ( ) { return ( this . getcpu_per_socket ( ) ) * ( this . getnum_of_sockets ( ) ) ; }

Target:
public void setUnmanagedDeviceList ( java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > list ) { this . unmanagedDeviceList = list ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return runQueryImpl ( actionType , parameters , false , engineContext ) ; }

Target:
public org.ovirt.engine.core.common.queries.QueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return runQueryImpl ( actionType , parameters , false , engineContext ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( ( source != null ) && ( ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ) ) { return true ; } return false ; }

Target:
public void isAnyHostUpInCluster ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Boolean > aQuery , java.lang.String clusterName ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.IsNonEmptyCollectionConverter ( ) ; getUpHostListByCluster ( aQuery , clusterName , 1 ) ; }
Source:
public void updateInterface ( org.ovirt.engine.core.common.businessentities.StoragePool datacenter ) { getDiskInterface ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetDiskInterfaceList ( ) ) ; getDiskInterface ( ) . setSelectedItem ( getDisk ( ) . getDiskInterface ( ) ) ; }

Target:
public void updateInterface ( org.ovirt.engine.core.common.businessentities.StoragePool datacenter ) { getDiskInterface ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDiskInterfaceList ( ) ) ; getDiskInterface ( ) . setSelectedItem ( getDisk ( ) . getDiskInterface ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.network.Network x , org.ovirt.engine.core.common.businessentities.network.Network y ) { return x.getName ( ) . compareTo ( y.getName ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork net1 , org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork net2 ) { return comparator.compare ( net1.getNetwork ( ) , net2.getNetwork ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.AffinityGroupVmResource getAffinityGroupVmResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAffinityGroupVmResource ( affinityGroupId , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.AffinityGroupVmResource getVmResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAffinityGroupVmResource ( affinityGroupId , id ) ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallBack ( ) { return org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVm ( ) . isQualifiedForLiveSnapshotMerge ( ) ? new org.ovirt.engine.core.bll.RemoveSnapshotCommandCallback ( ) : null ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallback ( ) { return org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVm ( ) . isQualifiedForLiveSnapshotMerge ( ) ? new org.ovirt.engine.core.bll.RemoveSnapshotCommandCallback ( ) : null ; }
Source:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAllDbUsers , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getUsers ( ) ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }

Target:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAllDbUsers , org.ovirt.engine.core.common.queries.QueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getUsers ( ) ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }
Source:
protected void setStatus ( ) { org.ovirt.engine.core.common.businessentities.VDSStatus newStatus = org.ovirt.engine.core.common.businessentities.VDSStatus.Down ; if ( ( org.ovirt.engine.core.bll.pm.StopVdsCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.RestartVds ) ) { newStatus = org.ovirt.engine.core.common.businessentities.VDSStatus.Reboot ; } setStatus ( newStatus ) ; }

Target:
protected void setStatus ( ) { org.ovirt.engine.core.common.businessentities.VDSStatus newStatus = org.ovirt.engine.core.common.businessentities.VDSStatus.Down ; if ( ( org.ovirt.engine.core.bll.pm.StopVdsCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.ActionType.RestartVds ) ) { newStatus = org.ovirt.engine.core.common.businessentities.VDSStatus.Reboot ; } setStatus ( newStatus ) ; }
Source:
public void vmTemplateIdRef ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setVmTemplateId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid g = b.getVmTemplateIdRef ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }

Target:
public void vmTemplateIdRefWithVm ( ) { final org.ovirt.engine.core.common.businessentities.VM v = new org.ovirt.engine.core.common.businessentities.VM ( ) ; b.setVm ( v ) ; final org.ovirt.engine.core.compat.Guid g = b.getVmTemplateIdRef ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > freeze ( java.lang.String vmId ) ;
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { needsDetach = false ; doFinish ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { needsAttach = false ; doFinish ( ) ; }
Source:
private void init ( ) { loadPolicyUnits ( ) ; loadClusterPolicies ( ) ; }

Target:
private void init ( ) { loadPolicyUnits ( ) ; loadClusterPolicies ( ) ; org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryThread discoveryThread = new org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryThread ( ) ; discoveryThread.start ( ) ; }
Source:
public void testGetRelevantQuotasExistingVdsGroup ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForVdsGroup ( FixturesTool.VDS_GROUP_RHEL6_NFS , org.ovirt.engine.core.dao.QuotaDAOTest.NUM_QUOTAS ) ; }

Target:
public void testGetRelevantQuotasExistingVdsGroupNoSpecificQuotas ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForVdsGroup ( FixturesTool.VDS_GROUP_RHEL6_NFS_NO_SPECIFIC_QUOTAS , ( ( org.ovirt.engine.core.dao.QuotaDAOTest.VDS_GRUOP_NUM_QUOTAS ) - 1 ) ) ; }
Source:
public void setAcpiEnable ( java.lang.Boolean value ) { this . vmDynamic.setacpi_enable ( value ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getRunOnVds ( ) { return this . vmDynamic.getRunOnVds ( ) ; }
Source:
public int hashCode ( ) { return ( id ) != null ? id.hashCode ( ) : 0 ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , boot , diskInterface ) ; }
Source:
private boolean taskWasCleared ( org.ovirt.engine.core.bll.CommandAsyncTask task ) { org.ovirt.engine.core.bll.AsyncTaskState taskState = task.getState ( ) ; return ( taskState == ( AsyncTaskState.Cleared ) ) || ( taskState == ( AsyncTaskState.ClearFailed ) ) ; }

Target:
private boolean taskWasCleared ( org.ovirt.engine.core.bll.tasks.CommandAsyncTask task ) { org.ovirt.engine.core.bll.tasks.AsyncTaskState taskState = task.getState ( ) ; return ( taskState == ( org.ovirt.engine.core.bll.tasks.AsyncTaskState.Cleared ) ) || ( taskState == ( org.ovirt.engine.core.bll.tasks.AsyncTaskState.ClearFailed ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { AddVmStatic ( ) ; addVmDynamic ( ) ; AddVmNetwork ( ) ; AddVmStatistics ( ) ; addActiveSnapshot ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addVmStatic ( ) ; addVmDynamic ( ) ; addVmNetwork ( ) ; addVmStatistics ( ) ; addActiveSnapshot ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
private boolean isEveryoneVnicProfileUserPermission ( org.ovirt.engine.core.common.businessentities.Permissions permission ) { return ( permission.getad_element_id ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getrole_id ( ) . equals ( ApplicationGuids.vnicProfileUser.asGuid ( ) ) ) ; }

Target:
private boolean isEveryoneVnicProfileUserPermission ( org.ovirt.engine.core.common.businessentities.Permissions permission ) { return ( permission.getAdElementId ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getRoleId ( ) . equals ( ApplicationGuids.vnicProfileUser.asGuid ( ) ) ) ; }
Source:
public void setForceLabel ( java.lang.String forceLabel ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( getForceLabel ( ) , forceLabel ) ) ) { this . forceLabel = forceLabel ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ForceLabel" ) ) ; } }

Target:
public void setForceLabel ( java.lang.String forceLabel ) { if ( ! ( java.util.Objects.equals ( getForceLabel ( ) , forceLabel ) ) ) { this . forceLabel = forceLabel ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ForceLabel" ) ) ; } }
Source:
private void givenListOfImagesAndVolumes ( ) { mockVdsCommand ( VDSCommandType.GetImagesList , successfulReturnValue ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.hostedengine.HostedEngineConfigFetcherTest.IMAGE_ID ) ) ) ; mockVdsCommand ( VDSCommandType.GetVolumesList , successfulReturnValue ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.hostedengine.HostedEngineConfigFetcherTest.VOLUME_ID ) ) ) ; }

Target:
private void givenListOfImagesAndVolumes ( ) { mockVdsCommand ( VDSCommandType.GetImagesList , successfulReturnValue ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.hostedengine.HostedEngineConfigFetcherTest.IMAGE_ID ) ) ) ; mockVdsCommand ( VDSCommandType.GetVolumesList , successfulReturnValue ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.hostedengine.HostedEngineConfigFetcherTest.VOLUME_ID ) ) ) ; }
Source:
public static boolean isVirtioScsiControllerAttached ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVirtioScsiControllers ( vmId ) . isEmpty ( ) ) ; }

Target:
public static boolean hasVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVirtioScsiControllers ( vmId ) . isEmpty ( ) ) ; }
Source:
protected void postConnect ( org.ovirt.vdsm.jsonrpc.client.utils.OneTimeCallback callback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { super . postConnect ( this . callback ) ; }

Target:
private void setWaitForConnect ( ) { this . connected = new java.util.concurrent.CountDownLatch ( 1 ) ; this . subscribed = new java.util.concurrent.CountDownLatch ( 1 ) ; }
Source:
private java.lang.String getSearchPattern ( ) { java.lang.String user_defined_pattern = org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( getUriInfo ( ) , "" , modelType ) ; return user_defined_pattern.equals ( "Users : " ) ? user_defined_pattern + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.USERS_SEARCH_PATTERN ) : ( user_defined_pattern + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.AND_SEARCH_PATTERN ) ) + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.USERS_SEARCH_PATTERN ) ; }

Target:
private java.lang.String getSearchPattern ( ) { java.lang.String user_defined_pattern = org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( httpHeaders , uriInfo , "" , modelType ) ; return user_defined_pattern.equals ( "Users : " ) ? user_defined_pattern + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.USERS_SEARCH_PATTERN ) : ( user_defined_pattern + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.AND_SEARCH_PATTERN ) ) + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.USERS_SEARCH_PATTERN ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > findPermissionCheckSubjects ( org.ovirt.engine.core.compat.Guid networkId , org.ovirt.engine.core.common.action.VdcActionType actionType ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( networkId , org.ovirt.engine.core.common.VdcObjectType.Network , actionType.getActionGroup ( ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > findPermissionCheckSubjects ( org.ovirt.engine.core.compat.Guid networkId , org.ovirt.engine.core.common.action.ActionType actionType ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( networkId , org.ovirt.engine.core.common.VdcObjectType.Network , actionType.getActionGroup ( ) ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookAdd ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum , java.lang.Boolean enabled ) ;
Source:
private void setNewMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.SPMAsyncTask > asyncTaskMap ) { _tasks = asyncTaskMap ; logChangedMap = true ; org.ovirt.engine.core.bll.AsyncTaskManager.log.infoFormat ( "Setting new tasks map. The map contains now {0} tasks" , _tasks.size ( ) ) ; }

Target:
public synchronized void StartPollingTask ( org.ovirt.engine.core.compat.Guid taskID ) { if ( _tasks.containsKey ( taskID ) ) { _tasks.get ( taskID ) . StartPollingTask ( ) ; } }
Source:
public void checkExecuteCommandWithVdsId ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . disconnectStorage ( ) ; command.executeCommand ( ) ; }

Target:
public void checkExecuteCommandWithEmptyVdsId ( ) { parameters.setStorageServerConnection ( org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommandTest.NFSConnection ) ; parameters.setVdsId ( Guid.Empty ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( command , org.mockito.Mockito.never ( ) ) . disconnectStorage ( ) ; }
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 ( ) , null ) ; param.setIsReinstallOrUpgrade ( true ) ; return param ; }
Source:
public void testIsAnyVmRunOnVds ( ) { org.junit.Assert.assertTrue ( dao.isAnyVmRunOnVds ( FixturesTool.VDS_RHEL6_NFS_SPM ) ) ; org.junit.Assert.assertFalse ( dao.isAnyVmRunOnVds ( org.ovirt.engine.core.dao.VmDynamicDaoTest.VDS_STATIC_ID2 ) ) ; }

Target:
public void testIsAnyVmRunOnVds ( ) { org.junit.Assert.assertTrue ( dao.isAnyVmRunOnVds ( FixturesTool.VDS_RHEL6_NFS_SPM ) ) ; org.junit.Assert.assertFalse ( dao.isAnyVmRunOnVds ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ) ; }
Source:
public void testNoPermission ( ) { org.ovirt.engine.core.common.businessentities.VmBase vmBase = createVmBase ( cpuProfile2.getId ( ) ) ; org.ovirt.engine.core.bll.ValidationResult res = cpuProfileHelper.setAndValidateCpuProfile ( vmBase , org.ovirt.engine.core.bll.profiles.CpuProfileHelperTest.USER_1_ID ) ; org.junit.Assert.assertThat ( res , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_NO_PERMISSION_TO_ASSIGN_CPU_PROFILE ) ) ; }

Target:
public void testNoPermission ( ) { org.ovirt.engine.core.common.businessentities.VmBase vmBase = createVmBase ( cpuProfile2.getId ( ) ) ; org.ovirt.engine.core.bll.ValidationResult res = cpuProfileHelper.setAndValidateCpuProfile ( vmBase , org.ovirt.engine.core.bll.profiles.CpuProfileHelperTest.USER_1_ID ) ; org.hamcrest.MatcherAssert.assertThat ( res , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_NO_PERMISSION_TO_ASSIGN_CPU_PROFILE ) ) ; }
Source:
public void setup ( ) { }

Target:
public void testVmFailNoDisks ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , null , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) ) , false , VdcBllMessages.VM_CANNOT_RUN_FROM_DISK_WITHOUT_DISK ) ; }
Source:
static void verifyModelSpecific ( org.ovirt.engine.api.model.VmPool model ) { org.junit.Assert.assertNotNull ( model.getCluster ( ) ) ; org.junit.Assert.assertEquals ( GUIDS [ 2 ] . toString ( ) , model.getCluster ( ) . getId ( ) ) ; }

Target:
static void verifyModelSpecific ( org.ovirt.engine.api.model.VmPool model ) { org.junit.jupiter.api.Assertions.assertNotNull ( model.getCluster ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( GUIDS [ 2 ] . toString ( ) , model.getCluster ( ) . getId ( ) ) ; }
Source:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterClusterListModel > getDataCenterClusterListProvider ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterClusterListModel > ( ginjector , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel.class , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterClusterListModel.class ) ; }

Target:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterClusterListModel > getDataCenterClusterListProvider ( com.google.gwt.event.shared.EventBus eventBus , com.google.inject.Provider < org.ovirt.engine.ui.common.presenter.popup.DefaultConfirmationPopupPresenterWidget > defaultConfirmPopupProvider ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterClusterListModel > ( eventBus , defaultConfirmPopupProvider , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel.class , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterClusterListModel.class ) ; }
Source:
org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VdsmVm > createPair ( ) { org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VdsmVm > pair = pairOf ( createDbVm ( ) , createVmInternalData ( ) ) ; addWatchDogEvents ( pair ) ; addClientIpChanged ( pair ) ; return pair ; }

Target:
org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm > createPair ( ) { org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm > pair = pairOf ( createDbVm ( ) , createVmInternalData ( ) ) ; addWatchDogEvents ( pair ) ; addClientIpChanged ( pair ) ; return pair ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult updatePortAllowed ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_PORT_CHANGE_REQUIRE_INSTALL ) . unless ( ( ( installHost ) || ( ( oldHost.getPort ( ) ) == ( getHost ( ) . getPort ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult updatePortAllowed ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_PORT_CHANGE_REQUIRE_INSTALL ) . unless ( ( ( installHost ) || ( ( oldHost.getPort ( ) ) == ( getHost ( ) . getPort ( ) ) ) ) ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , ( ( _iptables.length ( ) ) > 0 ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.SSH_USER , _vds.getSshUsername ( ) ) ; return null ; }
Source:
private static void cpuManufacturersDontMatch ( ) { org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CheckIfCpusSameManufacture ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Version.class ) ) ) . thenReturn ( false ) ; }

Target:
private void cpuManufacturersDontMatch ( ) { org.mockito.Mockito.doReturn ( false ) . when ( cmd ) . checkIfCpusSameManufacture ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VDSGroup.class ) ) ; }
Source:
public void passthroughProfileDoesNotContainFilterIdButDefaultWillBeUsed ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void render ( org.ovirt.engine.ui.common.widget.table.column.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { delegate.render ( context , value , sb ) ; }

Target:
public void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { delegate.render ( context , value , sb ) ; }
Source:
void addActionVersionMap ( org.ovirt.engine.core.common.businessentities.action_version_map action_version_map ) ;

Target:
void addActionVersionMap ( org.ovirt.engine.core.common.businessentities.ActionVersionMap actionVersionMap ) ;
Source:
public static void toStringBuilder ( java.util.Map [ ] xmlRpc , java.lang.StringBuilder builder ) { if ( xmlRpc == null ) { return ; } for ( java.util.Map entry : xmlRpc ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcObjectDescriptor.toStringBuilder ( entry , builder ) ; } }

Target:
public static void toStringBuilder ( java.util.Map [ ] xmlRpc , java.lang.StringBuilder builder ) { if ( xmlRpc == null ) { return ; } for ( java.util.Map entry : xmlRpc ) { org.ovirt.engine.core.vdsbroker.ObjectDescriptor.toStringBuilder ( entry , builder ) ; } }
Source:
protected void executeCommand ( ) { getNetworkQoSDao ( ) . remove ( getNetworkQoS ( ) . getId ( ) ) ; getReturnValue ( ) . setActionReturnValue ( getNetworkQoS ( ) . getId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.NetworkQosValidator getQosValidator ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS qos ) { return new org.ovirt.engine.core.bll.validator.NetworkQosValidator ( qos ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.BooleanReturnForXmlRpc glusterVolumeEmptyCheck ( java.lang.String volumeName ) ;
Source:
public void validateVmMemoryCantStartOnVdsBecauseOfPending ( ) { boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantRunOnVdsHighOverhead ( ) { org.mockito.Mockito.doReturn ( 1024 ) . when ( vmOverheadCalculator ) . getStaticOverheadInMb ( org.mockito.Matchers.any ( ) ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeCreate ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicaCount , int stripeCount , java.lang.String [ ] transportList ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getVolumeInfo ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
private void setSubnetCidr ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > subnetCidr ) { this . subnetCidr = subnetCidr ; }

Target:
private void setSubnetModel ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalSubnetModel subnetModel ) { this . subnetModel = subnetModel ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { onRefresh ( event.getValue ( ) ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Integer > event ) { onRefresh ( modelTimer.getTimerRefreshStatus ( ) ) ; }
Source:
public void testGetByNameAndVersionWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( "farkle" , existingOption.getversion ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameAndVersionWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( "farkle" , existingOption.getVersion ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VDS , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
protected void HandleError ( ) { log.errorFormat ( "Failed to run StartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.StartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { log.errorFormat ( "Failed to run StartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.StartVdsCommand.getVdsName ( ) ) ; }
Source:
public void refuseSoundDeviceOnPPC ( ) { setupCanAddPpcTest ( ) ; cmd.getParameters ( ) . setSoundDeviceEnabled ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.SOUND_DEVICE_REQUESTED_ON_NOT_SUPPORTED_ARCH ) ; }

Target:
public void refuseSoundDeviceOnPPC ( ) { setupCanAddPpcTest ( ) ; cmd.getParameters ( ) . setSoundDeviceEnabled ( true ) ; cmd.init ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.SOUND_DEVICE_REQUESTED_ON_NOT_SUPPORTED_ARCH ) ; }
Source:
private boolean isSetupNetworkSupported ( org.ovirt.engine.core.compat.Guid clusterId ) { final org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getVdsGroupDAO ( ) . get ( clusterId ) ; return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.setupNetworkSupported ( cluster.getCompatibilityVersion ( ) ) ; }

Target:
private boolean isSetupNetworkSupported ( org.ovirt.engine.core.compat.Guid clusterId ) { final org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getVdsGroupDao ( ) . get ( clusterId ) ; return org.ovirt.engine.core.bll.network.cluster.NetworkHelper.setupNetworkSupported ( cluster.getCompatibilityVersion ( ) ) ; }
Source:
public static boolean isVdsWithSameHostExistStatic ( java.lang.String hostName ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . getAllForHost ( hostName ) ; return ( vds.size ( ) ) != 0 ; }

Target:
public static boolean isVdsWithSameNameExistStatic ( java.lang.String vdsName ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . getByVdsName ( vdsName ) ) != null ; }
Source:
public void testGetAllForEntityFilteredWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }

Target:
public void testGetAllForEntityFilteredWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }
Source:
public void testGetAllVfsConfigByHostIdWithNoVfsConfigs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( org.ovirt.engine.core.dao.network.HostNicVfsConfigDaoTest.HOST_WITH_NO_VFS_CONFIGS_ID ) ; org.junit.Assert.assertEquals ( vfsConfigs.size ( ) , 0 ) ; }

Target:
public void testGetAllVfsConfigByHostIdWithNoVfsConfigs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig > vfsConfigs = dao.getAllVfsConfigByHostId ( org.ovirt.engine.core.dao.network.HostNicVfsConfigDaoTest.HOST_WITH_NO_VFS_CONFIGS_ID ) ; org.junit.Assert.assertTrue ( vfsConfigs.isEmpty ( ) ) ; }
Source:
public void testMacPoolExistsEntityDoesExist ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.MacPoolValidator ( macPool ) . macPoolExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testMacPoolExistsEntityDoesExist ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( macPoolValidator.macPoolExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String getPmSecondaryOptions ( ) { return mVdsStatic.getPmSecondaryOptions ( ) ; }

Target:
public void setBalloonEnabled ( boolean enableBalloon ) { this . balloonEnabled = enableBalloon ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( cpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, masterDomainId = %s, masterVersion = %s" , super . toString ( ) , getMasterDomainId ( ) , getMasterVersion ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vdsId = %s, storagePoolId = %s, masterVersion = %d" , super . toString ( ) , vds.getId ( ) . toString ( ) , storagePool.getId ( ) . toString ( ) , storagePool.getmaster_domain_version ( ) ) ; }
Source:
public void setname ( java.lang.String value ) { this . name = value ; }

Target:
public void setname ( java.lang.String value ) { setName ( value ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterSnapshotInfo ( java.lang.String snapshotName , java.lang.String volumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;