<commit_before>"use strict";

const express = require("express");
var projects = require('./projects'),
    activities = require('./activities'),
    allocations = require('./allocations'),
    users = require('./users'),
    jnt = require('./jnt'),
    tasks = require('./tasks');

module.exports.init = function (app, callback) {
    app.use('/projects', projects);
    app.use('/activities', activities);
    app.use('/allocations', allocations);
    app.use('/users', users);
    app.use('/jnt', jnt),
    app.use('/tasks', tasks);

    callback()
};<commit_msg>Add nocache middleware<commit_after>"use strict";

const express = require("express");
var projects = require('./projects'),
    activities = require('./activities'),
    allocations = require('./allocations'),
    users = require('./users'),
    jnt = require('./jnt'),
    tasks = require('./tasks');

function nocache(req, res, next) {
    res.header('Cache-Control', 'private, no-cache, no-store, must-revalidate');
    res.header('Expires', '-1');
    res.header('Pragma', 'no-cache');
    next();
}

module.exports.init = function (app, callback) {
    app.use('/projects', nocache, projects);
    app.use('/activities', nocache, activities);
    app.use('/allocations', nocache, allocations);
    app.use('/users', nocache, users);
    app.use('/jnt', nocache, jnt),
    app.use('/tasks', nocache, tasks);

    callback()
};
{'fraction_non_alphanumeric': 0.20687186828919113, 'fraction_numerical': 0.0007158196134574087, 'mean_word_length': 3.7713310580204777, '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': '5801197', 'n_tokens_mistral': 422, 'n_tokens_neox': 413, 'n_words': 92}