<commit_before>const dbManager = require("../../data/db/database_manager");
const express = require("express");
const router = express.Router();
const createError = require('http-errors');

router.get("/", function (req, res, next) {
    dbManager.getData('blog', 'all', 200, function (result, error) {
        if (error) {
            next(createError(404));
        } else {
            res.render('index', {data: result});
        }
    });
});

module.exports = router;<commit_msg>stringify<commit_after>const dbManager = require("../../data/db/database_manager");
const express = require("express");
const router = express.Router();
const createError = require('http-errors');

router.get("/", function (req, res, next) {
    dbManager.getData('blog', 'all', 200, function (result, error) {
        if (error) {
            next(createError(404));
        } else {
            res.render('index', {data: JSON.stringify(result)});
        }
    });
});

module.exports = router;
{'fraction_non_alphanumeric': 0.18431771894093688, 'fraction_numerical': 0.012219959266802444, 'mean_word_length': 3.1652542372881354, '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': '5749677', 'n_tokens_mistral': 290, 'n_tokens_neox': 280, 'n_words': 63}