<commit_before>import React, {Component} from "react";
import {connect} from "react-redux";
import {Footer, Header} from "components";
import PropTypes from "prop-types";
import GApp from "grommet/components/App";

class App extends Component {
    constructor(props) {
        super(props)
    }

    static propTypes = {
        children: PropTypes.node.isRequired,
        location: PropTypes.object,
        handleWindowResize: PropTypes.func,

        router: PropTypes.object,
        isMobile: PropTypes.bool,
    }


    componentWillMount() {
        let {handleWindowResize} = this.props
        window.addEventListener('resize', handleWindowResize)
    }


    render() {
        let {
            children,
            // APP

        } = this.props;


        return (
            <div>
                <Header/>
                <GApp style={{marginBottom: '50px'}}>
                    <div style={{marginTop: '20px'}}>
                        { children}
                    </div>
                </GApp>
                <Footer/>
            </div>
        )
    }
}

function mapStateToProps(state) {
    return {}
}

function mapDispatchToProps(dispatch) {


}

export default connect(mapStateToProps, mapDispatchToProps)(App)<commit_msg>fix redux state dispatch not retuning anything<commit_after>import React, {Component} from "react";
import {connect} from "react-redux";
import {Footer, Header} from "components";
import PropTypes from "prop-types";
import GApp from "grommet/components/App";

class App extends Component {
    constructor(props) {
        super(props)
    }

    static propTypes = {
        children: PropTypes.node.isRequired,
        location: PropTypes.object,
        handleWindowResize: PropTypes.func,

        router: PropTypes.object,
        isMobile: PropTypes.bool,
    }


    componentWillMount() {
        let {handleWindowResize} = this.props
        window.addEventListener('resize', handleWindowResize)
    }


    render() {
        let {
            children,
            // APP

        } = this.props;


        return (
            <div>
                <Header/>
                <GApp style={{marginBottom: '50px'}}>
                    <div style={{marginTop: '20px'}}>
                        { children}
                    </div>
                </GApp>
                <Footer/>
            </div>
        )
    }
}

function mapStateToProps(state) {
    return {}
}

function mapDispatchToProps(dispatch) {
    return {}

}

export default connect(mapStateToProps, mapDispatchToProps)(App)
{'fraction_non_alphanumeric': 0.109375, 'fraction_numerical': 0.003125, 'mean_word_length': 1.8710762331838564, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4098860', 'n_tokens_mistral': 716, 'n_tokens_neox': 697, 'n_words': 154}