<commit_before>package pl.grzeslowski.jsupla.protocol.structs;

import pl.grzeslowski.jsupla.protocol.Proto;

import java.util.Arrays;

import static pl.grzeslowski.jsupla.protocol.ProtoPreconditions.checkArrayLength;
import static pl.grzeslowski.jsupla.protocol.consts.ProtoConsts.SUPLA_CHANNELVALUE_SIZE;

public final class TSuplaChannelValue implements Proto {
    /**
     * unsigned.
     */
    public final byte[] value;
    /**
     * For example sensor value.
     *
     * unsigned
     */
    public final byte[] subValue;

    public TSuplaChannelValue(byte[] value, byte[] subValue) {
        this.value = checkArrayLength(value, SUPLA_CHANNELVALUE_SIZE);
        this.subValue = checkArrayLength(subValue, SUPLA_CHANNELVALUE_SIZE);
    }

    @Override
    public int size() {
        return SUPLA_CHANNELVALUE_SIZE+ SUPLA_CHANNELVALUE_SIZE;
    }

    @Override
    public String toString() {
        return "TSuplaChannelValue{" +
                "value=" + Arrays.toString(value) +
                ", subValue=" + Arrays.toString(subValue) +
                '}';
    }
}
<commit_msg>Format<commit_after>package pl.grzeslowski.jsupla.protocol.structs;

import pl.grzeslowski.jsupla.protocol.Proto;

import java.util.Arrays;

import static pl.grzeslowski.jsupla.protocol.ProtoPreconditions.checkArrayLength;
import static pl.grzeslowski.jsupla.protocol.consts.ProtoConsts.SUPLA_CHANNELVALUE_SIZE;

public final class TSuplaChannelValue implements Proto {
    /**
     * unsigned.
     */
    public final byte[] value;
    /**
     * For example sensor value.
     * <p>
     * unsigned
     */
    public final byte[] subValue;

    public TSuplaChannelValue(byte[] value, byte[] subValue) {
        this.value = checkArrayLength(value, SUPLA_CHANNELVALUE_SIZE);
        this.subValue = checkArrayLength(subValue, SUPLA_CHANNELVALUE_SIZE);
    }

    @Override
    public int size() {
        return SUPLA_CHANNELVALUE_SIZE + SUPLA_CHANNELVALUE_SIZE;
    }

    @Override
    public String toString() {
        return "TSuplaChannelValue{" +
                "value=" + Arrays.toString(value) +
                ", subValue=" + Arrays.toString(subValue) +
                '}';
    }
}

{'fraction_non_alphanumeric': 0.10181818181818182, 'fraction_numerical': 0.0, 'mean_word_length': 2.895575221238938, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7593946', 'n_tokens_mistral': 700, 'n_tokens_neox': 681, 'n_words': 121}