<commit_before>import re


class Status(object):
    def __init__(self, status):
        matches = re.search(r"^((?:[MADRCU ?!]){2}) (.+?)(?: -> (.+?))?$", status)
        self.x = matches[1][0]
        self.y = matches[1][1]
        self.path = matches[3] if matches[3] else matches[2]
        self.original_path = matches[2] if matches[3] else None

    def __str__(self):
        status = "{}{}".format(self.x, self.y)
        if self.original_path:
            status = "{} {} -> {}".format(status, self.original_path, self.path)
        else:
            status = "{} {}".format(status, self.path)
        return status

    def __repr__(self):  # pragma: no cover
        return "<Status {}>".format(self.path)

    @property
    def is_staged(self):
        return self.x not in (' ', '?', '!')

    @property
    def is_untracked(self):
        return self.x == '?'

    @property
    def is_ignored(self):
        return self.x == '!'
<commit_msg>Fix linting issues<commit_after>import re


class Status(object):
    def __init__(self, status):
        matches = re.search(r"^((?:[MADRCU ?!]){2}) (.+?)(?: -> (.+?))?$", status)
        self.x = matches[1][0]
        self.y = matches[1][1]
        self.path = matches[3] if matches[3] else matches[2]
        self.original_path = matches[2] if matches[3] else None

    def __str__(self):
        status = "{}{}".format(self.x, self.y)
        if self.original_path:
            status = "{} {} -> {}".format(status, self.original_path, self.path)
        else:
            status = "{} {}".format(status, self.path)
        return status

    def __repr__(self):  # pragma: no cover
        return "<Status {}>".format(self.path)

    @property
    def is_staged(self):
        return self.x not in (" ", "?", "!")

    @property
    def is_untracked(self):
        return self.x == "?"

    @property
    def is_ignored(self):
        return self.x == "!"

{'fraction_non_alphanumeric': 0.1825769431403234, 'fraction_numerical': 0.010432968179447054, 'mean_word_length': 2.312607944732297, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7033129', 'n_tokens_mistral': 659, 'n_tokens_neox': 639, 'n_words': 140}