<commit_before>import math


def dot(a, b):
    return a.x*b.x + a.y*b.y + a.z*b.z


def cross(a, b):
    return Vector3D(a.y*b.z-a.z*b.y,
                    a.z*b.x-a.x*b.z,
                    a.x*b.y-a.y*b.x)


class Vector3D:
    def __init__(self, x, y, z):
        self.x = x
        self.y = y<commit_msg>Fix object parsing<commit_after>import math


def dot(a, b):
    return a.x*b.x + a.y*b.y + a.z*b.z


def cross(a, b):
    return Vector3D(a.y*b.z-a.z*b.y,
                    a.z*b.x-a.x*b.z,
                    a.x*b.y-a.y*b.x)


def parse(vec_node):
    return Vector3D(float(vec_node.get('x')),
                    float(vec_node.get('y')),
                    float(vec_node.get('z')))


class Vector3D:
    def __init__(self, x, y, z):
        self.x = x
        self.y = y
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.006313131313131313, 'mean_word_length': 1.5416666666666667, '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': '6756227', 'n_tokens_mistral': 366, 'n_tokens_neox': 351, 'n_words': 61}