<commit_before>import branch
import state

class Action(object):
    """
    Description of the concept of "Actions".
    """

    @staticmethod
    def fromJSON(jsn):
        """
        Constructs an Action object from its JSON description.
        """
        assert (isinstance(jsn, dict) and not jsn is None)
        assert ('kind' in jsn)
        assert ('parameters' in jsn)
        return Action(jsn['kind'], jsn['parameters'])


    def __init__(self, kind, values):
        """
        Constructs an Action description.

        :param  kind    the name of the schema to which the action belongs
        :param  values  a dictionary of parameter values for the action
        """
        assert ((isinstance(kind, str) or (isinstance(kind, unicode))) and not kind is None)
        assert (isinstance(values, dict) and not values is None)
        self.__kind = kind
        self.__values = values[:]


    def getSchemaName(self):
        """
        Returns the name of the schema to which this action belongs.
        """
        return self.__kind<commit_msg>fixed repeat of previous fix in constructor<commit_after>import branch
import state

class Action(object):
    """
    Description of the concept of "Actions".
    """

    @staticmethod
    def fromJSON(jsn):
        """
        Constructs an Action object from its JSON description.
        """
        assert (isinstance(jsn, dict) and not jsn is None)
        assert ('kind' in jsn)
        assert ('parameters' in jsn)
        return Action(jsn['kind'], jsn['parameters'])


    def __init__(self, kind, values):
        """
        Constructs an Action description.

        :param  kind    the name of the schema to which the action belongs
        :param  values  a dictionary of parameter values for the action
        """
        assert ((isinstance(kind, str) or (isinstance(kind, unicode))) and not kind is None)
        assert (isinstance(values, dict) and not values is None)
        self.__kind = kind
        self.__values = values.copy()


    def getSchemaName(self):
        """
        Returns the name of the schema to which this action belongs.
        """
        return self.__kind
{'fraction_non_alphanumeric': 0.09099264705882353, 'fraction_numerical': 0.0, 'mean_word_length': 2.288519637462236, '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': '1952954', 'n_tokens_mistral': 570, 'n_tokens_neox': 555, 'n_words': 225}