<commit_before>package io.flowing.retail.concept.domain;

import java.util.Map;

import io.flowing.retail.concept.infrastructure.Bus;
import io.flowing.retail.concept.infrastructure.BusObserver;
import io.flowing.retail.concept.infrastructure.Event;

public class Payment implements BusObserver {

  public static void init() {
    Bus.register(new Payment());
  }

  public void eventReceived(Event event) {
    if (event.is("OrderPlaced")) {
      retrievePayment(event.getPayload());
    } // otherwise we do not care here
  }

  public void retrievePayment(Map<String, Object> payload) {
    System.out.println("retrieve payment");
    Bus.send(new Event("PaymentReceived", payload));
  }

}<commit_msg>simplified code<commit_after>package io.flowing.retail.concept.domain;

import java.util.Map;

import io.flowing.retail.concept.infrastructure.Bus;
import io.flowing.retail.concept.infrastructure.BusObserver;
import io.flowing.retail.concept.infrastructure.Event;

public class Payment implements BusObserver {

  public static void init() {
    Bus.register(new Payment());
  }

  public void eventReceived(Event event) {
    if (event.is("OrderPlaced")) {
      retrievePayment(event.getPayload());
    }
  }

  public void retrievePayment(Map<String, Object> payload) {
    System.out.println("retrieve payment");
    Bus.send(new Event("PaymentReceived", payload));
  }

}
{'fraction_non_alphanumeric': 0.12147505422993492, 'fraction_numerical': 0.0, 'mean_word_length': 4.5582329317269075, 'pattern_counts': {'":': 0, '<': 5, '<?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': '135612', 'n_tokens_mistral': 425, 'n_tokens_neox': 410, 'n_words': 83}