<commit_before>import React, {Component} from 'react'
import { Link, NavLink } from 'react-router-dom'
import classNames from 'classnames/bind'
import styles from './index.styl'
let cx = classNames.bind(styles)

class App extends Component {
  render () {
    return (
      <div className={cx('app-p-box')}>
        <h1>React Router Saga</h1>
        <div>
          <Link to='/home'>首页</Link>
          {' '}
          <NavLink to='/counter' activeClassName="selected" activeStyle={{color: 'red'}}>计数页面</NavLink>
          {' '}
          <Link to='/other'>Not Found</Link>
        </div>
        <br />
        {this.props.children}
      </div>
    )
  }
}

export default App<commit_msg>link nav add replace for hashhistory errors tips<commit_after>import React, {Component} from 'react'
import { Link, NavLink } from 'react-router-dom'
import classNames from 'classnames/bind'
import styles from './index.styl'
let cx = classNames.bind(styles)

class App extends Component {
  render () {
    return (
      <div className={cx('app-p-box')}>
        <h1>React Router Saga</h1>
        <div>
          <Link to='/home' replace>首页</Link>
          {' '}
          <NavLink to='/counter' replace activeClassName="selected" activeStyle={{color: 'red'}}>计数页面</NavLink>
          {' '}
          <Link to='/other' replace>Not Found</Link>
        </div>
        <br />
        {this.props.children}
      </div>
    )
  }
}

export default App
{'fraction_non_alphanumeric': 0.15523215523215522, 'fraction_numerical': 0.002772002772002772, 'mean_word_length': 2.49636803874092, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '4597307', 'n_tokens_mistral': 464, 'n_tokens_neox': 478, 'n_words': 109}