<commit_before>class Range(object):
    def __init__(self, rid, start, end):
        if end < start: 
            raise ValueError("illegal range. end is smaller than start")
        if start == end: 
            raise ValueError("range can't be with size 0")
        self.rid, self.start, self.end = rid, start, end

    def __str__(self):
        return "[#%s:%d-%d]" % (self.rid, self.start, self.end)

    def __repr__(self):
        return self.__str__()

    def __eq__(self, other):
        return (other is not None and 
                    (self.rid == other.rid and 
                     self.start == other.start and 
                     self.end == other.end))

    def __ne__(self, other):
        return not self == other

    def contain(self, other):
        return other.start >= self.start and other.end <= self.end
<commit_msg>removing "#" from Range __str__ so it won't look like a comment..<commit_after>class Range(object):
    def __init__(self, rid, start, end):
        if end < start: 
            raise ValueError("illegal range. end is smaller than start")
        if start == end: 
            raise ValueError("range can't be with size 0")
        self.rid, self.start, self.end = rid, start, end

    def __str__(self):
        return "[%s:%d-%d]" % (self.rid, self.start, self.end)

    def __repr__(self):
        return self.__str__()

    def __eq__(self, other):
        return (other is not None and 
                    (self.rid == other.rid and 
                     self.start == other.start and 
                     self.end == other.end))

    def __ne__(self, other):
        return not self == other

    def contain(self, other):
        return other.start >= self.start and other.end <= self.end

{'fraction_non_alphanumeric': 0.1174785100286533, 'fraction_numerical': 0.001146131805157593, 'mean_word_length': 1.929530201342282, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '620980', 'n_tokens_mistral': 518, 'n_tokens_neox': 488, 'n_words': 166}