<commit_before>/*
 * Copyright (c) 2015, <NAME>
 */
package actor4j.benchmark.ring.quadruple;

import java.util.UUID;

import actor4j.benchmark.Benchmark;
import actor4j.core.ActorSystem;
import actor4j.core.classic.ClassicActorSystemImpl;
import actor4j.core.messages.ActorMessage;
import actor4j.core.utils.ActorGroup;

public class TestQuadrupleRing {
	public TestQuadrupleRing() {
		ActorSystem system = new ActorSystem();
		system.setParallelismMin(1);
		system.setParallelismFactor(1);
		system.softMode();
		
		for (int j=0; j<4; j++) {
			ActorGroup group = new ActorGroup();
			
			UUID next = system.addActor(Forwarder.class, group);
			int size = 100;
			for(int i=0; i<size-2; i++) {
				next = system.addActor(Forwarder.class, group, next);
				group.add(next); // TODO temporary
			}
			UUID sender = system.addActor(Sender.class, group, next);
			group.add(sender); // TODO temporary
		
			system.send(new ActorMessage<>(new Object(), 0, sender, sender));
		}
		
		Benchmark benchmark = new Benchmark(system, 60000);
		benchmark.start();
	}
	
	public static void main(String[] args) {
		new TestQuadrupleRing();
	}
}<commit_msg>Bugfix<commit_after>/*
 * Copyright (c) 2015, <NAME>
 */
package actor4j.benchmark.ring.quadruple;

import java.util.UUID;

import actor4j.benchmark.Benchmark;
import actor4j.core.ActorSystem;
import actor4j.core.classic.ClassicActorSystemImpl;
import actor4j.core.messages.ActorMessage;
import actor4j.core.utils.ActorGroup;

public class TestQuadrupleRing {
	public TestQuadrupleRing() {
		ActorSystem system = new ActorSystem();
		//system.setParallelismMin(1);
		system.setParallelismFactor(1);
		system.softMode();
		
		for (int j=0; j<4; j++) {
			ActorGroup group = new ActorGroup();
			
			UUID next = system.addActor(Forwarder.class, group);
			group.add(next); // TODO temporary
			int size = 100;
			for(int i=0; i<size-2; i++) {
				next = system.addActor(Forwarder.class, group, next);
				group.add(next); // TODO temporary
			}
			UUID sender = system.addActor(Sender.class, group, next);
			group.add(sender); // TODO temporary
		
			system.send(new ActorMessage<>(new Object(), 0, sender, sender));
		}
		
		Benchmark benchmark = new Benchmark(system, 60000);
		benchmark.start();
	}
	
	public static void main(String[] args) {
		new TestQuadrupleRing();
	}
}
{'fraction_non_alphanumeric': 0.13540319103061665, 'fraction_numerical': 0.0215610176800345, 'mean_word_length': 4.190156599552573, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '1698962', 'n_tokens_mistral': 907, 'n_tokens_neox': 780, 'n_words': 173}