<commit_before>var React = require('react'); 
var format = require("string-template")

var PageList = require('../admin/components/pagelist');
var el = document.getElementById('container');
var defPages = [{ title: 'First',
              view: 'index',
              description:'the description',
        content:'here',
        route:'/'}]

React.render(
  <PageList data={defPages} />,el
);


<commit_msg>Query for data and use new app<commit_after>var React = require('react'); 
var format = require("string-template")

var AdminApp = require('../admin/components/admin-app');
var el = document.getElementById('container');

var nr = require('naive-request');
var defPages = nr.get('/xms/api/pages');
React.render(
  <AdminApp data={defPages} />, el
);



{'fraction_non_alphanumeric': 0.1725955204216074, 'fraction_numerical': 0.0, 'mean_word_length': 3.9673202614379086, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7075680', 'n_tokens_mistral': 225, 'n_tokens_neox': 222, 'n_words': 54}