def _unique_cut(x, unique=0.05):
    """the percentage of distinct values out of the number of total samples.

    Examples
    --------
    >>> _unique_cut([0, 0], 0.49)
    True
    >>> _unique_cut([0, 0], 0.51)
    False
    >>> _unique_cut([0, 1], 1.01)
    False
    """
    count = len(set(x))
    return count / len(x) >= unique
