<commit_before>package helloworld;

import java.util.function.Consumer;

import org.requirementsascode.AbstractActor;
import org.requirementsascode.Model;

import helloworld.command.EnterText;

public class HelloWorld03 {
  public static void main(String[] args) {
    HelloWorldActor03 actor = new HelloWorldActor03(HelloWorld03::greetUser);
    actor.reactTo(new EnterText("<NAME>"));
  }

  private static void greetUser(EnterText enterText) {
    System.out.println("Hello, " + enterText.text + ".");
  }
}

class HelloWorldActor03 extends AbstractActor {
  private final Class<EnterText> entersName = EnterText.class;
  private final Consumer<EnterText> greetsUser;

  public HelloWorldActor03(Consumer<EnterText> greetsUser) {
    this.greetsUser = greetsUser;
  }

  @Override<commit_msg>Clean design for HelloWorld03<commit_after>package helloworld;

import java.util.function.Consumer;

import org.requirementsascode.AbstractActor;
import org.requirementsascode.Model;

import helloworld.command.EnterText;
import helloworld.commandhandler.GreetUser;

public class HelloWorld03 {
  public static void main(String[] args) {
    HelloWorldActor03 actor = new HelloWorldActor03(new GreetUser());
    actor.reactTo(new EnterText("<NAME>"));
  }
}

class HelloWorldActor03 extends AbstractActor {
  private final Class<EnterText> entersName = EnterText.class;
  private final Consumer<EnterText> greetsUser;

  public HelloWorldActor03(Consumer<EnterText> greetsUser) {
    this.greetsUser = greetsUser;
  }

  @Override
{'fraction_non_alphanumeric': 0.09251968503937008, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 5.6593886462882095, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5714388', 'n_tokens_mistral': 470, 'n_tokens_neox': 449, 'n_words': 98}