<commit_before>'use strict';

import React from 'react';
import ReactDOM from 'react-dom';

class Flyout extends React.Component {
    constructor(props) {
        super(props);

        this.body = document.querySelector('body');
        this.mutation = null;
        this.mediaQueries = this._getMediaQueries();
        this.classes = {
            trigger: 'flyout__trigger--active',
            body: 'has-flyout--fixed'
        }

        // binds
        this._sizeHandler = this._sizeHandler.bind(this);
    }

    componentDidMount() {
        // console.info('flyout - componentDidMount');
        this._resizeEventAdd();
        this._triggerClassSet();
        this._scrollPositionSave();
        this._setMaxHeight();
        this._setAlignment();
        this._mutationObserve();
        this._sizeHandler();
    }

    componentDidUpdate() {
        // console.info('flyout - componentDidUpdate');<commit_msg>mutation observer now being instanciated after the execution of the (re)size handler<commit_after>'use strict';

import React from 'react';
import ReactDOM from 'react-dom';

class Flyout extends React.Component {
    constructor(props) {
        super(props);

        this.body = document.querySelector('body');
        this.mutation = null;
        this.mediaQueries = this._getMediaQueries();
        this.classes = {
            trigger: 'flyout__trigger--active',
            body: 'has-flyout--fixed'
        }

        // binds
        this._sizeHandler = this._sizeHandler.bind(this);
    }

    componentDidMount() {
        // console.info('flyout - componentDidMount');
        this._resizeEventAdd();
        this._triggerClassSet();
        this._scrollPositionSave();
        this._setMaxHeight();
        this._setAlignment();
        this._sizeHandler();
        this._mutationObserve();
    }

    componentDidUpdate() {
        // console.info('flyout - componentDidUpdate');
{'fraction_non_alphanumeric': 0.12310902451747523, 'fraction_numerical': 0.0, 'mean_word_length': 2.364912280701754, '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': '4960494', 'n_tokens_mistral': 518, 'n_tokens_neox': 509, 'n_words': 96}