<commit_before>import React, {Component, PropTypes} from "react";
import {Route} from "react-router";
import PhenomicPageContainer from "phenomic/lib/PageContainer";
import LayoutContainer from "../LayoutContainer";
import OptimisationContainer from "../layouts/Optimisations/show";
import * as layouts from '../layouts';

class PageContainer extends Component {
    static propTypes = {
        params: PropTypes.object.isRequired,
    };

    render () {
        const {props} = this;
        return (
            <PhenomicPageContainer
                {...props}
                layouts={layouts}
            />
        );
    }

    componentWillReceiveProps (props) {
        if (props.params.splat !== this.props.params.splat && !window.location.hash) {
            window.scrollTo(0, 0);
        }
    }
}

export default (
  <Route component={LayoutContainer}>
    <Route
        path="/optimisations/:optimisation"
        component={OptimisationContainer}
    />
    <Route
        path="*"
        component={PageContainer}
    />
  </Route>
);
<commit_msg>Fix warning on docs deploy.<commit_after>import React, {Component, PropTypes} from "react";
import {Route} from "react-router";
import {PageContainer as PhenomicPageContainer} from 'phenomic';
import LayoutContainer from "../LayoutContainer";
import OptimisationContainer from "../layouts/Optimisations/show";
import * as layouts from '../layouts';

class PageContainer extends Component {
    static propTypes = {
        params: PropTypes.object.isRequired,
    };

    render () {
        const {props} = this;
        return (
            <PhenomicPageContainer
                {...props}
                layouts={layouts}
            />
        );
    }

    componentWillReceiveProps (props) {
        if (props.params.splat !== this.props.params.splat && !window.location.hash) {
            window.scrollTo(0, 0);
        }
    }
}

export default (
  <Route component={LayoutContainer}>
    <Route
        path="/optimisations/:optimisation"
        component={OptimisationContainer}
    />
    <Route
        path="*"
        component={PageContainer}
    />
  </Route>
);

{'fraction_non_alphanumeric': 0.12412831241283125, 'fraction_numerical': 0.0018596001859600185, 'mean_word_length': 2.3943217665615144, 'pattern_counts': {'":': 0, '<': 13, '<?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': '2205121', 'n_tokens_mistral': 596, 'n_tokens_neox': 578, 'n_words': 130}