<commit_before>'''
'''

import math


class Vector3:

    def __init__(self, x=0.0, y=0.0, z=0.0):

        self.x = x
        self.y = y
        self.z = z

    def __str__(self):

        return '{:.1f} {:.1f} {:.1f}'.format(self.x, self.y, self.z)

    def distance(self, other):

        x = other.x - self.x
        y = other.y - self.y
        z = other.z - self.z

        result = math.sqrt((x * x) + (y * y) + (z * z))

        return result

    def reset(self):

        self.x = self.y = self.z = 0.0

    def __eq__(self, tgt):

        return self.x == tgt.x and self.y == tgt.y and self.z == tgt.z


class Position(Vector3):

    def impulse(self, dest):

        values = []

        for a, b in (
            (self.x, dest.x),
            (self.y, dest.y),
            (self.z, dest.z)
        ):

            result = b - a

            if result > 0:
                result = min(result, 1)
            else:
                result = max(result, -1)

            values.append(result)

        return Velocity(*values)

    @classmethod
    def from_args(self, current, args):

        values = [current.x, current.y, current.z]

        for n in range(0, 3):
            if args[n].startswith('~'):
                if len(args[n]) == 1:
                    continue<commit_msg>Fixed type self->clz for static method<commit_after>'''
'''

import math


class Vector3:

    def __init__(self, x=0.0, y=0.0, z=0.0):

        self.x = x
        self.y = y
        self.z = z

    def __str__(self):

        return '{:.1f} {:.1f} {:.1f}'.format(self.x, self.y, self.z)

    def distance(self, other):

        x = other.x - self.x
        y = other.y - self.y
        z = other.z - self.z

        result = math.sqrt((x * x) + (y * y) + (z * z))

        return result

    def reset(self):

        self.x = self.y = self.z = 0.0

    def __eq__(self, tgt):

        return self.x == tgt.x and self.y == tgt.y and self.z == tgt.z


class Position(Vector3):

    def impulse(self, dest):

        values = []

        for a, b in (
            (self.x, dest.x),
            (self.y, dest.y),
            (self.z, dest.z)
        ):

            result = b - a

            if result > 0:
                result = min(result, 1)
            else:
                result = max(result, -1)

            values.append(result)

        return Velocity(*values)

    @classmethod
    def from_args(clz, current, args):

        values = [current.x, current.y, current.z]

        for n in range(0, 3):
            if args[n].startswith('~'):
                if len(args[n]) == 1:
                    continue
{'fraction_non_alphanumeric': 0.1497326203208556, 'fraction_numerical': 0.014514896867838044, 'mean_word_length': 1.3573357335733574, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2570283', 'n_tokens_mistral': 960, 'n_tokens_neox': 885, 'n_words': 234}