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

import {load as loadResults} from './components/SOSearch/Actions';
import {load as loadHot} from './components/SOHot/Actions';

// Load components
import { Layout, Example, SOSearch } from './components';

// Main routes
const routes = (history) => {
  return (
    <Router history={history}>
      {/* Show header component on all pages of it's child. */}
      <Route path="/" component={Layout} serverDispatch={[loadHot]}>
        <IndexRoute component={Example} serverDispatch={[loadResults]} />
        <Route path="sosearch/:query" component={SOSearch} serverDispatch={[loadResults]}/><commit_msg>Removed not required fetchResults on Example route<commit_after>import React from 'react';
import {Router, Route, IndexRoute, Redirect} from 'react-router';

import {load as loadResults} from './components/SOSearch/Actions';
import {load as loadHot} from './components/SOHot/Actions';

// Load components
import { Layout, Example, SOSearch } from './components';

// Main routes
const routes = (history) => {
  return (
    <Router history={history}>
      {/* Show header component on all pages of it's child. */}
      <Route path="/" component={Layout} serverDispatch={[loadHot]}>
        <IndexRoute component={Example}/>
        <Route path="sosearch/:query" component={SOSearch} serverDispatch={[loadResults]}/>
{'fraction_non_alphanumeric': 0.1462561231630511, 'fraction_numerical': 0.0, 'mean_word_length': 4.478927203065134, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '3615031', 'n_tokens_mistral': 392, 'n_tokens_neox': 393, 'n_words': 122}