<commit_before>import struct


class MBR:
    def __init__(self):
        pass

    def load(self, raw_data):
        signature = struct.unpack("<H", raw_data[510:512])[0]

        if (signature != 0xAA55):
            return False

        return True<commit_msg>Added hexdump method to mgr class<commit_after>import struct
import hexdump


class MBR:
    def __init__(self):
        pass

    def load(self, raw_data):
        signature = struct.unpack("<H", raw_data[510:512])[0]

        if (signature != 0xAA55):
            return False

        self.raw = raw_data

        return True

    def hexdump(self):
        hexdump.hexdump(self.raw)
{'fraction_non_alphanumeric': 0.10307692307692308, 'fraction_numerical': 0.03076923076923077, 'mean_word_length': 2.3045685279187818, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6046447', 'n_tokens_mistral': 226, 'n_tokens_neox': 198, 'n_words': 51}