<commit_before>const express = require('express');
const cors = require('cors');
const session = require('express-session');
const bodyParser = require('body-parser');

const authMiddleware = require('./authMiddleware');
const auth = require('./controllers/auth');
const documents = require('./controllers/documents');
const deadlines = require('./controllers/deadlines');

const app = express();
const PORT_NUMBER = 8081;

const SESSION = {
  secret: 'goodbirbs',
  cookie: { secure: false },
  saveUninitialized: true,
  resave: true
};

const CORS_CONFIG = {<commit_msg>Set maxAge of two hours on session cookie<commit_after>const express = require('express');
const cors = require('cors');
const session = require('express-session');
const bodyParser = require('body-parser');

const authMiddleware = require('./authMiddleware');
const auth = require('./controllers/auth');
const documents = require('./controllers/documents');
const deadlines = require('./controllers/deadlines');

const app = express();
const PORT_NUMBER = 8081;

const SESSION = {
  secret: 'goodbirbs',
  cookie: {
    secure: false,
    maxAge: (1000 * 60 * 60 * 2) // two hours
  },
  saveUninitialized: true,
  resave: true
};

const CORS_CONFIG = {
{'fraction_non_alphanumeric': 0.15077424612876936, 'fraction_numerical': 0.013854930725346373, 'mean_word_length': 5.1708542713567835, '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': '6303845', 'n_tokens_mistral': 367, 'n_tokens_neox': 352, 'n_words': 100}