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

import { changePage } from './actions/PostsActions'
import { App } from './components'
import {
  Post, 
  Posts } from './containers'

export default ({ dispatch }) => {
  return (
    <Route path="/" component={ App }>
      { /*<IndexRoute component={ Posts } />*/ }
      { /*<Route path="/:year/:month/:date/:slug" component={ Post } />*/ }
      <Route path="/pages/:page" getComponent={ 
        (nextState, callback) => {
          const { params } = nextState

          dispatch(
            changePage(
              parseInt(params.page)
            )
          )
          
          callback(null, Posts)
        } 
      } />
    </Route>
  )
}<commit_msg>Enable index route<commit_after>import React from 'react'
import { Route, IndexRoute } from 'react-router'

import { changePage } from './actions/PostsActions'
import { App } from './components'
import {
  Post, 
  Posts } from './containers'

export default ({ dispatch }) => {
  return (
    <Route path="/" component={ App }>
      <IndexRoute component={ Posts } />
      <Route path="/:year/:month/:date/:slug" component={ Post } />
      <Route path="/pages/:page" getComponent={ 
        (nextState, callback) => {
          const { params } = nextState

          dispatch(
            changePage(
              parseInt(params.page)
            )
          )
          
          callback(null, Posts)
        } 
      } />
    </Route>
  )
}
{'fraction_non_alphanumeric': 0.15069398545935228, 'fraction_numerical': 0.0, 'mean_word_length': 1.9512670565302144, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '1593052', 'n_tokens_mistral': 435, 'n_tokens_neox': 429, 'n_words': 104}