<commit_before>/*jslint node: true, es5: true, nomen: true, sloppy: true */
var express = require('express');
var path    = require('path');
var Bourne  = require("bourne");

var app = express();
var db  = new Bourne("db/announcements.json");

app.configure(function () {
    "use strict";
    app.use(express.json());
    app.use(express.static(path.join(__dirname, 'public')));
});

app.get("/announcements.json", function (req, res) {
    db.find(function (data) {
        res.json(data);
    });
});
<commit_msg>changed server get route<commit_after>/*jslint node: true, es5: true, nomen: true, sloppy: true */
var express = require('express');
var path    = require('path');
var Bourne  = require("bourne");

var app = express();
var db  = new Bourne("db/announcements.json");

app.configure(function () {
    "use strict";
    app.use(express.json());
    app.use(express.static(path.join(__dirname, 'public')));
});

app.get("/announcements", function (req, res) {
    db.find(function (data) {
        res.json(data);
    });
});

{'fraction_non_alphanumeric': 0.1936416184971098, 'fraction_numerical': 0.0019267822736030828, 'mean_word_length': 4.019323671497585, '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': '6999864', 'n_tokens_mistral': 350, 'n_tokens_neox': 347, 'n_words': 79}