<commit_before>class Action:
    pass<commit_msg>add two type of action<commit_after>"""Store user specific action"""

class Action:
    """Base action class"""
    def __init__(self, cmd, data):
        self.cmd = cmd
        self.data = data

class GeneAction(Action):
    """Gene action class"""
    def __init__(self, cmd, data):
        super().__init__(cmd, data)

    def apply(self, gene):
        """perform action on gene"""
        if self.cmd[0] == "edit":
            gene.modification(data=self.data)
        elif self.cmd[0] == "penalty":
            print(gene.valid_tactics)
            gene.fitness -= float(self.data)
{'fraction_non_alphanumeric': 0.139937106918239, 'fraction_numerical': 0.0031446540880503146, 'mean_word_length': 2.5786516853932584, 'pattern_counts': {'":': 2, '<': 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': '6107559', 'n_tokens_mistral': 195, 'n_tokens_neox': 190, 'n_words': 51}