<commit_before>import abc
import numpy as np

from util.stats import combinedata

# NOTE: data is always a (possibly masked) np.ndarray or list of (possibly
# masked) np.ndarrays.

################
#  Base class  #
################

class Distribution(object):
    __metaclass__ = abc.ABCMeta

    @abc.abstractmethod
    def rvs(self,size=[]):
        '''
        random variates (samples)<commit_msg>fixed pyhsmm reference bug<commit_after>import abc
import numpy as np

from pyhsmm.util.stats import combinedata

# NOTE: data is always a (possibly masked) np.ndarray or list of (possibly
# masked) np.ndarrays.

################
#  Base class  #
################

class Distribution(object):
    __metaclass__ = abc.ABCMeta

    @abc.abstractmethod
    def rvs(self,size=[]):
        '''
        random variates (samples)
{'fraction_non_alphanumeric': 0.1638349514563107, 'fraction_numerical': 0.0, 'mean_word_length': 3.76878612716763, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1596016', 'n_tokens_mistral': 258, 'n_tokens_neox': 246, 'n_words': 74}