<commit_before>var cliArgs = require('command-line-args');
var mount = require('koa-mount');
var bodyParser = require('koa-bodyparser');
var koa = require('koa');
var app = module.exports = koa();
require('koa-qs')(app);
require('./init')();

var model = require('./model-loader')(module.parent);
var apikey = require('./apikey')(model.users);
var resources = require('./resources')(model);

app.use(apikey);
app.use(bodyParser());
app.use(mount('/', resources.routes())).use(resources.allowedMethods());

// Look for changes on the access and projects tables. If a change is detected
// then invalidate the project access cache so that it will be reloaded.
const projectAccessCache = require('./resources/project-access-cache')(model.access);
model.r.table('access').changes().toStream().on('data', function() {<commit_msg>Comment out body parsing in use until there is time to update dependencies for switch.<commit_after>var cliArgs = require('command-line-args');
var mount = require('koa-mount');
//var bodyParser = require('koa-bodyparser');
var koa = require('koa');
var app = module.exports = koa();
require('koa-qs')(app);
require('./init')();

var model = require('./model-loader')(module.parent);
var apikey = require('./apikey')(model.users);
var resources = require('./resources')(model);

app.use(apikey);
//app.use(bodyParser());
app.use(mount('/', resources.routes())).use(resources.allowedMethods());

// Look for changes on the access and projects tables. If a change is detected
// then invalidate the project access cache so that it will be reloaded.
const projectAccessCache = require('./resources/project-access-cache')(model.access);
model.r.table('access').changes().toStream().on('data', function() {
{'fraction_non_alphanumeric': 0.183768115942029, 'fraction_numerical': 0.0, 'mean_word_length': 5.7421875, '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': '2606873', 'n_tokens_mistral': 496, 'n_tokens_neox': 496, 'n_words': 138}