<commit_before>'use strict';

// Init ES6 + jsx environments for .require()
require('babel/register')({
    extensions: ['.jsx']
});

var express = require('express'),
    fluxexapp = require('./fluxexapp'),
    routing = require('./actions/routing'),
    fluxexServerExtra = require('fluxex/extra/server'),
    app = express();

// Provide /static/js/main.js
fluxexServerExtra.initStatic(app);

// Mount test pages with routing action
app.use(fluxexServerExtra.middleware(fluxexapp, function (req) {
    return this.dispatch('UPDATE_URL', req.url).then(function () {<commit_msg>move to new api<commit_after>'use strict';

// Init ES6 + jsx environments for .require()
require('babel/register')({
    extensions: ['.jsx']
});

var express = require('express'),
    fluxexapp = require('./fluxexapp'),
    routing = require('./actions/routing'),
    fluxexServerExtra = require('fluxex/extra/server'),
    app = express();

// Provide /static/js/main.js
fluxexServerExtra.initStatic(app);

// Mount test pages with routing action
app.use(fluxexServerExtra.createMiddlewareByAction(fluxexapp, function (req) {
    return this.dispatch('UPDATE_URL', req.url).then(function () {
{'fraction_non_alphanumeric': 0.16183986371379896, 'fraction_numerical': 0.0017035775127768314, 'mean_word_length': 4.595238095238095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2948732', 'n_tokens_mistral': 366, 'n_tokens_neox': 356, 'n_words': 77}