<commit_before>package simulation;

import network.Link;

public abstract class EventHandler {

    void onBeforeSimulate() {
        // by default do nothing
    }

    void onAfterSimulate() {
        // by default do nothing
    }

    void onBeforeLearn(Link link, Route exportedRoute) {
        // by default do nothing
    }

    void onAfterLearn(Link link, Route exportedRoute, Route learnedRoute) {
        // by default do nothing
    }

    void onBeforeSelect(NodeStateInfo nodeStateInfo, Link link, Route exportedRoute, Route learnedRoute,
                        Attribute prevSelectedAttribute, PathAttribute prevSelectedPath) {
        // by default do nothing
    }
    void onAfterSelect(NodeStateInfo nodeStateInfo, Link link, Route exportedRoute, Route learnedRoute,
                       Attribute prevSelectedAttribute, PathAttribute prevSelectedPath, Route selectedRoute) {
        // by default do nothing
    }

    void onBeforeExport(Link link, Route route, ScheduledRoute prevScheduledRoute) {
        // by default do nothing
    }

    void onAfterExport(Link link, Route route, ScheduledRoute prevScheduledRoute, ScheduledRoute scheduledRoute) {
        // by default do nothing
    }
}<commit_msg>made the event methods all public<commit_after>package simulation;

import network.Link;

public abstract class EventHandler {

    public void onBeforeSimulate() {
        // by default do nothing
    }

    public void onAfterSimulate() {
        // by default do nothing
    }

    public void onBeforeLearn(Link link, Route exportedRoute) {
        // by default do nothing
    }

    public void onAfterLearn(Link link, Route exportedRoute, Route learnedRoute) {
        // by default do nothing
    }

   public  void onBeforeSelect(NodeStateInfo nodeStateInfo, Link link, Route exportedRoute, Route learnedRoute,
                        Attribute prevSelectedAttribute, PathAttribute prevSelectedPath) {
        // by default do nothing
    }
   public  void onAfterSelect(NodeStateInfo nodeStateInfo, Link link, Route exportedRoute, Route learnedRoute,
                       Attribute prevSelectedAttribute, PathAttribute prevSelectedPath, Route selectedRoute) {
        // by default do nothing
    }

    public void onBeforeExport(Link link, Route route, ScheduledRoute prevScheduledRoute) {
        // by default do nothing
    }

    public void onAfterExport(Link link, Route route, ScheduledRoute prevScheduledRoute,
                              ScheduledRoute scheduledRoute) {
        // by default do nothing
    }
}
{'fraction_non_alphanumeric': 0.05845674201091192, 'fraction_numerical': 0.0, 'mean_word_length': 2.6882183908045976, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5503999', 'n_tokens_mistral': 637, 'n_tokens_neox': 601, 'n_words': 213}