<commit_before>class Section(object):
    '''
    Represents a section from an executable. All common executable formats have nearly the exact same idea of a
    section, so we just put it into a unified class for easy, consistent access
    '''

    name = ''
    vaddr = 0
    offset = 0
    size = 0
    raw = None

    readable = False
    writable = False
    executable = False

    orig_section = None

    def __repr__(self):
        return '<Section {} at vaddr {}>'.format(self.name, hex(self.vaddr))

    def contains_vaddr(self, vaddr):
        return self.vaddr <= vaddr < self.vaddr + self.size

def section_from_elf_section(elf_section):
    s = Section()<commit_msg>Fix instance variables on Section being class variables<commit_after>class Section(object):
    '''
    Represents a section from an executable. All common executable formats have nearly the exact same idea of a
    section, so we just put it into a unified class for easy, consistent access
    '''
    def __init__(self):
        self.name = ''
        self.vaddr = 0
        self.offset = 0
        self.size = 0
        self.raw = None

        self.readable = False
        self.writable = False
        self.executable = False

        self.orig_section = None

    def __repr__(self):
        return '<Section {} at vaddr {}>'.format(self.name, hex(self.vaddr))

    def contains_vaddr(self, vaddr):
        return self.vaddr <= vaddr < self.vaddr + self.size

def section_from_elf_section(elf_section):
    s = Section()
{'fraction_non_alphanumeric': 0.09006622516556291, 'fraction_numerical': 0.003973509933774834, 'mean_word_length': 2.6148325358851676, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5419845', 'n_tokens_mistral': 449, 'n_tokens_neox': 425, 'n_words': 150}