<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { Router, Route, Switch } from 'react-router-dom';
import { createHashHistory } from 'history';
import './index.css';
import NavBar from './components/NavBar';
import Upload from './components/Upload';
import Download from './components/Download';
import Delete from './components/Delete';
import NotFound from './components/NotFound';
import 'bootstrap/dist/css/bootstrap.css';
injectTapEventPlugin();

const history = createHashHistory({
  basename: '',
  hashType: 'slash',
});

const style = {
  padding: '10px 30px',
};

ReactDOM.render(
  <Router history={history}>
    <div style={style}>
      <h3> Transfer </h3>

      <NavBar
        history={history}
      />

      <Switch>
        <Route path="/upload" component={Upload}/>
        <Route path="/download" component={Download}/>
        <Route path="/delete" component={Delete}/>
        <Route path="*" component={NotFound}/>
      </Switch>
    </div>
  </Router>,
  document.getElementById('root'));
<commit_msg>default to /upload<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { Router, Route, Switch, Redirect } from 'react-router-dom';
import { createHashHistory } from 'history';
import './index.css';
import NavBar from './components/NavBar';
import Upload from './components/Upload';
import Download from './components/Download';
import Delete from './components/Delete';
import NotFound from './components/NotFound';
import 'bootstrap/dist/css/bootstrap.css';
injectTapEventPlugin();

const history = createHashHistory({
  basename: '',
  hashType: 'slash',
});

const style = {
  padding: '10px 30px',
};


const uploadRedirect = () => {
  return (
    <Redirect to="/upload"/>
  );
};


ReactDOM.render(
  <Router history={history}>
    <div style={style}>
      <h2> Transfer </h2>

      <NavBar
        history={history}
      />

      <Switch>
        <Route exact path="/" component={uploadRedirect}/>
        <Route path="/upload" component={Upload}/>
        <Route path="/download" component={Download}/>
        <Route path="/delete" component={Delete}/>
        <Route path="*" component={NotFound}/>
      </Switch>
    </div>
  </Router>,
  document.getElementById('root'));

{'fraction_non_alphanumeric': 0.1625, 'fraction_numerical': 0.005, 'mean_word_length': 3.707843137254902, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1600171', 'n_tokens_mistral': 695, 'n_tokens_neox': 678, 'n_words': 182}