<commit_before>import React, {
    Component
} from 'react';
//import logo from './logo.svg';
import './App.css';
import { PageRouter } from './components/PageRouter';
import * as firebase from 'firebase';

class App extends Component {
    state = {
        currentUser: null
    }

    componentWillMount() {
        firebase.auth().onAuthStateChanged(  user => {
            if (user === null) {
                localStorage.removeItem('user', null);
            } else {
                localStorage.setItem('user', user.uid);
            }

            this.setState({
                currentUser: user
            });

        } );
    }

    render() {
        return(
            <div className="App">
                <PageRouter />
            </div>
        );
    }
}
export default App;<commit_msg>Implement Router direct to App Component<commit_after>import React, {
    Component
} from 'react';
import {
  BrowserRouter as Router,
  Route,
  Switch
} from 'react-router-dom';
import * as firebase from 'firebase';
import { NavigationBar } from './components/NavigationBar';
import {
    Signin,
    SecuredRoute,
    UnsecuredRoute
} from './components/Auth';
import { NoRouteMatch } from './components/NoRouteMatch';
import { AdminRouter } from './components/Admin';
import { PageHome } from './components/PageHome';

class App extends Component {
    state = {
        currentUser: null
    }

    componentWillMount() {
        firebase.auth().onAuthStateChanged(  user => {
            if (user === null) {
                localStorage.removeItem('user', null);
            } else {
                localStorage.setItem('user', user.uid);
            }

            this.setState({
                currentUser: user
            });

        } );
    }

    render() {
        return(
            <Router>
                <main className="app">
                    <NavigationBar />

                    <Switch>
                        <Route exact path="/" component={PageHome}/>
                        <UnsecuredRoute path="/signin" component={Signin}/>
                        <SecuredRoute path="/admin" component={AdminRouter}/>
                        <Route component={NoRouteMatch}/>
                    </Switch>
                </main>
            </Router>
        );
    }
}

export default App;
{'fraction_non_alphanumeric': 0.12333476579286635, 'fraction_numerical': 0.0, 'mean_word_length': 1.612794612794613, 'pattern_counts': {'":': 0, '<': 17, '<?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': '1136738', 'n_tokens_mistral': 617, 'n_tokens_neox': 589, 'n_words': 140}