<commit_before>import React from 'react';
import {Provider} from "react-redux";
import {render} from 'react-dom';

import {store} from "./api/store";

// Page structure
import Navigation from './components/navigation.jsx';
import Footer from './components/footer.jsx';

// Page content
import Home from './components/content/home.jsx';
import WiFi from './components/content/wifi.jsx';
import Tracking from './components/content/tracking.jsx';
import Learning from './components/content/learning/learning.jsx';

// Miscellaneous
import RebootModal from './components/modals/reboot.jsx';
import Modal from './components/modals/modal.jsx';

class App extends React.Component {
    // constructor(props) {
    //     super(props);
    //     this.state = {
    //         location: "home"
    //     };
    // }
    render () {
        const location = this.context.store.getState().location;

        let content;
        switch (location) {
            case "home":
                content = <Home/>;
                break;
            case "learning":
                content = <Learning/>;
                break;
            case "tracking":
                content = <Tracking/>;
                break;
            case "wifi":
                content = <WiFi/>;
        }
        return (
            <div>
                <Navigation location={location} />
                {content}
                <Footer/>

                {/*<RebootModal/>*/}
            </div>
        );
    }
}

App.contextTypes = {
    store: React.PropTypes.object
};

const renderApp = _ => {
    render(
        <Provider store={store}>
            <App/>
        </Provider>,
        document.getElementById('render-target')
    )
};

store.subscribe(renderApp);
renderApp();
<commit_msg>Removed old (unnecessary) code that caused errors<commit_after>import React from "react";
import {Provider} from "react-redux";
import {render} from "react-dom";
import {store} from "./api/store";
// Page structure
import Navigation from "./components/navigation.jsx";
import Footer from "./components/footer.jsx";
// Page content
import Home from "./components/content/home.jsx";
import WiFi from "./components/content/wifi.jsx";
import Tracking from "./components/content/tracking.jsx";
import Learning from "./components/content/learning/learning.jsx";

class App extends React.Component {
    render () {
        const location = this.context.store.getState().location;

        let content;
        switch (location) {
            case "home":
                content = <Home/>;
                break;
            case "learning":
                content = <Learning/>;
                break;
            case "tracking":
                content = <Tracking/>;
                break;
            case "wifi":
                content = <WiFi/>;
        }
        return (
            <div>
                <Navigation location={location} />
                {content}
                <Footer/>
            </div>
        );
    }
}

App.contextTypes = {
    store: React.PropTypes.object
};

const renderApp = _ => {
    render(
        <Provider store={store}>
            <App/>
        </Provider>,
        document.getElementById('render-target')
    )
};

store.subscribe(renderApp);
renderApp();

{'fraction_non_alphanumeric': 0.1343101343101343, 'fraction_numerical': 0.0, 'mean_word_length': 1.8080548414738646, 'pattern_counts': {'":': 8, '<': 26, '<?xml version=': 0, '>': 28, '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': '4290331', 'n_tokens_mistral': 904, 'n_tokens_neox': 867, 'n_words': 211}