<commit_before>package android.nimpres.client.lan;
/*This class provides static methods for manipulating messages*/
import java.io.*;

public class Message {


    public static void sendMessage(DataOutputStream out,String type,byte[] data){
        try{
            int messageLength = type.length() + data.length + "#$".length(); //Record total length of message including type,data,and control characters
            out.writeInt(messageLength); //Send over the length first
            String messageHead = "#"+type+"$";
            out.write(messageHead.getBytes()); //Send the type
            out.write(data); //Send the data
            out.flush();
        }catch(Exception e){
            System.out.println("error"+e.getMessage());<commit_msg>Modified Message class<commit_after>package android.nimpres.client.lan;

import java.io.DataInputStream;
import java.io.DataOutputStream;
/*This class provides static methods for manipulating messages*/


public class Message {


    public static void sendMessage(DataOutputStream out,String type,byte[] data){
        try{
            int messageLength = type.length() + data.length + "#$".length(); //Record total length of message including type,data,and control characters
            out.writeInt(messageLength); //Send over the length first
            String messageHead = "#"+type+"$";
            out.write(messageHead.getBytes()); //Send the type
            out.write(data); //Send the data
            out.flush();
        }catch(Exception e){
            System.out.println("error"+e.getMessage());
{'fraction_non_alphanumeric': 0.12005108556832694, 'fraction_numerical': 0.0, 'mean_word_length': 2.927318295739348, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3096218', 'n_tokens_mistral': 389, 'n_tokens_neox': 383, 'n_words': 119}