<commit_before>package rx.broadcast;

import org.jetbrains.annotations.NotNull;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.nio.ByteBuffer;

public final class Sender implements Externalizable, Comparable<Sender> {
    private static final long serialVersionUID = 114L;

    private ByteBuffer bytes;

    @Deprecated
    public Sender() {
        // This method should not be used
    }

    Sender(final byte[] bytes) {
        this.bytes = ByteBuffer.wrap(bytes);
    }

    @Override
    public final boolean equals(final Object o) {
        return this == o || !(o == null || getClass() != o.getClass()) && bytes.equals(((Sender) o).bytes);
    }

    @Override
    public final int hashCode() {
        return bytes.hashCode();
    }

    @Override
    public int compareTo(@NotNull final Sender o) {
        return bytes.compareTo(o.bytes);
    }

    @Override
    public String toString() {
        return "Sender{" + "id=" + bytes + '}';
    }

    @Override
    public void writeExternal(final ObjectOutput out) throws IOException {
        final byte[] bytes = this.bytes.array();
        out.writeInt(bytes.length);
        out.write(bytes);
    }

    @Override
    public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {
        final int bufferSize = in.readInt();
        final byte[] bytes = new byte[bufferSize];
        final int readSize = in.read(bytes);
        if (readSize != bufferSize) {
            throw new IllegalStateException(
                "The given ObjectInput does not contain the correct number of bytes for this Sender instance");
        }

        this.bytes = ByteBuffer.wrap(bytes);
    }
}<commit_msg>Unimplement Externalizable in Sender<commit_after>package rx.broadcast;

import org.jetbrains.annotations.NotNull;

import java.io.Serializable;
import java.nio.ByteBuffer;

public final class Sender implements Serializable, Comparable<Sender> {
    private static final long serialVersionUID = 114L;

    private ByteBuffer bytes;

    Sender(final byte[] bytes) {
        this.bytes = ByteBuffer.wrap(bytes);
    }

    @Override
    public final boolean equals(final Object o) {
        return this == o || !(o == null || getClass() != o.getClass()) && bytes.equals(((Sender) o).bytes);
    }

    @Override
    public final int hashCode() {
        return bytes.hashCode();
    }

    @Override
    public int compareTo(@NotNull final Sender o) {
        return bytes.compareTo(o.bytes);
    }

    @Override
    public String toString() {
        return "Sender{" + "id=" + bytes + '}';
    }
}
{'fraction_non_alphanumeric': 0.10911136107986502, 'fraction_numerical': 0.0022497187851518562, 'mean_word_length': 2.8114285714285714, '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': '6068528', 'n_tokens_mistral': 754, 'n_tokens_neox': 729, 'n_words': 215}