<commit_before>package com.easternedgerobotics.rov.event.io;

import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.FastInput;
import com.esotericsoftware.kryo.io.FastOutput;
import com.esotericsoftware.kryo.io.Output;

/**
 * The KryoSerializer class serializes and deserializes Java objects
 * using <a href="https://github.com/EsotericSoftware/kryo">Kryo</a>.
 * <p>
 * This class is not thread safe because Kryo is not thread safe.
 */
public class KryoSerializer implements Serializer {
    /**
     * The Kryo instance
     */
    private final Kryo kryo;

    public KryoSerializer() {
        kryo = new Kryo();
    }

    @Override
    public byte[] serialize(final Object value) {
        final Output output = new FastOutput(16, 1024);
        kryo.writeClassAndObject(output, value);
        return output.toBytes();
    }

    @Override<commit_msg>Fix Javadoc first sentence ending with a period<commit_after>package com.easternedgerobotics.rov.event.io;

import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.FastInput;
import com.esotericsoftware.kryo.io.FastOutput;
import com.esotericsoftware.kryo.io.Output;

/**
 * The KryoSerializer class serializes and deserializes Java objects
 * using <a href="https://github.com/EsotericSoftware/kryo">Kryo</a>.
 * <p>
 * This class is not thread safe because Kryo is not thread safe.
 */
public class KryoSerializer implements Serializer {
    /**
     * The Kryo instance.
     */
    private final Kryo kryo;

    public KryoSerializer() {
        kryo = new Kryo();
    }

    @Override
    public byte[] serialize(final Object value) {
        final Output output = new FastOutput(16, 1024);
        kryo.writeClassAndObject(output, value);
        return output.toBytes();
    }

    @Override
{'fraction_non_alphanumeric': 0.1028349082823791, 'fraction_numerical': 0.006670372429127293, 'mean_word_length': 3.4009779951100243, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '5397282', 'n_tokens_mistral': 612, 'n_tokens_neox': 582, 'n_words': 142}