<commit_before>def parse_docs(pebble_data=None, phone_data=None):
    if not pebble_data or not phone_data:
        raise Exception('Expected phone and pebble data, didn\'t receive both')

    pebble_datalayer = Data(pebble_data)
    phone_datalayer = Data(phone_data)


class Data(object):
    def __init__(self, phone_data, pebble_data):
        self.phone_data = phone_data
        phone_x_data = select_data(self.phone_data, lambda frame: frame[0])  # X
        self.phone_x_min = phone_x_data['minimum']
        self.phone_x_max = phone_x_data['maximum']
        self.phone_x_average = phone_x_data['average']
        phone_y_data = select_data(self.phone_data, lambda frame: frame[1])  # Y
        self.phone_y_min = phone_y_data['minimum']
        self.phone_y_max = phone_y_data['maximum']
        self.phone_y_average = phone_y_data['average']
        phone_z_data = select_data(self.phone_data, lambda frame: frame[2])  # Z
        self.phone_z_min = phone_z_data['minimum']
        self.phone_z_max = phone_z_data['maximum']
        self.phone_z_average = phone_z_data['average']

        self.phone_range_x = self.phone_x_max - self.phone_x_min
        self.phone_range_y = self.phone_y_max - self.phone_y_min
        self.phone_range_z = self.phone_z_max - self.phone_z_min

        self.pebble_data = pebble_data
        pebble_x_data = select_data(self.pebble_data, lambda frame: frame[0])  # X
        self.pebble_x_min = pebble_x_data['minimum']
        self.pebble_x_max = pebble_x_data['maximum']
        self.pebble_x_average = pebble_x_data['average']
        pebble_y_data = select_data(self.phone_data, lambda frame: frame[1])  # Y
        self.pebble_y_min = pebble_y_data['minimum']<commit_msg>remove per king steve<commit_after>
class Data(object):
    def __init__(self, phone_data, pebble_data):
        self.phone_data = phone_data
        phone_x_data = select_data(self.phone_data, lambda frame: frame[0])  # X
        self.phone_x_min = phone_x_data['minimum']
        self.phone_x_max = phone_x_data['maximum']
        self.phone_x_average = phone_x_data['average']
        phone_y_data = select_data(self.phone_data, lambda frame: frame[1])  # Y
        self.phone_y_min = phone_y_data['minimum']
        self.phone_y_max = phone_y_data['maximum']
        self.phone_y_average = phone_y_data['average']
        phone_z_data = select_data(self.phone_data, lambda frame: frame[2])  # Z
        self.phone_z_min = phone_z_data['minimum']
        self.phone_z_max = phone_z_data['maximum']
        self.phone_z_average = phone_z_data['average']

        self.phone_range_x = self.phone_x_max - self.phone_x_min
        self.phone_range_y = self.phone_y_max - self.phone_y_min
        self.phone_range_z = self.phone_z_max - self.phone_z_min

        self.pebble_data = pebble_data
        pebble_x_data = select_data(self.pebble_data, lambda frame: frame[0])  # X
        self.pebble_x_min = pebble_x_data['minimum']
        self.pebble_x_max = pebble_x_data['maximum']
        self.pebble_x_average = pebble_x_data['average']
        pebble_y_data = select_data(self.phone_data, lambda frame: frame[1])  # Y
        self.pebble_y_min = pebble_y_data['minimum']
{'fraction_non_alphanumeric': 0.10216233155750548, 'fraction_numerical': 0.0031338138514572234, 'mean_word_length': 3.4518828451882846, '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': '6170638', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1148, 'n_words': 175}