<commit_before>import {message} from "antd";
import {Listener} from "framework/listener";
import {module} from "framework/module";

class ListenerImpl implements Listener {
    * onError(error: any) {
        message.error(error.message, 5);
    }
}

export default module("error", {}, null, null, new ListenerImpl());<commit_msg>make error module not depends on framework internal<commit_after>import {message} from "antd";
import {Listener, module} from "framework";

class ListenerImpl implements Listener {
    * onError(error: any) {
        message.error(error.message, 5);
    }
}

export default module("error", {}, null, null, new ListenerImpl());
{'fraction_non_alphanumeric': 0.13414634146341464, 'fraction_numerical': 0.003048780487804878, 'mean_word_length': 4.918918918918919, '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': '7050378', 'n_tokens_mistral': 189, 'n_tokens_neox': 186, 'n_words': 57}