<commit_before>package org.ethereum.net.message;

import org.ethereum.config.SystemProperties;
import org.ethereum.crypto.HashUtil;
import org.spongycastle.util.encoders.Hex;

/**
 * www.ethereumJ.com
 * @author: <NAME>
 * Created on: 13/04/14 20:19
 */
public class StaticMessages {

    public final static GetTransactionsMessage
            GET_TRANSACTIONS_MESSAGE = new GetTransactionsMessage();
    public final static GetPeersMessage GET_PEERS_MESSAGE        = new GetPeersMessage();
    public final static PingMessage     PING_MESSAGE             = new PingMessage();
    public final static PongMessage     PONG_MESSAGE             = new PongMessage();


    public static final byte[] PING             = Hex.decode("2240089100000002C102");
    public static final byte[] PONG             = Hex.decode("2240089100000002C103");
    public static final byte[] GET_PEERS        = Hex.decode("2240089100000002C110");
    public static final byte[] GET_TRANSACTIONS = Hex.decode("2240089100000002C116");

    public static final byte[] DISCONNECT_08 = Hex.decode("2240089100000003C20108");

    public static final byte[] MAGIC_PACKET = Hex.decode("22400891");

    static {
        HELLO_MESSAGE = generateHelloMessage();
    }
    public static HelloMessage HELLO_MESSAGE;
    public static HelloMessage generateHelloMessage() {
        byte[] peerIdBytes = HashUtil.randomPeerId();

        String version = SystemProperties.CONFIG.projectVersion();
        String system = System.getProperty("os.name");
		if (system.contains(" "))
			system = system.substring(0, system.indexOf(" "));
        if (System.getProperty("java.vm.vendor").contains("Android")) 
        	system = "Android";

        String phrase = SystemProperties.CONFIG.helloPhrase();

        String helloAnnouncement = String.format("Ethereum(J)/v%s/%s/%s/Java", version, phrase, system);

        return new HelloMessage((byte) 0x17, (byte) 0x00,
                helloAnnouncement, Byte.parseByte("00000111", 2),
                (short) 30303, peerIdBytes);
    }
}<commit_msg>Update to protocol version 33<commit_after>package org.ethereum.net.message;

import org.ethereum.config.SystemProperties;
import org.ethereum.crypto.HashUtil;
import org.spongycastle.util.encoders.Hex;

/**
 * www.ethereumJ.com
 * @author: <NAME>
 * Created on: 13/04/14 20:19
 */
public class StaticMessages {

    public final static GetTransactionsMessage
            GET_TRANSACTIONS_MESSAGE = new GetTransactionsMessage();
    public final static GetPeersMessage GET_PEERS_MESSAGE        = new GetPeersMessage();
    public final static PingMessage     PING_MESSAGE             = new PingMessage();
    public final static PongMessage     PONG_MESSAGE             = new PongMessage();


    public static final byte[] PING             = Hex.decode("2240089100000002C102");
    public static final byte[] PONG             = Hex.decode("2240089100000002C103");
    public static final byte[] GET_PEERS        = Hex.decode("2240089100000002C110");
    public static final byte[] GET_TRANSACTIONS = Hex.decode("2240089100000002C116");

    public static final byte[] DISCONNECT_08 = Hex.decode("2240089100000003C20108");

    public static final byte[] MAGIC_PACKET = Hex.decode("22400891");

    static {
        HELLO_MESSAGE = generateHelloMessage();
    }
    public static HelloMessage HELLO_MESSAGE;
    public static HelloMessage generateHelloMessage() {
        byte[] peerIdBytes = HashUtil.randomPeerId();

        String version = SystemProperties.CONFIG.projectVersion();
        String system = System.getProperty("os.name");
		if (system.contains(" "))
			system = system.substring(0, system.indexOf(" "));
        if (System.getProperty("java.vm.vendor").contains("Android")) 
        	system = "Android";

        String phrase = SystemProperties.CONFIG.helloPhrase();

        String helloAnnouncement = String.format("Ethereum(J)/v%s/%s/%s/Java", version, phrase, system);

        return new HelloMessage((byte) 0x21, (byte) 0x00,
                helloAnnouncement, Byte.parseByte("00000111", 2),
                (short) 30303, peerIdBytes);
    }
}
{'fraction_non_alphanumeric': 0.1081474296799224, 'fraction_numerical': 0.06741028128031037, 'mean_word_length': 3.310344827586207, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 10, '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': '6347988', 'n_tokens_mistral': 1397, 'n_tokens_neox': 1149, 'n_words': 268}