<commit_before>var Footer = require('./Footer.jsx');
var NavBar = require('./NavBar.jsx');
var React = require('react');
var MapData = new require('./MapData.js');

var mapData = new MapData(22,22);
module.exports = React.createClass({
    
    getInitialState: function() {

        //Set the initial authentication state
        return {isAuthenticated: false};
    },
    onKeyDown: function(event) {
        let moved = false;
        if (event.keycode === 38) {
            moved = mapData.up();
        } else if (event.keycode === 37) {
            moved = mapData.left();
        } else if (event.keycode === 40) {
            moved = mapData.down();
        } else if (event.keycode === 39) {
            moved = mapData.right();
        }
        forceUpdate();
    },
    render: function() {
        var childrenWithProps = React.cloneElement(this.props.children, {mapData: mapData});
        return (
            /* jshint ignore:start */
            <div className="container-fluid">
                <NavBar/>
                {childrenWithProps}
                <Footer/>
            </div>
            /* jshint ignore:end */
        );
    },
    componentWillMount: function() {
        //Should de-register too, but the only component of the demo. Will never unmount
        document.addEventListener("keyDown", this.onKeyDown, false);
    }
});
<commit_msg>Capitalization?<commit_after>var Footer = require('./Footer.jsx');
var NavBar = require('./NavBar.jsx');
var React = require('react');
var MapData = new require('./MapData.js');

var mapData = new MapData(22,22);
module.exports = React.createClass({
    
    getInitialState: function() {

        //Set the initial authentication state
        return {isAuthenticated: false};
    },
    onKeyDown: function(event) {
        let moved = false;
        if (event.keycode === 38) {
            moved = mapData.up();
        } else if (event.keycode === 37) {
            moved = mapData.left();
        } else if (event.keycode === 40) {
            moved = mapData.down();
        } else if (event.keycode === 39) {
            moved = mapData.right();
        }
        forceUpdate();
    },
    render: function() {
        var childrenWithProps = React.cloneElement(this.props.children, {mapData: mapData});
        return (
            /* jshint ignore:start */
            <div className="container-fluid">
                <NavBar/>
                {childrenWithProps}
                <Footer/>
            </div>
            /* jshint ignore:end */
        );
    },
    componentWillMount: function() {
        //Should de-register too, but the only component of the demo. Will never unmount
        document.addEventListener("keydown", this.onKeyDown, false);
    }
});

{'fraction_non_alphanumeric': 0.1383442265795207, 'fraction_numerical': 0.008714596949891068, 'mean_word_length': 1.9528403001071812, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5752663', 'n_tokens_mistral': 792, 'n_tokens_neox': 765, 'n_words': 188}