<commit_before>var fs = require('fs');
var express = require('express');
var app = express();
var github = require('./Github.js');
var Template = require('./Template.js');
var Post = require('./Post.js');
var Contents = require('./Contents.js');
var bodyparser = require('body-parser');

var contents_template = new Template('./templates/contents.html');
var topics_template = new Template('./templates/filter.html');

var content_dir = './content/';
var static_dir = './static/';

var contents = new Contents();

app.use(express.static('static'));

app.get('/', function(req, res) {<commit_msg>Added use json for body parser<commit_after>var fs = require('fs');
var express = require('express');
var app = express();
var github = require('./Github.js');
var Template = require('./Template.js');
var Post = require('./Post.js');
var Contents = require('./Contents.js');
var bodyParser = require('body-parser');

var contents_template = new Template('./templates/contents.html');
var topics_template = new Template('./templates/filter.html');

var content_dir = './content/';
var static_dir = './static/';

var contents = new Contents();

app.use(express.static('static'));
app.use(bodyParser.json());

app.get('/', function(req, res) {
{'fraction_non_alphanumeric': 0.19838056680161945, 'fraction_numerical': 0.0, 'mean_word_length': 5.211055276381909, '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': '5228574', 'n_tokens_mistral': 356, 'n_tokens_neox': 349, 'n_words': 98}