<commit_before>var nodejsx = require('node-jsx').install();
var App = require('../../../client/javascript/reactapp');

exports = module.exports = function (services, helpers) {
    return function (req, res, next) {
        var context = {
            title: 'Page Title',
            description: 'Page Description',
            user: {
                name: 'Some user',
                token: '<KEY>'
            },
            products: [
                {category: 'Sporting Goods', price: '$49.99', stocked: true, name: 'Football'},
                {category: 'Sporting Goods', price: '$9.99', stocked: true, name: 'Baseball'},
                {category: 'Sporting Goods', price: '$29.99', stocked: false, name: 'Basketball'},
                {category: 'Electronics', price: '$99.99', stocked: true, name: 'iPod Touch'},
                {category: 'Electronics', price: '$399.99', stocked: false, name: 'iPhone 5'},
                {category: 'Electronics', price: '$199.99', stocked: true, name: 'Nexus 7'}
            ],
            comments: [
                {author: '<NAME>', text: 'This is one comment'},
                {author: '<NAME>', text: 'This is *another* comment'}
            ],
            startTime: new Date()
        }

        helpers.react.renderMarkupToString({
            component: App,
            clientScripts: ['/javascript/reactapp.js'],
            context: context,
            staticPage: false,
            callback: function (err, markup) {
                if (err) return next(err);
                res.send(markup);
            }
        });
    };
};<commit_msg>update demo context<commit_after>var nodejsx = require('node-jsx').install();
var App = require('../../../client/javascript/reactapp');

exports = module.exports = function (services, helpers) {
    return function (req, res, next) {
        var context = {
            title: 'React demo',
            description: 'React demo description',
            user: {
                name: 'Some user',
                token: '12345678ADSfghjkll'
            },
            products: [
                {category: 'Sporting Goods', price: '$49.99', stocked: true, name: 'Football'},
                {category: 'Sporting Goods', price: '$9.99', stocked: true, name: 'Baseball'},
                {category: 'Sporting Goods', price: '$29.99', stocked: false, name: 'Basketball'},
                {category: 'Electronics', price: '$99.99', stocked: true, name: 'iPod Touch'},
                {category: 'Electronics', price: '$399.99', stocked: false, name: 'iPhone 5'},
                {category: 'Electronics', price: '$199.99', stocked: true, name: 'Nexus 7'}
            ],
            startTime: new Date()
        }

        helpers.react.renderMarkupToString({
            component: App,
            clientScripts: ['/javascript/reactapp.js'],
            context: context,
            staticPage: false,
            callback: function (err, markup) {
                if (err) return next(err);
                res.send(markup);
            }
        });
    };
};
{'fraction_non_alphanumeric': 0.15271898404428524, 'fraction_numerical': 0.020188863562357537, 'mean_word_length': 1.8157653528872595, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '2337631', 'n_tokens_mistral': 914, 'n_tokens_neox': 835, 'n_words': 230}