<commit_before>import React from 'react'
import { Switch, Route } from 'react-router-dom'

const Home = () => (
  <h2>Home</h2>
)

const Roster = () => (
  <h2>Roster</h2>
)

const Schedule = () => (
  <h2>Schedule</h2>
)

const Main = () => (
  <main>
    <Switch>
      <Route exact path='/' component={Home}/>
      <Route path='/roster' component={Roster}/>
      <Route path='/schedule' component={Schedule}/>
    </Switch>
  </main>
)

export default Main
<commit_msg>added sub route<commit_after>import React from 'react'
import { Switch, Route, Link } from 'react-router-dom'

const Home = () => (
  <h2>Home</h2>
)

const Roster = () => (
  <div>
    <h2>This is the Marina page!</h2>
    <Switch>
      <Route exact path='/roster' component={FullRoster}/>
      <Route path='/roster/:number' component={Player}/>
    </Switch>
  </div>
)

const Schedule = () => (
  <h2>Schedule</h2>
)

const FullRoster = () => (
  <Link to={'/roster/Mava Mavina'}>Mandarina</Link>
)
const Player = ( props ) => (
  <h2>{props.match.params.number}</h2>
)

const Main = () => (
  <main>
    <Switch>
      <Route exact path='/' component={Home}/>
      <Route path='/roster' component={Roster}/>
      <Route path='/schedule' component={Schedule}/>
    </Switch>
  </main>
)

export default Main

{'fraction_non_alphanumeric': 0.2017067494181536, 'fraction_numerical': 0.010861132660977503, 'mean_word_length': 3.161290322580645, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 49, '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': '6162953', 'n_tokens_mistral': 474, 'n_tokens_neox': 474, 'n_words': 101}