<commit_before># hydrogen-java

Java based Hydrogen client

## Usage

~~~java

public class Main implements IHydrogen
{
	public static void main(String [] args)	{
		Client client = new Client(hydrogenImplementor);

        // Connect to host
        try {
            client.connectToHost("127.0.0.1", 1337);
        } catch (Exception e) {
            e.printStackTrace();
        }

        // Some buffer
        Vector<Byte> buffer = new Vector<>();
        buffer.add((byte)'p');
        buffer.add((byte)'i');
        buffer.add((byte)'n');
        buffer.add((byte)'g');

        // Send a thing
        client.write(buffer);

        // Disconnect from host
        client.disconnect();
	}

    public static IHydrogen hydrogenImplementor = new IHydrogen() {
        public void onConnected() {
            // Called when the client connects
        }

        public void onDisconnected() {
            // Called when the client has been disconnected
        }

        public void onError(Exception e) {
            // Called when an error has occured
        }

        public void onDataReceived(Vector<Byte> buffer) {
            // Called when data has been received from host
        }
    };
}
~~~

## Author

<NAME>, <EMAIL>

## License

hydrogen-objc is available under the MPL-2.0 license. See the LICENSE file for more info.
<commit_msg>Copy/paste error<commit_after># hydrogen-java

Java based Hydrogen client

## Usage

~~~java

public class Main implements IHydrogen
{
	public static void main(String [] args)	{
		Client client = new Client(hydrogenImplementor);

        // Connect to host
        try {
            client.connectToHost("127.0.0.1", 1337);
        } catch (Exception e) {
            e.printStackTrace();
        }

        // Some buffer
        Vector<Byte> buffer = new Vector<>();
        buffer.add((byte)'p');
        buffer.add((byte)'i');
        buffer.add((byte)'n');
        buffer.add((byte)'g');

        // Send a thing
        client.write(buffer);

        // Disconnect from host
        client.disconnect();
	}

    public static IHydrogen hydrogenImplementor = new IHydrogen() {
        public void onConnected() {
            // Called when the client connects
        }

        public void onDisconnected() {
            // Called when the client has been disconnected
        }

        public void onError(Exception e) {
            // Called when an error has occured
        }

        public void onDataReceived(Vector<Byte> buffer) {
            // Called when data has been received from host
        }
    };
}
~~~

## Author

<NAME>, <EMAIL>

## License

hydrogen-java is available under the MPL-2.0 license. See the LICENSE file for more info.

{'fraction_non_alphanumeric': 0.10857563489142437, 'fraction_numerical': 0.008833271991166729, 'mean_word_length': 1.9640130861504908, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2572492', 'n_tokens_mistral': 790, 'n_tokens_neox': 726, 'n_words': 229}