<commit_before>'use strict';

require('node-jsx').install({extension: '.jsx'});

var express = require('express'),
    fluxexapp = require('./fluxexapp'),
    serverAction = require('./actions/server'),
    react = require('react'),
    app = express();

app.use('/static', express.static(__dirname + '/static'));
app.use('/test', function (req, res, next) {
    var Fluxex = new fluxexapp();

    // prepare query for client
    Fluxex.getStore('page').set('query', req.query, true);

    Fluxex.renderHtml(serverAction.samplePage).then(function (HTML) {
      res.send(HTML);
    }).catch(function (E) {
console.log('not ok!');
console.log(E.stack);
        next();
    });
});

app.listen(3000);
console.log('Fluxex started on port 3000');
<commit_msg>indent<commit_after>'use strict';

require('node-jsx').install({extension: '.jsx'});

var express = require('express'),
    fluxexapp = require('./fluxexapp'),
    serverAction = require('./actions/server'),
    react = require('react'),
    app = express();

app.use('/static', express.static(__dirname + '/static'));
app.use('/test', function (req, res, next) {
    var Fluxex = new fluxexapp();

    // prepare query for client
    Fluxex.getStore('page').set('query', req.query, true);

    Fluxex.renderHtml(serverAction.samplePage).then(function (HTML) {
        res.send(HTML);
    }).catch(function (E) {
console.log('not ok!');
console.log(E.stack);
        next();
    });
});

app.listen(3000);
console.log('Fluxex started on port 3000');

{'fraction_non_alphanumeric': 0.20066445182724252, 'fraction_numerical': 0.0106312292358804, 'mean_word_length': 3.9377049180327868, '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': '5129839', 'n_tokens_mistral': 495, 'n_tokens_neox': 474, 'n_words': 98}