<commit_before><?php
class Kwc_Newsletter_Subscribe_MailEditable_Events extends Kwc_Abstract_Events
{
    public function getListeners()
    {
        $ret = parent::getListeners();
        $ret[] = array(
            'class' => 'Kwc_Newsletter_Subscribe_MailEditable_Content_Component',
            'event' => 'Kwf_Component_Event_Component_HasContentChanged',
            'callback' => 'onContentChanged'
        );
        return $ret;
    }

    public function onContentChanged(Kwf_Component_Event_Component_HasContentChanged $event)
    {
        $this->fireEvent(
            new Kwf_Component_Event_Component_ContentChanged($this->_class, $event->component->parent)
        );
    }
}<commit_msg>Listen to whatever class is set as the content<commit_after><?php
class Kwc_Newsletter_Subscribe_MailEditable_Events extends Kwc_Abstract_Events
{
    public function getListeners()
    {
        $ret = parent::getListeners();
        $ret[] = array(
            'class' => Kwc_Abstract::getChildComponentClass($this->_class, 'content'),
            'event' => 'Kwf_Component_Event_Component_HasContentChanged',
            'callback' => 'onContentChanged'
        );
        return $ret;
    }

    public function onContentChanged(Kwf_Component_Event_Component_HasContentChanged $event)
    {
        $this->fireEvent(
            new Kwf_Component_Event_Component_ContentChanged($this->_class, $event->component->parent)
        );
    }
}
{'fraction_non_alphanumeric': 0.10096818810511757, 'fraction_numerical': 0.0, 'mean_word_length': 3.2434017595307916, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '4797', 'n_tokens_mistral': 410, 'n_tokens_neox': 403, 'n_words': 65}