<commit_before># actorx-java
An actor-model based communication library(Java version)

Usage
--------

Just import to eclipse.

Example
--------

```java
import actorx.Actor;
import actorx.ActorId;
import actorx.AlreadyQuitedException;
import actorx.Context;
import actorx.LinkType;
import actorx.Message;
import actorx.MessageType;
import actorx.AbstractHandler;

public class Example {
	public void test() throws AlreadyQuitedException {
		Context ctx = Context.getInstance();
		ctx.startup();
	
		Actor base = ctx.spawn();
		ActorId aid = ctx.spawn(base, new AbstractHandler() {
			@Override
			public void run(Actor self) throws AlreadyQuitedException {
				ActorId sender = null;
				while (true){
					Message msg = self.match("init").recv(3000);
					if (msg != null){
						sender = msg.getSender();
						String str = msg.get(String.class, 0);
						if (str.equals("end")){
							System.out.println("Recv<"+str+">");
							break;
						}
					}
				}
				self.send(sender, "ok", "Hi!");
			}
		}, 
		LinkType.MONITORED
		);
		
		for (int i=0; i<100; ++i){
			base.send(aid, "init", "Hello World!");
		}
		base.send(aid, "init", "end");
		Message msg = base.match("ok").recv();
		assert(msg.getSender().equals(aid));
		String reply = msg.get(String.class, 0);
		assert(reply.equals("Hi!"));
		
		msg = base.match(MessageType.EXIT).recv();
		assert(msg.getSender().equals(aid));
		
		ctx.join();
		
		System.out.println("done.");
	}
}
```<commit_msg>fix README.md<commit_after># actorx-java
An actor-model based communication library(Java version)

Usage
--------

Just import to eclipse.

Example
--------

```java
import actorx.Actor;
import actorx.ActorId;
import actorx.AlreadyQuitedException;
import actorx.Context;
import actorx.LinkType;
import actorx.Message;
import actorx.MessageType;
import actorx.AbstractHandler;

public class Example {
	public void test() throws AlreadyQuitedException {
		Context ctx = Context.getInstance();
		ctx.startup();
	
		Actor base = ctx.spawn();
		ActorId aid = ctx.spawn(base, new AbstractHandler() {
			@Override
			public void run(Actor self) throws AlreadyQuitedException {
				ActorId sender = null;
				while (true){
					Message msg = self.match("init").recv(3000);
					if (msg != null){
						sender = msg.getSender();
						String str = msg.get(0);
						if (str.equals("end")){
							System.out.println("Recv<"+str+">");
							break;
						}
					}
				}
				self.send(sender, "ok", "Hi!");
			}
		}, 
		LinkType.MONITORED
		);
		
		for (int i=0; i<100; ++i){
			base.send(aid, "init", "Hello World!");
		}
		base.send(aid, "init", "end");
		Message msg = base.match("ok").recv();
		assert(msg.getSender().equals(aid));
		String reply = msg.get(0);
		assert(reply.equals("Hi!"));
		
		msg = base.match(MessageType.EXIT).recv();
		assert(msg.getSender().equals(aid));
		
		ctx.join();
		
		System.out.println("done.");
	}
}
```
{'fraction_non_alphanumeric': 0.17058823529411765, 'fraction_numerical': 0.006920415224913495, 'mean_word_length': 3.3473684210526318, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3645315', 'n_tokens_mistral': 1163, 'n_tokens_neox': 948, 'n_words': 217}