def __init__(self, samples):
        if len(samples) == 0:
            raise ValueError('A Uniform probability distribution must '+
                             'have at least one sample.')
        self._sampleset = set(samples)
        self._prob = 1.0/len(self._sampleset)
        self._samples = list(self._sampleset)
See ``test_app_state_always_and_config_always_restarted``
dataset/ETHPy150Open nltk/nltk/nltk/probability.py/UniformProbDist.__init__--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/test/test_container.py/ApplicationNodeDeployerCalculateChangesTests.test_app_state_failure_and_config_always_restarted