<commit_before>"use strict"; 

var express = require('../../express-inherit'),
    apiRequireUser = require('../../apps/auth').apiRequireUser,
    base_url = require('../../middleware/route').base_url,
    about = require('../about'),
    config = require('config'),
    user = require('../../authorization'),
    popitApi = require('popit-api');

var app = module.exports = express();

var api_01_app = express();
// Ensure that these methods all require a user.
api_01_app.post( '*', apiRequireUser, user.can('edit instance') );
api_01_app.put(  '*', apiRequireUser, user.can('edit instance') );
api_01_app.delete(  '*', apiRequireUser, user.can('edit instance') );

app.use(function(req, res, next) {
  req.base_url = base_url(req);
  req.api_base_url = req.base_url + '/api/v0.1';
  next();
});

api_01_app.get('/', function (req, res, next) {<commit_msg>Pretty print json in production<commit_after>"use strict"; 

var express = require('../../express-inherit'),
    apiRequireUser = require('../../apps/auth').apiRequireUser,
    base_url = require('../../middleware/route').base_url,
    about = require('../about'),
    config = require('config'),
    user = require('../../authorization'),
    popitApi = require('popit-api');

var app = module.exports = express();

// Pretty print json in production as well as development
app.set('json spaces', 2);

var api_01_app = express();
// Ensure that these methods all require a user.
api_01_app.post( '*', apiRequireUser, user.can('edit instance') );
api_01_app.put(  '*', apiRequireUser, user.can('edit instance') );
api_01_app.delete(  '*', apiRequireUser, user.can('edit instance') );

app.use(function(req, res, next) {
  req.base_url = base_url(req);
  req.api_base_url = req.base_url + '/api/v0.1';
  next();
});

api_01_app.get('/', function (req, res, next) {
{'fraction_non_alphanumeric': 0.19703622392974754, 'fraction_numerical': 0.013721185510428101, 'mean_word_length': 4.035911602209945, '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': '4700187', 'n_tokens_mistral': 609, 'n_tokens_neox': 594, 'n_words': 132}