<commit_before>import { CircularProgress } from 'material-ui/Progress';
import * as React from 'react';
import { LoadingComponentProps } from 'react-loadable';
import * as Loadable from 'react-loadable';
import { pure } from 'recompose';
import { Fragment, Routes } from 'redux-little-router';

import { NotFound } from './containers/../components/NotFound';
import { League } from './containers/League';
import { Team } from './containers/Team';

const Loading = pure<LoadingComponentProps>(
  ({ error, pastDelay }) =>
    error ? <div>Error!</div> : pastDelay ? <CircularProgress /> : null
);

const AsyncHome = Loadable({
  loader: () => import('./containers/Home'),
  render: (mod, props) => {
    const Component = mod.ConnectedHome;
    return <Component {...props} />;
  },
  loading: Loading
});

const AsyncSearch = Loadable({
  loader: () => import('./containers/Search'),
  render: (mod, props) => {
    const Component = mod.ConnectedSearch;
    return <Component {...props} />;
  },
  loading: Loading
});

const AsyncPlayer = Loadable({
  loader: () => import('./containers/Player'),
  render: (mod, props) => {
    const Component = mod.ConnectedPlayer;
    return <Component {...props} />;
  },
  loading: Loading
});

const AsyncComparePlayers = Loadable({
  loader: () => import('./containers/ComparePlayers'),
  render: (mod, props) => {
    const Component = mod.ConnectedComparePlayers;
    return <Component {...props} />;
  },
  loading: Loading
});

export const routes = (
  <Fragment forRoute="/">
    <div>
      <Fragment forRoute="/">
        <AsyncHome />
      </Fragment>
      <Fragment forRoute="/search">
        <AsyncSearch />
      </Fragment>
      <Fragment forRoute="/leagues/:id">
        <League />
      </Fragment>
      <Fragment forRoute="/players/compare/(:player1)(/:player2)(/:player3)">
        <AsyncComparePlayers />
      </Fragment>
      <Fragment forRoute="/players/:id">
        <AsyncPlayer />
      </Fragment>
      <Fragment forRoute="/teams/:id">
        <Team /><commit_msg>feat(ui) code split remainder of routes<commit_after>import { CircularProgress } from 'material-ui/Progress';
import * as React from 'react';
import { LoadingComponentProps } from 'react-loadable';
import * as Loadable from 'react-loadable';
import { pure } from 'recompose';
import { Fragment, Routes } from 'redux-little-router';

import { NotFound } from './containers/../components/NotFound';

const Loading = pure<LoadingComponentProps>(
  ({ error, pastDelay }) =>
    error ? <div>Error!</div> : pastDelay ? <CircularProgress /> : null
);

const AsyncHome = Loadable({
  loader: () => import('./containers/Home').then(mod => mod.ConnectedHome),
  loading: Loading
});

const AsyncSearch = Loadable({
  loader: () => import('./containers/Search').then(mod => mod.ConnectedSearch),
  loading: Loading
});

const AsyncPlayer = Loadable({
  loader: () => import('./containers/Player').then(mod => mod.ConnectedPlayer),
  loading: Loading
});

const AsyncComparePlayers = Loadable({
  loader: () =>
    import('./containers/ComparePlayers').then(
      mod => mod.ConnectedComparePlayers
    ),
  loading: Loading
});

const AsyncLeague = Loadable({
  loader: () => import('./containers/League').then(mod => mod.League),
  loading: Loading
});

const AsyncTeam = Loadable({
  loader: () => import('./containers/Team').then(mod => mod.Team),
  loading: Loading
});

export const routes = (
  <Fragment forRoute="/">
    <div>
      <Fragment forRoute="/">
        <AsyncHome />
      </Fragment>
      <Fragment forRoute="/search">
        <AsyncSearch />
      </Fragment>
      <Fragment forRoute="/leagues/:id">
        <AsyncLeague />
      </Fragment>
      <Fragment forRoute="/players/compare/(:player1)(/:player2)(/:player3)">
        <AsyncComparePlayers />
      </Fragment>
      <Fragment forRoute="/players/:id">
        <AsyncPlayer />
      </Fragment>
      <Fragment forRoute="/teams/:id">
        <AsyncTeam />
{'fraction_non_alphanumeric': 0.17288306451612903, 'fraction_numerical': 0.0015120967741935483, 'mean_word_length': 3.3424507658643328, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 75, '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': '5236749', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1155, 'n_words': 266}