Returns always makes a "yes" decision on {@link Span} sampling.
548062
@Override
  public boolean shouldSample(
      @Nullable SpanContext parentContext,
      @Nullable Boolean hasRemoteParent,
      TraceId traceId,
      SpanId spanId,
      String name,
      List<Span> parentLinks) {
    return true;
  }
58910
def _get_sample_select(samples, keep):
    """"""
    k = np.ones_like(samples, dtype=bool)
    if keep is not None:
        k = np.array([s in keep for s in samples], dtype=bool)
        if np.sum(k) == 0:
            logger.warning("No samples matched the keep list")
    return k
991322
public static Span getValue(Context context) {
    @javax.annotation.Nullable
    Span span = CONTEXT_SPAN_KEY.get(Utils.checkNotNull(context, "context"));
    return span == null ? BlankSpan.INSTANCE : span;
  }
769984
public function shouldSample()
    {
        foreach ($this->samplers as $sampler) {
            if ($sampler->shouldSample() === false) {
                return false;
            }
        }
        return true;
    }
670288
@SuppressWarnings("unchecked")
    @Override
    public E poll() {
        // local load of field to avoid repeated loads after volatile reads
        final AtomicReferenceArray<E> buffer = consumerBuffer;
        final long index = lpConsumerIndex();
        final long mask = consumerMask;
        final int offset = calcElementOffset(index, mask);
        // LoadLoad
        final Object e = lvElement(buffer, offset);
        boolean isNextBuffer = e == JUMP;
        if (null != e && !isNextBuffer) {
            // this ensures correctness on 32bit platforms
            soConsumerIndex(index + 1);
            soElement(buffer, offset, null);
            return (E) e;
        } else if (isNextBuffer) {
            return newBufferPoll(buffer, index);
        }
        return null;
    }
118542
@Override
    public final Boolean getReportPAN() {
        Boolean value = (Boolean) getApi().getField(JsApiAccess.REPORTPAN_VALUE);
        return (value == null) ? Boolean.FALSE : value;
    }
1325689
public static <V> boolean the(Sampler<V> variable, Matcher<? super V> criteria) {
        variable.takeSample();
        return criteria.matches(variable.sampledValue());
    }
674857
public Boolean getAsBoolean() {
		if (value instanceof String) {
			return Boolean.parseBoolean((String)value);
		}
		return (Boolean)value;
	}
1179467
public boolean isSelected() {

        Boolean value = (Boolean) getValue();
        if (value != null) {
            return (value.booleanValue());
        } else {
            return (false);
        }

    }
708978
public E poll() {
        final ReentrantLock lock = this.lock;
        lock.lock();
        try {
            E first = q.peek();
            return (first == null || first.getDelay(NANOSECONDS) > 0)
                ? null
                : q.poll();
        } finally {
            lock.unlock();
        }
    }
630644
public <V> boolean the(Sampler<V> variable, Ticker ticker, Matcher<? super V> criteria) {
        return the(sampleOf(variable, criteria), ticker);
    }
819921
protected static boolean getBoolean(final Context context, final DataSource source) throws FlowException {

		if (source != null) {

			final Object value = source.get(context);
			if (value instanceof Boolean) {

				return (Boolean)value;
			}

			if (value instanceof String) {

				return Boolean.valueOf((String)value);
			}
		}

		return false;
	}
552623
public boolean isAllSelected()
    {
        boolean bAllSelected = true;
        for (int iFieldSeq = DBConstants.MAIN_FIELD; iFieldSeq <= this.getFieldCount() + DBConstants.MAIN_FIELD - 1; iFieldSeq++)
        {
            if(this.getField(iFieldSeq).isSelected() == false)
                bAllSelected = false;
        }
        return bAllSelected;
    }
363279
protected boolean requestSetSelection(boolean selected) {
		boolean previousState = isSelected();

		if (previousState != selected) {
			this.selected = onSelection(selected);
			if (logger.isDebugEnabled()) {
				logger.debug("Toggle command selection returned '" + this.selected + "'");
			}
		}

		// we must always update toggle buttons
		Iterator it = buttonIterator();
		if (logger.isDebugEnabled()) {
			logger.debug("Updating all attached toggle buttons to '" + isSelected() + "'");
		}
		while (it.hasNext()) {
			AbstractButton button = (AbstractButton)it.next();
			button.setSelected(isSelected());
		}

		if (previousState != isSelected()) {
			if (logger.isDebugEnabled()) {
				logger.debug("Selection changed; firing property change event");
			}
			firePropertyChange(SELECTED_PROPERTY, previousState, isSelected());
		}

		return isSelected();
	}
1074501
public boolean booleanValue()
    {
        final String value = getInternal(null, false);
        if (value == null) {
            return false;
        }
        return toBoolean(value);
    }
1038390
@Nullable
    public static Boolean sampledToBoolean(@Nullable String sampled) {
        return sampled == null ? null : DO_SAMPLE_VALUE.equals(sampled);
    }
1007741
def in_span(loc: int, span: Span) -> bool:
    """"""

    if loc >= span[0] and loc <= span[1]:
        return True
    else:
        return False