<commit_before>const ReactRouter = require('react-router');
const ReduxRouter = require('react-router-redux');

const actions = require('../src/scripts/actions/app-actions.coffee');
const createStore = require('../src/scripts/store.coffee');
const negotiateLang = require('./negotiateLang.js');
const routes = require('../src/scripts/views/routes.coffee');
const URL = require('../src/node_modules/urlHelpers.js');

function createRouterHandler(propsHandler) {
  return function routerHandler(req, res) {
    const url = req.originalUrl;
    const config = {
      routes: routes,
      location: url,
      history: ReactRouter.createMemoryHistory(),
    };

    ReactRouter.match(config, (err, redirectLocation, props) => {
      if (err) {
        return res.status(500).send(err.message);<commit_msg>Changed require.<commit_after>const ReactRouter = require('react-router');
const ReduxRouter = require('react-router-redux');

const actions = require('../src/scripts/actions/appActions.js');
const createStore = require('../src/scripts/store.coffee');
const negotiateLang = require('./negotiateLang.js');
const routes = require('../src/scripts/views/routes.coffee');
const URL = require('../src/node_modules/urlHelpers.js');

function createRouterHandler(propsHandler) {
  return function routerHandler(req, res) {
    const url = req.originalUrl;
    const config = {
      routes: routes,
      location: url,
      history: ReactRouter.createMemoryHistory(),
    };

    ReactRouter.match(config, (err, redirectLocation, props) => {
      if (err) {
        return res.status(500).send(err.message);
{'fraction_non_alphanumeric': 0.1519302615193026, 'fraction_numerical': 0.0037359900373599006, 'mean_word_length': 4.217532467532467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6856656', 'n_tokens_mistral': 467, 'n_tokens_neox': 459, 'n_words': 92}