<commit_before>package com.easternedgerobotics.rov.value;

import java.util.Objects;

public class MotionValue implements MutableValueCompanion<Motion> {
    /**
     * Creates a MotionValue with the all the values zeroed out.
     *
     * @return a zero MotionValue
     */
    public static MotionValue zero() {
        return new MotionValue(new Motion());
    }

    /**
     * Creates a MotionValue with the given values.
     *
     * @param heave the linear vertical (up/down) motion
     * @param sway the linear lateral (side-to-side or Port-Starboard) motion
     * @param surge the linear longitudinal (front/back or Bow/Stern) motion
     * @param pitch the Up/down rotation of a vessel about its lateral/Y (side-to-side or Port-Starboasrd) axis
     * @param yaw the turning rotation of a vessel about its vertical/Z axis
     * @param roll the tilting rotation of a vessel about its longitudinal/X (front-back or Bow-Stern) axis
     * @return a MotionValue
     */
    public static MotionValue create(
        final float heave,
        final float sway,
        final float surge,
        final float pitch,
        final float yaw,
        final float roll
    ) {
        final Motion m = new Motion();
        m.heave = heave;
        m.sway = sway;
        m.surge = surge;
        m.pitch = pitch;
        m.yaw = yaw;
        m.roll = roll;
        return new MotionValue(m);
    }

    private final Motion motion;

    MotionValue(final Motion m) {<commit_msg>Fix typo in MotionValue javadoc<commit_after>package com.easternedgerobotics.rov.value;

import java.util.Objects;

public class MotionValue implements MutableValueCompanion<Motion> {
    /**
     * Creates a MotionValue with the all the values zeroed out.
     *
     * @return a zero MotionValue
     */
    public static MotionValue zero() {
        return new MotionValue(new Motion());
    }

    /**
     * Creates a MotionValue with the given values.
     *
     * @param heave the linear vertical (up/down) motion
     * @param sway the linear lateral (side-to-side or Port-Starboard) motion
     * @param surge the linear longitudinal (front/back or Bow/Stern) motion
     * @param pitch the Up/down rotation of a vessel about its lateral/Y (side-to-side or Port-Starboard) axis
     * @param yaw the turning rotation of a vessel about its vertical/Z axis
     * @param roll the tilting rotation of a vessel about its longitudinal/X (front-back or Bow-Stern) axis
     * @return a MotionValue
     */
    public static MotionValue create(
        final float heave,
        final float sway,
        final float surge,
        final float pitch,
        final float yaw,
        final float roll
    ) {
        final Motion m = new Motion();
        m.heave = heave;
        m.sway = sway;
        m.surge = surge;
        m.pitch = pitch;
        m.yaw = yaw;
        m.roll = roll;
        return new MotionValue(m);
    }

    private final Motion motion;

    MotionValue(final Motion m) {
{'fraction_non_alphanumeric': 0.07828705252592841, 'fraction_numerical': 0.0, 'mean_word_length': 2.3111849390919157, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7391335', 'n_tokens_mistral': 887, 'n_tokens_neox': 831, 'n_words': 318}