<commit_before>package nanomsg;

public class Message {
    private bytes[] messageData;

    public Message(String data) {
        messageData = data.getBytes(Charset.forName("UTF-8"));
    }

    public Message(bytes[] data) {
        messageData = data;
    }

    public String toString() {
        return new String(messageData, Charset.forName("UTF-8"));
    }

    public String toString(String encoding) {
        return new String(messageData, Charset.forName(encoding));
    }

    public String toString(Charset encoding) {
        return new String(messageData, encoding);
    }

    public bytes[] toBytes() {<commit_msg>Fix Charset import and bytes->byte typo fix on Message class.<commit_after>package nanomsg;
import java.nio.charset.Charset;

public class Message {
    private byte[] messageData;

    public Message(String data) {
        messageData = data.getBytes(Charset.forName("UTF-8"));
    }

    public Message(byte[] data) {
        messageData = data;
    }

    public String toString() {
        return new String(messageData, Charset.forName("UTF-8"));
    }

    public String toString(String encoding) {
        return new String(messageData, Charset.forName(encoding));
    }

    public String toString(Charset encoding) {
        return new String(messageData, encoding);
    }

    public byte[] toBytes() {
{'fraction_non_alphanumeric': 0.10772659732540862, 'fraction_numerical': 0.0029717682020802376, 'mean_word_length': 3.045045045045045, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6318856', 'n_tokens_mistral': 382, 'n_tokens_neox': 379, 'n_words': 99}