<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route } from 'react-router-dom';
import './styles/index.css';
import Background from './components/Background';
import Footer from './components/Footer';
import Header from './components/Header';
import ScrollToTop from './components/ScrollToTop';
import Home from './scenes/Home';
import Store from './scenes/Store';
import registerServiceWorker from './registerServiceWorker';

import './i18n';

if (process.env.NODE_ENV === 'production') {
  window.Raven
    .config('https://0ddfcefcf922465488c2dde443f9c9d5@sentry.io/230876')
    .install();
}

ReactDOM.render(
  <BrowserRouter>
    <ScrollToTop>
      <Background />
      <Header />
      <Route exact path="/" component={Home} />
      <Route path="/store" component={Store} />
      <Footer />
    </ScrollToTop>
  </BrowserRouter>,
  document.getElementById('root'),
);

registerServiceWorker();<commit_msg>Add Switch and Redirect for Router<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import {
  BrowserRouter as Router,
  Redirect,
  Route,
  Switch,
} from 'react-router-dom';
import './styles/index.css';
import Background from './components/Background';
import Footer from './components/Footer';
import Header from './components/Header';
import ScrollToTop from './components/ScrollToTop';
import Home from './scenes/Home';
import Store from './scenes/Store';
import registerServiceWorker from './registerServiceWorker';

import './i18n';

if (process.env.NODE_ENV === 'production') {
  window.Raven
    .config('https://0ddfcefcf922465488c2dde443f9c9d5@sentry.io/230876')
    .install();
}

ReactDOM.render(
  <Router>
    <ScrollToTop>
      <Background />
      <Header />
      <Switch>
        <Route exact path="/" component={Home} />
        <Route path="/store" component={Store} />
        <Redirect from="*" to="/" />
      </Switch>
      <Footer />
    </ScrollToTop>
  </Router>,
  document.getElementById('root'),
);

registerServiceWorker();
{'fraction_non_alphanumeric': 0.1564327485380117, 'fraction_numerical': 0.024366471734892786, 'mean_word_length': 3.8764845605700713, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1399445', 'n_tokens_mistral': 647, 'n_tokens_neox': 619, 'n_words': 149}