<commit_before>import React from "react";
import { Route, DefaultRoute, NotFoundRoute } from "react-router";

/* eslint-disable no-multi-spaces */
// Only import from `route-handlers/*`
import HomeView    from 'views/HomeView';
/* eslint-enable */

// export routes
export default function make_routes(Application){
  // FIXME: make this dynamic
  return <Route name="app" path="/" component={Application}>
            <Route component={HomeView} path="/" />
         </Route>;
}
<commit_msg>switch routes to new extension system<commit_after>import React from "react";
import { Route, DefaultRoute, NotFoundRoute } from "react-router";

/* eslint-disable no-multi-spaces */
// Only import from `route-handlers/*`
import { getExtensions } from "config/extensions";
import HomeView    from 'views/HomeView';
/* eslint-enable */

// export routes
export default function make_routes(Application){
  // FIXME: make this dynamic
  return <Route name="app" path="/" component={Application}>
            {getExtensions('routes')}
            <Route component={HomeView} path="*" />
         </Route>;
}

{'fraction_non_alphanumeric': 0.1422060164083865, 'fraction_numerical': 0.0, 'mean_word_length': 3.7532467532467533, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1971765', 'n_tokens_mistral': 301, 'n_tokens_neox': 303, 'n_words': 90}