<commit_before>(function () {
    'use strict';

    /**
     * @param Base
     * @param {ChartFactory} ChartFactory
     * @param {JQuery} $element
     * @return {Chart}
     */
    const controller = function (Base, ChartFactory, $element) {

        class Chart extends Base {

            $postLink() {
                this.chart = new ChartFactory($element, this.options, this.data);
                this.signals = Object.assign(Object.create(null), this.chart.signals, this.signals);
                this.observe('data', this._updateData);
                this.observe('options', this._updateOptions);

                this.receive(this.chart.signals.mouseMove, this._onMove, this);
                this.receive(this.chart.signals.mouseLeave, this._onLeave, this);
            }

            _updateData() {
                this.chart.setData(this.data);
            }

            _updateOptions() {
                this.chart.setOptions(this.options);
            }

            _onMove(chartData) {
                this.mouseMove({ chartData });
            }

            _onLeave(event) {
                this.mouseLeave({ event });
            }

            $onDestroy() {
                super.$onDestroy();
                $element.off();
            }

        }

        return new Chart();
    };
<commit_msg>DEXW-1931: remove wrong method<commit_after>(function () {
    'use strict';

    /**
     * @param Base
     * @param {ChartFactory} ChartFactory
     * @param {JQuery} $element
     * @return {Chart}
     */
    const controller = function (Base, ChartFactory, $element) {

        class Chart extends Base {

            $postLink() {
                this.chart = new ChartFactory($element, this.options, this.data);
                this.signals = Object.assign(Object.create(null), this.chart.signals, this.signals);
                this.observe('data', this._updateData);
                this.observe('options', this._updateOptions);

                this.receive(this.chart.signals.mouseMove, this._onMove, this);
                this.receive(this.chart.signals.mouseLeave, this._onLeave, this);
            }

            _updateData() {
                this.chart.setData(this.data);
            }

            _updateOptions() {
                this.chart.setOptions(this.options);
            }

            _onMove(chartData) {
                this.mouseMove({ chartData });
            }

            _onLeave(event) {
                this.mouseLeave({ event });
            }

        }

        return new Chart();
    };

{'fraction_non_alphanumeric': 0.12280701754385964, 'fraction_numerical': 0.0015594541910331384, 'mean_word_length': 1.5380811078140455, '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': '6706883', 'n_tokens_mistral': 718, 'n_tokens_neox': 668, 'n_words': 118}