<commit_before>

class MemoryRange(object):
    """
    This class represents a MemoryRange which can be mapped in one of Avatar-Targets.
    :ivar address:      The load-address of the memory range
    :ivar size:         The size of the memory range
    :ivar name:         User-defined name for the memory range
    :ivar permissions:  The permisions of the range, represented as textual unix file permission (rwx)
    :ivar file:         A file used for backing the memory range
    :ivar forwarded:    Enable or disable forwarding for this range
    :ivar forwarded_to: List of targets this range should be forwarded to
    """

    def __init__(self, address, size, name='', permissions='rwx',
                 file=None, forwarded=False, forwarded_to=None, **kwargs):
        self.address = address
        self.size = size
        self.name = name
        self.permissions = permissions
        self.file = file
        self.forwarded = forwarded
        self.forwarded_to = forwarded_to
        self.__dict__.update(kwargs)<commit_msg>Added default name to memory_range<commit_after>

class MemoryRange(object):
    """
    This class represents a MemoryRange which can be mapped in one of Avatar-Targets.
    :ivar address:      The load-address of the memory range
    :ivar size:         The size of the memory range
    :ivar name:         User-defined name for the memory range
    :ivar permissions:  The permisions of the range, represented as textual unix file permission (rwx)
    :ivar file:         A file used for backing the memory range
    :ivar forwarded:    Enable or disable forwarding for this range
    :ivar forwarded_to: List of targets this range should be forwarded to
    """
    mem_range_count = 0

    def __init__(self, address, size, name=None, permissions='rwx',
                 file=None, forwarded=False, forwarded_to=None, **kwargs):
        self.address = address
        self.size = size
        self.name = name if name else "mem{}[{}-{}]".format(MemoryRange.mem_range_count, hex(address), hex(size))
        self.permissions = permissions
        self.file = file
        self.forwarded = forwarded
        self.forwarded_to = forwarded_to
        self.__dict__.update(kwargs)

        MemoryRange.mem_range_count += 1
{'fraction_non_alphanumeric': 0.07458075904677847, 'fraction_numerical': 0.00088261253309797, 'mean_word_length': 2.692182410423453, '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': '2450521', 'n_tokens_mistral': 621, 'n_tokens_neox': 596, 'n_words': 231}