<commit_before>'use strict';
/**
 * @file middleware408 test
 * @module logger-request
 * @subpackage test
 * @version 0.0.1
 * @author hex7c0 <<EMAIL>>
 * @license GPLv3
 */

/*
 * initialize module
 */
var logger = require('..');
var app = require('express')();
var timeout = require('timeout-request');
var request = require('supertest');
var assert = require('assert');
var fs = require('fs');

/*
 * test module
 */
describe('408', function() {

  var f = 'r8.log';

  before(function(done) {

    app.use(timeout({
      milliseconds: 1800,
      callback: function(req, res) {
<commit_msg>tests: decrease timeout to 1.5s<commit_after>'use strict';
/**
 * @file middleware408 test
 * @module logger-request
 * @subpackage test
 * @version 0.0.1
 * @author hex7c0 <<EMAIL>>
 * @license GPLv3
 */

/*
 * initialize module
 */
var logger = require('..');
var app = require('express')();
var timeout = require('timeout-request');
var request = require('supertest');
var assert = require('assert');
var fs = require('fs');

/*
 * test module
 */
describe('408', function() {

  var f = 'r8.log';

  before(function(done) {

    app.use(timeout({
      milliseconds: 1500,
      callback: function(req, res) {

{'fraction_non_alphanumeric': 0.18016528925619835, 'fraction_numerical': 0.02975206611570248, 'mean_word_length': 3.767716535433071, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5357443', 'n_tokens_mistral': 416, 'n_tokens_neox': 386, 'n_words': 104}