<commit_before>import React, { Component } from 'react';
import { Router, Route } from 'react-router'
import { Provider } from 'react-redux';
import ReactDOM from 'react-dom';
import App from './components/App';
import LoginPage from './components/LoginPage'
import MatchDetail from './components/MatchDetail'
import store, { history } from './store/configure-store'
import { fetchMatches } from './actions/matches-actions'
import './styles/index.css';

store.dispatch(fetchMatches())

const Root = () => {
  return (
    <Provider store={store}>
      <Router history={history}>
        <Route path="/" component={App} />
        <Route path="/login" component={LoginPage} />
        <Route path="/matches/:matchId" component={MatchDetail} />
      </Router>
    </Provider><commit_msg>check if the user is logged in<commit_after>import React, { Component } from 'react';
import { Router, Route } from 'react-router'
import { Provider } from 'react-redux';
import ReactDOM from 'react-dom';
import App from './components/App';
import LoginPage from './components/LoginPage'
import MatchDetail from './components/MatchDetail'
import store, { history } from './store/configure-store'
import { fetchMatches } from './actions/matches-actions'
import { checkIfLoggedIn } from './actions/user-actions'
import './styles/index.css';



store.dispatch(fetchMatches())
store.dispatch(checkIfLoggedIn())

const Root = () => {
  return (
    <Provider store={store}>
      <Router history={history}>
        <Route path="/" component={App} />
        <Route path="/login" component={LoginPage} />
        <Route path="/matches/:matchId" component={MatchDetail} />
      </Router>
    </Provider>
{'fraction_non_alphanumeric': 0.15617577197149643, 'fraction_numerical': 0.0, 'mean_word_length': 3.9705014749262535, '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': '1591111', 'n_tokens_mistral': 468, 'n_tokens_neox': 465, 'n_words': 130}