<commit_before>var createPage = require('react-app/page'),
    api        = require('./api');



module.exports = {
  createPage: function(spec) {
    if (!spec.getData)
      spec.getData = function(props, callback) {
        api.getPageData(props.path, callback);
      }
    return createPage(spec);
  },
  api: api
};<commit_msg>fixes for new react-app<commit_after>var createPage = require('react-app/page'),
    api        = require('./api');



module.exports = {
  createPage: function(spec) {
    if (!spec.getData)
      spec.getData = function(callback) {
        api.getPageData(this.props.request.path, callback);
      }
    return createPage(spec);
  },
  api: api
};
{'fraction_non_alphanumeric': 0.15249266862170088, 'fraction_numerical': 0.0, 'mean_word_length': 2.8806818181818183, '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': '5118808', 'n_tokens_mistral': 217, 'n_tokens_neox': 216, 'n_words': 40}